Skip to content

Instantly share code, notes, and snippets.

@bollwyvl
Created July 22, 2015 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bollwyvl/4981cacfd330a92ea767 to your computer and use it in GitHub Desktop.
Save bollwyvl/4981cacfd330a92ea767 to your computer and use it in GitHub Desktop.
mermaid.js - AMD again
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.mermaid=t()}}(function(){var define,module,exports;return function t(e,n,r){function i(o,u){if(!n[o]){if(!e[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=n[o]={exports:{}};e[o][0].call(c.exports,function(t){var n=e[o][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e){!function(){function t(t,e){return e>t?-1:t>e?1:t>=e?0:0/0}function n(t){return null===t?0/0:+t}function r(t){return!isNaN(t)}function i(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function a(t){return t.length}function o(t){for(var e=1;t*e%1;)e*=10;return e}function u(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function s(){this._=Object.create(null)}function c(t){return(t+="")===hu||t[0]===fu?fu+t:t}function l(t){return(t+="")[0]===fu?t.slice(1):t}function h(t){return c(t)in this._}function f(t){return(t=c(t))in this._&&delete this._[t]}function d(){var t=[];for(var e in this._)t.push(l(e));return t}function p(){var t=0;for(var e in this._)++t;return t}function g(){for(var t in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function v(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=du.length;r>n;++n){var i=du[n]+e;if(i in t)return i}}function b(){}function _(){}function x(t){function e(){for(var e,r=n,i=-1,a=r.length;++i<a;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new s;return e.on=function(e,i){var a,o=r.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,n=n.slice(0,a=n.indexOf(o)).concat(n.slice(a+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function w(){Xo.event.preventDefault()}function A(){for(var t,e=Xo.event;t=e.sourceEvent;)e=t;return e}function k(t){for(var e=new _,n=0,r=arguments.length;++n<r;)e[arguments[n]]=x(e);return e.of=function(n,r){return function(i){try{var a=i.sourceEvent=Xo.event;i.target=t,Xo.event=i,e[i.type].apply(n,r)}finally{Xo.event=a}}},e}function E(t){return gu(t,_u),t}function D(t){return"function"==typeof t?t:function(){return yu(t,this)}}function M(t){return"function"==typeof t?t:function(){return mu(t,this)}}function S(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function a(){this.setAttributeNS(t.space,t.local,e)}function o(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function u(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=Xo.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?u:o:t.local?a:i}function C(t){return t.trim().replace(/\s+/g," ")}function T(t){return new RegExp("(?:^|\\s+)"+Xo.requote(t)+"(?:\\s+|$)","g")}function F(t){return(t+"").trim().split(/^|\s+/)}function L(t,e){function n(){for(var n=-1;++n<i;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<i;)t[n](this,r)}t=F(t).map(B);var i=t.length;return"function"==typeof e?r:n}function B(t){var e=T(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",C(i+" "+t))):n.setAttribute("class",C(i.replace(e," ")))}}function N(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function a(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?a:i}function O(t,e){function n(){delete this[t]}function r(){this[t]=e}function i(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?i:r}function I(t){return"function"==typeof t?t:(t=Xo.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function R(t){return{__data__:t}}function q(t){return function(){return bu(this,t)}}function P(e){return arguments.length||(e=t),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function U(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,a=t[n],o=0,u=a.length;u>o;o++)(i=a[o])&&e(i,o,n);return t}function j(t){return gu(t,wu),t}function Y(t){var e,n;return function(r,i,a){var o,u=t[a].update,s=u.length;for(a!=n&&(n=a,e=0),i>=e&&(e=i+1);!(o=u[e])&&++e<s;);return o}}function z(){var t=this.__transition__;t&&++t.active}function V(t,e,n){function r(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function i(){var i=s(e,Jo(arguments));r.call(this),this.addEventListener(t,this[o]=i,i.$=n),i._=e}function a(){var e,n=new RegExp("^__on([^.]+)"+Xo.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}var o="__on"+t,u=t.indexOf("."),s=H;u>0&&(t=t.slice(0,u));var c=ku.get(t);return c&&(t=c,s=G),u?e?i:r:e?b:a}function H(t,e){return function(n){var r=Xo.event;Xo.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{Xo.event=r}}}function G(t,e){var n=H(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function $(){var t=".dragsuppress-"+ ++Du,e="click"+t,n=Xo.select(eu).on("touchmove"+t,w).on("dragstart"+t,w).on("selectstart"+t,w);if(Eu){var r=tu.style,i=r[Eu];r[Eu]="none"}return function(a){function o(){n.on(e,null)}n.on(t,null),Eu&&(r[Eu]=i),a&&(n.on(e,function(){w(),o()},!0),setTimeout(o,0))}}function W(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>Mu&&(eu.scrollX||eu.scrollY)){n=Xo.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Mu=!(i.f||i.e),n.remove()}return Mu?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}function Z(){return Xo.event.changedTouches[0].identifier}function X(){return Xo.event.target}function K(){return eu}function J(t){return t>0?1:0>t?-1:0}function Q(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function te(t){return t>1?0:-1>t?Su:Math.acos(t)}function ee(t){return t>1?Tu:-1>t?-Tu:Math.asin(t)}function ne(t){return((t=Math.exp(t))-1/t)/2}function re(t){return((t=Math.exp(t))+1/t)/2}function ie(t){return((t=Math.exp(2*t))-1)/(t+1)}function ae(t){return(t=Math.sin(t/2))*t}function oe(){}function ue(t,e,n){return this instanceof ue?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof ue?new ue(t.h,t.s,t.l):xe(""+t,we,ue):new ue(t,e,n)}function se(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(o-a)*t/60:180>t?o:240>t?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,o=.5>=n?n*(1+e):n+e-n*e,a=2*n-o,new me(i(t+120),i(t),i(t-120))}function ce(t,e,n){return this instanceof ce?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof ce?new ce(t.h,t.c,t.l):t instanceof he?de(t.l,t.a,t.b):de((t=Ae((t=Xo.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ce(t,e,n)}function le(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new he(n,Math.cos(t*=Bu)*e,Math.sin(t)*e)}function he(t,e,n){return this instanceof he?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof he?new he(t.l,t.a,t.b):t instanceof ce?le(t.h,t.c,t.l):Ae((t=me(t)).r,t.g,t.b):new he(t,e,n)}function fe(t,e,n){var r=(t+16)/116,i=r+e/500,a=r-n/200;return i=pe(i)*Vu,r=pe(r)*Hu,a=pe(a)*Gu,new me(ye(3.2404542*i-1.5371385*r-.4985314*a),ye(-.969266*i+1.8760108*r+.041556*a),ye(.0556434*i-.2040259*r+1.0572252*a))}function de(t,e,n){return t>0?new ce(Math.atan2(n,e)*Nu,Math.sqrt(e*e+n*n),t):new ce(0/0,0/0,t)}function pe(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function ge(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function ye(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function me(t,e,n){return this instanceof me?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof me?new me(t.r,t.g,t.b):xe(""+t,me,se):new me(t,e,n)}function ve(t){return new me(t>>16,t>>8&255,255&t)}function be(t){return ve(t)+""}function _e(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function xe(t,e,n){var r,i,a,o=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(Ee(i[0]),Ee(i[1]),Ee(i[2]))}return(a=Zu.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,u=240&a,u=u>>4|u,s=15&a,s=s<<4|s):7===t.length&&(o=(16711680&a)>>16,u=(65280&a)>>8,s=255&a)),e(o,u,s))}function we(t,e,n){var r,i,a=Math.min(t/=255,e/=255,n/=255),o=Math.max(t,e,n),u=o-a,s=(o+a)/2;return u?(i=.5>s?u/(o+a):u/(2-o-a),r=t==o?(e-n)/u+(n>e?6:0):e==o?(n-t)/u+2:(t-e)/u+4,r*=60):(r=0/0,i=s>0&&1>s?0:r),new ue(r,i,s)}function Ae(t,e,n){t=ke(t),e=ke(e),n=ke(n);var r=ge((.4124564*t+.3575761*e+.1804375*n)/Vu),i=ge((.2126729*t+.7151522*e+.072175*n)/Hu),a=ge((.0193339*t+.119192*e+.9503041*n)/Gu);return he(116*i-16,500*(r-i),200*(i-a))}function ke(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ee(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function De(t){return"function"==typeof t?t:function(){return t}}function Me(t){return t}function Se(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ce(e,n,t,r)}}function Ce(t,e,n,r){function i(){var t,e=s.status;if(!e&&Fe(s)||e>=200&&300>e||304===e){try{t=n.call(a,s)}catch(r){return void o.error.call(a,r)}o.load.call(a,t)}else o.error.call(a,s)}var a={},o=Xo.dispatch("beforesend","progress","load","error"),u={},s=new XMLHttpRequest,c=null;return!eu.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var e=Xo.event;Xo.event=t;try{o.progress.call(a,s)}finally{Xo.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",a):e},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return n=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(Jo(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),s.setRequestHeader)for(var l in u)s.setRequestHeader(l,u[l]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=c&&(s.responseType=c),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),o.beforesend.call(a,s),s.send(null==r?null:r),a},a.abort=function(){return s.abort(),a},Xo.rebind(a,o,"on"),null==r?a:a.get(Te(r))}function Te(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Fe(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Le(){var t=Be(),e=Ne()-t;e>24?(isFinite(e)&&(clearTimeout(Qu),Qu=setTimeout(Le,e)),Ju=0):(Ju=1,es(Le))}function Be(){var t=Date.now();for(ts=Xu;ts;)t>=ts.t&&(ts.f=ts.c(t-ts.t)),ts=ts.n;return t}function Ne(){for(var t,e=Xu,n=1/0;e;)e.f?e=t?t.n=e.n:Xu=e.n:(e.t<n&&(n=e.t),e=(t=e).n);return Ku=t,n}function Oe(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ie(t,e){var n=Math.pow(10,3*lu(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Re(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,a=[],o=0,u=r[0],s=0;i>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>e));)u=r[o=(o+1)%r.length];return a.reverse().join(n)}:Me;return function(t){var n=rs.exec(t),r=n[1]||" ",o=n[2]||">",u=n[3]||"-",s=n[4]||"",c=n[5],l=+n[6],h=n[7],f=n[8],d=n[9],p=1,g="",y="",m=!1,v=!0;switch(f&&(f=+f.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),d){case"n":h=!0,d="g";break;case"%":p=100,y="%",d="f";break;case"p":p=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":m=!0,f=0;break;case"s":p=-1,d="r"}"$"===s&&(g=i[0],y=i[1]),"r"!=d||f||(d="g"),null!=f&&("g"==d?f=Math.max(1,Math.min(21,f)):("e"==d||"f"==d)&&(f=Math.max(0,Math.min(20,f)))),d=is.get(d)||qe;var b=c&&h;return function(t){var n=y;if(m&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===u?"":u;if(0>p){var s=Xo.formatPrefix(t,f);t=s.scale(t),n=s.symbol+y}else t*=p;t=d(t,f);var _,x,w=t.lastIndexOf(".");if(0>w){var A=v?t.lastIndexOf("e"):-1;0>A?(_=t,x=""):(_=t.substring(0,A),x=t.substring(A))}else _=t.substring(0,w),x=e+t.substring(w+1);!c&&h&&(_=a(_,1/0));var k=g.length+_.length+x.length+(b?0:i.length),E=l>k?new Array(k=l-k+1).join(r):"";return b&&(_=a(E+_,E.length?l-x.length:1/0)),i+=g,t=_+x,("<"===o?i+t+E:">"===o?E+i+t:"^"===o?E.substring(0,k>>=1)+i+t+E.substring(k):i+(b?t:E+t))+n}}}function qe(t){return t+""}function Pe(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ue(t,e,n){function r(e){var n=t(e),r=a(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new os(n-1)),1),n}function a(t,n){return e(t=new os(+t),n),t}function o(t,r,a){var o=i(t),u=[];if(a>1)for(;r>o;)n(o)%a||u.push(new Date(+o)),e(o,1);else for(;r>o;)u.push(new Date(+o)),e(o,1);return u}function u(t,e,n){try{os=Pe;var r=new Pe;return r._=t,o(r,e,n)}finally{os=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=je(t);return s.floor=s,s.round=je(r),s.ceil=je(i),s.offset=je(a),s.range=u,t}function je(t){return function(e,n){try{os=Pe;var r=new Pe;return r._=e,t(r,n)._}finally{os=Date}}}function Ye(t){function e(t){function e(e){for(var n,i,a,o=[],u=-1,s=0;++u<r;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=ss[n=t.charAt(++u)])&&(n=t.charAt(++u)),(a=S[n])&&(n=a(e,null==i?"e"===n?" ":"0":i)),o.push(n),s=u+1);return o.push(t.slice(s,u)),o.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,t,e,0);if(i!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var a=null!=r.Z&&os!==Pe,o=new(a?Pe:os);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),a?o._:o},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,a,o,u=0,s=e.length,c=n.length;s>u;){if(r>=c)return-1;if(i=e.charCodeAt(u++),37===i){if(o=e.charAt(u++),a=C[o in ss?e.charAt(u++):o],!a||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){w.lastIndex=0;var r=w.exec(e.slice(n));return r?(t.w=A.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){D.lastIndex=0;var r=D.exec(e.slice(n));return r?(t.m=M.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){k.lastIndex=0;var r=k.exec(e.slice(n));return r?(t.m=E.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,S.c.toString(),e,r)}function s(t,e,r){return n(t,S.x.toString(),e,r)}function c(t,e,r){return n(t,S.X.toString(),e,r)}function l(t,e,n){var r=b.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var h=t.dateTime,f=t.date,d=t.time,p=t.periods,g=t.days,y=t.shortDays,m=t.months,v=t.shortMonths;e.utc=function(t){function n(t){try{os=Pe;var e=new os;return e._=t,r(e)}finally{os=Date}}var r=e(t);return n.parse=function(t){try{os=Pe;var e=r.parse(t);return e&&e._}finally{os=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=cn;var b=Xo.map(),_=Ve(g),x=He(g),w=Ve(y),A=He(y),k=Ve(m),E=He(m),D=Ve(v),M=He(v);p.forEach(function(t,e){b.set(t.toLowerCase(),e)});var S={a:function(t){return y[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return v[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(h),d:function(t,e){return ze(t.getDate(),e,2)},e:function(t,e){return ze(t.getDate(),e,2)},H:function(t,e){return ze(t.getHours(),e,2)},I:function(t,e){return ze(t.getHours()%12||12,e,2)},j:function(t,e){return ze(1+as.dayOfYear(t),e,3)},L:function(t,e){return ze(t.getMilliseconds(),e,3)},m:function(t,e){return ze(t.getMonth()+1,e,2)},M:function(t,e){return ze(t.getMinutes(),e,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,e){return ze(t.getSeconds(),e,2)},U:function(t,e){return ze(as.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return ze(as.mondayOfYear(t),e,2)},x:e(f),X:e(d),y:function(t,e){return ze(t.getFullYear()%100,e,2)},Y:function(t,e){return ze(t.getFullYear()%1e4,e,4)},Z:un,"%":function(){return"%"}},C={a:r,A:i,b:a,B:o,c:u,d:tn,e:tn,H:nn,I:nn,j:en,L:on,m:Qe,M:rn,p:l,S:an,U:$e,w:Ge,W:We,x:s,X:c,y:Xe,Y:Ze,Z:Ke,"%":sn};return e}function ze(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",a=i.length;return r+(n>a?new Array(n-a+1).join(e)+i:i)}function Ve(t){return new RegExp("^(?:"+t.map(Xo.requote).join("|")+")","i")}function He(t){for(var e=new s,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Ge(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function $e(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function We(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function Ze(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xe(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.y=Je(+r[0]),n+r[0].length):-1}function Ke(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function Je(t){return t+(t>68?1900:2e3)}function Qe(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function tn(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function en(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function nn(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function rn(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function an(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function on(t,e,n){cs.lastIndex=0;var r=cs.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function un(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=lu(e)/60|0,i=lu(e)%60;return n+ze(r,"0",2)+ze(i,"0",2)}function sn(t,e,n){ls.lastIndex=0;var r=ls.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function cn(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function ln(){}function hn(t,e,n){var r=n.s=t+e,i=r-t,a=r-i;n.t=t-a+(e-i)}function fn(t,e){t&&ps.hasOwnProperty(t.type)&&ps[t.type](t,e)}function dn(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function pn(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)dn(t[n],e,1);e.polygonEnd()}function gn(){function t(t,e){t*=Bu,e=e*Bu/2+Su/4;var n=t-r,o=n>=0?1:-1,u=o*n,s=Math.cos(e),c=Math.sin(e),l=a*c,h=i*s+l*Math.cos(u),f=l*o*Math.sin(u);ys.add(Math.atan2(f,h)),r=t,i=s,a=c}var e,n,r,i,a;ms.point=function(o,u){ms.point=t,r=(e=o)*Bu,i=Math.cos(u=(n=u)*Bu/2+Su/4),a=Math.sin(u)},ms.lineEnd=function(){t(e,n)}}function yn(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function mn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function vn(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function bn(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _n(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function xn(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function wn(t){return[Math.atan2(t[1],t[0]),ee(t[2])]}function An(t,e){return lu(t[0]-e[0])<Fu&&lu(t[1]-e[1])<Fu}function kn(t,e){t*=Bu;var n=Math.cos(e*=Bu);En(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function En(t,e,n){++vs,_s+=(t-_s)/vs,xs+=(e-xs)/vs,ws+=(n-ws)/vs}function Dn(){function t(t,i){t*=Bu;var a=Math.cos(i*=Bu),o=a*Math.cos(t),u=a*Math.sin(t),s=Math.sin(i),c=Math.atan2(Math.sqrt((c=n*s-r*u)*c+(c=r*o-e*s)*c+(c=e*u-n*o)*c),e*o+n*u+r*s);bs+=c,As+=c*(e+(e=o)),ks+=c*(n+(n=u)),Es+=c*(r+(r=s)),En(e,n,r)}var e,n,r;Cs.point=function(i,a){i*=Bu;var o=Math.cos(a*=Bu);e=o*Math.cos(i),n=o*Math.sin(i),r=Math.sin(a),Cs.point=t,En(e,n,r)}}function Mn(){Cs.point=kn}function Sn(){function t(t,e){t*=Bu;var n=Math.cos(e*=Bu),o=n*Math.cos(t),u=n*Math.sin(t),s=Math.sin(e),c=i*s-a*u,l=a*o-r*s,h=r*u-i*o,f=Math.sqrt(c*c+l*l+h*h),d=r*o+i*u+a*s,p=f&&-te(d)/f,g=Math.atan2(f,d);Ds+=p*c,Ms+=p*l,Ss+=p*h,bs+=g,As+=g*(r+(r=o)),ks+=g*(i+(i=u)),Es+=g*(a+(a=s)),En(r,i,a)}var e,n,r,i,a;Cs.point=function(o,u){e=o,n=u,Cs.point=t,o*=Bu;var s=Math.cos(u*=Bu);r=s*Math.cos(o),i=s*Math.sin(o),a=Math.sin(u),En(r,i,a)},Cs.lineEnd=function(){t(e,n),Cs.lineEnd=Mn,Cs.point=kn}}function Cn(){return!0}function Tn(t,e,n,r,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(An(n,r)){i.lineStart();for(var u=0;e>u;++u)i.point((n=t[u])[0],n[1]);return void i.lineEnd()}var s=new Ln(n,t,null,!0),c=new Ln(n,null,s,!1);s.o=c,a.push(s),o.push(c),s=new Ln(r,t,null,!1),c=new Ln(r,null,s,!0),s.o=c,a.push(s),o.push(c)}}),o.sort(e),Fn(a),Fn(o),a.length){for(var u=0,s=n,c=o.length;c>u;++u)o[u].e=s=!s;for(var l,h,f=a[0];;){for(var d=f,p=!0;d.v;)if((d=d.n)===f)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var u=0,c=l.length;c>u;++u)i.point((h=l[u])[0],h[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p){l=d.p.z;for(var u=l.length-1;u>=0;--u)i.point((h=l[u])[0],h[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function Fn(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Ln(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Bn(t,e,n,r){return function(i,a){function o(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function u(t,e){var n=i(t,e);y.point(n[0],n[1])}function s(){v.point=u,y.lineStart()}function c(){v.point=o,y.lineEnd()}function l(t,e){g.push([t,e]);var n=i(t,e);_.point(n[0],n[1])}function h(){_.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),_.lineEnd();var t,e=_.clean(),n=b.buffer(),r=n.length;if(g.pop(),p.push(g),g=null,r)if(1&e){t=n[0];var i,r=t.length-1,o=-1;if(r>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),d.push(n.filter(Nn))}var d,p,g,y=e(a),m=i.invert(r[0],r[1]),v={point:o,lineStart:s,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=h,v.lineEnd=f,d=[],p=[]},polygonEnd:function(){v.point=o,v.lineStart=s,v.lineEnd=c,d=Xo.merge(d);var t=Un(m,p);d.length?(x||(a.polygonStart(),x=!0),Tn(d,In,t,n,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=On(),_=e(b),x=!1;return v}}function Nn(t){return t.length>1}function On(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:b,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function In(t,e){return((t=t.x)[0]<0?t[1]-Tu-Fu:Tu-t[1])-((e=e.x)[0]<0?e[1]-Tu-Fu:Tu-e[1])}function Rn(t){var e,n=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?Su:-Su,s=lu(a-n);lu(s-Su)<Fu?(t.point(n,r=(r+o)/2>0?Tu:-Tu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&s>=Su&&(lu(n-i)<Fu&&(n-=i*Fu),lu(a-u)<Fu&&(a-=u*Fu),r=qn(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=0/0},clean:function(){return 2-e}}}function qn(t,e,n,r){var i,a,o=Math.sin(t-n);return lu(o)>Fu?Math.atan((Math.sin(e)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+r)/2}function Pn(t,e,n,r){var i;if(null==t)i=n*Tu,r.point(-Su,i),r.point(0,i),r.point(Su,i),r.point(Su,0),r.point(Su,-i),r.point(0,-i),r.point(-Su,-i),r.point(-Su,0),r.point(-Su,i);else if(lu(t[0]-e[0])>Fu){var a=t[0]<e[0]?Su:-Su;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}function Un(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],a=0,o=0;ys.reset();for(var u=0,s=e.length;s>u;++u){var c=e[u],l=c.length;if(l)for(var h=c[0],f=h[0],d=h[1]/2+Su/4,p=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),t=c[y];var m=t[0],v=t[1]/2+Su/4,b=Math.sin(v),_=Math.cos(v),x=m-f,w=x>=0?1:-1,A=w*x,k=A>Su,E=p*b;if(ys.add(Math.atan2(E*w*Math.sin(A),g*_+E*Math.cos(A))),a+=k?x+w*Cu:x,k^f>=n^m>=n){var D=vn(yn(h),yn(t));xn(D);var M=vn(i,D);xn(M);var S=(k^x>=0?-1:1)*ee(M[2]);(r>S||r===S&&(D[0]||D[1]))&&(o+=k^x>=0?1:-1)}if(!y++)break;f=m,p=b,g=_,h=t}}return(-Fu>a||Fu>a&&0>ys)^1&o}function jn(t){function e(t,e){return Math.cos(t)*Math.cos(e)>a}function n(t){var n,a,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(h,f){var d,p=[h,f],g=e(h,f),y=o?g?0:i(h,f):g?i(h+(0>h?Su:-Su),f):0;if(!n&&(c=s=g)&&t.lineStart(),g!==s&&(d=r(n,p),(An(n,d)||An(p,d))&&(p[0]+=Fu,p[1]+=Fu,g=e(p[0],p[1]))),g!==s)l=0,g?(t.lineStart(),d=r(p,n),t.point(d[0],d[1])):(d=r(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(u&&n&&o^g){var m;y&a||!(m=r(p,n,!0))||(l=0,o?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||n&&An(n,p)||t.point(p[0],p[1]),n=p,s=g,a=y},lineEnd:function(){s&&t.lineEnd(),n=null},clean:function(){return l|(c&&s)<<1}}}function r(t,e,n){var r=yn(t),i=yn(e),o=[1,0,0],u=vn(r,i),s=mn(u,u),c=u[0],l=s-c*c;if(!l)return!n&&t;var h=a*s/l,f=-a*c/l,d=vn(o,u),p=_n(o,h),g=_n(u,f);bn(p,g);var y=d,m=mn(p,y),v=mn(y,y),b=m*m-v*(mn(p,p)-1);if(!(0>b)){var _=Math.sqrt(b),x=_n(y,(-m-_)/v);if(bn(x,p),x=wn(x),!n)return x;var w,A=t[0],k=e[0],E=t[1],D=e[1];A>k&&(w=A,A=k,k=w);var M=k-A,S=lu(M-Su)<Fu,C=S||Fu>M;if(!S&&E>D&&(w=E,E=D,D=w),C?S?E+D>0^x[1]<(lu(x[0]-A)<Fu?E:D):E<=x[1]&&x[1]<=D:M>Su^(A<=x[0]&&x[0]<=k)){var T=_n(y,(-m+_)/v);return bn(T,p),[x,wn(T)]}}}function i(e,n){var r=o?t:Su-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var a=Math.cos(t),o=a>0,u=lu(a)>Fu,s=gr(t,6*Bu);return Bn(e,n,s,o?[0,-t]:[-Su,t-Su])}function Yn(t,e,n,r){return function(i){var a,o=i.a,u=i.b,s=o.x,c=o.y,l=u.x,h=u.y,f=0,d=1,p=l-s,g=h-c;if(a=t-s,p||!(a>0)){if(a/=p,0>p){if(f>a)return;d>a&&(d=a)}else if(p>0){if(a>d)return;a>f&&(f=a)}if(a=n-s,p||!(0>a)){if(a/=p,0>p){if(a>d)return;a>f&&(f=a)}else if(p>0){if(f>a)return;d>a&&(d=a)}if(a=e-c,g||!(a>0)){if(a/=g,0>g){if(f>a)return;d>a&&(d=a)}else if(g>0){if(a>d)return;a>f&&(f=a)}if(a=r-c,g||!(0>a)){if(a/=g,0>g){if(a>d)return;a>f&&(f=a)}else if(g>0){if(f>a)return;d>a&&(d=a)}return f>0&&(i.a={x:s+f*p,y:c+f*g}),1>d&&(i.b={x:s+d*p,y:c+d*g}),i}}}}}}function zn(t,e,n,r){function i(r,i){return lu(r[0]-t)<Fu?i>0?0:3:lu(r[0]-n)<Fu?i>0?2:1:lu(r[1]-e)<Fu?i>0?1:0:i>0?3:2}function a(t,e){return o(t.x,e.x)}function o(t,e){var n=i(t,1),r=i(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){function s(t){for(var e=0,n=y.length,r=t[1],i=0;n>i;++i)for(var a,o=1,u=y[i],s=u.length,c=u[0];s>o;++o)a=u[o],c[1]<=r?a[1]>r&&Q(c,a,t)>0&&++e:a[1]<=r&&Q(c,a,t)<0&&--e,c=a;return 0!==e}function c(a,u,s,c){var l=0,h=0;if(null==a||(l=i(a,s))!==(h=i(u,s))||o(a,u)<0^s>0){do c.point(0===l||3===l?t:n,l>1?r:e);while((l=(l+s+4)%4)!==h)}else c.point(u[0],u[1])}function l(i,a){return i>=t&&n>=i&&a>=e&&r>=a}function h(t,e){l(t,e)&&u.point(t,e)}function f(){C.point=p,y&&y.push(m=[]),k=!0,A=!1,x=w=0/0}function d(){g&&(p(v,b),_&&A&&M.rejoin(),g.push(M.buffer())),C.point=h,A&&u.lineEnd()}function p(t,e){t=Math.max(-Fs,Math.min(Fs,t)),e=Math.max(-Fs,Math.min(Fs,e));var n=l(t,e);if(y&&m.push([t,e]),k)v=t,b=e,_=n,k=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&A)u.point(t,e);else{var r={a:{x:x,y:w},b:{x:t,y:e}};S(r)?(A||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),E=!1):n&&(u.lineStart(),u.point(t,e),E=!1)}x=t,w=e,A=n}var g,y,m,v,b,_,x,w,A,k,E,D=u,M=On(),S=Yn(t,e,n,r),C={point:h,lineStart:f,lineEnd:d,polygonStart:function(){u=M,g=[],y=[],E=!0},polygonEnd:function(){u=D,g=Xo.merge(g);var e=s([t,r]),n=E&&e,i=g.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),c(null,null,1,u),u.lineEnd()),i&&Tn(g,a,e,c,u),u.polygonEnd()),g=y=m=null}};return C}}function Vn(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function Hn(t){var e=0,n=Su/3,r=ur(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Su/180,n=t[1]*Su/180):[e/Su*180,n/Su*180]},i}function Gn(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),o-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,ee((a-(t*t+n*n)*i*i)/(2*i))]},n}function $n(){function t(t,e){Bs+=i*t-r*e,r=t,i=e}var e,n,r,i;qs.point=function(a,o){qs.point=t,e=r=a,n=i=o},qs.lineEnd=function(){t(e,n)}}function Wn(t,e){Ns>t&&(Ns=t),t>Is&&(Is=t),Os>e&&(Os=e),e>Rs&&(Rs=e)}function Zn(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),u.point=n}function n(t,e){o.push("L",t,",",e)}function r(){u.point=t}function i(){o.push("Z")}var a=Xn(4.5),o=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return a=Xn(t),u},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return u}function Xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Kn(t,e){_s+=t,xs+=e,++ws}function Jn(){function t(t,r){var i=t-e,a=r-n,o=Math.sqrt(i*i+a*a);As+=o*(e+t)/2,ks+=o*(n+r)/2,Es+=o,Kn(e=t,n=r)}var e,n;Us.point=function(r,i){Us.point=t,Kn(e=r,n=i)}}function Qn(){Us.point=Kn}function tr(){function t(t,e){var n=t-r,a=e-i,o=Math.sqrt(n*n+a*a);As+=o*(r+t)/2,ks+=o*(i+e)/2,Es+=o,o=i*t-r*e,Ds+=o*(r+t),Ms+=o*(i+e),Ss+=3*o,Kn(r=t,i=e)}var e,n,r,i;Us.point=function(a,o){Us.point=t,Kn(e=r=a,n=i=o)},Us.lineEnd=function(){t(e,n)}}function er(t){function e(e,n){t.moveTo(e,n),t.arc(e,n,o,0,Cu)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function i(){u.point=e}function a(){t.closePath()}var o=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:i,polygonStart:function(){u.lineEnd=a},polygonEnd:function(){u.lineEnd=i,u.point=e},pointRadius:function(t){return o=t,u},result:b};return u}function nr(t){function e(t){return(u?r:n)(t)}function n(e){return ar(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])
}function r(){b=0/0,k.point=a,e.lineStart()}function a(n,r){var a=yn([n,r]),o=t(n,r);i(b,_,v,x,w,A,b=o[0],_=o[1],v=n,x=a[0],w=a[1],A=a[2],u,e),e.point(b,_)}function o(){k.point=n,e.lineEnd()}function s(){r(),k.point=c,k.lineEnd=l}function c(t,e){a(h=t,f=e),d=b,p=_,g=x,y=w,m=A,k.point=a}function l(){i(b,_,v,x,w,A,d,p,h,g,y,m,u,e),k.lineEnd=o,o()}var h,f,d,p,g,y,m,v,b,_,x,w,A,k={point:n,lineStart:r,lineEnd:o,polygonStart:function(){e.polygonStart(),k.lineStart=s},polygonEnd:function(){e.polygonEnd(),k.lineStart=r}};return k}function i(e,n,r,u,s,c,l,h,f,d,p,g,y,m){var v=l-e,b=h-n,_=v*v+b*b;if(_>4*a&&y--){var x=u+d,w=s+p,A=c+g,k=Math.sqrt(x*x+w*w+A*A),E=Math.asin(A/=k),D=lu(lu(A)-1)<Fu||lu(r-f)<Fu?(r+f)/2:Math.atan2(w,x),M=t(D,E),S=M[0],C=M[1],T=S-e,F=C-n,L=b*T-v*F;(L*L/_>a||lu((v*T+b*F)/_-.5)>.3||o>u*d+s*p+c*g)&&(i(e,n,r,u,s,c,S,C,D,x/=k,w/=k,A,y,m),m.point(S,C),i(S,C,D,x,w,A,l,h,f,d,p,g,y,m))}}var a=.5,o=Math.cos(30*Bu),u=16;return e.precision=function(t){return arguments.length?(u=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function rr(t){var e=nr(function(e,n){return t([e*Nu,n*Nu])});return function(t){return sr(e(t))}}function ir(t){this.stream=t}function ar(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function or(t){return ur(function(){return t})()}function ur(t){function e(t){return t=u(t[0]*Bu,t[1]*Bu),[t[0]*f+s,c-t[1]*f]}function n(t){return t=u.invert((t[0]-s)/f,(c-t[1])/f),t&&[t[0]*Nu,t[1]*Nu]}function r(){u=Vn(o=hr(m,v,b),a);var t=a(g,y);return s=d-t[0]*f,c=p+t[1]*f,i()}function i(){return l&&(l.valid=!1,l=null),e}var a,o,u,s,c,l,h=nr(function(t,e){return t=a(t,e),[t[0]*f+s,c-t[1]*f]}),f=150,d=480,p=250,g=0,y=0,m=0,v=0,b=0,_=Ts,x=Me,w=null,A=null;return e.stream=function(t){return l&&(l.valid=!1),l=sr(_(o,h(x(t)))),l.valid=!0,l},e.clipAngle=function(t){return arguments.length?(_=null==t?(w=t,Ts):jn((w=+t)*Bu),i()):w},e.clipExtent=function(t){return arguments.length?(A=t,x=t?zn(t[0][0],t[0][1],t[1][0],t[1][1]):Me,i()):A},e.scale=function(t){return arguments.length?(f=+t,r()):f},e.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},e.center=function(t){return arguments.length?(g=t[0]%360*Bu,y=t[1]%360*Bu,r()):[g*Nu,y*Nu]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Bu,v=t[1]%360*Bu,b=t.length>2?t[2]%360*Bu:0,r()):[m*Nu,v*Nu,b*Nu]},Xo.rebind(e,h,"precision"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&n,r()}}function sr(t){return ar(t,function(e,n){t.point(e*Bu,n*Bu)})}function cr(t,e){return[t,e]}function lr(t,e){return[t>Su?t-Cu:-Su>t?t+Cu:t,e]}function hr(t,e,n){return t?e||n?Vn(dr(t),pr(e,n)):dr(t):e||n?pr(e,n):lr}function fr(t){return function(e,n){return e+=t,[e>Su?e-Cu:-Su>e?e+Cu:e,n]}}function dr(t){var e=fr(t);return e.invert=fr(-t),e}function pr(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,c=Math.sin(e),l=c*r+u*i;return[Math.atan2(s*a-l*o,u*r-c*i),ee(l*a+s*o)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,s=Math.sin(t)*n,c=Math.sin(e),l=c*a-s*o;return[Math.atan2(s*a+c*o,u*r+l*i),ee(l*r-u*i)]},n}function gr(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,a,o,u){var s=o*e;null!=i?(i=yr(n,i),a=yr(n,a),(o>0?a>i:i>a)&&(i+=o*Cu)):(i=t+o*Cu,a=t-.5*s);for(var c,l=i;o>0?l>a:a>l;l-=s)u.point((c=wn([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function yr(t,e){var n=yn(e);n[0]-=t,xn(n);var r=te(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Fu)%(2*Math.PI)}function mr(t,e,n){var r=Xo.range(t,e-Fu,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function vr(t,e,n){var r=Xo.range(t,e-Fu,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function br(t){return t.source}function _r(t){return t.target}function xr(t,e,n,r){var i=Math.cos(e),a=Math.sin(e),o=Math.cos(r),u=Math.sin(r),s=i*Math.cos(t),c=i*Math.sin(t),l=o*Math.cos(n),h=o*Math.sin(n),f=2*Math.asin(Math.sqrt(ae(r-e)+i*o*ae(n-t))),d=1/Math.sin(f),p=f?function(t){var e=Math.sin(t*=f)*d,n=Math.sin(f-t)*d,r=n*s+e*l,i=n*c+e*h,o=n*a+e*u;return[Math.atan2(i,r)*Nu,Math.atan2(o,Math.sqrt(r*r+i*i))*Nu]}:function(){return[t*Nu,e*Nu]};return p.distance=f,p}function wr(){function t(t,i){var a=Math.sin(i*=Bu),o=Math.cos(i),u=lu((t*=Bu)-e),s=Math.cos(u);js+=Math.atan2(Math.sqrt((u=o*Math.sin(u))*u+(u=r*a-n*o*s)*u),n*a+r*o*s),e=t,n=a,r=o}var e,n,r;Ys.point=function(i,a){e=i*Bu,n=Math.sin(a*=Bu),r=Math.cos(a),Ys.point=t},Ys.lineEnd=function(){Ys.point=Ys.lineEnd=b}}function Ar(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),a=t(r*i);return[a*i*Math.sin(e),a*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,r*o),Math.asin(r&&n*a/r)]},n}function kr(t,e){function n(t,e){o>0?-Tu+Fu>e&&(e=-Tu+Fu):e>Tu-Fu&&(e=Tu-Fu);var n=o/Math.pow(i(e),a);return[n*Math.sin(a*t),o-n*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Su/4+t/2)},a=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),o=r*Math.pow(i(t),a)/a;return a?(n.invert=function(t,e){var n=o-e,r=J(a)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Tu]},n):Dr}function Er(t,e){function n(t,e){var n=a-e;return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),a=r/i+t;return lu(i)<Fu?cr:(n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,a-J(i)*Math.sqrt(t*t+n*n)]},n)}function Dr(t,e){return[t,Math.log(Math.tan(Su/4+e/2))]}function Mr(t){var e,n=or(t),r=n.scale,i=n.translate,a=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var o=a.apply(n,arguments);if(o===n){if(e=null==t){var u=Su*r(),s=i();a([[s[0]-u,s[1]-u],[s[0]+u,s[1]+u]])}}else e&&(o=null);return o},n.clipExtent(null)}function Sr(t,e){return[Math.log(Math.tan(Su/4+e/2)),-t]}function Cr(t){return t[0]}function Tr(t){return t[1]}function Fr(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&Q(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Lr(t,e){return t[0]-e[0]||t[1]-e[1]}function Br(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Nr(t,e,n,r){var i=t[0],a=n[0],o=e[0]-i,u=r[0]-a,s=t[1],c=n[1],l=e[1]-s,h=r[1]-c,f=(u*(s-c)-h*(i-a))/(h*o-u*l);return[i+f*o,s+f*l]}function Or(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function Ir(){ri(this),this.edge=this.site=this.circle=null}function Rr(t){var e=tc.pop()||new Ir;return e.site=t,e}function qr(t){Wr(t),Ks.remove(t),tc.push(t),ri(t)}function Pr(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},a=t.P,o=t.N,u=[t];qr(t);for(var s=a;s.circle&&lu(n-s.circle.x)<Fu&&lu(r-s.circle.cy)<Fu;)a=s.P,u.unshift(s),qr(s),s=a;u.unshift(s),Wr(s);for(var c=o;c.circle&&lu(n-c.circle.x)<Fu&&lu(r-c.circle.cy)<Fu;)o=c.N,u.push(c),qr(c),c=o;u.push(c),Wr(c);var l,h=u.length;for(l=1;h>l;++l)c=u[l],s=u[l-1],ti(c.edge,s.site,c.site,i);s=u[0],c=u[h-1],c.edge=Jr(s.site,c.site,null,i),$r(s),$r(c)}function Ur(t){for(var e,n,r,i,a=t.x,o=t.y,u=Ks._;u;)if(r=jr(u,o)-a,r>Fu)u=u.L;else{if(i=a-Yr(u,o),!(i>Fu)){r>-Fu?(e=u.P,n=u):i>-Fu?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var s=Rr(t);if(Ks.insert(e,s),e||n){if(e===n)return Wr(e),n=Rr(e.site),Ks.insert(s,n),s.edge=n.edge=Jr(e.site,s.site),$r(e),void $r(n);if(!n)return void(s.edge=Jr(e.site,s.site));Wr(e),Wr(n);var c=e.site,l=c.x,h=c.y,f=t.x-l,d=t.y-h,p=n.site,g=p.x-l,y=p.y-h,m=2*(f*y-d*g),v=f*f+d*d,b=g*g+y*y,_={x:(y*v-d*b)/m+l,y:(f*b-g*v)/m+h};ti(n.edge,c,p,_),s.edge=Jr(c,t,null,_),n.edge=Jr(t,p,null,_),$r(e),$r(n)}}function jr(t,e){var n=t.site,r=n.x,i=n.y,a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;n=o.site;var u=n.x,s=n.y,c=s-e;if(!c)return u;var l=u-r,h=1/a-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-s+c/2+i-a/2)))/h+r:(r+u)/2}function Yr(t,e){var n=t.N;if(n)return jr(n,e);var r=t.site;return r.y===e?r.x:1/0}function zr(t){this.site=t,this.edges=[]}function Vr(t){for(var e,n,r,i,a,o,u,s,c,l,h=t[0][0],f=t[1][0],d=t[0][1],p=t[1][1],g=Xs,y=g.length;y--;)if(a=g[y],a&&a.prepare())for(u=a.edges,s=u.length,o=0;s>o;)l=u[o].end(),r=l.x,i=l.y,c=u[++o%s].start(),e=c.x,n=c.y,(lu(r-e)>Fu||lu(i-n)>Fu)&&(u.splice(o,0,new ei(Qr(a.site,l,lu(r-h)<Fu&&p-i>Fu?{x:h,y:lu(e-h)<Fu?n:p}:lu(i-p)<Fu&&f-r>Fu?{x:lu(n-p)<Fu?e:f,y:p}:lu(r-f)<Fu&&i-d>Fu?{x:f,y:lu(e-f)<Fu?n:d}:lu(i-d)<Fu&&r-h>Fu?{x:lu(n-d)<Fu?e:h,y:d}:null),a.site,null)),++s)}function Hr(t,e){return e.angle-t.angle}function Gr(){ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function $r(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i.x,u=i.y,s=r.x-o,c=r.y-u,l=a.x-o,h=a.y-u,f=2*(s*h-c*l);if(!(f>=-Lu)){var d=s*s+c*c,p=l*l+h*h,g=(h*d-c*p)/f,y=(s*p-l*d)/f,h=y+u,m=ec.pop()||new Gr;m.arc=t,m.site=i,m.x=g+o,m.y=h+Math.sqrt(g*g+y*y),m.cy=h,t.circle=m;for(var v=null,b=Qs._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}Qs.insert(v,m),v||(Js=m)}}}}function Wr(t){var e=t.circle;e&&(e.P||(Js=e.N),Qs.remove(e),ec.push(e),ri(e),t.circle=null)}function Zr(t){for(var e,n=Zs,r=Yn(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!Xr(e,t)||!r(e)||lu(e.a.x-e.b.x)<Fu&&lu(e.a.y-e.b.y)<Fu)&&(e.a=e.b=null,n.splice(i,1))}function Xr(t,e){var n=t.b;if(n)return!0;var r,i,a=t.a,o=e[0][0],u=e[1][0],s=e[0][1],c=e[1][1],l=t.l,h=t.r,f=l.x,d=l.y,p=h.x,g=h.y,y=(f+p)/2,m=(d+g)/2;if(g===d){if(o>y||y>=u)return;if(f>p){if(a){if(a.y>=c)return}else a={x:y,y:s};n={x:y,y:c}}else{if(a){if(a.y<s)return}else a={x:y,y:c};n={x:y,y:s}}}else if(r=(f-p)/(g-d),i=m-r*y,-1>r||r>1)if(f>p){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};n={x:(c-i)/r,y:c}}else{if(a){if(a.y<s)return}else a={x:(c-i)/r,y:c};n={x:(s-i)/r,y:s}}else if(g>d){if(a){if(a.x>=u)return}else a={x:o,y:r*o+i};n={x:u,y:r*u+i}}else{if(a){if(a.x<o)return}else a={x:u,y:r*u+i};n={x:o,y:r*o+i}}return t.a=a,t.b=n,!0}function Kr(t,e){this.l=t,this.r=e,this.a=this.b=null}function Jr(t,e,n,r){var i=new Kr(t,e);return Zs.push(i),n&&ti(i,t,e,n),r&&ti(i,e,t,r),Xs[t.i].edges.push(new ei(i,t,e)),Xs[e.i].edges.push(new ei(i,e,t)),i}function Qr(t,e,n){var r=new Kr(t,null);return r.a=e,r.b=n,Zs.push(r),r}function ti(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function ei(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function ni(){this._=null}function ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ii(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ai(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function oi(t){for(;t.L;)t=t.L;return t}function ui(t,e){var n,r,i,a=t.sort(si).pop();for(Zs=[],Xs=new Array(t.length),Ks=new ni,Qs=new ni;;)if(i=Js,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==n||a.y!==r)&&(Xs[a.i]=new zr(a),Ur(a),n=a.x,r=a.y),a=t.pop();else{if(!i)break;Pr(i.arc)}e&&(Zr(e),Vr(e));var o={cells:Xs,edges:Zs};return Ks=Qs=Zs=Xs=null,o}function si(t,e){return e.y-t.y||e.x-t.x}function ci(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function li(t){return t.x}function hi(t){return t.y}function fi(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function di(t,e,n,r,i,a){if(!t(e,n,r,i,a)){var o=.5*(n+i),u=.5*(r+a),s=e.nodes;s[0]&&di(t,s[0],n,r,o,u),s[1]&&di(t,s[1],o,r,i,u),s[2]&&di(t,s[2],n,u,o,a),s[3]&&di(t,s[3],o,u,i,a)}}function pi(t,e){t=Xo.rgb(t),e=Xo.rgb(e);var n=t.r,r=t.g,i=t.b,a=e.r-n,o=e.g-r,u=e.b-i;return function(t){return"#"+_e(Math.round(n+a*t))+_e(Math.round(r+o*t))+_e(Math.round(i+u*t))}}function gi(t,e){var n,r={},i={};for(n in t)n in e?r[n]=vi(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function yi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function mi(t,e){var n,r,i,a=rc.lastIndex=ic.lastIndex=0,o=-1,u=[],s=[];for(t+="",e+="";(n=rc.exec(t))&&(r=ic.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:yi(n,r)})),a=ic.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?(e=s[0].x,function(t){return e(t)+""}):function(){return e}:(e=s.length,function(t){for(var n,r=0;e>r;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function vi(t,e){for(var n,r=Xo.interpolators.length;--r>=0&&!(n=Xo.interpolators[r](t,e)););return n}function bi(t,e){var n,r=[],i=[],a=t.length,o=e.length,u=Math.min(t.length,e.length);for(n=0;u>n;++n)r.push(vi(t[n],e[n]));for(;a>n;++n)i[n]=t[n];for(;o>n;++n)i[n]=e[n];return function(t){for(n=0;u>n;++n)i[n]=r[n](t);return i}}function _i(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function xi(t){return function(e){return 1-t(1-e)}}function wi(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function Ai(t){return t*t}function ki(t){return t*t*t}function Ei(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Di(t){return function(e){return Math.pow(e,t)}}function Mi(t){return 1-Math.cos(t*Tu)}function Si(t){return Math.pow(2,10*(t-1))}function Ci(t){return 1-Math.sqrt(1-t*t)}function Ti(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Cu*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Cu/e)}}function Fi(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Li(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Bi(t,e){t=Xo.hcl(t),e=Xo.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,o=e.c-r,u=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.c:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return le(n+a*t,r+o*t,i+u*t)+""}}function Ni(t,e){t=Xo.hsl(t),e=Xo.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,o=e.s-r,u=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.s:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return se(n+a*t,r+o*t,i+u*t)+""}}function Oi(t,e){t=Xo.lab(t),e=Xo.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,o=e.a-r,u=e.b-i;return function(t){return fe(n+a*t,r+o*t,i+u*t)+""}}function Ii(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Ri(t){var e=[t.a,t.b],n=[t.c,t.d],r=Pi(e),i=qi(e,n),a=Pi(Ui(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Nu,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Nu:0}function qi(t,e){return t[0]*e[0]+t[1]*e[1]}function Pi(t){var e=Math.sqrt(qi(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Ui(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function ji(t,e){var n,r=[],i=[],a=Xo.transform(t),o=Xo.transform(e),u=a.translate,s=o.translate,c=a.rotate,l=o.rotate,h=a.skew,f=o.skew,d=a.scale,p=o.scale;return u[0]!=s[0]||u[1]!=s[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:yi(u[0],s[0])},{i:3,x:yi(u[1],s[1])})):r.push(s[0]||s[1]?"translate("+s+")":""),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:yi(c,l)})):l&&r.push(r.pop()+"rotate("+l+")"),h!=f?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:yi(h,f)}):f&&r.push(r.pop()+"skewX("+f+")"),d[0]!=p[0]||d[1]!=p[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:yi(d[0],p[0])},{i:n-2,x:yi(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),n=i.length,function(t){for(var e,a=-1;++a<n;)r[(e=i[a]).i]=e.x(t);return r.join("")}}function Yi(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function zi(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Vi(t){for(var e=t.source,n=t.target,r=Gi(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var a=i.length;n!==r;)i.splice(a,0,n),n=n.parent;return i}function Hi(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Gi(t,e){if(t===e)return t;for(var n=Hi(t),r=Hi(e),i=n.pop(),a=r.pop(),o=null;i===a;)o=i,i=n.pop(),a=r.pop();return o}function $i(t){t.fixed|=2}function Wi(t){t.fixed&=-7}function Zi(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Xi(t){t.fixed&=-5}function Ki(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,u=o.length,s=-1;++s<u;)a=o[s],null!=a&&(Ki(a,e,n),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=e*n[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Ji(t,e){return Xo.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=ia,t}function Qi(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function ta(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)n.push(a[o]);for(;null!=(t=r.pop());)e(t)}function ea(t){return t.children}function na(t){return t.value}function ra(t,e){return e.value-t.value}function ia(t){return Xo.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function aa(t){return t.x}function oa(t){return t.y}function ua(t,e,n){t.y0=e,t.y=n}function sa(t){return Xo.range(t.length)}function ca(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function la(t){for(var e,n=1,r=0,i=t[0][1],a=t.length;a>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function ha(t){return t.reduce(fa,0)}function fa(t,e){return t+e[1]}function da(t,e){return pa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function pa(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,a=[];++n<=e;)a[n]=i*n+r;return a}function ga(t){return[Xo.min(t),Xo.max(t)]}function ya(t,e){return t.value-e.value}function ma(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function va(t,e){t._pack_next=e,e._pack_prev=t}function ba(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function _a(t){function e(t){l=Math.min(t.x-t.r,l),h=Math.max(t.x+t.r,h),f=Math.min(t.y-t.r,f),d=Math.max(t.y+t.r,d)}if((n=t.children)&&(c=n.length)){var n,r,i,a,o,u,s,c,l=1/0,h=-1/0,f=1/0,d=-1/0;if(n.forEach(xa),r=n[0],r.x=-r.r,r.y=0,e(r),c>1&&(i=n[1],i.x=i.r,i.y=0,e(i),c>2))for(a=n[2],ka(r,i,a),e(a),ma(r,a),r._pack_prev=a,ma(a,i),i=r._pack_next,o=3;c>o;o++){ka(r,i,a=n[o]);var p=0,g=1,y=1;for(u=i._pack_next;u!==i;u=u._pack_next,g++)if(ba(u,a)){p=1;break}if(1==p)for(s=r._pack_prev;s!==u._pack_prev&&!ba(s,a);s=s._pack_prev,y++);p?(y>g||g==y&&i.r<r.r?va(r,i=u):va(r=s,i),o--):(ma(r,a),i=a,e(a))}var m=(l+h)/2,v=(f+d)/2,b=0;for(o=0;c>o;o++)a=n[o],a.x-=m,a.y-=v,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,n.forEach(wa)}}function xa(t){t._pack_next=t._pack_prev=t}function wa(t){delete t._pack_next,delete t._pack_prev}function Aa(t,e,n,r){var i=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,i)for(var a=-1,o=i.length;++a<o;)Aa(i[a],e,n,r)}function ka(t,e,n){var r=t.r+n.r,i=e.x-t.x,a=e.y-t.y;if(r&&(i||a)){var o=e.r+n.r,u=i*i+a*a;o*=o,r*=r;var s=.5+(r-o)/(2*u),c=Math.sqrt(Math.max(0,2*o*(r+u)-(r-=u)*r-o*o))/(2*u);n.x=t.x+s*i+c*a,n.y=t.y+s*a-c*i}else n.x=t.x+r,n.y=t.y}function Ea(t,e){return t.parent==e.parent?1:2}function Da(t){var e=t.children;return e.length?e[0]:t.t}function Ma(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Sa(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Ca(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Ta(t,e,n){return t.a.parent===e.parent?t.a:n}function Fa(t){return 1+Xo.max(t,function(t){return t.y})}function La(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ba(t){var e=t.children;return e&&e.length?Ba(e[0]):t}function Na(t){var e,n=t.children;return n&&(e=n.length)?Na(n[e-1]):t}function Oa(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ia(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:n,y:r,dx:i,dy:a}}function Ra(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function qa(t){return t.rangeExtent?t.rangeExtent():Ra(t.range())}function Pa(t,e,n,r){var i=n(t[0],t[1]),a=r(e[0],e[1]);return function(t){return a(i(t))}}function Ua(t,e){var n,r=0,i=t.length-1,a=t[r],o=t[i];return a>o&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function ja(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:gc}function Ya(t,e,n,r){var i=[],a=[],o=0,u=Math.min(t.length,e.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=u;)i.push(n(t[o-1],t[o])),a.push(r(e[o-1],e[o]));return function(e){var n=Xo.bisect(t,e,1,u)-1;return a[n](i[n](e))}}function za(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Ya:Pa,s=r?zi:Yi;return o=i(t,e,s,n),u=i(e,t,s,vi),a}function a(t){return o(t)}var o,u;return a.invert=function(t){return u(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},a.range=function(t){return arguments.length?(e=t,i()):e},a.rangeRound=function(t){return a.range(t).interpolate(Ii)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(n=t,i()):n},a.ticks=function(e){return $a(t,e)},a.tickFormat=function(e,n){return Wa(t,e,n)},a.nice=function(e){return Ha(t,e),i()},a.copy=function(){return za(t,e,n,r)},i()}function Va(t,e){return Xo.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Ha(t,e){return Ua(t,ja(Ga(t,e)[2]))}function Ga(t,e){null==e&&(e=10);var n=Ra(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),a=e/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function $a(t,e){return Xo.range.apply(Xo,Ga(t,e))}function Wa(t,e,n){var r=Ga(t,e);if(n){var i=rs.exec(n);if(i.shift(),"s"===i[8]){var a=Xo.formatPrefix(Math.max(lu(r[0]),lu(r[1])));return i[7]||(i[7]="."+Za(a.scale(r[2]))),i[8]="f",n=Xo.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+Xa(i[8],r)),n=i.join("")}else n=",."+Za(r[2])+"f";return Xo.format(n)}function Za(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Xa(t,e){var n=Za(e[2]);return t in yc?Math.abs(n-Za(Math.max(lu(e[0]),lu(e[1]))))+ +("e"!==t):n-2*("%"===t)}function Ka(t,e,n,r){function i(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),o):e},o.nice=function(){var e=Ua(r.map(i),n?Math:vc);return t.domain(e),r=e.map(a),o},o.ticks=function(){var t=Ra(r),o=[],u=t[0],s=t[1],c=Math.floor(i(u)),l=Math.ceil(i(s)),h=e%1?2:e;if(isFinite(l-c)){if(n){for(;l>c;c++)for(var f=1;h>f;f++)o.push(a(c)*f);o.push(a(c))}else for(o.push(a(c));c++<l;)for(var f=h-1;f>0;f--)o.push(a(c)*f);for(c=0;o[c]<u;c++);for(l=o.length;o[l-1]>s;l--);o=o.slice(c,l)}return o},o.tickFormat=function(t,e){if(!arguments.length)return mc;arguments.length<2?e=mc:"function"!=typeof e&&(e=Xo.format(e));var r,u=Math.max(.1,t/o.ticks().length),s=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(s(i(t)+r))<=u?e(t):""}},o.copy=function(){return Ka(t.copy(),e,n,r)},Va(o,t)}function Ja(t,e,n){function r(e){return t(i(e))}var i=Qa(e),a=Qa(1/e);return r.invert=function(e){return a(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(i)),r):n},r.ticks=function(t){return $a(n,t)},r.tickFormat=function(t,e){return Wa(n,t,e)},r.nice=function(t){return r.domain(Ha(n,t))},r.exponent=function(o){return arguments.length?(i=Qa(e=o),a=Qa(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return Ja(t.copy(),e,n)},Va(r,t)}function Qa(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function to(t,e){function n(n){return a[((i.get(n)||("range"===e.t?i.set(n,t.push(n)):0/0))-1)%a.length]}function r(e,n){return Xo.range(t.length).map(function(t){return e+n*t})}var i,a,o;return n.domain=function(r){if(!arguments.length)return t;t=[],i=new s;for(var a,o=-1,u=r.length;++o<u;)i.has(a=r[o])||i.set(a,t.push(a));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(a=t,o=0,e={t:"range",a:arguments},n):a},n.rangePoints=function(i,u){arguments.length<2&&(u=0);var s=i[0],c=i[1],l=(c-s)/(Math.max(1,t.length-1)+u);return a=r(t.length<2?(s+c)/2:s+l*u/2,l),o=0,e={t:"rangePoints",a:arguments},n},n.rangeBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=(h-l)/(t.length-u+2*s);return a=r(l+f*s,f),c&&a.reverse(),o=f*(1-u),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],h=i[1-c],f=Math.floor((h-l)/(t.length-u+2*s)),d=h-l-(t.length-u)*f;return a=r(l+Math.round(d/2),f),c&&a.reverse(),o=Math.round(f*(1-u)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return o},n.rangeExtent=function(){return Ra(e.a[0])},n.copy=function(){return to(t,e)},n.domain(t)}function eo(e,i){function a(){var t=0,n=i.length;for(u=[];++t<n;)u[t-1]=Xo.quantile(e,t/n);return o}function o(t){return isNaN(t=+t)?void 0:i[Xo.bisect(u,t)]}var u;return o.domain=function(i){return arguments.length?(e=i.map(n).filter(r).sort(t),a()):e},o.range=function(t){return arguments.length?(i=t,a()):i},o.quantiles=function(){return u},o.invertExtent=function(t){return t=i.indexOf(t),0>t?[0/0,0/0]:[t>0?u[t-1]:e[0],t<u.length?u[t]:e[e.length-1]]},o.copy=function(){return eo(e,i)},a()}function no(t,e,n){function r(e){return n[Math.max(0,Math.min(o,Math.floor(a*(e-t))))]}function i(){return a=n.length/(e-t),o=n.length-1,r}var a,o;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},r.range=function(t){return arguments.length?(n=t,i()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=0>e?0/0:e/a+t,[e,e+1/a]},r.copy=function(){return no(t,e,n)},i()}function ro(t,e){function n(n){return n>=n?e[Xo.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return ro(t,e)},n}function io(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return $a(t,e)},e.tickFormat=function(e,n){return Wa(t,e,n)},e.copy=function(){return io(t)},e}function ao(t){return t.innerRadius}function oo(t){return t.outerRadius}function uo(t){return t.startAngle}function so(t){return t.endAngle}function co(t){function e(e){function o(){c.push("M",a(t(l),u))}for(var s,c=[],l=[],h=-1,f=e.length,d=De(n),p=De(r);++h<f;)i.call(this,s=e[h],h)?l.push([+d.call(this,s,h),+p.call(this,s,h)]):l.length&&(o(),l=[]);return l.length&&o(),c.length?c.join(""):null}var n=Cr,r=Tr,i=Cn,a=lo,o=a.key,u=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=Ec.get(t)||lo).key,e):o},e.tension=function(t){return arguments.length?(u=t,e):u},e}function lo(t){return t.join("L")}function ho(t){return lo(t)+"Z"}function fo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function po(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function go(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function yo(t,e){return t.length<4?lo(t):t[1]+bo(t.slice(1,t.length-1),_o(t,e))}function mo(t,e){return t.length<3?lo(t):t[0]+bo((t.push(t[0]),t),_o([t[t.length-2]].concat(t,[t[1]]),e))}function vo(t,e){return t.length<3?lo(t):t[0]+bo(t,_o(t,e))}function bo(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return lo(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],o=e[0],u=o,s=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],s=2),e.length>1){u=e[1],a=t[s],s++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var c=2;c<e.length;c++,s++)a=t[s],u=e[c],r+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}if(n){var l=t[s];r+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function _o(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],o=t[1],u=1,s=t.length;++u<s;)n=a,a=o,o=t[u],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function xo(t){if(t.length<3)return lo(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],u=[a,a,a,r[1]],s=[i,",",a,"L",Eo(Sc,o),",",Eo(Sc,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],o.shift(),o.push(r[0]),u.shift(),u.push(r[1]),Do(s,o,u);return t.pop(),s.push("L",r),s.join("")}function wo(t){if(t.length<4)return lo(t);for(var e,n=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)e=t[r],a.push(e[0]),o.push(e[1]);for(n.push(Eo(Sc,a)+","+Eo(Sc,o)),--r;++r<i;)e=t[r],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Do(n,a,o);return n.join("")}function Ao(t){for(var e,n,r=-1,i=t.length,a=i+4,o=[],u=[];++r<4;)n=t[r%i],o.push(n[0]),u.push(n[1]);for(e=[Eo(Sc,o),",",Eo(Sc,u)],--r;++r<a;)n=t[r%i],o.shift(),o.push(n[0]),u.shift(),u.push(n[1]),Do(e,o,u);return e.join("")}function ko(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],o=t[0][1],u=t[n][0]-a,s=t[n][1]-o,c=-1;++c<=n;)r=t[c],i=c/n,r[0]=e*r[0]+(1-e)*(a+i*u),r[1]=e*r[1]+(1-e)*(o+i*s);return xo(t)}function Eo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Do(t,e,n){t.push("C",Eo(Dc,e),",",Eo(Dc,n),",",Eo(Mc,e),",",Eo(Mc,n),",",Eo(Sc,e),",",Eo(Sc,n))}function Mo(t,e){return(e[1]-t[1])/(e[0]-t[0])}function So(t){for(var e=0,n=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=Mo(i,a);++e<n;)r[e]=(o+(o=Mo(i=a,a=t[e+1])))/2;return r[e]=o,r}function Co(t){for(var e,n,r,i,a=[],o=So(t),u=-1,s=t.length-1;++u<s;)e=Mo(t[u],t[u+1]),lu(e)<Fu?o[u]=o[u+1]=0:(n=o[u]/e,r=o[u+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),o[u]=i*n,o[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),a.push([i||0,o[u]*i||0]);return a}function To(t){return t.length<3?lo(t):t[0]+bo(t,Co(t))}function Fo(t){for(var e,n,r,i=-1,a=t.length;++i<a;)e=t[i],n=e[0],r=e[1]+Ac,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Lo(t){function e(e){function s(){g.push("M",u(t(m),h),l,c(t(y.reverse()),h),"Z")}for(var f,d,p,g=[],y=[],m=[],v=-1,b=e.length,_=De(n),x=De(i),w=n===r?function(){return d}:De(r),A=i===a?function(){return p}:De(a);++v<b;)o.call(this,f=e[v],v)?(y.push([d=+_.call(this,f,v),p=+x.call(this,f,v)]),m.push([+w.call(this,f,v),+A.call(this,f,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(""):null}var n=Cr,r=Cr,i=0,a=Tr,o=Cn,u=lo,s=u.key,c=u,l="L",h=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=a=t,e):a},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(s="function"==typeof t?u=t:(u=Ec.get(t)||lo).key,c=u.reverse||u,l=u.closed?"M":"L",e):s},e.tension=function(t){return arguments.length?(h=t,e):h},e}function Bo(t){return t.radius}function No(t){return[t.x,t.y]}function Oo(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]+Ac;return[n*Math.cos(r),n*Math.sin(r)]}}function Io(){return 64
}function Ro(){return"circle"}function qo(t){var e=Math.sqrt(t/Su);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Po(t,e){return gu(t,Nc),t.id=e,t}function Uo(t,e,n,r){var i=t.id;return U(t,"function"==typeof n?function(t,a,o){t.__transition__[i].tween.set(e,r(n.call(t,t.__data__,a,o)))}:(n=r(n),function(t){t.__transition__[i].tween.set(e,n)}))}function jo(t){return null==t&&(t=""),function(){this.textContent=t}}function Yo(t,e,n,r){var i=t.__transition__||(t.__transition__={active:0,count:0}),a=i[n];if(!a){var o=r.time;a=i[n]={tween:new s,time:o,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Xo.timer(function(r){function u(r){return i.active>n?c():(i.active=n,a.event&&a.event.start.call(t,l,e),a.tween.forEach(function(n,r){(r=r.call(t,l,e))&&g.push(r)}),void Xo.timer(function(){return p.c=s(r||1)?Cn:s,1},0,o))}function s(r){if(i.active!==n)return c();for(var o=r/d,u=h(o),s=g.length;s>0;)g[--s].call(t,u);return o>=1?(a.event&&a.event.end.call(t,l,e),c()):void 0}function c(){return--i.count?delete i[n]:delete t.__transition__,1}var l=t.__data__,h=a.ease,f=a.delay,d=a.duration,p=ts,g=[];return p.t=f+o,r>=f?u(r-f):void(p.c=u)},0,o)}}function zo(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function Vo(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function Ho(t){return t.toISOString()}function Go(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,a=Xo.bisect(zc,i);return a==zc.length?[e.year,Ga(t.map(function(t){return t/31536e6}),n)[2]]:a?e[i/zc[a-1]<zc[a]/i?a-1:a]:[Gc,Ga(t,n)[2]]}return r.invert=function(e){return $o(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map($o)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,$o(+n+1),e).length}var a=r.domain(),o=Ra(a),u=null==t?i(o,10):"number"==typeof t&&i(o,t);return u&&(t=u[0],e=u[1]),r.domain(Ua(a,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=$o(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=$o(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Ra(r.domain()),a=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],$o(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return Go(t.copy(),e,n)},Va(r,t)}function $o(t){return new Date(t)}function Wo(t){return JSON.parse(t.responseText)}function Zo(t){var e=Qo.createRange();return e.selectNode(Qo.body),e.createContextualFragment(t.responseText)}var Xo={version:"3.4.13"};Date.now||(Date.now=function(){return+new Date});var Ko=[].slice,Jo=function(t){return Ko.call(t)},Qo=document,tu=Qo.documentElement,eu=window;try{Jo(tu.childNodes)[0].nodeType}catch(nu){Jo=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}try{Qo.createElement("div").style.setProperty("opacity",0,"")}catch(ru){var iu=eu.Element.prototype,au=iu.setAttribute,ou=iu.setAttributeNS,uu=eu.CSSStyleDeclaration.prototype,su=uu.setProperty;iu.setAttribute=function(t,e){au.call(this,t,e+"")},iu.setAttributeNS=function(t,e,n){ou.call(this,t,e,n+"")},uu.setProperty=function(t,e,n){su.call(this,t,e+"",n)}}Xo.ascending=t,Xo.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:0/0},Xo.min=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(n=t[i])&&n>=n);)n=void 0;for(;++i<a;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<a&&!(null!=(n=e.call(t,t[i],i))&&n>=n);)n=void 0;for(;++i<a;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},Xo.max=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(n=t[i])&&n>=n);)n=void 0;for(;++i<a;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<a&&!(null!=(n=e.call(t,t[i],i))&&n>=n);)n=void 0;for(;++i<a;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},Xo.extent=function(t,e){var n,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o&&!(null!=(n=i=t[a])&&n>=n);)n=i=void 0;for(;++a<o;)null!=(r=t[a])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++a<o&&!(null!=(n=i=e.call(t,t[a],a))&&n>=n);)n=void 0;for(;++a<o;)null!=(r=e.call(t,t[a],a))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},Xo.sum=function(t,e){var n,i=0,a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)r(n=+t[o])&&(i+=n);else for(;++o<a;)r(n=+e.call(t,t[o],o))&&(i+=n);return i},Xo.mean=function(t,e){var i,a=0,o=t.length,u=-1,s=o;if(1===arguments.length)for(;++u<o;)r(i=n(t[u]))?a+=i:--s;else for(;++u<o;)r(i=n(e.call(t,t[u],u)))?a+=i:--s;return s?a/s:void 0},Xo.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i},Xo.median=function(e,i){var a,o=[],u=e.length,s=-1;if(1===arguments.length)for(;++s<u;)r(a=n(e[s]))&&o.push(a);else for(;++s<u;)r(a=n(i.call(e,e[s],s)))&&o.push(a);return o.length?Xo.quantile(o.sort(t),.5):void 0};var cu=i(t);Xo.bisectLeft=cu.left,Xo.bisect=Xo.bisectRight=cu.right,Xo.bisector=function(e){return i(1===e.length?function(n,r){return t(e(n),r)}:e)},Xo.shuffle=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t},Xo.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},Xo.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>n;)a[n]=[e=i,i=t[++n]];return a},Xo.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=Xo.min(arguments,a),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},Xo.transpose=function(t){return Xo.zip.apply(Xo,t)},Xo.keys=function(t){var e=[];for(var n in t)e.push(n);return e},Xo.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Xo.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Xo.merge=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n};var lu=Math.abs;Xo.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,i=[],a=o(lu(n)),u=-1;if(t*=a,e*=a,n*=a,0>n)for(;(r=t+n*++u)>e;)i.push(r/a);else for(;(r=t+n*++u)<e;)i.push(r/a);return i},Xo.map=function(t){var e=new s;if(t instanceof s)t.forEach(function(t,n){e.set(t,n)});else for(var n in t)e.set(n,t[n]);return e};var hu="__proto__",fu="\x00";u(s,{has:h,get:function(t){return this._[c(t)]},set:function(t,e){return this._[c(t)]=e},remove:f,keys:d,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:l(e),value:this._[e]});return t},size:p,empty:g,forEach:function(t){for(var e in this._)t.call(this,l(e),this._[e])}}),Xo.nest=function(){function t(e,o,u){if(u>=a.length)return r?r.call(i,o):n?o.sort(n):o;for(var c,l,h,f,d=-1,p=o.length,g=a[u++],y=new s;++d<p;)(f=y.get(c=g(l=o[d])))?f.push(l):y.set(c,[l]);return e?(l=e(),h=function(n,r){l.set(n,t(e,r,u))}):(l={},h=function(n,r){l[n]=t(e,r,u)}),y.forEach(h),l}function e(t,n){if(n>=a.length)return t;var r=[],i=o[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,i={},a=[],o=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(Xo.map,n,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},Xo.set=function(t){var e=new y;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},u(y,{has:h,add:function(t){return this._[c(t+="")]=!0,t},remove:f,values:d,size:p,empty:g,forEach:function(t){for(var e in this._)t.call(this,l(e))}}),Xo.behavior={},Xo.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=m(t,e,e[n]);return t};var du=["webkit","ms","moz","Moz","o","O"];Xo.dispatch=function(){for(var t=new _,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=x(t);return t},_.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},Xo.event=null,Xo.requote=function(t){return t.replace(pu,"\\$&")};var pu=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,gu={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},yu=function(t,e){return e.querySelector(t)},mu=function(t,e){return e.querySelectorAll(t)},vu=tu.matches||tu[v(tu,"matchesSelector")],bu=function(t,e){return vu.call(t,e)};"function"==typeof Sizzle&&(yu=function(t,e){return Sizzle(t,e)[0]||null},mu=Sizzle,bu=Sizzle.matchesSelector),Xo.selection=function(){return Au};var _u=Xo.selection.prototype=[];_u.select=function(t){var e,n,r,i,a=[];t=D(t);for(var o=-1,u=this.length;++o<u;){a.push(e=[]),e.parentNode=(r=this[o]).parentNode;for(var s=-1,c=r.length;++s<c;)(i=r[s])?(e.push(n=t.call(i,i.__data__,s,o)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return E(a)},_u.selectAll=function(t){var e,n,r=[];t=M(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],u=-1,s=o.length;++u<s;)(n=o[u])&&(r.push(e=Jo(t.call(n,n.__data__,u,i))),e.parentNode=n);return E(r)};var xu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Xo.ns={prefix:xu,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.slice(0,e),t=t.slice(e+1)),xu.hasOwnProperty(n)?{space:xu[n],local:t}:t}},_u.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=Xo.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(S(e,t[e]));return this}return this.each(S(t,e))},_u.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=F(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!T(t[i]).test(e))return!1;return!0}for(e in t)this.each(L(e,t[e]));return this}return this.each(L(t,e))},_u.style=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e="");for(n in t)this.each(N(n,t[n],e));return this}if(2>r)return eu.getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(N(t,e,n))},_u.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(O(e,t[e]));return this}return this.each(O(t,e))},_u.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},_u.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},_u.append=function(t){return t=I(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},_u.insert=function(t,e){return t=I(t),e=D(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},_u.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},_u.data=function(t,e){function n(t,n){var r,i,a,o=t.length,h=n.length,f=Math.min(o,h),d=new Array(h),p=new Array(h),g=new Array(o);if(e){var y,m=new s,v=new Array(o);for(r=-1;++r<o;)m.has(y=e.call(i=t[r],i.__data__,r))?g[r]=i:m.set(y,i),v[r]=y;for(r=-1;++r<h;)(i=m.get(y=e.call(n,a=n[r],r)))?i!==!0&&(d[r]=i,i.__data__=a):p[r]=R(a),m.set(y,!0);for(r=-1;++r<o;)m.get(v[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<f;)i=t[r],a=n[r],i?(i.__data__=a,d[r]=i):p[r]=R(a);for(;h>r;++r)p[r]=R(n[r]);for(;o>r;++r)g[r]=t[r]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,u.push(p),c.push(d),l.push(g)}var r,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(r=this[0]).length);++a<o;)(i=r[a])&&(t[a]=i.__data__);return t}var u=j([]),c=E([]),l=E([]);if("function"==typeof t)for(;++a<o;)n(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<o;)n(r=this[a],t);return c.enter=function(){return u},c.exit=function(){return l},c},_u.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},_u.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=q(t));for(var a=0,o=this.length;o>a;a++){i.push(e=[]),e.parentNode=(n=this[a]).parentNode;for(var u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,a)&&e.push(r)}return E(i)},_u.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,a=r[i];--i>=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},_u.sort=function(t){t=P.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},_u.each=function(t){return U(this,function(e,n,r){t.call(e,e.__data__,n,r)})},_u.call=function(t){var e=Jo(arguments);return t.apply(e[0]=this,e),this},_u.empty=function(){return!this.node()},_u.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],r=0,i=n.length;i>r;r++){var a=n[r];if(a)return a}return null},_u.size=function(){var t=0;return U(this,function(){++t}),t};var wu=[];Xo.selection.enter=j,Xo.selection.enter.prototype=wu,wu.append=_u.append,wu.empty=_u.empty,wu.node=_u.node,wu.call=_u.call,wu.size=_u.size,wu.select=function(t){for(var e,n,r,i,a,o=[],u=-1,s=this.length;++u<s;){r=(i=this[u]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(a=i[c])?(e.push(r[c]=n=t.call(i.parentNode,a.__data__,c,u)),n.__data__=a.__data__):e.push(null)}return E(o)},wu.insert=function(t,e){return arguments.length<2&&(e=Y(this)),_u.insert.call(this,t,e)},_u.transition=function(){for(var t,e,n=Tc||++Oc,r=[],i=Fc||{time:Date.now(),ease:Ei,delay:0,duration:250},a=-1,o=this.length;++a<o;){r.push(t=[]);for(var u=this[a],s=-1,c=u.length;++s<c;)(e=u[s])&&Yo(e,s,n,i),t.push(e)}return Po(r,n)},_u.interrupt=function(){return this.each(z)},Xo.select=function(t){var e=["string"==typeof t?yu(t,Qo):t];return e.parentNode=tu,E([e])},Xo.selectAll=function(t){var e=Jo("string"==typeof t?mu(t,Qo):t);return e.parentNode=tu,E([e])};var Au=Xo.select(tu);_u.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e=!1);for(n in t)this.each(V(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(V(t,e,n))};var ku=Xo.map({mouseenter:"mouseover",mouseleave:"mouseout"});ku.forEach(function(t){"on"+t in Qo&&ku.remove(t)});var Eu="onselectstart"in Qo?null:v(tu.style,"userSelect"),Du=0;Xo.mouse=function(t){return W(t,A())};var Mu=/WebKit/.test(eu.navigator.userAgent)?-1:0;Xo.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=A().changedTouches),e)for(var r,i=0,a=e.length;a>i;++i)if((r=e[i]).identifier===n)return W(t,r)},Xo.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function e(t,e,i,a,o){return function(){function u(){var t,n,r=e(f,g);r&&(t=r[0]-b[0],n=r[1]-b[1],p|=t|n,b=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:n}))}function s(){e(f,g)&&(m.on(a+y,null).on(o+y,null),v(p&&Xo.event.target===h),d({type:"dragend"}))}var c,l=this,h=Xo.event.target,f=l.parentNode,d=n.of(l,arguments),p=0,g=t(),y=".drag"+(null==g?"":"-"+g),m=Xo.select(i()).on(a+y,u).on(o+y,s),v=$(),b=e(f,g);r?(c=r.apply(l,arguments),c=[c.x-b[0],c.y-b[1]]):c=[0,0],d({type:"dragstart"})}}var n=k(t,"drag","dragstart","dragend"),r=null,i=e(b,Xo.mouse,K,"mousemove","mouseup"),a=e(Z,Xo.touch,X,"touchmove","touchend");return t.origin=function(e){return arguments.length?(r=e,t):r},Xo.rebind(t,n,"on")},Xo.touches=function(t,e){return arguments.length<2&&(e=A().touches),e?Jo(e).map(function(e){var n=W(t,e);return n.identifier=e.identifier,n}):[]};var Su=Math.PI,Cu=2*Su,Tu=Su/2,Fu=1e-6,Lu=Fu*Fu,Bu=Su/180,Nu=180/Su,Ou=Math.SQRT2,Iu=2,Ru=4;Xo.interpolateZoom=function(t,e){function n(t){var e=t*v;if(m){var n=re(g),o=a/(Iu*f)*(n*ie(Ou*e+g)-ne(g));return[r+o*c,i+o*l,a*n/re(Ou*e+g)]}return[r+t*c,i+t*l,a*Math.exp(Ou*e)]}var r=t[0],i=t[1],a=t[2],o=e[0],u=e[1],s=e[2],c=o-r,l=u-i,h=c*c+l*l,f=Math.sqrt(h),d=(s*s-a*a+Ru*h)/(2*a*Iu*f),p=(s*s-a*a-Ru*h)/(2*s*Iu*f),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(p*p+1)-p),m=y-g,v=(m||Math.log(s/a))/Ou;return n.duration=1e3*v,n},Xo.behavior.zoom=function(){function t(t){t.on(M,c).on(Uu+".zoom",h).on("dblclick.zoom",f).on(T,l)}function e(t){return[(t[0]-A.x)/A.k,(t[1]-A.y)/A.k]}function n(t){return[t[0]*A.k+A.x,t[1]*A.k+A.y]}function r(t){A.k=Math.max(D[0],Math.min(D[1],t))}function i(t,e){e=n(e),A.x+=t[0]-e[0],A.y+=t[1]-e[1]}function a(){b&&b.domain(v.range().map(function(t){return(t-A.x)/A.k}).map(v.invert)),x&&x.domain(_.range().map(function(t){return(t-A.y)/A.k}).map(_.invert))}function o(t){t({type:"zoomstart"})}function u(t){a(),t({type:"zoom",scale:A.k,translate:[A.x,A.y]})}function s(t){t({type:"zoomend"})}function c(){function t(){l=1,i(Xo.mouse(r),f),u(c)}function n(){h.on(S,null).on(C,null),d(l&&Xo.event.target===a),s(c)}var r=this,a=Xo.event.target,c=F.of(r,arguments),l=0,h=Xo.select(eu).on(S,t).on(C,n),f=e(Xo.mouse(r)),d=$();z.call(r),o(c)}function l(){function t(){var t=Xo.touches(d);return f=A.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=e(t))}),t}function n(){var e=Xo.event.target;Xo.select(e).on(b,a).on(_,h),x.push(e);for(var n=Xo.event.changedTouches,o=0,s=n.length;s>o;++o)g[n[o].identifier]=null;var c=t(),l=Date.now();if(1===c.length){if(500>l-m){var f=c[0],d=g[f.identifier];r(2*A.k),i(f,d),w(),u(p)}m=l}else if(c.length>1){var f=c[0],v=c[1],k=f[0]-v[0],E=f[1]-v[1];y=k*k+E*E}}function a(){for(var t,e,n,a,o=Xo.touches(d),s=0,c=o.length;c>s;++s,a=null)if(n=o[s],a=g[n.identifier]){if(e)break;t=n,e=a}if(a){var l=(l=n[0]-t[0])*l+(l=n[1]-t[1])*l,h=y&&Math.sqrt(l/y);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+a[0])/2,(e[1]+a[1])/2],r(h*f)}m=null,i(t,e),u(p)}function h(){if(Xo.event.touches.length){for(var e=Xo.event.changedTouches,n=0,r=e.length;r>n;++n)delete g[e[n].identifier];for(var i in g)return void t()}Xo.selectAll(x).on(v,null),k.on(M,c).on(T,l),E(),s(p)}var f,d=this,p=F.of(d,arguments),g={},y=0,v=".zoom-"+Xo.event.changedTouches[0].identifier,b="touchmove"+v,_="touchend"+v,x=[],k=Xo.select(d),E=$();z.call(d),n(),o(p),k.on(M,null).on(T,n)}function h(){var t=F.of(this,arguments);y?clearTimeout(y):(d=e(p=g||Xo.mouse(this)),z.call(this),o(t)),y=setTimeout(function(){y=null,s(t)},50),w(),r(Math.pow(2,.002*qu())*A.k),i(p,d),u(t)}function f(){var t=F.of(this,arguments),n=Xo.mouse(this),a=e(n),c=Math.log(A.k)/Math.LN2;o(t),r(Math.pow(2,Xo.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)),i(n,a),u(t),s(t)}var d,p,g,y,m,v,b,_,x,A={x:0,y:0,k:1},E=[960,500],D=Pu,M="mousedown.zoom",S="mousemove.zoom",C="mouseup.zoom",T="touchstart.zoom",F=k(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=F.of(this,arguments),e=A;Tc?Xo.select(this).transition().each("start.zoom",function(){A=this.__chart__||{x:0,y:0,k:1},o(t)}).tween("zoom:zoom",function(){var n=E[0],r=E[1],i=n/2,a=r/2,o=Xo.interpolateZoom([(i-A.x)/A.k,(a-A.y)/A.k,n/A.k],[(i-e.x)/e.k,(a-e.y)/e.k,n/e.k]);return function(e){var r=o(e),s=n/r[2];this.__chart__=A={x:i-r[0]*s,y:a-r[1]*s,k:s},u(t)}}).each("end.zoom",function(){s(t)}):(this.__chart__=A,o(t),u(t),s(t))})},t.translate=function(e){return arguments.length?(A={x:+e[0],y:+e[1],k:A.k},a(),t):[A.x,A.y]},t.scale=function(e){return arguments.length?(A={x:A.x,y:A.y,k:+e},a(),t):A.k},t.scaleExtent=function(e){return arguments.length?(D=null==e?Pu:[+e[0],+e[1]],t):D},t.center=function(e){return arguments.length?(g=e&&[+e[0],+e[1]],t):g},t.size=function(e){return arguments.length?(E=e&&[+e[0],+e[1]],t):E},t.x=function(e){return arguments.length?(b=e,v=e.copy(),A={x:0,y:0,k:1},t):b},t.y=function(e){return arguments.length?(x=e,_=e.copy(),A={x:0,y:0,k:1},t):x},Xo.rebind(t,F,"on")};var qu,Pu=[0,1/0],Uu="onwheel"in Qo?(qu=function(){return-Xo.event.deltaY*(Xo.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Qo?(qu=function(){return Xo.event.wheelDelta},"mousewheel"):(qu=function(){return-Xo.event.detail},"MozMousePixelScroll");Xo.color=oe,oe.prototype.toString=function(){return this.rgb()+""},Xo.hsl=ue;var ju=ue.prototype=new oe;ju.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ue(this.h,this.s,this.l/t)},ju.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ue(this.h,this.s,t*this.l)},ju.rgb=function(){return se(this.h,this.s,this.l)},Xo.hcl=ce;var Yu=ce.prototype=new oe;Yu.brighter=function(t){return new ce(this.h,this.c,Math.min(100,this.l+zu*(arguments.length?t:1)))},Yu.darker=function(t){return new ce(this.h,this.c,Math.max(0,this.l-zu*(arguments.length?t:1)))},Yu.rgb=function(){return le(this.h,this.c,this.l).rgb()},Xo.lab=he;var zu=18,Vu=.95047,Hu=1,Gu=1.08883,$u=he.prototype=new oe;$u.brighter=function(t){return new he(Math.min(100,this.l+zu*(arguments.length?t:1)),this.a,this.b)},$u.darker=function(t){return new he(Math.max(0,this.l-zu*(arguments.length?t:1)),this.a,this.b)},$u.rgb=function(){return fe(this.l,this.a,this.b)},Xo.rgb=me;var Wu=me.prototype=new oe;Wu.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&i>e&&(e=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new me(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new me(i,i,i)},Wu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new me(t*this.r,t*this.g,t*this.b)},Wu.hsl=function(){return we(this.r,this.g,this.b)},Wu.toString=function(){return"#"+_e(this.r)+_e(this.g)+_e(this.b)};var Zu=Xo.map({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,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});Zu.forEach(function(t,e){Zu.set(t,ve(e))}),Xo.functor=De,Xo.xhr=Se(Me),Xo.dsv=function(t,e){function n(t,n,a){arguments.length<3&&(a=n,n=null);var o=Ce(t,e,null==n?r:i(n),a);return o.row=function(t){return arguments.length?o.response(null==(n=t)?r:i(t)):n},o}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function a(e){return e.map(o).join(t)}function o(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(i(t),n)}:i})},n.parseRows=function(t,e){function n(){if(l>=c)return o;if(i)return i=!1,a;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++<c;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}l=n+2;var r=t.charCodeAt(n+1);return 13===r?(i=!0,10===t.charCodeAt(n+2)&&++l):10===r&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;c>l;){var r=t.charCodeAt(l++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++u);else if(r!==s)continue;return t.slice(e,l-u)}return t.slice(e)}for(var r,i,a={},o={},u=[],c=t.length,l=0,h=0;(r=n())!==o;){for(var f=[];r!==a&&r!==o;)f.push(r),r=n();e&&null==(f=e(f,h++))||u.push(f)}return u},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new y,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(o).join(t)].concat(e.map(function(e){return i.map(function(t){return o(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(a).join("\n")},n},Xo.csv=Xo.dsv(",","text/csv"),Xo.tsv=Xo.dsv(" ","text/tab-separated-values");var Xu,Ku,Ju,Qu,ts,es=eu[v(eu,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Xo.timer=function(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,a={c:t,t:i,f:!1,n:null};Ku?Ku.n=a:Xu=a,Ku=a,Ju||(Qu=clearTimeout(Qu),Ju=1,es(Le))},Xo.timer.flush=function(){Be(),Ne()},Xo.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var ns=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Ie);Xo.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=Xo.round(t,Oe(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ns[8+n/3]};var rs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,is=Xo.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=Xo.round(t,Oe(t,e))).toFixed(Math.max(0,Math.min(20,Oe(t*(1+1e-15),e))))}}),as=Xo.time={},os=Date;Pe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){us.setUTCDate.apply(this._,arguments)},setDay:function(){us.setUTCDay.apply(this._,arguments)},setFullYear:function(){us.setUTCFullYear.apply(this._,arguments)},setHours:function(){us.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){us.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){us.setUTCMinutes.apply(this._,arguments)},setMonth:function(){us.setUTCMonth.apply(this._,arguments)},setSeconds:function(){us.setUTCSeconds.apply(this._,arguments)},setTime:function(){us.setTime.apply(this._,arguments)}};var us=Date.prototype;as.year=Ue(function(t){return t=as.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),as.years=as.year.range,as.years.utc=as.year.utc.range,as.day=Ue(function(t){var e=new os(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),as.days=as.day.range,as.days.utc=as.day.utc.range,as.dayOfYear=function(t){var e=as.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=as[t]=Ue(function(t){return(t=as.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=as.year(t).getDay();return Math.floor((as.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});as[t+"s"]=n.range,as[t+"s"].utc=n.utc.range,as[t+"OfYear"]=function(t){var n=as.year(t).getDay();return Math.floor((as.dayOfYear(t)+(n+e)%7)/7)}}),as.week=as.sunday,as.weeks=as.sunday.range,as.weeks.utc=as.sunday.utc.range,as.weekOfYear=as.sundayOfYear;var ss={"-":"",_:" ",0:"0"},cs=/^\s*\d+/,ls=/^%/;Xo.locale=function(t){return{numberFormat:Re(t),timeFormat:Ye(t)}};var hs=Xo.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]});Xo.format=hs.numberFormat,Xo.geo={},ln.prototype={s:0,t:0,add:function(t){hn(t,this.t,fs),hn(fs.s,this.s,this),this.s?this.t+=fs.t:this.s=fs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var fs=new ln;Xo.geo.stream=function(t,e){t&&ds.hasOwnProperty(t.type)?ds[t.type](t,e):fn(t,e)};var ds={Feature:function(t,e){fn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)fn(n[r].geometry,e)}},ps={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){dn(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)dn(n[r],e,0)},Polygon:function(t,e){pn(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)pn(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)fn(n[r],e)}};Xo.geo.area=function(t){return gs=0,Xo.geo.stream(t,ms),gs};var gs,ys=new ln,ms={sphere:function(){gs+=4*Su},point:b,lineStart:b,lineEnd:b,polygonStart:function(){ys.reset(),ms.lineStart=gn},polygonEnd:function(){var t=2*ys;gs+=0>t?4*Su+t:t,ms.lineStart=ms.lineEnd=ms.point=b}};Xo.geo.bounds=function(){function t(t,e){b.push(_=[l=t,f=t]),h>e&&(h=e),e>d&&(d=e)}function e(e,n){var r=yn([e*Bu,n*Bu]);if(m){var i=vn(m,r),a=[i[1],-i[0],0],o=vn(a,i);xn(o),o=wn(o);var s=e-p,c=s>0?1:-1,g=o[0]*Nu*c,y=lu(s)>180;if(y^(g>c*p&&c*e>g)){var v=o[1]*Nu;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(g>c*p&&c*e>g)){var v=-o[1]*Nu;h>v&&(h=v)}else h>n&&(h=n),n>d&&(d=n);y?p>e?u(l,e)>u(l,f)&&(f=e):u(e,f)>u(l,f)&&(l=e):f>=l?(l>e&&(l=e),e>f&&(f=e)):e>p?u(l,e)>u(l,f)&&(f=e):u(e,f)>u(l,f)&&(l=e)
}else t(e,n);m=r,p=e}function n(){x.point=e}function r(){_[0]=l,_[1]=f,x.point=t,m=null}function i(t,n){if(m){var r=t-p;v+=lu(r)>180?r+(r>0?360:-360):r}else g=t,y=n;ms.point(t,n),e(t,n)}function a(){ms.lineStart()}function o(){i(g,y),ms.lineEnd(),lu(v)>Fu&&(l=-(f=180)),_[0]=l,_[1]=f,m=null}function u(t,e){return(e-=t)<0?e+360:e}function s(t,e){return t[0]-e[0]}function c(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var l,h,f,d,p,g,y,m,v,b,_,x={point:t,lineStart:n,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=a,x.lineEnd=o,v=0,ms.polygonStart()},polygonEnd:function(){ms.polygonEnd(),x.point=t,x.lineStart=n,x.lineEnd=r,0>ys?(l=-(f=180),h=-(d=90)):v>Fu?d=90:-Fu>v&&(h=-90),_[0]=l,_[1]=f}};return function(t){d=f=-(l=h=1/0),b=[],Xo.geo.stream(t,x);var e=b.length;if(e){b.sort(s);for(var n,r=1,i=b[0],a=[i];e>r;++r)n=b[r],c(n[0],i)||c(n[1],i)?(u(i[0],n[1])>u(i[0],i[1])&&(i[1]=n[1]),u(n[0],i[1])>u(i[0],i[1])&&(i[0]=n[0])):a.push(i=n);for(var o,n,p=-1/0,e=a.length-1,r=0,i=a[e];e>=r;i=n,++r)n=a[r],(o=u(i[1],n[0]))>p&&(p=o,l=n[0],f=i[1])}return b=_=null,1/0===l||1/0===h?[[0/0,0/0],[0/0,0/0]]:[[l,h],[f,d]]}}(),Xo.geo.centroid=function(t){vs=bs=_s=xs=ws=As=ks=Es=Ds=Ms=Ss=0,Xo.geo.stream(t,Cs);var e=Ds,n=Ms,r=Ss,i=e*e+n*n+r*r;return Lu>i&&(e=As,n=ks,r=Es,Fu>bs&&(e=_s,n=xs,r=ws),i=e*e+n*n+r*r,Lu>i)?[0/0,0/0]:[Math.atan2(n,e)*Nu,ee(r/Math.sqrt(i))*Nu]};var vs,bs,_s,xs,ws,As,ks,Es,Ds,Ms,Ss,Cs={sphere:b,point:kn,lineStart:Dn,lineEnd:Mn,polygonStart:function(){Cs.lineStart=Sn},polygonEnd:function(){Cs.lineStart=Dn}},Ts=Bn(Cn,Rn,Pn,[-Su,-Su/2]),Fs=1e9;Xo.geo.clipExtent=function(){var t,e,n,r,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(u){return arguments.length?(a=zn(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[n,r]]}};return o.extent([[0,0],[960,500]])},(Xo.geo.conicEqualArea=function(){return Hn(Gn)}).raw=Gn,Xo.geo.albers=function(){return Xo.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Xo.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return e=null,n(a,o),e||(r(a,o),e)||i(a,o),e}var e,n,r,i,a=Xo.geo.albers(),o=Xo.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Xo.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?u:a).invert(t)},t.stream=function(t){var e=a.stream(t),n=o.stream(t),r=u.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),u.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),u.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var c=a.scale(),l=+e[0],h=+e[1];return n=a.translate(e).clipExtent([[l-.455*c,h-.238*c],[l+.455*c,h+.238*c]]).stream(s).point,r=o.translate([l-.307*c,h+.201*c]).clipExtent([[l-.425*c+Fu,h+.12*c+Fu],[l-.214*c-Fu,h+.234*c-Fu]]).stream(s).point,i=u.translate([l-.205*c,h+.212*c]).clipExtent([[l-.214*c+Fu,h+.166*c+Fu],[l-.115*c-Fu,h+.234*c-Fu]]).stream(s).point,t},t.scale(1070)};var Ls,Bs,Ns,Os,Is,Rs,qs={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Bs=0,qs.lineStart=$n},polygonEnd:function(){qs.lineStart=qs.lineEnd=qs.point=b,Ls+=lu(Bs/2)}},Ps={point:Wn,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Us={point:Kn,lineStart:Jn,lineEnd:Qn,polygonStart:function(){Us.lineStart=tr},polygonEnd:function(){Us.point=Kn,Us.lineStart=Jn,Us.lineEnd=Qn}};Xo.geo.path=function(){function t(t){return t&&("function"==typeof u&&a.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(a)),Xo.geo.stream(t,o)),a.result()}function e(){return o=null,t}var n,r,i,a,o,u=4.5;return t.area=function(t){return Ls=0,Xo.geo.stream(t,i(qs)),Ls},t.centroid=function(t){return _s=xs=ws=As=ks=Es=Ds=Ms=Ss=0,Xo.geo.stream(t,i(Us)),Ss?[Ds/Ss,Ms/Ss]:Es?[As/Es,ks/Es]:ws?[_s/ws,xs/ws]:[0/0,0/0]},t.bounds=function(t){return Is=Rs=-(Ns=Os=1/0),Xo.geo.stream(t,i(Ps)),[[Ns,Os],[Is,Rs]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||rr(t):Me,e()):n},t.context=function(t){return arguments.length?(a=null==(r=t)?new Zn:new er(t),"function"!=typeof u&&a.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(a.pointRadius(+e),+e),t):u},t.projection(Xo.geo.albersUsa()).context(null)},Xo.geo.transform=function(t){return{stream:function(e){var n=new ir(e);for(var r in t)n[r]=t[r];return n}}},ir.prototype={point:function(t,e){this.stream.point(t,e)},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()}},Xo.geo.projection=or,Xo.geo.projectionMutator=ur,(Xo.geo.equirectangular=function(){return or(cr)}).raw=cr.invert=cr,Xo.geo.rotation=function(t){function e(e){return e=t(e[0]*Bu,e[1]*Bu),e[0]*=Nu,e[1]*=Nu,e}return t=hr(t[0]%360*Bu,t[1]*Bu,t.length>2?t[2]*Bu:0),e.invert=function(e){return e=t.invert(e[0]*Bu,e[1]*Bu),e[0]*=Nu,e[1]*=Nu,e},e},lr.invert=cr,Xo.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=hr(-t[0]*Bu,-t[1]*Bu,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Nu,t[1]*=Nu}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=gr((e=+r)*Bu,i*Bu),t):e},t.precision=function(r){return arguments.length?(n=gr(e*Bu,(i=+r)*Bu),t):i},t.angle(90)},Xo.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Bu,i=t[1]*Bu,a=e[1]*Bu,o=Math.sin(r),u=Math.cos(r),s=Math.sin(i),c=Math.cos(i),l=Math.sin(a),h=Math.cos(a);return Math.atan2(Math.sqrt((n=h*o)*n+(n=c*l-s*h*u)*n),s*l+c*h*u)},Xo.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return Xo.range(Math.ceil(a/y)*y,i,y).map(f).concat(Xo.range(Math.ceil(c/m)*m,s,m).map(d)).concat(Xo.range(Math.ceil(r/p)*p,n,p).filter(function(t){return lu(t%y)>Fu}).map(l)).concat(Xo.range(Math.ceil(u/g)*g,o,g).filter(function(t){return lu(t%m)>Fu}).map(h))}var n,r,i,a,o,u,s,c,l,h,f,d,p=10,g=p,y=90,m=360,v=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[f(a).concat(d(s).slice(1),f(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],c=+e[0][1],s=+e[1][1],a>i&&(e=a,a=i,i=e),c>s&&(e=c,c=s,s=e),t.precision(v)):[[a,c],[i,s]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),u>o&&(e=u,u=o,o=e),t.precision(v)):[[r,u],[n,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(y=+e[0],m=+e[1],t):[y,m]},t.minorStep=function(e){return arguments.length?(p=+e[0],g=+e[1],t):[p,g]},t.precision=function(e){return arguments.length?(v=+e,l=mr(u,o,90),h=vr(r,n,v),f=mr(c,s,90),d=vr(a,i,v),t):v},t.majorExtent([[-180,-90+Fu],[180,90-Fu]]).minorExtent([[-180,-80-Fu],[180,80+Fu]])},Xo.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=br,i=_r;return t.distance=function(){return Xo.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},Xo.geo.interpolate=function(t,e){return xr(t[0]*Bu,t[1]*Bu,e[0]*Bu,e[1]*Bu)},Xo.geo.length=function(t){return js=0,Xo.geo.stream(t,Ys),js};var js,Ys={sphere:b,point:b,lineStart:wr,lineEnd:b,polygonStart:b,polygonEnd:b},zs=Ar(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Xo.geo.azimuthalEqualArea=function(){return or(zs)}).raw=zs;var Vs=Ar(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},Me);(Xo.geo.azimuthalEquidistant=function(){return or(Vs)}).raw=Vs,(Xo.geo.conicConformal=function(){return Hn(kr)}).raw=kr,(Xo.geo.conicEquidistant=function(){return Hn(Er)}).raw=Er;var Hs=Ar(function(t){return 1/t},Math.atan);(Xo.geo.gnomonic=function(){return or(Hs)}).raw=Hs,Dr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Tu]},(Xo.geo.mercator=function(){return Mr(Dr)}).raw=Dr;var Gs=Ar(function(){return 1},Math.asin);(Xo.geo.orthographic=function(){return or(Gs)}).raw=Gs;var $s=Ar(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Xo.geo.stereographic=function(){return or($s)}).raw=$s,Sr.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Tu]},(Xo.geo.transverseMercator=function(){var t=Mr(Sr),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=Sr,Xo.geom={},Xo.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=De(n),a=De(r),o=t.length,u=[],s=[];for(e=0;o>e;e++)u.push([+i.call(this,t[e],e),+a.call(this,t[e],e),e]);for(u.sort(Lr),e=0;o>e;e++)s.push([u[e][0],-u[e][1]]);var c=Fr(u),l=Fr(s),h=l[0]===c[0],f=l[l.length-1]===c[c.length-1],d=[];for(e=c.length-1;e>=0;--e)d.push(t[u[c[e]][2]]);for(e=+h;e<l.length-f;++e)d.push(t[u[l[e]][2]]);return d}var n=Cr,r=Tr;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},Xo.geom.polygon=function(t){return gu(t,Ws),t};var Ws=Xo.geom.polygon.prototype=[];Ws.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Ws.centroid=function(t){var e,n,r=-1,i=this.length,a=0,o=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],a+=(e[0]+u[0])*n,o+=(e[1]+u[1])*n;return[a*t,o*t]},Ws.clip=function(t){for(var e,n,r,i,a,o,u=Or(t),s=-1,c=this.length-Or(this),l=this[c-1];++s<c;){for(e=t.slice(),t.length=0,i=this[s],a=e[(r=e.length-u)-1],n=-1;++n<r;)o=e[n],Br(o,l,i)?(Br(a,l,i)||t.push(Nr(a,o,l,i)),t.push(o)):Br(a,l,i)&&t.push(Nr(a,o,l,i)),a=o;u&&t.push(t[0]),l=i}return t};var Zs,Xs,Ks,Js,Qs,tc=[],ec=[];zr.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Hr),e.length},ei.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ni.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=oi(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(ii(this,n),t=n,n=t.U),n.C=!1,r.C=!0,ai(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(ai(this,n),t=n,n=t.U),n.C=!1,r.C=!0,ii(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?oi(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,ii(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,ai(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ii(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,ai(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ii(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,ai(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},Xo.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=u[0][0],i=u[0][1],a=u[1][0],o=u[1][1];return ui(n(t),u).cells.forEach(function(n,u){var s=n.edges,c=n.site,l=e[u]=s.length?s.map(function(t){var e=t.start();return[e.x,e.y]}):c.x>=r&&c.x<=a&&c.y>=i&&c.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[];l.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/Fu)*Fu,y:Math.round(o(t,e)/Fu)*Fu,i:e}})}var r=Cr,i=Tr,a=r,o=i,u=nc;return t?e(t):(e.links=function(t){return ui(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return ui(n(t)).cells.forEach(function(n,r){for(var i,a,o=n.site,u=n.edges.sort(Hr),s=-1,c=u.length,l=u[c-1].edge,h=l.l===o?l.r:l.l;++s<c;)i=l,a=h,l=u[s].edge,h=l.l===o?l.r:l.l,r<a.i&&r<h.i&&ci(o,a,h)<0&&e.push([t[r],t[a.i],t[h.i]])}),e},e.x=function(t){return arguments.length?(a=De(r=t),e):r},e.y=function(t){return arguments.length?(o=De(i=t),e):i},e.clipExtent=function(t){return arguments.length?(u=null==t?nc:t,e):u===nc?null:u},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):u===nc?null:u&&u[1]},e)};var nc=[[-1e6,-1e6],[1e6,1e6]];Xo.geom.delaunay=function(t){return Xo.geom.voronoi().triangles(t)},Xo.geom.quadtree=function(t,e,n,r,i){function a(t){function a(t,e,n,r,i,a,o,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var s=t.x,l=t.y;if(null!=s)if(lu(s-n)+lu(l-r)<.01)c(t,e,n,r,i,a,o,u);else{var h=t.point;t.x=t.y=t.point=null,c(t,h,s,l,i,a,o,u),c(t,e,n,r,i,a,o,u)}else t.x=n,t.y=r,t.point=e}else c(t,e,n,r,i,a,o,u)}function c(t,e,n,r,i,o,u,s){var c=.5*(i+u),l=.5*(o+s),h=n>=c,f=r>=l,d=(f<<1)+h;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=fi()),h?i=c:u=c,f?o=l:s=l,a(t,e,n,r,i,o,u,s)}var l,h,f,d,p,g,y,m,v,b=De(u),_=De(s);if(null!=e)g=e,y=n,m=r,v=i;else if(m=v=-(g=y=1/0),h=[],f=[],p=t.length,o)for(d=0;p>d;++d)l=t[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),h.push(l.x),f.push(l.y);else for(d=0;p>d;++d){var x=+b(l=t[d],d),w=+_(l,d);g>x&&(g=x),y>w&&(y=w),x>m&&(m=x),w>v&&(v=w),h.push(x),f.push(w)}var A=m-g,k=v-y;A>k?v=y+A:m=g+k;var E=fi();if(E.add=function(t){a(E,t,+b(t,++d),+_(t,d),g,y,m,v)},E.visit=function(t){di(t,E,g,y,m,v)},d=-1,null==e){for(;++d<p;)a(E,t[d],h[d],f[d],g,y,m,v);--d}else t.forEach(E.add);return h=f=t=l=null,E}var o,u=Cr,s=Tr;return(o=arguments.length)?(u=li,s=hi,3===o&&(i=n,r=e,n=e=0),a(t)):(a.x=function(t){return arguments.length?(u=t,a):u},a.y=function(t){return arguments.length?(s=t,a):s},a.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),a):null==e?null:[[e,n],[r,i]]},a.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),a):null==e?null:[r-e,i-n]},a)},Xo.interpolateRgb=pi,Xo.interpolateObject=gi,Xo.interpolateNumber=yi,Xo.interpolateString=mi;var rc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ic=new RegExp(rc.source,"g");Xo.interpolate=vi,Xo.interpolators=[function(t,e){var n=typeof e;return("string"===n?Zu.has(e)||/^(#|rgb\(|hsl\()/.test(e)?pi:mi:e instanceof oe?pi:Array.isArray(e)?bi:"object"===n&&isNaN(e)?gi:yi)(t,e)}],Xo.interpolateArray=bi;var ac=function(){return Me},oc=Xo.map({linear:ac,poly:Di,quad:function(){return Ai},cubic:function(){return ki},sin:function(){return Mi},exp:function(){return Si},circle:function(){return Ci},elastic:Ti,back:Fi,bounce:function(){return Li}}),uc=Xo.map({"in":Me,out:xi,"in-out":wi,"out-in":function(t){return wi(xi(t))}});Xo.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=oc.get(n)||ac,r=uc.get(r)||Me,_i(r(n.apply(null,Ko.call(arguments,1))))},Xo.interpolateHcl=Bi,Xo.interpolateHsl=Ni,Xo.interpolateLab=Oi,Xo.interpolateRound=Ii,Xo.transform=function(t){var e=Qo.createElementNS(Xo.ns.prefix.svg,"g");return(Xo.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Ri(n?n.matrix:sc)})(t)},Ri.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var sc={a:1,b:0,c:0,d:1,e:0,f:0};Xo.interpolateTransform=ji,Xo.layout={},Xo.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Vi(t[n]));return e}},Xo.layout.chord=function(){function t(){var t,c,h,f,d,p={},g=[],y=Xo.range(a),m=[];for(n=[],r=[],t=0,f=-1;++f<a;){for(c=0,d=-1;++d<a;)c+=i[f][d];g.push(c),m.push(Xo.range(a)),t+=c}for(o&&y.sort(function(t,e){return o(g[t],g[e])}),u&&m.forEach(function(t,e){t.sort(function(t,n){return u(i[e][t],i[e][n])})}),t=(Cu-l*a)/t,c=0,f=-1;++f<a;){for(h=c,d=-1;++d<a;){var v=y[f],b=m[v][d],_=i[v][b],x=c,w=c+=_*t;p[v+"-"+b]={index:v,subindex:b,startAngle:x,endAngle:w,value:_}}r[v]={index:v,startAngle:h,endAngle:c,value:(c-h)/t},c+=l}for(f=-1;++f<a;)for(d=f-1;++d<a;){var A=p[f+"-"+d],k=p[d+"-"+f];(A.value||k.value)&&n.push(A.value<k.value?{source:k,target:A}:{source:A,target:k})}s&&e()}function e(){n.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,a,o,u,s,c={},l=0;return c.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,n=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,n=r=null,c):l},c.sortGroups=function(t){return arguments.length?(o=t,n=r=null,c):o},c.sortSubgroups=function(t){return arguments.length?(u=t,n=null,c):u},c.sortChords=function(t){return arguments.length?(s=t,n&&e(),c):s},c.chords=function(){return n||t(),n},c.groups=function(){return r||t(),r},c},Xo.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,u=i-n,s=a*a+o*o;if(s>u*u/y){if(p>s){var c=e.charge/s;t.px-=a*c,t.py-=o*c}return!0}if(e.point&&s&&p>s){var c=e.pointCharge/s;t.px-=a*c,t.py-=o*c}}return!e.charge}}function e(t){t.px=Xo.event.x,t.py=Xo.event.y,u.resume()}var n,r,i,a,o,u={},s=Xo.dispatch("start","tick","end"),c=[1,1],l=.9,h=cc,f=lc,d=-30,p=hc,g=.1,y=.64,m=[],v=[];return u.tick=function(){if((r*=.99)<.005)return s.end({type:"end",alpha:r=0}),!0;var e,n,u,h,f,p,y,b,_,x=m.length,w=v.length;for(n=0;w>n;++n)u=v[n],h=u.source,f=u.target,b=f.x-h.x,_=f.y-h.y,(p=b*b+_*_)&&(p=r*a[n]*((p=Math.sqrt(p))-i[n])/p,b*=p,_*=p,f.x-=b*(y=h.weight/(f.weight+h.weight)),f.y-=_*y,h.x+=b*(y=1-y),h.y+=_*y);if((y=r*g)&&(b=c[0]/2,_=c[1]/2,n=-1,y))for(;++n<x;)u=m[n],u.x+=(b-u.x)*y,u.y+=(_-u.y)*y;if(d)for(Ki(e=Xo.geom.quadtree(m),r,o),n=-1;++n<x;)(u=m[n]).fixed||e.visit(t(u));for(n=-1;++n<x;)u=m[n],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*l,u.y-=(u.py-(u.py=u.y))*l);s.tick({type:"tick",alpha:r})},u.nodes=function(t){return arguments.length?(m=t,u):m},u.links=function(t){return arguments.length?(v=t,u):v},u.size=function(t){return arguments.length?(c=t,u):c},u.linkDistance=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.friction=function(t){return arguments.length?(l=+t,u):l},u.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.chargeDistance=function(t){return arguments.length?(p=t*t,u):Math.sqrt(p)},u.gravity=function(t){return arguments.length?(g=+t,u):g},u.theta=function(t){return arguments.length?(y=t*t,u):Math.sqrt(y)},u.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:"start",alpha:r=t}),Xo.timer(u.tick)),u):r},u.start=function(){function t(t,r){if(!n){for(n=new Array(s),u=0;s>u;++u)n[u]=[];for(u=0;c>u;++u){var i=v[u];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,o=n[e],u=-1,c=o.length;++u<c;)if(!isNaN(a=o[u][t]))return a;return Math.random()*r}var e,n,r,s=m.length,l=v.length,p=c[0],g=c[1];for(e=0;s>e;++e)(r=m[e]).index=e,r.weight=0;for(e=0;l>e;++e)r=v[e],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(e=0;s>e;++e)r=m[e],isNaN(r.x)&&(r.x=t("x",p)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof h)for(e=0;l>e;++e)i[e]=+h.call(this,v[e],e);else for(e=0;l>e;++e)i[e]=h;if(a=[],"function"==typeof f)for(e=0;l>e;++e)a[e]=+f.call(this,v[e],e);else for(e=0;l>e;++e)a[e]=f;if(o=[],"function"==typeof d)for(e=0;s>e;++e)o[e]=+d.call(this,m[e],e);else for(e=0;s>e;++e)o[e]=d;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return n||(n=Xo.behavior.drag().origin(Me).on("dragstart.force",$i).on("drag.force",e).on("dragend.force",Wi)),arguments.length?void this.on("mouseover.force",Zi).on("mouseout.force",Xi).call(n):n},Xo.rebind(u,s,"on")};var cc=20,lc=1,hc=1/0;Xo.layout.hierarchy=function(){function t(i){var a,o=[i],u=[];for(i.depth=0;null!=(a=o.pop());)if(u.push(a),(c=n.call(t,a,a.depth))&&(s=c.length)){for(var s,c,l;--s>=0;)o.push(l=c[s]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return ta(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),u}var e=ra,n=ea,r=na;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(Qi(e,function(t){t.children&&(t.value=0)}),ta(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},Xo.layout.partition=function(){function t(e,n,r,i){var a=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,a&&(o=a.length)){var o,u,s,c=-1;for(r=e.value?r/e.value:0;++c<o;)t(u=a[c],n,s=u.value*r,i),n+=s}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,a=-1;++a<i;)r=Math.max(r,e(n[a]));return 1+r}function n(n,a){var o=r.call(this,n,a);return t(o[0],0,i[0],i[1]/e(o[0])),o}var r=Xo.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},Ji(n,r)},Xo.layout.pie=function(){function t(a){var o=a.map(function(n,r){return+e.call(t,n,r)}),u=+("function"==typeof r?r.apply(this,arguments):r),s=(("function"==typeof i?i.apply(this,arguments):i)-u)/Xo.sum(o),c=Xo.range(a.length);null!=n&&c.sort(n===fc?function(t,e){return o[e]-o[t]}:function(t,e){return n(a[t],a[e])});var l=[];return c.forEach(function(t){var e;l[t]={data:a[t],value:e=o[t],startAngle:u,endAngle:u+=e*s}}),l}var e=Number,n=fc,r=0,i=Cu;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t};var fc={};Xo.layout.stack=function(){function t(u,s){if(!(f=u.length))return u;var c=u.map(function(n,r){return e.call(t,n,r)}),l=c.map(function(e){return e.map(function(e,n){return[a.call(t,e,n),o.call(t,e,n)]})}),h=n.call(t,l,s);c=Xo.permute(c,h),l=Xo.permute(l,h);var f,d,p,g,y=r.call(t,l,s),m=c[0].length;for(p=0;m>p;++p)for(i.call(t,c[0][p],g=y[p],l[0][p][1]),d=1;f>d;++d)i.call(t,c[d][p],g+=l[d-1][p][1],l[d][p][1]);return u}var e=Me,n=sa,r=ca,i=ua,a=aa,o=oa;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:dc.get(e)||sa,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:pc.get(e)||ca,t):r},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=e,t):o},t.out=function(e){return arguments.length?(i=e,t):i},t};var dc=Xo.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(la),a=t.map(ha),o=Xo.range(r).sort(function(t,e){return i[t]-i[e]}),u=0,s=0,c=[],l=[];for(e=0;r>e;++e)n=o[e],s>u?(u+=a[n],c.push(n)):(s+=a[n],l.push(n));return l.reverse().concat(c)},reverse:function(t){return Xo.range(t.length).reverse()},"default":sa}),pc=Xo.map({silhouette:function(t){var e,n,r,i=t.length,a=t[0].length,o=[],u=0,s=[];for(n=0;a>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>u&&(u=r),o.push(r)}for(n=0;a>n;++n)s[n]=(u-o[n])/2;return s},wiggle:function(t){var e,n,r,i,a,o,u,s,c,l=t.length,h=t[0],f=h.length,d=[];for(d[0]=s=c=0,n=1;f>n;++n){for(e=0,i=0;l>e;++e)i+=t[e][n][1];for(e=0,a=0,u=h[n][0]-h[n-1][0];l>e;++e){for(r=0,o=(t[e][n][1]-t[e][n-1][1])/(2*u);e>r;++r)o+=(t[r][n][1]-t[r][n-1][1])/u;a+=o*t[e][n][1]}d[n]=s-=i?a/i*u:0,c>s&&(c=s)}for(n=0;f>n;++n)d[n]-=c;return d},expand:function(t){var e,n,r,i=t.length,a=t[0].length,o=1/i,u=[];for(n=0;a>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=o}for(n=0;a>n;++n)u[n]=0;return u},zero:ca});Xo.layout.histogram=function(){function t(t,a){for(var o,u,s=[],c=t.map(n,this),l=r.call(this,c,a),h=i.call(this,l,c,a),a=-1,f=c.length,d=h.length-1,p=e?1:1/f;++a<d;)o=s[a]=[],o.dx=h[a+1]-(o.x=h[a]),o.y=0;if(d>0)for(a=-1;++a<f;)u=c[a],u>=l[0]&&u<=l[1]&&(o=s[Xo.bisect(h,u,1,d)-1],o.y+=p,o.push(t[a]));return s}var e=!0,n=Number,r=ga,i=da;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=De(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return pa(t,e)}:De(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},Xo.layout.pack=function(){function t(t,a){var o=n.call(this,t,a),u=o[0],s=i[0],c=i[1],l=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,ta(u,function(t){t.r=+l(t.value)}),ta(u,_a),r){var h=r*(e?1:Math.max(2*u.r/s,2*u.r/c))/2;ta(u,function(t){t.r+=h}),ta(u,_a),ta(u,function(t){t.r-=h})}return Aa(u,s/2,c/2,e?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var e,n=Xo.layout.hierarchy().sort(ya),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},Ji(t,n)},Xo.layout.tree=function(){function t(t,i){var l=o.call(this,t,i),h=l[0],f=e(h);if(ta(f,n),f.parent.m=-f.z,Qi(f,r),c)Qi(h,a);else{var d=h,p=h,g=h;Qi(h,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=u(d,p)/2-d.x,m=s[0]/(p.x+u(p,d)/2+y),v=s[1]/(g.depth||1);Qi(h,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,o=0,u=a.length;u>o;++o)r.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Ca(t);var a=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+u(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,a=t,o=e,s=i.parent.children[0],c=i.m,l=a.m,h=o.m,f=s.m;o=Ma(o),i=Da(i),o&&i;)s=Da(s),a=Ma(a),a.a=t,r=o.z+h-i.z-c+u(o._,i._),r>0&&(Sa(Ta(o,t,n),t,r),c+=r,l+=r),h+=o.m,c+=i.m,f+=s.m,l+=a.m;o&&!Ma(a)&&(a.t=o,a.m+=h-l),i&&!Da(s)&&(s.t=i,s.m+=c-f,n=t)}return n}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var o=Xo.layout.hierarchy().sort(null).value(null),u=Ea,s=[1,1],c=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(c=null==(s=e)?a:null,t):c?null:s},t.nodeSize=function(e){return arguments.length?(c=null==(s=e)?null:a,t):c?s:null},Ji(t,o)},Xo.layout.cluster=function(){function t(t,a){var o,u=e.call(this,t,a),s=u[0],c=0;ta(s,function(t){var e=t.children;e&&e.length?(t.x=La(e),t.y=Fa(e)):(t.x=o?c+=n(t,o):0,t.y=0,o=t)});var l=Ba(s),h=Na(s),f=l.x-n(l,h)/2,d=h.x+n(h,l)/2;return ta(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-f)/(d-f)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var e=Xo.layout.hierarchy().sort(null).value(null),n=Ea,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},Ji(t,e)},Xo.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var a=n.children;if(a&&a.length){var o,u,s,c=h(n),l=[],f=a.slice(),p=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(f,c.dx*c.dy/n.value),l.area=0;(s=f.length)>0;)l.push(o=f[s-1]),l.area+=o.area,"squarify"!==d||(u=r(l,g))<=p?(f.pop(),p=u):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,o=h(e),u=r.slice(),s=[];for(t(u,o.dx*o.dy/e.value),s.area=0;a=u.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?o.dx:o.dy,o,!u.length),s.length=s.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,u=t.length;++o<u;)(n=t[o].area)&&(a>n&&(a=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*p/r,r/(e*a*p)):1/0}function i(t,e,n,r){var i,a=-1,o=t.length,u=n.x,c=n.y,l=e?s(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++a<o;)i=t[a],i.x=u,i.y=c,i.dy=l,u+=i.dx=Math.min(n.x+n.dx-u,l?s(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-u,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++a<o;)i=t[a],i.x=u,i.y=c,i.dx=l,c+=i.dy=Math.min(n.y+n.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function a(r){var i=o||u(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],o&&u.revalue(a),t([a],a.dx*a.dy/a.value),(o?n:e)(a),f&&(o=i),i}var o,u=Xo.layout.hierarchy(),s=Math.round,c=[1,1],l=null,h=Oa,f=!1,d="squarify",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(c=t,a):c},a.padding=function(t){function e(e){var n=t.call(a,e,e.depth);return null==n?Oa(e):Ia(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Ia(e,t)}if(!arguments.length)return l;var r;return h=null==(l=t)?Oa:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,a},a.round=function(t){return arguments.length?(s=t?Math.round:Number,a):s!=Number},a.sticky=function(t){return arguments.length?(f=t,o=null,a):f},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+"",a):d},Ji(a,u)},Xo.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=Xo.random.normal.apply(Xo,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=Xo.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},Xo.scale={};var gc={floor:Me,ceil:Me};Xo.scale.linear=function(){return za([0,1],[0,1],vi,!1)};var yc={s:1,g:1,p:1,r:1,e:1};Xo.scale.log=function(){return Ka(Xo.scale.linear().domain([0,1]),10,!0,[1,10])};var mc=Xo.format(".0e"),vc={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Xo.scale.pow=function(){return Ja(Xo.scale.linear(),1,[0,1])},Xo.scale.sqrt=function(){return Xo.scale.pow().exponent(.5)},Xo.scale.ordinal=function(){return to([],{t:"range",a:[[]]})},Xo.scale.category10=function(){return Xo.scale.ordinal().range(bc)},Xo.scale.category20=function(){return Xo.scale.ordinal().range(_c)},Xo.scale.category20b=function(){return Xo.scale.ordinal().range(xc)
},Xo.scale.category20c=function(){return Xo.scale.ordinal().range(wc)};var bc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(be),_c=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(be),xc=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(be),wc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(be);Xo.scale.quantile=function(){return eo([],[])},Xo.scale.quantize=function(){return no(0,1,[0,1])},Xo.scale.threshold=function(){return ro([.5],[0,1])},Xo.scale.identity=function(){return io([0,1])},Xo.svg={},Xo.svg.arc=function(){function t(){var t=e.apply(this,arguments),a=n.apply(this,arguments),o=r.apply(this,arguments)+Ac,u=i.apply(this,arguments)+Ac,s=(o>u&&(s=o,o=u,u=s),u-o),c=Su>s?"0":"1",l=Math.cos(o),h=Math.sin(o),f=Math.cos(u),d=Math.sin(u);return s>=kc?t?"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"Z":t?"M"+a*l+","+a*h+"A"+a+","+a+" 0 "+c+",1 "+a*f+","+a*d+"L"+t*f+","+t*d+"A"+t+","+t+" 0 "+c+",0 "+t*l+","+t*h+"Z":"M"+a*l+","+a*h+"A"+a+","+a+" 0 "+c+",1 "+a*f+","+a*d+"L0,0Z"}var e=ao,n=oo,r=uo,i=so;return t.innerRadius=function(n){return arguments.length?(e=De(n),t):e},t.outerRadius=function(e){return arguments.length?(n=De(e),t):n},t.startAngle=function(e){return arguments.length?(r=De(e),t):r},t.endAngle=function(e){return arguments.length?(i=De(e),t):i},t.centroid=function(){var t=(e.apply(this,arguments)+n.apply(this,arguments))/2,a=(r.apply(this,arguments)+i.apply(this,arguments))/2+Ac;return[Math.cos(a)*t,Math.sin(a)*t]},t};var Ac=-Tu,kc=Cu-Fu;Xo.svg.line=function(){return co(Me)};var Ec=Xo.map({linear:lo,"linear-closed":ho,step:fo,"step-before":po,"step-after":go,basis:xo,"basis-open":wo,"basis-closed":Ao,bundle:ko,cardinal:vo,"cardinal-open":yo,"cardinal-closed":mo,monotone:To});Ec.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Dc=[0,2/3,1/3,0],Mc=[0,1/3,2/3,0],Sc=[0,1/6,2/3,1/6];Xo.svg.line.radial=function(){var t=co(Fo);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},po.reverse=go,go.reverse=po,Xo.svg.area=function(){return Lo(Me)},Xo.svg.area.radial=function(){var t=Lo(Fo);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},Xo.svg.chord=function(){function t(t,u){var s=e(this,a,t,u),c=e(this,o,t,u);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(n(s,c)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,s.r,s.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),a=u.call(t,i,r),o=s.call(t,i,r)+Ac,l=c.call(t,i,r)+Ac;return{r:a,a0:o,a1:l,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(l),a*Math.sin(l)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Su)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var a=br,o=_r,u=Bo,s=uo,c=so;return t.radius=function(e){return arguments.length?(u=De(e),t):u},t.source=function(e){return arguments.length?(a=De(e),t):a},t.target=function(e){return arguments.length?(o=De(e),t):o},t.startAngle=function(e){return arguments.length?(s=De(e),t):s},t.endAngle=function(e){return arguments.length?(c=De(e),t):c},t},Xo.svg.diagonal=function(){function t(t,i){var a=e.call(this,t,i),o=n.call(this,t,i),u=(a.y+o.y)/2,s=[a,{x:a.x,y:u},{x:o.x,y:u},o];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var e=br,n=_r,r=No;return t.source=function(n){return arguments.length?(e=De(n),t):e},t.target=function(e){return arguments.length?(n=De(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},Xo.svg.diagonal.radial=function(){var t=Xo.svg.diagonal(),e=No,n=t.projection;return t.projection=function(t){return arguments.length?n(Oo(e=t)):e},t},Xo.svg.symbol=function(){function t(t,r){return(Cc.get(e.call(this,t,r))||qo)(n.call(this,t,r))}var e=Ro,n=Io;return t.type=function(n){return arguments.length?(e=De(n),t):e},t.size=function(e){return arguments.length?(n=De(e),t):n},t};var Cc=Xo.map({circle:qo,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Bc)),n=e*Bc;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Lc),n=e*Lc/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Lc),n=e*Lc/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});Xo.svg.symbolTypes=Cc.keys();var Tc,Fc,Lc=Math.sqrt(3),Bc=Math.tan(30*Bu),Nc=[],Oc=0;Nc.call=_u.call,Nc.empty=_u.empty,Nc.node=_u.node,Nc.size=_u.size,Xo.transition=function(t){return arguments.length?Tc?t.transition():t:Au.transition()},Xo.transition.prototype=Nc,Nc.select=function(t){var e,n,r,i=this.id,a=[];t=D(t);for(var o=-1,u=this.length;++o<u;){a.push(e=[]);for(var s=this[o],c=-1,l=s.length;++c<l;)(r=s[c])&&(n=t.call(r,r.__data__,c,o))?("__data__"in r&&(n.__data__=r.__data__),Yo(n,c,i,r.__transition__[i]),e.push(n)):e.push(null)}return Po(a,i)},Nc.selectAll=function(t){var e,n,r,i,a,o=this.id,u=[];t=M(t);for(var s=-1,c=this.length;++s<c;)for(var l=this[s],h=-1,f=l.length;++h<f;)if(r=l[h]){a=r.__transition__[o],n=t.call(r,r.__data__,h,s),u.push(e=[]);for(var d=-1,p=n.length;++d<p;)(i=n[d])&&Yo(i,d,o,a),e.push(i)}return Po(u,o)},Nc.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=q(t));for(var a=0,o=this.length;o>a;a++){i.push(e=[]);for(var n=this[a],u=0,s=n.length;s>u;u++)(r=n[u])&&t.call(r,r.__data__,u,a)&&e.push(r)}return Po(i,this.id)},Nc.tween=function(t,e){var n=this.id;return arguments.length<2?this.node().__transition__[n].tween.get(t):U(this,null==e?function(e){e.__transition__[n].tween.remove(t)}:function(r){r.__transition__[n].tween.set(t,e)})},Nc.attr=function(t,e){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(u);return n!==t&&(e=o(n,t),function(t){this.setAttribute(u,e(t))})})}function a(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(u.space,u.local);return n!==t&&(e=o(n,t),function(t){this.setAttributeNS(u.space,u.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o="transform"==t?ji:vi,u=Xo.ns.qualify(t);return Uo(this,"attr."+t,e,u.local?a:i)},Nc.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=Xo.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Nc.style=function(t,e,n){function r(){this.style.removeProperty(t)}function i(e){return null==e?r:(e+="",function(){var r,i=eu.getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=vi(i,e),function(e){this.style.setProperty(t,r(e),n)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return Uo(this,"style."+t,e,i)},Nc.styleTween=function(t,e,n){function r(r,i){var a=e.call(this,r,i,eu.getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Nc.text=function(t){return Uo(this,"text",t,jo)},Nc.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},Nc.ease=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].ease:("function"!=typeof t&&(t=Xo.ease.apply(Xo,arguments)),U(this,function(n){n.__transition__[e].ease=t}))},Nc.delay=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].delay:U(this,"function"==typeof t?function(n,r,i){n.__transition__[e].delay=+t.call(n,n.__data__,r,i)}:(t=+t,function(n){n.__transition__[e].delay=t}))},Nc.duration=function(t){var e=this.id;return arguments.length<1?this.node().__transition__[e].duration:U(this,"function"==typeof t?function(n,r,i){n.__transition__[e].duration=Math.max(1,t.call(n,n.__data__,r,i))}:(t=Math.max(1,t),function(n){n.__transition__[e].duration=t}))},Nc.each=function(t,e){var n=this.id;if(arguments.length<2){var r=Fc,i=Tc;Tc=n,U(this,function(e,r,i){Fc=e.__transition__[n],t.call(e,e.__data__,r,i)}),Fc=r,Tc=i}else U(this,function(r){var i=r.__transition__[n];(i.event||(i.event=Xo.dispatch("start","end"))).on(t,e)});return this},Nc.transition=function(){for(var t,e,n,r,i=this.id,a=++Oc,o=[],u=0,s=this.length;s>u;u++){o.push(t=[]);for(var e=this[u],c=0,l=e.length;l>c;c++)(n=e[c])&&(r=Object.create(n.__transition__[i]),r.delay+=r.duration,Yo(n,c,a,r)),t.push(n)}return Po(o,a)},Xo.svg.axis=function(){function t(t){t.each(function(){var t,c=Xo.select(this),l=this.__chart__||n,h=this.__chart__=n.copy(),f=null==s?h.ticks?h.ticks.apply(h,u):h.domain():s,d=null==e?h.tickFormat?h.tickFormat.apply(h,u):Me:e,p=c.selectAll(".tick").data(f,h),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Fu),y=Xo.transition(p.exit()).style("opacity",Fu).remove(),m=Xo.transition(p.order()).style("opacity",1),v=Math.max(i,0)+o,b=qa(h),_=c.selectAll(".domain").data([0]),x=(_.enter().append("path").attr("class","domain"),Xo.transition(_));g.append("line"),g.append("text");var w,A,k,E,D=g.select("line"),M=m.select("line"),S=p.select("text").text(d),C=g.select("text"),T=m.select("text"),F="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=zo,w="x",k="y",A="x2",E="y2",S.attr("dy",0>F?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+b[0]+","+F*a+"V0H"+b[1]+"V"+F*a)):(t=Vo,w="y",k="x",A="y2",E="x2",S.attr("dy",".32em").style("text-anchor",0>F?"end":"start"),x.attr("d","M"+F*a+","+b[0]+"H0V"+b[1]+"H"+F*a)),D.attr(E,F*i),C.attr(k,F*v),M.attr(A,0).attr(E,F*i),T.attr(w,0).attr(k,F*v),h.rangeBand){var L=h,B=L.rangeBand()/2;l=h=function(t){return L(t)+B}}else l.rangeBand?l=h:y.call(t,h,l);g.call(t,l,h),m.call(t,h,h)})}var e,n=Xo.scale.linear(),r=Ic,i=6,a=6,o=3,u=[10],s=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Rc?e+"":Ic,t):r},t.ticks=function(){return arguments.length?(u=arguments,t):u},t.tickValues=function(e){return arguments.length?(s=e,t):s},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,a=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(a=+e,t):a},t.tickPadding=function(e){return arguments.length?(o=+e,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Ic="bottom",Rc={top:1,right:1,bottom:1,left:1};Xo.svg.brush=function(){function t(a){a.each(function(){var a=Xo.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=a.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=a.selectAll(".resize").data(p,Me);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return qc[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),u.style("display",t.empty()?"none":null);var l,h=Xo.transition(a),f=Xo.transition(o);s&&(l=qa(s),f.attr("x",l[0]).attr("width",l[1]-l[0]),n(h)),c&&(l=qa(c),f.attr("y",l[0]).attr("height",l[1]-l[0]),r(h)),e(h)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",l[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==Xo.event.keyCode&&(S||(v=null,T[0]-=l[1],T[1]-=h[1],S=2),w())}function p(){32==Xo.event.keyCode&&2==S&&(T[0]+=l[1],T[1]+=h[1],S=0,w())}function g(){var t=Xo.mouse(_),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),S||(Xo.event.altKey?(v||(v=[(l[0]+l[1])/2,(h[0]+h[1])/2]),T[0]=l[+(t[0]<v[0])],T[1]=h[+(t[1]<v[1])]):v=null),D&&y(t,s,0)&&(n(k),i=!0),M&&y(t,c,1)&&(r(k),i=!0),i&&(e(k),A({type:"brush",mode:S?"move":"resize"}))}function y(t,e,n){var r,i,u=qa(e),s=u[0],c=u[1],p=T[n],g=n?h:l,y=g[1]-g[0];return S&&(s-=p,c-=y+p),r=(n?d:f)?Math.max(s,Math.min(c,t[n])):t[n],S?i=(r+=p)+y:(v&&(p=Math.max(s,Math.min(c,2*v[n]-r))),r>p?(i=r,r=p):i=p),g[0]!=r||g[1]!=i?(n?o=null:a=null,g[0]=r,g[1]=i,!0):void 0}function m(){g(),k.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Xo.select("body").style("cursor",null),F.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),A({type:"brushend"})}var v,b,_=this,x=Xo.select(Xo.event.target),A=u.of(_,arguments),k=Xo.select(_),E=x.datum(),D=!/^(n|s)$/.test(E)&&s,M=!/^(e|w)$/.test(E)&&c,S=x.classed("extent"),C=$(),T=Xo.mouse(_),F=Xo.select(eu).on("keydown.brush",i).on("keyup.brush",p);if(Xo.event.changedTouches?F.on("touchmove.brush",g).on("touchend.brush",m):F.on("mousemove.brush",g).on("mouseup.brush",m),k.interrupt().selectAll("*").interrupt(),S)T[0]=l[0]-T[0],T[1]=h[0]-T[1];else if(E){var L=+/w$/.test(E),B=+/^n/.test(E);b=[l[1-L]-T[0],h[1-B]-T[1]],T[0]=l[L],T[1]=h[B]}else Xo.event.altKey&&(v=T.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),Xo.select("body").style("cursor",x.style("cursor")),A({type:"brushstart"}),g()}var a,o,u=k(t,"brushstart","brush","brushend"),s=null,c=null,l=[0,0],h=[0,0],f=!0,d=!0,p=Pc[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),e={x:l,y:h,i:a,j:o},n=this.__chart__||e;this.__chart__=e,Tc?Xo.select(this).transition().each("start.brush",function(){a=n.i,o=n.j,l=n.x,h=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=bi(l,e.x),r=bi(h,e.y);return a=o=null,function(i){l=e.x=n(i),h=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=e.i,o=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(s=e,p=Pc[!s<<1|!c],t):s},t.y=function(e){return arguments.length?(c=e,p=Pc[!s<<1|!c],t):c},t.clamp=function(e){return arguments.length?(s&&c?(f=!!e[0],d=!!e[1]):s?f=!!e:c&&(d=!!e),t):s&&c?[f,d]:s?f:c?d:null},t.extent=function(e){var n,r,i,u,f;return arguments.length?(s&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),a=[n,r],s.invert&&(n=s(n),r=s(r)),n>r&&(f=n,n=r,r=f),(n!=l[0]||r!=l[1])&&(l=[n,r])),c&&(i=e[0],u=e[1],s&&(i=i[1],u=u[1]),o=[i,u],c.invert&&(i=c(i),u=c(u)),i>u&&(f=i,i=u,u=f),(i!=h[0]||u!=h[1])&&(h=[i,u])),t):(s&&(a?(n=a[0],r=a[1]):(n=l[0],r=l[1],s.invert&&(n=s.invert(n),r=s.invert(r)),n>r&&(f=n,n=r,r=f))),c&&(o?(i=o[0],u=o[1]):(i=h[0],u=h[1],c.invert&&(i=c.invert(i),u=c.invert(u)),i>u&&(f=i,i=u,u=f))),s&&c?[[n,i],[r,u]]:s?[n,r]:c&&[i,u])},t.clear=function(){return t.empty()||(l=[0,0],h=[0,0],a=o=null),t},t.empty=function(){return!!s&&l[0]==l[1]||!!c&&h[0]==h[1]},Xo.rebind(t,u,"on")};var qc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Pc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Uc=as.format=hs.timeFormat,jc=Uc.utc,Yc=jc("%Y-%m-%dT%H:%M:%S.%LZ");Uc.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ho:Yc,Ho.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Ho.toString=Yc.toString,as.second=Ue(function(t){return new os(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),as.seconds=as.second.range,as.seconds.utc=as.second.utc.range,as.minute=Ue(function(t){return new os(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),as.minutes=as.minute.range,as.minutes.utc=as.minute.utc.range,as.hour=Ue(function(t){var e=t.getTimezoneOffset()/60;return new os(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),as.hours=as.hour.range,as.hours.utc=as.hour.utc.range,as.month=Ue(function(t){return t=as.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),as.months=as.month.range,as.months.utc=as.month.utc.range;var zc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Vc=[[as.second,1],[as.second,5],[as.second,15],[as.second,30],[as.minute,1],[as.minute,5],[as.minute,15],[as.minute,30],[as.hour,1],[as.hour,3],[as.hour,6],[as.hour,12],[as.day,1],[as.day,2],[as.week,1],[as.month,1],[as.month,3],[as.year,1]],Hc=Uc.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Cn]]),Gc={range:function(t,e,n){return Xo.range(Math.ceil(t/n)*n,+e,n).map($o)},floor:Me,ceil:Me};Vc.year=as.year,as.scale=function(){return Go(Xo.scale.linear(),Vc,Hc)};var $c=Vc.map(function(t){return[t[0].utc,t[1]]}),Wc=jc.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Cn]]);$c.year=as.year.utc,as.scale.utc=function(){return Go(Xo.scale.linear(),$c,Wc)},Xo.text=Se(function(t){return t.responseText}),Xo.json=function(t,e){return Ce(t,"application/json",Wo,e)},Xo.html=function(t,e){return Ce(t,"text/html",Zo,e)},Xo.xml=Se(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(Xo):"object"==typeof e&&e.exports&&(e.exports=Xo),this.d3=Xo}()},{}],2:[function(t,e){e.exports={graphlib:t("./lib/graphlib"),dagre:t("./lib/dagre"),intersect:t("./lib/intersect"),render:t("./lib/render"),util:t("./lib/util"),version:t("./lib/version")}},{"./lib/dagre":9,"./lib/graphlib":10,"./lib/intersect":11,"./lib/render":26,"./lib/util":28,"./lib/version":29}],3:[function(t,e){function n(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,n[r+"Style"])}function r(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.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");a.applyStyle(o,n[r+"Style"])}function i(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),o=i.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,n[r+"Style"])}var a=t("./util");e.exports={"default":n,normal:n,vee:r,undirected:i}},{"./util":28}],4:[function(t,e){function n(t,e){var n=e.nodes().filter(function(t){return r.isSubgraph(e,t)}),a=t.selectAll("g.cluster").data(n,function(t){return t});return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",function(t){var n=e.node(t);return n.id}).style("opacity",0),r.applyTransition(a,e).style("opacity",1),a.each(function(t){var n=e.node(t),r=d3.select(this);d3.select(this).append("rect");var a=r.append("g").attr("class","label");i(a,n,n.clusterLabelPos)}),a.selectAll("rect").each(function(t){var n=e.node(t),i=d3.select(this);r.applyStyle(i,n.style)}),r.applyTransition(a.exit(),e).style("opacity",0).remove(),a}var r=t("./util"),i=t("./label/add-label");e.exports=n},{"./label/add-label":19,"./util":28}],5:[function(t,e){"use strict";function n(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),function(t){return a.edgeToId(t)}).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),n.each(function(t){var n=e.edge(t),a=i(o.select(this),e.edge(t),0,0).classed("label",!0),u=a.node().getBBox();n.labelId&&a.attr("id",n.labelId),r.has(n,"width")||(n.width=u.width),r.has(n,"height")||(n.height=u.height)}),a.applyTransition(n.exit(),e).style("opacity",0).remove(),n}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");e.exports=n},{"./d3":8,"./label/add-label":19,"./lodash":22,"./util":28}],6:[function(t,e){"use strict";function n(t,e,n){var i=t.selectAll("g.edgePath").data(e.edges(),function(t){return l.edgeToId(t)}).classed("update",!0);return o(i,e),u(i,e),l.applyTransition(i,e).style("opacity",1),i.each(function(t){var n=h.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),l.applyClass(n,r["class"],(n.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(t){var n=e.edge(t);n.arrowheadId=s.uniqueId("arrowhead");var i=h.select(this).attr("marker-end",function(){return"url(#"+n.arrowheadId+")"}).style("fill","none");l.applyTransition(i,e).attr("d",function(t){return r(e,t)}),l.applyStyle(i,n.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(t){var r=e.edge(t),i=n[r.arrowhead];i(h.select(this),r.arrowheadId,r,"arrowhead")}),i}function r(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(c(r,o[0])),o.push(c(a,o[o.length-1])),i(n,o)}function i(t,e){var n=h.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return s.has(t,"lineInterpolate")&&n.interpolate(t.lineInterpolate),s.has(t,"lineTension")&&n.tension(Number(t.lineTension)),n(e)}function a(t){var e=t.getBBox(),n=t.getTransformToElement(t.ownerSVGElement).translate(e.width/2,e.height/2);return{x:n.e,y:n.f}}function o(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",function(t){var n=e.edge(t),r=e.node(t.v).elem,o=s.range(n.points.length).map(function(){return a(r)});return i(n,o)}),n.append("defs")}function u(t,e){var n=t.exit();l.applyTransition(n,e).style("opacity",0).remove(),l.applyTransition(n.select("path.path"),e).attr("d",function(t){var n=e.node(t.v);if(n){var r=s.range(this.pathSegList.length).map(function(){return n});return i({},r)}return h.select(this).attr("d")})}var s=t("./lodash"),c=t("./intersect/intersect-node"),l=t("./util"),h=t("./d3");e.exports=n},{"./d3":8,"./intersect/intersect-node":15,"./lodash":22,"./util":28}],7:[function(t,e){"use strict";function n(t,e,n){var u=e.nodes().filter(function(t){return!a.isSubgraph(e,t)}),s=t.selectAll("g.node").data(u,function(t){return t}).classed("update",!0);return s.selectAll("*").remove(),s.enter().append("g").attr("class","node").style("opacity",0),s.each(function(t){var u=e.node(t),s=o.select(this),c=s.append("g").attr("class","label"),l=i(c,u),h=n[u.shape],f=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&s.attr("id",u.id),u.labelId&&c.attr("id",u.labelId),a.applyClass(s,u["class"],(s.classed("update")?"update ":"")+"node"),r.has(u,"width")&&(f.width=u.width),r.has(u,"height")&&(f.height=u.height),f.width+=u.paddingLeft+u.paddingRight,f.height+=u.paddingTop+u.paddingBottom,c.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=h(o.select(this),f,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height}),a.applyTransition(s.exit(),e).style("opacity",0).remove(),s}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");e.exports=n},{"./d3":8,"./label/add-label":19,"./lodash":22,"./util":28}],8:[function(t,e){e.exports=window.d3},{}],9:[function(t,e){var n;if(t)try{n=t("dagre")}catch(r){}n||(n=window.dagre),e.exports=n},{dagre:30}],10:[function(t,e){var n;if(t)try{n=t("graphlib")}catch(r){}n||(n=window.graphlib),e.exports=n},{graphlib:60}],11:[function(t,e){e.exports={node:t("./intersect-node"),circle:t("./intersect-circle"),ellipse:t("./intersect-ellipse"),polygon:t("./intersect-polygon"),rect:t("./intersect-rect")}},{"./intersect-circle":12,"./intersect-ellipse":13,"./intersect-node":15,"./intersect-polygon":16,"./intersect-rect":17}],12:[function(t,e){function n(t,e,n){return r(t,e,e,n)}var r=t("./intersect-ellipse");e.exports=n},{"./intersect-ellipse":13}],13:[function(t,e){function n(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,s=Math.sqrt(e*e*u*u+n*n*o*o),c=Math.abs(e*n*o/s);r.x<i&&(c=-c);var l=Math.abs(e*n*u/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}e.exports=n},{}],14:[function(t,e){function n(t,e,n,i){var a,o,u,s,c,l,h,f,d,p,g,y,m,v,b;return a=e.y-t.y,u=t.x-e.x,c=e.x*t.y-t.x*e.y,d=a*n.x+u*n.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&r(d,p)||(o=i.y-n.y,s=n.x-i.x,l=i.x*n.y-n.x*i.y,h=o*t.x+s*t.yy+l,f=o*e.x+s*e.y+l,0!==h&&0!==f&&r(h,f)||(g=a*s-o*u,0===g))?void 0:(y=Math.abs(g/2),m=u*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=o*c-a*l,b=0>m?(m-y)/g:(m+y)/g,{x:v,y:b})}function r(t,e){return t*e>0}e.exports=n},{}],15:[function(t,e){function n(t,e){return t.intersect(e)}e.exports=n},{}],16:[function(t,e){function n(t,e,n){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach(function(t){u=Math.min(u,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-u,l=a-t.height/2-s,h=0;h<e.length;h++){var f=e[h],d=e[h<e.length-1?h+1:0],p=r(t,n,{x:c+f.x,y:l+f.y},{x:c+d.x,y:l+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,u=e.y-n.y,s=Math.sqrt(o*o+u*u);return s>a?-1:a===s?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}var r=t("./intersect-line");e.exports=n},{"./intersect-line":14}],17:[function(t,e){function n(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,s=t.width/2,c=t.height/2;return Math.abs(u)*s>Math.abs(o)*c?(0>u&&(c=-c),n=0===u?0:c*o/u,r=c):(0>o&&(s=-s),n=s,r=0===o?0:s*u/o),{x:i+n,y:a+r}}e.exports=n},{}],18:[function(t,e){function n(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div"),a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o,u;return i.each(function(){o=this.clientWidth,u=this.clientHeight}),n.attr("width",o).attr("height",u),n}var r=t("../util");e.exports=n},{"../util":28}],19:[function(t,e){function n(t,e,n){var o=e.label,u=t.append("g");"svg"===e.labelType?a(u,e):"string"!=typeof o||"html"===e.labelType?i(u,e):r(u,e);var s,c=u.node().getBBox();switch(n){case"top":s=-e.height/2;break;case"bottom":s=e.height/2-c.height;break;default:s=-c.height/2}return u.attr("transform","translate("+-c.width/2+","+s+")"),u}var r=t("./add-text-label"),i=t("./add-html-label"),a=t("./add-svg-label");e.exports=n},{"./add-html-label":18,"./add-svg-label":20,"./add-text-label":21}],20:[function(t,e){function n(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}var r=t("../util");e.exports=n},{"../util":28}],21:[function(t,e){function n(t,e){for(var n=t.append("text"),a=r(e.label).split("\n"),o=0;o<a.length;o++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[o]);return i.applyStyle(n,e.labelStyle),n}function r(t){for(var e,n="",r=!1,i=0;i<t.length;++i)if(e=t[i],r){switch(e){case"n":n+="\n";break;default:n+=e}r=!1}else"\\"===e?r=!0:n+=e;return n}var i=t("../util");e.exports=n},{"../util":28}],22:[function(t,e){var n;if(t)try{n=t("lodash")}catch(r){}n||(n=window._),e.exports=n},{lodash:80}],23:[function(t,e){"use strict";function n(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}var a=t.filter(function(){return!i.select(this).classed("update")});a.attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n),r.applyTransition(a.selectAll("rect"),e).attr("width",function(t){return e.node(t).width}).attr("height",function(t){return e.node(t).height}).attr("x",function(t){var n=e.node(t);return-n.width/2}).attr("y",function(t){var n=e.node(t);return-n.height/2})}var r=t("./util"),i=t("./d3");e.exports=n},{"./d3":8,"./util":28}],24:[function(t,e){"use strict";function n(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}var o=t.filter(function(){return!i.select(this).classed("update")});o.attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}var r=t("./util"),i=t("./d3"),a=t("./lodash");e.exports=n},{"./d3":8,"./lodash":22,"./util":28}],25:[function(t,e){"use strict";function n(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}var a=t.filter(function(){return!i.select(this).classed("update")});a.attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}var r=t("./util"),i=t("./d3");e.exports=n},{"./d3":8,"./util":28}],26:[function(t,e){function n(){var e=t("./create-nodes"),n=t("./create-clusters"),o=t("./create-edge-labels"),s=t("./create-edge-paths"),c=t("./position-nodes"),l=t("./position-edge-labels"),h=t("./position-clusters"),f=t("./shapes"),d=t("./arrows"),p=function(t,p){r(p);var g=a(t,"output"),y=a(g,"clusters"),m=a(g,"edgePaths"),v=o(a(g,"edgeLabels"),p),b=e(a(g,"nodes"),p,f);u(p),c(b,p),l(v,p),s(m,p,d);var _=n(y,p);h(_,p),i(p)};return p.createNodes=function(t){return arguments.length?(e=t,p):e},p.createClusters=function(t){return arguments.length?(n=t,p):n},p.createEdgeLabels=function(t){return arguments.length?(o=t,p):o},p.createEdgePaths=function(t){return arguments.length?(s=t,p):s},p.shapes=function(t){return arguments.length?(f=t,p):f},p.arrows=function(t){return arguments.length?(d=t,p):d},p}function r(t){t.nodes().forEach(function(e){var n=t.node(e);o.has(n,"label")||t.children(e).length||(n.label=e),o.has(n,"paddingX")&&o.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),o.has(n,"paddingY")&&o.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),o.has(n,"padding")&&o.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),o.defaults(n,s),o.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){n[t]=Number(n[t])}),o.has(n,"width")&&(n._prevWidth=n.width),o.has(n,"height")&&(n._prevHeight=n.height)}),t.edges().forEach(function(e){var n=t.edge(e);o.has(n,"label")||(n.label=""),o.defaults(n,c)})}function i(t){o.each(t.nodes(),function(e){var n=t.node(e);o.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,o.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight
})}function a(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}var o=t("./lodash"),u=t("./dagre").layout;e.exports=n;var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},c={arrowhead:"normal",lineInterpolate:"linear"}},{"./arrows":3,"./create-clusters":4,"./create-edge-labels":5,"./create-edge-paths":6,"./create-nodes":7,"./dagre":9,"./lodash":22,"./position-clusters":23,"./position-edge-labels":24,"./position-nodes":25,"./shapes":27}],27:[function(t,e){"use strict";function n(t,e,n){var r=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return o(n,t)},r}function r(t,e,n){var r=e.width/2,i=e.height/2,a=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",i);return n.intersect=function(t){return u(n,r,i,t)},a}function i(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return s(n,r,t)},i}function a(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" "));return n.intersect=function(t){return c(n,a,t)},o}var o=t("./intersect/intersect-rect"),u=t("./intersect/intersect-ellipse"),s=t("./intersect/intersect-circle"),c=t("./intersect/intersect-polygon");e.exports={rect:n,ellipse:r,circle:i,diamond:a}},{"./intersect/intersect-circle":12,"./intersect/intersect-ellipse":13,"./intersect/intersect-polygon":16,"./intersect/intersect-rect":17}],28:[function(t,e){function n(t,e){return!!t.children(e).length}function r(t){return i(t.v)+":"+i(t.w)+":"+i(t.name)}function i(t){return t?String(t).replace(c,"\\:"):""}function a(t,e){e&&t.attr("style",e)}function o(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))}function u(t,e){var n=e.graph();if(s.isPlainObject(n)){var r=n.transition;if(s.isFunction(r))return r(t)}return t}var s=t("./lodash");e.exports={isSubgraph:n,edgeToId:r,applyStyle:a,applyClass:o,applyTransition:u};var c=/:/g},{"./lodash":22}],29:[function(t,e){e.exports="0.4.10"},{}],30:[function(t,e){e.exports={graphlib:t("./lib/graphlib"),layout:t("./lib/layout"),debug:t("./lib/debug"),util:{time:t("./lib/util").time,notime:t("./lib/util").notime},version:t("./lib/version")}},{"./lib/debug":35,"./lib/graphlib":36,"./lib/layout":38,"./lib/util":58,"./lib/version":59}],31:[function(t,e){"use strict";function n(t){function e(t){return function(e){return t.edge(e).weight}}var n="greedy"===t.graph().acyclicer?o(t,e(t)):r(t);a.each(n,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,a.uniqueId("rev"))})}function r(t){function e(o){a.has(i,o)||(i[o]=!0,r[o]=!0,a.each(t.outEdges(o),function(t){a.has(r,t.w)?n.push(t):e(t.w)}),delete r[o])}var n=[],r={},i={};return a.each(t.nodes(),e),n}function i(t){a.each(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}var a=t("./lodash"),o=t("./greedy-fas");e.exports={run:n,undo:i}},{"./greedy-fas":37,"./lodash":39}],32:[function(t,e){function n(t){function e(n){var a=t.children(n),o=t.node(n);if(a.length&&i.each(a,e),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,s=o.maxRank+1;s>u;++u)r(t,"borderLeft","_bl",n,o,u),r(t,"borderRight","_br",n,o,u)}}i.each(t.children(),e)}function r(t,e,n,r,i,o){var u={width:0,height:0,rank:o,borderType:e},s=i[e][o-1],c=a.addDummyNode(t,"border",u,n);i[e][o]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var i=t("./lodash"),a=t("./util");e.exports=n},{"./lodash":39,"./util":58}],33:[function(t,e){"use strict";function n(t){var e=t.graph().rankdir.toLowerCase();("lr"===e||"rl"===e)&&i(t)}function r(t){var e=t.graph().rankdir.toLowerCase();("bt"===e||"rl"===e)&&o(t),("lr"===e||"rl"===e)&&(s(t),i(t))}function i(t){l.each(t.nodes(),function(e){a(t.node(e))}),l.each(t.edges(),function(e){a(t.edge(e))})}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){l.each(t.nodes(),function(e){u(t.node(e))}),l.each(t.edges(),function(e){var n=t.edge(e);l.each(n.points,u),l.has(n,"y")&&u(n)})}function u(t){t.y=-t.y}function s(t){l.each(t.nodes(),function(e){c(t.node(e))}),l.each(t.edges(),function(e){var n=t.edge(e);l.each(n.points,c),l.has(n,"x")&&c(n)})}function c(t){var e=t.x;t.x=t.y,t.y=e}var l=t("./lodash");e.exports={adjust:n,undo:r}},{"./lodash":39}],34:[function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){return"_next"!==t&&"_prev"!==t?e:void 0}e.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;return e!==t?(r(e),e):void 0},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},{}],35:[function(t,e){function n(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.each(t.nodes(),function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)}),r.each(t.edges(),function(t){n.setEdge(t.v,t.w,{},t.name)}),r.each(e,function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,function(t,e){return n.setEdge(t,e,{style:"invis"}),e})}),n}var r=t("./lodash"),i=t("./util"),a=t("./graphlib").Graph;e.exports={debugOrdering:n}},{"./graphlib":36,"./lodash":39,"./util":58}],36:[function(t,e){e.exports=t(10)},{graphlib:60}],37:[function(t,e){function n(t,e){if(t.nodeCount()<=1)return[];var n=a(t,e||l),i=r(n.graph,n.buckets,n.zeroIdx);return u.flatten(u.map(i,function(e){return t.outEdges(e.v,e.w)}),!0)}function r(t,e,n){for(var r,a=[],o=e[e.length-1],u=e[0];t.nodeCount();){for(;r=u.dequeue();)i(t,e,n,r);for(;r=o.dequeue();)i(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){a=a.concat(i(t,e,n,r,!0));break}}return a}function i(t,e,n,r,i){var a=i?[]:void 0;return u.each(t.inEdges(r.v),function(r){var u=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=u,o(e,n,s)}),u.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,u=t.node(a);u["in"]-=i,o(e,n,u)}),t.removeNode(r.v),a}function a(t,e){var n=new s,r=0,i=0;u.each(t.nodes(),function(t){n.setNode(t,{v:t,"in":0,out:0})}),u.each(t.edges(),function(t){var a=n.edge(t.v,t.w)||0,o=e(t),u=a+o;n.setEdge(t.v,t.w,u),i=Math.max(i,n.node(t.v).out+=o),r=Math.max(r,n.node(t.w)["in"]+=o)});var a=u.range(i+r+3).map(function(){return new c}),l=r+1;return u.each(n.nodes(),function(t){o(a,l,n.node(t))}),{graph:n,buckets:a,zeroIdx:l}}function o(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}var u=t("./lodash"),s=t("./graphlib").Graph,c=t("./data/list");e.exports=n;var l=u.constant(1)},{"./data/list":34,"./graphlib":36,"./lodash":39}],38:[function(t,e){"use strict";function n(t,e){var n=e&&e.debugTiming?L.time:L.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return a(t)});n(" runLayout",function(){r(e,n)}),n(" updateInputGraph",function(){i(t,e)})})}function r(t,e){e(" makeSpaceForEdgeLabels",function(){o(t)}),e(" removeSelfEdges",function(){g(t)}),e(" acyclic",function(){x.run(t)}),e(" nestingGraph.run",function(){M.run(t)}),e(" rank",function(){A(L.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){u(t)}),e(" removeEmptyRanks",function(){D(t)}),e(" nestingGraph.cleanup",function(){M.cleanup(t)}),e(" normalizeRanks",function(){k(t)}),e(" assignRankMinMax",function(){s(t)}),e(" removeEdgeLabelProxies",function(){c(t)}),e(" normalize.run",function(){w.run(t)}),e(" parentDummyChains",function(){E(t)}),e(" addBorderSegments",function(){S(t)}),e(" order",function(){T(t)}),e(" insertSelfEdges",function(){y(t)}),e(" adjustCoordinateSystem",function(){C.adjust(t)}),e(" position",function(){F(t)}),e(" positionSelfEdges",function(){m(t)}),e(" removeBorderNodes",function(){p(t)}),e(" normalize.undo",function(){w.undo(t)}),e(" fixupEdgeLabelCoords",function(){f(t)}),e(" undoCoordinateSystem",function(){C.undo(t)}),e(" translateGraph",function(){l(t)}),e(" assignNodeIntersects",function(){h(t)}),e(" reversePoints",function(){d(t)}),e(" acyclic.undo",function(){x.undo(t)})}function i(t,e){_.each(t.nodes(),function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))}),_.each(t.edges(),function(n){var r=t.edge(n),i=e.edge(n);r.points=i.points,_.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}function a(t){var e=new B({multigraph:!0,compound:!0}),n=b(t.graph());return e.setGraph(_.merge({},O,v(n,N),_.pick(n,I))),_.each(t.nodes(),function(n){var r=b(t.node(n));e.setNode(n,_.defaults(v(r,R),q)),e.setParent(n,t.parent(n))}),_.each(t.edges(),function(n){var r=b(t.edge(n));e.setEdge(n,_.merge({},U,v(r,P),_.pick(r,j)))}),e}function o(t){var e=t.graph();e.ranksep/=2,_.each(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function u(t){_.each(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),a={rank:(i.rank-r.rank)/2+r.rank,e:e};L.addDummyNode(t,"edge-proxy",a,"_ep")}})}function s(t){var e=0;_.each(t.nodes(),function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=_.max(e,r.maxRank))}),t.graph().maxRank=e}function c(t){_.each(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}function l(t){function e(t){var e=t.x,o=t.y,u=t.width,s=t.height;n=Math.min(n,e-u/2),r=Math.max(r,e+u/2),i=Math.min(i,o-s/2),a=Math.max(a,o+s/2)}var n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,s=o.marginy||0;_.each(t.nodes(),function(n){e(t.node(n))}),_.each(t.edges(),function(n){var r=t.edge(n);_.has(r,"x")&&e(r)}),n-=u,i-=s,_.each(t.nodes(),function(e){var r=t.node(e);r.x-=n,r.y-=i}),_.each(t.edges(),function(e){var r=t.edge(e);_.each(r.points,function(t){t.x-=n,t.y-=i}),_.has(r,"x")&&(r.x-=n),_.has(r,"y")&&(r.y-=i)}),o.width=r-n+u,o.height=a-i+s}function h(t){_.each(t.edges(),function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(L.intersectRect(a,n)),i.points.push(L.intersectRect(o,r))})}function f(t){_.each(t.edges(),function(e){var n=t.edge(e);if(_.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}function d(t){_.each(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}function p(t){_.each(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(_.last(n.borderLeft)),o=t.node(_.last(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),_.each(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}function g(t){_.each(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}function y(t){var e=L.buildLayerMatrix(t);_.each(e,function(e){var n=0;_.each(e,function(e,r){var i=t.node(e);i.order=r+n,_.each(i.selfEdges,function(e){L.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:r+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}function m(t){_.each(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],n.label.x=n.x,n.label.y=n.y}})}function v(t,e){return _.mapValues(_.pick(t,e),Number)}function b(t){var e={};return _.each(t,function(t,n){e[n.toLowerCase()]=t}),e}var _=t("./lodash"),x=t("./acyclic"),w=t("./normalize"),A=t("./rank"),k=t("./util").normalizeRanks,E=t("./parent-dummy-chains"),D=t("./util").removeEmptyRanks,M=t("./nesting-graph"),S=t("./add-border-segments"),C=t("./coordinate-system"),T=t("./order"),F=t("./position"),L=t("./util"),B=t("./graphlib").Graph;e.exports=n;var N=["nodesep","edgesep","ranksep","marginx","marginy"],O={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},I=["acyclicer","ranker","rankdir","align"],R=["width","height"],q={width:0,height:0},P=["minlen","weight","width","height","labeloffset"],U={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},j=["labelpos"]},{"./acyclic":31,"./add-border-segments":32,"./coordinate-system":33,"./graphlib":36,"./lodash":39,"./nesting-graph":40,"./normalize":41,"./order":46,"./parent-dummy-chains":51,"./position":53,"./rank":55,"./util":58}],39:[function(t,e){e.exports=t(22)},{lodash:80}],40:[function(t,e){function n(t){var e=s.addDummyNode(t,"root",{},"_root"),n=i(t),o=u.max(n)-1,c=2*o+1;t.graph().nestingRoot=e,u.each(t.edges(),function(e){t.edge(e).minlen*=c});var l=a(t)+1;u.each(t.children(),function(i){r(t,e,c,l,o,n,i)}),t.graph().nodeRankFactor=c}function r(t,e,n,i,a,o,c){var l=t.children(c);if(!l.length)return void(c!==e&&t.setEdge(e,c,{weight:0,minlen:n}));var h=s.addBorderNode(t,"_bt"),f=s.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(h,c),d.borderTop=h,t.setParent(f,c),d.borderBottom=f,u.each(l,function(u){r(t,e,n,i,a,o,u);var s=t.node(u),l=s.borderTop?s.borderTop:u,d=s.borderBottom?s.borderBottom:u,p=s.borderTop?i:2*i,g=l!==d?1:a-o[c]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:a+o[c]})}function i(t){function e(r,i){var a=t.children(r);a&&a.length&&u.each(a,function(t){e(t,i+1)}),n[r]=i}var n={};return u.each(t.children(),function(t){e(t,1)}),n}function a(t){return u.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}function o(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,u.each(t.edges(),function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)})}var u=t("./lodash"),s=t("./util");e.exports={run:n,cleanup:o}},{"./lodash":39,"./util":58}],41:[function(t,e){"use strict";function n(t){t.graph().dummyChains=[],a.each(t.edges(),function(e){r(t,e)})}function r(t,e){var n=e.v,r=t.node(n).rank,i=e.w,a=t.node(i).rank,u=e.name,s=t.edge(e),c=s.labelRank;if(a!==r+1){t.removeEdge(e);var l,h,f;for(f=0,++r;a>r;++f,++r)s.points=[],h={width:0,height:0,edgeLabel:s,edgeObj:e,rank:r},l=o.addDummyNode(t,"edge",h,"_d"),r===c&&(h.width=s.width,h.height=s.height,h.dummy="edge-label",h.labelpos=s.labelpos),t.setEdge(n,l,{weight:s.weight},u),0===f&&t.graph().dummyChains.push(l),n=l;t.setEdge(n,i,{weight:s.weight},u)}}function i(t){a.each(t.graph().dummyChains,function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)})}var a=t("./lodash"),o=t("./util");e.exports={run:n,undo:i}},{"./lodash":39,"./util":58}],42:[function(t,e){function n(t,e,n){var i,a={};r.each(n,function(n){for(var r,o,u=t.parent(n);u;){if(r=t.parent(u),r?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void e.setEdge(o,u);u=r}})}var r=t("../lodash");e.exports=n},{"../lodash":39}],43:[function(t,e){function n(t,e){return r.map(e,function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}})}var r=t("../lodash");e.exports=n},{"../lodash":39}],44:[function(t,e){function n(t,e,n){var o=r(t),u=new a({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(e){return t.node(e)});return i.each(t.nodes(),function(r){var a=t.node(r),s=t.parent(r);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(u.setNode(r),u.setParent(r,s||o),i.each(t[n](r),function(e){var n=e.v===r?e.w:e.v,a=u.edge(n,r),o=i.isUndefined(a)?0:a.weight;u.setEdge(n,r,{weight:t.edge(e).weight+o})}),i.has(a,"minRank")&&u.setNode(r,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),u}function r(t){for(var e;t.hasNode(e=i.uniqueId("_root")););return e}var i=t("../lodash"),a=t("../graphlib").Graph;e.exports=n},{"../graphlib":36,"../lodash":39}],45:[function(t,e){"use strict";function n(t,e){for(var n=0,i=1;i<e.length;++i)n+=r(t,e[i-1],e[i]);return n}function r(t,e,n){for(var r=i.zipObject(n,i.map(n,function(t,e){return e})),a=i.flatten(i.map(e,function(e){return i.chain(t.outEdges(e)).map(function(e){return{pos:r[e.w],weight:t.edge(e).weight}}).sortBy("pos").value()}),!0),o=1;o<n.length;)o<<=1;var u=2*o-1;o-=1;var s=i.map(new Array(u),function(){return 0}),c=0;return i.each(a.forEach(function(t){var e=t.pos+o;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),e=e-1>>1,s[e]+=t.weight;c+=t.weight*n})),c}var i=t("../lodash");e.exports=n},{"../lodash":39}],46:[function(t,e){"use strict";function n(t){var e=d.maxRank(t),n=r(t,o.range(1,e+1),"inEdges"),c=r(t,o.range(e-1,-1,-1),"outEdges"),l=u(t);a(t,l);for(var h,f=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?n:c,p%4>=2),l=d.buildLayerMatrix(t);var y=s(t,l);f>y&&(g=0,h=o.cloneDeep(l),f=y)}a(t,h)}function r(t,e,n){return o.map(e,function(e){return l(t,e,n)})}function i(t,e){var n=new f;o.each(t,function(t){var r=t.graph().root,i=c(t,r,n,e);o.each(i.vs,function(e,n){t.node(e).order=n}),h(t,n,i.vs)})}function a(t,e){o.each(e,function(e){o.each(e,function(e,n){t.node(e).order=n})})}var o=t("../lodash"),u=t("./init-order"),s=t("./cross-count"),c=t("./sort-subgraph"),l=t("./build-layer-graph"),h=t("./add-subgraph-constraints"),f=t("../graphlib").Graph,d=t("../util");e.exports=n},{"../graphlib":36,"../lodash":39,"../util":58,"./add-subgraph-constraints":42,"./build-layer-graph":44,"./cross-count":45,"./init-order":47,"./sort-subgraph":49}],47:[function(t,e){"use strict";function n(t){function e(i){if(!r.has(n,i)){n[i]=!0;var a=t.node(i);o[a.rank].push(i),r.each(t.successors(i),e)}}var n={},i=r.filter(t.nodes(),function(e){return!t.children(e).length}),a=r.max(r.map(i,function(e){return t.node(e).rank})),o=r.map(r.range(a+1),function(){return[]}),u=r.sortBy(i,function(e){return t.node(e).rank});return r.each(u,e),o}var r=t("../lodash");e.exports=n},{"../lodash":39}],48:[function(t,e){"use strict";function n(t,e){var n={};a.each(t,function(t,e){var r=n[t.v]={indegree:0,"in":[],out:[],vs:[t.v],i:e};a.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.each(e.edges(),function(t){var e=n[t.v],r=n[t.w];a.isUndefined(e)||a.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))});var i=a.filter(n,function(t){return!t.indegree});return r(i)}function r(t){function e(t){return function(e){e.merged||(a.isUndefined(e.barycenter)||a.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&i(t,e)}}function n(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}for(var r=[];t.length;){var o=t.pop();r.push(o),a.each(o["in"].reverse(),e(o)),a.each(o.out,n(o))}return a.chain(r).filter(function(t){return!t.merged}).map(function(t){return a.pick(t,["vs","i","barycenter","weight"])}).value()}function i(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}var a=t("../lodash");e.exports=n},{"../lodash":39}],49:[function(t,e){function n(t,e,c,l){var h=t.children(e),f=t.node(e),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=a.filter(h,function(t){return t!==d&&t!==p}));var y=o(t,h);a.each(y,function(e){if(t.children(e.v).length){var r=n(t,e.v,c,l);g[e.v]=r,a.has(r,"barycenter")&&i(e,r)}});var m=u(y,c);r(m,g);var v=s(m,l);if(d&&(v.vs=a.flatten([d,v.vs,p],!0),t.predecessors(d).length)){var b=t.node(t.predecessors(d)[0]),_=t.node(t.predecessors(p)[0]);a.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+b.order+_.order)/(v.weight+2),v.weight+=2}return v}function r(t,e){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}function i(t,e){a.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}var a=t("../lodash"),o=t("./barycenter"),u=t("./resolve-conflicts"),s=t("./sort");e.exports=n},{"../lodash":39,"./barycenter":43,"./resolve-conflicts":48,"./sort":50}],50:[function(t,e){function n(t,e){var n=o.partition(t,function(t){return a.has(t,"barycenter")}),u=n.lhs,s=a.sortBy(n.rhs,function(t){return-t.i}),c=[],l=0,h=0,f=0;u.sort(i(!!e)),f=r(c,s,f),a.each(u,function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=r(c,s,f)});var d={vs:a.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}function r(t,e,n){for(var r;e.length&&(r=a.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}function i(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}var a=t("../lodash"),o=t("../util");e.exports=n},{"../lodash":39,"../util":58}],51:[function(t,e){function n(t){var e=i(t);a.each(t.graph().dummyChains,function(n){for(var i=t.node(n),a=i.edgeObj,o=r(t,e,a.v,a.w),u=o.path,s=o.lca,c=0,l=u[c],h=!0;n!==a.w;){if(i=t.node(n),h){for(;(l=u[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(h=!1)}if(!h){for(;c<u.length-1&&t.node(l=u[c+1]).minRank<=i.rank;)c++;l=u[c]}t.setParent(n,l),n=t.successors(n)[0]}})}function r(t,e,n,r){var i,a,o=[],u=[],s=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do i=t.parent(i),o.push(i);while(i&&(e[i].low>s||c>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}function i(t){function e(i){var o=r;a.each(t.children(i),e),n[i]={low:o,lim:r++}}var n={},r=0;return a.each(t.children(),e),n}var a=t("./lodash");e.exports=n},{"./lodash":39}],52:[function(t,e){"use strict";function n(t,e){function n(e,n){var o=0,u=0,s=e.length,c=y.last(n);return y.each(n,function(e,l){var h=i(t,e),f=h?t.node(h).order:s;(h||e===c)&&(y.each(n.slice(u,l+1),function(e){y.each(t.predecessors(e),function(n){var i=t.node(n),u=i.order;!(o>u||u>f)||i.dummy&&t.node(e).dummy||a(r,n,e)})}),u=l+1,o=f)}),n}var r={};return y.reduce(e,n),r}function r(t,e){function n(e,n,r,o,u){var s;y.each(y.range(n,r),function(n){s=e[n],t.node(s).dummy&&y.each(t.predecessors(s),function(e){var n=t.node(e);n.dummy&&(n.order<o||n.order>u)&&a(i,e,s)})})}function r(e,r){var i,a=-1,o=0;return y.each(r,function(u,s){if("border"===t.node(u).dummy){var c=t.predecessors(u);c.length&&(i=t.node(c[0]).order,n(r,o,s,a,i),o=s,a=i)}n(r,o,r.length,i,e.length)}),r}var i={};return y.reduce(e,r),i}function i(t,e){return t.node(e).dummy?y.find(t.predecessors(e),function(e){return t.node(e).dummy}):void 0}function a(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function o(t,e,n){if(e>n){var r=e;e=n,n=r}return y.has(t[e],n)}function u(t,e,n,r){var i={},a={},u={};return y.each(e,function(t){y.each(t,function(t,e){i[t]=t,a[t]=t,u[t]=e})}),y.each(e,function(t){var e=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return u[t]});for(var c=(s.length-1)/2,l=Math.floor(c),h=Math.ceil(c);h>=l;++l){var f=s[l];a[t]===t&&e<u[f]&&!o(n,t,f)&&(a[f]=t,a[t]=i[t]=i[f],e=u[f])}}})}),{root:i,align:a}}function s(t,e,n,r,i){function a(t){y.has(l,t)||(l[t]=!0,u[t]=y.reduce(s.inEdges(t),function(t,e){return a(e.v),Math.max(t,u[e.v]+s.edge(e))},0))}function o(e){if(2!==l[e]){l[e]++;var n=t.node(e),r=y.reduce(s.outEdges(e),function(t,e){return o(e.w),Math.min(t,u[e.w]-s.edge(e))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&n.borderType!==h&&(u[e]=Math.max(u[e],r))}}var u={},s=c(t,e,n,i),l={};y.each(s.nodes(),a);var h=i?"borderLeft":"borderRight";return y.each(s.nodes(),o),y.each(r,function(t){u[t]=u[n[t]]}),u}function c(t,e,n,r){var i=new m,a=t.graph(),o=p(a.nodesep,a.edgesep,r);return y.each(e,function(e){var r;y.each(e,function(e){var a=n[e];if(i.setNode(a),r){var u=n[r],s=i.edge(u,a);i.setEdge(u,a,Math.max(o(t,e,r),s||0))}r=e})}),i}function l(t,e){return y.min(e,function(e){var n=y.min(e,function(e,n){return e-g(t,n)/2}),r=y.max(e,function(e,n){return e+g(t,n)/2});return r-n})}function h(t,e){var n=y.min(e),r=y.max(e);y.each(["u","d"],function(i){y.each(["l","r"],function(a){var o,u=i+a,s=t[u];s!==e&&(o="l"===a?n-y.min(s):r-y.max(s),o&&(t[u]=y.mapValues(s,function(t){return t+o})))})})}function f(t,e){return y.mapValues(t.ul,function(n,r){if(e)return t[e.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var e,i=v.buildLayerMatrix(t),a=y.merge(n(t,i),r(t,i)),o={};y.each(["u","d"],function(n){e="u"===n?i:y.values(i).reverse(),y.each(["l","r"],function(r){"r"===r&&(e=y.map(e,function(t){return y.values(t).reverse()}));var i=y.bind("u"===n?t.predecessors:t.successors,t),c=u(t,e,a,i),l=s(t,e,c.root,c.align,"r"===r);"r"===r&&(l=y.mapValues(l,function(t){return-t})),o[n+r]=l})});var c=l(t,o);return h(o,c),f(o,t.graph().align)}function p(t,e,n){return function(r,i,a){var o,u=r.node(i),s=r.node(a),c=0;if(c+=u.width/2,y.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(c+=n?o:-o),o=0,c+=(u.dummy?e:t)/2,c+=(s.dummy?e:t)/2,c+=s.width/2,y.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(c+=n?o:-o),o=0,c}}function g(t,e){return t.node(e).width}var y=t("../lodash"),m=t("../graphlib").Graph,v=t("../util");e.exports={positionX:d,findType1Conflicts:n,findType2Conflicts:r,addConflict:a,hasConflict:o,verticalAlignment:u,horizontalCompaction:s,alignCoordinates:h,findSmallestWidthAlignment:l,balance:f}},{"../graphlib":36,"../lodash":39,"../util":58}],53:[function(t,e){"use strict";function n(t){t=a.asNonCompoundGraph(t),r(t),i.each(o(t),function(e,n){t.node(n).x=e})}function r(t){var e=a.buildLayerMatrix(t),n=t.graph().ranksep,r=0;i.each(e,function(e){var a=i.max(i.map(e,function(e){return t.node(e).height}));i.each(e,function(e){t.node(e).y=r+a/2}),r+=a+n})}var i=t("../lodash"),a=t("../util"),o=t("./bk").positionX;e.exports=n},{"../lodash":39,"../util":58,"./bk":52}],54:[function(t,e){"use strict";function n(t){var e=new u({directed:!1}),n=t.nodes()[0],o=t.nodeCount();e.setNode(n,{});for(var c,l;r(e,t)<o;)c=i(e,t),l=e.hasNode(c.v)?s(t,c):-s(t,c),a(e,t,l);return e}function r(t,e){function n(r){o.each(e.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||s(e,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),n(o))})}return o.each(t.nodes(),n),t.nodeCount()}function i(t,e){return o.min(e.edges(),function(n){return t.hasNode(n.v)!==t.hasNode(n.w)?s(e,n):void 0})}function a(t,e,n){o.each(t.nodes(),function(t){e.node(t).rank+=n})}var o=t("../lodash"),u=t("../graphlib").Graph,s=t("./util").slack;e.exports=n},{"../graphlib":36,"../lodash":39,"./util":57}],55:[function(t,e){"use strict";function n(t){switch(t.graph().ranker){case"network-simplex":i(t);break;case"tight-tree":r(t);break;case"longest-path":c(t);break;default:i(t)}}function r(t){o(t),u(t)}function i(t){s(t)}var a=t("./util"),o=a.longestPath,u=t("./feasible-tree"),s=t("./network-simplex");e.exports=n;var c=o},{"./feasible-tree":54,"./network-simplex":56,"./util":57}],56:[function(t,e){"use strict";function n(t){t=_(t),m(t);var e=g(t);o(e),r(e,t);for(var n,i;n=s(e);)i=c(e,t,n),l(e,t,n,i)}function r(t,e){var n=b(t,t.nodes());n=n.slice(0,n.length-1),p.each(n,function(n){i(t,e,n)})}function i(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=a(t,e,n)}function a(t,e,n){var r=t.node(n),i=r.parent,a=!0,o=e.edge(n,i),u=0;return o||(a=!1,o=e.edge(i,n)),u=o.weight,p.each(e.nodeEdges(n),function(r){var o=r.v===n,s=o?r.w:r.v;if(s!==i){var c=o===a,l=e.edge(r).weight;if(u+=c?l:-l,f(t,n,s)){var h=t.edge(n,s).cutvalue;u+=c?-h:h}}}),u}function o(t,e){arguments.length<2&&(e=t.nodes()[0]),u(t,{},1,e)}function u(t,e,n,r,i){var a=n,o=t.node(r);return e[r]=!0,p.each(t.neighbors(r),function(i){p.has(e,i)||(n=u(t,e,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function s(t){return p.find(t.edges(),function(e){return t.edge(e).cutvalue<0})}function c(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var a=t.node(r),o=t.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var c=p.filter(e.edges(),function(e){return s===d(t,t.node(e.v),u)&&s!==d(t,t.node(e.w),u)});return p.min(c,function(t){return y(e,t)})}function l(t,e,n,i){var a=n.v,u=n.w;t.removeEdge(a,u),t.setEdge(i.v,i.w,{}),o(t),r(t,e),h(t,e)}function h(t,e){var n=p.find(t.nodes(),function(t){return!e.node(t).parent}),r=v(t,n);r=r.slice(1),p.each(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)})}function f(t,e,n){return t.hasEdge(e,n)}function d(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var p=t("../lodash"),g=t("./feasible-tree"),y=t("./util").slack,m=t("./util").longestPath,v=t("../graphlib").alg.preorder,b=t("../graphlib").alg.postorder,_=t("../util").simplify;e.exports=n,n.initLowLimValues=o,n.initCutValues=r,n.calcCutValue=a,n.leaveEdge=s,n.enterEdge=c,n.exchangeEdges=l},{"../graphlib":36,"../lodash":39,"../util":58,"./feasible-tree":54,"./util":57}],57:[function(t,e){"use strict";function n(t){function e(r){var a=t.node(r);if(i.has(n,r))return a.rank;n[r]=!0;var o=i.min(i.map(t.outEdges(r),function(n){return e(n.w)-t.edge(n).minlen}));return o===Number.POSITIVE_INFINITY&&(o=0),a.rank=o}var n={};i.each(t.sources(),e)}function r(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var i=t("../lodash");e.exports={longestPath:n,slack:r}},{"../lodash":39}],58:[function(t,e){"use strict";function n(t,e,n,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function r(t){var e=(new m).setGraph(t.graph());return y.each(t.nodes(),function(n){e.setNode(n,t.node(n))}),y.each(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e}function i(t){var e=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),y.each(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e}function a(t){var e=y.map(t.nodes(),function(e){var n={};return y.each(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return y.zipObject(t.nodes(),e)}function o(t){var e=y.map(t.nodes(),function(e){var n={};return y.each(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return y.zipObject(t.nodes(),e)}function u(t,e){var n=t.x,r=t.y,i=e.x-n,a=e.y-r,o=t.width/2,u=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(a)*o>Math.abs(i)*u?(0>a&&(u=-u),s=u*i/a,c=u):(0>i&&(o=-o),s=o,c=o*a/i),{x:n+s,y:r+c}}function s(t){var e=y.map(y.range(f(t)+1),function(){return[]});return y.each(t.nodes(),function(n){var r=t.node(n),i=r.rank;y.isUndefined(i)||(e[i][r.order]=n)}),e}function c(t){var e=y.min(y.map(t.nodes(),function(e){return t.node(e).rank}));y.each(t.nodes(),function(n){var r=t.node(n);y.has(r,"rank")&&(r.rank-=e)})}function l(t){var e=y.min(y.map(t.nodes(),function(e){return t.node(e).rank})),n=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-e;
n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(n,function(e,n){y.isUndefined(e)&&n%i!==0?--r:r&&y.each(e,function(e){t.node(e).rank+=r})})}function h(t,e,r,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=i),n(t,"border",a,e)}function f(t){return y.max(y.map(t.nodes(),function(e){var n=t.node(e).rank;return y.isUndefined(n)?void 0:n}))}function d(t,e){var n={lhs:[],rhs:[]};return y.each(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n}function p(t,e){var n=y.now();try{return e()}finally{console.log(t+" time: "+(y.now()-n)+"ms")}}function g(t,e){return e()}var y=t("./lodash"),m=t("./graphlib").Graph;e.exports={addDummyNode:n,simplify:r,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:u,buildLayerMatrix:s,normalizeRanks:c,removeEmptyRanks:l,addBorderNode:h,maxRank:f,partition:d,time:p,notime:g}},{"./graphlib":36,"./lodash":39}],59:[function(t,e){e.exports="0.7.3"},{}],60:[function(t,e){var n=t("./lib");e.exports={Graph:n.Graph,json:t("./lib/json"),alg:t("./lib/alg"),version:n.version}},{"./lib":76,"./lib/alg":67,"./lib/json":77}],61:[function(t,e){function n(t){function e(a){r.has(i,a)||(i[a]=!0,n.push(a),r.each(t.successors(a),e),r.each(t.predecessors(a),e))}var n,i={},a=[];return r.each(t.nodes(),function(t){n=[],e(t),n.length&&a.push(n)}),a}var r=t("../lodash");e.exports=n},{"../lodash":78}],62:[function(t,e){function n(t,e,n){i.isArray(e)||(e=[e]);var a=[],o={};return i.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);r(t,e,"post"===n,o,a)}),a}function r(t,e,n,a,o){i.has(a,e)||(a[e]=!0,n||o.push(e),i.each(t.neighbors(e),function(e){r(t,e,n,a,o)}),n&&o.push(e))}var i=t("../lodash");e.exports=n},{"../lodash":78}],63:[function(t,e){function n(t,e,n){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,e,n)},{})}var r=t("./dijkstra"),i=t("../lodash");e.exports=n},{"../lodash":78,"./dijkstra":64}],64:[function(t,e){function n(t,e,n,i){return r(t,String(e),n||o,i||function(e){return t.outEdges(e)})}function r(t,e,n,r){var i,o,u={},s=new a,c=function(t){var e=t.v!==i?t.v:t.w,r=u[e],a=n(t),c=o.distance+a;if(0>a)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+a);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(e,c))};for(t.nodes().forEach(function(t){var n=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:n},s.add(t,n)});s.size()>0&&(i=s.removeMin(),o=u[i],o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return u}var i=t("../lodash"),a=t("../data/priority-queue");e.exports=n;var o=i.constant(1)},{"../data/priority-queue":74,"../lodash":78}],65:[function(t,e){function n(t){return r.filter(i(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}var r=t("../lodash"),i=t("./tarjan");e.exports=n},{"../lodash":78,"./tarjan":72}],66:[function(t,e){function n(t,e,n){return r(t,e||a,n||function(e){return t.outEdges(e)})}function r(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var a=r[n];i.forEach(function(n){var r=a[t],i=e[n],o=a[n],u=r.distance+i.distance;u<o.distance&&(o.distance=u,o.predecessor=i.predecessor)})})}),r}var i=t("../lodash");e.exports=n;var a=i.constant(1)},{"../lodash":78}],67:[function(t,e){e.exports={components:t("./components"),dijkstra:t("./dijkstra"),dijkstraAll:t("./dijkstra-all"),findCycles:t("./find-cycles"),floydWarshall:t("./floyd-warshall"),isAcyclic:t("./is-acyclic"),postorder:t("./postorder"),preorder:t("./preorder"),prim:t("./prim"),tarjan:t("./tarjan"),topsort:t("./topsort")}},{"./components":61,"./dijkstra":64,"./dijkstra-all":63,"./find-cycles":65,"./floyd-warshall":66,"./is-acyclic":68,"./postorder":69,"./preorder":70,"./prim":71,"./tarjan":72,"./topsort":73}],68:[function(t,e){function n(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}var r=t("./topsort");e.exports=n},{"./topsort":73}],69:[function(t,e){function n(t,e){return r(t,e,"post")}var r=t("./dfs");e.exports=n},{"./dfs":62}],70:[function(t,e){function n(t,e){return r(t,e,"pre")}var r=t("./dfs");e.exports=n},{"./dfs":62}],71:[function(t,e){function n(t,e){function n(t){var n=t.v===o?t.w:t.v,r=c.priority(n);if(void 0!==r){var i=e(t);r>i&&(s[n]=o,c.decrease(n,i))}}var o,u=new i,s={},c=new a;if(0===t.nodeCount())return u;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),u.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(o=c.removeMin(),r.has(s,o))u.setEdge(o,s[o]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(o).forEach(n)}return u}var r=t("../lodash"),i=t("../graph"),a=t("../data/priority-queue");e.exports=n},{"../data/priority-queue":74,"../graph":75,"../lodash":78}],72:[function(t,e){function n(t){function e(u){var s=a[u]={onStack:!0,lowlink:n,index:n++};if(i.push(u),t.successors(u).forEach(function(t){r.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(e(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=i.pop(),a[c].onStack=!1,l.push(c);while(u!==c);o.push(l)}}var n=0,i=[],a={},o=[];return t.nodes().forEach(function(t){r.has(a,t)||e(t)}),o}var r=t("../lodash");e.exports=n},{"../lodash":78}],73:[function(t,e){function n(t){function e(u){if(i.has(a,u))throw new r;i.has(n,u)||(a[u]=!0,n[u]=!0,i.each(t.predecessors(u),e),delete a[u],o.push(u))}var n={},a={},o=[];if(i.each(t.sinks(),e),i.size(n)!==t.nodeCount())throw new r;return o}function r(){}var i=t("../lodash");e.exports=n,n.CycleException=r},{"../lodash":78}],74:[function(t,e){function n(){this._arr=[],this._keyIndices={}}var r=t("../lodash");e.exports=n,n.prototype.size=function(){return this._arr.length},n.prototype.keys=function(){return this._arr.map(function(t){return t.key})},n.prototype.has=function(t){return r.has(this._keyIndices,t)},n.prototype.priority=function(t){var e=this._keyIndices[t];return void 0!==e?this._arr[e].priority:void 0},n.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},n.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},n.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},n.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},n.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},n.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&(e=t>>1,!(n[e].priority<r));)this._swap(t,e),t=e},n.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},{"../lodash":78}],75:[function(t,e){"use strict";function n(t){this._isDirected=s.has(t,"directed")?t.directed:!0,this._isMultigraph=s.has(t,"multigraph")?t.multigraph:!1,this._isCompound=s.has(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=s.constant(void 0),this._defaultEdgeLabelFn=s.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,e){t[e]?t[e]++:t[e]=1}function i(t,e){--t[e]||delete t[e]}function a(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}return i+h+a+h+(s.isUndefined(r)?c:r)}function o(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return r&&(u.name=r),u}function u(t,e){return a(t,e.v,e.w,e.name)}var s=t("./lodash");e.exports=n;var c="\x00",l="\x00",h="";n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(t){return this._label=t,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultNodeLabelFn=t,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return s.keys(this._nodes)},n.prototype.sources=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._in[t])},this)},n.prototype.sinks=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._out[t])},this)},n.prototype.setNodes=function(t,e){var n=arguments;return s.each(t,function(t){n.length>1?this.setNode(t,e):this.setNode(t)},this),this},n.prototype.setNode=function(t,e){return s.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},n.prototype.node=function(t){return this._nodes[t]},n.prototype.hasNode=function(t){return s.has(this._nodes,t)},n.prototype.removeNode=function(t){var e=this;if(s.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],s.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),s.each(s.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],s.each(s.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},n.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(s.isUndefined(e))e=l;else{e+="";for(var n=e;!s.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},n.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},n.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==l)return e}},n.prototype.children=function(t){if(s.isUndefined(t)&&(t=l),this._isCompound){var e=this._children[t];if(e)return s.keys(e)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},n.prototype.predecessors=function(t){var e=this._preds[t];return e?s.keys(e):void 0},n.prototype.successors=function(t){var e=this._sucs[t];return e?s.keys(e):void 0},n.prototype.neighbors=function(t){var e=this.predecessors(t);return e?s.union(e,this.successors(t)):void 0},n.prototype.filterNodes=function(t){function e(t){var a=r.parent(t);return void 0===a||n.hasNode(a)?(i[t]=a,a):a in i?i[a]:e(a)}var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph()),s.each(this._nodes,function(e,r){t(r)&&n.setNode(r,e)},this),s.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,this.edge(t))},this);var r=this,i={};return this._isCompound&&s.each(n.nodes(),function(t){n.setParent(t,e(t))}),n},n.prototype.setDefaultEdgeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultEdgeLabelFn=t,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return s.values(this._edgeObjs)},n.prototype.setPath=function(t,e){var n=this,r=arguments;return s.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},n.prototype.setEdge=function(){var t,e,n,i,u=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,e=c.w,n=c.name,2===arguments.length&&(i=arguments[1],u=!0)):(t=c,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],u=!0)),t=""+t,e=""+e,s.isUndefined(n)||(n=""+n);var l=a(this._isDirected,t,e,n);if(s.has(this._edgeLabels,l))return u&&(this._edgeLabels[l]=i),this;if(!s.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=u?i:this._defaultEdgeLabelFn(t,e,n);var h=o(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,r(this._preds[e],t),r(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},n.prototype.edge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return this._edgeLabels[r]},n.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n);return s.has(this._edgeLabels,r)},n.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[e],t),i(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},n.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=s.values(n);return e?s.filter(r,function(t){return t.v===e}):r}},n.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=s.values(n);return e?s.filter(r,function(t){return t.w===e}):r}},n.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);return n?n.concat(this.outEdges(t,e)):void 0}},{"./lodash":78}],76:[function(t,e){e.exports={Graph:t("./graph"),version:t("./version")}},{"./graph":75,"./version":79}],77:[function(t,e){function n(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r(t),edges:i(t)};return o.isUndefined(t.graph())||(e.value=o.clone(t.graph())),e}function r(t){return o.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return o.isUndefined(n)||(i.value=n),o.isUndefined(r)||(i.parent=r),i})}function i(t){return o.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return o.isUndefined(e.name)||(r.name=e.name),o.isUndefined(n)||(r.value=n),r})}function a(t){var e=new u(t.options).setGraph(t.value);return o.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),o.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}var o=t("./lodash"),u=t("./graph");e.exports={write:n,read:a}},{"./graph":75,"./lodash":78}],78:[function(t,e){var n;if("function"==typeof t)try{n=t("lodash")}catch(r){}n||(n=window._),e.exports=n},{lodash:80}],79:[function(t,e){e.exports="1.0.7"},{}],80:[function(t,e,n){(function(t){(function(){function r(t,e){if(t!==e){var n=null===t,r=t===E,i=t===t,a=null===e,o=e===E,u=e===e;if(t>e&&!a||!i||n&&!o&&u||r&&u)return 1;if(e>t&&!n||!u||a&&!r&&i||o&&i)return-1}return 0}function i(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function a(t,e,n){if(e!==e)return y(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function o(t){return"function"==typeof t||!1}function u(t){return null==t?"":t+""}function s(t,e){for(var n=-1,r=t.length;++n<r&&e.indexOf(t.charAt(n))>-1;);return n}function c(t,e){for(var n=t.length;n--&&e.indexOf(t.charAt(n))>-1;);return n}function l(t,e){return r(t.criteria,e.criteria)||t.index-e.index}function h(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,u=a.length,s=n.length;++i<u;){var c=r(a[i],o[i]);if(c){if(i>=s)return c;var l=n[i];return c*("asc"===l||l===!0?1:-1)}}return t.index-e.index}function f(t){return Ve[t]}function d(t){return He[t]}function p(t,e,n){return e?t=We[t]:n&&(t=Ze[t]),"\\"+t}function g(t){return"\\"+Ze[t]}function y(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var a=t[i];if(a!==a)return i}return-1}function m(t){return!!t&&"object"==typeof t}function v(t){return 160>=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function b(t,e){for(var n=-1,r=t.length,i=-1,a=[];++n<r;)t[n]===e&&(t[n]=V,a[++i]=n);return a}function _(t,e){for(var n,r=-1,i=t.length,a=-1,o=[];++r<i;){var u=t[r],s=e?e(u,r,t):u;r&&n===s||(n=s,o[++a]=u)}return o}function x(t){for(var e=-1,n=t.length;++e<n&&v(t.charCodeAt(e)););return e}function w(t){for(var e=t.length;e--&&v(t.charCodeAt(e)););return e}function A(t){return Ge[t]}function k(t){function e(t){if(m(t)&&!Cs(t)&&!(t instanceof K)){if(t instanceof v)return t;if(eu.call(t,"__chain__")&&eu.call(t,"__wrapped__"))return di(t)}return new v(t)}function n(){}function v(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}function K(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Su,this.__views__=[]}function ee(){var t=new K(this.__wrapped__);return t.__actions__=tn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=tn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=tn(this.__views__),t}function re(){if(this.__filtered__){var t=new K(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ve(){var t=this.__wrapped__.value(),e=this.__dir__,n=Cs(t),r=0>e,i=n?t.length:0,a=Gr(0,i,this.__views__),o=a.start,u=a.end,s=u-o,c=r?u:o-1,l=this.__iteratees__,h=l.length,f=0,d=Au(s,this.__takeCount__);if(!n||U>i||i==s&&d==s)return rr(r&&n?t.reverse():t,this.__actions__);var p=[];t:for(;s--&&d>f;){c+=e;for(var g=-1,y=t[c];++g<h;){var m=l[g],v=m.iteratee,b=m.type,_=v(y);if(b==Y)y=_;else if(!_){if(b==j)continue t;break t}}p[f++]=y}return p}function He(){this.__data__={}}function Ge(t){return this.has(t)&&delete this.__data__[t]}function $e(t){return"__proto__"==t?E:this.__data__[t]}function We(t){return"__proto__"!=t&&eu.call(this.__data__,t)}function Ze(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Xe(t){var e=t?t.length:0;for(this.data={hash:mu(null),set:new hu};e--;)this.push(t[e])}function Ke(t,e){var n=t.data,r="string"==typeof e||Na(e)?n.set.has(e):n.hash[e];return r?0:-1}function Je(t){var e=this.data;"string"==typeof t||Na(t)?e.set.add(t):e.hash[t]=!0}function Qe(t,e){for(var n=-1,r=t.length,i=-1,a=e.length,o=jo(r+a);++n<r;)o[n]=t[n];for(;++i<a;)o[n++]=e[i];return o}function tn(t,e){var n=-1,r=t.length;for(e||(e=jo(r));++n<r;)e[n]=t[n];return e}function en(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function an(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function on(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function un(t,e,n,r){for(var i=-1,a=t.length,o=r,u=o;++i<a;){var s=t[i],c=+e(s);n(c,o)&&(o=c,u=s)}return u}function sn(t,e){for(var n=-1,r=t.length,i=-1,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[++i]=o)}return a}function cn(t,e){for(var n=-1,r=t.length,i=jo(r);++n<r;)i[n]=e(t[n],n,t);return i}function ln(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function hn(t,e,n,r){var i=-1,a=t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}function fn(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function dn(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function pn(t,e){for(var n=t.length,r=0;n--;)r+=+e(t[n])||0;return r}function gn(t,e){return t===E?e:t}function yn(t,e,n,r){return t!==E&&eu.call(r,n)?t:e}function mn(t,e,n){for(var r=-1,i=Us(e),a=i.length;++r<a;){var o=i[r],u=t[o],s=n(u,e[o],o,t,e);(s===s?s===u:u!==u)&&(u!==E||o in t)||(t[o]=s)}return t}function vn(t,e){return null==e?t:_n(e,Us(e),t)}function bn(t,e){for(var n=-1,r=null==t,i=!r&&Kr(t),a=i?t.length:0,o=e.length,u=jo(o);++n<o;){var s=e[n];u[n]=i?Jr(s,a)?t[s]:E:r?E:t[s]}return u}function _n(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var a=e[r];n[a]=t[a]}return n}function xn(t,e,n){var r=typeof t;return"function"==r?e===E?t:or(t,e,n):null==t?So:"object"==r?Un(t):e===E?No(t):jn(t,e)}function wn(t,e,n,r,i,a,o){var u;if(n&&(u=i?n(t,r,i):n(t)),u!==E)return u;if(!Na(t))return t;var s=Cs(t);if(s){if(u=$r(t),!e)return tn(t,u)}else{var c=ru.call(t),l=c==X;if(c!=Q&&c!=H&&(!l||i))return ze[c]?Zr(t,c,e):i?t:{};if(u=Wr(l?{}:t),!e)return vn(u,t)}a||(a=[]),o||(o=[]);for(var h=a.length;h--;)if(a[h]==t)return o[h];return a.push(t),o.push(u),(s?en:Ln)(t,function(r,i){u[i]=wn(r,e,n,i,t,a,o)}),u}function An(t,e,n){if("function"!=typeof t)throw new Xo(z);return fu(function(){t.apply(E,n)},e)}function kn(t,e){var n=t?t.length:0,r=[];if(!n)return r;var i=-1,o=zr(),u=o==a,s=u&&e.length>=U?gr(e):null,c=e.length;s&&(o=Ke,u=!1,e=s);t:for(;++i<n;){var l=t[i];if(u&&l===l){for(var h=c;h--;)if(e[h]===l)continue t;r.push(l)}else o(e,l,0)<0&&r.push(l)}return r}function En(t,e){var n=!0;return Iu(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Dn(t,e,n,r){var i=r,a=i;return Iu(t,function(t,o,u){var s=+e(t,o,u);(n(s,i)||s===r&&s===a)&&(i=s,a=t)}),a}function Mn(t,e,n,r){var i=t.length;for(n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),r=r===E||r>i?i:+r||0,0>r&&(r+=i),i=n>r?0:r>>>0,n>>>=0;i>n;)t[n++]=e;return t}function Sn(t,e){var n=[];return Iu(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Cn(t,e,n,r){var i;return n(t,function(t,n,a){return e(t,n,a)?(i=r?n:t,!1):void 0}),i}function Tn(t,e,n,r){r||(r=[]);for(var i=-1,a=t.length;++i<a;){var o=t[i];m(o)&&Kr(o)&&(n||Cs(o)||Ea(o))?e?Tn(o,e,n,r):ln(r,o):n||(r[r.length]=o)}return r}function Fn(t,e){return qu(t,e,to)}function Ln(t,e){return qu(t,e,Us)}function Bn(t,e){return Pu(t,e,Us)}function Nn(t,e){for(var n=-1,r=e.length,i=-1,a=[];++n<r;){var o=e[n];Ba(t[o])&&(a[++i]=o)}return a}function On(t,e,n){if(null!=t){n!==E&&n in hi(t)&&(e=[n]);for(var r=0,i=e.length;null!=t&&i>r;)t=t[e[r++]];return r&&r==i?t:E}}function In(t,e,n,r,i,a){return t===e?!0:null==t||null==e||!Na(t)&&!m(e)?t!==t&&e!==e:Rn(t,e,In,n,r,i,a)}function Rn(t,e,n,r,i,a,o){var u=Cs(t),s=Cs(e),c=G,l=G;u||(c=ru.call(t),c==H?c=Q:c!=Q&&(u=za(t))),s||(l=ru.call(e),l==H?l=Q:l!=Q&&(s=za(e)));var h=c==Q,f=l==Q,d=c==l;if(d&&!u&&!h)return Pr(t,e,c);if(!i){var p=h&&eu.call(t,"__wrapped__"),g=f&&eu.call(e,"__wrapped__");if(p||g)return n(p?t.value():t,g?e.value():e,r,i,a,o)}if(!d)return!1;a||(a=[]),o||(o=[]);for(var y=a.length;y--;)if(a[y]==t)return o[y]==e;a.push(t),o.push(e);var m=(u?qr:Ur)(t,e,n,r,i,a,o);return a.pop(),o.pop(),m}function qn(t,e,n){var r=e.length,i=r,a=!n;if(null==t)return!i;for(t=hi(t);r--;){var o=e[r];if(a&&o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++r<i;){o=e[r];var u=o[0],s=t[u],c=o[1];if(a&&o[2]){if(s===E&&!(u in t))return!1}else{var l=n?n(s,c,u):E;if(!(l===E?In(c,s,n,!0):l))return!1}}return!0}function Pn(t,e){var n=-1,r=Kr(t)?jo(t.length):[];return Iu(t,function(t,i,a){r[++n]=e(t,i,a)}),r}function Un(t){var e=Vr(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null==t?!1:t[n]===r&&(r!==E||n in hi(t))}}return function(t){return qn(t,e)}}function jn(t,e){var n=Cs(t),r=ti(t)&&ri(e),i=t+"";return t=fi(t),function(a){if(null==a)return!1;var o=i;if(a=hi(a),!(!n&&r||o in a)){if(a=1==t.length?a:On(a,Zn(t,0,-1)),null==a)return!1;o=Di(t),a=hi(a)}return a[o]===e?e!==E||o in a:In(e,a[o],E,!0)}}function Yn(t,e,n,r,i){if(!Na(t))return t;var a=Kr(e)&&(Cs(e)||za(e)),o=a?E:Us(e);return en(o||e,function(u,s){if(o&&(s=u,u=e[s]),m(u))r||(r=[]),i||(i=[]),zn(t,e,s,Yn,n,r,i);else{var c=t[s],l=n?n(c,u,s,t,e):E,h=l===E;h&&(l=u),l===E&&(!a||s in t)||!h&&(l===l?l===c:c!==c)||(t[s]=l)}}),t}function zn(t,e,n,r,i,a,o){for(var u=a.length,s=e[n];u--;)if(a[u]==s)return void(t[n]=o[u]);var c=t[n],l=i?i(c,s,n,t,e):E,h=l===E;h&&(l=s,Kr(s)&&(Cs(s)||za(s))?l=Cs(c)?c:Kr(c)?tn(c):[]:Ua(s)||Ea(s)?l=Ea(c)?Wa(c):Ua(c)?c:{}:h=!1),a.push(s),o.push(l),h?t[n]=r(l,s,i,a,o):(l===l?l!==c:c===c)&&(t[n]=l)}function Vn(t){return function(e){return null==e?E:e[t]}}function Hn(t){var e=t+"";return t=fi(t),function(n){return On(n,t,e)}}function Gn(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Jr(r)){var i=r;du.call(t,r,1)}}return t}function $n(t,e){return t+vu(Du()*(e-t+1))}function Wn(t,e,n,r,i){return i(t,function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)}),n}function Zn(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=n===E||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=jo(i);++r<i;)a[r]=t[r+e];return a}function Xn(t,e){var n;return Iu(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Kn(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Jn(t,e,n){var r=jr(),i=-1;e=cn(e,function(t){return r(t)});var a=Pn(t,function(t){var n=cn(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Kn(a,function(t,e){return h(t,e,n)})}function Qn(t,e){var n=0;return Iu(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function tr(t,e){var n=-1,r=zr(),i=t.length,o=r==a,u=o&&i>=U,s=u?gr():null,c=[];s?(r=Ke,o=!1):(u=!1,s=e?[]:c);t:for(;++n<i;){var l=t[n],h=e?e(l,n,t):l;if(o&&l===l){for(var f=s.length;f--;)if(s[f]===h)continue t;e&&s.push(h),c.push(l)}else r(s,h,0)<0&&((e||u)&&s.push(h),c.push(l))}return c}function er(t,e){for(var n=-1,r=e.length,i=jo(r);++n<r;)i[n]=t[e[n]];return i}function nr(t,e,n,r){for(var i=t.length,a=r?i:-1;(r?a--:++a<i)&&e(t[a],a,t););return n?Zn(t,r?0:a,r?a+1:i):Zn(t,r?a+1:0,r?i:a)}function rr(t,e){var n=t;n instanceof K&&(n=n.value());for(var r=-1,i=e.length;++r<i;){var a=e[r];n=a.func.apply(a.thisArg,ln([n],a.args))}return n}function ir(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&Fu>=i){for(;i>r;){var a=r+i>>>1,o=t[a];(n?e>=o:e>o)&&null!==o?r=a+1:i=a}return i}return ar(t,e,So,n)}function ar(t,e,n,r){e=n(e);for(var i=0,a=t?t.length:0,o=e!==e,u=null===e,s=e===E;a>i;){var c=vu((i+a)/2),l=n(t[c]),h=l!==E,f=l===l;if(o)var d=f||r;else d=u?f&&h&&(r||null!=l):s?f&&(r||h):null==l?!1:r?e>=l:e>l;d?i=c+1:a=c}return Au(a,Tu)}function or(t,e,n){if("function"!=typeof t)return So;if(e===E)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,a){return t.call(e,n,r,i,a)};case 5:return function(n,r,i,a,o){return t.call(e,n,r,i,a,o)}}return function(){return t.apply(e,arguments)}}function ur(t){var e=new ou(t.byteLength),n=new pu(e);return n.set(new pu(t)),e}function sr(t,e,n){for(var r=n.length,i=-1,a=wu(t.length-r,0),o=-1,u=e.length,s=jo(u+a);++o<u;)s[o]=e[o];for(;++i<r;)s[n[i]]=t[i];for(;a--;)s[o++]=t[i++];return s}function cr(t,e,n){for(var r=-1,i=n.length,a=-1,o=wu(t.length-i,0),u=-1,s=e.length,c=jo(o+s);++a<o;)c[a]=t[a];for(var l=a;++u<s;)c[l+u]=e[u];for(;++r<i;)c[l+n[r]]=t[a++];return c}function lr(t,e){return function(n,r,i){var a=e?e():{};if(r=jr(r,i,3),Cs(n))for(var o=-1,u=n.length;++o<u;){var s=n[o];t(a,s,r(s,o,n),n)}else Iu(n,function(e,n,i){t(a,e,r(e,n,i),i)});return a}}function hr(t){return ma(function(e,n){var r=-1,i=null==e?0:n.length,a=i>2?n[i-2]:E,o=i>2?n[2]:E,u=i>1?n[i-1]:E;for("function"==typeof a?(a=or(a,u,5),i-=2):(a="function"==typeof u?u:E,i-=a?1:0),o&&Qr(n[0],n[1],o)&&(a=3>i?E:a,i=1);++r<i;){var s=n[r];s&&t(e,s,a)}return e})}function fr(t,e){return function(n,r){var i=n?Yu(n):0;if(!ni(i))return t(n,r);for(var a=e?i:-1,o=hi(n);(e?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function dr(t){return function(e,n,r){for(var i=hi(e),a=r(e),o=a.length,u=t?o:-1;t?u--:++u<o;){var s=a[u];if(n(i[s],s,i)===!1)break}return e}}function pr(t,e){function n(){var i=this&&this!==nn&&this instanceof n?r:t;return i.apply(e,arguments)}var r=mr(t);return n}function gr(t){return mu&&hu?new Xe(t):null}function yr(t){return function(e){for(var n=-1,r=Eo(lo(e)),i=r.length,a="";++n<i;)a=t(a,r[n],n);return a}}function mr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Ou(t.prototype),r=t.apply(n,e);return Na(r)?r:n}}function vr(t){function e(n,r,i){i&&Qr(n,r,i)&&(r=E);var a=Rr(n,t,E,E,E,E,E,r);return a.placeholder=e.placeholder,a}return e}function br(t,e){return ma(function(n){var r=n[0];return null==r?r:(n.push(e),t.apply(E,n))})}function _r(t,e){return function(n,r,i){if(i&&Qr(n,r,i)&&(r=E),r=jr(r,i,3),1==r.length){n=Cs(n)?n:li(n);var a=un(n,r,t,e);if(!n.length||a!==e)return a}return Dn(n,r,t,e)}}function xr(t,e){return function(n,r,a){if(r=jr(r,a,3),Cs(n)){var o=i(n,r,e);return o>-1?n[o]:E}return Cn(n,r,t)}}function wr(t){return function(e,n,r){return e&&e.length?(n=jr(n,r,3),i(e,n,t)):-1}}function Ar(t){return function(e,n,r){return n=jr(n,r,3),Cn(e,n,t,!0)}}function kr(t){return function(){for(var e,n=arguments.length,r=t?n:-1,i=0,a=jo(n);t?r--:++r<n;){var o=a[i++]=arguments[r];if("function"!=typeof o)throw new Xo(z);!e&&v.prototype.thru&&"wrapper"==Yr(o)&&(e=new v([],!0))}for(r=e?-1:n;++r<n;){o=a[r];var u=Yr(o),s="wrapper"==u?ju(o):E;e=s&&ei(s[0])&&s[1]==(N|T|L|O)&&!s[4].length&&1==s[9]?e[Yr(s[0])].apply(e,s[3]):1==o.length&&ei(o)?e[u]():e.thru(o)}return function(){var t=arguments,r=t[0];if(e&&1==t.length&&Cs(r)&&r.length>=U)return e.plant(r).value();for(var i=0,o=n?a[i].apply(this,t):r;++i<n;)o=a[i].call(this,o);return o}}}function Er(t,e){return function(n,r,i){return"function"==typeof r&&i===E&&Cs(n)?t(n,r):e(n,or(r,i,3))}}function Dr(t){return function(e,n,r){return("function"!=typeof n||r!==E)&&(n=or(n,r,3)),t(e,n,to)}}function Mr(t){return function(e,n,r){return("function"!=typeof n||r!==E)&&(n=or(n,r,3)),t(e,n)}}function Sr(t){return function(e,n,r){var i={};return n=jr(n,r,3),Ln(e,function(e,r,a){var o=n(e,r,a);r=t?o:r,e=t?e:o,i[r]=e}),i}}function Cr(t){return function(e,n,r){return e=u(e),(t?e:"")+Br(e,n,r)+(t?"":e)}}function Tr(t){var e=ma(function(n,r){var i=b(r,e.placeholder);return Rr(n,t,E,r,i)});return e}function Fr(t,e){return function(n,r,i,a){var o=arguments.length<3;return"function"==typeof r&&a===E&&Cs(n)?t(n,r,i,o):Wn(n,jr(r,a,4),i,o,e)}}function Lr(t,e,n,r,i,a,o,u,s,c){function l(){for(var v=arguments.length,_=v,x=jo(v);_--;)x[_]=arguments[_];if(r&&(x=sr(x,r,i)),a&&(x=cr(x,a,o)),p||y){var w=l.placeholder,A=b(x,w);if(v-=A.length,c>v){var k=u?tn(u):E,D=wu(c-v,0),C=p?A:E,T=p?E:A,F=p?x:E,N=p?E:x;e|=p?L:B,e&=~(p?B:L),g||(e&=~(M|S));var O=[t,e,n,F,C,N,T,k,s,D],I=Lr.apply(E,O);return ei(t)&&zu(I,O),I.placeholder=w,I}}var R=f?n:this,q=d?R[t]:t;return u&&(x=si(x,u)),h&&s<x.length&&(x.length=s),this&&this!==nn&&this instanceof l&&(q=m||mr(t)),q.apply(R,x)}var h=e&N,f=e&M,d=e&S,p=e&T,g=e&C,y=e&F,m=d?E:mr(t);return l}function Br(t,e,n){var r=t.length;if(e=+e,r>=e||!_u(e))return"";var i=e-r;return n=null==n?" ":n+"",mo(n,yu(i/n.length)).slice(0,i)}function Nr(t,e,n,r){function i(){for(var e=-1,u=arguments.length,s=-1,c=r.length,l=jo(c+u);++s<c;)l[s]=r[s];for(;u--;)l[s++]=arguments[++e];var h=this&&this!==nn&&this instanceof i?o:t;return h.apply(a?n:this,l)}var a=e&M,o=mr(t);return i}function Or(t){var e=Ho[t];return function(t,n){return n=n===E?0:+n||0,n?(n=cu(10,n),e(t*n)/n):e(t)}}function Ir(t){return function(e,n,r,i){var a=jr(r);return null==r&&a===xn?ir(e,n,t):ar(e,n,a(r,i,1),t)}}function Rr(t,e,n,r,i,a,o,u){var s=e&S;if(!s&&"function"!=typeof t)throw new Xo(z);var c=r?r.length:0;if(c||(e&=~(L|B),r=i=E),c-=i?i.length:0,e&B){var l=r,h=i;r=i=E}var f=s?E:ju(t),d=[t,e,n,r,i,l,h,a,o,u];if(f&&(ii(d,f),e=d[1],u=d[9]),d[9]=null==u?s?0:t.length:wu(u-c,0)||0,e==M)var p=pr(d[0],d[2]);else p=e!=L&&e!=(M|L)||d[4].length?Lr.apply(E,d):Nr.apply(E,d);var g=f?Uu:zu;return g(p,d)}function qr(t,e,n,r,i,a,o){var u=-1,s=t.length,c=e.length;if(s!=c&&!(i&&c>s))return!1;for(;++u<s;){var l=t[u],h=e[u],f=r?r(i?h:l,i?l:h,u):E;if(f!==E){if(f)continue;return!1}if(i){if(!dn(e,function(t){return l===t||n(l,t,r,i,a,o)
}))return!1}else if(l!==h&&!n(l,h,r,i,a,o))return!1}return!0}function Pr(t,e,n){switch(n){case $:case W:return+t==+e;case Z:return t.name==e.name&&t.message==e.message;case J:return t!=+t?e!=+e:t==+e;case te:case ne:return t==e+""}return!1}function Ur(t,e,n,r,i,a,o){var u=Us(t),s=u.length,c=Us(e),l=c.length;if(s!=l&&!i)return!1;for(var h=s;h--;){var f=u[h];if(!(i?f in e:eu.call(e,f)))return!1}for(var d=i;++h<s;){f=u[h];var p=t[f],g=e[f],y=r?r(i?g:p,i?p:g,f):E;if(!(y===E?n(p,g,r,i,a,o):y))return!1;d||(d="constructor"==f)}if(!d){var m=t.constructor,v=e.constructor;if(m!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v))return!1}return!0}function jr(t,n,r){var i=e.callback||Do;return i=i===Do?xn:i,r?i(t,n,r):i}function Yr(t){for(var e=t.name,n=Nu[e],r=n?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==t)return i.name}return e}function zr(t,n,r){var i=e.indexOf||ki;return i=i===ki?a:i,t?i(t,n,r):i}function Vr(t){for(var e=eo(t),n=e.length;n--;)e[n][2]=ri(e[n][1]);return e}function Hr(t,e){var n=null==t?E:t[e];return Ra(n)?n:E}function Gr(t,e,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=Au(e,t+o);break;case"takeRight":t=wu(t,e-o)}}return{start:t,end:e}}function $r(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eu.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Wr(t){var e=t.constructor;return"function"==typeof e&&e instanceof e||(e=$o),new e}function Zr(t,e,n){var r=t.constructor;switch(e){case ie:return ur(t);case $:case W:return new r(+t);case ae:case oe:case ue:case se:case ce:case le:case he:case fe:case de:var i=t.buffer;return new r(n?ur(i):i,t.byteOffset,t.length);case J:case ne:return new r(t);case te:var a=new r(t.source,Le.exec(t));a.lastIndex=t.lastIndex}return a}function Xr(t,e,n){null==t||ti(e,t)||(e=fi(e),t=1==e.length?t:On(t,Zn(e,0,-1)),e=Di(e));var r=null==t?t:t[e];return null==r?E:r.apply(t,n)}function Kr(t){return null!=t&&ni(Yu(t))}function Jr(t,e){return t="number"==typeof t||Oe.test(t)?+t:-1,e=null==e?Lu:e,t>-1&&t%1==0&&e>t}function Qr(t,e,n){if(!Na(n))return!1;var r=typeof e;if("number"==r?Kr(n)&&Jr(e,n.length):"string"==r&&e in n){var i=n[e];return t===t?t===i:i!==i}return!1}function ti(t,e){var n=typeof t;if("string"==n&&Ee.test(t)||"number"==n)return!0;if(Cs(t))return!1;var r=!ke.test(t);return r||null!=e&&t in hi(e)}function ei(t){var n=Yr(t);if(!(n in K.prototype))return!1;var r=e[n];if(t===r)return!0;var i=ju(r);return!!i&&t===i[0]}function ni(t){return"number"==typeof t&&t>-1&&t%1==0&&Lu>=t}function ri(t){return t===t&&!Na(t)}function ii(t,e){var n=t[1],r=e[1],i=n|r,a=N>i,o=r==N&&n==T||r==N&&n==O&&t[7].length<=e[8]||r==(N|O)&&n==T;if(!a&&!o)return t;r&M&&(t[2]=e[2],i|=n&M?0:C);var u=e[3];if(u){var s=t[3];t[3]=s?sr(s,u,e[4]):tn(u),t[4]=s?b(t[3],V):tn(e[4])}return u=e[5],u&&(s=t[5],t[5]=s?cr(s,u,e[6]):tn(u),t[6]=s?b(t[5],V):tn(e[6])),u=e[7],u&&(t[7]=tn(u)),r&N&&(t[8]=null==t[8]?e[8]:Au(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ai(t,e){return t===E?e:Ts(t,e,ai)}function oi(t,e){t=hi(t);for(var n=-1,r=e.length,i={};++n<r;){var a=e[n];a in t&&(i[a]=t[a])}return i}function ui(t,e){var n={};return Fn(t,function(t,r,i){e(t,r,i)&&(n[r]=t)}),n}function si(t,e){for(var n=t.length,r=Au(e.length,n),i=tn(t);r--;){var a=e[r];t[r]=Jr(a,n)?i[a]:E}return t}function ci(t){for(var e=to(t),n=e.length,r=n&&t.length,i=!!r&&ni(r)&&(Cs(t)||Ea(t)),a=-1,o=[];++a<n;){var u=e[a];(i&&Jr(u,r)||eu.call(t,u))&&o.push(u)}return o}function li(t){return null==t?[]:Kr(t)?Na(t)?t:$o(t):ao(t)}function hi(t){return Na(t)?t:$o(t)}function fi(t){if(Cs(t))return t;var e=[];return u(t).replace(De,function(t,n,r,i){e.push(r?i.replace(Te,"$1"):n||t)}),e}function di(t){return t instanceof K?t.clone():new v(t.__wrapped__,t.__chain__,tn(t.__actions__))}function pi(t,e,n){e=(n?Qr(t,e,n):null==e)?1:wu(vu(e)||1,1);for(var r=0,i=t?t.length:0,a=-1,o=jo(yu(i/e));i>r;)o[++a]=Zn(t,r,r+=e);return o}function gi(t){for(var e=-1,n=t?t.length:0,r=-1,i=[];++e<n;){var a=t[e];a&&(i[++r]=a)}return i}function yi(t,e,n){var r=t?t.length:0;return r?((n?Qr(t,e,n):null==e)&&(e=1),Zn(t,0>e?0:e)):[]}function mi(t,e,n){var r=t?t.length:0;return r?((n?Qr(t,e,n):null==e)&&(e=1),e=r-(+e||0),Zn(t,0,0>e?0:e)):[]}function vi(t,e,n){return t&&t.length?nr(t,jr(e,n,3),!0,!0):[]}function bi(t,e,n){return t&&t.length?nr(t,jr(e,n,3),!0):[]}function _i(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Qr(t,e,n)&&(n=0,r=i),Mn(t,e,n,r)):[]}function xi(t){return t?t[0]:E}function wi(t,e,n){var r=t?t.length:0;return n&&Qr(t,e,n)&&(e=!1),r?Tn(t,e):[]}function Ai(t){var e=t?t.length:0;return e?Tn(t,!0):[]}function ki(t,e,n){var r=t?t.length:0;if(!r)return-1;if("number"==typeof n)n=0>n?wu(r+n,0):n;else if(n){var i=ir(t,e);return r>i&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return a(t,e,n||0)}function Ei(t){return mi(t,1)}function Di(t){var e=t?t.length:0;return e?t[e-1]:E}function Mi(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if("number"==typeof n)i=(0>n?wu(r+n,0):Au(n||0,r-1))+1;else if(n){i=ir(t,e,!0)-1;var a=t[i];return(e===e?e===a:a!==a)?i:-1}if(e!==e)return y(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function Si(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var n=0,r=zr(),i=t.length;++n<i;)for(var a=0,o=t[n];(a=r(e,o,a))>-1;)du.call(e,a,1);return e}function Ci(t,e,n){var r=[];if(!t||!t.length)return r;var i=-1,a=[],o=t.length;for(e=jr(e,n,3);++i<o;){var u=t[i];e(u,i,t)&&(r.push(u),a.push(i))}return Gn(t,a),r}function Ti(t){return yi(t,1)}function Fi(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&Qr(t,e,n)&&(e=0,n=r),Zn(t,e,n)):[]}function Li(t,e,n){var r=t?t.length:0;return r?((n?Qr(t,e,n):null==e)&&(e=1),Zn(t,0,0>e?0:e)):[]}function Bi(t,e,n){var r=t?t.length:0;return r?((n?Qr(t,e,n):null==e)&&(e=1),e=r-(+e||0),Zn(t,0>e?0:e)):[]}function Ni(t,e,n){return t&&t.length?nr(t,jr(e,n,3),!1,!0):[]}function Oi(t,e,n){return t&&t.length?nr(t,jr(e,n,3)):[]}function Ii(t,e,n,r){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(r=n,n=Qr(t,e,r)?E:e,e=!1);var o=jr();return(null!=n||o!==xn)&&(n=o(n,r,3)),e&&zr()==a?_(t,n):tr(t,n)}function Ri(t){if(!t||!t.length)return[];var e=-1,n=0;t=sn(t,function(t){return Kr(t)?(n=wu(t.length,n),!0):void 0});for(var r=jo(n);++e<n;)r[e]=cn(t,Vn(e));return r}function qi(t,e,n){var r=t?t.length:0;if(!r)return[];var i=Ri(t);return null==e?i:(e=or(e,n,4),cn(i,function(t){return hn(t,e,E,!0)}))}function Pi(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(Kr(n))var r=r?ln(kn(r,n),kn(n,r)):n}return r?tr(r):[]}function Ui(t,e){var n=-1,r=t?t.length:0,i={};for(!r||e||Cs(t[0])||(e=[]);++n<r;){var a=t[n];e?i[a]=e[n]:a&&(i[a[0]]=a[1])}return i}function ji(t){var n=e(t);return n.__chain__=!0,n}function Yi(t,e,n){return e.call(n,t),t}function zi(t,e,n){return e.call(n,t)}function Vi(){return ji(this)}function Hi(){return new v(this.value(),this.__chain__)}function Gi(t){for(var e,r=this;r instanceof n;){var i=di(r);e?a.__wrapped__=i:e=i;var a=i;r=r.__wrapped__}return a.__wrapped__=t,e}function $i(){var t=this.__wrapped__,e=function(t){return n&&n.__dir__<0?t:t.reverse()};if(t instanceof K){var n=t;return this.__actions__.length&&(n=new K(this)),n=n.reverse(),n.__actions__.push({func:zi,args:[e],thisArg:E}),new v(n,this.__chain__)}return this.thru(e)}function Wi(){return this.value()+""}function Zi(){return rr(this.__wrapped__,this.__actions__)}function Xi(t,e,n){var r=Cs(t)?on:En;return n&&Qr(t,e,n)&&(e=E),("function"!=typeof e||n!==E)&&(e=jr(e,n,3)),r(t,e)}function Ki(t,e,n){var r=Cs(t)?sn:Sn;return e=jr(e,n,3),r(t,e)}function Ji(t,e){return is(t,Un(e))}function Qi(t,e,n,r){var i=t?Yu(t):0;return ni(i)||(t=ao(t),i=t.length),n="number"!=typeof n||r&&Qr(e,n,r)?0:0>n?wu(i+n,0):n||0,"string"==typeof t||!Cs(t)&&Ya(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&zr(t,e,n)>-1}function ta(t,e,n){var r=Cs(t)?cn:Pn;return e=jr(e,n,3),r(t,e)}function ea(t,e){return ta(t,No(e))}function na(t,e,n){var r=Cs(t)?sn:Sn;return e=jr(e,n,3),r(t,function(t,n,r){return!e(t,n,r)})}function ra(t,e,n){if(n?Qr(t,e,n):null==e){t=li(t);var r=t.length;return r>0?t[$n(0,r-1)]:E}var i=-1,a=$a(t),r=a.length,o=r-1;for(e=Au(0>e?0:+e||0,r);++i<e;){var u=$n(i,o),s=a[u];a[u]=a[i],a[i]=s}return a.length=e,a}function ia(t){return ra(t,Su)}function aa(t){var e=t?Yu(t):0;return ni(e)?e:Us(t).length}function oa(t,e,n){var r=Cs(t)?dn:Xn;return n&&Qr(t,e,n)&&(e=E),("function"!=typeof e||n!==E)&&(e=jr(e,n,3)),r(t,e)}function ua(t,e,n){if(null==t)return[];n&&Qr(t,e,n)&&(e=E);var r=-1;e=jr(e,n,3);var i=Pn(t,function(t,n,i){return{criteria:e(t,n,i),index:++r,value:t}});return Kn(i,l)}function sa(t,e,n,r){return null==t?[]:(r&&Qr(e,n,r)&&(n=E),Cs(e)||(e=null==e?[]:[e]),Cs(n)||(n=null==n?[]:[n]),Jn(t,e,n))}function ca(t,e){return Ki(t,Un(e))}function la(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new Xo(z);var n=t;t=e,e=n}return t=_u(t=+t)?t:0,function(){return--t<1?e.apply(this,arguments):void 0}}function ha(t,e,n){return n&&Qr(t,e,n)&&(e=E),e=t&&null==e?t.length:wu(+e||0,0),Rr(t,N,E,E,E,E,e)}function fa(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new Xo(z);var r=t;t=e,e=r}return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=E),n}}function da(t,e,n){function r(){d&&uu(d),c&&uu(c),g=0,c=d=p=E}function i(e,n){n&&uu(n),c=d=p=E,e&&(g=gs(),l=t.apply(f,s),d||c||(s=f=E))}function a(){var t=e-(gs()-h);0>=t||t>e?i(p,c):d=fu(a,t)}function o(){i(m,d)}function u(){if(s=arguments,h=gs(),f=this,p=m&&(d||!v),y===!1)var n=v&&!d;else{c||v||(g=h);var r=y-(h-g),i=0>=r||r>y;i?(c&&(c=uu(c)),g=h,l=t.apply(f,s)):c||(c=fu(o,r))}return i&&d?d=uu(d):d||e===y||(d=fu(a,e)),n&&(i=!0,l=t.apply(f,s)),!i||d||c||(s=f=E),l}var s,c,l,h,f,d,p,g=0,y=!1,m=!0;if("function"!=typeof t)throw new Xo(z);if(e=0>e?0:+e||0,n===!0){var v=!0;m=!1}else Na(n)&&(v=!!n.leading,y="maxWait"in n&&wu(+n.maxWait||0,e),m="trailing"in n?!!n.trailing:m);return u.cancel=r,u}function pa(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xo(z);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new pa.Cache,n}function ga(t){if("function"!=typeof t)throw new Xo(z);return function(){return!t.apply(this,arguments)}}function ya(t){return fa(2,t)}function ma(t,e){if("function"!=typeof t)throw new Xo(z);return e=wu(e===E?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,i=wu(n.length-e,0),a=jo(i);++r<i;)a[r]=n[e+r];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,n[0],a);case 2:return t.call(this,n[0],n[1],a)}var o=jo(e+1);for(r=-1;++r<e;)o[r]=n[r];return o[e]=a,t.apply(this,o)}}function va(t){if("function"!=typeof t)throw new Xo(z);return function(e){return t.apply(this,e)}}function ba(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Xo(z);return n===!1?r=!1:Na(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(t,e,{leading:r,maxWait:+e,trailing:i})}function _a(t,e){return e=null==e?So:e,Rr(e,L,E,[t],[])}function xa(t,e,n,r){return e&&"boolean"!=typeof e&&Qr(t,e,n)?e=!1:"function"==typeof e&&(r=n,n=e,e=!1),"function"==typeof n?wn(t,e,or(n,r,1)):wn(t,e)}function wa(t,e,n){return"function"==typeof e?wn(t,!0,or(e,n,1)):wn(t,!0)}function Aa(t,e){return t>e}function ka(t,e){return t>=e}function Ea(t){return m(t)&&Kr(t)&&eu.call(t,"callee")&&!lu.call(t,"callee")}function Da(t){return t===!0||t===!1||m(t)&&ru.call(t)==$}function Ma(t){return m(t)&&ru.call(t)==W}function Sa(t){return!!t&&1===t.nodeType&&m(t)&&!Ua(t)}function Ca(t){return null==t?!0:Kr(t)&&(Cs(t)||Ya(t)||Ea(t)||m(t)&&Ba(t.splice))?!t.length:!Us(t).length}function Ta(t,e,n,r){n="function"==typeof n?or(n,r,3):E;var i=n?n(t,e):E;return i===E?In(t,e,n):!!i}function Fa(t){return m(t)&&"string"==typeof t.message&&ru.call(t)==Z}function La(t){return"number"==typeof t&&_u(t)}function Ba(t){return Na(t)&&ru.call(t)==X}function Na(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Oa(t,e,n,r){return n="function"==typeof n?or(n,r,3):E,qn(t,Vr(e),n)}function Ia(t){return Pa(t)&&t!=+t}function Ra(t){return null==t?!1:Ba(t)?au.test(tu.call(t)):m(t)&&Ne.test(t)}function qa(t){return null===t}function Pa(t){return"number"==typeof t||m(t)&&ru.call(t)==J}function Ua(t){var e;if(!m(t)||ru.call(t)!=Q||Ea(t)||!eu.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var n;return Fn(t,function(t,e){n=e}),n===E||eu.call(t,n)}function ja(t){return Na(t)&&ru.call(t)==te}function Ya(t){return"string"==typeof t||m(t)&&ru.call(t)==ne}function za(t){return m(t)&&ni(t.length)&&!!Ye[ru.call(t)]}function Va(t){return t===E}function Ha(t,e){return e>t}function Ga(t,e){return e>=t}function $a(t){var e=t?Yu(t):0;return ni(e)?e?tn(t):[]:ao(t)}function Wa(t){return _n(t,to(t))}function Za(t,e,n){var r=Ou(t);return n&&Qr(t,e,n)&&(e=E),e?vn(r,e):r}function Xa(t){return Nn(t,to(t))}function Ka(t,e,n){var r=null==t?E:On(t,fi(e),e+"");return r===E?n:r}function Ja(t,e){if(null==t)return!1;var n=eu.call(t,e);if(!n&&!ti(e)){if(e=fi(e),t=1==e.length?t:On(t,Zn(e,0,-1)),null==t)return!1;e=Di(e),n=eu.call(t,e)}return n||ni(t.length)&&Jr(e,t.length)&&(Cs(t)||Ea(t))}function Qa(t,e,n){n&&Qr(t,e,n)&&(e=E);for(var r=-1,i=Us(t),a=i.length,o={};++r<a;){var u=i[r],s=t[u];e?eu.call(o,s)?o[s].push(u):o[s]=[u]:o[s]=u}return o}function to(t){if(null==t)return[];Na(t)||(t=$o(t));var e=t.length;e=e&&ni(e)&&(Cs(t)||Ea(t))&&e||0;for(var n=t.constructor,r=-1,i="function"==typeof n&&n.prototype===t,a=jo(e),o=e>0;++r<e;)a[r]=r+"";for(var u in t)o&&Jr(u,e)||"constructor"==u&&(i||!eu.call(t,u))||a.push(u);return a}function eo(t){t=hi(t);for(var e=-1,n=Us(t),r=n.length,i=jo(r);++e<r;){var a=n[e];i[e]=[a,t[a]]}return i}function no(t,e,n){var r=null==t?E:t[e];return r===E&&(null==t||ti(e,t)||(e=fi(e),t=1==e.length?t:On(t,Zn(e,0,-1)),r=null==t?E:t[Di(e)]),r=r===E?n:r),Ba(r)?r.call(t):r}function ro(t,e,n){if(null==t)return t;var r=e+"";e=null!=t[r]||ti(e,t)?[r]:fi(e);for(var i=-1,a=e.length,o=a-1,u=t;null!=u&&++i<a;){var s=e[i];Na(u)&&(i==o?u[s]=n:null==u[s]&&(u[s]=Jr(e[i+1])?[]:{})),u=u[s]}return t}function io(t,e,n,r){var i=Cs(t)||za(t);if(e=jr(e,r,4),null==n)if(i||Na(t)){var a=t.constructor;n=i?Cs(t)?new a:[]:Ou(Ba(a)?a.prototype:E)}else n={};return(i?en:Ln)(t,function(t,r,i){return e(n,t,r,i)}),n}function ao(t){return er(t,Us(t))}function oo(t){return er(t,to(t))}function uo(t,e,n){return e=+e||0,n===E?(n=e,e=0):n=+n||0,t>=Au(e,n)&&t<wu(e,n)}function so(t,e,n){n&&Qr(t,e,n)&&(e=n=E);var r=null==t,i=null==e;if(null==n&&(i&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,i=!0)),r&&i&&(e=1,i=!1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1){var a=Du();return Au(t+a*(e-t+su("1e-"+((a+"").length-1))),e)}return $n(t,e)}function co(t){return t=u(t),t&&t.charAt(0).toUpperCase()+t.slice(1)}function lo(t){return t=u(t),t&&t.replace(Ie,f).replace(Ce,"")}function ho(t,e,n){t=u(t),e+="";var r=t.length;return n=n===E?r:Au(0>n?0:+n||0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function fo(t){return t=u(t),t&&_e.test(t)?t.replace(ve,d):t}function po(t){return t=u(t),t&&Se.test(t)?t.replace(Me,p):t||"(?:)"}function go(t,e,n){t=u(t),e=+e;var r=t.length;if(r>=e||!_u(e))return t;var i=(e-r)/2,a=vu(i),o=yu(i);return n=Br("",o,n),n.slice(0,a)+t+n}function yo(t,e,n){return(n?Qr(t,e,n):null==e)?e=0:e&&(e=+e),t=_o(t),Eu(t,e||(Be.test(t)?16:10))}function mo(t,e){var n="";if(t=u(t),e=+e,1>e||!t||!_u(e))return n;do e%2&&(n+=t),e=vu(e/2),t+=t;while(e);return n}function vo(t,e,n){return t=u(t),n=null==n?0:Au(0>n?0:+n||0,t.length),t.lastIndexOf(e,n)==n}function bo(t,n,r){var i=e.templateSettings;r&&Qr(t,n,r)&&(n=r=E),t=u(t),n=mn(vn({},r||n),i,yn);var a,o,s=mn(vn({},n.imports),i.imports,yn),c=Us(s),l=er(s,c),h=0,f=n.interpolate||Re,d="__p += '",p=Wo((n.escape||Re).source+"|"+f.source+"|"+(f===Ae?Fe:Re).source+"|"+(n.evaluate||Re).source+"|$","g"),y="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++je+"]")+"\n";t.replace(p,function(e,n,r,i,u,s){return r||(r=i),d+=t.slice(h,s).replace(qe,g),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),u&&(o=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=s+e.length,e}),d+="';\n";var m=n.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(pe,""):d).replace(ge,"$1").replace(ye,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Ks(function(){return Vo(c,y+"return "+d).apply(E,l)});if(v.source=d,Fa(v))throw v;return v}function _o(t,e,n){var r=t;return(t=u(t))?(n?Qr(r,e,n):null==e)?t.slice(x(t),w(t)+1):(e+="",t.slice(s(t,e),c(t,e)+1)):t}function xo(t,e,n){var r=t;return t=u(t),t?t.slice((n?Qr(r,e,n):null==e)?x(t):s(t,e+"")):t}function wo(t,e,n){var r=t;return t=u(t),t?(n?Qr(r,e,n):null==e)?t.slice(0,w(t)+1):t.slice(0,c(t,e+"")+1):t}function Ao(t,e,n){n&&Qr(t,e,n)&&(e=E);var r=I,i=R;if(null!=e)if(Na(e)){var a="separator"in e?e.separator:a;r="length"in e?+e.length||0:r,i="omission"in e?u(e.omission):i}else r=+e||0;if(t=u(t),r>=t.length)return t;var o=r-i.length;if(1>o)return i;var s=t.slice(0,o);if(null==a)return s+i;if(ja(a)){if(t.slice(o).search(a)){var c,l,h=t.slice(0,o);for(a.global||(a=Wo(a.source,(Le.exec(a)||"")+"g")),a.lastIndex=0;c=a.exec(h);)l=c.index;s=s.slice(0,null==l?o:l)}}else if(t.indexOf(a,o)!=o){var f=s.lastIndexOf(a);f>-1&&(s=s.slice(0,f))}return s+i}function ko(t){return t=u(t),t&&be.test(t)?t.replace(me,A):t}function Eo(t,e,n){return n&&Qr(t,e,n)&&(e=E),t=u(t),t.match(e||Pe)||[]}function Do(t,e,n){return n&&Qr(t,e,n)&&(e=E),m(t)?Co(t):xn(t,e)}function Mo(t){return function(){return t}}function So(t){return t}function Co(t){return Un(wn(t,!0))}function To(t,e){return jn(t,wn(e,!0))}function Fo(t,e,n){if(null==n){var r=Na(e),i=r?Us(e):E,a=i&&i.length?Nn(e,i):E;(a?a.length:r)||(a=!1,n=e,e=t,t=this)}a||(a=Nn(e,Us(e)));var o=!0,u=-1,s=Ba(t),c=a.length;n===!1?o=!1:Na(n)&&"chain"in n&&(o=n.chain);for(;++u<c;){var l=a[u],h=e[l];t[l]=h,s&&(t.prototype[l]=function(e){return function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__),i=r.__actions__=tn(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,ln([this.value()],arguments))}}(h))}return t}function Lo(){return nn._=iu,this}function Bo(){}function No(t){return ti(t)?Vn(t):Hn(t)}function Oo(t){return function(e){return On(t,fi(e),e+"")}}function Io(t,e,n){n&&Qr(t,e,n)&&(e=n=E),t=+t||0,n=null==n?1:+n||0,null==e?(e=t,t=0):e=+e||0;for(var r=-1,i=wu(yu((e-t)/(n||1)),0),a=jo(i);++r<i;)a[r]=t,t+=n;return a}function Ro(t,e,n){if(t=vu(t),1>t||!_u(t))return[];var r=-1,i=jo(Au(t,Cu));for(e=or(e,n,1);++r<t;)Cu>r?i[r]=e(r):e(r);return i}function qo(t){var e=++nu;return u(t)+e}function Po(t,e){return(+t||0)+(+e||0)}function Uo(t,e,n){return n&&Qr(t,e,n)&&(e=E),e=jr(e,n,3),1==e.length?pn(Cs(t)?t:li(t),e):Qn(t,e)}t=t?rn.defaults(nn.Object(),t,rn.pick(nn,Ue)):nn;{var jo=t.Array,Yo=t.Date,zo=t.Error,Vo=t.Function,Ho=t.Math,Go=t.Number,$o=t.Object,Wo=t.RegExp,Zo=t.String,Xo=t.TypeError,Ko=jo.prototype,Jo=$o.prototype,Qo=Zo.prototype,tu=Vo.prototype.toString,eu=Jo.hasOwnProperty,nu=0,ru=Jo.toString,iu=nn._,au=Wo("^"+tu.call(eu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ou=t.ArrayBuffer,uu=t.clearTimeout,su=t.parseFloat,cu=Ho.pow,lu=Jo.propertyIsEnumerable,hu=Hr(t,"Set"),fu=t.setTimeout,du=Ko.splice,pu=t.Uint8Array,gu=Hr(t,"WeakMap"),yu=Ho.ceil,mu=Hr($o,"create"),vu=Ho.floor,bu=Hr(jo,"isArray"),_u=t.isFinite,xu=Hr($o,"keys"),wu=Ho.max,Au=Ho.min,ku=Hr(Yo,"now"),Eu=t.parseInt,Du=Ho.random,Mu=Go.NEGATIVE_INFINITY,Su=Go.POSITIVE_INFINITY,Cu=4294967295,Tu=Cu-1,Fu=Cu>>>1,Lu=9007199254740991,Bu=gu&&new gu,Nu={};e.support={}}e.templateSettings={escape:xe,evaluate:we,interpolate:Ae,variable:"",imports:{_:e}};var Ou=function(){function t(){}return function(e){if(Na(e)){t.prototype=e;var n=new t;t.prototype=E}return n||{}}}(),Iu=fr(Ln),Ru=fr(Bn,!0),qu=dr(),Pu=dr(!0),Uu=Bu?function(t,e){return Bu.set(t,e),t}:So,ju=Bu?function(t){return Bu.get(t)}:Bo,Yu=Vn("length"),zu=function(){var t=0,e=0;return function(n,r){var i=gs(),a=P-(i-e);if(e=i,a>0){if(++t>=q)return n}else t=0;return Uu(n,r)}}(),Vu=ma(function(t,e){return m(t)&&Kr(t)?kn(t,Tn(e,!1,!0)):[]}),Hu=wr(),Gu=wr(!0),$u=ma(function(t){for(var e=t.length,n=e,r=jo(h),i=zr(),o=i==a,u=[];n--;){var s=t[n]=Kr(s=t[n])?s:[];r[n]=o&&s.length>=120?gr(n&&s):null}var c=t[0],l=-1,h=c?c.length:0,f=r[0];t:for(;++l<h;)if(s=c[l],(f?Ke(f,s):i(u,s,0))<0){for(var n=e;--n;){var d=r[n];if((d?Ke(d,s):i(t[n],s,0))<0)continue t}f&&f.push(s),u.push(s)}return u}),Wu=ma(function(t,e){e=Tn(e);var n=bn(t,e);return Gn(t,e.sort(r)),n}),Zu=Ir(),Xu=Ir(!0),Ku=ma(function(t){return tr(Tn(t,!1,!0))}),Ju=ma(function(t,e){return Kr(t)?kn(t,e):[]}),Qu=ma(Ri),ts=ma(function(t){var e=t.length,n=e>2?t[e-2]:E,r=e>1?t[e-1]:E;return e>2&&"function"==typeof n?e-=2:(n=e>1&&"function"==typeof r?(--e,r):E,r=E),t.length=e,qi(t,n,r)}),es=ma(function(t){return t=Tn(t),this.thru(function(e){return Qe(Cs(e)?e:[hi(e)],t)})}),ns=ma(function(t,e){return bn(t,Tn(e))}),rs=lr(function(t,e,n){eu.call(t,n)?++t[n]:t[n]=1}),is=xr(Iu),as=xr(Ru,!0),os=Er(en,Iu),us=Er(an,Ru),ss=lr(function(t,e,n){eu.call(t,n)?t[n].push(e):t[n]=[e]}),cs=lr(function(t,e,n){t[n]=e}),ls=ma(function(t,e,n){var r=-1,i="function"==typeof e,a=ti(e),o=Kr(t)?jo(t.length):[];return Iu(t,function(t){var u=i?e:a&&null!=t?t[e]:E;o[++r]=u?u.apply(t,n):Xr(t,e,n)}),o}),hs=lr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),fs=Fr(hn,Iu),ds=Fr(fn,Ru),ps=ma(function(t,e){if(null==t)return[];var n=e[2];return n&&Qr(e[0],e[1],n)&&(e.length=1),Jn(t,Tn(e),[])}),gs=ku||function(){return(new Yo).getTime()},ys=ma(function(t,e,n){var r=M;if(n.length){var i=b(n,ys.placeholder);r|=L}return Rr(t,r,e,n,i)}),ms=ma(function(t,e){e=e.length?Tn(e):Xa(t);for(var n=-1,r=e.length;++n<r;){var i=e[n];t[i]=Rr(t[i],M,t)}return t}),vs=ma(function(t,e,n){var r=M|S;if(n.length){var i=b(n,vs.placeholder);r|=L}return Rr(e,r,t,n,i)}),bs=vr(T),_s=vr(F),xs=ma(function(t,e){return An(t,1,e)}),ws=ma(function(t,e,n){return An(t,e,n)}),As=kr(),ks=kr(!0),Es=ma(function(t,e){if(e=Tn(e),"function"!=typeof t||!on(e,o))throw new Xo(z);var n=e.length;return ma(function(r){for(var i=Au(r.length,n);i--;)r[i]=e[i](r[i]);return t.apply(this,r)})}),Ds=Tr(L),Ms=Tr(B),Ss=ma(function(t,e){return Rr(t,O,E,E,E,Tn(e))}),Cs=bu||function(t){return m(t)&&ni(t.length)&&ru.call(t)==G},Ts=hr(Yn),Fs=hr(function(t,e,n){return n?mn(t,e,n):vn(t,e)}),Ls=br(Fs,gn),Bs=br(Ts,ai),Ns=Ar(Ln),Os=Ar(Bn),Is=Dr(qu),Rs=Dr(Pu),qs=Mr(Ln),Ps=Mr(Bn),Us=xu?function(t){var e=null==t?E:t.constructor;return"function"==typeof e&&e.prototype===t||"function"!=typeof t&&Kr(t)?ci(t):Na(t)?xu(t):[]}:ci,js=Sr(!0),Ys=Sr(),zs=ma(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=cn(Tn(e),Zo);return oi(t,kn(to(t),e))}var n=or(e[0],e[1],3);return ui(t,function(t,e,r){return!n(t,e,r)})}),Vs=ma(function(t,e){return null==t?{}:"function"==typeof e[0]?ui(t,or(e[0],e[1],3)):oi(t,Tn(e))}),Hs=yr(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),Gs=yr(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),$s=Cr(),Ws=Cr(!0),Zs=yr(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xs=yr(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Ks=ma(function(t,e){try{return t.apply(E,e)}catch(n){return Fa(n)?n:new zo(n)}}),Js=ma(function(t,e){return function(n){return Xr(n,t,e)}}),Qs=ma(function(t,e){return function(n){return Xr(t,n,e)}}),tc=Or("ceil"),ec=Or("floor"),nc=_r(Aa,Mu),rc=_r(Ha,Su),ic=Or("round");return e.prototype=n.prototype,v.prototype=Ou(n.prototype),v.prototype.constructor=v,K.prototype=Ou(n.prototype),K.prototype.constructor=K,He.prototype["delete"]=Ge,He.prototype.get=$e,He.prototype.has=We,He.prototype.set=Ze,Xe.prototype.push=Je,pa.Cache=He,e.after=la,e.ary=ha,e.assign=Fs,e.at=ns,e.before=fa,e.bind=ys,e.bindAll=ms,e.bindKey=vs,e.callback=Do,e.chain=ji,e.chunk=pi,e.compact=gi,e.constant=Mo,e.countBy=rs,e.create=Za,e.curry=bs,e.curryRight=_s,e.debounce=da,e.defaults=Ls,e.defaultsDeep=Bs,e.defer=xs,e.delay=ws,e.difference=Vu,e.drop=yi,e.dropRight=mi,e.dropRightWhile=vi,e.dropWhile=bi,e.fill=_i,e.filter=Ki,e.flatten=wi,e.flattenDeep=Ai,e.flow=As,e.flowRight=ks,e.forEach=os,e.forEachRight=us,e.forIn=Is,e.forInRight=Rs,e.forOwn=qs,e.forOwnRight=Ps,e.functions=Xa,e.groupBy=ss,e.indexBy=cs,e.initial=Ei,e.intersection=$u,e.invert=Qa,e.invoke=ls,e.keys=Us,e.keysIn=to,e.map=ta,e.mapKeys=js,e.mapValues=Ys,e.matches=Co,e.matchesProperty=To,e.memoize=pa,e.merge=Ts,e.method=Js,e.methodOf=Qs,e.mixin=Fo,e.modArgs=Es,e.negate=ga,e.omit=zs,e.once=ya,e.pairs=eo,e.partial=Ds,e.partialRight=Ms,e.partition=hs,e.pick=Vs,e.pluck=ea,e.property=No,e.propertyOf=Oo,e.pull=Si,e.pullAt=Wu,e.range=Io,e.rearg=Ss,e.reject=na,e.remove=Ci,e.rest=Ti,e.restParam=ma,e.set=ro,e.shuffle=ia,e.slice=Fi,e.sortBy=ua,e.sortByAll=ps,e.sortByOrder=sa,e.spread=va,e.take=Li,e.takeRight=Bi,e.takeRightWhile=Ni,e.takeWhile=Oi,e.tap=Yi,e.throttle=ba,e.thru=zi,e.times=Ro,e.toArray=$a,e.toPlainObject=Wa,e.transform=io,e.union=Ku,e.uniq=Ii,e.unzip=Ri,e.unzipWith=qi,e.values=ao,e.valuesIn=oo,e.where=ca,e.without=Ju,e.wrap=_a,e.xor=Pi,e.zip=Qu,e.zipObject=Ui,e.zipWith=ts,e.backflow=ks,e.collect=ta,e.compose=ks,e.each=os,e.eachRight=us,e.extend=Fs,e.iteratee=Do,e.methods=Xa,e.object=Ui,e.select=Ki,e.tail=Ti,e.unique=Ii,Fo(e,e),e.add=Po,e.attempt=Ks,e.camelCase=Hs,e.capitalize=co,e.ceil=tc,e.clone=xa,e.cloneDeep=wa,e.deburr=lo,e.endsWith=ho,e.escape=fo,e.escapeRegExp=po,e.every=Xi,e.find=is,e.findIndex=Hu,e.findKey=Ns,e.findLast=as,e.findLastIndex=Gu,e.findLastKey=Os,e.findWhere=Ji,e.first=xi,e.floor=ec,e.get=Ka,e.gt=Aa,e.gte=ka,e.has=Ja,e.identity=So,e.includes=Qi,e.indexOf=ki,e.inRange=uo,e.isArguments=Ea,e.isArray=Cs,e.isBoolean=Da,e.isDate=Ma,e.isElement=Sa,e.isEmpty=Ca,e.isEqual=Ta,e.isError=Fa,e.isFinite=La,e.isFunction=Ba,e.isMatch=Oa,e.isNaN=Ia,e.isNative=Ra,e.isNull=qa,e.isNumber=Pa,e.isObject=Na,e.isPlainObject=Ua,e.isRegExp=ja,e.isString=Ya,e.isTypedArray=za,e.isUndefined=Va,e.kebabCase=Gs,e.last=Di,e.lastIndexOf=Mi,e.lt=Ha,e.lte=Ga,e.max=nc,e.min=rc,e.noConflict=Lo,e.noop=Bo,e.now=gs,e.pad=go,e.padLeft=$s,e.padRight=Ws,e.parseInt=yo,e.random=so,e.reduce=fs,e.reduceRight=ds,e.repeat=mo,e.result=no,e.round=ic,e.runInContext=k,e.size=aa,e.snakeCase=Zs,e.some=oa,e.sortedIndex=Zu,e.sortedLastIndex=Xu,e.startCase=Xs,e.startsWith=vo,e.sum=Uo,e.template=bo,e.trim=_o,e.trimLeft=xo,e.trimRight=wo,e.trunc=Ao,e.unescape=ko,e.uniqueId=qo,e.words=Eo,e.all=Xi,e.any=oa,e.contains=Qi,e.eq=Ta,e.detect=is,e.foldl=fs,e.foldr=ds,e.head=xi,e.include=Qi,e.inject=fs,Fo(e,function(){var t={};return Ln(e,function(n,r){e.prototype[r]||(t[r]=n)}),t}(),!1),e.sample=ra,e.prototype.sample=function(t){return this.__chain__||null!=t?this.thru(function(e){return ra(e,t)}):ra(this.value())},e.VERSION=D,en(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),en(["drop","take"],function(t,e){K.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new K(this);n=null==n?1:wu(vu(n)||0,0);var i=this.clone();return r?i.__takeCount__=Au(i.__takeCount__,n):i.__views__.push({size:n,type:t+(i.__dir__<0?"Right":"")}),i},K.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),en(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n!=Y;K.prototype[t]=function(t,e){var i=this.clone();return i.__iteratees__.push({iteratee:jr(t,e,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),en(["first","last"],function(t,e){var n="take"+(e?"Right":"");K.prototype[t]=function(){return this[n](1).value()[0]}}),en(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");K.prototype[t]=function(){return this.__filtered__?new K(this):this[n](1)}}),en(["pluck","where"],function(t,e){var n=e?"filter":"map",r=e?Un:No;K.prototype[t]=function(t){return this[n](r(t))}}),K.prototype.compact=function(){return this.filter(So)},K.prototype.reject=function(t,e){return t=jr(t,e,1),this.filter(function(e){return!t(e)})},K.prototype.slice=function(t,e){t=null==t?0:+t||0;var n=this;return n.__filtered__&&(t>0||0>e)?new K(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==E&&(e=+e||0,n=0>e?n.dropRight(-e):n.take(e-t)),n)},K.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},K.prototype.toArray=function(){return this.take(Su)},Ln(K.prototype,function(t,n){var r=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),a=e[i?"take"+("last"==n?"Right":""):n];a&&(e.prototype[n]=function(){var e=i?[1]:arguments,n=this.__chain__,o=this.__wrapped__,u=!!this.__actions__.length,s=o instanceof K,c=e[0],l=s||Cs(o);l&&r&&"function"==typeof c&&1!=c.length&&(s=l=!1);var h=function(t){return i&&n?a(t,1)[0]:a.apply(E,ln([t],e))},f={func:zi,args:[h],thisArg:E},d=s&&!u;if(i&&!n)return d?(o=o.clone(),o.__actions__.push(f),t.call(o)):a.call(E,this.value())[0];if(!i&&l){o=d?o:new K(this);var p=t.apply(o,e);return p.__actions__.push(f),new v(p,n)}return this.thru(h)})}),en(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var n=(/^(?:replace|split)$/.test(t)?Qo:Ko)[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:join|pop|replace|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?n.apply(this.value(),t):this[r](function(e){return n.apply(e,t)})}}),Ln(K.prototype,function(t,n){var r=e[n];if(r){var i=r.name,a=Nu[i]||(Nu[i]=[]);a.push({name:n,func:r})}}),Nu[Lr(E,S).name]=[{name:"wrapper",func:E}],K.prototype.clone=ee,K.prototype.reverse=re,K.prototype.value=Ve,e.prototype.chain=Vi,e.prototype.commit=Hi,e.prototype.concat=es,e.prototype.plant=Gi,e.prototype.reverse=$i,e.prototype.toString=Wi,e.prototype.run=e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=Zi,e.prototype.collect=e.prototype.map,e.prototype.head=e.prototype.first,e.prototype.select=e.prototype.filter,e.prototype.tail=e.prototype.rest,e}var E,D="3.10.0",M=1,S=2,C=4,T=8,F=16,L=32,B=64,N=128,O=256,I=30,R="...",q=150,P=16,U=200,j=1,Y=2,z="Expected a function",V="__lodash_placeholder__",H="[object Arguments]",G="[object Array]",$="[object Boolean]",W="[object Date]",Z="[object Error]",X="[object Function]",K="[object Map]",J="[object Number]",Q="[object Object]",te="[object RegExp]",ee="[object Set]",ne="[object String]",re="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object Float32Array]",oe="[object Float64Array]",ue="[object Int8Array]",se="[object Int16Array]",ce="[object Int32Array]",le="[object Uint8Array]",he="[object Uint8ClampedArray]",fe="[object Uint16Array]",de="[object Uint32Array]",pe=/\b__p \+= '';/g,ge=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39|#96);/g,ve=/[&<>"'`]/g,be=RegExp(me.source),_e=RegExp(ve.source),xe=/<%-([\s\S]+?)%>/g,we=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Ee=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Me=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Se=RegExp(Me.source),Ce=/[\u0300-\u036f\ufe20-\ufe23]/g,Te=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Le=/\w*$/,Be=/^0[xX]/,Ne=/^\[object .+?Constructor\]$/,Oe=/^\d+$/,Ie=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Re=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,Pe=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),Ue=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],je=-1,Ye={};
Ye[ae]=Ye[oe]=Ye[ue]=Ye[se]=Ye[ce]=Ye[le]=Ye[he]=Ye[fe]=Ye[de]=!0,Ye[H]=Ye[G]=Ye[ie]=Ye[$]=Ye[W]=Ye[Z]=Ye[X]=Ye[K]=Ye[J]=Ye[Q]=Ye[te]=Ye[ee]=Ye[ne]=Ye[re]=!1;var ze={};ze[H]=ze[G]=ze[ie]=ze[$]=ze[W]=ze[ae]=ze[oe]=ze[ue]=ze[se]=ze[ce]=ze[J]=ze[Q]=ze[te]=ze[ne]=ze[le]=ze[he]=ze[fe]=ze[de]=!0,ze[Z]=ze[X]=ze[K]=ze[ee]=ze[re]=!1;var Ve={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},He={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Ge={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},$e={"function":!0,object:!0},We={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xe=$e[typeof n]&&n&&!n.nodeType&&n,Ke=$e[typeof e]&&e&&!e.nodeType&&e,Je=Xe&&Ke&&"object"==typeof t&&t&&t.Object&&t,Qe=$e[typeof self]&&self&&self.Object&&self,tn=$e[typeof window]&&window&&window.Object&&window,en=Ke&&Ke.exports===Xe&&Xe,nn=Je||tn!==(this&&this.window)&&tn||Qe||this,rn=k();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(nn._=rn,define(function(){return rn})):Xe&&Ke?en?(Ke.exports=rn)._=rn:Xe._=rn:nn._=rn}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],81:[function(){},{}],82:[function(t,e,n){(function(t){function e(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(t){return i.exec(t).slice(1)};n.resolve=function(){for(var n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,i="/"===o.charAt(0))}return n=e(r(n.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(t){var i=n.isAbsolute(t),a="/"===o(t,-1);return t=e(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},n.isAbsolute=function(t){return"/"===t.charAt(0)},n.join=function(){var t=Array.prototype.slice.call(arguments,0);return n.normalize(r(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},n.relative=function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=n.resolve(t).substr(1),e=n.resolve(e).substr(1);for(var i=r(t.split("/")),a=r(e.split("/")),o=Math.min(i.length,a.length),u=o,s=0;o>s;s++)if(i[s]!==a[s]){u=s;break}for(var c=[],s=u;s<i.length;s++)c.push("..");return c=c.concat(a.slice(u)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(t){var e=a(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(t,e){var n=a(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(t){return a(t)[3]};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return 0>e&&(e=t.length+e),t.substr(e,n)}}).call(this,t("1YiZ5S"))},{"1YiZ5S":83}],83:[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],84:[function(t,e,n){(function(t){!function(r){var i="object"==typeof n&&n,a="object"==typeof e&&e&&e.exports==i&&e,o="object"==typeof t&&t;(o.global===o||o.window===o)&&(r=o);var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,h={"Á":"Aacute","á":"aacute","Ă":"Abreve","ă":"abreve","∾":"ac","∿":"acd","∾̳":"acE","Â":"Acirc","â":"acirc","´":"acute","А":"Acy","а":"acy","Æ":"AElig","æ":"aelig","⁡":"af","𝔄":"Afr","𝔞":"afr","À":"Agrave","à":"agrave","ℵ":"aleph","Α":"Alpha","α":"alpha","Ā":"Amacr","ā":"amacr","⨿":"amalg","&":"amp","⩕":"andand","⩓":"And","∧":"and","⩜":"andd","⩘":"andslope","⩚":"andv","∠":"ang","⦤":"ange","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","∡":"angmsd","∟":"angrt","⊾":"angrtvb","⦝":"angrtvbd","∢":"angsph","Å":"angst","⍼":"angzarr","Ą":"Aogon","ą":"aogon","𝔸":"Aopf","𝕒":"aopf","⩯":"apacir","≈":"ap","⩰":"apE","≊":"ape","≋":"apid","'":"apos","å":"aring","𝒜":"Ascr","𝒶":"ascr","≔":"colone","*":"ast","≍":"CupCap","Ã":"Atilde","ã":"atilde","Ä":"Auml","ä":"auml","∳":"awconint","⨑":"awint","≌":"bcong","϶":"bepsi","‵":"bprime","∽":"bsim","⋍":"bsime","∖":"setmn","⫧":"Barv","⊽":"barvee","⌅":"barwed","⌆":"Barwed","⎵":"bbrk","⎶":"bbrktbrk","Б":"Bcy","б":"bcy","„":"bdquo","∵":"becaus","⦰":"bemptyv","ℬ":"Bscr","Β":"Beta","β":"beta","ℶ":"beth","≬":"twixt","𝔅":"Bfr","𝔟":"bfr","⋂":"xcap","◯":"xcirc","⋃":"xcup","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨆":"xsqcup","★":"starf","▽":"xdtri","△":"xutri","⨄":"xuplus","⋁":"Vee","⋀":"Wedge","⤍":"rbarr","⧫":"lozf","▪":"squf","▴":"utrif","▾":"dtrif","◂":"ltrif","▸":"rtrif","␣":"blank","▒":"blk12","░":"blk14","▓":"blk34","█":"block","=⃥":"bne","≡⃥":"bnequiv","⫭":"bNot","⌐":"bnot","𝔹":"Bopf","𝕓":"bopf","⊥":"bot","⋈":"bowtie","⧉":"boxbox","┐":"boxdl","╕":"boxdL","╖":"boxDl","╗":"boxDL","┌":"boxdr","╒":"boxdR","╓":"boxDr","╔":"boxDR","─":"boxh","═":"boxH","┬":"boxhd","╤":"boxHd","╥":"boxhD","╦":"boxHD","┴":"boxhu","╧":"boxHu","╨":"boxhU","╩":"boxHU","⊟":"minusb","⊞":"plusb","⊠":"timesb","┘":"boxul","╛":"boxuL","╜":"boxUl","╝":"boxUL","└":"boxur","╘":"boxuR","╙":"boxUr","╚":"boxUR","│":"boxv","║":"boxV","┼":"boxvh","╪":"boxvH","╫":"boxVh","╬":"boxVH","┤":"boxvl","╡":"boxvL","╢":"boxVl","╣":"boxVL","├":"boxvr","╞":"boxvR","╟":"boxVr","╠":"boxVR","˘":"breve","¦":"brvbar","𝒷":"bscr","⁏":"bsemi","⧅":"bsolb","\\":"bsol","⟈":"bsolhsub","•":"bull","≎":"bump","⪮":"bumpE","≏":"bumpe","Ć":"Cacute","ć":"cacute","⩄":"capand","⩉":"capbrcup","⩋":"capcap","∩":"cap","⋒":"Cap","⩇":"capcup","⩀":"capdot","ⅅ":"DD","∩︀":"caps","⁁":"caret","ˇ":"caron","ℭ":"Cfr","⩍":"ccaps","Č":"Ccaron","č":"ccaron","Ç":"Ccedil","ç":"ccedil","Ĉ":"Ccirc","ĉ":"ccirc","∰":"Cconint","⩌":"ccups","⩐":"ccupssm","Ċ":"Cdot","ċ":"cdot","¸":"cedil","⦲":"cemptyv","¢":"cent","·":"middot","𝔠":"cfr","Ч":"CHcy","ч":"chcy","✓":"check","Χ":"Chi","χ":"chi","ˆ":"circ","≗":"cire","↺":"olarr","↻":"orarr","⊛":"oast","⊚":"ocir","⊝":"odash","⊙":"odot","®":"reg","Ⓢ":"oS","⊖":"ominus","⊕":"oplus","⊗":"otimes","○":"cir","⧃":"cirE","⨐":"cirfnint","⫯":"cirmid","⧂":"cirscir","∲":"cwconint","”":"rdquo","’":"rsquo","♣":"clubs",":":"colon","∷":"Colon","⩴":"Colone",",":"comma","@":"commat","∁":"comp","∘":"compfn","ℂ":"Copf","≅":"cong","⩭":"congdot","≡":"equiv","∮":"oint","∯":"Conint","𝕔":"copf","∐":"coprod","©":"copy","℗":"copysr","↵":"crarr","✗":"cross","⨯":"Cross","𝒞":"Cscr","𝒸":"cscr","⫏":"csub","⫑":"csube","⫐":"csup","⫒":"csupe","⋯":"ctdot","⤸":"cudarrl","⤵":"cudarrr","⋞":"cuepr","⋟":"cuesc","↶":"cularr","⤽":"cularrp","⩈":"cupbrcap","⩆":"cupcap","∪":"cup","⋓":"Cup","⩊":"cupcup","⊍":"cupdot","⩅":"cupor","∪︀":"cups","↷":"curarr","⤼":"curarrm","⋎":"cuvee","⋏":"cuwed","¤":"curren","∱":"cwint","⌭":"cylcty","†":"dagger","‡":"Dagger","ℸ":"daleth","↓":"darr","↡":"Darr","⇓":"dArr","‐":"dash","⫤":"Dashv","⊣":"dashv","⤏":"rBarr","˝":"dblac","Ď":"Dcaron","ď":"dcaron","Д":"Dcy","д":"dcy","⇊":"ddarr","ⅆ":"dd","⤑":"DDotrahd","⩷":"eDDot","°":"deg","∇":"Del","Δ":"Delta","δ":"delta","⦱":"demptyv","⥿":"dfisht","𝔇":"Dfr","𝔡":"dfr","⥥":"dHar","⇃":"dharl","⇂":"dharr","˙":"dot","`":"grave","˜":"tilde","⋄":"diam","♦":"diams","¨":"die","ϝ":"gammad","⋲":"disin","÷":"div","⋇":"divonx","Ђ":"DJcy","ђ":"djcy","⌞":"dlcorn","⌍":"dlcrop",$:"dollar","𝔻":"Dopf","𝕕":"dopf","⃜":"DotDot","≐":"doteq","≑":"eDot","∸":"minusd","∔":"plusdo","⊡":"sdotb","⇐":"lArr","⇔":"iff","⟸":"xlArr","⟺":"xhArr","⟹":"xrArr","⇒":"rArr","⊨":"vDash","⇑":"uArr","⇕":"vArr","∥":"par","⤓":"DownArrowBar","⇵":"duarr","̑":"DownBreve","⥐":"DownLeftRightVector","⥞":"DownLeftTeeVector","⥖":"DownLeftVectorBar","↽":"lhard","⥟":"DownRightTeeVector","⥗":"DownRightVectorBar","⇁":"rhard","↧":"mapstodown","⊤":"top","⤐":"RBarr","⌟":"drcorn","⌌":"drcrop","𝒟":"Dscr","𝒹":"dscr","Ѕ":"DScy","ѕ":"dscy","⧶":"dsol","Đ":"Dstrok","đ":"dstrok","⋱":"dtdot","▿":"dtri","⥯":"duhar","⦦":"dwangle","Џ":"DZcy","џ":"dzcy","⟿":"dzigrarr","É":"Eacute","é":"eacute","⩮":"easter","Ě":"Ecaron","ě":"ecaron","Ê":"Ecirc","ê":"ecirc","≖":"ecir","≕":"ecolon","Э":"Ecy","э":"ecy","Ė":"Edot","ė":"edot","ⅇ":"ee","≒":"efDot","𝔈":"Efr","𝔢":"efr","⪚":"eg","È":"Egrave","è":"egrave","⪖":"egs","⪘":"egsdot","⪙":"el","∈":"in","⏧":"elinters","ℓ":"ell","⪕":"els","⪗":"elsdot","Ē":"Emacr","ē":"emacr","∅":"empty","◻":"EmptySmallSquare","▫":"EmptyVerySmallSquare"," ":"emsp13"," ":"emsp14"," ":"emsp","Ŋ":"ENG","ŋ":"eng"," ":"ensp","Ę":"Eogon","ę":"eogon","𝔼":"Eopf","𝕖":"eopf","⋕":"epar","⧣":"eparsl","⩱":"eplus","ε":"epsi","Ε":"Epsilon","ϵ":"epsiv","≂":"esim","⩵":"Equal","=":"equals","≟":"equest","⇌":"rlhar","⩸":"equivDD","⧥":"eqvparsl","⥱":"erarr","≓":"erDot","ℯ":"escr","ℰ":"Escr","⩳":"Esim","Η":"Eta","η":"eta","Ð":"ETH","ð":"eth","Ë":"Euml","ë":"euml","€":"euro","!":"excl","∃":"exist","Ф":"Fcy","ф":"fcy","♀":"female","ffi":"ffilig","ff":"fflig","ffl":"ffllig","𝔉":"Ffr","𝔣":"ffr","fi":"filig","◼":"FilledSmallSquare",fj:"fjlig","♭":"flat","fl":"fllig","▱":"fltns","ƒ":"fnof","𝔽":"Fopf","𝕗":"fopf","∀":"forall","⋔":"fork","⫙":"forkv","ℱ":"Fscr","⨍":"fpartint","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","⅔":"frac23","⅖":"frac25","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","⁄":"frasl","⌢":"frown","𝒻":"fscr","ǵ":"gacute","Γ":"Gamma","γ":"gamma","Ϝ":"Gammad","⪆":"gap","Ğ":"Gbreve","ğ":"gbreve","Ģ":"Gcedil","Ĝ":"Gcirc","ĝ":"gcirc","Г":"Gcy","г":"gcy","Ġ":"Gdot","ġ":"gdot","≥":"ge","≧":"gE","⪌":"gEl","⋛":"gel","⩾":"ges","⪩":"gescc","⪀":"gesdot","⪂":"gesdoto","⪄":"gesdotol","⋛︀":"gesl","⪔":"gesles","𝔊":"Gfr","𝔤":"gfr","≫":"gg","⋙":"Gg","ℷ":"gimel","Ѓ":"GJcy","ѓ":"gjcy","⪥":"gla","≷":"gl","⪒":"glE","⪤":"glj","⪊":"gnap","⪈":"gne","≩":"gnE","⋧":"gnsim","𝔾":"Gopf","𝕘":"gopf","⪢":"GreaterGreater","≳":"gsim","𝒢":"Gscr","ℊ":"gscr","⪎":"gsime","⪐":"gsiml","⪧":"gtcc","⩺":"gtcir",">":"gt","⋗":"gtdot","⦕":"gtlPar","⩼":"gtquest","⥸":"gtrarr","≩︀":"gvnE"," ":"hairsp","ℋ":"Hscr","Ъ":"HARDcy","ъ":"hardcy","⥈":"harrcir","↔":"harr","↭":"harrw","^":"Hat","ℏ":"hbar","Ĥ":"Hcirc","ĥ":"hcirc","♥":"hearts","…":"mldr","⊹":"hercon","𝔥":"hfr","ℌ":"Hfr","⤥":"searhk","⤦":"swarhk","⇿":"hoarr","∻":"homtht","↩":"larrhk","↪":"rarrhk","𝕙":"hopf","ℍ":"Hopf","―":"horbar","𝒽":"hscr","Ħ":"Hstrok","ħ":"hstrok","⁃":"hybull","Í":"Iacute","í":"iacute","⁣":"ic","Î":"Icirc","î":"icirc","И":"Icy","и":"icy","İ":"Idot","Е":"IEcy","е":"iecy","¡":"iexcl","𝔦":"ifr","ℑ":"Im","Ì":"Igrave","ì":"igrave","ⅈ":"ii","⨌":"qint","∭":"tint","⧜":"iinfin","℩":"iiota","IJ":"IJlig","ij":"ijlig","Ī":"Imacr","ī":"imacr","ℐ":"Iscr","ı":"imath","⊷":"imof","Ƶ":"imped","℅":"incare","∞":"infin","⧝":"infintie","⊺":"intcal","∫":"int","∬":"Int","ℤ":"Zopf","⨗":"intlarhk","⨼":"iprod","⁢":"it","Ё":"IOcy","ё":"iocy","Į":"Iogon","į":"iogon","𝕀":"Iopf","𝕚":"iopf","Ι":"Iota","ι":"iota","¿":"iquest","𝒾":"iscr","⋵":"isindot","⋹":"isinE","⋴":"isins","⋳":"isinsv","Ĩ":"Itilde","ĩ":"itilde","І":"Iukcy","і":"iukcy","Ï":"Iuml","ï":"iuml","Ĵ":"Jcirc","ĵ":"jcirc","Й":"Jcy","й":"jcy","𝔍":"Jfr","𝔧":"jfr","ȷ":"jmath","𝕁":"Jopf","𝕛":"jopf","𝒥":"Jscr","𝒿":"jscr","Ј":"Jsercy","ј":"jsercy","Є":"Jukcy","є":"jukcy","Κ":"Kappa","κ":"kappa","ϰ":"kappav","Ķ":"Kcedil","ķ":"kcedil","К":"Kcy","к":"kcy","𝔎":"Kfr","𝔨":"kfr","ĸ":"kgreen","Х":"KHcy","х":"khcy","Ќ":"KJcy","ќ":"kjcy","𝕂":"Kopf","𝕜":"kopf","𝒦":"Kscr","𝓀":"kscr","⇚":"lAarr","Ĺ":"Lacute","ĺ":"lacute","⦴":"laemptyv","ℒ":"Lscr","Λ":"Lambda","λ":"lambda","⟨":"lang","⟪":"Lang","⦑":"langd","⪅":"lap","«":"laquo","⇤":"larrb","⤟":"larrbfs","←":"larr","↞":"Larr","⤝":"larrfs","↫":"larrlp","⤹":"larrpl","⥳":"larrsim","↢":"larrtl","⤙":"latail","⤛":"lAtail","⪫":"lat","⪭":"late","⪭︀":"lates","⤌":"lbarr","⤎":"lBarr","❲":"lbbrk","{":"lcub","[":"lsqb","⦋":"lbrke","⦏":"lbrksld","⦍":"lbrkslu","Ľ":"Lcaron","ľ":"lcaron","Ļ":"Lcedil","ļ":"lcedil","⌈":"lceil","Л":"Lcy","л":"lcy","⤶":"ldca","“":"ldquo","⥧":"ldrdhar","⥋":"ldrushar","↲":"ldsh","≤":"le","≦":"lE","⇆":"lrarr","⟦":"lobrk","⥡":"LeftDownTeeVector","⥙":"LeftDownVectorBar","⌊":"lfloor","↼":"lharu","⇇":"llarr","⇋":"lrhar","⥎":"LeftRightVector","↤":"mapstoleft","⥚":"LeftTeeVector","⋋":"lthree","⧏":"LeftTriangleBar","⊲":"vltri","⊴":"ltrie","⥑":"LeftUpDownVector","⥠":"LeftUpTeeVector","⥘":"LeftUpVectorBar","↿":"uharl","⥒":"LeftVectorBar","⪋":"lEg","⋚":"leg","⩽":"les","⪨":"lescc","⩿":"lesdot","⪁":"lesdoto","⪃":"lesdotor","⋚︀":"lesg","⪓":"lesges","⋖":"ltdot","≶":"lg","⪡":"LessLess","≲":"lsim","⥼":"lfisht","𝔏":"Lfr","𝔩":"lfr","⪑":"lgE","⥢":"lHar","⥪":"lharul","▄":"lhblk","Љ":"LJcy","љ":"ljcy","≪":"ll","⋘":"Ll","⥫":"llhard","◺":"lltri","Ŀ":"Lmidot","ŀ":"lmidot","⎰":"lmoust","⪉":"lnap","⪇":"lne","≨":"lnE","⋦":"lnsim","⟬":"loang","⇽":"loarr","⟵":"xlarr","⟷":"xharr","⟼":"xmap","⟶":"xrarr","↬":"rarrlp","⦅":"lopar","𝕃":"Lopf","𝕝":"lopf","⨭":"loplus","⨴":"lotimes","∗":"lowast",_:"lowbar","↙":"swarr","↘":"searr","◊":"loz","(":"lpar","⦓":"lparlt","⥭":"lrhard","‎":"lrm","⊿":"lrtri","‹":"lsaquo","𝓁":"lscr","↰":"lsh","⪍":"lsime","⪏":"lsimg","‘":"lsquo","‚":"sbquo","Ł":"Lstrok","ł":"lstrok","⪦":"ltcc","⩹":"ltcir","<":"lt","⋉":"ltimes","⥶":"ltlarr","⩻":"ltquest","◃":"ltri","⦖":"ltrPar","⥊":"lurdshar","⥦":"luruhar","≨︀":"lvnE","¯":"macr","♂":"male","✠":"malt","⤅":"Map","↦":"map","↥":"mapstoup","▮":"marker","⨩":"mcomma","М":"Mcy","м":"mcy","—":"mdash","∺":"mDDot"," ":"MediumSpace","ℳ":"Mscr","𝔐":"Mfr","𝔪":"mfr","℧":"mho","µ":"micro","⫰":"midcir","∣":"mid","−":"minus","⨪":"minusdu","∓":"mp","⫛":"mlcp","⊧":"models","𝕄":"Mopf","𝕞":"mopf","𝓂":"mscr","Μ":"Mu","μ":"mu","⊸":"mumap","Ń":"Nacute","ń":"nacute","∠⃒":"nang","≉":"nap","⩰̸":"napE","≋̸":"napid","ʼn":"napos","♮":"natur","ℕ":"Nopf"," ":"nbsp","≎̸":"nbump","≏̸":"nbumpe","⩃":"ncap","Ň":"Ncaron","ň":"ncaron","Ņ":"Ncedil","ņ":"ncedil","≇":"ncong","⩭̸":"ncongdot","⩂":"ncup","Н":"Ncy","н":"ncy","–":"ndash","⤤":"nearhk","↗":"nearr","⇗":"neArr","≠":"ne","≐̸":"nedot","​":"ZeroWidthSpace","≢":"nequiv","⤨":"toea","≂̸":"nesim","\n":"NewLine","∄":"nexist","𝔑":"Nfr","𝔫":"nfr","≧̸":"ngE","≱":"nge","⩾̸":"nges","⋙̸":"nGg","≵":"ngsim","≫⃒":"nGt","≯":"ngt","≫̸":"nGtv","↮":"nharr","⇎":"nhArr","⫲":"nhpar","∋":"ni","⋼":"nis","⋺":"nisd","Њ":"NJcy","њ":"njcy","↚":"nlarr","⇍":"nlArr","‥":"nldr","≦̸":"nlE","≰":"nle","⩽̸":"nles","≮":"nlt","⋘̸":"nLl","≴":"nlsim","≪⃒":"nLt","⋪":"nltri","⋬":"nltrie","≪̸":"nLtv","∤":"nmid","⁠":"NoBreak","𝕟":"nopf","⫬":"Not","¬":"not","≭":"NotCupCap","∦":"npar","∉":"notin","≹":"ntgl","⋵̸":"notindot","⋹̸":"notinE","⋷":"notinvb","⋶":"notinvc","⧏̸":"NotLeftTriangleBar","≸":"ntlg","⪢̸":"NotNestedGreaterGreater","⪡̸":"NotNestedLessLess","∌":"notni","⋾":"notnivb","⋽":"notnivc","⊀":"npr","⪯̸":"npre","⋠":"nprcue","⧐̸":"NotRightTriangleBar","⋫":"nrtri","⋭":"nrtrie","⊏̸":"NotSquareSubset","⋢":"nsqsube","⊐̸":"NotSquareSuperset","⋣":"nsqsupe","⊂⃒":"vnsub","⊈":"nsube","⊁":"nsc","⪰̸":"nsce","⋡":"nsccue","≿̸":"NotSucceedsTilde","⊃⃒":"vnsup","⊉":"nsupe","≁":"nsim","≄":"nsime","⫽⃥":"nparsl","∂̸":"npart","⨔":"npolint","⤳̸":"nrarrc","↛":"nrarr","⇏":"nrArr","↝̸":"nrarrw","𝒩":"Nscr","𝓃":"nscr","⊄":"nsub","⫅̸":"nsubE","⊅":"nsup","⫆̸":"nsupE","Ñ":"Ntilde","ñ":"ntilde","Ν":"Nu","ν":"nu","#":"num","№":"numero"," ":"numsp","≍⃒":"nvap","⊬":"nvdash","⊭":"nvDash","⊮":"nVdash","⊯":"nVDash","≥⃒":"nvge",">⃒":"nvgt","⤄":"nvHarr","⧞":"nvinfin","⤂":"nvlArr","≤⃒":"nvle","<⃒":"nvlt","⊴⃒":"nvltrie","⤃":"nvrArr","⊵⃒":"nvrtrie","∼⃒":"nvsim","⤣":"nwarhk","↖":"nwarr","⇖":"nwArr","⤧":"nwnear","Ó":"Oacute","ó":"oacute","Ô":"Ocirc","ô":"ocirc","О":"Ocy","о":"ocy","Ő":"Odblac","ő":"odblac","⨸":"odiv","⦼":"odsold","Œ":"OElig","œ":"oelig","⦿":"ofcir","𝔒":"Ofr","𝔬":"ofr","˛":"ogon","Ò":"Ograve","ò":"ograve","⧁":"ogt","⦵":"ohbar","Ω":"ohm","⦾":"olcir","⦻":"olcross","‾":"oline","⧀":"olt","Ō":"Omacr","ō":"omacr","ω":"omega","Ο":"Omicron","ο":"omicron","⦶":"omid","𝕆":"Oopf","𝕠":"oopf","⦷":"opar","⦹":"operp","⩔":"Or","∨":"or","⩝":"ord","ℴ":"oscr","ª":"ordf","º":"ordm","⊶":"origof","⩖":"oror","⩗":"orslope","⩛":"orv","𝒪":"Oscr","Ø":"Oslash","ø":"oslash","⊘":"osol","Õ":"Otilde","õ":"otilde","⨶":"otimesas","⨷":"Otimes","Ö":"Ouml","ö":"ouml","⌽":"ovbar","⏞":"OverBrace","⎴":"tbrk","⏜":"OverParenthesis","¶":"para","⫳":"parsim","⫽":"parsl","∂":"part","П":"Pcy","п":"pcy","%":"percnt",".":"period","‰":"permil","‱":"pertenk","𝔓":"Pfr","𝔭":"pfr","Φ":"Phi","φ":"phi","ϕ":"phiv","☎":"phone","Π":"Pi","π":"pi","ϖ":"piv","ℎ":"planckh","⨣":"plusacir","⨢":"pluscir","+":"plus","⨥":"plusdu","⩲":"pluse","±":"pm","⨦":"plussim","⨧":"plustwo","⨕":"pointint","𝕡":"popf","ℙ":"Popf","£":"pound","⪷":"prap","⪻":"Pr","≺":"pr","≼":"prcue","⪯":"pre","≾":"prsim","⪹":"prnap","⪵":"prnE","⋨":"prnsim","⪳":"prE","′":"prime","″":"Prime","∏":"prod","⌮":"profalar","⌒":"profline","⌓":"profsurf","∝":"prop","⊰":"prurel","𝒫":"Pscr","𝓅":"pscr","Ψ":"Psi","ψ":"psi"," ":"puncsp","𝔔":"Qfr","𝔮":"qfr","𝕢":"qopf","ℚ":"Qopf","⁗":"qprime","𝒬":"Qscr","𝓆":"qscr","⨖":"quatint","?":"quest",'"':"quot","⇛":"rAarr","∽̱":"race","Ŕ":"Racute","ŕ":"racute","√":"Sqrt","⦳":"raemptyv","⟩":"rang","⟫":"Rang","⦒":"rangd","⦥":"range","»":"raquo","⥵":"rarrap","⇥":"rarrb","⤠":"rarrbfs","⤳":"rarrc","→":"rarr","↠":"Rarr","⤞":"rarrfs","⥅":"rarrpl","⥴":"rarrsim","⤖":"Rarrtl","↣":"rarrtl","↝":"rarrw","⤚":"ratail","⤜":"rAtail","∶":"ratio","❳":"rbbrk","}":"rcub","]":"rsqb","⦌":"rbrke","⦎":"rbrksld","⦐":"rbrkslu","Ř":"Rcaron","ř":"rcaron","Ŗ":"Rcedil","ŗ":"rcedil","⌉":"rceil","Р":"Rcy","р":"rcy","⤷":"rdca","⥩":"rdldhar","↳":"rdsh","ℜ":"Re","ℛ":"Rscr","ℝ":"Ropf","▭":"rect","⥽":"rfisht","⌋":"rfloor","𝔯":"rfr","⥤":"rHar","⇀":"rharu","⥬":"rharul","Ρ":"Rho","ρ":"rho","ϱ":"rhov","⇄":"rlarr","⟧":"robrk","⥝":"RightDownTeeVector","⥕":"RightDownVectorBar","⇉":"rrarr","⊢":"vdash","⥛":"RightTeeVector","⋌":"rthree","⧐":"RightTriangleBar","⊳":"vrtri","⊵":"rtrie","⥏":"RightUpDownVector","⥜":"RightUpTeeVector","⥔":"RightUpVectorBar","↾":"uharr","⥓":"RightVectorBar","˚":"ring","‏":"rlm","⎱":"rmoust","⫮":"rnmid","⟭":"roang","⇾":"roarr","⦆":"ropar","𝕣":"ropf","⨮":"roplus","⨵":"rotimes","⥰":"RoundImplies",")":"rpar","⦔":"rpargt","⨒":"rppolint","›":"rsaquo","𝓇":"rscr","↱":"rsh","⋊":"rtimes","▹":"rtri","⧎":"rtriltri","⧴":"RuleDelayed","⥨":"ruluhar","℞":"rx","Ś":"Sacute","ś":"sacute","⪸":"scap","Š":"Scaron","š":"scaron","⪼":"Sc","≻":"sc","≽":"sccue","⪰":"sce","⪴":"scE","Ş":"Scedil","ş":"scedil","Ŝ":"Scirc","ŝ":"scirc","⪺":"scnap","⪶":"scnE","⋩":"scnsim","⨓":"scpolint","≿":"scsim","С":"Scy","с":"scy","⋅":"sdot","⩦":"sdote","⇘":"seArr","§":"sect",";":"semi","⤩":"tosa","✶":"sext","𝔖":"Sfr","𝔰":"sfr","♯":"sharp","Щ":"SHCHcy","щ":"shchcy","Ш":"SHcy","ш":"shcy","↑":"uarr","­":"shy","Σ":"Sigma","σ":"sigma","ς":"sigmaf","∼":"sim","⩪":"simdot","≃":"sime","⪞":"simg","⪠":"simgE","⪝":"siml","⪟":"simlE","≆":"simne","⨤":"simplus","⥲":"simrarr","⨳":"smashp","⧤":"smeparsl","⌣":"smile","⪪":"smt","⪬":"smte","⪬︀":"smtes","Ь":"SOFTcy","ь":"softcy","⌿":"solbar","⧄":"solb","/":"sol","𝕊":"Sopf","𝕤":"sopf","♠":"spades","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊏":"sqsub","⊑":"sqsube","⊐":"sqsup","⊒":"sqsupe","□":"squ","𝒮":"Sscr","𝓈":"sscr","⋆":"Star","☆":"star","⊂":"sub","⋐":"Sub","⪽":"subdot","⫅":"subE","⊆":"sube","⫃":"subedot","⫁":"submult","⫋":"subnE","⊊":"subne","⪿":"subplus","⥹":"subrarr","⫇":"subsim","⫕":"subsub","⫓":"subsup","∑":"sum","♪":"sung","¹":"sup1","²":"sup2","³":"sup3","⊃":"sup","⋑":"Sup","⪾":"supdot","⫘":"supdsub","⫆":"supE","⊇":"supe","⫄":"supedot","⟉":"suphsol","⫗":"suphsub","⥻":"suplarr","⫂":"supmult","⫌":"supnE","⊋":"supne","⫀":"supplus","⫈":"supsim","⫔":"supsub","⫖":"supsup","⇙":"swArr","⤪":"swnwar","ß":"szlig"," ":"Tab","⌖":"target","Τ":"Tau","τ":"tau","Ť":"Tcaron","ť":"tcaron","Ţ":"Tcedil","ţ":"tcedil","Т":"Tcy","т":"tcy","⃛":"tdot","⌕":"telrec","𝔗":"Tfr","𝔱":"tfr","∴":"there4","Θ":"Theta","θ":"theta","ϑ":"thetav","  ":"ThickSpace"," ":"thinsp","Þ":"THORN","þ":"thorn","⨱":"timesbar","×":"times","⨰":"timesd","⌶":"topbot","⫱":"topcir","𝕋":"Topf","𝕥":"topf","⫚":"topfork","‴":"tprime","™":"trade","▵":"utri","≜":"trie","◬":"tridot","⨺":"triminus","⨹":"triplus","⧍":"trisb","⨻":"tritime","⏢":"trpezium","𝒯":"Tscr","𝓉":"tscr","Ц":"TScy","ц":"tscy","Ћ":"TSHcy","ћ":"tshcy","Ŧ":"Tstrok","ŧ":"tstrok","Ú":"Uacute","ú":"uacute","↟":"Uarr","⥉":"Uarrocir","Ў":"Ubrcy","ў":"ubrcy","Ŭ":"Ubreve","ŭ":"ubreve","Û":"Ucirc","û":"ucirc","У":"Ucy","у":"ucy","⇅":"udarr","Ű":"Udblac","ű":"udblac","⥮":"udhar","⥾":"ufisht","𝔘":"Ufr","𝔲":"ufr","Ù":"Ugrave","ù":"ugrave","⥣":"uHar","▀":"uhblk","⌜":"ulcorn","⌏":"ulcrop","◸":"ultri","Ū":"Umacr","ū":"umacr","⏟":"UnderBrace","⏝":"UnderParenthesis","⊎":"uplus","Ų":"Uogon","ų":"uogon","𝕌":"Uopf","𝕦":"uopf","⤒":"UpArrowBar","↕":"varr","υ":"upsi","ϒ":"Upsi","Υ":"Upsilon","⇈":"uuarr","⌝":"urcorn","⌎":"urcrop","Ů":"Uring","ů":"uring","◹":"urtri","𝒰":"Uscr","𝓊":"uscr","⋰":"utdot","Ũ":"Utilde","ũ":"utilde","Ü":"Uuml","ü":"uuml","⦧":"uwangle","⦜":"vangrt","⊊︀":"vsubne","⫋︀":"vsubnE","⊋︀":"vsupne","⫌︀":"vsupnE","⫨":"vBar","⫫":"Vbar","⫩":"vBarv","В":"Vcy","в":"vcy","⊩":"Vdash","⊫":"VDash","⫦":"Vdashl","⊻":"veebar","≚":"veeeq","⋮":"vellip","|":"vert","‖":"Vert","❘":"VerticalSeparator","≀":"wr","𝔙":"Vfr","𝔳":"vfr","𝕍":"Vopf","𝕧":"vopf","𝒱":"Vscr","𝓋":"vscr","⊪":"Vvdash","⦚":"vzigzag","Ŵ":"Wcirc","ŵ":"wcirc","⩟":"wedbar","≙":"wedgeq","℘":"wp","𝔚":"Wfr","𝔴":"wfr","𝕎":"Wopf","𝕨":"wopf","𝒲":"Wscr","𝓌":"wscr","𝔛":"Xfr","𝔵":"xfr","Ξ":"Xi","ξ":"xi","⋻":"xnis","𝕏":"Xopf","𝕩":"xopf","𝒳":"Xscr","𝓍":"xscr","Ý":"Yacute","ý":"yacute","Я":"YAcy","я":"yacy","Ŷ":"Ycirc","ŷ":"ycirc","Ы":"Ycy","ы":"ycy","¥":"yen","𝔜":"Yfr","𝔶":"yfr","Ї":"YIcy","ї":"yicy","𝕐":"Yopf","𝕪":"yopf","𝒴":"Yscr","𝓎":"yscr","Ю":"YUcy","ю":"yucy","ÿ":"yuml","Ÿ":"Yuml","Ź":"Zacute","ź":"zacute","Ž":"Zcaron","ž":"zcaron","З":"Zcy","з":"zcy","Ż":"Zdot","ż":"zdot","ℨ":"Zfr","Ζ":"Zeta","ζ":"zeta","𝔷":"zfr","Ж":"ZHcy","ж":"zhcy","⇝":"zigrarr","𝕫":"zopf","𝒵":"Zscr","𝓏":"zscr","‍":"zwj","‌":"zwnj"},f=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},p=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|iacute|Uacute|plusmn|otilde|Otilde|Agrave|agrave|yacute|Yacute|oslash|Oslash|Atilde|atilde|brvbar|Ccedil|ccedil|ograve|curren|divide|Eacute|eacute|Ograve|oacute|Egrave|egrave|ugrave|frac12|frac14|frac34|Ugrave|Oacute|Iacute|ntilde|Ntilde|uacute|middot|Igrave|igrave|iquest|aacute|laquo|THORN|micro|iexcl|icirc|Icirc|Acirc|ucirc|ecirc|Ocirc|ocirc|Ecirc|Ucirc|aring|Aring|aelig|AElig|acute|pound|raquo|acirc|times|thorn|szlig|cedil|COPY|Auml|ordf|ordm|uuml|macr|Uuml|auml|Ouml|ouml|para|nbsp|Euml|quot|QUOT|euml|yuml|cent|sect|copy|sup1|sup2|sup3|Iuml|iuml|shy|eth|reg|not|yen|amp|AMP|REG|uml|ETH|deg|gt|GT|LT|lt)([=a-zA-Z0-9])?/g,m={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},v={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},b={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},_=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],x=String.fromCharCode,w={},A=w.hasOwnProperty,k=function(t,e){return A.call(t,e)
},E=function(t,e){for(var n=-1,r=t.length;++n<r;)if(t[n]==e)return!0;return!1},D=function(t,e){if(!t)return e;var n,r={};for(n in e)r[n]=k(t,n)?t[n]:e[n];return r},M=function(t,e){var n="";return t>=55296&&57343>=t||t>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):k(b,t)?(e&&C("disallowed character reference"),b[t]):(e&&E(_,t)&&C("disallowed character reference"),t>65535&&(t-=65536,n+=x(t>>>10&1023|55296),t=56320|1023&t),n+=x(t))},S=function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"},C=function(t){throw Error("Parse error: "+t)},T=function(t,e){e=D(e,T.options);var n=e.strict;n&&g.test(t)&&C("forbidden code point");var r=e.encodeEverything,i=e.useNamedReferences,a=e.allowUnsafeSymbols;return r?(t=t.replace(s,function(t){return i&&k(h,t)?"&"+h[t]+";":S(t)}),i&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),i&&(t=t.replace(l,function(t){return"&"+h[t]+";"}))):i?(a||(t=t.replace(f,function(t){return"&"+h[t]+";"})),t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),t=t.replace(l,function(t){return"&"+h[t]+";"})):a||(t=t.replace(f,S)),t.replace(u,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=1024*(e-55296)+n-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}).replace(c,S)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1};var F=function(t,e){e=D(e,F.options);var n=e.strict;return n&&p.test(t)&&C("malformed character reference"),t.replace(y,function(t,r,i,a,o,u,s,c){var l,h,f,d,p;return r?(l=r,h=i,n&&!h&&C("character reference was not terminated by a semicolon"),M(l,n)):a?(f=a,h=o,n&&!h&&C("character reference was not terminated by a semicolon"),l=parseInt(f,16),M(l,n)):u?(d=u,k(m,d)?m[d]:(n&&C("named character reference was not terminated by a semicolon"),t)):(d=s,p=c,p&&e.isAttributeValue?(n&&"="==p&&C("`&` did not start a character reference"),t):(n&&C("named character reference was not terminated by a semicolon"),v[d]+(p||"")))})};F.options={isAttributeValue:!1,strict:!1};var L=function(t){return t.replace(f,function(t){return d[t]})},B={version:"0.5.0",encode:T,decode:F,escape:L,unescape:F};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return B});else if(i&&!i.nodeType)if(a)a.exports=B;else for(var N in B)k(B,N)&&(i[N]=B[N]);else r.he=B}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],85:[function(t,e,n){!function(t,r){"object"==typeof n&&"undefined"!=typeof e?e.exports=r():"function"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){"use strict";function n(){return Lr.apply(null,arguments)}function r(t){Lr=t}function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function o(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,n,r){return Me(t,e,n,r,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function h(t){return null==t._pf&&(t._pf=l()),t._pf}function f(t){if(null==t._isValid){var e=h(t);t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function d(t){var e=c(0/0);return null!=t?s(h(e),t):h(e).userInvalidated=!0,e}function p(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=h(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),Nr.length>0)for(n in Nr)r=Nr[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function g(t){p(this,t),this._d=new Date(+t._d),Or===!1&&(Or=!0,n.updateOffset(this),Or=!1)}function y(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function v(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&m(t[r])!==m(e[r]))&&o++;return o+a}function b(){}function _(t){return t?t.toLowerCase().replace("_","-"):t}function x(t){for(var e,n,r,i,a=0;a<t.length;){for(i=_(t[a]).split("-"),e=i.length,n=_(t[a+1]),n=n?n.split("-"):null;e>0;){if(r=w(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&v(i,n,!0)>=e-1)break;e--}a++}return null}function w(n){var r=null;if(!Ir[n]&&"undefined"!=typeof e&&e&&e.exports)try{r=Br._abbr,t("./locale/"+n),A(r)}catch(i){}return Ir[n]}function A(t,e){var n;return t&&(n="undefined"==typeof e?E(t):k(t,e),n&&(Br=n)),Br._abbr}function k(t,e){return null!==e?(e.abbr=t,Ir[t]||(Ir[t]=new b),Ir[t].set(e),A(t),Ir[t]):(delete Ir[t],null)}function E(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Br;if(!i(t)){if(e=w(t))return e;t=[t]}return x(t)}function D(t,e){var n=t.toLowerCase();Rr[n]=Rr[n+"s"]=Rr[e]=t}function M(t){return"string"==typeof t?Rr[t]||Rr[t.toLowerCase()]:void 0}function S(t){var e,n,r={};for(n in t)u(t,n)&&(e=M(n),e&&(r[e]=t[n]));return r}function C(t,e){return function(r){return null!=r?(F(this,t,r),n.updateOffset(this,e),this):T(this,t)}}function T(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function F(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function L(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=M(t),"function"==typeof this[t])return this[t](e);return this}function B(t,e,n){for(var r=""+Math.abs(t),i=t>=0;r.length<e;)r="0"+r;return(i?n?"+":"":"-")+r}function N(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(jr[t]=i),e&&(jr[e[0]]=function(){return B(i.apply(this,arguments),e[1],e[2])}),n&&(jr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function O(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function I(t){var e,n,r=t.match(qr);for(e=0,n=r.length;n>e;e++)r[e]=jr[r[e]]?jr[r[e]]:O(r[e]);return function(i){var a="";for(e=0;n>e;e++)a+=r[e]instanceof Function?r[e].call(i,t):r[e];return a}}function R(t,e){return t.isValid()?(e=q(e,t.localeData()),Ur[e]||(Ur[e]=I(e)),Ur[e](t)):t.localeData().invalidDate()}function q(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(Pr.lastIndex=0;r>=0&&Pr.test(t);)t=t.replace(Pr,n),Pr.lastIndex=0,r-=1;return t}function P(t,e,n){ni[t]="function"==typeof e?e:function(t){return t&&n?n:e}}function U(t,e){return u(ni,t)?ni[t](e._strict,e._locale):new RegExp(j(t))}function j(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Y(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=m(t)}),n=0;n<t.length;n++)ri[t[n]]=r}function z(t,e){Y(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function V(t,e,n){null!=e&&u(ri,t)&&ri[t](e,n._a,n,t)}function H(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function G(t){return this._months[t.month()]}function $(t){return this._monthsShort[t.month()]}function W(t,e,n){var r,i,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=c([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function Z(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),H(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function X(t){return null!=t?(Z(this,t),n.updateOffset(this,!0),this):T(this,"Month")}function K(){return H(this.year(),this.month())}function J(t){var e,n=t._a;return n&&-2===h(t).overflow&&(e=n[ai]<0||n[ai]>11?ai:n[oi]<1||n[oi]>H(n[ii],n[ai])?oi:n[ui]<0||n[ui]>24||24===n[ui]&&(0!==n[si]||0!==n[ci]||0!==n[li])?ui:n[si]<0||n[si]>59?si:n[ci]<0||n[ci]>59?ci:n[li]<0||n[li]>999?li:-1,h(t)._overflowDayOfYear&&(ii>e||e>oi)&&(e=oi),h(t).overflow=e),t}function Q(t){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function te(t,e){var n=!0,r=t+"\n"+(new Error).stack;return s(function(){return n&&(Q(r),n=!1),e.apply(this,arguments)},e)}function ee(t,e){di[t]||(Q(e),di[t]=!0)}function ne(t){var e,n,r=t._i,i=pi.exec(r);if(i){for(h(t).iso=!0,e=0,n=gi.length;n>e;e++)if(gi[e][1].exec(r)){t._f=gi[e][0]+(i[6]||" ");break}for(e=0,n=yi.length;n>e;e++)if(yi[e][1].exec(r)){t._f+=yi[e][0];break}r.match(Qr)&&(t._f+="Z"),xe(t)}else t._isValid=!1}function re(t){var e=mi.exec(t._i);return null!==e?void(t._d=new Date(+e[1])):(ne(t),void(t._isValid===!1&&(delete t._isValid,n.createFromInputFallback(t))))}function ie(t,e,n,r,i,a,o){var u=new Date(t,e,n,r,i,a,o);return 1970>t&&u.setFullYear(t),u}function ae(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function oe(t){return ue(t)?366:365}function ue(t){return t%4===0&&t%100!==0||t%400===0}function se(){return ue(this.year())}function ce(t,e,n){var r,i=n-e,a=n-t.day();return a>i&&(a-=7),i-7>a&&(a+=7),r=Se(t).add(a,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function le(t){return ce(t,this._week.dow,this._week.doy).week}function he(){return this._week.dow}function fe(){return this._week.doy}function de(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function pe(t){var e=ce(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function ge(t,e,n,r,i){var a,o,u=ae(t,0,1).getUTCDay();return u=0===u?7:u,n=null!=n?n:i,a=i-u+(u>r?7:0)-(i>u?7:0),o=7*(e-1)+(n-i)+a+1,{year:o>0?t:t-1,dayOfYear:o>0?o:oe(t-1)+o}}function ye(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function me(t,e,n){return null!=t?t:null!=e?e:n}function ve(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function be(t){var e,n,r,i,a=[];if(!t._d){for(r=ve(t),t._w&&null==t._a[oi]&&null==t._a[ai]&&_e(t),t._dayOfYear&&(i=me(t._a[ii],r[ii]),t._dayOfYear>oe(i)&&(h(t)._overflowDayOfYear=!0),n=ae(i,0,t._dayOfYear),t._a[ai]=n.getUTCMonth(),t._a[oi]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;7>e;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ui]&&0===t._a[si]&&0===t._a[ci]&&0===t._a[li]&&(t._nextDay=!0,t._a[ui]=0),t._d=(t._useUTC?ae:ie).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ui]=24)}}function _e(t){var e,n,r,i,a,o,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,o=4,n=me(e.GG,t._a[ii],ce(Se(),1,4).year),r=me(e.W,1),i=me(e.E,1)):(a=t._locale._week.dow,o=t._locale._week.doy,n=me(e.gg,t._a[ii],ce(Se(),a,o).year),r=me(e.w,1),null!=e.d?(i=e.d,a>i&&++r):i=null!=e.e?e.e+a:a),u=ge(n,r,i,o,a),t._a[ii]=u.year,t._dayOfYear=u.dayOfYear}function xe(t){if(t._f===n.ISO_8601)return void ne(t);t._a=[],h(t).empty=!0;var e,r,i,a,o,u=""+t._i,s=u.length,c=0;for(i=q(t._f,t._locale).match(qr)||[],e=0;e<i.length;e++)a=i[e],r=(u.match(U(a,t))||[])[0],r&&(o=u.substr(0,u.indexOf(r)),o.length>0&&h(t).unusedInput.push(o),u=u.slice(u.indexOf(r)+r.length),c+=r.length),jr[a]?(r?h(t).empty=!1:h(t).unusedTokens.push(a),V(a,r,t)):t._strict&&!r&&h(t).unusedTokens.push(a);h(t).charsLeftOver=s-c,u.length>0&&h(t).unusedInput.push(u),h(t).bigHour===!0&&t._a[ui]<=12&&t._a[ui]>0&&(h(t).bigHour=void 0),t._a[ui]=we(t._locale,t._a[ui],t._meridiem),be(t),J(t)}function we(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&12>e&&(e+=12),r||12!==e||(e=0),e):e}function Ae(t){var e,n,r,i,a;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(0/0));for(i=0;i<t._f.length;i++)a=0,e=p({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],xe(e),f(e)&&(a+=h(e).charsLeftOver,a+=10*h(e).unusedTokens.length,h(e).score=a,(null==r||r>a)&&(r=a,n=e));s(t,n||e)}function ke(t){if(!t._d){var e=S(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],be(t)}}function Ee(t){var e,n=t._i,r=t._f;return t._locale=t._locale||E(t._l),null===n||void 0===r&&""===n?d({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),y(n)?new g(J(n)):(i(r)?Ae(t):r?xe(t):a(n)?t._d=n:De(t),e=new g(J(t)),e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e))}function De(t){var e=t._i;void 0===e?t._d=new Date:a(e)?t._d=new Date(+e):"string"==typeof e?re(t):i(e)?(t._a=o(e.slice(0),function(t){return parseInt(t,10)}),be(t)):"object"==typeof e?ke(t):"number"==typeof e?t._d=new Date(e):n.createFromInputFallback(t)}function Me(t,e,n,r,i){var a={};return"boolean"==typeof n&&(r=n,n=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,Ee(a)}function Se(t,e,n,r){return Me(t,e,n,r,!1)}function Ce(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Se();for(n=e[0],r=1;r<e.length;++r)e[r][t](n)&&(n=e[r]);return n}function Te(){var t=[].slice.call(arguments,0);return Ce("isBefore",t)}function Fe(){var t=[].slice.call(arguments,0);return Ce("isAfter",t)}function Le(t){var e=S(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||0,o=e.day||0,u=e.hour||0,s=e.minute||0,c=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*c+6e4*s+36e5*u,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=E(),this._bubble()}function Be(t){return t instanceof Le}function Ne(t,e){N(t,0,0,function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+B(~~(t/60),2)+e+B(~~t%60,2)})}function Oe(t){var e=(t||"").match(Qr)||[],n=e[e.length-1]||[],r=(n+"").match(wi)||["-",0,0],i=+(60*r[1])+m(r[2]);return"+"===r[0]?i:-i}function Ie(t,e){var r,i;return e._isUTC?(r=e.clone(),i=(y(t)||a(t)?+t:+Se(t))-+r,r._d.setTime(+r._d+i),n.updateOffset(r,!1),r):Se(t).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function qe(t,e){var r,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Oe(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(r=Re(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?tn(this,Ze(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Re(this)}function Pe(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Ue(t){return this.utcOffset(0,t)}function je(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function Ye(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Oe(this._i)),this}function ze(t){return t=t?Se(t).utcOffset():0,(this.utcOffset()-t)%60===0}function Ve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function He(){if(this._a){var t=this._isUTC?c(this._a):Se(this._a);return this.isValid()&&v(this._a,t.toArray())>0}return!1}function Ge(){return!this._isUTC}function $e(){return this._isUTC}function We(){return this._isUTC&&0===this._offset}function Ze(t,e){var n,r,i,a=t,o=null;return Be(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},e?a[e]=t:a.milliseconds=t):(o=Ai.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:m(o[oi])*n,h:m(o[ui])*n,m:m(o[si])*n,s:m(o[ci])*n,ms:m(o[li])*n}):(o=ki.exec(t))?(n="-"===o[1]?-1:1,a={y:Xe(o[2],n),M:Xe(o[3],n),d:Xe(o[4],n),h:Xe(o[5],n),m:Xe(o[6],n),s:Xe(o[7],n),w:Xe(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Je(Se(a.from),Se(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Le(a),Be(t)&&u(t,"_locale")&&(r._locale=t._locale),r}function Xe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ke(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(t,e){var n;return e=Ie(e,t),t.isBefore(e)?n=Ke(t,e):(n=Ke(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Qe(t,e){return function(n,r){var i,a;return null===r||isNaN(+r)||(ee(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),a=n,n=r,r=a),n="string"==typeof n?+n:n,i=Ze(n,r),tn(this,i,t),this}}function tn(t,e,r,i){var a=e._milliseconds,o=e._days,u=e._months;i=null==i?!0:i,a&&t._d.setTime(+t._d+a*r),o&&F(t,"Date",T(t,"Date")+o*r),u&&Z(t,T(t,"Month")+u*r),i&&n.updateOffset(t,o||u)}function en(t){var e=t||Se(),n=Ie(e,this).startOf("day"),r=this.diff(n,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,Se(e)))}function nn(){return new g(this)}function rn(t,e){var n;return e=M("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=y(t)?t:Se(t),+this>+t):(n=y(t)?+t:+Se(t),n<+this.clone().startOf(e))}function an(t,e){var n;return e=M("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=y(t)?t:Se(t),+t>+this):(n=y(t)?+t:+Se(t),+this.clone().endOf(e)<n)}function on(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function un(t,e){var n;return e=M(e||"millisecond"),"millisecond"===e?(t=y(t)?t:Se(t),+this===+t):(n=+Se(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function sn(t){return 0>t?Math.ceil(t):Math.floor(t)}function cn(t,e,n){var r,i,a=Ie(t,this),o=6e4*(a.utcOffset()-this.utcOffset());return e=M(e),"year"===e||"month"===e||"quarter"===e?(i=ln(this,a),"quarter"===e?i/=3:"year"===e&&(i/=12)):(r=this-a,i="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-o)/864e5:"week"===e?(r-o)/6048e5:r),n?i:sn(i)}function ln(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(i,"months");return 0>e-a?(n=t.clone().add(i-1,"months"),r=(e-a)/(a-n)):(n=t.clone().add(i+1,"months"),r=(e-a)/(n-a)),-(i+r)}function hn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fn(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():R(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):R(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(t){var e=R(this,t||n.defaultFormat);return this.localeData().postformat(e)}function pn(t,e){return this.isValid()?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function gn(t){return this.from(Se(),t)}function yn(t,e){return this.isValid()?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function mn(t){return this.to(Se(),t)}function vn(t){var e;return void 0===t?this._locale._abbr:(e=E(t),null!=e&&(this._locale=e),this)}function bn(){return this._locale}function _n(t){switch(t=M(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function xn(t){return t=M(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function wn(){return+this._d-6e4*(this._offset||0)}function An(){return Math.floor(+this/1e3)}function kn(){return this._offset?new Date(+this):this._d}function En(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Dn(){return f(this)}function Mn(){return s({},h(this))}function Sn(){return h(this).overflow}function Cn(t,e){N(0,[t,t.length],0,e)}function Tn(t,e,n){return ce(Se([t,11,31+e-n]),e,n).week}function Fn(t){var e=ce(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function Ln(t){var e=ce(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Bn(){return Tn(this.year(),1,4)}function Nn(){var t=this.localeData()._week;return Tn(this.year(),t.dow,t.doy)}function On(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function In(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function Rn(t){return this._weekdays[t.day()]}function qn(t){return this._weekdaysShort[t.day()]}function Pn(t){return this._weekdaysMin[t.day()]}function Un(t){var e,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=Se([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function jn(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=In(t,this.localeData()),this.add(t-e,"d")):e}function Yn(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function zn(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function Vn(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Hn(t,e){return e._meridiemParse}function Gn(t){return"p"===(t+"").toLowerCase().charAt(0)}function $n(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Wn(t){N(0,[t,3],0,"millisecond")}function Zn(){return this._isUTC?"UTC":""}function Xn(){return this._isUTC?"Coordinated Universal Time":""}function Kn(t){return Se(1e3*t)}function Jn(){return Se.apply(null,arguments).parseZone()}function Qn(t,e,n){var r=this._calendar[t];return"function"==typeof r?r.call(e,n):r}function tr(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e}function er(){return this._invalidDate}function nr(t){return this._ordinal.replace("%d",t)}function rr(t){return t}function ir(t,e,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,r):i.replace(/%d/i,t)}function ar(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function or(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ur(t,e,n,r){var i=E(),a=c().set(r,e);return i[n](a,t)}function sr(t,e,n,r,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return ur(t,e,n,i);var a,o=[];for(a=0;r>a;a++)o[a]=ur(t,a,n,i);return o}function cr(t,e){return sr(t,e,"months",12,"month")}function lr(t,e){return sr(t,e,"monthsShort",12,"month")}function hr(t,e){return sr(t,e,"weekdays",7,"day")}function fr(t,e){return sr(t,e,"weekdaysShort",7,"day")}function dr(t,e){return sr(t,e,"weekdaysMin",7,"day")}function pr(){var t=this._data;return this._milliseconds=Gi(this._milliseconds),this._days=Gi(this._days),this._months=Gi(this._months),t.milliseconds=Gi(t.milliseconds),t.seconds=Gi(t.seconds),t.minutes=Gi(t.minutes),t.hours=Gi(t.hours),t.months=Gi(t.months),t.years=Gi(t.years),this}function gr(t,e,n,r){var i=Ze(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function yr(t,e){return gr(this,t,e,1)}function mr(t,e){return gr(this,t,e,-1)}function vr(){var t,e,n,r=this._milliseconds,i=this._days,a=this._months,o=this._data,u=0;return o.milliseconds=r%1e3,t=sn(r/1e3),o.seconds=t%60,e=sn(t/60),o.minutes=e%60,n=sn(e/60),o.hours=n%24,i+=sn(n/24),u=sn(br(i)),i-=sn(_r(u)),a+=sn(i/30),i%=30,u+=sn(a/12),a%=12,o.days=i,o.months=a,o.years=u,this}function br(t){return 400*t/146097}function _r(t){return 146097*t/400}function xr(t){var e,n,r=this._milliseconds;if(t=M(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+12*br(e),"month"===t?n:n/12;switch(e=this._days+Math.round(_r(this._months/12)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function wr(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function Ar(t){return function(){return this.as(t)}}function kr(t){return t=M(t),this[t+"s"]()}function Er(t){return function(){return this._data[t]}}function Dr(){return sn(this.days()/7)}function Mr(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function Sr(t,e,n){var r=Ze(t).abs(),i=sa(r.as("s")),a=sa(r.as("m")),o=sa(r.as("h")),u=sa(r.as("d")),s=sa(r.as("M")),c=sa(r.as("y")),l=i<ca.s&&["s",i]||1===a&&["m"]||a<ca.m&&["mm",a]||1===o&&["h"]||o<ca.h&&["hh",o]||1===u&&["d"]||u<ca.d&&["dd",u]||1===s&&["M"]||s<ca.M&&["MM",s]||1===c&&["y"]||["yy",c];return l[2]=e,l[3]=+t>0,l[4]=n,Mr.apply(null,l)}function Cr(t,e){return void 0===ca[t]?!1:void 0===e?ca[t]:(ca[t]=e,!0)}function Tr(t){var e=this.localeData(),n=Sr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Fr(){var t=la(this.years()),e=la(this.months()),n=la(this.days()),r=la(this.hours()),i=la(this.minutes()),a=la(this.seconds()+this.milliseconds()/1e3),o=this.asSeconds();return o?(0>o?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(r||i||a?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(a?a+"S":""):"P0D"}var Lr,Br,Nr=n.momentProperties=[],Or=!1,Ir={},Rr={},qr=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Pr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ur={},jr={},Yr=/\d/,zr=/\d\d/,Vr=/\d{3}/,Hr=/\d{4}/,Gr=/[+-]?\d{6}/,$r=/\d\d?/,Wr=/\d{1,3}/,Zr=/\d{1,4}/,Xr=/[+-]?\d{1,6}/,Kr=/\d+/,Jr=/[+-]?\d+/,Qr=/Z|[+-]\d\d:?\d\d/gi,ti=/[+-]?\d+(\.\d{1,3})?/,ei=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ni={},ri={},ii=0,ai=1,oi=2,ui=3,si=4,ci=5,li=6;N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),N("MMMM",0,0,function(t){return this.localeData().months(this,t)}),D("month","M"),P("M",$r),P("MM",$r,zr),P("MMM",ei),P("MMMM",ei),Y(["M","MM"],function(t,e){e[ai]=m(t)-1}),Y(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[ai]=i:h(n).invalidMonth=t});var hi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),fi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),di={};n.suppressDeprecationWarnings=!1;var pi=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],yi=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],mi=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=te("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),D("year","y"),P("Y",Jr),P("YY",$r,zr),P("YYYY",Zr,Hr),P("YYYYY",Xr,Gr),P("YYYYYY",Xr,Gr),Y(["YYYY","YYYYY","YYYYYY"],ii),Y("YY",function(t,e){e[ii]=n.parseTwoDigitYear(t)}),n.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var vi=C("FullYear",!1);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),P("w",$r),P("ww",$r,zr),P("W",$r),P("WW",$r,zr),z(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=m(t)});var bi={dow:0,doy:6};N("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),P("DDD",Wr),P("DDDD",Vr),Y(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)}),n.ISO_8601=function(){};var _i=te("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Se.apply(null,arguments);return this>t?this:t}),xi=te("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Se.apply(null,arguments);return t>this?this:t});Ne("Z",":"),Ne("ZZ",""),P("Z",Qr),P("ZZ",Qr),Y(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Oe(t)});var wi=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Ai=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ki=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ze.fn=Le.prototype;var Ei=Qe(1,"add"),Di=Qe(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Mi=te("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Cn("gggg","weekYear"),Cn("ggggg","weekYear"),Cn("GGGG","isoWeekYear"),Cn("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),P("G",Jr),P("g",Jr),P("GG",$r,zr),P("gg",$r,zr),P("GGGG",Zr,Hr),P("gggg",Zr,Hr),P("GGGGG",Xr,Gr),P("ggggg",Xr,Gr),z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=m(t)}),z(["gg","GG"],function(t,e,r,i){e[i]=n.parseTwoDigitYear(t)}),N("Q",0,0,"quarter"),D("quarter","Q"),P("Q",Yr),Y("Q",function(t,e){e[ai]=3*(m(t)-1)}),N("D",["DD",2],"Do","date"),D("date","D"),P("D",$r),P("DD",$r,zr),P("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),Y(["D","DD"],oi),Y("Do",function(t,e){e[oi]=m(t.match($r)[0],10)});var Si=C("Date",!0);N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),P("d",$r),P("e",$r),P("E",$r),P("dd",ei),P("ddd",ei),P("dddd",ei),z(["dd","ddd","dddd"],function(t,e,n){var r=n._locale.weekdaysParse(t);null!=r?e.d=r:h(n).invalidWeekday=t}),z(["d","e","E"],function(t,e,n,r){e[r]=m(t)});var Ci="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ti="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fi="Su_Mo_Tu_We_Th_Fr_Sa".split("_");N("H",["HH",2],0,"hour"),N("h",["hh",2],0,function(){return this.hours()%12||12}),Vn("a",!0),Vn("A",!1),D("hour","h"),P("a",Hn),P("A",Hn),P("H",$r),P("h",$r),P("HH",$r,zr),P("hh",$r,zr),Y(["H","HH"],ui),Y(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t
}),Y(["h","hh"],function(t,e,n){e[ui]=m(t),h(n).bigHour=!0});var Li=/[ap]\.?m?\.?/i,Bi=C("Hours",!0);N("m",["mm",2],0,"minute"),D("minute","m"),P("m",$r),P("mm",$r,zr),Y(["m","mm"],si);var Ni=C("Minutes",!1);N("s",["ss",2],0,"second"),D("second","s"),P("s",$r),P("ss",$r,zr),Y(["s","ss"],ci);var Oi=C("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Wn("SSS"),Wn("SSSS"),D("millisecond","ms"),P("S",Wr,Yr),P("SS",Wr,zr),P("SSS",Wr,Vr),P("SSSS",Kr),Y(["S","SS","SSS","SSSS"],function(t,e){e[li]=m(1e3*("0."+t))});var Ii=C("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Ri=g.prototype;Ri.add=Ei,Ri.calendar=en,Ri.clone=nn,Ri.diff=cn,Ri.endOf=xn,Ri.format=dn,Ri.from=pn,Ri.fromNow=gn,Ri.to=yn,Ri.toNow=mn,Ri.get=L,Ri.invalidAt=Sn,Ri.isAfter=rn,Ri.isBefore=an,Ri.isBetween=on,Ri.isSame=un,Ri.isValid=Dn,Ri.lang=Mi,Ri.locale=vn,Ri.localeData=bn,Ri.max=xi,Ri.min=_i,Ri.parsingFlags=Mn,Ri.set=L,Ri.startOf=_n,Ri.subtract=Di,Ri.toArray=En,Ri.toDate=kn,Ri.toISOString=fn,Ri.toJSON=fn,Ri.toString=hn,Ri.unix=An,Ri.valueOf=wn,Ri.year=vi,Ri.isLeapYear=se,Ri.weekYear=Fn,Ri.isoWeekYear=Ln,Ri.quarter=Ri.quarters=On,Ri.month=X,Ri.daysInMonth=K,Ri.week=Ri.weeks=de,Ri.isoWeek=Ri.isoWeeks=pe,Ri.weeksInYear=Nn,Ri.isoWeeksInYear=Bn,Ri.date=Si,Ri.day=Ri.days=jn,Ri.weekday=Yn,Ri.isoWeekday=zn,Ri.dayOfYear=ye,Ri.hour=Ri.hours=Bi,Ri.minute=Ri.minutes=Ni,Ri.second=Ri.seconds=Oi,Ri.millisecond=Ri.milliseconds=Ii,Ri.utcOffset=qe,Ri.utc=Ue,Ri.local=je,Ri.parseZone=Ye,Ri.hasAlignedHourOffset=ze,Ri.isDST=Ve,Ri.isDSTShifted=He,Ri.isLocal=Ge,Ri.isUtcOffset=$e,Ri.isUtc=We,Ri.isUTC=We,Ri.zoneAbbr=Zn,Ri.zoneName=Xn,Ri.dates=te("dates accessor is deprecated. Use date instead.",Si),Ri.months=te("months accessor is deprecated. Use month instead",X),Ri.years=te("years accessor is deprecated. Use year instead",vi),Ri.zone=te("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Pe);var qi=Ri,Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ui={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},ji="Invalid date",Yi="%d",zi=/\d{1,2}/,Vi={future:"in %s",past:"%s ago",s:"a few 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"},Hi=b.prototype;Hi._calendar=Pi,Hi.calendar=Qn,Hi._longDateFormat=Ui,Hi.longDateFormat=tr,Hi._invalidDate=ji,Hi.invalidDate=er,Hi._ordinal=Yi,Hi.ordinal=nr,Hi._ordinalParse=zi,Hi.preparse=rr,Hi.postformat=rr,Hi._relativeTime=Vi,Hi.relativeTime=ir,Hi.pastFuture=ar,Hi.set=or,Hi.months=G,Hi._months=hi,Hi.monthsShort=$,Hi._monthsShort=fi,Hi.monthsParse=W,Hi.week=le,Hi._week=bi,Hi.firstDayOfYear=fe,Hi.firstDayOfWeek=he,Hi.weekdays=Rn,Hi._weekdays=Ci,Hi.weekdaysMin=Pn,Hi._weekdaysMin=Fi,Hi.weekdaysShort=qn,Hi._weekdaysShort=Ti,Hi.weekdaysParse=Un,Hi.isPM=Gn,Hi._meridiemParse=Li,Hi.meridiem=$n,A("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),n.lang=te("moment.lang is deprecated. Use moment.locale instead.",A),n.langData=te("moment.langData is deprecated. Use moment.localeData instead.",E);var Gi=Math.abs,$i=Ar("ms"),Wi=Ar("s"),Zi=Ar("m"),Xi=Ar("h"),Ki=Ar("d"),Ji=Ar("w"),Qi=Ar("M"),ta=Ar("y"),ea=Er("milliseconds"),na=Er("seconds"),ra=Er("minutes"),ia=Er("hours"),aa=Er("days"),oa=Er("months"),ua=Er("years"),sa=Math.round,ca={s:45,m:45,h:22,d:26,M:11},la=Math.abs,ha=Le.prototype;ha.abs=pr,ha.add=yr,ha.subtract=mr,ha.as=xr,ha.asMilliseconds=$i,ha.asSeconds=Wi,ha.asMinutes=Zi,ha.asHours=Xi,ha.asDays=Ki,ha.asWeeks=Ji,ha.asMonths=Qi,ha.asYears=ta,ha.valueOf=wr,ha._bubble=vr,ha.get=kr,ha.milliseconds=ea,ha.seconds=na,ha.minutes=ra,ha.hours=ia,ha.days=aa,ha.weeks=Dr,ha.months=oa,ha.years=ua,ha.humanize=Tr,ha.toISOString=Fr,ha.toString=Fr,ha.toJSON=Fr,ha.locale=vn,ha.localeData=bn,ha.toIsoString=te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fr),ha.lang=Mi,N("X",0,0,"unix"),N("x",0,0,"valueOf"),P("x",Jr),P("X",ti),Y("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Y("x",function(t,e,n){n._d=new Date(m(t))}),n.version="2.10.3",r(Se),n.fn=qi,n.min=Te,n.max=Fe,n.utc=c,n.unix=Kn,n.months=cr,n.isDate=a,n.locale=A,n.invalid=d,n.duration=Ze,n.isMoment=y,n.weekdays=hr,n.parseZone=Jn,n.localeData=E,n.isDuration=Be,n.monthsShort=lr,n.weekdaysMin=dr,n.defineLocale=k,n.weekdaysShort=fr,n.normalizeUnits=M,n.relativeTimeThreshold=Cr;var fa=n;return fa})},{}],86:[function(t,e){e.exports={name:"mermaid",version:"0.5.1",description:"Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",main:"src/mermaid.js",keywords:["diagram","markdown","flowchart","sequence diagram","gantt"],bin:{mermaid:"./bin/mermaid.js"},scripts:{test:"./node_modules/.bin/gulp dist && ./node_modules/.bin/gulp test"},repository:{type:"git",url:"https://github.com/knsv/mermaid"},author:"Knut Sveidqvist",license:"MIT",dependencies:{chalk:"^0.5.1",d3:"~3.4.13","dagre-d3":"~0.4.8",he:"^0.5.0",minimist:"^1.1.0",mkdirp:"^0.5.0",moment:"^2.9.0",semver:"^4.1.1",which:"^1.0.8"},devDependencies:{async:"^0.9.0",browserify:"~6.2.0",clone:"^0.2.0","codeclimate-test-reporter":"0.0.4","connect-livereload":"^0.5.3",d3:"~3.4.13",dateformat:"^1.0.11","event-stream":"^3.2.0",express:"^4.12.4",foundation:"^4.2.1-1","front-matter":"^0.2.0",gulp:"~3.8.9","gulp-bower":"0.0.10","gulp-browserify":"^0.5.0","gulp-bump":"^0.1.11","gulp-concat":"~2.4.1","gulp-data":"^1.1.1","gulp-ext-replace":"~0.1.0","gulp-filelog":"^0.4.1","gulp-hogan":"^1.1.0","gulp-if":"^1.2.5","gulp-insert":"^0.4.0","gulp-istanbul":"^0.4.0","gulp-jasmine":"~1.0.1","gulp-jison":"~1.2.0","gulp-jshint":"^1.9.0","gulp-less":"^3.0.1","gulp-livereload":"^3.8.0","gulp-qunit":"~1.2.1","gulp-rename":"~1.2.0","gulp-shell":"^0.2.10","gulp-tag-version":"^1.2.1","gulp-uglify":"~1.0.1",he:"^0.5.0","hogan.js":"^3.0.2",jasmine:"~2.0.1",jison:"~0.4.15","jshint-stylish":"^1.0.0",karma:"~0.12.20","karma-chrome-launcher":"~0.1.5","karma-jasmine":"~0.2.1","karma-requirejs":"~0.2.2",lodash:"^2.4.1","lodash._escapestringchar":"^2.4.1","lodash._objecttypes":"^2.4.1","lodash._reinterpolate":"^2.4.1","lodash._reunescapedhtml":"^2.4.1","lodash.defaults":"^2.4.1","lodash.templatesettings":"^2.4.1","lodash.values":"^2.4.1",marked:"^0.3.2","mock-browser":"^0.90.27",path:"^0.4.9",phantomjs:"^1.9.17",proxyquire:"^1.3.1","require-dir":"^0.3.0",rewire:"^2.1.3",rimraf:"^2.2.8",tape:"^3.0.3","tiny-lr":"^0.1.6","vinyl-source-stream":"^1.1.0",watchify:"^3.2.2"}}},{}],87:[function(t,e){var n;if(t)try{n=t("d3")}catch(r){}n||(n=window.d3),e.exports=n,function(){var t=!1;if(t="tspans",n.selection.prototype.textwrap)return!1;if("undefined"==typeof t)var t=!1;n.selection.prototype.textwrap=n.selection.enter.prototype.textwrap=function(e,r){var i,r=parseInt(r)||0,a=this,o=function(t){var e=t[0][0],r=e.tagName.toString();if("rect"!==r)return!1;var i={};return i.x=n.select(e).attr("x")||0,i.y=n.select(e).attr("y")||0,i.width=n.select(e).attr("width")||0,i.height=n.select(e).attr("height")||0,i.attr=t.attr,i},u=function(t){if(t.attr||(t.attr=function(t){return this[t]?this[t]:void 0}),"object"==typeof t&&"undefined"!=typeof t.x&&"undefined"!=typeof t.y&&"undefined"!=typeof t.width&&"undefined"!=typeof t.height)return t;if("function"==typeof Array.isArray&&Array.isArray(t)||"[object Array]"===Object.prototype.toString.call(t)){var e=o(t);return e}return!1},s=function(t,e){var n=t;return 0!==e&&(n.x=parseInt(n.x)+e,n.y=parseInt(n.y)+e,n.width-=2*e,n.height-=2*e),n},c=u(e);if(r&&(c=s(c,r)),0!=a.length&&n&&e&&c){e=c;var l,h=function(t){var r=n.select(t[0].parentNode),a=r.select("text"),o=a.style("line-height"),u=a.text();a.remove();var s=r.append("foreignObject");s.attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height);var c=s.append("xhtml:div").attr("class","wrapped");c.style("height",e.height).style("width",e.width).html(u),o&&c.style("line-height",o),i=r.select("foreignObject")},f=function(t){var a,o=t[0],u=o.parentNode,s=n.select(o),c=o.getBBox().height,l=o.getBBox().width,h=c,f=s.style("line-height");if(a=f&&parseInt(f)?parseInt(f.replace("px","")):h,l>e.width){var d=s.text();if(s.text(""),d){var p,g;if(-1!==d.indexOf(" ")){var p=" ";g=d.split(" ")}else{p="";var y=d.length,m=Math.ceil(l/e.width),v=Math.floor(y/m);v*m>=y||m++;for(var b,_,g=[],x=0;m>x;x++)_=x*v,b=d.substr(_,v),g.push(b)}for(var w=[],A=0,k={},x=0;x<g.length;x++){var E,D=g[x],M=s.text(),S=o.getComputedTextLength();E=M?M+p+D:D,s.text(E);var C=o.getComputedTextLength();if(C>e.width)M&&""!==M&&(A+=S,k={string:M,width:S,offset:A},w.push(k),s.text(""),s.text(D));else if(x==g.length-1){s.text("");var T=E;T&&""!==T&&(C-A>0&&(C-=A),k={string:T,width:C,offset:A},w.push(k))}}s.attr("y",function(){var t=e.y;return a&&(t+=a),t}),r&&s.attr("x",e.x);var F;s.text("");for(var x=0;x<w.length;x++){var b=w[x].string;if(x>0){w[x-1]}x*a<e.height-1.5*a&&(F=s.append("tspan").text(b),F.attr("dy",function(){return x>0?a:void 0}),F.attr("x",function(){return e.x}))}}}i=n.select(u).selectAll("text")};t&&("foreignobjects"==t?l=h:"tspans"==t&&(l=f)),t||(l="undefined"!=typeof SVGForeignObjectElement?h:f);for(var d=0;d<a.length;d++){var p=a[d];l(p)}return i}return a?a:!1}}()},{d3:1}],88:[function(t,e,n){var r=(t("../../logger").create(),""),i=!1;n.setMessage=function(t){r=t},n.getMessage=function(){return r},n.setInfo=function(t){i=t},n.getInfo=function(){return i},n.parseError=function(t,e){mermaidAPI.parseError(t,e)}},{"../../logger":104}],89:[function(t,e,n){{var r=t("./exampleDb"),i=t("./parser/example.js"),a=t("../../d3");t("../../logger").create()}n.draw=function(t,e,n){var o;o=i.parser,o.yy=r,o.parse(t);var u=a.select("#"+e),s=u.append("g");s.append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("mermaid "+n),u.attr("height",100),u.attr("width",400)}},{"../../d3":87,"../../logger":104,"./exampleDb":88,"./parser/example.js":90}],90:[function(t,e,n){(function(r){var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[6,9,10,12],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,message:11,say:12,TXT:13,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo",12:"say",13:"TXT"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1],[8,1],[11,2]],performAction:function(t,e,n,r,i,a){var o=a.length-1;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0);break;case 7:r.setMessage(a[o]);break;case 8:this.$=a[o-1].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],11:9,12:[1,10]},{1:[2,1]},e(n,[2,3]),e(n,[2,4]),e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),{13:[1,11]},e(n,[2,8])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||f,"number"!=typeof t&&(t=n.symbols_[t]||t),t}var n=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,A,k,E,D,M,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=e()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";M=[];for(k in o[x])this.terminals_[k]&&k>h&&M.push("'"+this.terminals_[k]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==f?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:M})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[w[1]][1],S.$=i[i.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof A)return A;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),D=o[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0}},i=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 9;case 1:return 10;case 2:return 4;case 3:return 12;case 4:return 13;case 5:return 6;case 6:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:showInfo\b)/i,/^(?:info\b)/i,/^(?:say\b)/i,/^(?::[^#\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return r.lexer=i,t.prototype=r,r.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":83,fs:81,path:82}],91:[function(t,e){var n,r=t("../../logger").create();if(t)try{n=t("dagre-d3")}catch(i){r.debug("Could not load dagre-d3")}n||(n=window.dagreD3),e.exports=n},{"../../logger":104,"dagre-d3":2}],92:[function(t,e,n){var r=t("./graphDb"),i=t("./parser/flow"),a=t("./parser/dot"),o=t("../../d3"),u=t("./dagre-d3"),s=t("../../logger").create(),c={};e.exports.setConf=function(t){var e,n=Object.keys(t);for(e=0;e<n.length;e++)c[n[e]]=t[n[e]]},n.addVertices=function(t,e){var n=Object.keys(t),r=function(t,e){var n;for(n=0;n<e.length;n++)"undefined"!=typeof e[n]&&(t=t+e[n]+";");return t};n.forEach(function(n){var i,a=t[n],o="";a.classes.length>0&&(o=a.classes.join(" "));var u="";u=r(u,a.styles),i="undefined"==typeof a.text?a.id:a.text;var s="";c.htmlLabels?s="html":(i=i.replace(/<br>/g,"\n"),s="text");var l=0,h="";switch(a.type){case"round":l=5,h="rect";break;case"square":h="rect";break;case"diamond":h="question";break;case"odd":h="rect_left_inv_arrow";break;case"odd_right":h="rect_left_inv_arrow";break;case"circle":h="circle";break;default:h="rect"}e.setNode(a.id,{labelType:s,shape:h,label:i,rx:l,ry:l,"class":o,style:u,id:a.id})})},n.addEdges=function(t,e){var n,r,i=0;"undefined"!=typeof t.defaultStyle&&(r=t.defaultStyle.toString().replace(/,/g,";")),t.forEach(function(t){i++,n="arrow_open"===t.type?"none":"normal";var a="";if("undefined"!=typeof t.style)t.style.forEach(function(t){a=a+t+";"});else switch(t.stroke){case"normal":a="fill:none","undefined"!=typeof r&&(a=r);break;case"dotted":a="stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":a="stroke: #333; stroke-width: 3.5px;fill:none"}if("undefined"==typeof t.text)"undefined"==typeof t.style?e.setEdge(t.start,t.end,{style:a,arrowhead:n},i):e.setEdge(t.start,t.end,{style:a,arrowheadStyle:"fill: #333",arrowhead:n},i);else{var o=t.text.replace(/<br>/g,"\n");"undefined"==typeof t.style?c.htmlLabels?e.setEdge(t.start,t.end,{labelType:"html",style:a,labelpos:"c",label:'<span style="background:#e8e8e8">'+t.text+"</span>",arrowheadStyle:"fill: #333",arrowhead:n},i):e.setEdge(t.start,t.end,{labelType:"text",style:"stroke: #333; stroke-width: 1.5px;fill:none",labelpos:"c",label:o,arrowheadStyle:"fill: #333",arrowhead:n},i):e.setEdge(t.start,t.end,{labelType:"text",style:a,arrowheadStyle:"fill: #333",label:o,arrowhead:n},i)}})},n.getClasses=function(t,e){var n;r.clear(),n=e?a.parser:i.parser,n.yy=r,n.parse(t);var o=r.getClasses();return"undefined"==typeof o.default&&(o.default={id:"default"},o.default.styles=["fill:#ffa","stroke:#666","stroke-width:3px"],o.default.clusterStyles=["rx:4px","fill: rgb(255, 255, 222)","rx: 4px","stroke: rgb(170, 170, 51)","stroke-width: 1px"],o.default.nodeLabelStyles=["fill:#000","stroke:none","font-weight:300",'font-family:"Helvetica Neue",Helvetica,Arial,sans-serf',"font-size:14px"],o.default.edgeLabelStyles=["fill:#000","stroke:none","font-weight:300",'font-family:"Helvetica Neue",Helvetica,Arial,sans-serf',"font-size:14px"]),o},n.draw=function(t,e,l){s.debug("Drawing flowchart");var h;r.clear(),h=l?a.parser:i.parser,h.yy=r;try{h.parse(t)}catch(f){}var d;d=r.getDirection(),"undefined"==typeof d&&(d="TD");var p,g=new u.graphlib.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d,marginx:20,marginy:20}).setDefaultEdgeLabel(function(){return{}}),y=r.getSubGraphs(),m=0;for(m=y.length-1;m>=0;m--)p=y[m],r.addVertex(p.id,void 0,void 0,void 0);var v=r.getVertices(),b=r.getEdges();m=0;var _;for(m=y.length-1;m>=0;m--)for(p=y[m],o.selectAll("cluster").append("text"),_=0;_<p.nodes.length;_++)g.setParent(p.nodes[_],p.id);n.addVertices(v,g),n.addEdges(b,g);var x=new u.render;x.shapes().question=function(t,e,n){var r=e.width,i=e.height,a=.8*(r+i),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],s=t.insert("polygon",":first-child").attr("points",o.map(function(t){return t.x+","+t.y}).join(" ")).attr("rx",5).attr("ry",5).attr("transform","translate("+-a/2+","+2*a/4+")");return n.intersect=function(t){return u.intersect.polygon(n,o,t)},s},x.shapes().rect_left_inv_arrow=function(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+-r/2+","+2*i/4+")");return n.intersect=function(t){return u.intersect.polygon(n,a,t)},o},x.shapes().rect_right_inv_arrow=function(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+-r/2+","+2*i/4+")");return n.intersect=function(t){return u.intersect.polygon(n,a,t)},o},x.arrows().none=function(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),a=i.append("path").attr("d","M 0 0 L 0 0 L 0 0 z");u.util.applyStyle(a,n[r+"Style"])};var w=o.select("#"+e);svgGroup=o.select("#"+e+" g"),x(o.select("#"+e+" g"),g);document.querySelector("#"+e);for(c.useMaxWidth?(w.attr("height","100%"),w.attr("width","100%"),w.attr("viewBox","0 0 "+(g.graph().width+20)+" "+(g.graph().height+20)),w.attr("style","max-width:"+(g.graph().width+20)+"px;")):(w.attr("height",g.graph().height),"undefined"==typeof c.width?w.attr("width",g.graph().width):w.attr("width",c.width),w.attr("viewBox","0 0 "+(g.graph().width+20)+" "+(g.graph().height+20))),r.indexNodes("sunGraph"+m),m=0;m<y.length;m++){{r.getDepthFirstPos(m)}if(p=y[m],"undefined"!==p.title){var A=document.querySelectorAll("#"+e+" #"+p.id+" rect"),k=document.querySelectorAll("#"+e+" #"+p.id),E=A[0].x.baseVal.value,D=A[0].y.baseVal.value,M=A[0].width.baseVal.value,S=o.select(k[0]),C=S.append("text");C.attr("x",E+M/2),C.attr("y",D+14),C.attr("fill","black"),C.attr("stroke","none"),C.attr("id",e+"Text"),C.style("text-anchor","middle"),C.text("undefined"==typeof p.title?"Undef":p.title)}}}},{"../../d3":87,"../../logger":104,"./dagre-d3":91,"./graphDb":93,"./parser/dot":94,"./parser/flow":95}],93:[function(_dereq_,module,exports){var log=_dereq_("../../logger").create(),vertices={},edges=[],classes=[],subGraphs=[],subCount=0,direction,funs=[];exports.addVertex=function(t,e,n,r){var i;"undefined"!=typeof t&&0!==t.trim().length&&("undefined"==typeof vertices[t]&&(vertices[t]={id:t,styles:[],classes:[]}),"undefined"!=typeof e&&(i=e.trim(),'"'===i[0]&&'"'===i[i.length-1]&&(i=i.substring(1,i.length-1)),vertices[t].text=i),"undefined"!=typeof n&&(vertices[t].type=n),"undefined"!=typeof n&&(vertices[t].type=n),"undefined"!=typeof r&&null!==r&&r.forEach(function(e){vertices[t].styles.push(e)}))},exports.addLink=function(t,e,n,r){var i={start:t,end:e,type:void 0,text:""};r=n.text,"undefined"!=typeof r&&(i.text=r.trim(),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),"undefined"!=typeof n&&(i.type=n.type,i.stroke=n.stroke),edges.push(i)},exports.updateLink=function(t,e){t.substr(1);"default"===t?edges.defaultStyle=e:edges[t].style=e},exports.addClass=function(t,e){"undefined"==typeof classes[t]&&(classes[t]={id:t,styles:[]}),"undefined"!=typeof e&&null!==e&&e.forEach(function(e){classes[t].styles.push(e)})},exports.setDirection=function(t){direction=t},exports.setClass=function(t,e){t.indexOf(",")>0?t.split(",").forEach(function(t){"undefined"!=typeof vertices[t]&&vertices[t].classes.push(e)}):"undefined"!=typeof vertices[t]&&vertices[t].classes.push(e)};var clickEvents=[];exports.setClickEvent=function(id,functionName){id.indexOf(",")>0?id.split(",").forEach(function(id2){"undefined"!=typeof vertices[id2]&&funs.push(function(){var elem=document.getElementById(id2);null!==elem&&(elem.onclick=function(){eval(functionName+"('"+id2+"')")})})}):"undefined"!=typeof vertices[id]&&funs.push(function(){var elem=document.getElementById(id);null!==elem&&(elem.onclick=function(){eval(functionName+"('"+id+"')")})})},exports.bindFunctions=function(){funs.forEach(function(t){t()})},exports.getDirection=function(){return direction},exports.getVertices=function(){return vertices},exports.getEdges=function(){return edges},exports.getClasses=function(){return classes},exports.clear=function(){vertices={},classes={},edges=[],subGraphs=[],subCount=0},exports.defaultStyle=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},exports.addSubGraph=function(t,e){function n(t){var e={"boolean":{},number:{},string:{}},n=[];return t.filter(function(t){var r=typeof t;return" "===t?!1:r in e?e[r].hasOwnProperty(t)?!1:e[r][t]=!0:n.indexOf(t)>=0?!1:n.push(t)})}var r=[];r=n(r.concat.apply(r,t));var i={id:"subGraph"+subCount,nodes:r,title:e};return subGraphs.push(i),subCount+=1,i.id};var getPosForId=function(t){var e;for(e=0;e<subGraphs.length;e++)if(subGraphs[e].id===t)return e;return-1},secCount=-1,posCrossRef=[],indexNodes=function(t,e){var n=subGraphs[e].nodes;if(secCount+=1,!(secCount>2e3)){if(posCrossRef[secCount]=e,subGraphs[e].id===t)return{result:!0,count:0};for(var r=0,i=1;r<n.length;){var a=getPosForId(n[r]);if(a>=0){var o=indexNodes(t,a);if(o.result)return{result:!0,count:i+o.count};i+=o.count}r+=1}return{result:!1,count:i}}};exports.getDepthFirstPos=function(t){return posCrossRef[t]},exports.indexNodes=function(){secCount=-1,subGraphs.length>0&&indexNodes("none",subGraphs.length-1,0)},exports.getSubGraphs=function(){return subGraphs},exports.parseError=function(t,e){mermaidAPI.parseError(t,e)}},{"../../logger":104}],94:[function(t,e,n){(function(r){var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,5],r=[1,6],i=[1,12],a=[1,13],o=[1,14],u=[1,15],s=[1,16],c=[1,17],l=[1,18],h=[1,19],f=[1,20],d=[1,21],p=[1,22],g=[8,16,17,18,19,20,21,22,23,24,25,26],y=[1,37],m=[1,33],v=[1,34],b=[1,35],_=[1,36],x=[8,10,16,17,18,19,20,21,22,23,24,25,26,28,32,37,39,40,45,57,58],w=[10,28],A=[10,28,37,57,58],k=[2,49],E=[1,45],D=[1,48],M=[1,49],S=[1,52],C=[2,65],T=[1,65],F=[1,66],L=[1,67],B=[1,68],N=[1,69],O=[1,70],I=[1,71],R=[1,72],q=[1,73],P=[8,16,17,18,19,20,21,22,23,24,25,26,47],U=[10,28,37],j={trace:function(){},yy:{},symbols_:{error:2,expressions:3,graph:4,EOF:5,graphStatement:6,idStatement:7,"{":8,stmt_list:9,"}":10,strict:11,GRAPH:12,DIGRAPH:13,textNoTags:14,textNoTagsToken:15,ALPHA:16,NUM:17,COLON:18,PLUS:19,EQUALS:20,MULT:21,DOT:22,BRKT:23,SPACE:24,MINUS:25,keywords:26,stmt:27,";":28,node_stmt:29,edge_stmt:30,attr_stmt:31,"=":32,subgraph:33,attr_list:34,NODE:35,EDGE:36,"[":37,a_list:38,"]":39,",":40,edgeRHS:41,node_id:42,edgeop:43,port:44,":":45,compass_pt:46,SUBGRAPH:47,n:48,ne:49,e:50,se:51,s:52,sw:53,w:54,nw:55,c:56,ARROW_POINT:57,ARROW_OPEN:58,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"{",10:"}",11:"strict",12:"GRAPH",13:"DIGRAPH",16:"ALPHA",17:"NUM",18:"COLON",19:"PLUS",20:"EQUALS",21:"MULT",22:"DOT",23:"BRKT",24:"SPACE",25:"MINUS",26:"keywords",28:";",32:"=",35:"NODE",36:"EDGE",37:"[",39:"]",40:",",45:":",47:"SUBGRAPH",48:"n",49:"ne",50:"e",51:"se",52:"s",53:"sw",54:"w",55:"nw",56:"c",57:"ARROW_POINT",58:"ARROW_OPEN"},productions_:[0,[3,2],[4,5],[4,6],[4,4],[6,1],[6,1],[7,1],[14,1],[14,2],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[9,1],[9,3],[27,1],[27,1],[27,1],[27,3],[27,1],[31,2],[31,2],[31,2],[34,4],[34,3],[34,3],[34,2],[38,5],[38,5],[38,3],[30,3],[30,3],[30,2],[30,2],[41,3],[41,3],[41,2],[41,2],[29,2],[29,1],[42,2],[42,1],[44,4],[44,2],[44,2],[33,5],[33,4],[33,3],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,0],[43,1],[43,1]],performAction:function(t,e,n,r,i,a){var o=a.length-1;switch(i){case 1:this.$=a[o-1];break;case 2:this.$=a[o-4];break;case 3:this.$=a[o-5];break;case 4:this.$=a[o-3];break;case 8:case 10:case 11:this.$=a[o];break;case 9:this.$=a[o-1]+""+a[o];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[o];break;case 17:this.$="<br>";break;case 39:this.$="oy";break;case 40:r.addLink(a[o-1],a[o].id,a[o].op),this.$="oy";break;case 42:r.addLink(a[o-1],a[o].id,a[o].op),this.$={op:a[o-2],id:a[o-1]};break;case 44:this.$={op:a[o-1],id:a[o]};break;case 48:r.addVertex(a[o-1]),this.$=a[o-1];break;case 49:r.addVertex(a[o]),this.$=a[o];break;case 66:this.$="arrow";break;case 67:this.$="arrow_open"}},table:[{3:1,4:2,6:3,11:[1,4],12:n,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{6:23,12:n,13:r},e(g,[2,5]),e(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p}),e(x,[2,8]),e(x,[2,10]),e(x,[2,11]),e(x,[2,12]),e(x,[2,13]),e(x,[2,14]),e(x,[2,15]),e(x,[2,16]),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,41]},{10:[2,21],28:[1,42]},e(w,[2,23]),e(w,[2,24]),e(w,[2,25]),e(A,k,{44:44,32:[1,43],45:E}),e(w,[2,27],{41:46,43:47,57:D,58:M}),e(w,[2,47],{43:47,34:50,41:51,37:S,57:D,58:M}),{34:53,37:S},{34:54,37:S},{34:55,37:S},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},e(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{7:62,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},e(A,[2,48]),e(A,C,{14:10,15:11,7:63,46:64,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,48:T,49:F,50:L,51:B,52:N,53:O,54:I,55:R,56:q}),e(w,[2,41],{34:74,37:S}),{7:77,8:y,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,33:76,42:75,47:_},e(P,[2,66]),e(P,[2,67]),e(w,[2,46]),e(w,[2,40],{34:78,37:S}),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:79,39:[1,80]},e(w,[2,28]),e(w,[2,29]),e(w,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{5:[2,2]},{10:[2,22]},e(w,[2,26]),e(A,[2,51],{45:[1,86]}),e(A,[2,52]),e(A,[2,56]),e(A,[2,57]),e(A,[2,58]),e(A,[2,59]),e(A,[2,60]),e(A,[2,61]),e(A,[2,62]),e(A,[2,63]),e(A,[2,64]),e(w,[2,38]),e(U,[2,44],{43:47,41:87,57:D,58:M}),e(U,[2,45],{43:47,41:88,57:D,58:M}),e(A,k,{44:44,45:E}),e(w,[2,39]),{39:[1,89]},e(w,[2,34],{34:90,37:S}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,93]},e(A,[2,55]),{10:[1,94]},e(A,C,{46:95,48:T,49:F,50:L,51:B,52:N,53:O,54:I,55:R,56:q}),e(U,[2,42]),e(U,[2,43]),e(w,[2,33],{34:96,37:S}),e(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p},{10:[1,98]},e(A,[2,54]),{5:[2,3]},e(A,[2,50]),e(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},e(A,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:h,24:f,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);
this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||f,"number"!=typeof t&&(t=n.symbols_[t]||t),t}var n=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,A,k,E,D,M,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=e()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";M=[];for(k in o[x])this.terminals_[k]&&k>h&&M.push("'"+this.terminals_[k]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==f?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:M})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[w[1]][1],S.$=i[i.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof A)return A;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),D=o[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0}},Y=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return"STYLE";case 1:return"LINKSTYLE";case 2:return"CLASSDEF";case 3:return"CLASS";case 4:return"CLICK";case 5:return 12;case 6:return 13;case 7:return 47;case 8:return 35;case 9:return 36;case 10:return"DIR";case 11:return"DIR";case 12:return"DIR";case 13:return"DIR";case 14:return"DIR";case 15:return"DIR";case 16:return 17;case 17:return 23;case 18:return 18;case 19:return 28;case 20:return 40;case 21:return 32;case 22:return 21;case 23:return 22;case 24:return"ARROW_CROSS";case 25:return 57;case 26:return"ARROW_CIRCLE";case 27:return 58;case 28:return 25;case 29:return 19;case 30:return 20;case 31:return 16;case 32:return"PIPE";case 33:return"PS";case 34:return"PE";case 35:return 37;case 36:return 39;case 37:return 8;case 38:return 10;case 39:return"QUOTE";case 40:return 24;case 41:return"NEWLINE";case 42:return 5}},rules:[/^(?:style\b)/,/^(?:linkStyle\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:digraph\b)/,/^(?:subgraph\b)/,/^(?:node\b)/,/^(?:edge\b)/,/^(?:LR\b)/,/^(?:RL\b)/,/^(?:TB\b)/,/^(?:BT\b)/,/^(?:TD\b)/,/^(?:BR\b)/,/^(?:[0-9])/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:=)/,/^(?:\*)/,/^(?:\.)/,/^(?:--[x])/,/^(?:->)/,/^(?:--[o])/,/^(?:--)/,/^(?:-)/,/^(?:\+)/,/^(?:=)/,/^(?:[\u0021-\u0027\u002A-\u002E\u003F\u0041-\u005A\u0061-\u007A\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)/,/^(?:\n)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,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],inclusive:!0}}};return t}();return j.lexer=Y,t.prototype=j,j.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":83,fs:81,path:82}],95:[function(t,e,n){(function(r){var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,13,30,69,70,71,72,73,79,83,85,86,88,89,91,92,93],o=[2,2],u=[1,12],s=[1,13],c=[1,14],l=[1,15],h=[1,31],f=[1,22],d=[1,24],p=[1,25],g=[1,26],y=[1,27],m=[1,28],v=[1,34],b=[1,36],_=[1,33],x=[1,35],w=[1,41],A=[1,40],k=[1,37],E=[1,38],D=[1,39],M=[1,8,9,10,11,13,30,32,69,70,71,72,73,79,83,85,86,88,89,91,92,93],S=[1,49],C=[1,48],T=[1,50],F=[1,68],L=[1,76],B=[1,77],N=[1,62],O=[1,61],I=[1,81],R=[1,80],q=[1,78],P=[1,79],U=[1,69],j=[1,64],Y=[1,63],z=[1,59],V=[1,71],H=[1,72],G=[1,73],$=[1,74],W=[1,75],Z=[1,66],X=[1,65],K=[8,9,11],J=[8,9,11,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],Q=[1,110],te=[8,9,10,11,13,15,36,38,40,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,79,83,85,86,88,89,91,92,93],ee=[8,9,10,11,12,13,15,16,17,18,30,32,36,37,38,39,40,41,44,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,69,70,71,72,73,76,79,81,83,85,86,88,89,91,92,93],ne=[1,113],re=[1,114],ie=[8,9,10,11,13,30,32,69,70,71,72,73,79,83,85,86,88,89,91,92,93],ae=[8,9,10,11,12,13,15,16,17,18,30,32,37,39,41,44,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,69,70,71,72,73,76,79,81,83,85,86,88,89,91,92,93],oe=[13,79,83,85,86,88,89,91,92,93],ue=[13,47,63,79,83,85,86,88,89,91,92,93],se=[1,186],ce=[1,183],le=[1,190],he=[1,187],fe=[1,184],de=[1,191],pe=[1,181],ge=[1,182],ye=[1,185],me=[1,188],ve=[1,189],be=[1,204],_e=[8,9,11,83],xe=[8,9,10,11,44,69,78,79,81,83,85,86,87,88,89],we={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,DIR:13,FirstStmtSeperator:14,TAGEND:15,TAGSTART:16,UP:17,DOWN:18,ending:19,endToken:20,spaceList:21,spaceListNewline:22,verticeStatement:23,separator:24,styleStatement:25,linkStyleStatement:26,classDefStatement:27,classStatement:28,clickStatement:29,subgraph:30,text:31,end:32,vertex:33,link:34,alphaNum:35,SQS:36,SQE:37,PS:38,PE:39,DIAMOND_START:40,DIAMOND_STOP:41,alphaNumStatement:42,alphaNumToken:43,MINUS:44,linkStatement:45,arrowText:46,TESTSTR:47,"--":48,ARROW_POINT:49,ARROW_CIRCLE:50,ARROW_CROSS:51,ARROW_OPEN:52,"-.":53,DOTTED_ARROW_POINT:54,DOTTED_ARROW_CIRCLE:55,DOTTED_ARROW_CROSS:56,DOTTED_ARROW_OPEN:57,"==":58,THICK_ARROW_POINT:59,THICK_ARROW_CIRCLE:60,THICK_ARROW_CROSS:61,THICK_ARROW_OPEN:62,PIPE:63,textToken:64,STR:65,commentText:66,commentToken:67,keywords:68,STYLE:69,LINKSTYLE:70,CLASSDEF:71,CLASS:72,CLICK:73,textNoTags:74,textNoTagsToken:75,DEFAULT:76,stylesOpt:77,HEX:78,NUM:79,commentStatement:80,PCT:81,style:82,COMMA:83,styleComponent:84,ALPHA:85,COLON:86,UNIT:87,BRKT:88,DOT:89,graphCodeTokens:90,PLUS:91,EQUALS:92,MULT:93,TAG_START:94,TAG_END:95,QUOTE:96,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"DIR",15:"TAGEND",16:"TAGSTART",17:"UP",18:"DOWN",30:"subgraph",32:"end",36:"SQS",37:"SQE",38:"PS",39:"PE",40:"DIAMOND_START",41:"DIAMOND_STOP",44:"MINUS",47:"TESTSTR",48:"--",49:"ARROW_POINT",50:"ARROW_CIRCLE",51:"ARROW_CROSS",52:"ARROW_OPEN",53:"-.",54:"DOTTED_ARROW_POINT",55:"DOTTED_ARROW_CIRCLE",56:"DOTTED_ARROW_CROSS",57:"DOTTED_ARROW_OPEN",58:"==",59:"THICK_ARROW_POINT",60:"THICK_ARROW_CIRCLE",61:"THICK_ARROW_CROSS",62:"THICK_ARROW_OPEN",63:"PIPE",65:"STR",69:"STYLE",70:"LINKSTYLE",71:"CLASSDEF",72:"CLASS",73:"CLICK",76:"DEFAULT",78:"HEX",79:"NUM",81:"PCT",83:"COMMA",85:"ALPHA",86:"COLON",87:"UNIT",88:"BRKT",89:"DOT",91:"PLUS",92:"EQUALS",93:"MULT",94:"TAG_START",95:"TAG_END",96:"QUOTE"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,4],[4,4],[4,4],[4,4],[4,4],[19,2],[19,1],[20,1],[20,1],[20,1],[14,1],[14,1],[14,2],[22,2],[22,2],[22,1],[22,1],[21,2],[21,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,5],[7,4],[24,1],[24,1],[24,1],[23,3],[23,1],[33,4],[33,5],[33,6],[33,7],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,1],[33,2],[35,1],[35,2],[42,1],[42,1],[42,3],[34,2],[34,3],[34,3],[34,1],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,3],[31,1],[31,2],[31,1],[66,1],[66,2],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[74,1],[74,2],[27,5],[27,5],[28,5],[29,5],[25,5],[25,5],[26,5],[26,5],[80,3],[77,1],[77,3],[82,1],[82,2],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[84,1],[67,1],[67,1],[64,1],[64,1],[64,1],[64,1],[64,1],[64,1],[64,1],[75,1],[75,1],[75,1],[75,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1]],performAction:function(t,e,n,r,i,a){var o=a.length-1;switch(i){case 2:this.$=[];break;case 3:a[o]!==[]&&a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 55:case 57:case 58:case 89:case 91:case 92:case 105:this.$=a[o];break;case 11:r.setDirection(a[o-1]),this.$=a[o-1];break;case 12:r.setDirection("LR"),this.$=a[o-1];break;case 13:r.setDirection("RL"),this.$=a[o-1];break;case 14:r.setDirection("BT"),this.$=a[o-1];break;case 15:r.setDirection("TB"),this.$=a[o-1];break;case 30:this.$=a[o-1];break;case 31:case 32:case 33:case 34:case 35:this.$=[];break;case 36:this.$=r.addSubGraph(a[o-1],a[o-3]);break;case 37:this.$=r.addSubGraph(a[o-1],void 0);break;case 41:r.addLink(a[o-2],a[o],a[o-1]),this.$=[a[o-2],a[o]];break;case 42:this.$=[a[o]];break;case 43:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"square");break;case 44:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"square");break;case 45:this.$=a[o-5],r.addVertex(a[o-5],a[o-2],"circle");break;case 46:this.$=a[o-6],r.addVertex(a[o-6],a[o-3],"circle");break;case 47:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"round");break;case 48:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"round");break;case 49:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"diamond");break;case 50:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"diamond");break;case 51:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"odd");break;case 52:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"odd");break;case 53:this.$=a[o],r.addVertex(a[o]);break;case 54:this.$=a[o-1],r.addVertex(a[o-1]);break;case 56:case 90:case 93:case 106:this.$=a[o-1]+""+a[o];break;case 59:this.$=a[o-2]+"-"+a[o];break;case 60:a[o-1].text=a[o],this.$=a[o-1];break;case 61:case 62:a[o-2].text=a[o-1],this.$=a[o-2];break;case 63:this.$=a[o];break;case 64:this.$={type:"arrow",stroke:"normal",text:a[o-1]};break;case 65:this.$={type:"arrow_circle",stroke:"normal",text:a[o-1]};break;case 66:this.$={type:"arrow_cross",stroke:"normal",text:a[o-1]};break;case 67:this.$={type:"arrow_open",stroke:"normal",text:a[o-1]};break;case 68:this.$={type:"arrow",stroke:"dotted",text:a[o-1]};break;case 69:this.$={type:"arrow_circle",stroke:"dotted",text:a[o-1]};break;case 70:this.$={type:"arrow_cross",stroke:"dotted",text:a[o-1]};break;case 71:this.$={type:"arrow_open",stroke:"dotted",text:a[o-1]};break;case 72:this.$={type:"arrow",stroke:"thick",text:a[o-1]};break;case 73:this.$={type:"arrow_circle",stroke:"thick",text:a[o-1]};break;case 74:this.$={type:"arrow_cross",stroke:"thick",text:a[o-1]};break;case 75:this.$={type:"arrow_open",stroke:"thick",text:a[o-1]};break;case 76:this.$={type:"arrow",stroke:"normal"};break;case 77:this.$={type:"arrow_circle",stroke:"normal"};break;case 78:this.$={type:"arrow_cross",stroke:"normal"};break;case 79:this.$={type:"arrow_open",stroke:"normal"};break;case 80:this.$={type:"arrow",stroke:"dotted"};break;case 81:this.$={type:"arrow_circle",stroke:"dotted"};break;case 82:this.$={type:"arrow_cross",stroke:"dotted"};break;case 83:this.$={type:"arrow_open",stroke:"dotted"};break;case 84:this.$={type:"arrow",stroke:"thick"};break;case 85:this.$={type:"arrow_circle",stroke:"thick"};break;case 86:this.$={type:"arrow_cross",stroke:"thick"};break;case 87:this.$={type:"arrow_open",stroke:"thick"};break;case 88:this.$=a[o-1];break;case 107:case 108:this.$=a[o-4],r.addClass(a[o-2],a[o]);break;case 109:this.$=a[o-4],r.setClass(a[o-2],a[o]);break;case 110:this.$=a[o-4],r.setClickEvent(a[o-2],a[o]);break;case 111:this.$=a[o-4],r.addVertex(a[o-2],void 0,void 0,a[o]);break;case 112:case 113:case 114:this.$=a[o-4],r.updateLink(a[o-2],a[o]);break;case 116:this.$=[a[o]];break;case 117:a[o-2].push(a[o]),this.$=a[o-2];break;case 119:this.$=a[o-1]+a[o]}},table:[{3:1,4:2,9:n,10:r,12:i},{1:[3]},e(a,o,{5:6}),{4:7,9:n,10:r,12:i},{4:8,9:n,10:r,12:i},{10:[1,9]},{1:[2,1],6:10,7:11,8:u,9:s,10:c,11:l,13:h,23:16,25:17,26:18,27:19,28:20,29:21,30:f,33:23,35:29,42:30,43:32,69:d,70:p,71:g,72:y,73:m,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(a,[2,9]),e(a,[2,10]),{13:[1,42],15:[1,43],16:[1,44],17:[1,45],18:[1,46]},e(M,[2,3]),e(M,[2,4]),e(M,[2,5]),e(M,[2,6]),e(M,[2,7]),e(M,[2,8]),{8:S,9:C,11:T,24:47},{8:S,9:C,11:T,24:51},{8:S,9:C,11:T,24:52},{8:S,9:C,11:T,24:53},{8:S,9:C,11:T,24:54},{8:S,9:C,11:T,24:55},{8:S,9:C,10:F,11:T,12:L,13:B,15:N,16:O,17:I,18:R,24:57,30:q,31:56,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(K,[2,42],{34:82,45:83,48:[1,84],49:[1,87],50:[1,88],51:[1,89],52:[1,90],53:[1,85],54:[1,91],55:[1,92],56:[1,93],57:[1,94],58:[1,86],59:[1,95],60:[1,96],61:[1,97],62:[1,98]}),{10:[1,99]},{10:[1,100]},{10:[1,101]},{10:[1,102]},{10:[1,103]},e(J,[2,53],{43:32,21:108,42:109,10:Q,13:h,15:[1,107],36:[1,104],38:[1,105],40:[1,106],79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D}),e(te,[2,55]),e(te,[2,57]),e(te,[2,58],{44:[1,111]}),e(ee,[2,144]),e(ee,[2,145]),e(ee,[2,146]),e(ee,[2,147]),e(ee,[2,148]),e(ee,[2,149]),e(ee,[2,150]),e(ee,[2,151]),e(ee,[2,152]),{8:ne,9:re,10:Q,14:112,21:115},{8:ne,9:re,10:Q,14:116,21:115},{8:ne,9:re,10:Q,14:117,21:115},{8:ne,9:re,10:Q,14:118,21:115},{8:ne,9:re,10:Q,14:119,21:115},e(M,[2,30]),e(M,[2,38]),e(M,[2,39]),e(M,[2,40]),e(M,[2,31]),e(M,[2,32]),e(M,[2,33]),e(M,[2,34]),e(M,[2,35]),{8:S,9:C,10:F,11:T,12:L,13:B,15:N,16:O,17:I,18:R,24:120,30:q,32:P,43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(ie,o,{5:122}),e(ae,[2,89]),e(ae,[2,91]),e(ae,[2,133]),e(ae,[2,134]),e(ae,[2,135]),e(ae,[2,136]),e(ae,[2,137]),e(ae,[2,138]),e(ae,[2,139]),e(ae,[2,140]),e(ae,[2,141]),e(ae,[2,142]),e(ae,[2,143]),e(ae,[2,94]),e(ae,[2,95]),e(ae,[2,96]),e(ae,[2,97]),e(ae,[2,98]),e(ae,[2,99]),e(ae,[2,100]),e(ae,[2,101]),e(ae,[2,102]),e(ae,[2,103]),e(ae,[2,104]),{13:h,33:123,35:29,42:30,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(oe,[2,63],{46:124,47:[1,125],63:[1,126]}),{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:127,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:128,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:129,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(ue,[2,76]),e(ue,[2,77]),e(ue,[2,78]),e(ue,[2,79]),e(ue,[2,80]),e(ue,[2,81]),e(ue,[2,82]),e(ue,[2,83]),e(ue,[2,84]),e(ue,[2,85]),e(ue,[2,86]),e(ue,[2,87]),{13:h,35:130,42:30,43:32,78:[1,131],79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{76:[1,132],79:[1,133]},{13:h,35:135,42:30,43:32,76:[1,134],79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{13:h,35:136,42:30,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{13:h,35:137,42:30,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:138,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:140,32:P,38:[1,139],43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:141,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:142,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(J,[2,54]),e(te,[2,56]),e(J,[2,29],{21:143,10:Q}),{43:144,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(a,[2,11]),e(a,[2,21]),e(a,[2,22]),{9:[1,145]},e(a,[2,12]),e(a,[2,13]),e(a,[2,14]),e(a,[2,15]),e(ie,o,{5:146}),e(ae,[2,90]),{6:10,7:11,8:u,9:s,10:c,11:l,13:h,23:16,25:17,26:18,27:19,28:20,29:21,30:f,32:[1,147],33:23,35:29,42:30,43:32,69:d,70:p,71:g,72:y,73:m,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(K,[2,41]),e(oe,[2,60],{10:[1,148]}),{10:[1,149]},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:150,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,43:67,44:U,48:j,49:[1,151],50:[1,152],51:[1,153],52:[1,154],58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,43:67,44:U,48:j,54:[1,155],55:[1,156],56:[1,157],57:[1,158],58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,43:67,44:U,48:j,58:Y,59:[1,159],60:[1,160],61:[1,161],62:[1,162],64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:[1,163],13:h,42:109,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:[1,164]},{10:[1,165]},{10:[1,166]},{10:[1,167]},{10:[1,168],13:h,42:109,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:[1,169],13:h,42:109,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:[1,170],13:h,42:109,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,37:[1,171],43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,31:172,32:P,43:67,44:U,48:j,58:Y,64:58,65:z,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,39:[1,173],43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,41:[1,174],43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,37:[1,175],43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(J,[2,28]),e(te,[2,59]),e(a,[2,23]),{6:10,7:11,8:u,9:s,10:c,11:l,13:h,23:16,25:17,26:18,27:19,28:20,29:21,30:f,32:[1,176],33:23,35:29,42:30,43:32,69:d,70:p,71:g,72:y,73:m,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(M,[2,37]),e(oe,[2,62]),e(oe,[2,61]),{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,43:67,44:U,48:j,58:Y,63:[1,177],64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(oe,[2,64]),e(oe,[2,65]),e(oe,[2,66]),e(oe,[2,67]),e(oe,[2,68]),e(oe,[2,69]),e(oe,[2,70]),e(oe,[2,71]),e(oe,[2,72]),e(oe,[2,73]),e(oe,[2,74]),e(oe,[2,75]),{10:se,44:ce,69:le,77:178,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{10:se,44:ce,69:le,77:192,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{10:se,44:ce,69:le,77:193,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{10:se,44:ce,69:le,77:194,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{10:se,44:ce,69:le,77:195,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{10:se,44:ce,69:le,77:196,78:he,79:fe,81:de,82:179,84:180,85:pe,86:ge,87:ye,88:me,89:ve},{13:h,35:197,42:30,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},{13:h,35:198,42:30,43:32,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(J,[2,43],{21:199,10:Q}),{10:F,12:L,13:B,15:N,16:O,17:I,18:R,30:q,32:P,39:[1,200],43:67,44:U,48:j,58:Y,64:121,68:70,69:V,70:H,71:G,72:$,73:W,75:60,76:Z,79:v,81:X,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D},e(J,[2,47],{21:201,10:Q}),e(J,[2,49],{21:202,10:Q}),e(J,[2,51],{21:203,10:Q}),e(M,[2,36]),e([10,13,79,83,85,86,88,89,91,92,93],[2,88]),e(K,[2,111],{83:be}),e(_e,[2,116],{84:205,10:se,44:ce,69:le,78:he,79:fe,81:de,85:pe,86:ge,87:ye,88:me,89:ve}),e(xe,[2,118]),e(xe,[2,120]),e(xe,[2,121]),e(xe,[2,122]),e(xe,[2,123]),e(xe,[2,124]),e(xe,[2,125]),e(xe,[2,126]),e(xe,[2,127]),e(xe,[2,128]),e(xe,[2,129]),e(xe,[2,130]),e(K,[2,112],{83:be}),e(K,[2,113],{83:be}),e(K,[2,114],{83:be}),e(K,[2,107],{83:be}),e(K,[2,108],{83:be}),e(K,[2,109],{43:32,42:109,13:h,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D}),e(K,[2,110],{43:32,42:109,13:h,79:v,83:b,85:_,86:x,88:w,89:A,91:k,92:E,93:D}),e(J,[2,44]),{39:[1,206]},e(J,[2,48]),e(J,[2,50]),e(J,[2,52]),{10:se,44:ce,69:le,78:he,79:fe,81:de,82:207,84:180,85:pe,86:ge,87:ye,88:me,89:ve},e(xe,[2,119]),e(J,[2,45],{21:208,10:Q}),e(_e,[2,117],{84:205,10:se,44:ce,69:le,78:he,79:fe,81:de,85:pe,86:ge,87:ye,88:me,89:ve}),e(J,[2,46])],defaultActions:{},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||f,"number"!=typeof t&&(t=n.symbols_[t]||t),t}var n=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,A,k,E,D,M,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=e()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";M=[];for(k in o[x])this.terminals_[k]&&k>h&&M.push("'"+this.terminals_[k]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==f?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:M})
}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[w[1]][1],S.$=i[i.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof A)return A;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),D=o[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0}},Ae=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:break;case 1:this.begin("string");break;case 2:this.popState();break;case 3:return"STR";case 4:return 69;case 5:return 76;case 6:return 70;case 7:return 71;case 8:return 72;case 9:return 73;case 10:return 12;case 11:return 30;case 12:return 32;case 13:return 13;case 14:return 13;case 15:return 13;case 16:return 13;case 17:return 13;case 18:return 13;case 19:return 79;case 20:return 88;case 21:return 86;case 22:return 8;case 23:return 83;case 24:return 93;case 25:return 16;case 26:return 15;case 27:return 17;case 28:return 18;case 29:return 51;case 30:return 49;case 31:return 50;case 32:return 52;case 33:return 56;case 34:return 54;case 35:return 55;case 36:return 57;case 37:return 56;case 38:return 54;case 39:return 55;case 40:return 57;case 41:return 61;case 42:return 59;case 43:return 60;case 44:return 62;case 45:return 48;case 46:return 53;case 47:return 58;case 48:return 44;case 49:return 89;case 50:return 91;case 51:return 81;case 52:return 92;case 53:return 92;case 54:return 85;case 55:return 63;case 56:return 38;case 57:return 39;case 58:return 36;case 59:return 37;case 60:return 40;case 61:return 41;case 62:return 96;case 63:return 9;case 64:return 10;case 65:return 11}},rules:[/^(?:%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:subgraph\b)/,/^(?:end\s*)/,/^(?:LR\b)/,/^(?:RL\b)/,/^(?:TB\b)/,/^(?:BT\b)/,/^(?:TD\b)/,/^(?:BR\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:v\b)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*--[o]\s*)/,/^(?:\s*---\s*)/,/^(?:\s*-\.-[x]\s*)/,/^(?:\s*-\.->\s*)/,/^(?:\s*-\.-[o]\s*)/,/^(?:\s*-\.-\s*)/,/^(?:\s*.-[x]\s*)/,/^(?:\s*\.->\s*)/,/^(?:\s*\.-[o]\s*)/,/^(?:\s*\.-\s*)/,/^(?:\s*==[x]\s*)/,/^(?:\s*==>\s*)/,/^(?:\s*==[o]\s*)/,/^(?:\s*==[\=]\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[\u0021-\u0027\u002A-\u002E\u003F\u0041-\u005A\u005C\u005F-\u007A\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_\/])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:\n+)/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,4,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,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return t}();return we.lexer=Ae,t.prototype=we,we.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":83,fs:81,path:82}],96:[function(t,e,n){var r=t("moment"),i=t("../../logger").create(),a="",o="",u=[],s=[],c="";n.clear=function(){u=[],s=[],c="",o="",d=0,l=void 0},n.setDateFormat=function(t){a=t},n.getDateFormat=function(){return a},n.setTitle=function(t){o=t},n.getTitle=function(){return o},n.addSection=function(t){c=t,u.push(t)},n.findTaskById=function(t){var e;for(e=0;e<s.length;e++)if(s[e].id===t)return s[e]},n.getTasks=function(){var t;for(t=1e4;t<s.length;t++)s[t].startTime=r(s[t].startTime).format(a),s[t].endTime=r(s[t].endTime).format(a);return s};var l,h=function(t,e,a){a=a.trim();var o=/^after\s+([\d\w\-]+)/,u=o.exec(a.trim());if(null!==u){var s=n.findTaskById(u[1]);if("undefined"==typeof s){var c=new Date;return c.setHours(0,0,0,0),c}return s.endTime}return r(a,e.trim(),!0).isValid()?r(a,e.trim(),!0).toDate():(i.debug("Invalid date:"+a),i.debug("With date format:"+e.trim()),new Date)},f=function(t,e,n){if(n=n.trim(),r(n,e.trim(),!0).isValid())return r(n,e.trim()).toDate();var i=r(t),a=/^([\d]+)([wdh])/,o=a.exec(n.trim());if(null!==o){switch(o[2]){case"h":i.add(o[1],"hours");break;case"d":i.add(o[1],"days");break;case"w":i.add(o[1],"weeks")}return i.toDate()}return i.toDate()},d=0,p=function(t){return"undefined"==typeof t?(d+=1,"task"+d):t},g=function(t,e){var r;r=":"===e.substr(0,1)?e.substr(1,e.length):e;for(var i=r.split(","),a={},o=n.getDateFormat(),u=!0;u;)u=!1,i[0].match(/^\s*active\s*$/)&&(a.active=!0,i.shift(1),u=!0),i[0].match(/^\s*done\s*$/)&&(a.done=!0,i.shift(1),u=!0),i[0].match(/^\s*crit\s*$/)&&(a.crit=!0,i.shift(1),u=!0);var s;for(s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=p(),a.startTime=t.endTime,a.endTime=f(a.startTime,o,i[0]);break;case 2:a.id=p(),a.startTime=h(void 0,o,i[0]),a.endTime=f(a.startTime,o,i[1]);break;case 3:a.id=p(i[0]),a.startTime=h(void 0,o,i[1]),a.endTime=f(a.startTime,o,i[2])}return a};n.addTask=function(t,e){var n={section:c,type:c,description:t,task:t},r=g(l,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,l=n,s.push(n)},n.parseError=function(t,e){mermaidAPI.parseError(t,e)}},{"../../logger":104,moment:85}],97:[function(t,e){var n=t("./parser/gantt").parser;n.yy=t("./ganttDb");var r,i=t("../../d3"),a=t("moment"),o=(t("../../logger").create(),{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,sidePadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'});e.exports.setConf=function(t){var e=Object.keys(t);e.forEach(function(e){o[e]=t[e]})};var u;e.exports.draw=function(t,e){function s(t,e,n){var r=o.barHeight,a=r+o.barGap,u=o.topPadding,s=o.sidePadding,d=i.scale.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(i.interpolateHcl);l(s,u,e,n),c(t,a,u,s,r,d,e,n),h(a,u,s,r,d),f(s,u,e,n)}function c(t,e,n,r,i,a,u){{var s=(b.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",function(t,r){return r*e+n-2}).attr("width",function(){return u-r/2}).attr("height",e).attr("class",function(t){for(var e=0;e<A.length;e++)if(t.type===A[e])return"section section"+e%o.numberSectionStyles;return"section section0"}),b.append("g").selectAll("rect").data(t).enter());s.append("rect").attr("rx",3).attr("ry",3).attr("x",function(t){return w(t.startTime)+r}).attr("y",function(t,r){return r*e+n}).attr("width",function(t){return w(t.endTime)-w(t.startTime)}).attr("height",i).attr("class",function(t){for(var e="task ",n=0,r=0;r<A.length;r++)t.type===A[r]&&(n=r%o.numberSectionStyles);return t.active?t.crit?e+" activeCrit"+n:e+" active"+n:t.done?t.crit?e+" doneCrit"+n:e+" done"+n:t.crit?e+" crit"+n:e+" task"+n}),s.append("text").text(function(t){return t.task}).attr("font-size",o.fontSize).attr("x",function(t){var e=w(t.startTime),n=w(t.endTime),i=this.getBBox().width;return i>n-e?n+i+1.5*o.sidePadding>u?e+r-5:n+r+5:(n-e)/2+e+r}).attr("y",function(t,r){return r*e+o.barHeight/2+(o.fontSize/2-2)+n}).attr("text-height",i).attr("class",function(t){for(var e=w(t.startTime),n=w(t.endTime),r=this.getBBox().width,i=0,a=0;a<A.length;a++)t.type===A[a]&&(i=a%o.numberSectionStyles);var s="";return t.active&&(s=t.crit?"activeCritText"+i:"activeText"+i),t.done?s=t.crit?s+" doneCritText"+i:s+" doneText"+i:t.crit&&(s=s+" critText"+i),r>n-e?n+r+1.5*o.sidePadding>u?"taskTextOutsideLeft taskTextOutside"+i+" "+s:"taskTextOutsideRight taskTextOutside"+i+" "+s:"taskText taskText"+i+" "+s})}}function l(t,e,n,a){var u,s=[[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["h1 %I:%M",function(t){return t.getMinutes()}]],c=[["%Y",function(){return!0}]],l=[["%I:%M",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}]];"undefined"!=typeof o.axisFormatter&&(l=[],o.axisFormatter.forEach(function(t){var e=[];e[0]=t[0],e[1]=t[1],l.push(e)})),u=s.concat(l).concat(c);var h=i.svg.axis().scale(w).orient("bottom").tickSize(-a+e+o.gridLineStartPadding,0,0).tickFormat(i.time.format.multi(u));r>7&&230>r&&(h=h.ticks(i.time.monday.range));b.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(h).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}function h(t,e){for(var n=[],r=0,i=0;i<A.length;i++)n[i]=[A[i],g(A[i],E)];b.append("g").selectAll("text").data(n).enter().append("text").text(function(t){return t[0]}).attr("x",10).attr("y",function(i,a){if(!(a>0))return i[1]*t/2+e;for(var o=0;a>o;o++)return r+=n[a-1][1],i[1]*t/2+r*t+e}).attr("class",function(t){for(var e=0;e<A.length;e++)if(t[0]===A[e])return"sectionTitle sectionTitle"+e%o.numberSectionStyles;return"sectionTitle"})}function f(t,e,n,r){{var i=b.append("g").attr("class","today"),a=new Date;i.append("line").attr("x1",w(a)+t).attr("x2",w(a)+t).attr("y1",o.titleTopMargin).attr("y2",r-o.titleTopMargin).attr("class","today")}}function d(t){for(var e={},n=[],r=0,i=t.length;i>r;++r)e.hasOwnProperty(t[r])||(e[t[r]]=!0,n.push(t[r]));return n}function p(t){for(var e=t.length,n={};e;)n[t[--e]]=(n[t[e]]||0)+1;return n}function g(t,e){return p(e)[t]||0}n.yy.clear(),n.parse(t);var y=document.getElementById(e);u=y.parentElement.offsetWidth,"undefined"==typeof u&&(u=1200),"undefined"!=typeof o.useWidth&&(u=o.useWidth);var m=n.yy.getTasks(),v=m.length*(o.barHeight+o.barGap)+2*o.topPadding;y.setAttribute("height","100%"),y.setAttribute("viewBox","0 0 "+u+" "+v);var b=i.select("#"+e),_=(i.time.format("%Y-%m-%d"),i.min(m,function(t){return t.startTime})),x=i.max(m,function(t){return t.endTime}),w=i.time.scale().domain([i.min(m,function(t){return t.startTime}),i.max(m,function(t){return t.endTime})]).rangeRound([0,u-150]),A=[];r=a.duration(x-_).asDays();for(var k=0;k<m.length;k++)A.push(m[k].type);var E=A;A=d(A),s(m,u,v),"undefined"!=typeof o.useWidth&&y.setAttribute("width",u);b.append("text").text(n.yy.getTitle()).attr("x",u/2).attr("y",o.titleTopMargin).attr("class","titleText")}},{"../../d3":87,"../../logger":104,"./ganttDb":96,"./parser/gantt":98,moment:85}],98:[function(t,e,n){(function(r){var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[6,8,10,11,12,13,14],r=[1,9],i=[1,10],a=[1,11],o=[1,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,title:12,section:13,taskTxt:14,taskData:15,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"title",13:"section",14:"taskTxt",15:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,e,n,r,i,a){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 9:r.setTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 10:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 11:r.addTask(a[o-1],a[o]),this.$="task"}},table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,13:a,14:o},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:13,11:r,12:i,13:a,14:o},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),e(n,[2,9]),e(n,[2,10]),{15:[1,14]},e(n,[2,4]),e(n,[2,11])],defaultActions:{},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||f,"number"!=typeof t&&(t=n.symbols_[t]||t),t}var n=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,A,k,E,D,M,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=e()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";M=[];for(k in o[x])this.terminals_[k]&&k>h&&M.push("'"+this.terminals_[k]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==f?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:M})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[w[1]][1],S.$=i[i.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof A)return A;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),D=o[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0}},s=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 10;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 11;case 6:return"date";case 7:return 12;case 8:return 13;case 9:return 14;case 10:return 15;case 11:return":";case 12:return 6;case 13:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\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:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return u.lexer=s,t.prototype=u,u.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":83,fs:81,path:82}],99:[function(t,e,n){(function(r){var i=function(){function t(){this.yy={}}var e=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},n=[6,8,10,11,15,17,19,20,22,33],r=[2,2],i=[1,6],a=[1,8],o=[1,9],u=[1,12],s=[1,13],c=[1,14],l=[1,15],h=[1,17],f=[1,18],d=[2,7],p=[6,8,10,11,15,17,18,19,20,21,22,33],g=[6,8,10,11,15,17,18,19,20,22,33],y=[1,46],m=[1,49],v=[1,53],b={trace:function(){},yy:{},symbols_:{error:2,start:3,SD:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,participant:11,actor:12,signal:13,note_statement:14,title:15,text:16,loop:17,end:18,opt:19,alt:20,"else":21,note:22,placement:23,text2:24,over:25,spaceList:26,actor_pair:27,",":28,left_of:29,right_of:30,signaltype:31,actors:32,ACTOR:33,SOLID_OPEN_ARROW:34,DOTTED_OPEN_ARROW:35,SOLID_ARROW:36,DOTTED_ARROW:37,SOLID_CROSS:38,DOTTED_CROSS:39,TXT:40,$accept:0,$end:1},terminals_:{2:"error",4:"SD",6:"EOF",8:"SPACE",10:"NL",11:"participant",15:"title",16:"text",17:"loop",18:"end",19:"opt",20:"alt",21:"else",22:"note",25:"over",28:",",29:"left_of",30:"right_of",33:"ACTOR",34:"SOLID_OPEN_ARROW",35:"DOTTED_OPEN_ARROW",36:"SOLID_ARROW",37:"DOTTED_ARROW",38:"SOLID_CROSS",39:"DOTTED_CROSS",40:"TXT"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,3],[9,2],[9,2],[9,4],[9,4],[9,4],[9,7],[14,4],[14,5],[26,2],[26,1],[27,1],[27,3],[23,1],[23,1],[13,4],[32,2],[32,1],[12,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,1],[24,1]],performAction:function(t,e,n,r,i,a){var o=a.length-1;switch(i){case 1:return r.apply(a[o-1]),a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:this.$=a[o-1];break;case 12:a[o-1].unshift({type:"loopStart",loopText:a[o-2].actor,signalType:r.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 13:a[o-1].unshift({type:"optStart",optText:a[o-2].actor,signalType:r.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:a[o-2].actor,signalType:r.LINETYPE.OPT_END}),this.$=a[o-1];break;case 14:a[o-4].unshift({type:"altStart",altText:a[o-5].actor,signalType:r.LINETYPE.ALT_START}),a[o-4].push({type:"else",altText:a[o-2].actor,signalType:r.LINETYPE.ALT_ELSE}),a[o-4]=a[o-4].concat(a[o-1]),a[o-4].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[o-4];
break;case 15:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 19:this.$=a[o];break;case 20:this.$=[a[o-2],a[o]];break;case 21:this.$=r.PLACEMENT.LEFTOF;break;case 22:this.$=r.PLACEMENT.RIGHTOF;break;case 23:this.$=[a[o-3],a[o-1],{type:"addMessage",from:a[o-3].actor,to:a[o-1].actor,signalType:a[o-2],msg:a[o]}];break;case 26:this.$={type:"addActor",actor:a[o]};break;case 27:this.$=r.LINETYPE.SOLID_OPEN;break;case 28:this.$=r.LINETYPE.DOTTED_OPEN;break;case 29:this.$=r.LINETYPE.SOLID;break;case 30:this.$=r.LINETYPE.DOTTED;break;case 31:this.$=r.LINETYPE.SOLID_CROSS;break;case 32:this.$=r.LINETYPE.DOTTED_CROSS;break;case 33:this.$=a[o].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:[1,2]},{1:[3]},e(n,r,{5:3}),{6:[1,4],7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,22:h,33:f},e(n,d,{1:[2,1]}),e(p,[2,3]),{9:19,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,22:h,33:f},e(p,[2,5]),e(p,[2,6]),{12:20,33:f},{10:[1,21]},{10:[1,22]},{8:[1,23]},{12:24,33:f},{12:25,33:f},{12:26,33:f},{31:27,34:[1,28],35:[1,29],36:[1,30],37:[1,31],38:[1,32],39:[1,33]},{23:34,25:[1,35],29:[1,36],30:[1,37]},e([6,8,10,11,15,17,18,19,20,21,22,28,33,34,35,36,37,38,39,40],[2,26]),e(p,[2,4]),{10:[1,38]},e(p,[2,9]),e(p,[2,10]),{16:[1,39]},e(g,r,{5:40}),e(g,r,{5:41}),e([6,8,10,11,15,17,19,20,21,22,33],r,{5:42}),{12:43,33:f},{33:[2,27]},{33:[2,28]},{33:[2,29]},{33:[2,30]},{33:[2,31]},{33:[2,32]},{12:44,33:f},{8:y,26:45},{33:[2,21]},{33:[2,22]},e(p,[2,8]),{10:[1,47]},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,48],19:c,20:l,22:h,33:f},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,50],19:c,20:l,22:h,33:f},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,21:[1,51],22:h,33:f},{24:52,40:v},{24:54,40:v},{12:56,27:55,33:f},{8:y,26:57,33:[2,18]},e(p,[2,11]),e(p,[2,12]),e(p,d),e(p,[2,13]),{12:58,33:f},{10:[2,23]},{10:[2,33]},{10:[2,15]},{12:59,33:f},{28:[1,60],33:[2,19]},{33:[2,17]},e(g,r,{5:61}),{10:[2,16]},{12:62,33:f},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,63],19:c,20:l,22:h,33:f},{33:[2,20]},e(p,[2,14])],defaultActions:{28:[2,27],29:[2,28],30:[2,29],31:[2,30],32:[2,31],33:[2,32],36:[2,21],37:[2,22],52:[2,23],53:[2,33],54:[2,15],57:[2,17],59:[2,16],62:[2,20]},parseError:function(t,e){if(!e.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function e(){var t;return t=p.lex()||f,"number"!=typeof t&&(t=n.symbols_[t]||t),t}var n=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,A,k,E,D,M,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=e()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";M=[];for(k in o[x])this.terminals_[k]&&k>h&&M.push("'"+this.terminals_[k]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==f?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:M})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[w[1]][1],S.$=i[i.length-E],S._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),A=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof A)return A;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),D=o[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0}},_=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(t=this.test_match(n,i[a]),t!==!1)return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?(t=this.test_match(e,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 10;case 1:return 38;case 2:return 39;case 3:return 36;case 4:return 37;case 5:break;case 6:break;case 7:break;case 8:return 11;case 9:return 19;case 10:return 17;case 11:return 20;case 12:return 21;case 13:return 18;case 14:return 29;case 15:return 30;case 16:return 25;case 17:return 22;case 18:return 15;case 19:return 4;case 20:return 28;case 21:return 10;case 22:return 33;case 23:return 34;case 24:return 35;case 25:return 36;case 26:return 37;case 27:return 40;case 28:return 6;case 29:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:[\-][x])/i,/^(?:[\-][\-][x])/i,/^(?:[\-][>][>])/i,/^(?:[\-][\-][>][>])/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:participant\b)/i,/^(?:opt\b)/i,/^(?:loop\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\->:\n,;]+)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?::[^#\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,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],inclusive:!0}}};return t}();return b.lexer=_,t.prototype=b,b.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof n&&(n.parser=i,n.Parser=i.Parser,n.parse=function(){return i.parse.apply(i,arguments)},n.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return n.parser.parse(i)},"undefined"!=typeof e&&t.main===e&&n.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":83,fs:81,path:82}],100:[function(t,e,n){var r={},i=[],a=[],o=[],u=t("../../logger").create();n.addActor=function(t,e,n){r[t]={name:e,description:n},i.push(t)},n.addMessage=function(t,e,n,r){a.push({from:t,to:e,message:n,answer:r})},n.addSignal=function(t,e,n,r){u.debug("Adding message from="+t+" to="+e+" message="+n+" type="+r),a.push({from:t,to:e,message:n,type:r})},n.getMessages=function(){return a},n.getActors=function(){return r},n.getActor=function(t){return r[t]},n.getActorKeys=function(){return Object.keys(r)},n.clear=function(){r={},a=[]},n.LINETYPE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16},n.ARROWTYPE={FILLED:0,OPEN:1},n.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},n.addNote=function(t,e,r){var i={actor:t,placement:e,message:r};o.push(i),a.push({from:t,to:t,message:r,type:n.LINETYPE.NOTE,placement:e})},n.parseError=function(t,e){mermaidAPI.parseError(t,e)},n.apply=function(t){if(t instanceof Array)t.forEach(function(t){n.apply(t)});else switch(t.type){case"addActor":n.addActor(t.actor,t.actor,t.actor);break;case"addNote":n.addNote(t.actor,t.placement,t.text);break;case"addMessage":n.addSignal(t.from,t.to,t.msg,t.signalType);break;case"loopStart":n.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":n.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":n.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":n.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":n.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":n.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":n.addSignal(void 0,void 0,void 0,t.signalType)}}},{"../../logger":104}],101:[function(t,e,n){var r=t("./parser/sequenceDiagram").parser;r.yy=t("./sequenceDb");var i=t("./svgDraw"),a=t("../../d3"),o=t("../../logger").create(),u={diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!1,bottomMarginAdj:1};n.bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,list:[],init:function(){this.list=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){t[e]="undefined"==typeof t[e]?n:r(n,t[e])},updateLoops:function(t,e,r,i){var a=this,o=0;this.list.forEach(function(s){o++;var c=a.list.length-o+1;a.updateVal(s,"startx",t-c*u.boxMargin,Math.min),a.updateVal(s,"starty",e-c*u.boxMargin,Math.min),a.updateVal(s,"stopx",r+c*u.boxMargin,Math.max),a.updateVal(s,"stopy",i+c*u.boxMargin,Math.max),a.updateVal(n.bounds.data,"startx",t-c*u.boxMargin,Math.min),a.updateVal(n.bounds.data,"starty",e-c*u.boxMargin,Math.min),a.updateVal(n.bounds.data,"stopx",r+c*u.boxMargin,Math.max),a.updateVal(n.bounds.data,"stopy",i+c*u.boxMargin,Math.max)})},insert:function(t,e,r,i){var a,o,u,s;a=Math.min(t,r),u=Math.max(t,r),o=Math.min(e,i),s=Math.max(e,i),this.updateVal(n.bounds.data,"startx",a,Math.min),this.updateVal(n.bounds.data,"starty",o,Math.min),this.updateVal(n.bounds.data,"stopx",u,Math.max),this.updateVal(n.bounds.data,"stopy",s,Math.max),this.updateLoops(a,o,u,s)},newLoop:function(t){this.list.push({startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t})},endLoop:function(){var t=this.list.pop();return t},addElseToLoop:function(t){var e=this.list.pop();e.elsey=n.bounds.getVerticalPos(),e.elseText=t,this.list.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}};var s=function(t,e,r,a){var o=i.getNoteRect();o.x=e,o.y=r,o.width=u.width,o.class="note";var s=t.append("g"),c=i.drawRect(s,o),l=i.getTextObj();l.x=e,l.y=r,l.textMargin=u.noteMargin,l.dy="1em",l.text=a.message,l.class="noteText";var h=i.drawText(s,l,u.width),f=h[0][0].getBBox().height;f>u.width?(h.remove(),s=t.append("g"),h=i.drawText(s,l,2*u.width),f=h[0][0].getBBox().height,c.attr("width",2*u.width),n.bounds.insert(e,r,e+2*u.width,r+2*u.noteMargin+f)):n.bounds.insert(e,r,e+u.width,r+2*u.noteMargin+f),c.attr("height",f+2*u.noteMargin),n.bounds.bumpVerticalPos(f+2*u.noteMargin)},c=function(t,e,i,a,o){var u,s=t.append("g"),c=e+(i-e)/2,l=s.append("text").attr("x",c).attr("y",a-7).style("text-anchor","middle").attr("class","messageText").text(o.message);u="undefined"!=typeof l[0][0].getBBox?l[0][0].getBBox().width:l[0][0].getBoundingClientRect();var h;if(e===i){h=s.append("path").attr("d","M "+e+","+a+" C "+(e+60)+","+(a-10)+" "+(e+60)+","+(a+30)+" "+e+","+(a+20)),n.bounds.bumpVerticalPos(30);var f=Math.max(u/2,100);n.bounds.insert(e-f,n.bounds.getVerticalPos()-10,i+f,n.bounds.getVerticalPos())}else h=s.append("line"),h.attr("x1",e),h.attr("y1",a),h.attr("x2",i),h.attr("y2",a),n.bounds.insert(e,n.bounds.getVerticalPos()-10,i,n.bounds.getVerticalPos());o.type===r.yy.LINETYPE.DOTTED||o.type===r.yy.LINETYPE.DOTTED_CROSS||o.type===r.yy.LINETYPE.DOTTED_OPEN?(h.style("stroke-dasharray","3, 3"),h.attr("class","messageLine1")):h.attr("class","messageLine0"),h.attr("stroke-width",2),h.attr("stroke","black"),h.style("fill","none"),(o.type===r.yy.LINETYPE.SOLID||o.type===r.yy.LINETYPE.DOTTED)&&h.attr("marker-end","url(#arrowhead)"),(o.type===r.yy.LINETYPE.SOLID_CROSS||o.type===r.yy.LINETYPE.DOTTED_CROSS)&&h.attr("marker-end","url(#crosshead)")};e.exports.drawActors=function(t,e,r,a){var o;for(o=0;o<r.length;o++){var s=r[o];e[s].x=o*u.actorMargin+o*u.width,e[s].y=a,e[s].width=u.diagramMarginY,e[s].height=u.diagramMarginY,i.drawActor(t,e[s].x,a,e[s].description,u),n.bounds.insert(e[s].x,a,e[s].x+u.width,u.height)}n.bounds.bumpVerticalPos(u.height)},e.exports.setConf=function(t){var e=Object.keys(t);e.forEach(function(e){u[e]=t[e]})},e.exports.draw=function(t,l){r.yy.clear(),r.parse(t+"\n"),n.bounds.init();var h,f,d=a.select("#"+l),p=r.yy.getActors(),g=r.yy.getActorKeys(),y=r.yy.getMessages();e.exports.drawActors(d,p,g,0),i.insertArrowHead(d),i.insertArrowCrossHead(d),y.forEach(function(t){var e;switch(t.type){case r.yy.LINETYPE.NOTE:n.bounds.bumpVerticalPos(u.boxMargin),h=p[t.from].x,f=p[t.to].x,0!==t.placement?s(d,h+(u.width+u.actorMargin)/2,n.bounds.getVerticalPos(),t):s(d,h-(u.width+u.actorMargin)/2,n.bounds.getVerticalPos(),t);break;case r.yy.LINETYPE.LOOP_START:n.bounds.bumpVerticalPos(u.boxMargin),n.bounds.newLoop(t.message),n.bounds.bumpVerticalPos(u.boxMargin+u.boxTextMargin);break;case r.yy.LINETYPE.LOOP_END:e=n.bounds.endLoop(),i.drawLoop(d,e,"loop",u),n.bounds.bumpVerticalPos(u.boxMargin);break;case r.yy.LINETYPE.OPT_START:n.bounds.bumpVerticalPos(u.boxMargin),n.bounds.newLoop(t.message),n.bounds.bumpVerticalPos(u.boxMargin+u.boxTextMargin);break;case r.yy.LINETYPE.OPT_END:e=n.bounds.endLoop(),i.drawLoop(d,e,"opt",u),n.bounds.bumpVerticalPos(u.boxMargin);break;case r.yy.LINETYPE.ALT_START:n.bounds.bumpVerticalPos(u.boxMargin),n.bounds.newLoop(t.message),n.bounds.bumpVerticalPos(u.boxMargin+u.boxTextMargin);break;case r.yy.LINETYPE.ALT_ELSE:n.bounds.bumpVerticalPos(u.boxMargin),e=n.bounds.addElseToLoop(t.message),n.bounds.bumpVerticalPos(u.boxMargin);break;case r.yy.LINETYPE.ALT_END:e=n.bounds.endLoop(),i.drawLoop(d,e,"alt",u),n.bounds.bumpVerticalPos(u.boxMargin);break;default:n.bounds.bumpVerticalPos(u.messageMargin),h=p[t.from].x+u.width/2,f=p[t.to].x+u.width/2,c(d,h,f,n.bounds.getVerticalPos(),t)}}),u.mirrorActors&&(n.bounds.bumpVerticalPos(2*u.boxMargin),e.exports.drawActors(d,p,g,n.bounds.getVerticalPos()));var m=n.bounds.getBounds();o.debug("For line height fix Querying: #"+l+" .actor-line");var v=a.selectAll("#"+l+" .actor-line");v.attr("y2",m.stopy);var b=m.stopy-m.starty+2*u.diagramMarginY;u.mirrorActors&&(b=b-u.boxMargin+u.bottomMarginAdj);var _=m.stopx-m.startx+2*u.diagramMarginX;u.useMaxWidth?(d.attr("height","100%"),d.attr("width","100%"),d.attr("style","max-width:"+_+"px;")):(d.attr("height",b),d.attr("width",_)),d.attr("viewBox",m.startx-u.diagramMarginX+" -"+u.diagramMarginY+" "+_+" "+b)}},{"../../d3":87,"../../logger":104,"./parser/sequenceDiagram":99,"./sequenceDb":100,"./svgDraw":102}],102:[function(t,e,n){t("../../logger").create();n.drawRect=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!=typeof e.class&&n.attr("class",e.class),n},n.drawText=function(t,e,n){var r=e.text.replace(/<br\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.attr("fill",e.fill),"undefined"!=typeof e.class&&i.attr("class",e.class);var a=i.append("tspan");return a.attr("x",e.x),a.attr("dy",e.dy),a.text(r),"undefined"!=typeof i.textwrap&&i.textwrap({x:e.x+4,y:e.y-2,width:n,height:1800},e.textMargin),i},n.drawLabel=function(t,e){var r=n.getNoteRect();r.x=e.x,r.y=e.y,r.width=50,r.height=20,r.fill="#526e52",r.stroke="none",r.class="labelBox",n.drawRect(t,r),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,e.fill="white",n.drawText(t,e)};var r=-1;n.drawActor=function(t,e,i,a,o){var u=e+o.width/2,s=t.append("g");0===i&&(r++,s.append("line").attr("id","actor"+r).attr("x1",u).attr("y1",5).attr("x2",u).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var c=n.getNoteRect();c.x=e,c.y=i,c.fill="#eaeaea",c.width=o.width,c.height=o.height,c.class="actor",c.rx=3,c.ry=3,n.drawRect(s,c),s.append("text").attr("x",u).attr("y",i+o.height/2+5).attr("class","actor").style("text-anchor","middle").text(a)},n.drawLoop=function(t,e,r,i){var a=t.append("g"),o=function(t,e,n,r){a.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",r).attr("stroke-width",2).attr("stroke","#526e52").attr("class","loopLine")};o(e.startx,e.starty,e.stopx,e.starty),o(e.stopx,e.starty,e.stopx,e.stopy),o(e.startx,e.stopy,e.stopx,e.stopy),o(e.startx,e.starty,e.startx,e.stopy),"undefined"!=typeof e.elsey&&o(e.startx,e.elsey,e.stopx,e.elsey);var u=n.getTextObj();u.text=r,u.x=e.startx,u.y=e.starty,u.labelMargin=1.5*i.boxMargin,u.class="labelText",u.fill="white",n.drawLabel(a,u),u=n.getTextObj(),u.text="[ "+e.title+" ]",u.x=e.startx+(e.stopx-e.startx)/2,u.y=e.starty+1.5*i.boxMargin,u.anchor="middle",u.class="loopText",n.drawText(a,u),"undefined"!=typeof e.elseText&&(u.text="[ "+e.elseText+" ]",u.y=e.elsey+1.5*i.boxMargin,n.drawText(a,u))},n.insertArrowHead=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},n.insertArrowCrossHead=function(t){var e=t.append("defs"),n=e.append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.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"),n.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")},n.getTextObj=function(){var t={x:0,y:0,fill:"black","text-anchor":"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0};return t},n.getNoteRect=function(){var t={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};return t}},{"../../logger":104}],103:[function(t,e,n){(function(r){var i=t("he"),a=t("./mermaidAPI"),o=0,u=t("./logger").create();e.exports.mermaidAPI=a;var s=function(){u.debug("Starting rendering diagrams");var t;arguments.length>=2?("undefined"!=typeof arguments[0]&&(mermaid.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0];var e;if("function"==typeof arguments[arguments.length-1])e=arguments[arguments.length-1],u.debug("Callback function found");else{var n=a.getConfig();"undefined"!=typeof n.mermaid&&("function"==typeof n.mermaid.callback?(e=n.mermaid.callback,u.debug("Callback function found")):u.debug("No Callback function found"))}t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof Node?[t]:t;var r;"undefined"!=typeof mermaid_config&&a.initialize(mermaid_config),u.debug("Start On Load before: "+mermaid.startOnLoad),"undefined"!=typeof mermaid.startOnLoad&&(u.debug("Start On Load inner: "+mermaid.startOnLoad),a.initialize({startOnLoad:mermaid.startOnLoad})),"undefined"!=typeof mermaid.ganttConfig&&a.initialize({gantt:mermaid.ganttConfig});var s=function(t){c.innerHTML=t,"undefined"!=typeof e&&e(l)};for(r=0;r<t.length;r++){var c=t[r];if(!c.getAttribute("data-processed")){c.setAttribute("data-processed",!0);var l="mermaidChart"+o++,h=c.innerHTML;h=h.replace(/>/g,"&gt;"),h=h.replace(/</g,"&lt;"),h=i.decode(h).trim(),a.render(l,h,s,c)}}};n.init=s,n.parse=a.parse,n.version=function(){return"v"+t("../package.json").version},n.initialize=function(t){u.debug("Initializing mermaid"),"undefined"!=typeof t.mermaid&&("undefined"!=typeof t.mermaid.startOnLoad&&(r.mermaid.startOnLoad=t.mermaid.startOnLoad),"undefined"!=typeof t.mermaid.htmlLabels&&(r.mermaid.htmlLabels=t.mermaid.htmlLabels)),a.initialize(t)};var c=function(t,e){return"undefined"==typeof e?!1:t===e};r.mermaid={startOnLoad:!0,htmlLabels:!0,init:function(){s.apply(null,arguments)},initialize:function(t){n.initialize(t)},version:function(){return a.version()},parse:function(t){return a.parse(t)},parseError:function(t){u.debug("Mermaid Syntax error:"),u.debug(t)},render:function(t,e,n,r){return a.render(t,e,n,r)}},n.parseError=r.mermaid.parseError,n.contentLoaded=function(){var t;"undefined"!=typeof mermaid_config&&c(!1,mermaid_config.htmlLabels)&&(r.mermaid.htmlLabels=!1),r.mermaid.startOnLoad?"undefined"!=typeof mermaid_config?c(!0,mermaid_config.startOnLoad)&&r.mermaid.init():(a.initialize({startOnLoad:r.mermaid.startOnLoad}),t=a.getConfig(),t.startOnLoad&&r.mermaid.init()):(t=a.getConfig(),t.startOnLoad&&r.mermaid.init())},"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",function(){n.contentLoaded()},!1)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":86,"./logger":104,"./mermaidAPI":105,he:84}],104:[function(t,e,n){(function(t){var e;e=function(){function e(t){var n,r,i;this.options=t||{},this.level=this.options.level||e.levels.default,i=e.levels;for(n in i)r=i[n],e.define(this,n)}function n(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getSeconds(),i=t.getMilliseconds();10>e&&(e="0"+e),10>n&&(n="0"+n),10>r&&(r="0"+r),100>i&&(i="0"+i),10>i&&(i="00"+i);var a=e+":"+n+":"+r+" ("+i+")";return a}return e.prototype.add=function(n,r,i){return this.level>(e.levels[n]||5)?void 0:(i?r=i():"function"==typeof r&&(r=r()),this.write({timestamp:new Date,severity:n,message:r,pid:t.pid}))},e.prototype.write=function(t){return"undefined"!=typeof console&&"undefined"!=typeof console.log?console.log(this.build_message(t)):void 0},e.prototype.build_message=function(t){return"["+n(t.timestamp)+"] "+t.message},e}(),e.define=function(t,e){return t[e]=function(t,n){return this.add(e,t,n)}},e.levels={debug:1,info:2,warn:3,error:4,fatal:5,"default":2},n.create=function(t,n){return new e(n)}}).call(this,t("1YiZ5S"))},{"1YiZ5S":83}],105:[function(t,e,n){(function(e){var r=t("./diagrams/flowchart/graphDb"),i=(t("./diagrams/flowchart/parser/flow"),t("./utils")),a=t("./diagrams/flowchart/flowRenderer"),o=t("./diagrams/sequenceDiagram/sequenceRenderer"),u=t("./diagrams/example/exampleRenderer"),s=t("./diagrams/example/parser/example"),c=t("./diagrams/flowchart/parser/flow"),l=t("./diagrams/flowchart/parser/dot"),h=t("./diagrams/sequenceDiagram/parser/sequenceDiagram"),f=t("./diagrams/sequenceDiagram/sequenceDb"),d=t("./diagrams/example/exampleDb"),p=t("./diagrams/gantt/ganttRenderer"),g=t("./diagrams/gantt/parser/gantt"),y=t("./diagrams/gantt/ganttDb"),m=t("./d3"),v=t("./logger").create(),b={cloneCssStyles:!0,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequenceDiagram:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,sidePadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:3,axisFormatter:[["%I:%M",function(t){return t.getHours()}],["w. %U",function(t){return 1==t.getDay()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%m-%y",function(t){return t.getMonth()}]]}},_=function(t){var e,n=i.detectType(t);switch(n){case"graph":e=c,e.parser.yy=r;break;case"dotGraph":e=l,e.parser.yy=r;break;case"sequenceDiagram":e=h,e.parser.yy=f;break;case"info":e=s,e.parser.yy=d;break;case"gantt":e=g,e.parser.yy=y}try{return e.parse(t),!0}catch(a){return!1}};n.parse=_,n.version=function(){return t("../package.json").version};var x=function(t,e,s,c){"undefined"!=typeof c?m.select(c).append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g"):m.select("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");var l=m.select("#d"+t).node(),h=i.detectType(e),f={};switch(h){case"graph":a.setConf(b.flowchart),a.draw(e,t,!1),b.cloneCssStyles&&(f=a.getClasses(e,!1),i.cloneCssStyles(l.firstChild,f)),r.bindFunctions();break;case"dotGraph":a.setConf(b.flowchart),a.draw(e,t,!0),b.cloneCssStyles&&(f=a.getClasses(e,!0),i.cloneCssStyles(l.firstChild,f));break;case"sequenceDiagram":o.setConf(b.sequenceDiagram),o.draw(e,t),b.cloneCssStyles&&i.cloneCssStyles(l.firstChild,[]);break;case"gantt":p.setConf(b.gantt),p.draw(e,t),b.cloneCssStyles&&i.cloneCssStyles(l.firstChild,[]);break;case"info":u.draw(e,t,n.version()),b.cloneCssStyles&&i.cloneCssStyles(l.firstChild,[])}"undefined"!=typeof s?s(m.select("#d"+t).node().innerHTML,r.bindFunctions):v.warn("CB = undefined");var d=m.select("#d"+t).node();null!==d&&"function"==typeof d.remove&&m.select("#d"+t).node().remove()};n.render=function(t,e,n,r){"undefined"==typeof document||x(t,e,n,r)};var w=function(t){var e,n=Object.keys(t);for(e=0;e<n.length;e++)if("object"==typeof t[n[e]]){var r,i=Object.keys(t[n[e]]);for(r=0;r<i.length;r++)"undefined"==typeof b[n[e]]&&(b[n[e]]={}),v.debug("Setting config: "+n[e]+" "+i[r]+" to "+t[n[e]][i[r]]),b[n[e]][i[r]]=t[n[e]][i[r]]}else b[n[e]]=t[n[e]]};n.initialize=function(t){"object"==typeof t&&w(t)},n.getConfig=function(){return b},n.parseError=function(t,e){"undefined"!=typeof mermaid?mermaid.parseError(t,e):(v.debug("Mermaid Syntax error:"),v.debug(t))},e.mermaidAPI={render:n.render,parse:n.parse,initialize:n.initialize,detectType:i.detectType,parseError:n.parseError}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":86,"./d3":87,"./diagrams/example/exampleDb":88,"./diagrams/example/exampleRenderer":89,"./diagrams/example/parser/example":90,"./diagrams/flowchart/flowRenderer":92,"./diagrams/flowchart/graphDb":93,"./diagrams/flowchart/parser/dot":94,"./diagrams/flowchart/parser/flow":95,"./diagrams/gantt/ganttDb":96,"./diagrams/gantt/ganttRenderer":97,"./diagrams/gantt/parser/gantt":98,"./diagrams/sequenceDiagram/parser/sequenceDiagram":99,"./diagrams/sequenceDiagram/sequenceDb":100,"./diagrams/sequenceDiagram/sequenceRenderer":101,"./logger":104,"./utils":106}],106:[function(t,e){t("./logger").create();e.exports.detectType=function(t){return t.match(/^\s*sequenceDiagram/)?"sequenceDiagram":t.match(/^\s*sequence/)?"sequence":t.match(/^\s*digraph/)?"dotGraph":t.match(/^\s*info/)?"info":t.match(/^\s*gantt/)?"gantt":"graph"},e.exports.cloneCssStyles=function(t,e){for(var n="",r=document.styleSheets,i=0;i<r.length;i++)if("mermaid-svg-internal-css"!==r[i].title)try{var a=r[i].cssRules;if(null!==a)for(var o=0;o<a.length;o++){var u=a[o];if("undefined"!=typeof u.style){var s;s=t.querySelectorAll(u.selectorText),s.length>0&&(n+=u.selectorText+" { "+u.style.cssText+" }\n")}}}catch(c){"undefined"!=typeof console&&"undefined"!==console.warn&&"undefined"!==u&&console.warn('Invalid CSS selector "'+u.selectorText+'"',c)}var l="",h="";for(var f in e)e.hasOwnProperty(f)&&"undefined"!=typeof f&&("default"===f?(e.default.styles instanceof Array&&(l+="#"+t.id.trim()+" .node { "+e[f].styles.join("; ")+"; }\n"),e.default.nodeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .node text { "+e[f].nodeLabelStyles.join("; ")+"; }\n"),e.default.edgeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .edgeLabel text { "+e[f].edgeLabelStyles.join("; ")+"; }\n"),e.default.clusterStyles instanceof Array&&(l+="#"+t.id.trim()+" .cluster rect { "+e[f].clusterStyles.join("; ")+"; }\n")):e[f].styles instanceof Array&&(h+="#"+t.id.trim()+" ."+f+" { "+e[f].styles.join("; ")+"; }\n"));if(""!==n||""!==l||""!==h){var d=document.createElement("style");
d.setAttribute("type","text/css"),d.setAttribute("title","mermaid-svg-internal-css"),d.innerHTML="/* <![CDATA[ */\n",""!==l&&(d.innerHTML+=l),""!==n&&(d.innerHTML+=n),""!==h&&(d.innerHTML+=h),d.innerHTML+="/* ]]> */\n",t.insertBefore(d,t.firstChild)}}},{"./logger":104}]},{},[103])(103)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment