Scatter Pod
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
429 KiB

!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=4)}([function(t,n,e){(function(t,r){var i;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",f="[object Array]",s="[object Boolean]",l="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Object]",_="[object RegExp]",b="[object Set]",m="[object String]",x="[object Symbol]",w="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",S="[object Float32Array]",k="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",T="[object Int32Array]",O="[object Uint8Array]",N="[object Uint16Array]",j="[object Uint32Array]",R=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,D=RegExp(L.source),F=RegExp(I.source),B=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,X=RegExp($.source),W=/^\s+/,G=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,nt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",vt="["+dt+"]",gt="["+ht+"]",yt="\\d+",_t="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",wt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+mt+")",Et="(?:"+St+"|"+mt+")",Ct="(?:"+gt+"|"+xt+")"+"?",Tt="[\\ufe0e\\ufe0f]?"+Ct+("(?:\\u200d(?:"+[wt,Mt,At].join("|")+")[\\ufe0e\\ufe0f]?"+Ct+")*"),Ot="(?:"+[_t,Mt,At].join("|")+")"+Tt,Nt="(?:"+[wt+gt+"?",gt,Mt,At,pt].join("|")+")",jt=RegExp("['’]","g"),Rt=RegExp(gt,"g"),Pt=RegExp(xt+"(?="+xt+")|"+Nt+Tt,"g"),zt=RegExp([St+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,St,"$"].join("|")+")",Et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,St+kt,"$"].join("|")+")",St+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,Ot].join("|"),"g"),Lt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),It=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ft=-1,Bt={};Bt[S]=Bt[k]=Bt[E]=Bt[C]=Bt[T]=Bt[O]=Bt["[object Uint8ClampedArray]"]=Bt[N]=Bt[j]=!0,Bt[c]=Bt[f]=Bt[M]=Bt[s]=Bt[A]=Bt[l]=Bt[h]=Bt[d]=Bt[v]=Bt[g]=Bt[y]=Bt[_]=Bt[b]=Bt[m]=Bt[w]=!1;var Ut={};Ut[c]=Ut[f]=Ut[M]=Ut[A]=Ut[s]=Ut[l]=Ut[S]=Ut[k]=Ut[E]=Ut[C]=Ut[T]=Ut[v]=Ut[g]=Ut[y]=Ut[_]=Ut[b]=Ut[m]=Ut[x]=Ut[O]=Ut["[object Uint8ClampedArray]"]=Ut[N]=Ut[j]=!0,Ut[h]=Ut[d]=Ut[w]=!1;var Yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=parseFloat,Vt=parseInt,Ht="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Xt=Ht||$t||Function("return this")(),Wt=n&&!n.nodeType&&n,Gt=Wt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Gt&&Gt.exports===Wt,Kt=Zt&&Ht.process,Qt=function(){try{var t=Gt&&Gt.require&&Gt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Jt=Qt&&Qt.isArrayBuffer,tn=Qt&&Qt.isDate,nn=Qt&&Qt.isMap,en=Qt&&Qt.isRegExp,rn=Qt&&Qt.isSet,on=Qt&&Qt.isTypedArray;function un(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function an(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var u=t[i];n(r,u,e(u),t)}return r}function cn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function fn(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function sn(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function ln(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}function hn(t,n){return!!(null==t?0:t.length)&&wn(t,n,0)>-1}function dn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}function pn(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}function vn(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}function gn(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i<o;)e=n(e,t[i],i,t);return e}function yn(t,n,e,r){var i=null==t?0:t.length;for(r&&i&&(e=t[--i]);i--;)e=n(e,t[i],i,t);return e}function _n(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var bn=kn("length");function mn(t,n,e){var r;return e(t,(function(t,e,i){if(n(t,e,i))return r=e,!1})),r}function xn(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}function wn(t,n,e){return n==n?function(t,n,e){var r=e-1,i=t.length;for(;++r<i;)if(t[r]===n)return r;return-1}(t,n,e):xn(t,An,e)}function Mn(t,n,e,r){for(var i=e-1,o=t.length;++i<o;)if(r(t[i],n))return i;return-1}function An(t){return t!=t}function Sn(t,n){var e=null==t?0:t.length;return e?Tn(t,n)/e:NaN}function kn(t){return function(n){return null==n?void 0:n[t]}}function En(t){return function(n){return null==t?void 0:t[n]}}function Cn(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}function Tn(t,n){for(var e,r=-1,i=t.length;++r<i;){var o=n(t[r]);void 0!==o&&(e=void 0===e?o:e+o)}return e}function On(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function Nn(t){return t?t.slice(0,Gn(t)+1).replace(W,""):t}function jn(t){return function(n){return t(n)}}function Rn(t,n){return pn(n,(function(n){return t[n]}))}function Pn(t,n){return t.has(n)}function zn(t,n){for(var e=-1,r=t.length;++e<r&&wn(n,t[e],0)>-1;);return e}function Ln(t,n){for(var e=t.length;e--&&wn(n,t[e],0)>-1;);return e}function In(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}var Dn=En({"À":"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","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Fn=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Bn(t){return"\\"+Yt[t]}function Un(t){return Lt.test(t)}function Yn(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function qn(t,n){return function(e){return t(n(e))}}function Vn(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var a=t[e];a!==n&&a!==u||(t[e]=u,o[i++]=e)}return o}function Hn(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}function $n(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=[t,t]})),e}function Xn(t){return Un(t)?function(t){var n=Pt.lastIndex=0;for(;Pt.test(t);)++n;return n}(t):bn(t)}function Wn(t){return Un(t)?function(t){return t.match(Pt)||[]}(t):function(t){return t.split("")}(t)}function Gn(t){for(var n=t.length;n--&&G.test(t.charAt(n)););return n}var Zn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Kn=function t(n){var e,r=(n=null==n?Xt:Kn.defaults(Xt.Object(),n,Kn.pick(Xt,Dt))).Array,i=n.Date,G=n.Error,ht=n.Function,dt=n.Math,pt=n.Object,vt=n.RegExp,gt=n.String,yt=n.TypeError,_t=r.prototype,bt=ht.prototype,mt=pt.prototype,xt=n["__core-js_shared__"],wt=bt.toString,Mt=mt.hasOwnProperty,At=0,St=(e=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",kt=mt.toString,Et=wt.call(pt),Ct=Xt._,Tt=vt("^"+wt.call(Mt).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=Zt?n.Buffer:void 0,Nt=n.Symbol,Pt=n.Uint8Array,Lt=Ot?Ot.allocUnsafe:void 0,Yt=qn(pt.getPrototypeOf,pt),Ht=pt.create,$t=mt.propertyIsEnumerable,Wt=_t.splice,Gt=Nt?Nt.isConcatSpreadable:void 0,Kt=Nt?Nt.iterator:void 0,Qt=Nt?Nt.toStringTag:void 0,bn=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),En=n.clearTimeout!==Xt.clearTimeout&&n.clearTimeout,Qn=i&&i.now!==Xt.Date.now&&i.now,Jn=n.setTimeout!==Xt.setTimeout&&n.setTimeout,te=dt.ceil,ne=dt.floor,ee=pt.getOwnPropertySymbols,re=Ot?Ot.isBuffer:void 0,ie=n.isFinite,oe=_t.join,ue=qn(pt.keys,pt),ae=dt.max,ce=dt.min,fe=i.now,se=n.parseInt,le=dt.random,he=_t.reverse,de=to(n,"DataView"),pe=to(n,"Map"),ve=to(n,"Promise"),ge=to(n,"Set"),ye=to(n,"WeakMap"),_e=to(pt,"create"),be=ye&&new ye,me={},xe=Co(de),we=Co(pe),Me=Co(ve),Ae=Co(ge),Se=Co(ye),ke=Nt?Nt.prototype:void 0,Ee=ke?ke.valueOf:void 0,Ce=ke?ke.toString:void 0;function Te(t){if(Hu(t)&&!Pu(t)&&!(t instanceof Re)){if(t instanceof je)return t;if(Mt.call(t,"__wrapped__"))return To(t)}return new je(t)}var Oe=function(){function t(){}return function(n){if(!Vu(n))return{};if(Ht)return Ht(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();function Ne(){}function je(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function Re(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ze(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Le(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Ie(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new Le;++n<e;)this.add(t[n])}function De(t){var n=this.__data__=new ze(t);this.size=n.size}function Fe(t,n){var e=Pu(t),r=!e&&Ru(t),i=!e&&!r&&Du(t),o=!e&&!r&&!i&&Ju(t),u=e||r||i||o,a=u?On(t.length,gt):[],c=a.length;for(var f in t)!n&&!Mt.call(t,f)||u&&("length"==f||i&&("offset"==f||"parent"==f)||o&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||ao(f,c))||a.push(f);return a}function Be(t){var n=t.length;return n?t[Ir(0,n-1)]:void 0}function Ue(t,n){return So(_i(t),Ze(n,0,t.length))}function Ye(t){return So(_i(t))}function qe(t,n,e){(void 0!==e&&!Ou(t[n],e)||void 0===e&&!(n in t))&&We(t,n,e)}function Ve(t,n,e){var r=t[n];Mt.call(t,n)&&Ou(r,e)&&(void 0!==e||n in t)||We(t,n,e)}function He(t,n){for(var e=t.length;e--;)if(Ou(t[e][0],n))return e;return-1}function $e(t,n,e,r){return nr(t,(function(t,i,o){n(r,t,e(t),o)})),r}function Xe(t,n){return t&&bi(n,xa(n),t)}function We(t,n,e){"__proto__"==n&&bn?bn(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function Ge(t,n){for(var e=-1,i=n.length,o=r(i),u=null==t;++e<i;)o[e]=u?void 0:ga(t,n[e]);return o}function Ze(t,n,e){return t==t&&(void 0!==e&&(t=t<=e?t:e),void 0!==n&&(t=t>=n?t:n)),t}function Ke(t,n,e,r,i,o){var u,a=1&n,f=2&n,h=4&n;if(e&&(u=i?e(t,r,i,o):e(t)),void 0!==u)return u;if(!Vu(t))return t;var w=Pu(t);if(w){if(u=function(t){var n=t.length,e=new t.constructor(n);n&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!a)return _i(t,u)}else{var R=ro(t),P=R==d||R==p;if(Du(t))return hi(t,a);if(R==y||R==c||P&&!i){if(u=f||P?{}:oo(t),!a)return f?function(t,n){return bi(t,eo(t),n)}(t,function(t,n){return t&&bi(n,wa(n),t)}(u,t)):function(t,n){return bi(t,no(t),n)}(t,Xe(u,t))}else{if(!Ut[R])return i?t:{};u=function(t,n,e){var r=t.constructor;switch(n){case M:return di(t);case s:case l:return new r(+t);case A:return function(t,n){var e=n?di(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case S:case k:case E:case C:case T:case O:case"[object Uint8ClampedArray]":case N:case j:return pi(t,e);case v:return new r;case g:case m:return new r(t);case _:return function(t){var n=new t.constructor(t.source,rt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case b:return new r;case x:return i=t,Ee?pt(Ee.call(i)):{}}var i}(t,R,a)}}o||(o=new De);var z=o.get(t);if(z)return z;o.set(t,u),Zu(t)?t.forEach((function(r){u.add(Ke(r,n,e,r,t,o))})):$u(t)&&t.forEach((function(r,i){u.set(i,Ke(r,n,e,i,t,o))}));var L=w?void 0:(h?f?Xi:$i:f?wa:xa)(t);return cn(L||t,(function(r,i){L&&(r=t[i=r]),Ve(u,i,Ke(r,n,e,i,t,o))})),u}function Qe(t,n,e){var r=e.length;if(null==t)return!r;for(t=pt(t);r--;){var i=e[r],o=n[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0}function Je(t,n,e){if("function"!=typeof t)throw new yt(o);return xo((function(){t.apply(void 0,e)}),n)}function tr(t,n,e,r){var i=-1,o=hn,u=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=pn(n,jn(e))),r?(o=dn,u=!1):n.length>=200&&(o=Pn,u=!1,n=new Ie(n));t:for(;++i<a;){var s=t[i],l=null==e?s:e(s);if(s=r||0!==s?s:0,u&&l==l){for(var h=f;h--;)if(n[h]===l)continue t;c.push(s)}else o(n,l,r)||c.push(s)}return c}Te.templateSettings={escape:B,evaluate:U,interpolate:Y,variable:"",imports:{_:Te}},Te.prototype=Ne.prototype,Te.prototype.constructor=Te,je.prototype=Oe(Ne.prototype),je.prototype.constructor=je,Re.prototype=Oe(Ne.prototype),Re.prototype.constructor=Re,Pe.prototype.clear=function(){this.__data__=_e?_e(null):{},this.size=0},Pe.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Pe.prototype.get=function(t){var n=this.__data__;if(_e){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return Mt.call(n,t)?n[t]:void 0},Pe.prototype.has=function(t){var n=this.__data__;return _e?void 0!==n[t]:Mt.call(n,t)},Pe.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=_e&&void 0===n?"__lodash_hash_undefined__":n,this},ze.prototype.clear=function(){this.__data__=[],this.size=0},ze.prototype.delete=function(t){var n=this.__data__,e=He(n,t);return!(e<0)&&(e==n.length-1?n.pop():Wt.call(n,e,1),--this.size,!0)},ze.prototype.get=function(t){var n=this.__data__,e=He(n,t);return e<0?void 0:n[e][1]},ze.prototype.has=function(t){return He(this.__data__,t)>-1},ze.prototype.set=function(t,n){var e=this.__data__,r=He(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Le.prototype.clear=function(){this.size=0,this.__data__={hash:new Pe,map:new(pe||ze),string:new Pe}},Le.prototype.delete=function(t){var n=Qi(this,t).delete(t);return this.size-=n?1:0,n},Le.prototype.get=function(t){return Qi(this,t).get(t)},Le.prototype.has=function(t){return Qi(this,t).has(t)},Le.prototype.set=function(t,n){var e=Qi(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Ie.prototype.add=Ie.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ie.prototype.has=function(t){return this.__data__.has(t)},De.prototype.clear=function(){this.__data__=new ze,this.size=0},De.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},De.prototype.get=function(t){return this.__data__.get(t)},De.prototype.has=function(t){return this.__data__.has(t)},De.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ze){var r=e.__data__;if(!pe||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Le(r)}return e.set(t,n),this.size=e.size,this};var nr=wi(fr),er=wi(sr,!0);function rr(t,n){var e=!0;return nr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function ir(t,n,e){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=n(o);if(null!=u&&(void 0===a?u==u&&!Qu(u):e(u,a)))var a=u,c=o}return c}function or(t,n){var e=[];return nr(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}function ur(t,n,e,r,i){var o=-1,u=t.length;for(e||(e=uo),i||(i=[]);++o<u;){var a=t[o];n>0&&e(a)?n>1?ur(a,n-1,e,r,i):vn(i,a):r||(i[i.length]=a)}return i}var ar=Mi(),cr=Mi(!0);function fr(t,n){return t&&ar(t,n,xa)}function sr(t,n){return t&&cr(t,n,xa)}function lr(t,n){return ln(n,(function(n){return Uu(t[n])}))}function hr(t,n){for(var e=0,r=(n=ci(n,t)).length;null!=t&&e<r;)t=t[Eo(n[e++])];return e&&e==r?t:void 0}function dr(t,n,e){var r=n(t);return Pu(t)?r:vn(r,e(t))}function pr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Qt&&Qt in pt(t)?function(t){var n=Mt.call(t,Qt),e=t[Qt];try{t[Qt]=void 0;var r=!0}catch(t){}var i=kt.call(t);r&&(n?t[Qt]=e:delete t[Qt]);return i}(t):function(t){return kt.call(t)}(t)}function vr(t,n){return t>n}function gr(t,n){return null!=t&&Mt.call(t,n)}function yr(t,n){return null!=t&&n in pt(t)}function _r(t,n,e){for(var i=e?dn:hn,o=t[0].length,u=t.length,a=u,c=r(u),f=1/0,s=[];a--;){var l=t[a];a&&n&&(l=pn(l,jn(n))),f=ce(l.length,f),c[a]=!e&&(n||o>=120&&l.length>=120)?new Ie(a&&l):void 0}l=t[0];var h=-1,d=c[0];t:for(;++h<o&&s.length<f;){var p=l[h],v=n?n(p):p;if(p=e||0!==p?p:0,!(d?Pn(d,v):i(s,v,e))){for(a=u;--a;){var g=c[a];if(!(g?Pn(g,v):i(t[a],v,e)))continue t}d&&d.push(v),s.push(p)}}return s}function br(t,n,e){var r=null==(t=yo(t,n=ci(n,t)))?t:t[Eo(Bo(n))];return null==r?void 0:un(r,t,e)}function mr(t){return Hu(t)&&pr(t)==c}function xr(t,n,e,r,i){return t===n||(null==t||null==n||!Hu(t)&&!Hu(n)?t!=t&&n!=n:function(t,n,e,r,i,o){var u=Pu(t),a=Pu(n),d=u?f:ro(t),p=a?f:ro(n),w=(d=d==c?y:d)==y,S=(p=p==c?y:p)==y,k=d==p;if(k&&Du(t)){if(!Du(n))return!1;u=!0,w=!1}if(k&&!w)return o||(o=new De),u||Ju(t)?Vi(t,n,e,r,i,o):function(t,n,e,r,i,o,u){switch(e){case A:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case M:return!(t.byteLength!=n.byteLength||!o(new Pt(t),new Pt(n)));case s:case l:case g:return Ou(+t,+n);case h:return t.name==n.name&&t.message==n.message;case _:case m:return t==n+"";case v:var a=Yn;case b:var c=1&r;if(a||(a=Hn),t.size!=n.size&&!c)return!1;var f=u.get(t);if(f)return f==n;r|=2,u.set(t,n);var d=Vi(a(t),a(n),r,i,o,u);return u.delete(t),d;case x:if(Ee)return Ee.call(t)==Ee.call(n)}return!1}(t,n,d,e,r,i,o);if(!(1&e)){var E=w&&Mt.call(t,"__wrapped__"),C=S&&Mt.call(n,"__wrapped__");if(E||C){var T=E?t.value():t,O=C?n.value():n;return o||(o=new De),i(T,O,e,r,o)}}if(!k)return!1;return o||(o=new De),function(t,n,e,r,i,o){var u=1&e,a=$i(t),c=a.length,f=$i(n).length;if(c!=f&&!u)return!1;var s=c;for(;s--;){var l=a[s];if(!(u?l in n:Mt.call(n,l)))return!1}var h=o.get(t),d=o.get(n);if(h&&d)return h==n&&d==t;var p=!0;o.set(t,n),o.set(n,t);var v=u;for(;++s<c;){l=a[s];var g=t[l],y=n[l];if(r)var _=u?r(y,g,l,n,t,o):r(g,y,l,t,n,o);if(!(void 0===_?g===y||i(g,y,e,r,o):_)){p=!1;break}v||(v="constructor"==l)}if(p&&!v){var b=t.constructor,m=n.constructor;b==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m||(p=!1)}return o.delete(t),o.delete(n),p}(t,n,e,r,i,o)}(t,n,e,r,xr,i))}function wr(t,n,e,r){var i=e.length,o=i,u=!r;if(null==t)return!o;for(t=pt(t);i--;){var a=e[i];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var c=(a=e[i])[0],f=t[c],s=a[1];if(u&&a[2]){if(void 0===f&&!(c in t))return!1}else{var l=new De;if(r)var h=r(f,s,c,t,n,l);if(!(void 0===h?xr(s,f,3,r,l):h))return!1}}return!0}function Mr(t){return!(!Vu(t)||(n=t,St&&St in n))&&(Uu(t)?Tt:ut).test(Co(t));var n}function Ar(t){return"function"==typeof t?t:null==t?Xa:"object"==typeof t?Pu(t)?Or(t[0],t[1]):Tr(t):ec(t)}function Sr(t){if(!ho(t))return ue(t);var n=[];for(var e in pt(t))Mt.call(t,e)&&"constructor"!=e&&n.push(e);return n}function kr(t){if(!Vu(t))return function(t){var n=[];if(null!=t)for(var e in pt(t))n.push(e);return n}(t);var n=ho(t),e=[];for(var r in t)("constructor"!=r||!n&&Mt.call(t,r))&&e.push(r);return e}function Er(t,n){return t<n}function Cr(t,n){var e=-1,i=Lu(t)?r(t.length):[];return nr(t,(function(t,r,o){i[++e]=n(t,r,o)})),i}function Tr(t){var n=Ji(t);return 1==n.length&&n[0][2]?vo(n[0][0],n[0][1]):function(e){return e===t||wr(e,t,n)}}function Or(t,n){return fo(t)&&po(n)?vo(Eo(t),n):function(e){var r=ga(e,t);return void 0===r&&r===n?ya(e,t):xr(n,r,3)}}function Nr(t,n,e,r,i){t!==n&&ar(n,(function(o,u){if(i||(i=new De),Vu(o))!function(t,n,e,r,i,o,u){var a=bo(t,e),c=bo(n,e),f=u.get(c);if(f)return void qe(t,e,f);var s=o?o(a,c,e+"",t,n,u):void 0,l=void 0===s;if(l){var h=Pu(c),d=!h&&Du(c),p=!h&&!d&&Ju(c);s=c,h||d||p?Pu(a)?s=a:Iu(a)?s=_i(a):d?(l=!1,s=hi(c,!0)):p?(l=!1,s=pi(c,!0)):s=[]:Wu(c)||Ru(c)?(s=a,Ru(a)?s=aa(a):Vu(a)&&!Uu(a)||(s=oo(c))):l=!1}l&&(u.set(c,s),i(s,c,r,o,u),u.delete(c));qe(t,e,s)}(t,n,u,e,Nr,r,i);else{var a=r?r(bo(t,u),o,u+"",t,n,i):void 0;void 0===a&&(a=o),qe(t,u,a)}}),wa)}function jr(t,n){var e=t.length;if(e)return ao(n+=n<0?e:0,e)?t[n]:void 0}function Rr(t,n,e){n=n.length?pn(n,(function(t){return Pu(t)?function(n){return hr(n,1===t.length?t[0]:t)}:t})):[Xa];var r=-1;return n=pn(n,jn(Ki())),function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}(Cr(t,(function(t,e,i){return{criteria:pn(n,(function(n){return n(t)})),index:++r,value:t}})),(function(t,n){return function(t,n,e){var r=-1,i=t.criteria,o=n.criteria,u=i.length,a=e.length;for(;++r<u;){var c=vi(i[r],o[r]);if(c){if(r>=a)return c;var f=e[r];return c*("desc"==f?-1:1)}}return t.index-n.index}(t,n,e)}))}function Pr(t,n,e){for(var r=-1,i=n.length,o={};++r<i;){var u=n[r],a=hr(t,u);e(a,u)&&Yr(o,ci(u,t),a)}return o}function zr(t,n,e,r){var i=r?Mn:wn,o=-1,u=n.length,a=t;for(t===n&&(n=_i(n)),e&&(a=pn(t,jn(e)));++o<u;)for(var c=0,f=n[o],s=e?e(f):f;(c=i(a,s,c,r))>-1;)a!==t&&Wt.call(a,c,1),Wt.call(t,c,1);return t}function Lr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;ao(i)?Wt.call(t,i,1):ti(t,i)}}return t}function Ir(t,n){return t+ne(le()*(n-t+1))}function Dr(t,n){var e="";if(!t||n<1||n>9007199254740991)return e;do{n%2&&(e+=t),(n=ne(n/2))&&(t+=t)}while(n);return e}function Fr(t,n){return wo(go(t,n,Xa),t+"")}function Br(t){return Be(Oa(t))}function Ur(t,n){var e=Oa(t);return So(e,Ze(n,0,e.length))}function Yr(t,n,e,r){if(!Vu(t))return t;for(var i=-1,o=(n=ci(n,t)).length,u=o-1,a=t;null!=a&&++i<o;){var c=Eo(n[i]),f=e;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=u){var s=a[c];void 0===(f=r?r(s,c,a):void 0)&&(f=Vu(s)?s:ao(n[i+1])?[]:{})}Ve(a,c,f),a=a[c]}return t}var qr=be?function(t,n){return be.set(t,n),t}:Xa,Vr=bn?function(t,n){return bn(t,"toString",{configurable:!0,enumerable:!1,value:Va(n),writable:!0})}:Xa;function Hr(t){return So(Oa(t))}function $r(t,n,e){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var u=r(o);++i<o;)u[i]=t[i+n];return u}function Xr(t,n){var e;return nr(t,(function(t,r,i){return!(e=n(t,r,i))})),!!e}function Wr(t,n,e){var r=0,i=null==t?r:t.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=t[o];null!==u&&!Qu(u)&&(e?u<=n:u<n)?r=o+1:i=o}return i}return Gr(t,n,Xa,e)}function Gr(t,n,e,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var u=(n=e(n))!=n,a=null===n,c=Qu(n),f=void 0===n;i<o;){var s=ne((i+o)/2),l=e(t[s]),h=void 0!==l,d=null===l,p=l==l,v=Qu(l);if(u)var g=r||p;else g=f?p&&(r||h):a?p&&h&&(r||!d):c?p&&h&&!d&&(r||!v):!d&&!v&&(r?l<=n:l<n);g?i=s+1:o=s}return ce(o,4294967294)}function Zr(t,n){for(var e=-1,r=t.length,i=0,o=[];++e<r;){var u=t[e],a=n?n(u):u;if(!e||!Ou(a,c)){var c=a;o[i++]=0===u?0:u}}return o}function Kr(t){return"number"==typeof t?t:Qu(t)?NaN:+t}function Qr(t){if("string"==typeof t)return t;if(Pu(t))return pn(t,Qr)+"";if(Qu(t))return Ce?Ce.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Jr(t,n,e){var r=-1,i=hn,o=t.length,u=!0,a=[],c=a;if(e)u=!1,i=dn;else if(o>=200){var f=n?null:Di(t);if(f)return Hn(f);u=!1,i=Pn,c=new Ie}else c=n?[]:a;t:for(;++r<o;){var s=t[r],l=n?n(s):s;if(s=e||0!==s?s:0,u&&l==l){for(var h=c.length;h--;)if(c[h]===l)continue t;n&&c.push(l),a.push(s)}else i(c,l,e)||(c!==a&&c.push(l),a.push(s))}return a}function ti(t,n){return null==(t=yo(t,n=ci(n,t)))||delete t[Eo(Bo(n))]}function ni(t,n,e,r){return Yr(t,n,e(hr(t,n)),r)}function ei(t,n,e,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&n(t[o],o,t););return e?$r(t,r?0:o,r?o+1:i):$r(t,r?o+1:0,r?i:o)}function ri(t,n){var e=t;return e instanceof Re&&(e=e.value()),gn(n,(function(t,n){return n.func.apply(n.thisArg,vn([t],n.args))}),e)}function ii(t,n,e){var i=t.length;if(i<2)return i?Jr(t[0]):[];for(var o=-1,u=r(i);++o<i;)for(var a=t[o],c=-1;++c<i;)c!=o&&(u[o]=tr(u[o]||a,t[c],n,e));return Jr(ur(u,1),n,e)}function oi(t,n,e){for(var r=-1,i=t.length,o=n.length,u={};++r<i;){var a=r<o?n[r]:void 0;e(u,t[r],a)}return u}function ui(t){return Iu(t)?t:[]}function ai(t){return"function"==typeof t?t:Xa}function ci(t,n){return Pu(t)?t:fo(t,n)?[t]:ko(ca(t))}var fi=Fr;function si(t,n,e){var r=t.length;return e=void 0===e?r:e,!n&&e>=r?t:$r(t,n,e)}var li=En||function(t){return Xt.clearTimeout(t)};function hi(t,n){if(n)return t.slice();var e=t.length,r=Lt?Lt(e):new t.constructor(e);return t.copy(r),r}function di(t){var n=new t.constructor(t.byteLength);return new Pt(n).set(new Pt(t)),n}function pi(t,n){var e=n?di(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function vi(t,n){if(t!==n){var e=void 0!==t,r=null===t,i=t==t,o=Qu(t),u=void 0!==n,a=null===n,c=n==n,f=Qu(n);if(!a&&!f&&!o&&t>n||o&&u&&c&&!a&&!f||r&&u&&c||!e&&c||!i)return 1;if(!r&&!o&&!f&&t<n||f&&e&&i&&!r&&!o||a&&e&&i||!u&&i||!c)return-1}return 0}function gi(t,n,e,i){for(var o=-1,u=t.length,a=e.length,c=-1,f=n.length,s=ae(u-a,0),l=r(f+s),h=!i;++c<f;)l[c]=n[c];for(;++o<a;)(h||o<u)&&(l[e[o]]=t[o]);for(;s--;)l[c++]=t[o++];return l}function yi(t,n,e,i){for(var o=-1,u=t.length,a=-1,c=e.length,f=-1,s=n.length,l=ae(u-c,0),h=r(l+s),d=!i;++o<l;)h[o]=t[o];for(var p=o;++f<s;)h[p+f]=n[f];for(;++a<c;)(d||o<u)&&(h[p+e[a]]=t[o++]);return h}function _i(t,n){var e=-1,i=t.length;for(n||(n=r(i));++e<i;)n[e]=t[e];return n}function bi(t,n,e,r){var i=!e;e||(e={});for(var o=-1,u=n.length;++o<u;){var a=n[o],c=r?r(e[a],t[a],a,e,t):void 0;void 0===c&&(c=t[a]),i?We(e,a,c):Ve(e,a,c)}return e}function mi(t,n){return function(e,r){var i=Pu(e)?an:$e,o=n?n():{};return i(e,t,Ki(r,2),o)}}function xi(t){return Fr((function(n,e){var r=-1,i=e.length,o=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&co(e[0],e[1],u)&&(o=i<3?void 0:o,i=1),n=pt(n);++r<i;){var a=e[r];a&&t(n,a,r,o)}return n}))}function wi(t,n){return function(e,r){if(null==e)return e;if(!Lu(e))return t(e,r);for(var i=e.length,o=n?i:-1,u=pt(e);(n?o--:++o<i)&&!1!==r(u[o],o,u););return e}}function Mi(t){return function(n,e,r){for(var i=-1,o=pt(n),u=r(n),a=u.length;a--;){var c=u[t?a:++i];if(!1===e(o[c],c,o))break}return n}}function Ai(t){return function(n){var e=Un(n=ca(n))?Wn(n):void 0,r=e?e[0]:n.charAt(0),i=e?si(e,1).join(""):n.slice(1);return r[t]()+i}}function Si(t){return function(n){return gn(Ua(Ra(n).replace(jt,"")),t,"")}}function ki(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=Oe(t.prototype),r=t.apply(e,n);return Vu(r)?r:e}}function Ei(t){return function(n,e,r){var i=pt(n);if(!Lu(n)){var o=Ki(e,3);n=xa(n),e=function(t){return o(i[t],t,i)}}var u=t(n,e,r);return u>-1?i[o?n[u]:u]:void 0}}function Ci(t){return Hi((function(n){var e=n.length,r=e,i=je.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new yt(o);if(i&&!a&&"wrapper"==Gi(u))var a=new je([],!0)}for(r=a?r:e;++r<e;){var c=Gi(u=n[r]),f="wrapper"==c?Wi(u):void 0;a=f&&so(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?a[Gi(f[0])].apply(a,f[3]):1==u.length&&so(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Pu(r))return a.plant(r).value();for(var i=0,o=e?n[i].apply(this,t):r;++i<e;)o=n[i].call(this,o);return o}}))}function Ti(t,n,e,i,o,u,a,c,f,s){var l=128&n,h=1&n,d=2&n,p=24&n,v=512&n,g=d?void 0:ki(t);return function y(){for(var _=arguments.length,b=r(_),m=_;m--;)b[m]=arguments[m];if(p)var x=Zi(y),w=In(b,x);if(i&&(b=gi(b,i,o,p)),u&&(b=yi(b,u,a,p)),_-=w,p&&_<s){var M=Vn(b,x);return Li(t,n,Ti,y.placeholder,e,b,M,c,f,s-_)}var A=h?e:this,S=d?A[t]:t;return _=b.length,c?b=_o(b,c):v&&_>1&&b.reverse(),l&&f<_&&(b.length=f),this&&this!==Xt&&this instanceof y&&(S=g||ki(S)),S.apply(A,b)}}function Oi(t,n){return function(e,r){return function(t,n,e,r){return fr(t,(function(t,i,o){n(r,e(t),i,o)})),r}(e,t,n(r),{})}}function Ni(t,n){return function(e,r){var i;if(void 0===e&&void 0===r)return n;if(void 0!==e&&(i=e),void 0!==r){if(void 0===i)return r;"string"==typeof e||"string"==typeof r?(e=Qr(e),r=Qr(r)):(e=Kr(e),r=Kr(r)),i=t(e,r)}return i}}function ji(t){return Hi((function(n){return n=pn(n,jn(Ki())),Fr((function(e){var r=this;return t(n,(function(t){return un(t,r,e)}))}))}))}function Ri(t,n){var e=(n=void 0===n?" ":Qr(n)).length;if(e<2)return e?Dr(n,t):n;var r=Dr(n,te(t/Xn(n)));return Un(n)?si(Wn(r),0,t).join(""):r.slice(0,t)}function Pi(t){return function(n,e,i){return i&&"number"!=typeof i&&co(n,e,i)&&(e=i=void 0),n=ra(n),void 0===e?(e=n,n=0):e=ra(e),function(t,n,e,i){for(var o=-1,u=ae(te((n-t)/(e||1)),0),a=r(u);u--;)a[i?u:++o]=t,t+=e;return a}(n,e,i=void 0===i?n<e?1:-1:ra(i),t)}}function zi(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=ua(n),e=ua(e)),t(n,e)}}function Li(t,n,e,r,i,o,u,a,c,f){var s=8&n;n|=s?32:64,4&(n&=~(s?64:32))||(n&=-4);var l=[t,n,i,s?o:void 0,s?u:void 0,s?void 0:o,s?void 0:u,a,c,f],h=e.apply(void 0,l);return so(t)&&mo(h,l),h.placeholder=r,Mo(h,t,n)}function Ii(t){var n=dt[t];return function(t,e){if(t=ua(t),(e=null==e?0:ce(ia(e),292))&&ie(t)){var r=(ca(t)+"e").split("e");return+((r=(ca(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return n(t)}}var Di=ge&&1/Hn(new ge([,-0]))[1]==1/0?function(t){return new ge(t)}:Qa;function Fi(t){return function(n){var e=ro(n);return e==v?Yn(n):e==b?$n(n):function(t,n){return pn(n,(function(n){return[n,t[n]]}))}(n,t(n))}}function Bi(t,n,e,i,a,c,f,s){var l=2&n;if(!l&&"function"!=typeof t)throw new yt(o);var h=i?i.length:0;if(h||(n&=-97,i=a=void 0),f=void 0===f?f:ae(ia(f),0),s=void 0===s?s:ia(s),h-=a?a.length:0,64&n){var d=i,p=a;i=a=void 0}var v=l?void 0:Wi(t),g=[t,n,e,i,a,d,p,c,f,s];if(v&&function(t,n){var e=t[1],r=n[1],i=e|r,o=i<131,a=128==r&&8==e||128==r&&256==e&&t[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==e;if(!o&&!a)return t;1&r&&(t[2]=n[2],i|=1&e?0:4);var c=n[3];if(c){var f=t[3];t[3]=f?gi(f,c,n[4]):c,t[4]=f?Vn(t[3],u):n[4]}(c=n[5])&&(f=t[5],t[5]=f?yi(f,c,n[6]):c,t[6]=f?Vn(t[5],u):n[6]);(c=n[7])&&(t[7]=c);128&r&&(t[8]=null==t[8]?n[8]:ce(t[8],n[8]));null==t[9]&&(t[9]=n[9]);t[0]=n[0],t[1]=i}(g,v),t=g[0],n=g[1],e=g[2],i=g[3],a=g[4],!(s=g[9]=void 0===g[9]?l?0:t.length:ae(g[9]-h,0))&&24&n&&(n&=-25),n&&1!=n)y=8==n||16==n?function(t,n,e){var i=ki(t);return function o(){for(var u=arguments.length,a=r(u),c=u,f=Zi(o);c--;)a[c]=arguments[c];var s=u<3&&a[0]!==f&&a[u-1]!==f?[]:Vn(a,f);if((u-=s.length)<e)return Li(t,n,Ti,o.placeholder,void 0,a,s,void 0,void 0,e-u);var l=this&&this!==Xt&&this instanceof o?i:t;return un(l,this,a)}}(t,n,s):32!=n&&33!=n||a.length?Ti.apply(void 0,g):function(t,n,e,i){var o=1&n,u=ki(t);return function n(){for(var a=-1,c=arguments.length,f=-1,s=i.length,l=r(s+c),h=this&&this!==Xt&&this instanceof n?u:t;++f<s;)l[f]=i[f];for(;c--;)l[f++]=arguments[++a];return un(h,o?e:this,l)}}(t,n,e,i);else var y=function(t,n,e){var r=1&n,i=ki(t);return function n(){var o=this&&this!==Xt&&this instanceof n?i:t;return o.apply(r?e:this,arguments)}}(t,n,e);return Mo((v?qr:mo)(y,g),t,n)}function Ui(t,n,e,r){return void 0===t||Ou(t,mt[e])&&!Mt.call(r,e)?n:t}function Yi(t,n,e,r,i,o){return Vu(t)&&Vu(n)&&(o.set(n,t),Nr(t,n,void 0,Yi,o),o.delete(n)),t}function qi(t){return Wu(t)?void 0:t}function Vi(t,n,e,r,i,o){var u=1&e,a=t.length,c=n.length;if(a!=c&&!(u&&c>a))return!1;var f=o.get(t),s=o.get(n);if(f&&s)return f==n&&s==t;var l=-1,h=!0,d=2&e?new Ie:void 0;for(o.set(t,n),o.set(n,t);++l<a;){var p=t[l],v=n[l];if(r)var g=u?r(v,p,l,n,t,o):r(p,v,l,t,n,o);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!_n(n,(function(t,n){if(!Pn(d,n)&&(p===t||i(p,t,e,r,o)))return d.push(n)}))){h=!1;break}}else if(p!==v&&!i(p,v,e,r,o)){h=!1;break}}return o.delete(t),o.delete(n),h}function Hi(t){return wo(go(t,void 0,zo),t+"")}function $i(t){return dr(t,xa,no)}function Xi(t){return dr(t,wa,eo)}var Wi=be?function(t){return be.get(t)}:Qa;function Gi(t){for(var n=t.name+"",e=me[n],r=Mt.call(me,n)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function Zi(t){return(Mt.call(Te,"placeholder")?Te:t).placeholder}function Ki(){var t=Te.iteratee||Wa;return t=t===Wa?Ar:t,arguments.length?t(arguments[0],arguments[1]):t}function Qi(t,n){var e,r,i=t.__data__;return("string"==(r=typeof(e=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?i["string"==typeof n?"string":"hash"]:i.map}function Ji(t){for(var n=xa(t),e=n.length;e--;){var r=n[e],i=t[r];n[e]=[r,i,po(i)]}return n}function to(t,n){var e=function(t,n){return null==t?void 0:t[n]}(t,n);return Mr(e)?e:void 0}var no=ee?function(t){return null==t?[]:(t=pt(t),ln(ee(t),(function(n){return $t.call(t,n)})))}:oc,eo=ee?function(t){for(var n=[];t;)vn(n,no(t)),t=Yt(t);return n}:oc,ro=pr;function io(t,n,e){for(var r=-1,i=(n=ci(n,t)).length,o=!1;++r<i;){var u=Eo(n[r]);if(!(o=null!=t&&e(t,u)))break;t=t[u]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&qu(i)&&ao(u,i)&&(Pu(t)||Ru(t))}function oo(t){return"function"!=typeof t.constructor||ho(t)?{}:Oe(Yt(t))}function uo(t){return Pu(t)||Ru(t)||!!(Gt&&t&&t[Gt])}function ao(t,n){var e=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==e||"symbol"!=e&&ct.test(t))&&t>-1&&t%1==0&&t<n}function co(t,n,e){if(!Vu(e))return!1;var r=typeof n;return!!("number"==r?Lu(e)&&ao(n,e.length):"string"==r&&n in e)&&Ou(e[n],t)}function fo(t,n){if(Pu(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Qu(t))||(V.test(t)||!q.test(t)||null!=n&&t in pt(n))}function so(t){var n=Gi(t),e=Te[n];if("function"!=typeof e||!(n in Re.prototype))return!1;if(t===e)return!0;var r=Wi(e);return!!r&&t===r[0]}(de&&ro(new de(new ArrayBuffer(1)))!=A||pe&&ro(new pe)!=v||ve&&"[object Promise]"!=ro(ve.resolve())||ge&&ro(new ge)!=b||ye&&ro(new ye)!=w)&&(ro=function(t){var n=pr(t),e=n==y?t.constructor:void 0,r=e?Co(e):"";if(r)switch(r){case xe:return A;case we:return v;case Me:return"[object Promise]";case Ae:return b;case Se:return w}return n});var lo=xt?Uu:uc;function ho(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||mt)}function po(t){return t==t&&!Vu(t)}function vo(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in pt(e)))}}function go(t,n,e){return n=ae(void 0===n?t.length-1:n,0),function(){for(var i=arguments,o=-1,u=ae(i.length-n,0),a=r(u);++o<u;)a[o]=i[n+o];o=-1;for(var c=r(n+1);++o<n;)c[o]=i[o];return c[n]=e(a),un(t,this,c)}}function yo(t,n){return n.length<2?t:hr(t,$r(n,0,-1))}function _o(t,n){for(var e=t.length,r=ce(n.length,e),i=_i(t);r--;){var o=n[r];t[r]=ao(o,e)?i[o]:void 0}return t}function bo(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var mo=Ao(qr),xo=Jn||function(t,n){return Xt.setTimeout(t,n)},wo=Ao(Vr);function Mo(t,n,e){var r=n+"";return wo(t,function(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Z,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return cn(a,(function(e){var r="_."+e[0];n&e[1]&&!hn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(K);return n?n[1].split(Q):[]}(r),e)))}function Ao(t){var n=0,e=0;return function(){var r=fe(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function So(t,n){var e=-1,r=t.length,i=r-1;for(n=void 0===n?r:n;++e<n;){var o=Ir(e,i),u=t[o];t[o]=t[e],t[e]=u}return t.length=n,t}var ko=function(t){var n=Au(t,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(H,(function(t,e,r,i){n.push(r?i.replace(nt,"$1"):e||t)})),n}));function Eo(t){if("string"==typeof t||Qu(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function Co(t){if(null!=t){try{return wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function To(t){if(t instanceof Re)return t.clone();var n=new je(t.__wrapped__,t.__chain__);return n.__actions__=_i(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}var Oo=Fr((function(t,n){return Iu(t)?tr(t,ur(n,1,Iu,!0)):[]})),No=Fr((function(t,n){var e=Bo(n);return Iu(e)&&(e=void 0),Iu(t)?tr(t,ur(n,1,Iu,!0),Ki(e,2)):[]})),jo=Fr((function(t,n){var e=Bo(n);return Iu(e)&&(e=void 0),Iu(t)?tr(t,ur(n,1,Iu,!0),void 0,e):[]}));function Ro(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ia(e);return i<0&&(i=ae(r+i,0)),xn(t,Ki(n,3),i)}function Po(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==e&&(i=ia(e),i=e<0?ae(r+i,0):ce(i,r-1)),xn(t,Ki(n,3),i,!0)}function zo(t){return(null==t?0:t.length)?ur(t,1):[]}function Lo(t){return t&&t.length?t[0]:void 0}var Io=Fr((function(t){var n=pn(t,ui);return n.length&&n[0]===t[0]?_r(n):[]})),Do=Fr((function(t){var n=Bo(t),e=pn(t,ui);return n===Bo(e)?n=void 0:e.pop(),e.length&&e[0]===t[0]?_r(e,Ki(n,2)):[]})),Fo=Fr((function(t){var n=Bo(t),e=pn(t,ui);return(n="function"==typeof n?n:void 0)&&e.pop(),e.length&&e[0]===t[0]?_r(e,void 0,n):[]}));function Bo(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}var Uo=Fr(Yo);function Yo(t,n){return t&&t.length&&n&&n.length?zr(t,n):t}var qo=Hi((function(t,n){var e=null==t?0:t.length,r=Ge(t,n);return Lr(t,pn(n,(function(t){return ao(t,e)?+t:t})).sort(vi)),r}));function Vo(t){return null==t?t:he.call(t)}var Ho=Fr((function(t){return Jr(ur(t,1,Iu,!0))})),$o=Fr((function(t){var n=Bo(t);return Iu(n)&&(n=void 0),Jr(ur(t,1,Iu,!0),Ki(n,2))})),Xo=Fr((function(t){var n=Bo(t);return n="function"==typeof n?n:void 0,Jr(ur(t,1,Iu,!0),void 0,n)}));function Wo(t){if(!t||!t.length)return[];var n=0;return t=ln(t,(function(t){if(Iu(t))return n=ae(t.length,n),!0})),On(n,(function(n){return pn(t,kn(n))}))}function Go(t,n){if(!t||!t.length)return[];var e=Wo(t);return null==n?e:pn(e,(function(t){return un(n,void 0,t)}))}var Zo=Fr((function(t,n){return Iu(t)?tr(t,n):[]})),Ko=Fr((function(t){return ii(ln(t,Iu))})),Qo=Fr((function(t){var n=Bo(t);return Iu(n)&&(n=void 0),ii(ln(t,Iu),Ki(n,2))})),Jo=Fr((function(t){var n=Bo(t);return n="function"==typeof n?n:void 0,ii(ln(t,Iu),void 0,n)})),tu=Fr(Wo);var nu=Fr((function(t){var n=t.length,e=n>1?t[n-1]:void 0;return e="function"==typeof e?(t.pop(),e):void 0,Go(t,e)}));function eu(t){var n=Te(t);return n.__chain__=!0,n}function ru(t,n){return n(t)}var iu=Hi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return Ge(n,t)};return!(n>1||this.__actions__.length)&&r instanceof Re&&ao(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:ru,args:[i],thisArg:void 0}),new je(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ou=mi((function(t,n,e){Mt.call(t,e)?++t[e]:We(t,e,1)}));var uu=Ei(Ro),au=Ei(Po);function cu(t,n){return(Pu(t)?cn:nr)(t,Ki(n,3))}function fu(t,n){return(Pu(t)?fn:er)(t,Ki(n,3))}var su=mi((function(t,n,e){Mt.call(t,e)?t[e].push(n):We(t,e,[n])}));var lu=Fr((function(t,n,e){var i=-1,o="function"==typeof n,u=Lu(t)?r(t.length):[];return nr(t,(function(t){u[++i]=o?un(n,t,e):br(t,n,e)})),u})),hu=mi((function(t,n,e){We(t,e,n)}));function du(t,n){return(Pu(t)?pn:Cr)(t,Ki(n,3))}var pu=mi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]}));var vu=Fr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&co(t,n[0],n[1])?n=[]:e>2&&co(n[0],n[1],n[2])&&(n=[n[0]]),Rr(t,ur(n,1),[])})),gu=Qn||function(){return Xt.Date.now()};function yu(t,n,e){return n=e?void 0:n,Bi(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function _u(t,n){var e;if("function"!=typeof n)throw new yt(o);return t=ia(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=void 0),e}}var bu=Fr((function(t,n,e){var r=1;if(e.length){var i=Vn(e,Zi(bu));r|=32}return Bi(t,r,n,e,i)})),mu=Fr((function(t,n,e){var r=3;if(e.length){var i=Vn(e,Zi(mu));r|=32}return Bi(n,r,t,e,i)}));function xu(t,n,e){var r,i,u,a,c,f,s=0,l=!1,h=!1,d=!0;if("function"!=typeof t)throw new yt(o);function p(n){var e=r,o=i;return r=i=void 0,s=n,a=t.apply(o,e)}function v(t){return s=t,c=xo(y,n),l?p(t):a}function g(t){var e=t-f;return void 0===f||e>=n||e<0||h&&t-s>=u}function y(){var t=gu();if(g(t))return _(t);c=xo(y,function(t){var e=n-(t-f);return h?ce(e,u-(t-s)):e}(t))}function _(t){return c=void 0,d&&r?p(t):(r=i=void 0,a)}function b(){var t=gu(),e=g(t);if(r=arguments,i=this,f=t,e){if(void 0===c)return v(f);if(h)return li(c),c=xo(y,n),p(f)}return void 0===c&&(c=xo(y,n)),a}return n=ua(n)||0,Vu(e)&&(l=!!e.leading,u=(h="maxWait"in e)?ae(ua(e.maxWait)||0,n):u,d="trailing"in e?!!e.trailing:d),b.cancel=function(){void 0!==c&&li(c),s=0,r=f=i=c=void 0},b.flush=function(){return void 0===c?a:_(gu())},b}var wu=Fr((function(t,n){return Je(t,1,n)})),Mu=Fr((function(t,n,e){return Je(t,ua(n)||0,e)}));function Au(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(o);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(Au.Cache||Le),e}function Su(t){if("function"!=typeof t)throw new yt(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Au.Cache=Le;var ku=fi((function(t,n){var e=(n=1==n.length&&Pu(n[0])?pn(n[0],jn(Ki())):pn(ur(n,1),jn(Ki()))).length;return Fr((function(r){for(var i=-1,o=ce(r.length,e);++i<o;)r[i]=n[i].call(this,r[i]);return un(t,this,r)}))})),Eu=Fr((function(t,n){return Bi(t,32,void 0,n,Vn(n,Zi(Eu)))})),Cu=Fr((function(t,n){return Bi(t,64,void 0,n,Vn(n,Zi(Cu)))})),Tu=Hi((function(t,n){return Bi(t,256,void 0,void 0,void 0,n)}));function Ou(t,n){return t===n||t!=t&&n!=n}var Nu=zi(vr),ju=zi((function(t,n){return t>=n})),Ru=mr(function(){return arguments}())?mr:function(t){return Hu(t)&&Mt.call(t,"callee")&&!$t.call(t,"callee")},Pu=r.isArray,zu=Jt?jn(Jt):function(t){return Hu(t)&&pr(t)==M};function Lu(t){return null!=t&&qu(t.length)&&!Uu(t)}function Iu(t){return Hu(t)&&Lu(t)}var Du=re||uc,Fu=tn?jn(tn):function(t){return Hu(t)&&pr(t)==l};function Bu(t){if(!Hu(t))return!1;var n=pr(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Wu(t)}function Uu(t){if(!Vu(t))return!1;var n=pr(t);return n==d||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Yu(t){return"number"==typeof t&&t==ia(t)}function qu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Hu(t){return null!=t&&"object"==typeof t}var $u=nn?jn(nn):function(t){return Hu(t)&&ro(t)==v};function Xu(t){return"number"==typeof t||Hu(t)&&pr(t)==g}function Wu(t){if(!Hu(t)||pr(t)!=y)return!1;var n=Yt(t);if(null===n)return!0;var e=Mt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&wt.call(e)==Et}var Gu=en?jn(en):function(t){return Hu(t)&&pr(t)==_};var Zu=rn?jn(rn):function(t){return Hu(t)&&ro(t)==b};function Ku(t){return"string"==typeof t||!Pu(t)&&Hu(t)&&pr(t)==m}function Qu(t){return"symbol"==typeof t||Hu(t)&&pr(t)==x}var Ju=on?jn(on):function(t){return Hu(t)&&qu(t.length)&&!!Bt[pr(t)]};var ta=zi(Er),na=zi((function(t,n){return t<=n}));function ea(t){if(!t)return[];if(Lu(t))return Ku(t)?Wn(t):_i(t);if(Kt&&t[Kt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Kt]());var n=ro(t);return(n==v?Yn:n==b?Hn:Oa)(t)}function ra(t){return t?(t=ua(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var n=ra(t),e=n%1;return n==n?e?n-e:n:0}function oa(t){return t?Ze(ia(t),0,4294967295):0}function ua(t){if("number"==typeof t)return t;if(Qu(t))return NaN;if(Vu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Vu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Nn(t);var e=ot.test(t);return e||at.test(t)?Vt(t.slice(2),e?2:8):it.test(t)?NaN:+t}function aa(t){return bi(t,wa(t))}function ca(t){return null==t?"":Qr(t)}var fa=xi((function(t,n){if(ho(n)||Lu(n))bi(n,xa(n),t);else for(var e in n)Mt.call(n,e)&&Ve(t,e,n[e])})),sa=xi((function(t,n){bi(n,wa(n),t)})),la=xi((function(t,n,e,r){bi(n,wa(n),t,r)})),ha=xi((function(t,n,e,r){bi(n,xa(n),t,r)})),da=Hi(Ge);var pa=Fr((function(t,n){t=pt(t);var e=-1,r=n.length,i=r>2?n[2]:void 0;for(i&&co(n[0],n[1],i)&&(r=1);++e<r;)for(var o=n[e],u=wa(o),a=-1,c=u.length;++a<c;){var f=u[a],s=t[f];(void 0===s||Ou(s,mt[f])&&!Mt.call(t,f))&&(t[f]=o[f])}return t})),va=Fr((function(t){return t.push(void 0,Yi),un(Aa,void 0,t)}));function ga(t,n,e){var r=null==t?void 0:hr(t,n);return void 0===r?e:r}function ya(t,n){return null!=t&&io(t,n,yr)}var _a=Oi((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=kt.call(n)),t[n]=e}),Va(Xa)),ba=Oi((function(t,n,e){null!=n&&"function"!=typeof n.toString&&(n=kt.call(n)),Mt.call(t,n)?t[n].push(e):t[n]=[e]}),Ki),ma=Fr(br);function xa(t){return Lu(t)?Fe(t):Sr(t)}function wa(t){return Lu(t)?Fe(t,!0):kr(t)}var Ma=xi((function(t,n,e){Nr(t,n,e)})),Aa=xi((function(t,n,e,r){Nr(t,n,e,r)})),Sa=Hi((function(t,n){var e={};if(null==t)return e;var r=!1;n=pn(n,(function(n){return n=ci(n,t),r||(r=n.length>1),n})),bi(t,Xi(t),e),r&&(e=Ke(e,7,qi));for(var i=n.length;i--;)ti(e,n[i]);return e}));var ka=Hi((function(t,n){return null==t?{}:function(t,n){return Pr(t,n,(function(n,e){return ya(t,e)}))}(t,n)}));function Ea(t,n){if(null==t)return{};var e=pn(Xi(t),(function(t){return[t]}));return n=Ki(n),Pr(t,e,(function(t,e){return n(t,e[0])}))}var Ca=Fi(xa),Ta=Fi(wa);function Oa(t){return null==t?[]:Rn(t,xa(t))}var Na=Si((function(t,n,e){return n=n.toLowerCase(),t+(e?ja(n):n)}));function ja(t){return Ba(ca(t).toLowerCase())}function Ra(t){return(t=ca(t))&&t.replace(ft,Dn).replace(Rt,"")}var Pa=Si((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),za=Si((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),La=Ai("toLowerCase");var Ia=Si((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}));var Da=Si((function(t,n,e){return t+(e?" ":"")+Ba(n)}));var Fa=Si((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Ba=Ai("toUpperCase");function Ua(t,n,e){return t=ca(t),void 0===(n=e?void 0:n)?function(t){return It.test(t)}(t)?function(t){return t.match(zt)||[]}(t):function(t){return t.match(J)||[]}(t):t.match(n)||[]}var Ya=Fr((function(t,n){try{return un(t,void 0,n)}catch(t){return Bu(t)?t:new G(t)}})),qa=Hi((function(t,n){return cn(n,(function(n){n=Eo(n),We(t,n,bu(t[n],t))})),t}));function Va(t){return function(){return t}}var Ha=Ci(),$a=Ci(!0);function Xa(t){return t}function Wa(t){return Ar("function"==typeof t?t:Ke(t,1))}var Ga=Fr((function(t,n){return function(e){return br(e,t,n)}})),Za=Fr((function(t,n){return function(e){return br(t,e,n)}}));function Ka(t,n,e){var r=xa(n),i=lr(n,r);null!=e||Vu(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=lr(n,xa(n)));var o=!(Vu(e)&&"chain"in e&&!e.chain),u=Uu(t);return cn(i,(function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__),i=e.__actions__=_i(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,vn([this.value()],arguments))})})),t}function Qa(){}var Ja=ji(pn),tc=ji(sn),nc=ji(_n);function ec(t){return fo(t)?kn(Eo(t)):function(t){return function(n){return hr(n,t)}}(t)}var rc=Pi(),ic=Pi(!0);function oc(){return[]}function uc(){return!1}var ac=Ni((function(t,n){return t+n}),0),cc=Ii("ceil"),fc=Ni((function(t,n){return t/n}),1),sc=Ii("floor");var lc,hc=Ni((function(t,n){return t*n}),1),dc=Ii("round"),pc=Ni((function(t,n){return t-n}),0);return Te.after=function(t,n){if("function"!=typeof n)throw new yt(o);return t=ia(t),function(){if(--t<1)return n.apply(this,arguments)}},Te.ary=yu,Te.assign=fa,Te.assignIn=sa,Te.assignInWith=la,Te.assignWith=ha,Te.at=da,Te.before=_u,Te.bind=bu,Te.bindAll=qa,Te.bindKey=mu,Te.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Pu(t)?t:[t]},Te.chain=eu,Te.chunk=function(t,n,e){n=(e?co(t,n,e):void 0===n)?1:ae(ia(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,u=0,a=r(te(i/n));o<i;)a[u++]=$r(t,o,o+=n);return a},Te.compact=function(t){for(var n=-1,e=null==t?0:t.length,r=0,i=[];++n<e;){var o=t[n];o&&(i[r++]=o)}return i},Te.concat=function(){var t=arguments.length;if(!t)return[];for(var n=r(t-1),e=arguments[0],i=t;i--;)n[i-1]=arguments[i];return vn(Pu(e)?_i(e):[e],ur(n,1))},Te.cond=function(t){var n=null==t?0:t.length,e=Ki();return t=n?pn(t,(function(t){if("function"!=typeof t[1])throw new yt(o);return[e(t[0]),t[1]]})):[],Fr((function(e){for(var r=-1;++r<n;){var i=t[r];if(un(i[0],this,e))return un(i[1],this,e)}}))},Te.conforms=function(t){return function(t){var n=xa(t);return function(e){return Qe(e,t,n)}}(Ke(t,1))},Te.constant=Va,Te.countBy=ou,Te.create=function(t,n){var e=Oe(t);return null==n?e:Xe(e,n)},Te.curry=function t(n,e,r){var i=Bi(n,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return i.placeholder=t.placeholder,i},Te.curryRight=function t(n,e,r){var i=Bi(n,16,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return i.placeholder=t.placeholder,i},Te.debounce=xu,Te.defaults=pa,Te.defaultsDeep=va,Te.defer=wu,Te.delay=Mu,Te.difference=Oo,Te.differenceBy=No,Te.differenceWith=jo,Te.drop=function(t,n,e){var r=null==t?0:t.length;return r?$r(t,(n=e||void 0===n?1:ia(n))<0?0:n,r):[]},Te.dropRight=function(t,n,e){var r=null==t?0:t.length;return r?$r(t,0,(n=r-(n=e||void 0===n?1:ia(n)))<0?0:n):[]},Te.dropRightWhile=function(t,n){return t&&t.length?ei(t,Ki(n,3),!0,!0):[]},Te.dropWhile=function(t,n){return t&&t.length?ei(t,Ki(n,3),!0):[]},Te.fill=function(t,n,e,r){var i=null==t?0:t.length;return i?(e&&"number"!=typeof e&&co(t,n,e)&&(e=0,r=i),function(t,n,e,r){var i=t.length;for((e=ia(e))<0&&(e=-e>i?0:i+e),(r=void 0===r||r>i?i:ia(r))<0&&(r+=i),r=e>r?0:oa(r);e<r;)t[e++]=n;return t}(t,n,e,r)):[]},Te.filter=function(t,n){return(Pu(t)?ln:or)(t,Ki(n,3))},Te.flatMap=function(t,n){return ur(du(t,n),1)},Te.flatMapDeep=function(t,n){return ur(du(t,n),1/0)},Te.flatMapDepth=function(t,n,e){return e=void 0===e?1:ia(e),ur(du(t,n),e)},Te.flatten=zo,Te.flattenDeep=function(t){return(null==t?0:t.length)?ur(t,1/0):[]},Te.flattenDepth=function(t,n){return(null==t?0:t.length)?ur(t,n=void 0===n?1:ia(n)):[]},Te.flip=function(t){return Bi(t,512)},Te.flow=Ha,Te.flowRight=$a,Te.fromPairs=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r},Te.functions=function(t){return null==t?[]:lr(t,xa(t))},Te.functionsIn=function(t){return null==t?[]:lr(t,wa(t))},Te.groupBy=su,Te.initial=function(t){return(null==t?0:t.length)?$r(t,0,-1):[]},Te.intersection=Io,Te.intersectionBy=Do,Te.intersectionWith=Fo,Te.invert=_a,Te.invertBy=ba,Te.invokeMap=lu,Te.iteratee=Wa,Te.keyBy=hu,Te.keys=xa,Te.keysIn=wa,Te.map=du,Te.mapKeys=function(t,n){var e={};return n=Ki(n,3),fr(t,(function(t,r,i){We(e,n(t,r,i),t)})),e},Te.mapValues=function(t,n){var e={};return n=Ki(n,3),fr(t,(function(t,r,i){We(e,r,n(t,r,i))})),e},Te.matches=function(t){return Tr(Ke(t,1))},Te.matchesProperty=function(t,n){return Or(t,Ke(n,1))},Te.memoize=Au,Te.merge=Ma,Te.mergeWith=Aa,Te.method=Ga,Te.methodOf=Za,Te.mixin=Ka,Te.negate=Su,Te.nthArg=function(t){return t=ia(t),Fr((function(n){return jr(n,t)}))},Te.omit=Sa,Te.omitBy=function(t,n){return Ea(t,Su(Ki(n)))},Te.once=function(t){return _u(2,t)},Te.orderBy=function(t,n,e,r){return null==t?[]:(Pu(n)||(n=null==n?[]:[n]),Pu(e=r?void 0:e)||(e=null==e?[]:[e]),Rr(t,n,e))},Te.over=Ja,Te.overArgs=ku,Te.overEvery=tc,Te.overSome=nc,Te.partial=Eu,Te.partialRight=Cu,Te.partition=pu,Te.pick=ka,Te.pickBy=Ea,Te.property=ec,Te.propertyOf=function(t){return function(n){return null==t?void 0:hr(t,n)}},Te.pull=Uo,Te.pullAll=Yo,Te.pullAllBy=function(t,n,e){return t&&t.length&&n&&n.length?zr(t,n,Ki(e,2)):t},Te.pullAllWith=function(t,n,e){return t&&t.length&&n&&n.length?zr(t,n,void 0,e):t},Te.pullAt=qo,Te.range=rc,Te.rangeRight=ic,Te.rearg=Tu,Te.reject=function(t,n){return(Pu(t)?ln:or)(t,Su(Ki(n,3)))},Te.remove=function(t,n){var e=[];if(!t||!t.length)return e;var r=-1,i=[],o=t.length;for(n=Ki(n,3);++r<o;){var u=t[r];n(u,r,t)&&(e.push(u),i.push(r))}return Lr(t,i),e},Te.rest=function(t,n){if("function"!=typeof t)throw new yt(o);return Fr(t,n=void 0===n?n:ia(n))},Te.reverse=Vo,Te.sampleSize=function(t,n,e){return n=(e?co(t,n,e):void 0===n)?1:ia(n),(Pu(t)?Ue:Ur)(t,n)},Te.set=function(t,n,e){return null==t?t:Yr(t,n,e)},Te.setWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:Yr(t,n,e,r)},Te.shuffle=function(t){return(Pu(t)?Ye:Hr)(t)},Te.slice=function(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&co(t,n,e)?(n=0,e=r):(n=null==n?0:ia(n),e=void 0===e?r:ia(e)),$r(t,n,e)):[]},Te.sortBy=vu,Te.sortedUniq=function(t){return t&&t.length?Zr(t):[]},Te.sortedUniqBy=function(t,n){return t&&t.length?Zr(t,Ki(n,2)):[]},Te.split=function(t,n,e){return e&&"number"!=typeof e&&co(t,n,e)&&(n=e=void 0),(e=void 0===e?4294967295:e>>>0)?(t=ca(t))&&("string"==typeof n||null!=n&&!Gu(n))&&!(n=Qr(n))&&Un(t)?si(Wn(t),0,e):t.split(n,e):[]},Te.spread=function(t,n){if("function"!=typeof t)throw new yt(o);return n=null==n?0:ae(ia(n),0),Fr((function(e){var r=e[n],i=si(e,0,n);return r&&vn(i,r),un(t,this,i)}))},Te.tail=function(t){var n=null==t?0:t.length;return n?$r(t,1,n):[]},Te.take=function(t,n,e){return t&&t.length?$r(t,0,(n=e||void 0===n?1:ia(n))<0?0:n):[]},Te.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?$r(t,(n=r-(n=e||void 0===n?1:ia(n)))<0?0:n,r):[]},Te.takeRightWhile=function(t,n){return t&&t.length?ei(t,Ki(n,3),!1,!0):[]},Te.takeWhile=function(t,n){return t&&t.length?ei(t,Ki(n,3)):[]},Te.tap=function(t,n){return n(t),t},Te.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Vu(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),xu(t,n,{leading:r,maxWait:n,trailing:i})},Te.thru=ru,Te.toArray=ea,Te.toPairs=Ca,Te.toPairsIn=Ta,Te.toPath=function(t){return Pu(t)?pn(t,Eo):Qu(t)?[t]:_i(ko(ca(t)))},Te.toPlainObject=aa,Te.transform=function(t,n,e){var r=Pu(t),i=r||Du(t)||Ju(t);if(n=Ki(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Vu(t)&&Uu(o)?Oe(Yt(t)):{}}return(i?cn:fr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Te.unary=function(t){return yu(t,1)},Te.union=Ho,Te.unionBy=$o,Te.unionWith=Xo,Te.uniq=function(t){return t&&t.length?Jr(t):[]},Te.uniqBy=function(t,n){return t&&t.length?Jr(t,Ki(n,2)):[]},Te.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Jr(t,void 0,n):[]},Te.unset=function(t,n){return null==t||ti(t,n)},Te.unzip=Wo,Te.unzipWith=Go,Te.update=function(t,n,e){return null==t?t:ni(t,n,ai(e))},Te.updateWith=function(t,n,e,r){return r="function"==typeof r?r:void 0,null==t?t:ni(t,n,ai(e),r)},Te.values=Oa,Te.valuesIn=function(t){return null==t?[]:Rn(t,wa(t))},Te.without=Zo,Te.words=Ua,Te.wrap=function(t,n){return Eu(ai(n),t)},Te.xor=Ko,Te.xorBy=Qo,Te.xorWith=Jo,Te.zip=tu,Te.zipObject=function(t,n){return oi(t||[],n||[],Ve)},Te.zipObjectDeep=function(t,n){return oi(t||[],n||[],Yr)},Te.zipWith=nu,Te.entries=Ca,Te.entriesIn=Ta,Te.extend=sa,Te.extendWith=la,Ka(Te,Te),Te.add=ac,Te.attempt=Ya,Te.camelCase=Na,Te.capitalize=ja,Te.ceil=cc,Te.clamp=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=ua(e))==e?e:0),void 0!==n&&(n=(n=ua(n))==n?n:0),Ze(ua(t),n,e)},Te.clone=function(t){return Ke(t,4)},Te.cloneDeep=function(t){return Ke(t,5)},Te.cloneDeepWith=function(t,n){return Ke(t,5,n="function"==typeof n?n:void 0)},Te.cloneWith=function(t,n){return Ke(t,4,n="function"==typeof n?n:void 0)},Te.conformsTo=function(t,n){return null==n||Qe(t,n,xa(n))},Te.deburr=Ra,Te.defaultTo=function(t,n){return null==t||t!=t?n:t},Te.divide=fc,Te.endsWith=function(t,n,e){t=ca(t),n=Qr(n);var r=t.length,i=e=void 0===e?r:Ze(ia(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},Te.eq=Ou,Te.escape=function(t){return(t=ca(t))&&F.test(t)?t.replace(I,Fn):t},Te.escapeRegExp=function(t){return(t=ca(t))&&X.test(t)?t.replace($,"\\$&"):t},Te.every=function(t,n,e){var r=Pu(t)?sn:rr;return e&&co(t,n,e)&&(n=void 0),r(t,Ki(n,3))},Te.find=uu,Te.findIndex=Ro,Te.findKey=function(t,n){return mn(t,Ki(n,3),fr)},Te.findLast=au,Te.findLastIndex=Po,Te.findLastKey=function(t,n){return mn(t,Ki(n,3),sr)},Te.floor=sc,Te.forEach=cu,Te.forEachRight=fu,Te.forIn=function(t,n){return null==t?t:ar(t,Ki(n,3),wa)},Te.forInRight=function(t,n){return null==t?t:cr(t,Ki(n,3),wa)},Te.forOwn=function(t,n){return t&&fr(t,Ki(n,3))},Te.forOwnRight=function(t,n){return t&&sr(t,Ki(n,3))},Te.get=ga,Te.gt=Nu,Te.gte=ju,Te.has=function(t,n){return null!=t&&io(t,n,gr)},Te.hasIn=ya,Te.head=Lo,Te.identity=Xa,Te.includes=function(t,n,e,r){t=Lu(t)?t:Oa(t),e=e&&!r?ia(e):0;var i=t.length;return e<0&&(e=ae(i+e,0)),Ku(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&wn(t,n,e)>-1},Te.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ia(e);return i<0&&(i=ae(r+i,0)),wn(t,n,i)},Te.inRange=function(t,n,e){return n=ra(n),void 0===e?(e=n,n=0):e=ra(e),function(t,n,e){return t>=ce(n,e)&&t<ae(n,e)}(t=ua(t),n,e)},Te.invoke=ma,Te.isArguments=Ru,Te.isArray=Pu,Te.isArrayBuffer=zu,Te.isArrayLike=Lu,Te.isArrayLikeObject=Iu,Te.isBoolean=function(t){return!0===t||!1===t||Hu(t)&&pr(t)==s},Te.isBuffer=Du,Te.isDate=Fu,Te.isElement=function(t){return Hu(t)&&1===t.nodeType&&!Wu(t)},Te.isEmpty=function(t){if(null==t)return!0;if(Lu(t)&&(Pu(t)||"string"==typeof t||"function"==typeof t.splice||Du(t)||Ju(t)||Ru(t)))return!t.length;var n=ro(t);if(n==v||n==b)return!t.size;if(ho(t))return!Sr(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},Te.isEqual=function(t,n){return xr(t,n)},Te.isEqualWith=function(t,n,e){var r=(e="function"==typeof e?e:void 0)?e(t,n):void 0;return void 0===r?xr(t,n,void 0,e):!!r},Te.isError=Bu,Te.isFinite=function(t){return"number"==typeof t&&ie(t)},Te.isFunction=Uu,Te.isInteger=Yu,Te.isLength=qu,Te.isMap=$u,Te.isMatch=function(t,n){return t===n||wr(t,n,Ji(n))},Te.isMatchWith=function(t,n,e){return e="function"==typeof e?e:void 0,wr(t,n,Ji(n),e)},Te.isNaN=function(t){return Xu(t)&&t!=+t},Te.isNative=function(t){if(lo(t))throw new G("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(t)},Te.isNil=function(t){return null==t},Te.isNull=function(t){return null===t},Te.isNumber=Xu,Te.isObject=Vu,Te.isObjectLike=Hu,Te.isPlainObject=Wu,Te.isRegExp=Gu,Te.isSafeInteger=function(t){return Yu(t)&&t>=-9007199254740991&&t<=9007199254740991},Te.isSet=Zu,Te.isString=Ku,Te.isSymbol=Qu,Te.isTypedArray=Ju,Te.isUndefined=function(t){return void 0===t},Te.isWeakMap=function(t){return Hu(t)&&ro(t)==w},Te.isWeakSet=function(t){return Hu(t)&&"[object WeakSet]"==pr(t)},Te.join=function(t,n){return null==t?"":oe.call(t,n)},Te.kebabCase=Pa,Te.last=Bo,Te.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==e&&(i=(i=ia(e))<0?ae(r+i,0):ce(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):xn(t,An,i,!0)},Te.lowerCase=za,Te.lowerFirst=La,Te.lt=ta,Te.lte=na,Te.max=function(t){return t&&t.length?ir(t,Xa,vr):void 0},Te.maxBy=function(t,n){return t&&t.length?ir(t,Ki(n,2),vr):void 0},Te.mean=function(t){return Sn(t,Xa)},Te.meanBy=function(t,n){return Sn(t,Ki(n,2))},Te.min=function(t){return t&&t.length?ir(t,Xa,Er):void 0},Te.minBy=function(t,n){return t&&t.length?ir(t,Ki(n,2),Er):void 0},Te.stubArray=oc,Te.stubFalse=uc,Te.stubObject=function(){return{}},Te.stubString=function(){return""},Te.stubTrue=function(){return!0},Te.multiply=hc,Te.nth=function(t,n){return t&&t.length?jr(t,ia(n)):void 0},Te.noConflict=function(){return Xt._===this&&(Xt._=Ct),this},Te.noop=Qa,Te.now=gu,Te.pad=function(t,n,e){t=ca(t);var r=(n=ia(n))?Xn(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Ri(ne(i),e)+t+Ri(te(i),e)},Te.padEnd=function(t,n,e){t=ca(t);var r=(n=ia(n))?Xn(t):0;return n&&r<n?t+Ri(n-r,e):t},Te.padStart=function(t,n,e){t=ca(t);var r=(n=ia(n))?Xn(t):0;return n&&r<n?Ri(n-r,e)+t:t},Te.parseInt=function(t,n,e){return e||null==n?n=0:n&&(n=+n),se(ca(t).replace(W,""),n||0)},Te.random=function(t,n,e){if(e&&"boolean"!=typeof e&&co(t,n,e)&&(n=e=void 0),void 0===e&&("boolean"==typeof n?(e=n,n=void 0):"boolean"==typeof t&&(e=t,t=void 0)),void 0===t&&void 0===n?(t=0,n=1):(t=ra(t),void 0===n?(n=t,t=0):n=ra(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var i=le();return ce(t+i*(n-t+qt("1e-"+((i+"").length-1))),n)}return Ir(t,n)},Te.reduce=function(t,n,e){var r=Pu(t)?gn:Cn,i=arguments.length<3;return r(t,Ki(n,4),e,i,nr)},Te.reduceRight=function(t,n,e){var r=Pu(t)?yn:Cn,i=arguments.length<3;return r(t,Ki(n,4),e,i,er)},Te.repeat=function(t,n,e){return n=(e?co(t,n,e):void 0===n)?1:ia(n),Dr(ca(t),n)},Te.replace=function(){var t=arguments,n=ca(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Te.result=function(t,n,e){var r=-1,i=(n=ci(n,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Eo(n[r])];void 0===o&&(r=i,o=e),t=Uu(o)?o.call(t):o}return t},Te.round=dc,Te.runInContext=t,Te.sample=function(t){return(Pu(t)?Be:Br)(t)},Te.size=function(t){if(null==t)return 0;if(Lu(t))return Ku(t)?Xn(t):t.length;var n=ro(t);return n==v||n==b?t.size:Sr(t).length},Te.snakeCase=Ia,Te.some=function(t,n,e){var r=Pu(t)?_n:Xr;return e&&co(t,n,e)&&(n=void 0),r(t,Ki(n,3))},Te.sortedIndex=function(t,n){return Wr(t,n)},Te.sortedIndexBy=function(t,n,e){return Gr(t,n,Ki(e,2))},Te.sortedIndexOf=function(t,n){var e=null==t?0:t.length;if(e){var r=Wr(t,n);if(r<e&&Ou(t[r],n))return r}return-1},Te.sortedLastIndex=function(t,n){return Wr(t,n,!0)},Te.sortedLastIndexBy=function(t,n,e){return Gr(t,n,Ki(e,2),!0)},Te.sortedLastIndexOf=function(t,n){if(null==t?0:t.length){var e=Wr(t,n,!0)-1;if(Ou(t[e],n))return e}return-1},Te.startCase=Da,Te.startsWith=function(t,n,e){return t=ca(t),e=null==e?0:Ze(ia(e),0,t.length),n=Qr(n),t.slice(e,e+n.length)==n},Te.subtract=pc,Te.sum=function(t){return t&&t.length?Tn(t,Xa):0},Te.sumBy=function(t,n){return t&&t.length?Tn(t,Ki(n,2)):0},Te.template=function(t,n,e){var r=Te.templateSettings;e&&co(t,n,e)&&(n=void 0),t=ca(t),n=la({},n,r,Ui);var i,o,u=la({},n.imports,r.imports,Ui),a=xa(u),c=Rn(u,a),f=0,s=n.interpolate||st,l="__p += '",h=vt((n.escape||st).source+"|"+s.source+"|"+(s===Y?et:st).source+"|"+(n.evaluate||st).source+"|$","g"),d="//# sourceURL="+(Mt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ft+"]")+"\n";t.replace(h,(function(n,e,r,u,a,c){return r||(r=u),l+=t.slice(f,c).replace(lt,Bn),e&&(i=!0,l+="' +\n__e("+e+") +\n'"),a&&(o=!0,l+="';\n"+a+";\n__p += '"),r&&(l+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+n.length,n})),l+="';\n";var p=Mt.call(n,"variable")&&n.variable;if(p){if(tt.test(p))throw new G("Invalid `variable` option passed into `_.template`")}else l="with (obj) {\n"+l+"\n}\n";l=(o?l.replace(R,""):l).replace(P,"$1").replace(z,"$1;"),l="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var v=Ya((function(){return ht(a,d+"return "+l).apply(void 0,c)}));if(v.source=l,Bu(v))throw v;return v},Te.times=function(t,n){if((t=ia(t))<1||t>9007199254740991)return[];var e=4294967295,r=ce(t,4294967295);t-=4294967295;for(var i=On(r,n=Ki(n));++e<t;)n(e);return i},Te.toFinite=ra,Te.toInteger=ia,Te.toLength=oa,Te.toLower=function(t){return ca(t).toLowerCase()},Te.toNumber=ua,Te.toSafeInteger=function(t){return t?Ze(ia(t),-9007199254740991,9007199254740991):0===t?t:0},Te.toString=ca,Te.toUpper=function(t){return ca(t).toUpperCase()},Te.trim=function(t,n,e){if((t=ca(t))&&(e||void 0===n))return Nn(t);if(!t||!(n=Qr(n)))return t;var r=Wn(t),i=Wn(n);return si(r,zn(r,i),Ln(r,i)+1).join("")},Te.trimEnd=function(t,n,e){if((t=ca(t))&&(e||void 0===n))return t.slice(0,Gn(t)+1);if(!t||!(n=Qr(n)))return t;var r=Wn(t);return si(r,0,Ln(r,Wn(n))+1).join("")},Te.trimStart=function(t,n,e){if((t=ca(t))&&(e||void 0===n))return t.replace(W,"");if(!t||!(n=Qr(n)))return t;var r=Wn(t);return si(r,zn(r,Wn(n))).join("")},Te.truncate=function(t,n){var e=30,r="...";if(Vu(n)){var i="separator"in n?n.separator:i;e="length"in n?ia(n.length):e,r="omission"in n?Qr(n.omission):r}var o=(t=ca(t)).length;if(Un(t)){var u=Wn(t);o=u.length}if(e>=o)return t;var a=e-Xn(r);if(a<1)return r;var c=u?si(u,0,a).join(""):t.slice(0,a);if(void 0===i)return c+r;if(u&&(a+=c.length-a),Gu(i)){if(t.slice(a).search(i)){var f,s=c;for(i.global||(i=vt(i.source,ca(rt.exec(i))+"g")),i.lastIndex=0;f=i.exec(s);)var l=f.index;c=c.slice(0,void 0===l?a:l)}}else if(t.indexOf(Qr(i),a)!=a){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Te.unescape=function(t){return(t=ca(t))&&D.test(t)?t.replace(L,Zn):t},Te.uniqueId=function(t){var n=++At;return ca(t)+n},Te.upperCase=Fa,Te.upperFirst=Ba,Te.each=cu,Te.eachRight=fu,Te.first=Lo,Ka(Te,(lc={},fr(Te,(function(t,n){Mt.call(Te.prototype,n)||(lc[n]=t)})),lc),{chain:!1}),Te.VERSION="4.17.21",cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Te[t].placeholder=Te})),cn(["drop","take"],(function(t,n){Re.prototype[t]=function(e){e=void 0===e?1:ae(ia(e),0);var r=this.__filtered__&&!n?new Re(this):this.clone();return r.__filtered__?r.__takeCount__=ce(e,r.__takeCount__):r.__views__.push({size:ce(e,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Re.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),cn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Re.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Ki(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),cn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Re.prototype[t]=function(){return this[e](1).value()[0]}})),cn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Re.prototype[t]=function(){return this.__filtered__?new Re(this):this[e](1)}})),Re.prototype.compact=function(){return this.filter(Xa)},Re.prototype.find=function(t){return this.filter(t).head()},Re.prototype.findLast=function(t){return this.reverse().find(t)},Re.prototype.invokeMap=Fr((function(t,n){return"function"==typeof t?new Re(this):this.map((function(e){return br(e,t,n)}))})),Re.prototype.reject=function(t){return this.filter(Su(Ki(t)))},Re.prototype.slice=function(t,n){t=ia(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Re(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),void 0!==n&&(e=(n=ia(n))<0?e.dropRight(-n):e.take(n-t)),e)},Re.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Re.prototype.toArray=function(){return this.take(4294967295)},fr(Re.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=Te[r?"take"+("last"==n?"Right":""):n],o=r||/^find/.test(n);i&&(Te.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,a=n instanceof Re,c=u[0],f=a||Pu(n),s=function(t){var n=i.apply(Te,vn([t],u));return r&&l?n[0]:n};f&&e&&"function"==typeof c&&1!=c.length&&(a=f=!1);var l=this.__chain__,h=!!this.__actions__.length,d=o&&!l,p=a&&!h;if(!o&&f){n=p?n:new Re(this);var v=t.apply(n,u);return v.__actions__.push({func:ru,args:[s],thisArg:void 0}),new je(v,l)}return d&&p?t.apply(this,u):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),cn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=_t[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Te.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Pu(i)?i:[],t)}return this[e]((function(e){return n.apply(Pu(e)?e:[],t)}))}})),fr(Re.prototype,(function(t,n){var e=Te[n];if(e){var r=e.name+"";Mt.call(me,r)||(me[r]=[]),me[r].push({name:n,func:e})}})),me[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],Re.prototype.clone=function(){var t=new Re(this.__wrapped__);return t.__actions__=_i(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=_i(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=_i(this.__views__),t},Re.prototype.reverse=function(){if(this.__filtered__){var t=new Re(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Re.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Pu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){var r=-1,i=e.length;for(;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":n-=u;break;case"take":n=ce(n,t+u);break;case"takeRight":t=ae(t,n-u)}}return{start:t,end:n}}(0,i,this.__views__),u=o.start,a=o.end,c=a-u,f=r?a:u-1,s=this.__iteratees__,l=s.length,h=0,d=ce(c,this.__takeCount__);if(!e||!r&&i==c&&d==c)return ri(t,this.__actions__);var p=[];t:for(;c--&&h<d;){for(var v=-1,g=t[f+=n];++v<l;){var y=s[v],_=y.iteratee,b=y.type,m=_(g);if(2==b)g=m;else if(!m){if(1==b)continue t;break t}}p[h++]=g}return p},Te.prototype.at=iu,Te.prototype.chain=function(){return eu(this)},Te.prototype.commit=function(){return new je(this.value(),this.__chain__)},Te.prototype.next=function(){void 0===this.__values__&&(this.__values__=ea(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Te.prototype.plant=function(t){for(var n,e=this;e instanceof Ne;){var r=To(e);r.__index__=0,r.__values__=void 0,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},Te.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Re){var n=t;return this.__actions__.length&&(n=new Re(this)),(n=n.reverse()).__actions__.push({func:ru,args:[Vo],thisArg:void 0}),new je(n,this.__chain__)}return this.thru(Vo)},Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Te.prototype.first=Te.prototype.head,Kt&&(Te.prototype[Kt]=function(){return this}),Te}();Xt._=Kn,void 0===(i=function(){return Kn}.call(n,e,n,r))||(r.exports=i)}).call(this)}).call(this,e(2),e(3)(t))},function(t,n,e){window,t.exports=function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=214)}([function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){var r=e(93),i=e(54);t.exports=function(t,n){return null!=t&&i(t,n,r)}},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,e){var r=e(56),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n,e){var r=e(29),i=e(78),o=e(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,n,e){var r=e(7),i=e(4);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,n,e){var r=e(12),i=e(95),o=e(96),u=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?i(t):o(t)}},function(t,n,e){var r=e(103),i=e(106);t.exports=function(t,n){var e=i(t,n);return r(e)?e:void 0}},function(t,n,e){var r=e(34),i=e(38);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,n,e){var r=e(122);t.exports=function(t){return r(t,5)}},function(t,n,e){var r=e(29),i=e(73),o=e(14);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,n,e){var r=e(3).Symbol;t.exports=r},function(t,n,e){var r=e(62),i=e(133),o=e(9);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,n){t.exports=function(t){return t}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(60),i=e(39);t.exports=function(t,n,e,o){var u=!e;e||(e={});for(var a=-1,c=n.length;++a<c;){var f=n[a],s=o?o(e[f],t[f],f,e,t):void 0;void 0===s&&(s=t[f]),u?i(e,f,s):r(e,f,s)}return e}},function(t,n,e){var r=e(62),i=e(136),o=e(9);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,n,e){var r=e(80),i=e(50),o=e(192),u=e(51),a=i((function(t){return t.push(void 0,o),r(u,void 0,t)}));t.exports=a},function(t,n,e){var r=e(8)(Object,"create");t.exports=r},function(t,n,e){var r=e(111),i=e(112),o=e(113),u=e(114),a=e(115);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,n,e){var r=e(15);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},function(t,n,e){var r=e(117);t.exports=function(t,n){var e=t.__data__;return r(n)?e["string"==typeof n?"string":"hash"]:e.map}},function(t,n,e){var r=e(121),i=e(4),o=Object.prototype,u=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,n,e){var r=e(6);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(t,n,e){var r=e(20),i=e(123),o=e(124),u=e(125),a=e(126),c=e(127);function f(t){var n=this.__data__=new r(t);this.size=n.size}f.prototype.clear=i,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=a,f.prototype.set=c,t.exports=f},function(t,n,e){(function(t){var r=e(3),i=e(131),o=n&&!n.nodeType&&n,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c}).call(this,e(40)(t))},function(t,n){t.exports=function(t){return function(n){return t(n)}}},function(t,n,e){var r=e(142),i=e(35),o=e(143),u=e(144),a=e(145),c=e(7),f=e(57),s=f(r),l=f(i),h=f(o),d=f(u),p=f(a),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||u&&"[object Set]"!=v(new u)||a&&"[object WeakMap]"!=v(new a))&&(v=function(t){var n=c(t),e="[object Object]"==n?t.constructor:void 0,r=e?f(e):"";if(r)switch(r){case s:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return n}),t.exports=v},function(t,n,e){var r=e(6);t.exports=function(t,n,e){for(var i=-1,o=t.length;++i<o;){var u=t[i],a=n(u);if(null!=a&&(void 0===c?a==a&&!r(a):e(a,c)))var c=a,f=u}return f}},function(t,n,e){var r=e(29),i=e(48),o=e(73);t.exports=function(t,n){return t&&t.length?r(t,i(n,2),o):void 0}},function(t,n,e){var r=e(29),i=e(78),o=e(48);t.exports=function(t,n){return t&&t.length?r(t,o(n,2),i):void 0}},function(t,n,e){var r=e(0),i=e(6),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||u.test(t)||!o.test(t)||null!=n&&t in Object(n)}},function(t,n,e){var r=e(100),i=e(116),o=e(118),u=e(119),a=e(120);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,n,e){var r=e(7),i=e(2);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r=e(8)(e(3),"Map");t.exports=r},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,n,e){var r=e(61);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){var r=e(132),i=e(27),o=e(42),u=o&&o.isTypedArray,a=u?i(u):r;t.exports=a},function(t,n,e){(function(t){var r=e(56),i=n&&!n.nodeType&&n,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a}).call(this,e(40)(t))},function(t,n){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},function(t,n,e){var r=e(139),i=e(66),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(t){return null==t?[]:(t=Object(t),r(u(t),(function(n){return o.call(t,n)})))}:i;t.exports=a},function(t,n){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},function(t,n,e){var r=e(63)(Object.getPrototypeOf,Object);t.exports=r},function(t,n,e){var r=e(70);t.exports=function(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}},function(t,n,e){var r=e(156),i=e(169),o=e(14),u=e(0),a=e(173);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?u(t)?i(t[0],t[1]):r(t):a(t)}},function(t,n,e){var r=e(55),i=e(24);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},function(t,n,e){var r=e(14),i=e(187),o=e(188);t.exports=function(t,n){return o(i(t,n,r),t+"")}},function(t,n,e){var r=e(82),i=e(197)((function(t,n,e,i){r(t,n,e,i)}));t.exports=i},function(t,n,e){var r=e(176),i=e(178),o=e(50),u=e(81),a=o((function(t,n){if(null==t)return[];var e=n.length;return e>1&&u(t,n[0],n[1])?n=[]:e>2&&u(n[0],n[1],n[2])&&(n=[n[0]]),i(t,r(n,1),[])}));t.exports=a},function(t,n){var e=Array.prototype.reverse;t.exports=function(t){return null==t?t:e.call(t)}},function(t,n,e){var r=e(55),i=e(23),o=e(0),u=e(37),a=e(38),c=e(24);t.exports=function(t,n,e){for(var f=-1,s=(n=r(n,t)).length,l=!1;++f<s;){var h=c(n[f]);if(!(l=null!=t&&e(t,h)))break;t=t[h]}return l||++f!=s?l:!!(s=null==t?0:t.length)&&a(s)&&u(h,s)&&(o(t)||i(t))}},function(t,n,e){var r=e(0),i=e(32),o=e(97),u=e(58);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(u(t))}},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(94))},function(t,n){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,n,e){var r=e(59);t.exports=function(t){return null==t?"":r(t)}},function(t,n,e){var r=e(12),i=e(36),o=e(0),u=e(6),a=r?r.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(u(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},function(t,n,e){var r=e(39),i=e(15),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var u=t[n];o.call(t,n)&&i(u,e)&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n,e){var r=e(8),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,n,e){var r=e(130),i=e(23),o=e(0),u=e(26),a=e(37),c=e(41),f=Object.prototype.hasOwnProperty;t.exports=function(t,n){var e=o(t),s=!e&&i(t),l=!e&&!s&&u(t),h=!e&&!s&&!l&&c(t),d=e||s||l||h,p=d?r(t.length,String):[],v=p.length;for(var g in t)!n&&!f.call(t,g)||d&&("length"==g||l&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,v))||p.push(g);return p}},function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},function(t,n,e){(function(t){var r=e(3),i=n&&!n.nodeType&&n,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i?r.Buffer:void 0,a=u?u.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var e=t.length,r=a?a(e):new t.constructor(e);return t.copy(r),r}}).call(this,e(40)(t))},function(t,n){t.exports=function(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e<r;)n[e]=t[e];return n}},function(t,n){t.exports=function(){return[]}},function(t,n,e){var r=e(45),i=e(46),o=e(44),u=e(66),a=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)r(n,o(t)),t=i(t);return n}:u;t.exports=a},function(t,n,e){var r=e(69),i=e(44),o=e(13);t.exports=function(t){return r(t,o,i)}},function(t,n,e){var r=e(45),i=e(0);t.exports=function(t,n,e){var o=n(t);return i(t)?o:r(o,e(t))}},function(t,n,e){var r=e(3).Uint8Array;t.exports=r},function(t,n,e){var r=e(47);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},function(t,n,e){var r=e(151),i=e(46),o=e(43);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,n){t.exports=function(t,n){return t<n}},function(t,n,e){var r=e(158),i=e(4);t.exports=function t(n,e,o,u,a){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,u,t,a))}},function(t,n,e){var r=e(159),i=e(162),o=e(163);t.exports=function(t,n,e,u,a,c){var f=1&e,s=t.length,l=n.length;if(s!=l&&!(f&&l>s))return!1;var h=c.get(t),d=c.get(n);if(h&&d)return h==n&&d==t;var p=-1,v=!0,g=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++p<s;){var y=t[p],_=n[p];if(u)var b=f?u(_,y,p,n,t,c):u(y,_,p,t,n,c);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!i(n,(function(t,n){if(!o(g,n)&&(y===t||a(y,t,e,u,c)))return g.push(n)}))){v=!1;break}}else if(y!==_&&!a(y,_,e,u,c)){v=!1;break}}return c.delete(t),c.delete(n),v}},function(t,n,e){var r=e(2);t.exports=function(t){return t==t&&!r(t)}},function(t,n){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},function(t,n){t.exports=function(t,n){return t>n}},function(t,n,e){var r=e(182)();t.exports=r},function(t,n){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},function(t,n,e){var r=e(15),i=e(9),o=e(37),u=e(2);t.exports=function(t,n,e){if(!u(e))return!1;var a=typeof n;return!!("number"==a?i(e)&&o(n,e.length):"string"==a&&n in e)&&r(e[n],t)}},function(t,n,e){var r=e(25),i=e(83),o=e(79),u=e(193),a=e(2),c=e(17),f=e(84);t.exports=function t(n,e,s,l,h){n!==e&&o(e,(function(o,c){if(h||(h=new r),a(o))u(n,e,c,s,t,l,h);else{var d=l?l(f(n,c),o,c+"",n,e,h):void 0;void 0===d&&(d=o),i(n,c,d)}}),c)}},function(t,n,e){var r=e(39),i=e(15);t.exports=function(t,n,e){(void 0!==e&&!i(t[n],e)||void 0===e&&!(n in t))&&r(t,n,e)}},function(t,n){t.exports=function(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}},function(t,n,e){var r=e(2),i=e(6),o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var e=a.test(t);return e||c.test(t)?f(t.slice(2),e?2:8):u.test(t)?NaN:+t}},function(t,n,e){var r=e(198),i=e(199);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o,u=0,a={injectType:"lazyStyleTag",insert:"head",singleton:!1},c={};c.locals=i.locals||{},c.use=function(){return u++||(o=r(i,a)),c},c.unuse=function(){u>0&&!--u&&(o(),o=null)},t.exports=c},function(t,n,e){var r=e(201),i=e(9),o=e(205),u=e(206),a=e(208),c=Math.max;t.exports=function(t,n,e,f){t=i(t)?t:a(t),e=e&&!f?u(e):0;var s=t.length;return e<0&&(e=c(s+e,0)),o(t)?e<=s&&t.indexOf(n,e)>-1:!!s&&r(t,n,e)>-1}},function(t,n,e){t.exports=e(210)},function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},function(t,n,e){var r=e(211)((function(t,n){return t+n}),0);t.exports=r},function(t,n,e){var r=e(58);t.exports=function(){var t=arguments,n=r(t[0]);return t.length<3?n:n.replace(t[1],t[2])}},function(t,n,e){var r=e(2),i=e(213),o=e(85),u=Math.max,a=Math.min;t.exports=function(t,n,e){var c,f,s,l,h,d,p=0,v=!1,g=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(n){var e=c,r=f;return c=f=void 0,p=n,l=t.apply(r,e)}function b(t){return p=t,h=setTimeout(x,n),v?_(t):l}function m(t){var e=t-d;return void 0===d||e>=n||e<0||g&&t-p>=s}function x(){var t=i();if(m(t))return w(t);h=setTimeout(x,function(t){var e=n-(t-d);return g?a(e,s-(t-p)):e}(t))}function w(t){return h=void 0,y&&c?_(t):(c=f=void 0,l)}function M(){var t=i(),e=m(t);if(c=arguments,f=this,d=t,e){if(void 0===h)return b(d);if(g)return clearTimeout(h),h=setTimeout(x,n),_(d)}return void 0===h&&(h=setTimeout(x,n)),l}return n=o(n)||0,r(e)&&(v=!!e.leading,s=(g="maxWait"in e)?u(o(e.maxWait)||0,n):s,y="trailing"in e?!!e.trailing:y),M.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=d=f=h=void 0},M.flush=function(){return void 0===h?l:w(i())},M}},function(t,n){var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(12),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(n?t[a]=e:delete t[a]),i}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n,e){var r=e(98),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=u},function(t,n,e){var r=e(99);t.exports=function(t){var n=r(t,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}},function(t,n,e){var r=e(33);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},function(t,n,e){var r=e(101),i=e(20),o=e(35);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,n,e){var r=e(102),i=e(107),o=e(108),u=e(109),a=e(110);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=u,c.prototype.set=a,t.exports=c},function(t,n,e){var r=e(19);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,n,e){var r=e(34),i=e(104),o=e(2),u=e(57),a=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,s=c.toString,l=f.hasOwnProperty,h=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(u(t))}},function(t,n,e){var r,i=e(105),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,n,e){var r=e(3)["__core-js_shared__"];t.exports=r},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},function(t,n,e){var r=e(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(r){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return i.call(n,t)?n[t]:void 0}},function(t,n,e){var r=e(19),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return r?void 0!==n[t]:i.call(n,t)}},function(t,n,e){var r=e(19);t.exports=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=r&&void 0===n?"__lodash_hash_undefined__":n,this}},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,e){var r=e(21),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},function(t,n,e){var r=e(21);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},function(t,n,e){var r=e(21);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,n,e){var r=e(21);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},function(t,n,e){var r=e(22);t.exports=function(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}},function(t,n){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},function(t,n,e){var r=e(22);t.exports=function(t){return r(this,t).get(t)}},function(t,n,e){var r=e(22);t.exports=function(t){return r(this,t).has(t)}},function(t,n,e){var r=e(22);t.exports=function(t,n){var e=r(this,t),i=e.size;return e.set(t,n),this.size+=e.size==i?0:1,this}},function(t,n,e){var r=e(7),i=e(4);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,n,e){var r=e(25),i=e(128),o=e(60),u=e(129),a=e(135),c=e(64),f=e(65),s=e(138),l=e(140),h=e(68),d=e(141),p=e(28),v=e(146),g=e(147),y=e(72),_=e(0),b=e(26),m=e(152),x=e(2),w=e(154),M=e(13),A=e(17),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(n,e,k,E,C,T){var O,N=1&e,j=2&e,R=4&e;if(k&&(O=C?k(n,E,C,T):k(n)),void 0!==O)return O;if(!x(n))return n;var P=_(n);if(P){if(O=v(n),!N)return f(n,O)}else{var z=p(n),L="[object Function]"==z||"[object GeneratorFunction]"==z;if(b(n))return c(n,N);if("[object Object]"==z||"[object Arguments]"==z||L&&!C){if(O=j||L?{}:y(n),!N)return j?l(n,a(O,n)):s(n,u(O,n))}else{if(!S[z])return C?n:{};O=g(n,z,N)}}T||(T=new r);var I=T.get(n);if(I)return I;T.set(n,O),w(n)?n.forEach((function(r){O.add(t(r,e,k,r,n,T))})):m(n)&&n.forEach((function(r,i){O.set(i,t(r,e,k,i,n,T))}));var D=P?void 0:(R?j?d:h:j?A:M)(n);return i(D||n,(function(r,i){D&&(r=n[i=r]),o(O,i,t(r,e,k,i,n,T))})),O}},function(t,n,e){var r=e(20);t.exports=function(){this.__data__=new r,this.size=0}},function(t,n){t.exports=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}},function(t,n){t.exports=function(t){return this.__data__.get(t)}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n,e){var r=e(20),i=e(35),o=e(33);t.exports=function(t,n){var e=this.__data__;if(e instanceof r){var u=e.__data__;if(!i||u.length<199)return u.push([t,n]),this.size=++e.size,this;e=this.__data__=new o(u)}return e.set(t,n),this.size=e.size,this}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}},function(t,n,e){var r=e(16),i=e(13);t.exports=function(t,n){return t&&r(n,i(n),t)}},function(t,n){t.exports=function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}},function(t,n){t.exports=function(){return!1}},function(t,n,e){var r=e(7),i=e(38),o=e(4),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!u[r(t)]}},function(t,n,e){var r=e(43),i=e(134),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))o.call(t,e)&&"constructor"!=e&&n.push(e);return n}},function(t,n,e){var r=e(63)(Object.keys,Object);t.exports=r},function(t,n,e){var r=e(16),i=e(17);t.exports=function(t,n){return t&&r(n,i(n),t)}},function(t,n,e){var r=e(2),i=e(43),o=e(137),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var n=i(t),e=[];for(var a in t)("constructor"!=a||!n&&u.call(t,a))&&e.push(a);return e}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){var r=e(16),i=e(44);t.exports=function(t,n){return r(t,i(t),n)}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var u=t[e];n(u,e,t)&&(o[i++]=u)}return o}},function(t,n,e){var r=e(16),i=e(67);t.exports=function(t,n){return r(t,i(t),n)}},function(t,n,e){var r=e(69),i=e(67),o=e(17);t.exports=function(t){return r(t,o,i)}},function(t,n,e){var r=e(8)(e(3),"DataView");t.exports=r},function(t,n,e){var r=e(8)(e(3),"Promise");t.exports=r},function(t,n,e){var r=e(8)(e(3),"Set");t.exports=r},function(t,n,e){var r=e(8)(e(3),"WeakMap");t.exports=r},function(t,n){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,n,e){var r=e(47),i=e(148),o=e(149),u=e(150),a=e(71);t.exports=function(t,n,e){var c=t.constructor;switch(n){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,e);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return o(t);case"[object Set]":return new c;case"[object Symbol]":return u(t)}}},function(t,n,e){var r=e(47);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,n){var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},function(t,n,e){var r=e(12),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,n,e){var r=e(2),i=Object.create,o=function(){function t(){}return function(n){if(!r(n))return{};if(i)return i(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();t.exports=o},function(t,n,e){var r=e(153),i=e(27),o=e(42),u=o&&o.isMap,a=u?i(u):r;t.exports=a},function(t,n,e){var r=e(28),i=e(4);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,n,e){var r=e(155),i=e(27),o=e(42),u=o&&o.isSet,a=u?i(u):r;t.exports=a},function(t,n,e){var r=e(28),i=e(4);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,n,e){var r=e(157),i=e(168),o=e(77);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},function(t,n,e){var r=e(25),i=e(74);t.exports=function(t,n,e,o){var u=e.length,a=u,c=!o;if(null==t)return!a;for(t=Object(t);u--;){var f=e[u];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++u<a;){var s=(f=e[u])[0],l=t[s],h=f[1];if(c&&f[2]){if(void 0===l&&!(s in t))return!1}else{var d=new r;if(o)var p=o(l,h,s,t,n,d);if(!(void 0===p?i(h,l,3,o,d):p))return!1}}return!0}},function(t,n,e){var r=e(25),i=e(75),o=e(164),u=e(167),a=e(28),c=e(0),f=e(26),s=e(41),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,d,p,v){var g=c(t),y=c(n),_=g?"[object Array]":a(t),b=y?"[object Array]":a(n),m=(_="[object Arguments]"==_?l:_)==l,x=(b="[object Arguments]"==b?l:b)==l,w=_==b;if(w&&f(t)){if(!f(n))return!1;g=!0,m=!1}if(w&&!m)return v||(v=new r),g||s(t)?i(t,n,e,d,p,v):o(t,n,_,e,d,p,v);if(!(1&e)){var M=m&&h.call(t,"__wrapped__"),A=x&&h.call(n,"__wrapped__");if(M||A){var S=M?t.value():t,k=A?n.value():n;return v||(v=new r),p(S,k,e,d,v)}}return!!w&&(v||(v=new r),u(t,n,e,d,p,v))}},function(t,n,e){var r=e(33),i=e(160),o=e(161);function u(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new r;++n<e;)this.add(t[n])}u.prototype.add=u.prototype.push=i,u.prototype.has=o,t.exports=u},function(t,n){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,n){t.exports=function(t){return this.__data__.has(t)}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},function(t,n){t.exports=function(t,n){return t.has(n)}},function(t,n,e){var r=e(12),i=e(70),o=e(15),u=e(75),a=e(165),c=e(166),f=r?r.prototype:void 0,s=f?f.valueOf:void 0;t.exports=function(t,n,e,r,f,l,h){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!l(new i(t),new i(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=c),t.size!=n.size&&!p)return!1;var v=h.get(t);if(v)return v==n;r|=2,h.set(t,n);var g=u(d(t),d(n),r,f,l,h);return h.delete(t),g;case"[object Symbol]":if(s)return s.call(t)==s.call(n)}return!1}},function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}},function(t,n){t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}},function(t,n,e){var r=e(68),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,u,a){var c=1&e,f=r(t),s=f.length;if(s!=r(n).length&&!c)return!1;for(var l=s;l--;){var h=f[l];if(!(c?h in n:i.call(n,h)))return!1}var d=a.get(t),p=a.get(n);if(d&&p)return d==n&&p==t;var v=!0;a.set(t,n),a.set(n,t);for(var g=c;++l<s;){var y=t[h=f[l]],_=n[h];if(o)var b=c?o(_,y,h,n,t,a):o(y,_,h,t,n,a);if(!(void 0===b?y===_||u(y,_,e,o,a):b)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var m=t.constructor,x=n.constructor;m==x||!("constructor"in t)||!("constructor"in n)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(t),a.delete(n),v}},function(t,n,e){var r=e(76),i=e(13);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],u=t[o];n[e]=[o,u,r(u)]}return n}},function(t,n,e){var r=e(74),i=e(170),o=e(171),u=e(32),a=e(76),c=e(77),f=e(24);t.exports=function(t,n){return u(t)&&a(n)?c(f(t),n):function(e){var u=i(e,t);return void 0===u&&u===n?o(e,t):r(n,u,3)}}},function(t,n,e){var r=e(49);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},function(t,n,e){var r=e(172),i=e(54);t.exports=function(t,n){return null!=t&&i(t,n,r)}},function(t,n){t.exports=function(t,n){return null!=t&&n in Object(t)}},function(t,n,e){var r=e(174),i=e(175),o=e(32),u=e(24);t.exports=function(t){return o(t)?r(u(t)):i(t)}},function(t,n){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},function(t,n,e){var r=e(49);t.exports=function(t){return function(n){return r(n,t)}}},function(t,n,e){var r=e(45),i=e(177);t.exports=function t(n,e,o,u,a){var c=-1,f=n.length;for(o||(o=i),a||(a=[]);++c<f;){var s=n[c];e>0&&o(s)?e>1?t(s,e-1,o,u,a):r(a,s):u||(a[a.length]=s)}return a}},function(t,n,e){var r=e(12),i=e(23),o=e(0),u=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(u&&t&&t[u])}},function(t,n,e){var r=e(36),i=e(49),o=e(48),u=e(179),a=e(184),c=e(27),f=e(185),s=e(14),l=e(0);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return l(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[s];var h=-1;n=r(n,c(o));var d=u(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++h,value:t}}));return a(d,(function(t,n){return f(t,n,e)}))}},function(t,n,e){var r=e(180),i=e(9);t.exports=function(t,n){var e=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++e]=n(t,r,i)})),o}},function(t,n,e){var r=e(181),i=e(183)(r);t.exports=i},function(t,n,e){var r=e(79),i=e(13);t.exports=function(t,n){return t&&r(t,n,i)}},function(t,n){t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),u=r(n),a=u.length;a--;){var c=u[t?a:++i];if(!1===e(o[c],c,o))break}return n}}},function(t,n,e){var r=e(9);t.exports=function(t,n){return function(e,i){if(null==e)return e;if(!r(e))return t(e,i);for(var o=e.length,u=n?o:-1,a=Object(e);(n?u--:++u<o)&&!1!==i(a[u],u,a););return e}}},function(t,n){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},function(t,n,e){var r=e(186);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,u=n.criteria,a=o.length,c=e.length;++i<a;){var f=r(o[i],u[i]);if(f)return i>=c?f:f*("desc"==e[i]?-1:1)}return t.index-n.index}},function(t,n,e){var r=e(6);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,u=r(t),a=void 0!==n,c=null===n,f=n==n,s=r(n);if(!c&&!s&&!u&&t>n||u&&a&&f&&!c&&!s||i&&a&&f||!e&&f||!o)return 1;if(!i&&!u&&!s&&t<n||s&&e&&o&&!i&&!u||c&&e&&o||!a&&o||!f)return-1}return 0}},function(t,n,e){var r=e(80),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,u=-1,a=i(o.length-n,0),c=Array(a);++u<a;)c[u]=o[n+u];u=-1;for(var f=Array(n+1);++u<n;)f[u]=o[u];return f[n]=e(c),r(t,this,f)}}},function(t,n,e){var r=e(189),i=e(191)(r);t.exports=i},function(t,n,e){var r=e(190),i=e(61),o=e(14),u=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:o;t.exports=u},function(t,n){t.exports=function(t){return function(){return t}}},function(t,n){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},function(t,n,e){var r=e(82),i=e(2);t.exports=function t(n,e,o,u,a,c){return i(n)&&i(e)&&(c.set(e,n),r(n,e,void 0,t,c),c.delete(e)),n}},function(t,n,e){var r=e(83),i=e(64),o=e(71),u=e(65),a=e(72),c=e(23),f=e(0),s=e(194),l=e(26),h=e(34),d=e(2),p=e(195),v=e(41),g=e(84),y=e(196);t.exports=function(t,n,e,_,b,m,x){var w=g(t,e),M=g(n,e),A=x.get(M);if(A)r(t,e,A);else{var S=m?m(w,M,e+"",t,n,x):void 0,k=void 0===S;if(k){var E=f(M),C=!E&&l(M),T=!E&&!C&&v(M);S=M,E||C||T?f(w)?S=w:s(w)?S=u(w):C?(k=!1,S=i(M,!0)):T?(k=!1,S=o(M,!0)):S=[]:p(M)||c(M)?(S=w,c(w)?S=y(w):d(w)&&!h(w)||(S=a(M))):k=!1}k&&(x.set(M,S),b(S,M,_,m,x),x.delete(M)),r(t,e,S)}}},function(t,n,e){var r=e(9),i=e(4);t.exports=function(t){return i(t)&&r(t)}},function(t,n,e){var r=e(7),i=e(46),o=e(4),u=Function.prototype,a=Object.prototype,c=u.toString,f=a.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=f.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},function(t,n,e){var r=e(16),i=e(17);t.exports=function(t){return r(t,i(t))}},function(t,n,e){var r=e(50),i=e(81);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,u=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(u=t.length>3&&"function"==typeof u?(o--,u):void 0,a&&i(e[0],e[1],a)&&(u=o<3?void 0:u,o=1),n=Object(n);++r<o;){var c=e[r];c&&t(n,c,r,u)}return n}))}},function(t,n,e){"use strict";var r,i=function(){var t={};return function(n){if(void 0===t[n]){var e=document.querySelector(n);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}t[n]=e}return t[n]}}(),o=[];function u(t){for(var n=-1,e=0;e<o.length;e++)if(o[e].identifier===t){n=e;break}return n}function a(t,n){for(var e={},r=[],i=0;i<t.length;i++){var a=t[i],c=n.base?a[0]+n.base:a[0],f=e[c]||0,s="".concat(c," ").concat(f);e[c]=f+1;var l=u(s),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==l?(o[l].references++,o[l].updater(h)):o.push({identifier:s,updater:v(h,n),references:1}),r.push(s)}return r}function c(t){var n=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=e.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){n.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(n);else{var u=i(t.insert||"head");if(!u)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");u.appendChild(n)}return n}var f,s=(f=[],function(t,n){return f[t]=n,f.filter(Boolean).join("\n")});function l(t,n,e,r){var i=e?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=s(n,i);else{var o=document.createTextNode(i),u=t.childNodes;u[n]&&t.removeChild(u[n]),u.length?t.insertBefore(o,u[n]):t.appendChild(o)}}function h(t,n,e){var r=e.css,i=e.media,o=e.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var d=null,p=0;function v(t,n){var e,r,i;if(n.singleton){var o=p++;e=d||(d=c(n)),r=l.bind(null,e,o,!1),i=l.bind(null,e,o,!0)}else e=c(n),r=h.bind(null,e,n),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)};return r(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;r(t=n)}else i()}}t.exports=function(t,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var e=a(t=t||[],n);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<e.length;r++){var i=u(e[r]);o[i].references--}for(var c=a(t,n),f=0;f<e.length;f++){var s=u(e[f]);0===o[s].references&&(o[s].updater(),o.splice(s,1))}e=c}}}},function(t,n,e){(n=e(200)(!1)).push([t.i,".grid path {\n stroke-width: 0;\n}\n\n.grid line {\n stroke: lightgrey;\n stroke-opacity: 0.7;\n shape-rendering: crispEdges;\n}\n",""]),t.exports=n},function(t,n,e){"use strict";t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=function(t,n){var e,r,i,o=t[1]||"",u=t[3];if(!u)return o;if(n&&"function"==typeof btoa){var a=(e=u,r=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=u.sources.map((function(t){return"/*# sourceURL=".concat(u.sourceRoot||"").concat(t," */")}));return[o].concat(c).concat([a]).join("\n")}return[o].join("\n")}(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var u=this[o][0];null!=u&&(i[u]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);r&&i[c[0]]||(e&&(c[2]?c[2]="".concat(e," and ").concat(c[2]):c[2]=e),n.push(c))}},n}},function(t,n,e){var r=e(202),i=e(203),o=e(204);t.exports=function(t,n,e){return n==n?o(t,n,e):r(t,i,e)}},function(t,n){t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},function(t,n){t.exports=function(t){return t!=t}},function(t,n){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},function(t,n,e){var r=e(7),i=e(0),o=e(4);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,n,e){var r=e(207);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},function(t,n,e){var r=e(85);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,n,e){var r=e(209),i=e(13);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,n,e){var r=e(36);t.exports=function(t,n){return r(n,(function(n){return t[n]}))}},function(t,n){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,n,e){var r=e(212),i=e(59);t.exports=function(t,n){return function(e,o){var u;if(void 0===e&&void 0===o)return n;if(void 0!==e&&(u=e),void 0!==o){if(void 0===u)return o;"string"==typeof e||"string"==typeof o?(e=i(e),o=i(o)):(e=r(e),o=r(o)),u=t(e,o)}return u}}},function(t,n,e){var r=e(6);t.exports=function(t){return"number"==typeof t?t:r(t)?NaN:+t}},function(t,n,e){var r=e(3);t.exports=function(){return r.Date.now()}},function(t,n,e){"use strict";e.r(n),e.d(n,"ChartwerkPod",(function(){return et})),e.d(n,"VueChartwerkPodMixin",(function(){return v})),e.d(n,"TickOrientation",(function(){return r})),e.d(n,"TimeFormat",(function(){return i})),e.d(n,"BrushOrientation",(function(){return o})),e.d(n,"PanOrientation",(function(){return u})),e.d(n,"AxisFormat",(function(){return c})),e.d(n,"yAxisOrientation",(function(){return h})),e.d(n,"CrosshairOrientation",(function(){return f})),e.d(n,"ScrollPanOrientation",(function(){return a})),e.d(n,"KeyEvent",(function(){return s})),e.d(n,"palette",(function(){return F}));var r,i,o,u,a,c,f,s,l,h,d=e(1),p=e.n(d),v={props:{id:{type:String,required:!0},series:{type:Array,required:!1,default:function(){return[]}},options:{type:Object,required:!1,default:function(){return{}}}},watch:{id:function(){this.renderChart()},series:function(){this.renderChart()},options:function(){this.renderChart()}},mounted:function(){this.renderChart()},destroyed:function(){this.pod.removeEventListeners(),this.pod=void 0},methods:{render:function(){},renderSharedCrosshair:function(t){},hideSharedCrosshair:function(){},onPanningRescale:function(t){this.pod.rescaleMetricAndAxis(t)},renderChart:function(){this.appendEvents(),this.render()},appendEvents:function(){void 0===this.options.eventsCallbacks&&(this.options.eventsCallbacks={}),p()(this.$listeners,"zoomIn")&&(this.options.eventsCallbacks.zoomIn=this.zoomIn.bind(this)),p()(this.$listeners,"zoomOut")&&(this.options.eventsCallbacks.zoomOut=this.zoomOut.bind(this)),p()(this.$listeners,"mouseMove")&&(this.options.eventsCallbacks.mouseMove=this.mouseMove.bind(this)),p()(this.$listeners,"mouseOut")&&(this.options.eventsCallbacks.mouseOut=this.mouseOut.bind(this)),p()(this.$listeners,"onLegendClick")&&(this.options.eventsCallbacks.onLegendClick=this.onLegendClick.bind(this)),p()(this.$listeners,"panningEnd")&&(this.options.eventsCallbacks.panningEnd=this.panningEnd.bind(this)),p()(this.$listeners,"panning")&&(this.options.eventsCallbacks.panning=this.panning.bind(this)),p()(this.$listeners,"contextMenu")&&(this.options.eventsCallbacks.contextMenu=this.contextMenu.bind(this)),p()(this.$listeners,"sharedCrosshairMove")&&(this.options.eventsCallbacks.sharedCrosshairMove=this.sharedCrosshairMove.bind(this)),p()(this.$listeners,"renderEnd")&&(this.options.eventsCallbacks.renderEnd=this.renderEnd.bind(this))},zoomIn:function(t){this.$emit("zoomIn",t)},zoomOut:function(t){this.$emit("zoomOut",t)},mouseMove:function(t){this.$emit("mouseMove",t)},mouseOut:function(){this.$emit("mouseOut")},onLegendClick:function(t){this.$emit("onLegendClick",t)},panningEnd:function(t){this.$emit("panningEnd",t)},panning:function(t){this.$emit("panning",t)},contextMenu:function(t){this.$emit("contextMenu",t)},sharedCrosshairMove:function(t){this.$emit("sharedCrosshairMove",t)},renderEnd:function(){this.$emit("renderEnd")}}};!function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.DIAGONAL="diagonal"}(r||(r={})),function(t){t.SECOND="second",t.MINUTE="minute",t.HOUR="hour",t.DAY="day",t.MONTH="month",t.YEAR="year"}(i||(i={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.RECTANGLE="rectangle",t.SQUARE="square"}(o||(o={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(u||(u={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"}(a||(a={})),function(t){t.TIME="time",t.NUMERIC="numeric",t.STRING="string",t.CUSTOM="custom"}(c||(c={})),function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t.BOTH="both"}(f||(f={})),function(t){t.MAIN="main",t.SHIFT="shift"}(s||(s={})),function(t){t.TOP="top",t.BOTTOM="bottom",t.BOTH="both"}(l||(l={})),function(t){t.LEFT="left",t.RIGHT="right",t.BOTH="both"}(h||(h={}));var g=e(10),y=e.n(g),_=e(11),b=e.n(_),m=e(30),x=e.n(m),w=e(5),M=e.n(w),A=e(31),S=e.n(A),k=e(52),E=e.n(k),C=e(53),T=e.n(C),O=[0,1],N={x:0,y:0,k:1},j=function(){function t(t,n,e,r){this._d3=t,this.boxParams=n,this.series=e,this.options=r,this._transform=y()(N),this.setInitialRanges(),this.initScales()}return t.prototype.setInitialRanges=function(){this._xValueRange=[this.getMinValueX(),this.getMaxValueX()],this._yValueRange=[this.getMinValueY(),this.getMaxValueY()],this._y1ValueRange=[this.getMinValueY1(),this.getMaxValueY1()]},t.prototype.initScales=function(){this.setXScale(),this.setYScale(),this.setY1Scale()},t.prototype.setYScale=function(){var t=this._yValueRange;t=E()(t),!0===this.options.axis.y.invert&&(t=T()(t)),this._yScale=this._d3.scaleLinear().domain(t).range([this.boxParams.height,0])},t.prototype.setXScale=function(){var t=this._xValueRange;this._xScale=this._d3.scaleLinear().domain(t).range([0,this.boxParams.width])},t.prototype.setY1Scale=function(){var t=this._y1ValueRange;t=E()(t),!0===this.options.axis.y1.invert&&(t=T()(t)),this._y1Scale=this._d3.scaleLinear().domain(t).range([this.boxParams.height,0])},t.prototype.clearState=function(){this.setInitialRanges(),this.initScales(),this._transform={x:0,y:0,k:1}},Object.defineProperty(t.prototype,"yScale",{get:function(){return this._yScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xScale",{get:function(){return this._xScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1Scale",{get:function(){return this._y1Scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xValueRange",{get:function(){return this._xValueRange},set:function(t){this._xValueRange=t,this.setXScale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yValueRange",{get:function(){return this._yValueRange},set:function(t){this._yValueRange=t,this.setYScale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1ValueRange",{get:function(){return this._y1ValueRange},set:function(t){this._y1ValueRange=t,this.setY1Scale()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transform",{get:function(){return this._transform},set:function(t){this._transform.x=void 0!==t.x?t.x:this._transform.x,this._transform.y=void 0!==t.y?t.y:this._transform.y,this._transform.k=void 0!==t.k?t.k:this._transform.k},enumerable:!1,configurable:!0}),t.prototype.getMinValueY=function(){var t=this;return this.isSeriesUnavailable?O[0]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?b()(this.options.axis.y.range):b()(this.series.filter((function(n){return!1!==n.visible&&t.filterSerieByYAxisOrientation(n,h.LEFT)})).map((function(t){return x()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMaxValueY=function(){var t=this;return this.isSeriesUnavailable?O[1]:void 0!==this.options.axis.y&&void 0!==this.options.axis.y.range?M()(this.options.axis.y.range):M()(this.series.filter((function(n){return!1!==n.visible&&t.filterSerieByYAxisOrientation(n,h.LEFT)})).map((function(t){return S()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMinValueX=function(){return this.isSeriesUnavailable?O[0]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?b()(this.options.axis.x.range):b()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return x()(t.datapoints,(function(t){return t[0]}))[0]})))},t.prototype.getMaxValueX=function(){return this.isSeriesUnavailable?O[1]:void 0!==this.options.axis.x&&void 0!==this.options.axis.x.range?M()(this.options.axis.x.range):M()(this.series.filter((function(t){return!1!==t.visible})).map((function(t){return S()(t.datapoints,(function(t){return t[0]}))[0]})))},t.prototype.getMinValueY1=function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?O[0]:void 0!==this.options.axis.y1.range?b()(this.options.axis.y1.range):b()(this.series.filter((function(n){return!1!==n.visible&&t.filterSerieByYAxisOrientation(n,h.RIGHT)})).map((function(t){return x()(t.datapoints,(function(t){return t[1]}))[1]})))},t.prototype.getMaxValueY1=function(){var t=this;return this.isSeriesUnavailable||void 0===this.options.axis.y1||!1===this.options.axis.y1.isActive?O[1]:void 0!==this.options.axis.y1&&void 0!==this.options.axis.y1.range?M()(this.options.axis.y1.range):M()(this.series.filter((function(n){return!1!==n.visible&&t.filterSerieByYAxisOrientation(n,h.RIGHT)})).map((function(t){return S()(t.datapoints,(function(t){return t[1]}))[1]})))},Object.defineProperty(t.prototype,"isSeriesUnavailable",{get:function(){return void 0===this.series||0===this.series.length||0===M()(this.series.map((function(t){return t.datapoints.length})))},enumerable:!1,configurable:!0}),t.prototype.filterSerieByYAxisOrientation=function(t,n){return void 0===t.yOrientation||t.yOrientation===h.BOTH||t.yOrientation===n},t}(),R=e(18),P=e.n(R),z={x:{enabled:!0,ticksCount:5},y:{enabled:!0,ticksCount:5}},L=function(){function t(t,n,e,r){this._d3=t,this._svgEl=n,this._svgElParams=e,this.gridOptions=this.setOptionDefaults(r)}return t.prototype.setOptionDefaults=function(t){return P()(t,z)},t.prototype.render=function(){this._svgEl.selectAll(".grid").remove(),this.renderGridLinesX(),this.renderGridLinesY(),this.updateStylesOfTicks()},t.prototype.renderGridLinesX=function(){this.gridOptions.x.enabled&&this._svgEl.append("g").attr("transform","translate(0,"+this._svgElParams.height+")").attr("class","grid x-grid").style("pointer-events","none").call(this._d3.axisBottom(this._svgElParams.xScale).ticks(this.gridOptions.x.ticksCount).tickSize(-this._svgElParams.height).tickFormat((function(){return""})))},t.prototype.renderGridLinesY=function(){this.gridOptions.y.enabled&&this._svgEl.append("g").attr("class","grid y-grid").style("pointer-events","none").call(this._d3.axisLeft(this._svgElParams.yScale).ticks(this.gridOptions.y.ticksCount).tickSize(-this._svgElParams.width).tickFormat((function(){return""})))},t.prototype.updateStylesOfTicks=function(){this._svgEl.selectAll(".grid").selectAll(".tick").attr("opacity","0.5"),this._svgEl.selectAll(".grid").select(".domain").style("pointer-events","none")},t}(),I=e(86),D=e.n(I),F=["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"],B=e(87),U=e.n(B),Y=e(88),q=e.n(Y),V=e(89),H=e.n(V),$=e(51),X=e.n($),W=e(90),G=e.n(W),Z=e(91),K=e.n(Z),Q=e(92),J=e.n(Q),tt={top:30,right:20,bottom:20,left:30},nt={confidence:0,timeInterval:{timeFormat:i.MINUTE},tickFormat:{xAxis:"%H:%M",xTickOrientation:r.HORIZONTAL},zoomEvents:{mouse:{zoom:{isActive:!0,keyEvent:s.MAIN,orientation:o.HORIZONTAL},pan:{isActive:!0,keyEvent:s.SHIFT,orientation:u.HORIZONTAL}},scroll:{zoom:{isActive:!0,keyEvent:s.MAIN,orientation:u.BOTH},pan:{isActive:!1,keyEvent:s.SHIFT,panStep:50,orientation:a.HORIZONTAL}}},axis:{x:{isActive:!0,ticksCount:4,format:c.TIME},y:{isActive:!0,ticksCount:4,format:c.NUMERIC},y1:{isActive:!1,ticksCount:4,format:c.NUMERIC}},crosshair:{orientation:f.VERTICAL,color:"red"},renderTicksfromTimestamps:!1,renderLegend:!0},et=function(){function t(t,n,e,r){void 0===e&&(e=[]),this.el=n,this.isPanning=!1,this.isBrushing=!1,this.brushStartSelection=null,this.yAxisTicksColors=[],this._clipPathUID="",this.deltaYTransform=0,this.debouncedRender=J()(this.render.bind(this),100),D.a.use();var i=y()(r);P()(i,nt),this.options=i,this.series=y()(e),this.d3=t,this.d3Node=this.d3.select(this.el),this.addEventListeners(),this.createSvg(),this.initPodState(),this.initComponents()}return t.prototype.addEventListeners=function(){window.addEventListener("resize",this.debouncedRender)},t.prototype.removeEventListeners=function(){window.removeEventListener("resize",this.debouncedRender)},t.prototype.render=function(){this.renderAxes(),this.renderGrid(),this.renderClipPath(),this.addEvents(),this.renderCrosshair(),this.renderMetricsContainer(),this.renderMetrics(),this.renderLegend(),this.renderYLabel(),this.renderXLabel(),p()(this.options.eventsCallbacks,"renderEnd")&&this.options.eventsCallbacks.renderEnd()},t.prototype.updateData=function(t,n,e){void 0===e&&(e=!0),this.updateSeries(t),this.updateOptions(n),e&&this.forceRerender()},t.prototype.forceRerender=function(){this.createSvg(),this.initPodState(),this.initComponents(),this.render()},t.prototype.updateOptions=function(t){if(void 0!==t){var n=y()(t);P()(n,nt),this.options=n}},t.prototype.updateSeries=function(t){if(void 0!==t){var n=y()(t);this.series=n}},t.prototype.initPodState=function(){var t={height:this.height,width:this.width};this.state=new j(this.d3,t,this.series,this.options)},t.prototype.initComponents=function(){var t={height:this.height,width:this.width,xScale:this.state.xScale,yScale:this.state.yScale};this.grid=new L(this.d3,this.chartContainer,t,this.options.grid)},t.prototype.renderMetricsContainer=function(){this.chartContainer.select(".metrics-container").remove();var t=this.chartContainer.append("g").attr("clip-path","url(#"+this.rectClipId+")").attr("class","metrics-container");this.metricContainer=t.append("g").attr("class","metrics-rect")},t.prototype.createSvg=function(){this.d3Node.select("svg").remove(),this.svg=this.d3Node.append("svg").style("width","100%").style("height","100%").style("backface-visibility","hidden"),this.chartContainer=this.svg.append("g").attr("transform","translate("+this.margin.left+","+this.margin.top+")")},t.prototype.renderGrid=function(){this.grid.render()},t.prototype.renderAxes=function(){this.renderXAxis(),this.renderYAxis(),this.renderY1Axis()},t.prototype.renderXAxis=function(){!1!==this.options.axis.x.isActive&&(this.chartContainer.select("#x-axis-container").remove(),this.xAxisElement=this.chartContainer.append("g").attr("transform","translate(0,"+this.height+")").attr("id","x-axis-container").style("pointer-events","none").call(this.d3.axisBottom(this.xScale).ticks(this.options.axis.x.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.x))),this.chartContainer.select("#x-axis-container").selectAll(".tick").selectAll("text").style("transform",this.xTickTransform))},t.prototype.renderYAxis=function(){var t=this;if(!1!==this.options.axis.y.isActive){this.chartContainer.select("#y-axis-container").remove(),this.yAxisTicksColors=[],this.yAxisElement=this.chartContainer.append("g").attr("id","y-axis-container").style("pointer-events","none").call(this.d3.axisLeft(this.yScale).ticks(this.options.axis.y.ticksCount).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y)));var n=this.yAxisElement.selectAll(".tick").select("text").nodes();this.yAxisTicksColors.map((function(e,r){void 0!==n&&void 0!==n[r]&&t.d3.select(n[r]).attr("color",e)}))}},t.prototype.renderY1Axis=function(){!1!==this.options.axis.y1.isActive&&(this.chartContainer.select("#y1-axis-container").remove(),this.y1AxisElement=this.chartContainer.append("g").attr("id","y1-axis-container").attr("transform","translate("+this.width+",0)").style("pointer-events","none").call(this.d3.axisRight(this.y1Scale).ticks(4).tickSize(2).tickFormat(this.getAxisTicksFormatter(this.options.axis.y1))))},t.prototype.renderCrosshair=function(){this.chartContainer.select("#crosshair-container").remove(),this.crosshair=this.chartContainer.append("g").attr("id","crosshair-container").style("display","none"),this.options.crosshair.orientation!==f.VERTICAL&&this.options.crosshair.orientation!==f.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-x").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("y1",0).attr("y2",this.height).style("pointer-events","none"),this.options.crosshair.orientation!==f.HORIZONTAL&&this.options.crosshair.orientation!==f.BOTH||this.crosshair.append("line").attr("class","crosshair-line").attr("id","crosshair-line-y").attr("fill",this.options.crosshair.color).attr("stroke",this.options.crosshair.color).attr("stroke-width","1px").attr("x1",0).attr("x2",this.width).style("pointer-events","none")},t.prototype.addEvents=function(){var t=this.options.zoomEvents.mouse.pan.keyEvent;!0===this.options.zoomEvents.mouse.pan.isActive&&t===s.MAIN?(this.initPan(),this.initBrush()):(this.initBrush(),this.initPan()),this.chartContainer.on("mouseover",this.onMouseOver.bind(this)).on("mouseout",this.onMouseOut.bind(this)).on("mousemove",this.onMouseMove.bind(this)).on("dblclick.zoom",this.zoomOut.bind(this))},t.prototype.initBrush=function(){if(!1!==this.options.zoomEvents.mouse.zoom.isActive){switch(this.options.zoomEvents.mouse.zoom.orientation){case o.VERTICAL:this.brush=this.d3.brushY();break;case o.HORIZONTAL:this.brush=this.d3.brushX();break;case o.SQUARE:case o.RECTANGLE:this.brush=this.d3.brush();break;default:this.brush=this.d3.brushX()}var t=this.options.zoomEvents.mouse.zoom.keyEvent;this.brush.extent([[0,0],[this.width,this.height]]).handleSize(20).filter(this.filterByKeyEvent(t)).on("start",this.onBrushStart.bind(this)).on("brush",this.onBrush.bind(this)).on("end",this.onBrushEnd.bind(this)),this.chartContainer.call(this.brush)}},t.prototype.filterByKeyEvent=function(t){var n=this;switch(t){case s.MAIN:return function(){return!n.d3.event.shiftKey};case s.SHIFT:return function(){return n.d3.event.shiftKey};default:throw new Error("Unknown type of KeyEvent: "+t)}},t.prototype.isD3EventKeyEqualOption=function(t,n){return!(!t||!t.sourceEvent)&&t.sourceEvent.shiftKey===(n===s.SHIFT)},t.prototype.initPan=function(){!1===this.options.zoomEvents.mouse.pan.isActive&&!1===this.options.zoomEvents.scroll.pan.isActive&&!1===this.options.zoomEvents.scroll.zoom.isActive||(!1===this.options.zoomEvents.mouse.zoom.isActive&&(this.customOverlay=this.chartContainer.append("rect").attr("class","custom-overlay").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0).attr("pointer-events","all").attr("cursor","crosshair").attr("fill","none")),this.initScaleX=this.xScale.copy(),this.initScaleY=this.yScale.copy(),!0===this.options.axis.y1.isActive&&(this.initScaleY1=this.y1Scale.copy()),this.pan=this.d3.zoom().on("zoom",this.onPanning.bind(this)).on("end",this.onPanningEnd.bind(this)),this.chartContainer.call(this.pan))},t.prototype.renderClipPath=function(){this.clipPath=this.chartContainer.append("defs").append("SVG:clipPath").attr("id",this.rectClipId).append("SVG:rect").attr("width",this.width).attr("height",this.height).attr("x",0).attr("y",0)},t.prototype.renderLegend=function(){var t=this;if(!1!==this.options.renderLegend&&this.series.length>0)for(var n=this.chartContainer.append("g").attr("class","legend-row"),e=function(e){if(U()(r.seriesTargetsWithBounds,r.series[e].target))return"continue";var i=0;null!==n.selectAll("text").node()&&(i=n.node().getBBox().width+25);var o=!1!==r.series[e].visible;n.append("foreignObject").attr("x",i).attr("y",r.legendRowPositionY-12).attr("width",13).attr("height",15).html("<form><input type=checkbox "+(o?"checked":"")+" /></form>").on("click",(function(){void 0!==t.options.eventsCallbacks&&void 0!==t.options.eventsCallbacks.onLegendClick&&t.options.eventsCallbacks.onLegendClick(e)})),n.append("text").attr("x",i+20).attr("y",r.legendRowPositionY).attr("class","metric-legend-"+e).style("font-size","12px").style("fill",r.getSerieColor(e)).text(r.series[e].target).on("click",(function(){void 0!==t.options.eventsCallbacks&&void 0!==t.options.eventsCallbacks.onLegendLabelClick&&t.options.eventsCallbacks.onLegendLabelClick(e)}))},r=this,i=0;i<this.series.length;i++)e(i)},t.prototype.renderYLabel=function(){void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.yAxis&&this.chartContainer.append("text").attr("y",0-this.margin.left).attr("x",0-this.height/2).attr("dy","1em").attr("class","y-axis-label").attr("transform","rotate(-90)").style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.yAxis)},t.prototype.renderXLabel=function(){if(void 0!==this.options.labelFormat&&void 0!==this.options.labelFormat.xAxis){var t=this.height+this.margin.top+this.margin.bottom-35;0===this.series.length&&(t+=20),this.chartContainer.append("text").attr("class","x-axis-label").attr("x",this.width/2).attr("y",t).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text(this.options.labelFormat.xAxis)}},t.prototype.renderNoDataPointsMessage=function(){this.chartContainer.append("text").attr("class","alert-text").attr("x",this.width/2).attr("y",this.height/2).style("text-anchor","middle").style("font-size","14px").style("fill","currentColor").text("No data points")},t.prototype.onPanning=function(){var t=this.d3.event;null!==t.sourceEvent&&void 0!==t.sourceEvent&&(this.rescaleMetricAndAxis(t),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panning?this.options.eventsCallbacks.panning({ranges:[this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange],d3Event:t}):console.log("on panning, but there is no callback"))},t.prototype.rescaleMetricAndAxis=function(t){this.isPanning=!0,this.onMouseOut(),this.onPanningRescale(t),this.renderYAxis(),this.renderXAxis(),this.chartContainer.select(".metrics-rect").attr("transform","translate("+this.state.transform.x+","+this.state.transform.y+"), scale("+this.state.transform.k+")"),this.chartContainer.selectAll(".metric-el").attr("transform","translate("+this.state.transform.x+","+this.state.transform.y+"), scale("+this.state.transform.k+")")},t.prototype.onPanningRescale=function(t){var n=t.sourceEvent.type,e=this.options.zoomEvents.scroll.pan,r=this.options.zoomEvents.scroll.zoom;if("wheel"===n){if(!0===e.isActive&&this.isD3EventKeyEqualOption(t,e.keyEvent))return void this.onScrollPanningRescale(t);if(!0===r.isActive&&this.isD3EventKeyEqualOption(t,r.keyEvent)){var i=r.orientation,o=void 0;switch(i){case u.HORIZONTAL:o=t.transform.k+",1",this.rescaleAxisX(t.transform.x);break;case u.VERTICAL:o="1,"+t.transform.k,this.rescaleAxisY(t.transform.y);break;case u.BOTH:o=t.transform.k,this.rescaleAxisX(t.transform.x),this.rescaleAxisY(t.transform.y);break;default:throw new Error("Unknown type of PanOrientation: "+i)}return void(this.state.transform.k=o)}}else if(!this.options.zoomEvents.mouse.pan.isActive)return;var a=this.options.zoomEvents.mouse.pan.orientation;a!==u.HORIZONTAL&&a!==u.BOTH||this.rescaleAxisX(t.transform.x),a!==u.VERTICAL&&a!==u.BOTH||this.rescaleAxisY(t.transform.y)},t.prototype.rescaleAxisX=function(t){this.state.transform={x:t};var n=this.d3.event.transform.rescaleX(this.initScaleX);this.xAxisElement.call(this.d3.axisBottom(this.xScale).scale(n)),this.state.xValueRange=[n.invert(0),n.invert(this.width)]},t.prototype.rescaleAxisY=function(t){this.state.transform={y:t};var n=this.d3.event.transform.rescaleY(this.initScaleY);if(this.yAxisElement.call(this.d3.axisLeft(this.yScale).scale(n)),this.state.yValueRange=[n.invert(0),n.invert(this.height)],this.y1AxisElement){var e=this.d3.event.transform.rescaleY(this.initScaleY1);this.y1AxisElement.call(this.d3.axisLeft(this.y1Scale).scale(e)),this.state.y1ValueRange=[e.invert(0),e.invert(this.height)],this.y1AxisElement.selectAll("line").attr("x2",2),this.y1AxisElement.selectAll("text").attr("x",5)}},t.prototype.onScrollPanningRescale=function(t){var n=this.options.zoomEvents.scroll.pan,e=n.panStep,r=n.orientation;switch(r){case a.HORIZONTAL:var i=Math.sign(t.transform.x),o=this.absXScale.invert(Math.abs(e)),u=this.state.xValueRange;this.state.xValueRange=[u[0]+i*o,u[1]+i*o];var c=this.state.transform.x+i*e;this.state.transform={x:c};break;case a.VERTICAL:var f=Math.min(Math.abs(t.sourceEvent.deltaY),.1*this.height),s=Math.sign(t.transform.y);!0===this.options.axis.y.invert&&(s=-s);var l=this.state.yValueRange,h=this.absYScale.invert(f);if(this.deltaYTransform=this.deltaYTransform+f,this.deltaYTransform>.9*this.height)return;this.state.yValueRange=[l[0]-s*h,l[1]-s*h];var d=this.state.transform.y+s*f;this.state.transform={y:d};break;default:throw new Error("Unknown type of scroll pan orientation: "+r)}},t.prototype.onPanningEnd=function(){this.isPanning=!1,this.deltaYTransform=0,this.onMouseOut(),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panningEnd?this.options.eventsCallbacks.panningEnd([this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange]):console.log("on panning end, but there is no callback")},t.prototype.onBrush=function(){var t=this.d3.event.selection;if(this.options.zoomEvents.mouse.zoom.orientation===o.SQUARE&&null!==t){var n=this.getSelectionAttrs(t);void 0!==n&&this.chartContainer.select(".selection").attr("x",n.x).attr("y",n.y).attr("width",n.width).attr("height",n.height)}},t.prototype.getSelectionAttrs=function(t){if(null!==this.brushStartSelection&&null!=t){var n=this.brushStartSelection[0],e=this.brushStartSelection[1],r=t[0][0],i=t[1][0],o=t[0][1],u=i-r,a=t[1][1]-o,c=Math.min(u,a);return{x:r===n?n:n-c,y:o===e?e:e-c,width:c,height:c}}},t.prototype.onBrushStart=function(){this.isBrushing;var t=this.d3.event.selection;null!==t&&t.length>0&&(this.brushStartSelection=this.d3.event.selection[0]),this.onMouseOut()},t.prototype.onBrushEnd=function(){var t=this.d3.event.selection;if(this.isBrushing,!(null==t||t.length<2)){var n,e;switch(this.chartContainer.call(this.brush.move,null),this.options.zoomEvents.mouse.zoom.orientation){case o.HORIZONTAL:var r=this.xScale.invert(t[0]),i=this.xScale.invert(t[1]);if(Math.abs(i-r)<this.timeInterval)return;n=[r,i],this.state.xValueRange=n;break;case o.VERTICAL:e=[this.yScale.invert(t[0]),this.yScale.invert(t[1])],this.state.yValueRange=e;break;case o.RECTANGLE:n=[this.xScale.invert(t[0][0]),this.xScale.invert(t[1][0])],e=[this.yScale.invert(t[0][1]),this.yScale.invert(t[1][1])],this.state.xValueRange=n,this.state.yValueRange=e;break;case o.SQUARE:var u=this.getSelectionAttrs(t);if(void 0===u)break;n=[this.xScale.invert(u.x),this.xScale.invert(u.x+u.width)],e=[this.yScale.invert(u.y),this.yScale.invert(u.y+u.height)],this.state.xValueRange=n,this.state.yValueRange=e,this.brushStartSelection=null}void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomIn?this.options.eventsCallbacks.zoomIn([n,e]):console.log("zoom in, but there is no callback")}},t.prototype.zoomOut=function(){if(!0!==this.isOutOfChart()){var t={x:this.xScale.invert(this.width/2),y:this.yScale.invert(this.height/2)};void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.zoomOut?this.options.eventsCallbacks.zoomOut(t):console.log("zoom out, but there is no callback")}},Object.defineProperty(t.prototype,"absXScale",{get:function(){var t=[0,Math.abs(this.state.getMaxValueX()-this.state.getMinValueX())];return this.d3.scaleLinear().domain(t).range([0,this.width])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"absYScale",{get:function(){var t=[0,Math.abs(this.state.getMaxValueY()-this.state.getMinValueY())];return this.d3.scaleLinear().domain(t).range([0,this.height])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xScale",{get:function(){return this.state.xScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yScale",{get:function(){return this.state.yScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1Scale",{get:function(){return this.state.y1Scale},enumerable:!1,configurable:!0}),t.prototype.getd3TimeRangeEvery=function(t){if(void 0===this.options.timeInterval||void 0===this.options.timeInterval.timeFormat)return this.d3.timeMinute.every(t);switch(this.options.timeInterval.timeFormat){case i.SECOND:return this.d3.utcSecond.every(t);case i.MINUTE:return this.d3.utcMinute.every(t);case i.HOUR:return this.d3.utcHour.every(t);case i.DAY:return this.d3.utcDay.every(t);case i.MONTH:return this.d3.utcMonth.every(t);case i.YEAR:return this.d3.utcYear.every(t);default:return this.d3.utcMinute.every(t)}},Object.defineProperty(t.prototype,"serieTimestampRange",{get:function(){if(0!==this.series.length){var t=q()(this.series[0].datapoints)[0];return(H()(this.series[0].datapoints)[0]-t)/1e3}},enumerable:!1,configurable:!0}),t.prototype.getAxisTicksFormatter=function(t){var n=this;if(0===t.ticksCount)return function(t){return""};switch(t.format){case c.TIME:return this.d3.timeFormat("%m/%d %H:%M");case c.NUMERIC:return function(t){return t};case c.STRING:throw new Error("Not supported AxisFormat type "+t.format+" yet");case c.CUSTOM:return void 0===t.valueFormatter?(console.warn("Value formatter for axis is not defined. Path options.axis.{?}.valueFormatter"),function(t){return t}):function(e,r){return void 0!==t.colorFormatter&&n.yAxisTicksColors.push(t.colorFormatter(e,r)),t.valueFormatter(e,r)};default:throw new Error("Unknown time format for axis: "+t.format)}},Object.defineProperty(t.prototype,"timeInterval",{get:function(){return void 0!==this.series&&this.series.length>0&&this.series[0].datapoints.length>1?this.series[0].datapoints[1][0]-this.series[0].datapoints[0][0]:void 0!==this.options.timeInterval&&void 0!==this.options.timeInterval.count?6e4*this.options.timeInterval.count:6e4},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xTickTransform",{get:function(){if(void 0===this.options.tickFormat||void 0===this.options.tickFormat.xTickOrientation)return"";switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:return"translate(-10px, 50px) rotate(-90deg)";case r.HORIZONTAL:return"";case r.DIAGONAL:return"translate(-30px, 30px) rotate(-45deg)";default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extraMargin",{get:function(){var t={top:0,right:0,bottom:0,left:0};if(void 0!==this.options.tickFormat&&void 0!==this.options.tickFormat.xTickOrientation)switch(this.options.tickFormat.xTickOrientation){case r.VERTICAL:t.bottom+=80;break;case r.HORIZONTAL:break;case r.DIAGONAL:t.left+=15,t.bottom+=50,t.right+=10}return void 0!==this.options.labelFormat&&(void 0!==this.options.labelFormat.xAxis&&this.options.labelFormat.xAxis.length>0&&(t.bottom+=20),void 0!==this.options.labelFormat.yAxis&&this.options.labelFormat.yAxis.length>0&&(t.left+=20)),this.series.length>0&&(t.bottom+=25),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.d3Node.node().clientWidth-this.margin.left-this.margin.right},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.d3Node.node().clientHeight-this.margin.top-this.margin.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legendRowPositionY",{get:function(){return this.height+this.margin.bottom-5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return void 0!==this.options.margin?this.options.margin:X()({},tt,this.extraMargin,G.a)},enumerable:!1,configurable:!0}),t.prototype.formattedBound=function(t,n){return K()(t,"$__metric_name",n)},t.prototype.clearState=function(){this.state.clearState()},t.prototype.getSerieColor=function(t){if(void 0===this.series[t])throw new Error("Can't get color for unexisting serie: "+t+", there are only "+this.series.length+" series");var n=this.series[t].color;return void 0===n&&(n=F[t%F.length]),n},Object.defineProperty(t.prototype,"seriesTargetsWithBounds",{get:function(){var t=this;if(void 0===this.options.bounds||void 0===this.options.bounds.upper||void 0===this.options.bounds.lower)return[];var n=[];return this.series.forEach((function(e){n.push(t.formattedBound(t.options.bounds.upper,e.target)),n.push(t.formattedBound(t.options.bounds.lower,e.target))})),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleSeries",{get:function(){return this.series.filter((function(t){return!1!==t.visible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rectClipId",{get:function(){return 0===this._clipPathUID.length&&(this._clipPathUID=Math.random().toString(36).substr(2,12)),this._clipPathUID},enumerable:!1,configurable:!0}),t.prototype.isOutOfChart=function(){var t=this.d3.mouse(this.chartContainer.node()),n=t[0],e=t[1];return e>this.height+1||e<-1||n>this.width||n<0},t}()}])},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,e){"use strict";e.r(n),e.d(n,"ChartwerkScatterPod",(function(){return mA})),e.d(n,"VueChartwerkScatterPodObject",(function(){return xA})),e.d(n,"TickOrientation",(function(){return u.TickOrientation})),e.d(n,"TimeFormat",(function(){return u.TimeFormat})),e.d(n,"PointType",(function(){return i})),e.d(n,"LineType",(function(){return o}));var r={};e.r(r),e.d(r,"version",(function(){return D})),e.d(r,"bisect",(function(){return V})),e.d(r,"bisectRight",(function(){return Y})),e.d(r,"bisectLeft",(function(){return q})),e.d(r,"ascending",(function(){return F})),e.d(r,"bisector",(function(){return B})),e.d(r,"cross",(function(){return X})),e.d(r,"descending",(function(){return W})),e.d(r,"deviation",(function(){return K})),e.d(r,"extent",(function(){return Q})),e.d(r,"histogram",(function(){return ht})),e.d(r,"thresholdFreedmanDiaconis",(function(){return pt})),e.d(r,"thresholdScott",(function(){return vt})),e.d(r,"thresholdSturges",(function(){return lt})),e.d(r,"max",(function(){return gt})),e.d(r,"mean",(function(){return yt})),e.d(r,"median",(function(){return _t})),e.d(r,"merge",(function(){return bt})),e.d(r,"min",(function(){return mt})),e.d(r,"pairs",(function(){return H})),e.d(r,"permute",(function(){return xt})),e.d(r,"quantile",(function(){return dt})),e.d(r,"range",(function(){return it})),e.d(r,"scan",(function(){return wt})),e.d(r,"shuffle",(function(){return Mt})),e.d(r,"sum",(function(){return At})),e.d(r,"ticks",(function(){return ct})),e.d(r,"tickIncrement",(function(){return ft})),e.d(r,"tickStep",(function(){return st})),e.d(r,"transpose",(function(){return St})),e.d(r,"variance",(function(){return Z})),e.d(r,"zip",(function(){return Et})),e.d(r,"axisTop",(function(){return Lt})),e.d(r,"axisRight",(function(){return It})),e.d(r,"axisBottom",(function(){return Dt})),e.d(r,"axisLeft",(function(){return Ft})),e.d(r,"brush",(function(){return ao})),e.d(r,"brushX",(function(){return oo})),e.d(r,"brushY",(function(){return uo})),e.d(r,"brushSelection",(function(){return io})),e.d(r,"chord",(function(){return yo})),e.d(r,"ribbon",(function(){return No})),e.d(r,"nest",(function(){return zo})),e.d(r,"set",(function(){return qo})),e.d(r,"map",(function(){return Po})),e.d(r,"keys",(function(){return Vo})),e.d(r,"values",(function(){return Ho})),e.d(r,"entries",(function(){return $o})),e.d(r,"color",(function(){return ke})),e.d(r,"rgb",(function(){return Oe})),e.d(r,"hsl",(function(){return Ie})),e.d(r,"lab",(function(){return Ko})),e.d(r,"hcl",(function(){return ou})),e.d(r,"lch",(function(){return iu})),e.d(r,"gray",(function(){return Zo})),e.d(r,"cubehelix",(function(){return du})),e.d(r,"contours",(function(){return Mu})),e.d(r,"contourDensity",(function(){return Tu})),e.d(r,"dispatch",(function(){return $t})),e.d(r,"drag",(function(){return Lu})),e.d(r,"dragDisable",(function(){return ce})),e.d(r,"dragEnable",(function(){return fe})),e.d(r,"dsvFormat",(function(){return qu})),e.d(r,"csvParse",(function(){return Hu})),e.d(r,"csvParseRows",(function(){return $u})),e.d(r,"csvFormat",(function(){return Xu})),e.d(r,"csvFormatBody",(function(){return Wu})),e.d(r,"csvFormatRows",(function(){return Gu})),e.d(r,"csvFormatRow",(function(){return Zu})),e.d(r,"csvFormatValue",(function(){return Ku})),e.d(r,"tsvParse",(function(){return Ju})),e.d(r,"tsvParseRows",(function(){return ta})),e.d(r,"tsvFormat",(function(){return na})),e.d(r,"tsvFormatBody",(function(){return ea})),e.d(r,"tsvFormatRows",(function(){return ra})),e.d(r,"tsvFormatRow",(function(){return ia})),e.d(r,"tsvFormatValue",(function(){return oa})),e.d(r,"autoType",(function(){return ua})),e.d(r,"easeLinear",(function(){return ca})),e.d(r,"easeQuad",(function(){return la})),e.d(r,"easeQuadIn",(function(){return fa})),e.d(r,"easeQuadOut",(function(){return sa})),e.d(r,"easeQuadInOut",(function(){return la})),e.d(r,"easeCubic",(function(){return Ci})),e.d(r,"easeCubicIn",(function(){return ki})),e.d(r,"easeCubicOut",(function(){return Ei})),e.d(r,"easeCubicInOut",(function(){return Ci})),e.d(r,"easePoly",(function(){return pa})),e.d(r,"easePolyIn",(function(){return ha})),e.d(r,"easePolyOut",(function(){return da})),e.d(r,"easePolyInOut",(function(){return pa})),e.d(r,"easeSin",(function(){return ba})),e.d(r,"easeSinIn",(function(){return ya})),e.d(r,"easeSinOut",(function(){return _a})),e.d(r,"easeSinInOut",(function(){return ba})),e.d(r,"easeExp",(function(){return Ma})),e.d(r,"easeExpIn",(function(){return xa})),e.d(r,"easeExpOut",(function(){return wa})),e.d(r,"easeExpInOut",(function(){return Ma})),e.d(r,"easeCircle",(function(){return ka})),e.d(r,"easeCircleIn",(function(){return Aa})),e.d(r,"easeCircleOut",(function(){return Sa})),e.d(r,"easeCircleInOut",(function(){return ka})),e.d(r,"easeBounce",(function(){return Ca})),e.d(r,"easeBounceIn",(function(){return Ea})),e.d(r,"easeBounceOut",(function(){return Ca})),e.d(r,"easeBounceInOut",(function(){return Ta})),e.d(r,"easeBack",(function(){return ja})),e.d(r,"easeBackIn",(function(){return Oa})),e.d(r,"easeBackOut",(function(){return Na})),e.d(r,"easeBackInOut",(function(){return ja})),e.d(r,"easeElastic",(function(){return za})),e.d(r,"easeElasticIn",(function(){return Pa})),e.d(r,"easeElasticOut",(function(){return za})),e.d(r,"easeElasticInOut",(function(){return La})),e.d(r,"blob",(function(){return Da})),e.d(r,"buffer",(function(){return Ba})),e.d(r,"dsv",(function(){return Va})),e.d(r,"csv",(function(){return Ha})),e.d(r,"tsv",(function(){return $a})),e.d(r,"image",(function(){return Xa})),e.d(r,"json",(function(){return Ga})),e.d(r,"text",(function(){return Ya})),e.d(r,"xml",(function(){return Ka})),e.d(r,"html",(function(){return Qa})),e.d(r,"svg",(function(){return Ja})),e.d(r,"forceCenter",(function(){return tc})),e.d(r,"forceCollide",(function(){return dc})),e.d(r,"forceLink",(function(){return gc})),e.d(r,"forceManyBody",(function(){return xc})),e.d(r,"forceRadial",(function(){return wc})),e.d(r,"forceSimulation",(function(){return mc})),e.d(r,"forceX",(function(){return Mc})),e.d(r,"forceY",(function(){return Ac})),e.d(r,"formatDefaultLocale",(function(){return Bc})),e.d(r,"format",(function(){return jc})),e.d(r,"formatPrefix",(function(){return Rc})),e.d(r,"formatLocale",(function(){return Fc})),e.d(r,"formatSpecifier",(function(){return Cc})),e.d(r,"FormatSpecifier",(function(){return Tc})),e.d(r,"precisionFixed",(function(){return Uc})),e.d(r,"precisionPrefix",(function(){return Yc})),e.d(r,"precisionRound",(function(){return qc})),e.d(r,"geoArea",(function(){return zf})),e.d(r,"geoBounds",(function(){return Es})),e.d(r,"geoCentroid",(function(){return Fs})),e.d(r,"geoCircle",(function(){return Zs})),e.d(r,"geoClipAntimeridian",(function(){return cl})),e.d(r,"geoClipCircle",(function(){return fl})),e.d(r,"geoClipExtent",(function(){return pl})),e.d(r,"geoClipRectangle",(function(){return sl})),e.d(r,"geoContains",(function(){return jl})),e.d(r,"geoDistance",(function(){return Ml})),e.d(r,"geoGraticule",(function(){return zl})),e.d(r,"geoGraticule10",(function(){return Ll})),e.d(r,"geoInterpolate",(function(){return Ul})),e.d(r,"geoLength",(function(){return ml})),e.d(r,"geoPath",(function(){return Fh})),e.d(r,"geoAlbers",(function(){return id})),e.d(r,"geoAlbersUsa",(function(){return od})),e.d(r,"geoAzimuthalEqualArea",(function(){return fd})),e.d(r,"geoAzimuthalEqualAreaRaw",(function(){return cd})),e.d(r,"geoAzimuthalEquidistant",(function(){return ld})),e.d(r,"geoAzimuthalEquidistantRaw",(function(){return sd})),e.d(r,"geoConicConformal",(function(){return yd})),e.d(r,"geoConicConformalRaw",(function(){return gd})),e.d(r,"geoConicEqualArea",(function(){return rd})),e.d(r,"geoConicEqualAreaRaw",(function(){return ed})),e.d(r,"geoConicEquidistant",(function(){return xd})),e.d(r,"geoConicEquidistantRaw",(function(){return md})),e.d(r,"geoEqualEarth",(function(){return Cd})),e.d(r,"geoEqualEarthRaw",(function(){return Ed})),e.d(r,"geoEquirectangular",(function(){return bd})),e.d(r,"geoEquirectangularRaw",(function(){return _d})),e.d(r,"geoGnomonic",(function(){return Od})),e.d(r,"geoGnomonicRaw",(function(){return Td})),e.d(r,"geoIdentity",(function(){return Nd})),e.d(r,"geoProjection",(function(){return Jh})),e.d(r,"geoProjectionMutator",(function(){return td})),e.d(r,"geoMercator",(function(){return dd})),e.d(r,"geoMercatorRaw",(function(){return hd})),e.d(r,"geoNaturalEarth1",(function(){return Rd})),e.d(r,"geoNaturalEarth1Raw",(function(){return jd})),e.d(r,"geoOrthographic",(function(){return zd})),e.d(r,"geoOrthographicRaw",(function(){return Pd})),e.d(r,"geoStereographic",(function(){return Id})),e.d(r,"geoStereographicRaw",(function(){return Ld})),e.d(r,"geoTransverseMercator",(function(){return Fd})),e.d(r,"geoTransverseMercatorRaw",(function(){return Dd})),e.d(r,"geoRotation",(function(){return Xs})),e.d(r,"geoStream",(function(){return Ef})),e.d(r,"geoTransform",(function(){return Bh})),e.d(r,"cluster",(function(){return qd})),e.d(r,"hierarchy",(function(){return Hd})),e.d(r,"pack",(function(){return gp})),e.d(r,"packSiblings",(function(){return sp})),e.d(r,"packEnclose",(function(){return Kd})),e.d(r,"partition",(function(){return wp})),e.d(r,"stratify",(function(){return Ep})),e.d(r,"tree",(function(){return Pp})),e.d(r,"treemap",(function(){return Fp})),e.d(r,"treemapBinary",(function(){return Bp})),e.d(r,"treemapDice",(function(){return xp})),e.d(r,"treemapSlice",(function(){return zp})),e.d(r,"treemapSliceDice",(function(){return Up})),e.d(r,"treemapSquarify",(function(){return Dp})),e.d(r,"treemapResquarify",(function(){return Yp})),e.d(r,"interpolate",(function(){return sr})),e.d(r,"interpolateArray",(function(){return tr})),e.d(r,"interpolateBasis",(function(){return Ue})),e.d(r,"interpolateBasisClosed",(function(){return Ye})),e.d(r,"interpolateDate",(function(){return er})),e.d(r,"interpolateDiscrete",(function(){return qp})),e.d(r,"interpolateHue",(function(){return Vp})),e.d(r,"interpolateNumber",(function(){return rr})),e.d(r,"interpolateNumberArray",(function(){return Qe})),e.d(r,"interpolateObject",(function(){return ir})),e.d(r,"interpolateRound",(function(){return Hp})),e.d(r,"interpolateString",(function(){return fr})),e.d(r,"interpolateTransformCss",(function(){return Xr})),e.d(r,"interpolateTransformSvg",(function(){return Wr})),e.d(r,"interpolateZoom",(function(){return Wp})),e.d(r,"interpolateRgb",(function(){return We})),e.d(r,"interpolateRgbBasis",(function(){return Ze})),e.d(r,"interpolateRgbBasisClosed",(function(){return Ke})),e.d(r,"interpolateHsl",(function(){return Zp})),e.d(r,"interpolateHslLong",(function(){return Kp})),e.d(r,"interpolateLab",(function(){return Qp})),e.d(r,"interpolateHcl",(function(){return tv})),e.d(r,"interpolateHclLong",(function(){return nv})),e.d(r,"interpolateCubehelix",(function(){return rv})),e.d(r,"interpolateCubehelixLong",(function(){return iv})),e.d(r,"piecewise",(function(){return ov})),e.d(r,"quantize",(function(){return uv})),e.d(r,"path",(function(){return So})),e.d(r,"polygonArea",(function(){return av})),e.d(r,"polygonCentroid",(function(){return cv})),e.d(r,"polygonHull",(function(){return lv})),e.d(r,"polygonContains",(function(){return hv})),e.d(r,"polygonLength",(function(){return dv})),e.d(r,"quadtree",(function(){return ac})),e.d(r,"randomUniform",(function(){return vv})),e.d(r,"randomNormal",(function(){return gv})),e.d(r,"randomLogNormal",(function(){return yv})),e.d(r,"randomBates",(function(){return bv})),e.d(r,"randomIrwinHall",(function(){return _v})),e.d(r,"randomExponential",(function(){return mv})),e.d(r,"scaleBand",(function(){return Cv})),e.d(r,"scalePoint",(function(){return Ov})),e.d(r,"scaleIdentity",(function(){return Vv})),e.d(r,"scaleLinear",(function(){return qv})),e.d(r,"scaleLog",(function(){return Jv})),e.d(r,"scaleSymlog",(function(){return rg})),e.d(r,"scaleOrdinal",(function(){return Ev})),e.d(r,"scaleImplicit",(function(){return kv})),e.d(r,"scalePow",(function(){return cg})),e.d(r,"scaleSqrt",(function(){return fg})),e.d(r,"scaleQuantile",(function(){return sg})),e.d(r,"scaleQuantize",(function(){return lg})),e.d(r,"scaleThreshold",(function(){return hg})),e.d(r,"scaleTime",(function(){return G_})),e.d(r,"scaleUtc",(function(){return ob})),e.d(r,"scaleSequential",(function(){return cb})),e.d(r,"scaleSequentialLog",(function(){return fb})),e.d(r,"scaleSequentialPow",(function(){return lb})),e.d(r,"scaleSequentialSqrt",(function(){return hb})),e.d(r,"scaleSequentialSymlog",(function(){return sb})),e.d(r,"scaleSequentialQuantile",(function(){return db})),e.d(r,"scaleDiverging",(function(){return vb})),e.d(r,"scaleDivergingLog",(function(){return gb})),e.d(r,"scaleDivergingPow",(function(){return _b})),e.d(r,"scaleDivergingSqrt",(function(){return bb})),e.d(r,"scaleDivergingSymlog",(function(){return yb})),e.d(r,"tickFormat",(function(){return Uv})),e.d(r,"schemeCategory10",(function(){return xb})),e.d(r,"schemeAccent",(function(){return wb})),e.d(r,"schemeDark2",(function(){return Mb})),e.d(r,"schemePaired",(function(){return Ab})),e.d(r,"schemePastel1",(function(){return Sb})),e.d(r,"schemePastel2",(function(){return kb})),e.d(r,"schemeSet1",(function(){return Eb})),e.d(r,"schemeSet2",(function(){return Cb})),e.d(r,"schemeSet3",(function(){return Tb})),e.d(r,"schemeTableau10",(function(){return Ob})),e.d(r,"interpolateBrBG",(function(){return Rb})),e.d(r,"schemeBrBG",(function(){return jb})),e.d(r,"interpolatePRGn",(function(){return zb})),e.d(r,"schemePRGn",(function(){return Pb})),e.d(r,"interpolatePiYG",(function(){return Ib})),e.d(r,"schemePiYG",(function(){return Lb})),e.d(r,"interpolatePuOr",(function(){return Fb})),e.d(r,"schemePuOr",(function(){return Db})),e.d(r,"interpolateRdBu",(function(){return Ub})),e.d(r,"schemeRdBu",(function(){return Bb})),e.d(r,"interpolateRdGy",(function(){return qb})),e.d(r,"schemeRdGy",(function(){return Yb})),e.d(r,"interpolateRdYlBu",(function(){return Hb})),e.d(r,"schemeRdYlBu",(function(){return Vb})),e.d(r,"interpolateRdYlGn",(function(){return Xb})),e.d(r,"schemeRdYlGn",(function(){return $b})),e.d(r,"interpolateSpectral",(function(){return Gb})),e.d(r,"schemeSpectral",(function(){return Wb})),e.d(r,"interpolateBuGn",(function(){return Kb})),e.d(r,"schemeBuGn",(function(){return Zb})),e.d(r,"interpolateBuPu",(function(){return Jb})),e.d(r,"schemeBuPu",(function(){return Qb})),e.d(r,"interpolateGnBu",(function(){return nm})),e.d(r,"schemeGnBu",(function(){return tm})),e.d(r,"interpolateOrRd",(function(){return rm})),e.d(r,"schemeOrRd",(function(){return em})),e.d(r,"interpolatePuBuGn",(function(){return om})),e.d(r,"schemePuBuGn",(function(){return im})),e.d(r,"interpolatePuBu",(function(){return am})),e.d(r,"schemePuBu",(function(){return um})),e.d(r,"interpolatePuRd",(function(){return fm})),e.d(r,"schemePuRd",(function(){return cm})),e.d(r,"interpolateRdPu",(function(){return lm})),e.d(r,"schemeRdPu",(function(){return sm})),e.d(r,"interpolateYlGnBu",(function(){return dm})),e.d(r,"schemeYlGnBu",(function(){return hm})),e.d(r,"interpolateYlGn",(function(){return vm})),e.d(r,"schemeYlGn",(function(){return pm})),e.d(r,"interpolateYlOrBr",(function(){return ym})),e.d(r,"schemeYlOrBr",(function(){return gm})),e.d(r,"interpolateYlOrRd",(function(){return bm})),e.d(r,"schemeYlOrRd",(function(){return _m})),e.d(r,"interpolateBlues",(function(){return xm})),e.d(r,"schemeBlues",(function(){return mm})),e.d(r,"interpolateGreens",(function(){return Mm})),e.d(r,"schemeGreens",(function(){return wm})),e.d(r,"interpolateGreys",(function(){return Sm})),e.d(r,"schemeGreys",(function(){return Am})),e.d(r,"interpolatePurples",(function(){return Em})),e.d(r,"schemePurples",(function(){return km})),e.d(r,"interpolateReds",(function(){return Tm})),e.d(r,"schemeReds",(function(){return Cm})),e.d(r,"interpolateOranges",(function(){return Nm})),e.d(r,"schemeOranges",(function(){return Om})),e.d(r,"interpolateCividis",(function(){return jm})),e.d(r,"interpolateCubehelixDefault",(function(){return Rm})),e.d(r,"interpolateRainbow",(function(){return Im})),e.d(r,"interpolateWarm",(function(){return Pm})),e.d(r,"interpolateCool",(function(){return zm})),e.d(r,"interpolateSinebow",(function(){return Um})),e.d(r,"interpolateTurbo",(function(){return Ym})),e.d(r,"interpolateViridis",(function(){return Vm})),e.d(r,"interpolateMagma",(function(){return Hm})),e.d(r,"interpolateInferno",(function(){return $m})),e.d(r,"interpolatePlasma",(function(){return Xm})),e.d(r,"create",(function(){return Wm})),e.d(r,"creator",(function(){return Fn})),e.d(r,"local",(function(){return Zm})),e.d(r,"matcher",(function(){return Kt})),e.d(r,"mouse",(function(){return pr})),e.d(r,"namespace",(function(){return un})),e.d(r,"namespaces",(function(){return on})),e.d(r,"clientPoint",(function(){return hr})),e.d(r,"select",(function(){return oe})),e.d(r,"selectAll",(function(){return Qm})),e.d(r,"selection",(function(){return ie})),e.d(r,"selector",(function(){return Wt})),e.d(r,"selectorAll",(function(){return Zt})),e.d(r,"style",(function(){return yn})),e.d(r,"touch",(function(){return dr})),e.d(r,"touches",(function(){return Jm})),e.d(r,"window",(function(){return dn})),e.d(r,"event",(function(){return Hn})),e.d(r,"customEvent",(function(){return Kn})),e.d(r,"arc",(function(){return mx})),e.d(r,"area",(function(){return kx})),e.d(r,"line",(function(){return Sx})),e.d(r,"pie",(function(){return Tx})),e.d(r,"areaRadial",(function(){return zx})),e.d(r,"radialArea",(function(){return zx})),e.d(r,"lineRadial",(function(){return Px})),e.d(r,"radialLine",(function(){return Px})),e.d(r,"pointRadial",(function(){return Lx})),e.d(r,"linkHorizontal",(function(){return Vx})),e.d(r,"linkVertical",(function(){return Hx})),e.d(r,"linkRadial",(function(){return $x})),e.d(r,"symbol",(function(){return sw})),e.d(r,"symbols",(function(){return fw})),e.d(r,"symbolCircle",(function(){return Xx})),e.d(r,"symbolCross",(function(){return Wx})),e.d(r,"symbolDiamond",(function(){return Kx})),e.d(r,"symbolSquare",(function(){return ew})),e.d(r,"symbolStar",(function(){return nw})),e.d(r,"symbolTriangle",(function(){return iw})),e.d(r,"symbolWye",(function(){return cw})),e.d(r,"curveBasisClosed",(function(){return gw})),e.d(r,"curveBasisOpen",(function(){return _w})),e.d(r,"curveBasis",(function(){return pw})),e.d(r,"curveBundle",(function(){return mw})),e.d(r,"curveCardinalClosed",(function(){return Sw})),e.d(r,"curveCardinalOpen",(function(){return Ew})),e.d(r,"curveCardinal",(function(){return Mw})),e.d(r,"curveCatmullRomClosed",(function(){return jw})),e.d(r,"curveCatmullRomOpen",(function(){return Pw})),e.d(r,"curveCatmullRom",(function(){return Ow})),e.d(r,"curveLinearClosed",(function(){return Lw})),e.d(r,"curveLinear",(function(){return wx})),e.d(r,"curveMonotoneX",(function(){return Vw})),e.d(r,"curveMonotoneY",(function(){return Hw})),e.d(r,"curveNatural",(function(){return Ww})),e.d(r,"curveStep",(function(){return Zw})),e.d(r,"curveStepAfter",(function(){return Qw})),e.d(r,"curveStepBefore",(function(){return Kw})),e.d(r,"stack",(function(){return eM})),e.d(r,"stackOffsetExpand",(function(){return rM})),e.d(r,"stackOffsetDiverging",(function(){return iM})),e.d(r,"stackOffsetNone",(function(){return Jw})),e.d(r,"stackOffsetSilhouette",(function(){return oM})),e.d(r,"stackOffsetWiggle",(function(){return uM})),e.d(r,"stackOrderAppearance",(function(){return aM})),e.d(r,"stackOrderAscending",(function(){return fM})),e.d(r,"stackOrderDescending",(function(){return lM})),e.d(r,"stackOrderInsideOut",(function(){return hM})),e.d(r,"stackOrderNone",(function(){return tM})),e.d(r,"stackOrderReverse",(function(){return dM})),e.d(r,"timeInterval",(function(){return vg})),e.d(r,"timeMillisecond",(function(){return Zg})),e.d(r,"timeMilliseconds",(function(){return Kg})),e.d(r,"utcMillisecond",(function(){return Zg})),e.d(r,"utcMilliseconds",(function(){return Kg})),e.d(r,"timeSecond",(function(){return Xg})),e.d(r,"timeSeconds",(function(){return Wg})),e.d(r,"utcSecond",(function(){return Xg})),e.d(r,"utcSeconds",(function(){return Wg})),e.d(r,"timeMinute",(function(){return Vg})),e.d(r,"timeMinutes",(function(){return Hg})),e.d(r,"timeHour",(function(){return Ug})),e.d(r,"timeHours",(function(){return Yg})),e.d(r,"timeDay",(function(){return Dg})),e.d(r,"timeDays",(function(){return Fg})),e.d(r,"timeWeek",(function(){return Mg})),e.d(r,"timeWeeks",(function(){return Og})),e.d(r,"timeSunday",(function(){return Mg})),e.d(r,"timeSundays",(function(){return Og})),e.d(r,"timeMonday",(function(){return Ag})),e.d(r,"timeMondays",(function(){return Ng})),e.d(r,"timeTuesday",(function(){return Sg})),e.d(r,"timeTuesdays",(function(){return jg})),e.d(r,"timeWednesday",(function(){return kg})),e.d(r,"timeWednesdays",(function(){return Rg})),e.d(r,"timeThursday",(function(){return Eg})),e.d(r,"timeThursdays",(function(){return Pg})),e.d(r,"timeFriday",(function(){return Cg})),e.d(r,"timeFridays",(function(){return zg})),e.d(r,"timeSaturday",(function(){return Tg})),e.d(r,"timeSaturdays",(function(){return Lg})),e.d(r,"timeMonth",(function(){return mg})),e.d(r,"timeMonths",(function(){return xg})),e.d(r,"timeYear",(function(){return yg})),e.d(r,"timeYears",(function(){return _g})),e.d(r,"utcMinute",(function(){return rb})),e.d(r,"utcMinutes",(function(){return ib})),e.d(r,"utcHour",(function(){return tb})),e.d(r,"utcHours",(function(){return nb})),e.d(r,"utcDay",(function(){return py})),e.d(r,"utcDays",(function(){return vy})),e.d(r,"utcWeek",(function(){return Jg})),e.d(r,"utcWeeks",(function(){return uy})),e.d(r,"utcSunday",(function(){return Jg})),e.d(r,"utcSundays",(function(){return uy})),e.d(r,"utcMonday",(function(){return ty})),e.d(r,"utcMondays",(function(){return ay})),e.d(r,"utcTuesday",(function(){return ny})),e.d(r,"utcTuesdays",(function(){return cy})),e.d(r,"utcWednesday",(function(){return ey})),e.d(r,"utcWednesdays",(function(){return fy})),e.d(r,"utcThursday",(function(){return ry})),e.d(r,"utcThursdays",(function(){return sy})),e.d(r,"utcFriday",(function(){return iy})),e.d(r,"utcFridays",(function(){return ly})),e.d(r,"utcSaturday",(function(){return oy})),e.d(r,"utcSaturdays",(function(){return hy})),e.d(r,"utcMonth",(function(){return K_})),e.d(r,"utcMonths",(function(){return Q_})),e.d(r,"utcYear",(function(){return yy})),e.d(r,"utcYears",(function(){return _y})),e.d(r,"timeFormatDefaultLocale",(function(){return H_})),e.d(r,"timeFormat",(function(){return Ay})),e.d(r,"timeParse",(function(){return Sy})),e.d(r,"utcFormat",(function(){return ky})),e.d(r,"utcParse",(function(){return Ey})),e.d(r,"timeFormatLocale",(function(){return wy})),e.d(r,"isoFormat",(function(){return pM})),e.d(r,"isoParse",(function(){return vM})),e.d(r,"now",(function(){return Mr})),e.d(r,"timer",(function(){return kr})),e.d(r,"timerFlush",(function(){return Er})),e.d(r,"timeout",(function(){return Nr})),e.d(r,"interval",(function(){return gM})),e.d(r,"transition",(function(){return Mi})),e.d(r,"active",(function(){return ji})),e.d(r,"interrupt",(function(){return Yr})),e.d(r,"voronoi",(function(){return nA})),e.d(r,"zoom",(function(){return gA})),e.d(r,"zoomTransform",(function(){return uA})),e.d(r,"zoomIdentity",(function(){return oA}));var i,o,u=e(1);!function(t){t.NONE="none",t.CIRCLE="circle",t.RECTANGLE="rectangle"}(i||(i={})),function(t){t.NONE="none",t.SOLID="solid",t.DASHED="dashed"}(o||(o={}));const a=134217729;function c(t,n,e,r,i){let o,u,a,c,f=n[0],s=r[0],l=0,h=0;s>f==s>-f?(o=f,f=n[++l]):(o=s,s=r[++h]);let d=0;if(l<t&&h<e)for(s>f==s>-f?(u=f+o,a=o-(u-f),f=n[++l]):(u=s+o,a=o-(u-s),s=r[++h]),o=u,0!==a&&(i[d++]=a);l<t&&h<e;)s>f==s>-f?(u=o+f,c=u-o,a=o-(u-c)+(f-c),f=n[++l]):(u=o+s,c=u-o,a=o-(u-c)+(s-c),s=r[++h]),o=u,0!==a&&(i[d++]=a);for(;l<t;)u=o+f,c=u-o,a=o-(u-c)+(f-c),f=n[++l],o=u,0!==a&&(i[d++]=a);for(;h<e;)u=o+s,c=u-o,a=o-(u-c)+(s-c),s=r[++h],o=u,0!==a&&(i[d++]=a);return 0===o&&0!==d||(i[d++]=o),d}function f(t,n){let e=n[0];for(let r=1;r<t;r++)e+=n[r];return e}function s(t){return new Float64Array(t)}const l=s(4),h=s(8),d=s(12),p=s(16),v=s(4);function g(t,n,e,r,i,o){const u=(n-o)*(e-i),s=(t-i)*(r-o),g=u-s;if(0===u||0===s||u>0!=s>0)return g;const y=Math.abs(u+s);return Math.abs(g)>=33306690738754716e-32*y?g:-function(t,n,e,r,i,o,u){let s,g,y,_,b,m,x,w,M,A,S,k,E,C,T,O,N,j;const R=t-i,P=e-i,z=n-o,L=r-o;C=R*L,m=a*R,x=m-(m-R),w=R-x,m=a*L,M=m-(m-L),A=L-M,T=w*A-(C-x*M-w*M-x*A),O=z*P,m=a*z,x=m-(m-z),w=z-x,m=a*P,M=m-(m-P),A=P-M,N=w*A-(O-x*M-w*M-x*A),S=T-N,b=T-S,l[0]=T-(S+b)+(b-N),k=C+S,b=k-C,E=C-(k-b)+(S-b),S=E-O,b=E-S,l[1]=E-(S+b)+(b-O),j=k+S,b=j-k,l[2]=k-(j-b)+(S-b),l[3]=j;let I=f(4,l),D=22204460492503146e-32*u;if(I>=D||-I>=D)return I;if(b=t-R,s=t-(R+b)+(b-i),b=e-P,y=e-(P+b)+(b-i),b=n-z,g=n-(z+b)+(b-o),b=r-L,_=r-(L+b)+(b-o),0===s&&0===g&&0===y&&0===_)return I;if(D=11093356479670487e-47*u+33306690738754706e-32*Math.abs(I),I+=R*_+L*s-(z*y+P*g),I>=D||-I>=D)return I;C=s*L,m=a*s,x=m-(m-s),w=s-x,m=a*L,M=m-(m-L),A=L-M,T=w*A-(C-x*M-w*M-x*A),O=g*P,m=a*g,x=m-(m-g),w=g-x,m=a*P,M=m-(m-P),A=P-M,N=w*A-(O-x*M-w*M-x*A),S=T-N,b=T-S,v[0]=T-(S+b)+(b-N),k=C+S,b=k-C,E=C-(k-b)+(S-b),S=E-O,b=E-S,v[1]=E-(S+b)+(b-O),j=k+S,b=j-k,v[2]=k-(j-b)+(S-b),v[3]=j;const F=c(4,l,4,v,h);C=R*_,m=a*R,x=m-(m-R),w=R-x,m=a*_,M=m-(m-_),A=_-M,T=w*A-(C-x*M-w*M-x*A),O=z*y,m=a*z,x=m-(m-z),w=z-x,m=a*y,M=m-(m-y),A=y-M,N=w*A-(O-x*M-w*M-x*A),S=T-N,b=T-S,v[0]=T-(S+b)+(b-N),k=C+S,b=k-C,E=C-(k-b)+(S-b),S=E-O,b=E-S,v[1]=E-(S+b)+(b-O),j=k+S,b=j-k,v[2]=k-(j-b)+(S-b),v[3]=j;const B=c(F,h,4,v,d);C=s*_,m=a*s,x=m-(m-s),w=s-x,m=a*_,M=m-(m-_),A=_-M,T=w*A-(C-x*M-w*M-x*A),O=g*y,m=a*g,x=m-(m-g),w=g-x,m=a*y,M=m-(m-y),A=y-M,N=w*A-(O-x*M-w*M-x*A),S=T-N,b=T-S,v[0]=T-(S+b)+(b-N),k=C+S,b=k-C,E=C-(k-b)+(S-b),S=E-O,b=E-S,v[1]=E-(S+b)+(b-O),j=k+S,b=j-k,v[2]=k-(j-b)+(S-b),v[3]=j;const U=c(B,d,4,v,p);return p[U-1]}(t,n,e,r,i,o,y)}s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(8),s(8),s(8),s(4),s(8),s(8),s(8),s(12);s(192),s(192);s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(8),s(4),s(4),s(4),s(8),s(16),s(16),s(16),s(32),s(32),s(48),s(64);s(1152),s(1152);s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(4),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(24),s(1152),s(1152),s(1152),s(1152),s(1152),s(2304),s(2304),s(3456),s(5760),s(8),s(8),s(8),s(16),s(24),s(48),s(48),s(96),s(192),s(384),s(384),s(384),s(768);s(96),s(96),s(96),s(1152);const y=Math.pow(2,-52),_=new Uint32Array(512);class b{static from(t,n=S,e=k){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new b(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let u=1/0,a=1/0,c=-1/0,f=-1/0;for(let n=0;n<o;n++){const e=t[2*n],r=t[2*n+1];e<u&&(u=e),r<a&&(a=r),e>c&&(c=e),r>f&&(f=r),this._ids[n]=n}const s=(u+c)/2,l=(a+f)/2;let h,d,p,v=1/0;for(let n=0;n<o;n++){const e=m(s,l,t[2*n],t[2*n+1]);e<v&&(h=n,v=e)}const _=t[2*h],b=t[2*h+1];v=1/0;for(let n=0;n<o;n++){if(n===h)continue;const e=m(_,b,t[2*n],t[2*n+1]);e<v&&e>0&&(d=n,v=e)}let x=t[2*d],A=t[2*d+1],S=1/0;for(let n=0;n<o;n++){if(n===h||n===d)continue;const e=w(_,b,x,A,t[2*n],t[2*n+1]);e<S&&(p=n,S=e)}let k=t[2*p],E=t[2*p+1];if(S===1/0){for(let n=0;n<o;n++)this._dists[n]=t[2*n]-t[0]||t[2*n+1]-t[1];M(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(g(_,b,x,A,k,E)<0){const t=d,n=x,e=A;d=p,x=k,A=E,p=t,k=n,E=e}const C=function(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c);return{x:t+(f*s-a*l)*h,y:n+(u*l-c*s)*h}}(_,b,x,A,k,E);this._cx=C.x,this._cy=C.y;for(let n=0;n<o;n++)this._dists[n]=m(t[2*n],t[2*n+1],C.x,C.y);M(this._ids,this._dists,0,o-1),this._hullStart=h;let T=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(_,b)]=h,i[this._hashKey(x,A)]=d,i[this._hashKey(k,E)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,u,a=0;a<this._ids.length;a++){const c=this._ids[a],f=t[2*c],s=t[2*c+1];if(a>0&&Math.abs(f-o)<=y&&Math.abs(s-u)<=y)continue;if(o=f,u=s,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(f,s);t<this._hashSize&&(l=i[(n+t)%this._hashSize],-1===l||l===e[l]);t++);l=n[l];let v,_=l;for(;v=e[_],g(f,s,t[2*_],t[2*_+1],t[2*v],t[2*v+1])>=0;)if(_=v,_===l){_=-1;break}if(-1===_)continue;let b=this._addTriangle(_,c,e[_],-1,-1,r[_]);r[c]=this._legalize(b+2),r[_]=b,T++;let m=e[_];for(;v=e[m],g(f,s,t[2*m],t[2*m+1],t[2*v],t[2*v+1])<0;)b=this._addTriangle(m,c,v,r[c],-1,r[m]),r[c]=this._legalize(b+2),e[m]=m,T--,m=v;if(_===l)for(;v=n[_],g(f,s,t[2*v],t[2*v+1],t[2*_],t[2*_+1])<0;)b=this._addTriangle(v,c,_,-1,r[_],r[v]),this._legalize(b+2),r[v]=b,e[_]=_,T--,_=v;this._hullStart=n[c]=_,e[_]=n[m]=c,e[c]=m,i[this._hashKey(f,s)]=c,i[this._hashKey(t[2*_],t[2*_+1])]=_}this.hull=new Uint32Array(T);for(let t=0,n=this._hullStart;t<T;t++)this.hull[t]=n,n=e[n];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const u=e[t],a=t-t%3;if(o=a+(t+2)%3,-1===u){if(0===i)break;t=_[--i];continue}const c=u-u%3,f=a+(t+1)%3,s=c+(u+2)%3,l=n[o],h=n[t],d=n[f],p=n[s];if(x(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[u]=l;const r=e[s];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===s){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(u,e[o]),this._link(o,s);const a=c+(u+1)%3;i<_.length&&(_[i++]=a)}else{if(0===i)break;t=_[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const u=this.trianglesLen;return this._triangles[u]=t,this._triangles[u+1]=n,this._triangles[u+2]=e,this._link(u,r),this._link(u+1,i),this._link(u+2,o),this.trianglesLen+=3,u}}function m(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function x(t,n,e,r,i,o,u,a){const c=t-u,f=n-a,s=e-u,l=r-a,h=i-u,d=o-a,p=s*s+l*l,v=h*h+d*d;return c*(l*v-p*d)-f*(s*v-p*h)+(c*c+f*f)*(s*d-l*h)<0}function w(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c),d=(f*s-a*l)*h,p=(u*l-c*s)*h;return d*d+p*p}function M(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let u=i-1;for(;u>=e&&n[t[u]]>o;)t[u+1]=t[u--];t[u+1]=r}else{let i=e+1,o=r;A(t,e+r>>1,i),n[t[e]]>n[t[r]]&&A(t,e,r),n[t[i]]>n[t[r]]&&A(t,i,r),n[t[e]]>n[t[i]]&&A(t,e,i);const u=t[i],a=n[u];for(;;){do{i++}while(n[t[i]]<a);do{o--}while(n[t[o]]>a);if(o<i)break;A(t,i,o)}t[e+1]=t[o],t[o]=u,r-i+1>=o-e?(M(t,n,i,r),M(t,n,e,o-1)):(M(t,n,e,o-1),M(t,n,i,r))}}function A(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function S(t){return t[0]}function k(t){return t[1]}class E{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class C{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class T{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,u=0,a=e.length;o<a;o+=3,u+=2){const a=2*e[o],c=2*e[o+1],f=2*e[o+2],s=t[a],l=t[a+1],h=t[c],d=t[c+1],p=t[f],v=t[f+1],g=h-s,y=d-l,_=p-s,b=v-l,m=2*(g*b-y*_);if(Math.abs(m)<1e-9){let i=1e9;const o=2*e[0];i*=Math.sign((t[o]-s)*b-(t[o+1]-l)*_),n=(s+p)/2-i*b,r=(l+v)/2+i*_}else{const t=1/m,e=g*g+y*y,i=_*_+b*b;n=s+(b*e-y*i)*t,r=l+(g*i-_*e)*t}i[u]=n,i[u+1]=r}let o,u,a,c=n[n.length-1],f=4*c,s=t[2*c],l=t[2*c+1];r.fill(0);for(let e=0;e<n.length;++e)c=n[e],o=f,u=s,a=l,f=4*c,s=t[2*c],l=t[2*c+1],r[o+2]=r[f]=a-l,r[o+3]=r[f+1]=s-u}render(t){const n=null==t?t=new E:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:u}=this;if(i.length<=1)return null;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(r<n)continue;const i=2*Math.floor(n/3),u=2*Math.floor(r/3),a=o[i],c=o[i+1],f=o[u],s=o[u+1];this._renderSegment(a,c,f,s,t)}let a,c=i[i.length-1];for(let n=0;n<i.length;++n){a=c,c=i[n];const e=2*Math.floor(r[c]/3),f=o[e],s=o[e+1],l=4*a,h=this._project(f,s,u[l+2],u[l+3]);h&&this._renderSegment(f,s,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new E:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new E:void 0,r=this._clip(t);if(null===r||!r.length)return;n.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||n.lineTo(r[t],r[t+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new C;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const u=this._regioncode(t,n),a=this._regioncode(e,r);0===u&&0===a?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,u,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)==n&&(e=+e)==e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,u=t.length;o<u;o+=2)if(n[r]==t[o]&&n[r+1]==t[o+1]&&n[(r+2)%i]==t[(o+u-2)%u]&&n[(r+3)%i]==t[(o+u-1)%u]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const u=[];let a=o;do{const e=Math.floor(a/3);if(u.push(n[2*e],n[2*e+1]),a=a%3==2?a-2:a+1,i[a]!==t)break;a=r[a]}while(a!==o&&-1!==a);return u}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n)}_clipFinite(t,n){const e=n.length;let r,i,o,u,a=null,c=n[e-2],f=n[e-1],s=this._regioncode(c,f),l=0;for(let h=0;h<e;h+=2)if(r=c,i=f,c=n[h],f=n[h+1],o=s,s=this._regioncode(c,f),0===o&&0===s)u=l,l=0,a?a.push(c,f):a=[c,f];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,c,f,o,s)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(c,f,r,i,s,o)))continue;[d,p,e,h]=n,u=l,l=this._edgecode(e,h),u&&l&&this._edge(t,u,l,a,a.length),a?a.push(e,h):a=[e,h]}u=l,l=this._edgecode(d,p),u&&l&&this._edge(t,u,l,a,a.length),a?a.push(d,p):a=[d,p]}if(a)u=l,l=this._edgecode(a[0],a[1]),u&&l&&this._edge(t,u,l,a,a.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(t,n,e,r,i,o){for(;;){if(0===i&&0===o)return[t,n,e,r];if(i&o)return null;let u,a,c=i||o;8&c?(u=t+(e-t)*(this.ymax-n)/(r-n),a=this.ymax):4&c?(u=t+(e-t)*(this.ymin-n)/(r-n),a=this.ymin):2&c?(a=n+(r-n)*(this.xmax-t)/(e-t),u=this.xmax):(a=n+(r-n)*(this.xmin-t)/(e-t),u=this.xmin),i?(t=u,n=a,i=this._regioncode(t,n)):(e=u,r=a,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let u,a=Array.from(n);if((u=this._project(a[0],a[1],e,r))&&a.unshift(u[0],u[1]),(u=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(u[0],u[1]),a=this._clipFinite(t,a))for(let n,e=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);e<r;e+=2)n=i,i=this._edgecode(a[e],a[e+1]),n&&i&&(e=this._edge(t,n,i,a,e),r=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const n=(t+2)%r.length,e=(t+4)%r.length;(r[t]===r[n]&&r[n]===r[e]||r[t+1]===r[n+1]&&r[n+1]===r[e+1])&&(r.splice(n,2),t-=2)}return i}_project(t,n,e,r){let i,o,u,a=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<a&&(u=this.ymin,o=t+(a=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<a&&(u=this.ymax,o=t+(a=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<a&&(o=this.xmax,u=n+(a=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<a&&(o=this.xmin,u=n+(a=i)*r)}return[o,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const O=2*Math.PI,N=Math.pow;function j(t){return t[0]}function R(t){return t[1]}function P(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class z{static from(t,n=j,e=R,r){return new z("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let u=0;u<i;++u){const i=t[u];o[2*u]=n.call(r,i,u,t),o[2*u+1]=e.call(r,i,u,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new b(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t<n.length;t+=3){const r=2*n[t],i=2*n[t+1],o=2*n[t+2];if((e[o]-e[r])*(e[i+1]-e[r+1])-(e[i]-e[r])*(e[o+1]-e[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},(t,n)=>n).sort((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]);const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t<e;++t){const e=P(n[2*t],n[2*t+1],i);n[2*t]=e[0],n[2*t+1]=e[1]}this._delaunator=new b(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),u=this._hullIndex.fill(-1);for(let t=0,n=e.length;t<n;++t){const n=i[t%3==2?t-2:t+1];-1!==e[t]&&-1!==o[n]||(o[n]=t)}for(let t=0,n=r.length;t<n;++t)u[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new T(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:u}=this;if(u){const n=u.indexOf(t);return n>0&&(yield u[n-1]),void(n<u.length-1&&(yield u[n+1]))}const a=n[t];if(-1===a)return;let c=a,f=-1;do{if(yield f=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==f&&(yield n))}}while(c!==a)}find(t,n,e=0){if((t=+t)!=t||(n=+n)!=n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:u,triangles:a,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let f=t,s=N(n-c[2*t],2)+N(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=a[h];const l=N(n-c[2*r],2)+N(e-c[2*r+1],2);if(l<s&&(s=l,f=r),h=h%3==2?h-2:h+1,a[h]!==t)break;if(h=u[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&N(n-c[2*h],2)+N(e-c[2*h+1],2)<s)return h;break}}while(h!==l);return f}render(t){const n=null==t?t=new E:void 0,{points:e,halfedges:r,triangles:i}=this;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o<n)continue;const u=2*i[n],a=2*i[o];t.moveTo(e[u],e[u+1]),t.lineTo(e[a],e[a+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){void 0!==n||t&&"function"==typeof t.moveTo||(n=t,t=null),n=null==n?2:+n;const e=null==t?t=new E:void 0,{points:r}=this;for(let e=0,i=r.length;e<i;e+=2){const i=r[e],o=r[e+1];t.moveTo(i+n,o),t.arc(i,o,n,0,O)}return e&&e.value()}renderHull(t){const n=null==t?t=new E:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let n=1;n<o;++n){const i=2*e[n];t.lineTo(r[i],r[i+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new C;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new E:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],u=2*i[t+1],a=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[u],r[u+1]),n.lineTo(r[a],r[a+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new C;return this.renderTriangle(t,n),n.value()}}var L=e(0),I=function(){function t(t,n,e){this.series=t,this._delaunayData=this.getDatapointsForDelaunay(),this.setDelaunayDiagram(n,e)}return Object.defineProperty(t.prototype,"data",{get:function(){if(this._delaunayData&&0!==this._delaunayData.length)return this._delaunayData},enumerable:!1,configurable:!0}),t.prototype.setDelaunayDiagram=function(t,n){var e=this;this._delaunayData?(console.time("delaunay-init"),this._delaunayDiagram=z.from(this._delaunayData,(function(n){return t(n[0])}),(function(t){return n(e.series[L.last(t)].yOrientation)(t[1])})),console.timeEnd("delaunay-init")):console.warn("No data for delaunay initialization")},t.prototype.findPointIndex=function(t,n){if(this._delaunayDiagram){var e=this._delaunayDiagram.find(t,n);if(-1!==e)return e}},t.prototype.getDataRowByIndex=function(t){if(this.data)return this.data[t]},t.prototype.getDatapointsForDelaunay=function(){var t=this.series.filter((function(t){return t.pointType!==i.NONE}));if(0!==t.length)return this.concatSeriesDatapoints(t)},t.prototype.concatSeriesDatapoints=function(t){var n=this,e=L.map(t,(function(t){var e=n.getSerieIdxByTarget(t.target);return L.map(t.datapoints,(function(t){return L.concat(t,e)}))}));return L.union.apply(L,e)},t.prototype.getSerieIdxByTarget=function(t){var n=L.findIndex(this.series,(function(n){return n.target===t}));if(-1===n)throw new Error("Can't find serie with target: "+t);return n},t}(),D="5.16.0",F=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},B=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return F(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}};var U=B(F),Y=U.right,q=U.left,V=Y,H=function(t,n){null==n&&(n=$);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);e<r;)o[e]=n(i,i=t[++e]);return o};function $(t,n){return[t,n]}var X=function(t,n,e){var r,i,o,u,a=t.length,c=n.length,f=new Array(a*c);for(null==e&&(e=$),r=o=0;r<a;++r)for(u=t[r],i=0;i<c;++i,++o)f[o]=e(u,n[i]);return f},W=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},G=function(t){return null===t?NaN:+t},Z=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,c=0;if(null==n)for(;++u<i;)isNaN(e=G(t[u]))||(c+=(r=e-a)*(e-(a+=r/++o)));else for(;++u<i;)isNaN(e=G(n(t[u],u,t)))||(c+=(r=e-a)*(e-(a+=r/++o)));if(o>1)return c/(o-1)},K=function(t,n){var e=Z(t,n);return e?Math.sqrt(e):e},Q=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u<o;)if(null!=(e=t[u])&&e>=e)for(r=i=e;++u<o;)null!=(e=t[u])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++u<o;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=i=e;++u<o;)null!=(e=n(t[u],u,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},J=Array.prototype,tt=J.slice,nt=J.map,et=function(t){return function(){return t}},rt=function(t){return t},it=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},ot=Math.sqrt(50),ut=Math.sqrt(10),at=Math.sqrt(2),ct=function(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=ft(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/u;return r&&o.reverse(),o};function ft(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ot?10:o>=ut?5:o>=at?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ot?10:o>=ut?5:o>=at?2:1)}function st(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ot?i*=10:o>=ut?i*=5:o>=at&&(i*=2),n<t?-i:i}var lt=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},ht=function(){var t=rt,n=Q,e=lt;function r(r){var i,o,u=r.length,a=new Array(u);for(i=0;i<u;++i)a[i]=t(r[i],i,r);var c=n(a),f=c[0],s=c[1],l=e(a,f,s);Array.isArray(l)||(l=st(f,s,l),l=it(Math.ceil(f/l)*l,s,l));for(var h=l.length;l[0]<=f;)l.shift(),--h;for(;l[h-1]>s;)l.pop(),--h;var d,p=new Array(h+1);for(i=0;i<=h;++i)(d=p[i]=[]).x0=i>0?l[i-1]:f,d.x1=i<h?l[i]:s;for(i=0;i<u;++i)f<=(o=a[i])&&o<=s&&p[V(l,o,0,h)].push(r[i]);return p}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:et(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:et([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?et(tt.call(t)):et(t),r):e},r},dt=function(t,n,e){if(null==e&&(e=G),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},pt=function(t,n,e){return t=nt.call(t,G).sort(F),Math.ceil((e-n)/(2*(dt(t,.75)-dt(t,.25))*Math.pow(t.length,-1/3)))},vt=function(t,n,e){return Math.ceil((e-n)/(3.5*K(t)*Math.pow(t.length,-1/3)))},gt=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r},yt=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=G(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=G(n(t[o],o,t)))?--i:u+=e;if(i)return u/i},_t=function(t,n){var e,r=t.length,i=-1,o=[];if(null==n)for(;++i<r;)isNaN(e=G(t[i]))||o.push(e);else for(;++i<r;)isNaN(e=G(n(t[i],i,t)))||o.push(e);return dt(o.sort(F),.5)},bt=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e},mt=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},xt=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},wt=function(t,n){if(e=t.length){var e,r,i=0,o=0,u=t[o];for(null==n&&(n=F);++i<e;)(n(r=t[i],u)<0||0!==n(u,u))&&(u=r,o=i);return 0===n(u,u)?o:void 0}},Mt=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},At=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o},St=function(t){if(!(i=t.length))return[];for(var n=-1,e=mt(t,kt),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r};function kt(t){return t.length}var Et=function(){return St(arguments)},Ct=Array.prototype.slice,Tt=function(t){return t};function Ot(t){return"translate("+(t+.5)+",0)"}function Nt(t){return"translate(0,"+(t+.5)+")"}function jt(t){return function(n){return+t(n)}}function Rt(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function Pt(){return!this.__axis}function zt(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,c=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",s=1===t||3===t?Ot:Nt;function l(l){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):Tt:i,p=Math.max(o,0)+a,v=n.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,_=(n.bandwidth?Rt:jt)(n.copy()),b=l.selection?l.selection():l,m=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(h,n).order(),w=x.exit(),M=x.enter().append("g").attr("class","tick"),A=x.select("line"),S=x.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",c*o)),S=S.merge(M.append("text").attr("fill","currentColor").attr(f,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),l!==b&&(m=m.transition(l),x=x.transition(l),A=A.transition(l),S=S.transition(l),w=w.transition(l).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=_(t))?s(t):this.getAttribute("transform")})),M.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return s(n&&isFinite(n=n(t))?n:_(t))}))),w.remove(),m.attr("d",4===t||2==t?u?"M"+c*u+","+g+"H0.5V"+y+"H"+c*u:"M0.5,"+g+"V"+y:u?"M"+g+","+c*u+"V0.5H"+y+"V"+c*u:"M"+g+",0.5H"+y),x.attr("opacity",1).attr("transform",(function(t){return s(_(t))})),A.attr(f+"2",c*o),S.attr(f,c*p).text(d),b.filter(Pt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=_}))}return l.scale=function(t){return arguments.length?(n=t,l):n},l.ticks=function(){return e=Ct.call(arguments),l},l.tickArguments=function(t){return arguments.length?(e=null==t?[]:Ct.call(t),l):e.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:Ct.call(t),l):r&&r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(o=u=+t,l):o},l.tickSizeInner=function(t){return arguments.length?(o=+t,l):o},l.tickSizeOuter=function(t){return arguments.length?(u=+t,l):u},l.tickPadding=function(t){return arguments.length?(a=+t,l):a},l}function Lt(t){return zt(1,t)}function It(t){return zt(2,t)}function Dt(t){return zt(3,t)}function Ft(t){return zt(4,t)}var Bt={value:function(){}};function Ut(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Yt(r)}function Yt(t){this._=t}function qt(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function Vt(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Ht(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Bt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Yt.prototype=Ut.prototype={constructor:Yt,on:function(t,n){var e,r=this._,i=qt(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=Ht(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Ht(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=Vt(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Yt(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var $t=Ut;function Xt(){}var Wt=function(t){return null==t?Xt:function(){return this.querySelector(t)}};function Gt(){return[]}var Zt=function(t){return null==t?Gt:function(){return this.querySelectorAll(t)}},Kt=function(t){return function(){return this.matches(t)}},Qt=function(t){return new Array(t.length)};function Jt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Jt.prototype={constructor:Jt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function tn(t,n,e,r,i,o){for(var u,a=0,c=n.length,f=o.length;a<f;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Jt(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function nn(t,n,e,r,i,o,u){var a,c,f,s={},l=n.length,h=o.length,d=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(d[a]=f="$"+u.call(c,c.__data__,a,n),f in s?i[a]=c:s[f]=c);for(a=0;a<h;++a)(c=s[f="$"+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],s[f]=null):e[a]=new Jt(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&s[d[a]]===c&&(i[a]=c)}function en(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var rn="http://www.w3.org/1999/xhtml",on={svg:"http://www.w3.org/2000/svg",xhtml:rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},un=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),on.hasOwnProperty(n)?{space:on[n],local:t}:t};function an(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fn(t,n){return function(){this.setAttribute(t,n)}}function sn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ln(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function hn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var dn=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function pn(t){return function(){this.style.removeProperty(t)}}function vn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function gn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function yn(t,n){return t.style.getPropertyValue(n)||dn(t).getComputedStyle(t,null).getPropertyValue(n)}function _n(t){return function(){delete this[t]}}function bn(t,n){return function(){this[t]=n}}function mn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function xn(t){return t.trim().split(/^|\s+/)}function wn(t){return t.classList||new Mn(t)}function Mn(t){this._node=t,this._names=xn(t.getAttribute("class")||"")}function An(t,n){for(var e=wn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Sn(t,n){for(var e=wn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function kn(t){return function(){An(this,t)}}function En(t){return function(){Sn(this,t)}}function Cn(t,n){return function(){(n.apply(this,arguments)?An:Sn)(this,t)}}Mn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Tn(){this.textContent=""}function On(t){return function(){this.textContent=t}}function Nn(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function jn(){this.innerHTML=""}function Rn(t){return function(){this.innerHTML=t}}function Pn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function zn(){this.nextSibling&&this.parentNode.appendChild(this)}function Ln(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function In(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===rn&&n.documentElement.namespaceURI===rn?n.createElement(t):n.createElementNS(e,t)}}function Dn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Fn=function(t){var n=un(t);return(n.local?Dn:In)(n)};function Bn(){return null}function Un(){var t=this.parentNode;t&&t.removeChild(this)}function Yn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function qn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var Vn={},Hn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Vn={mouseenter:"mouseover",mouseleave:"mouseout"}));function $n(t,n,e){return t=Xn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Xn(t,n,e){return function(r){var i=Hn;Hn=r;try{t.call(this,this.__data__,n,e)}finally{Hn=i}}}function Wn(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function Gn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Zn(t,n,e){var r=Vn.hasOwnProperty(t.type)?$n:Xn;return function(i,o,u){var a,c=this.__on,f=r(n,o,u);if(c)for(var s=0,l=c.length;s<l;++s)if((a=c[s]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=f,a.capture=e),void(a.value=n);this.addEventListener(t.type,f,e),a={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(a):this.__on=[a]}}function Kn(t,n,e,r){var i=Hn;t.sourceEvent=Hn,Hn=t;try{return n.apply(e,r)}finally{Hn=i}}function Qn(t,n,e){var r=dn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function Jn(t,n){return function(){return Qn(this,t,n)}}function te(t,n){return function(){return Qn(this,t,n.apply(this,arguments))}}var ne=[null];function ee(t,n){this._groups=t,this._parents=n}function re(){return new ee([[document.documentElement]],ne)}ee.prototype=re.prototype={constructor:ee,select:function(t){"function"!=typeof t&&(t=Wt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,f=r[i]=new Array(c),s=0;s<c;++s)(o=a[s])&&(u=t.call(o,o.__data__,s,a))&&("__data__"in o&&(u.__data__=o.__data__),f[s]=u);return new ee(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Zt(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,f=0;f<c;++f)(u=a[f])&&(r.push(t.call(u,u.__data__,f,a)),i.push(u));return new ee(r,i)},filter:function(t){"function"!=typeof t&&(t=Kt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new ee(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each((function(t){p[++s]=t})),p;var e,r=n?nn:tn,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),c=new Array(u),f=new Array(u),s=0;s<u;++s){var l=i[s],h=o[s],d=h.length,p=t.call(l,l&&l.__data__,s,i),v=p.length,g=c[s]=new Array(v),y=a[s]=new Array(v);r(l,h,g,y,f[s]=new Array(d),p,n);for(var _,b,m=0,x=0;m<v;++m)if(_=g[m]){for(m>=x&&(x=m+1);!(b=y[x])&&++x<v;);_._next=b||null}}return(a=new ee(a,i))._enter=c,a._exit=f,a},enter:function(){return new ee(this._enter||this._groups.map(Qt),this._parents)},exit:function(){return new ee(this._exit||this._groups.map(Qt),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new ee(u,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=en);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,f=i[o]=new Array(c),s=0;s<c;++s)(u=a[s])&&(f[s]=u);f.sort(n)}return new ee(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=un(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?cn:an:"function"==typeof n?e.local?hn:ln:e.local?sn:fn)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?pn:"function"==typeof n?gn:vn)(t,n,null==e?"":e)):yn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?_n:"function"==typeof n?mn:bn)(t,n)):this.node()[t]},classed:function(t,n){var e=xn(t+"");if(arguments.length<2){for(var r=wn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Cn:n?kn:En)(e,n))},text:function(t){return arguments.length?this.each(null==t?Tn:("function"==typeof t?Nn:On)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?jn:("function"==typeof t?Pn:Rn)(t)):this.node().innerHTML},raise:function(){return this.each(zn)},lower:function(){return this.each(Ln)},append:function(t){var n="function"==typeof t?t:Fn(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Fn(t),r=null==n?Bn:"function"==typeof n?n:Wt(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Un)},clone:function(t){return this.select(t?qn:Yn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=Wn(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Zn:Gn,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,s=a.length;f<s;++f)for(r=0,c=a[f];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?te:Jn)(t,n))}};var ie=re,oe=function(t){return"string"==typeof t?new ee([[document.querySelector(t)]],[document.documentElement]):new ee([[t]],ne)};function ue(){Hn.stopImmediatePropagation()}var ae=function(){Hn.preventDefault(),Hn.stopImmediatePropagation()},ce=function(t){var n=t.document.documentElement,e=oe(t).on("dragstart.drag",ae,!0);"onselectstart"in n?e.on("selectstart.drag",ae,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function fe(t,n){var e=t.document.documentElement,r=oe(t).on("dragstart.drag",null);n&&(r.on("click.drag",ae,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var se=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function le(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function he(){}var de="\\s*([+-]?\\d+)\\s*",pe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ve="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,ye=new RegExp("^rgb\\("+[de,de,de]+"\\)$"),_e=new RegExp("^rgb\\("+[ve,ve,ve]+"\\)$"),be=new RegExp("^rgba\\("+[de,de,de,pe]+"\\)$"),me=new RegExp("^rgba\\("+[ve,ve,ve,pe]+"\\)$"),xe=new RegExp("^hsl\\("+[pe,ve,ve]+"\\)$"),we=new RegExp("^hsla\\("+[pe,ve,ve,pe]+"\\)$"),Me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ae(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function ke(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=ge.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Ee(n):3===e?new Ne(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Ce(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Ce(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=ye.exec(t))?new Ne(n[1],n[2],n[3],1):(n=_e.exec(t))?new Ne(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=be.exec(t))?Ce(n[1],n[2],n[3],n[4]):(n=me.exec(t))?Ce(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=xe.exec(t))?ze(n[1],n[2]/100,n[3]/100,1):(n=we.exec(t))?ze(n[1],n[2]/100,n[3]/100,n[4]):Me.hasOwnProperty(t)?Ee(Me[t]):"transparent"===t?new Ne(NaN,NaN,NaN,0):null}function Ee(t){return new Ne(t>>16&255,t>>8&255,255&t,1)}function Ce(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ne(t,n,e,r)}function Te(t){return t instanceof he||(t=ke(t)),t?new Ne((t=t.rgb()).r,t.g,t.b,t.opacity):new Ne}function Oe(t,n,e,r){return 1===arguments.length?Te(t):new Ne(t,n,e,null==r?1:r)}function Ne(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function je(){return"#"+Pe(this.r)+Pe(this.g)+Pe(this.b)}function Re(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Pe(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ze(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new De(t,n,e,r)}function Le(t){if(t instanceof De)return new De(t.h,t.s,t.l,t.opacity);if(t instanceof he||(t=ke(t)),!t)return new De;if(t instanceof De)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new De(u,a,c,t.opacity)}function Ie(t,n,e,r){return 1===arguments.length?Le(t):new De(t,n,e,null==r?1:r)}function De(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Fe(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Be(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}se(he,ke,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ae,formatHex:Ae,formatHsl:function(){return Le(this).formatHsl()},formatRgb:Se,toString:Se}),se(Ne,Oe,le(he,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:je,formatHex:je,formatRgb:Re,toString:Re})),se(De,Ie,le(he,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new De(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new De(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ne(Fe(t>=240?t-240:t+120,i,r),Fe(t,i,r),Fe(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ue=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return Be((e-r/n)*n,u,i,o,a)}},Ye=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Be((e-r/n)*n,i,o,u,a)}},qe=function(t){return function(){return t}};function Ve(t,n){return function(e){return t+e*n}}function He(t,n){var e=n-t;return e?Ve(t,e>180||e<-180?e-360*Math.round(e/360):e):qe(isNaN(t)?n:t)}function $e(t){return 1==(t=+t)?Xe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):qe(isNaN(n)?e:n)}}function Xe(t,n){var e=n-t;return e?Ve(t,e):qe(isNaN(t)?n:t)}var We=function t(n){var e=$e(n);function r(t,n){var r=e((t=Oe(t)).r,(n=Oe(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=Xe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function Ge(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=Oe(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}var Ze=Ge(Ue),Ke=Ge(Ye),Qe=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function Je(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var tr=function(t,n){return(Je(n)?Qe:nr)(t,n)};function nr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=sr(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}var er=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},rr=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},ir=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=sr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},or=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ur=new RegExp(or.source,"g");var ar,cr,fr=function(t,n){var e,r,i,o=or.lastIndex=ur.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=or.exec(t))&&(r=ur.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:rr(e,r)})),o=ur.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},sr=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?qe(n):("number"===r?rr:"string"===r?(e=ke(n))?(n=e,We):fr:n instanceof ke?We:n instanceof Date?er:Je(n)?Qe:Array.isArray(n)?nr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ir:rr)(t,n)},lr=function(){for(var t,n=Hn;t=n.sourceEvent;)n=t;return n},hr=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},dr=function(t,n,e){arguments.length<3&&(e=n,n=lr().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return hr(t,r);return null},pr=function(t){var n=lr();return n.changedTouches&&(n=n.changedTouches[0]),hr(t,n)},vr=0,gr=0,yr=0,_r=0,br=0,mr=0,xr="object"==typeof performance&&performance.now?performance:Date,wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Mr(){return br||(wr(Ar),br=xr.now()+mr)}function Ar(){br=0}function Sr(){this._call=this._time=this._next=null}function kr(t,n,e){var r=new Sr;return r.restart(t,n,e),r}function Er(){Mr(),++vr;for(var t,n=ar;n;)(t=br-n._time)>=0&&n._call.call(null,t),n=n._next;--vr}function Cr(){br=(_r=xr.now())+mr,vr=gr=0;try{Er()}finally{vr=0,function(){var t,n,e=ar,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ar=n);cr=t,Or(r)}(),br=0}}function Tr(){var t=xr.now(),n=t-_r;n>1e3&&(mr-=n,_r=t)}function Or(t){vr||(gr&&(gr=clearTimeout(gr)),t-br>24?(t<1/0&&(gr=setTimeout(Cr,t-xr.now()-mr)),yr&&(yr=clearInterval(yr))):(yr||(_r=xr.now(),yr=setInterval(Tr,1e3)),vr=1,wr(Cr)))}Sr.prototype=kr.prototype={constructor:Sr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Mr():+e)+(null==n?0:+n),this._next||cr===this||(cr?cr._next=this:ar=this,cr=this),this._call=t,this._time=e,Or()},stop:function(){this._call&&(this._call=null,this._time=1/0,Or())}};var Nr=function(t,n,e){var r=new Sr;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},jr=$t("start","end","cancel","interrupt"),Rr=[],Pr=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var f,s,l,h;if(1!==e.state)return a();for(f in i)if((h=i[f]).name===e.name){if(3===h.state)return Nr(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[f])}if(Nr((function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(l=e.tween.length),f=0,s=-1;f<l;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(r[++s]=h);r.length=s+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=kr((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:jr,tween:Rr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function zr(t,n){var e=Ir(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Lr(t,n){var e=Ir(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Ir(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Dr,Fr,Br,Ur,Yr=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},qr=180/Math.PI,Vr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Hr=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*qr,skewX:Math.atan(c)*qr,scaleX:u,scaleY:a}};function $r(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:rr(t,i)},{i:c-2,x:rr(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:rr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:rr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:rr(t,e)},{i:a-2,x:rr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var Xr=$r((function(t){return"none"===t?Vr:(Dr||(Dr=document.createElement("DIV"),Fr=document.documentElement,Br=document.defaultView),Dr.style.transform=t,t=Br.getComputedStyle(Fr.appendChild(Dr),null).getPropertyValue("transform"),Fr.removeChild(Dr),t=t.slice(7,-1).split(","),Hr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Wr=$r((function(t){return null==t?Vr:(Ur||(Ur=document.createElementNS("http://www.w3.org/2000/svg","g")),Ur.setAttribute("transform",t),(t=Ur.transform.baseVal.consolidate())?(t=t.matrix,Hr(t.a,t.b,t.c,t.d,t.e,t.f)):Vr)}),", ",")",")");function Gr(t,n){var e,r;return function(){var i=Lr(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Zr(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Lr(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}o.tween=i}}function Kr(t,n,e){var r=t._id;return t.each((function(){var t=Lr(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Ir(t,r).value[n]}}var Qr=function(t,n){var e;return("number"==typeof n?rr:n instanceof ke?We:(e=ke(n))?(n=e,We):fr)(t,n)};function Jr(t){return function(){this.removeAttribute(t)}}function ti(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ni(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function ei(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function ri(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttribute(t))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttribute(t)}}function ii(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttributeNS(t.space,t.local)}}function oi(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function ui(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function ai(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&ui(t,i)),e}return i._value=n,i}function ci(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&oi(t,i)),e}return i._value=n,i}function fi(t,n){return function(){zr(this,t).delay=+n.apply(this,arguments)}}function si(t,n){return n=+n,function(){zr(this,t).delay=n}}function li(t,n){return function(){Lr(this,t).duration=+n.apply(this,arguments)}}function hi(t,n){return n=+n,function(){Lr(this,t).duration=n}}function di(t,n){if("function"!=typeof n)throw new Error;return function(){Lr(this,t).ease=n}}function pi(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?zr:Lr;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var vi=ie.prototype.constructor;function gi(t){return function(){this.style.removeProperty(t)}}function yi(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function _i(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&yi(t,o,e)),r}return o._value=n,o}function bi(t){return function(n){this.textContent=t.call(this,n)}}function mi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&bi(r)),n}return r._value=t,r}var xi=0;function wi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Mi(t){return ie().transition(t)}function Ai(){return++xi}var Si=ie.prototype;function ki(t){return t*t*t}function Ei(t){return--t*t*t+1}function Ci(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}wi.prototype=Mi.prototype={constructor:wi,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Wt(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,f=r[u],s=f.length,l=o[u]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,Pr(l[h],n,e,h,l,Ir(a,e)));return new wi(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Zt(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,f=r[a],s=f.length,l=0;l<s;++l)if(c=f[l]){for(var h,d=t.call(c,c.__data__,l,f),p=Ir(c,e),v=0,g=d.length;v<g;++v)(h=d[v])&&Pr(h,n,e,v,d,p);o.push(d),u.push(c)}return new wi(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=Kt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new wi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new wi(u,this._parents,this._name,this._id)},selection:function(){return new vi(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Ai(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)if(u=a[f]){var s=Ir(u,n);Pr(u,t,e,f,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new wi(r,this._parents,t,e)},call:Si.call,nodes:Si.nodes,node:Si.node,size:Si.size,empty:Si.empty,each:Si.each,on:function(t,n){var e=this._id;return arguments.length<2?Ir(this.node(),e).on.on(t):this.each(pi(e,t,n))},attr:function(t,n){var e=un(t),r="transform"===e?Wr:Qr;return this.attrTween(t,"function"==typeof n?(e.local?ii:ri)(e,r,Kr(this,"attr."+t,n)):null==n?(e.local?ti:Jr)(e):(e.local?ei:ni)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=un(t);return this.tween(e,(r.local?ai:ci)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Xr:Qr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=yn(this,t),u=(this.style.removeProperty(t),yn(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,gi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=yn(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=yn(this,t)),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}(t,r,Kr(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var c=Lr(this,t),f=c.on,s=null==c.value[u]?o||(o=gi(n)):void 0;f===e&&i===s||(r=(e=f).copy()).on(a,i=s),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=yn(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,_i(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Kr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,mi(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Ir(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Gr:Zr)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?fi:si)(n,t)):Ir(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?li:hi)(n,t)):Ir(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(di(n,t)):Ir(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},c={value:function(){0==--i&&o()}};e.each((function(){var e=Lr(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n}))}))}};var Ti={time:null,delay:0,duration:250,ease:Ci};function Oi(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Ti.time=Mr(),Ti;return e}ie.prototype.interrupt=function(t){return this.each((function(){Yr(this,t)}))},ie.prototype.transition=function(t){var n,e;t instanceof wi?(n=t._id,t=t._name):(n=Ai(),(e=Ti).time=Mr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)(u=a[f])&&Pr(u,t,n,f,a,e||Oi(u,n));return new wi(r,this._parents,t,n)};var Ni=[null],ji=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new wi([[t]],Ni,n,+r);return null},Ri=function(t){return function(){return t}},Pi=function(t,n,e){this.target=t,this.type=n,this.selection=e};function zi(){Hn.stopImmediatePropagation()}var Li=function(){Hn.preventDefault(),Hn.stopImmediatePropagation()},Ii={name:"drag"},Di={name:"space"},Fi={name:"handle"},Bi={name:"center"};function Ui(t){return[+t[0],+t[1]]}function Yi(t){return[Ui(t[0]),Ui(t[1])]}function qi(t){return function(n){return dr(n,Hn.touches,t)}}var Vi={name:"x",handles:["w","e"].map(Qi),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Hi={name:"y",handles:["n","s"].map(Qi),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},$i={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Qi),input:function(t){return null==t?null:Yi(t)},output:function(t){return t}},Xi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Wi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Gi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Zi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ki={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Qi(t){return{type:t}}function Ji(){return!Hn.ctrlKey&&!Hn.button}function to(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function no(){return navigator.maxTouchPoints||"ontouchstart"in this}function eo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ro(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function io(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function oo(){return co(Vi)}function uo(){return co(Hi)}var ao=function(){return co($i)};function co(t){var n,e=to,r=Ji,i=no,o=!0,u=$t("start","brush","end"),a=6;function c(n){var e=n.property("__brush",v).selectAll(".overlay").data([Qi("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Xi.overlay).merge(e).each((function(){var t=eo(this).extent;oe(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([Qi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Xi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Xi[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=oe(this),n=eo(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(){if((!n||Hn.touches)&&r.apply(this,arguments)){var e,i,u,a,c,l,h,d,p,v,g,y=this,_=Hn.target.__data__.type,b="selection"===(o&&Hn.metaKey?_="overlay":_)?Ii:o&&Hn.altKey?Bi:Fi,m=t===Hi?null:Zi[_],x=t===Vi?null:Ki[_],w=eo(y),M=w.extent,A=w.selection,S=M[0][0],k=M[0][1],E=M[1][0],C=M[1][1],T=0,O=0,N=m&&x&&o&&Hn.shiftKey,j=Hn.touches?qi(Hn.changedTouches[0].identifier):pr,R=j(y),P=R,z=s(y,arguments,!0).beforestart();"overlay"===_?(A&&(p=!0),w.selection=A=[[e=t===Hi?S:R[0],u=t===Vi?k:R[1]],[c=t===Hi?E:e,h=t===Vi?C:u]]):(e=A[0][0],u=A[0][1],c=A[1][0],h=A[1][1]),i=e,a=u,l=c,d=h;var L=oe(y).attr("pointer-events","none"),I=L.selectAll(".overlay").attr("cursor",Xi[_]);if(Hn.touches)z.moved=F,z.ended=U;else{var D=oe(Hn.view).on("mousemove.brush",F,!0).on("mouseup.brush",U,!0);o&&D.on("keydown.brush",Y,!0).on("keyup.brush",q,!0),ce(Hn.view)}zi(),Yr(y),f.call(y),z.start()}function F(){var t=j(y);!N||v||g||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?g=!0:v=!0),P=t,p=!0,Li(),B()}function B(){var t;switch(T=P[0]-R[0],O=P[1]-R[1],b){case Di:case Ii:m&&(T=Math.max(S-e,Math.min(E-c,T)),i=e+T,l=c+T),x&&(O=Math.max(k-u,Math.min(C-h,O)),a=u+O,d=h+O);break;case Fi:m<0?(T=Math.max(S-e,Math.min(E-e,T)),i=e+T,l=c):m>0&&(T=Math.max(S-c,Math.min(E-c,T)),i=e,l=c+T),x<0?(O=Math.max(k-u,Math.min(C-u,O)),a=u+O,d=h):x>0&&(O=Math.max(k-h,Math.min(C-h,O)),a=u,d=h+O);break;case Bi:m&&(i=Math.max(S,Math.min(E,e-T*m)),l=Math.max(S,Math.min(E,c+T*m))),x&&(a=Math.max(k,Math.min(C,u-O*x)),d=Math.max(k,Math.min(C,h+O*x)))}l<i&&(m*=-1,t=e,e=c,c=t,t=i,i=l,l=t,_ in Wi&&I.attr("cursor",Xi[_=Wi[_]])),d<a&&(x*=-1,t=u,u=h,h=t,t=a,a=d,d=t,_ in Gi&&I.attr("cursor",Xi[_=Gi[_]])),w.selection&&(A=w.selection),v&&(i=A[0][0],l=A[1][0]),g&&(a=A[0][1],d=A[1][1]),A[0][0]===i&&A[0][1]===a&&A[1][0]===l&&A[1][1]===d||(w.selection=[[i,a],[l,d]],f.call(y),z.brush())}function U(){if(zi(),Hn.touches){if(Hn.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else fe(Hn.view,p),D.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),I.attr("cursor",Xi.overlay),w.selection&&(A=w.selection),ro(A)&&(w.selection=null,f.call(y)),z.end()}function Y(){switch(Hn.keyCode){case 16:N=m&&x;break;case 18:b===Fi&&(m&&(c=l-T*m,e=i+T*m),x&&(h=d-O*x,u=a+O*x),b=Bi,B());break;case 32:b!==Fi&&b!==Bi||(m<0?c=l-T:m>0&&(e=i-T),x<0?h=d-O:x>0&&(u=a-O),b=Di,I.attr("cursor",Xi.selection),B());break;default:return}Li()}function q(){switch(Hn.keyCode){case 16:N&&(v=g=N=!1,B());break;case 18:b===Bi&&(m<0?c=l:m>0&&(e=i),x<0?h=d:x>0&&(u=a),b=Fi,B());break;case 32:b===Di&&(Hn.altKey?(m&&(c=l-T*m,e=i+T*m),x&&(h=d-O*x,u=a+O*x),b=Bi):(m<0?c=l:m>0&&(e=i),x<0?h=d:x>0&&(u=a),b=Fi),I.attr("cursor",Xi[_]),B());break;default:return}Li()}}function d(){s(this,arguments).moved()}function p(){s(this,arguments).ended()}function v(){var n=this.__brush||{selection:null};return n.extent=Yi(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e){n.selection?n.on("start.brush",(function(){s(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){s(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),o=r.selection,u=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),a=sr(o,u);function c(t){r.selection=1===t&&null===u?null:a(t),f.call(n),i.brush()}return null!==o&&null!==u?c:c(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,o=t.input("function"==typeof e?e.apply(n,r):e,i.extent),u=s(n,r).beforestart();Yr(n),i.selection=null===o?null:o,f.call(n),u.start().brush().end()}))},c.clear=function(t){c.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){Kn(new Pi(c,n,t.output(this.state.selection)),u.apply,u,[n,this.that,this.args])}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:Ri(Yi(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ri(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ri(!!t),c):i},c.handleSize=function(t){return arguments.length?(a=+t,c):a},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=u.on.apply(u,arguments);return t===u?c:t},c}var fo=Math.cos,so=Math.sin,lo=Math.PI,ho=lo/2,po=2*lo,vo=Math.max;function go(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var yo=function(){var t=0,n=null,e=null,r=null;function i(i){var o,u,a,c,f,s,l=i.length,h=[],d=it(l),p=[],v=[],g=v.groups=new Array(l),y=new Array(l*l);for(o=0,f=-1;++f<l;){for(u=0,s=-1;++s<l;)u+=i[f][s];h.push(u),p.push(it(l)),o+=u}for(n&&d.sort((function(t,e){return n(h[t],h[e])})),e&&p.forEach((function(t,n){t.sort((function(t,r){return e(i[n][t],i[n][r])}))})),c=(o=vo(0,po-t*l)/o)?t:po/l,u=0,f=-1;++f<l;){for(a=u,s=-1;++s<l;){var _=d[f],b=p[_][s],m=i[_][b],x=u,w=u+=m*o;y[b*l+_]={index:_,subindex:b,startAngle:x,endAngle:w,value:m}}g[_]={index:_,startAngle:a,endAngle:u,value:h[_]},u+=c}for(f=-1;++f<l;)for(s=f-1;++s<l;){var M=y[s*l+f],A=y[f*l+s];(M.value||A.value)&&v.push(M.value<A.value?{source:A,target:M}:{source:M,target:A})}return r?v.sort(r):v}return i.padAngle=function(n){return arguments.length?(t=vo(0,n),i):t},i.sortGroups=function(t){return arguments.length?(n=t,i):n},i.sortSubgroups=function(t){return arguments.length?(e=t,i):e},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=go(t))._=t,i):r&&r._},i},_o=Array.prototype.slice,bo=function(t){return function(){return t}},mo=Math.PI,xo=2*mo,wo=xo-1e-6;function Mo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ao(){return new Mo}Mo.prototype=Ao.prototype={constructor:Mo,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,f=o-t,s=u-n,l=f*f+s*s;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(s*a-c*f)>1e-6&&i){var h=e-o,d=r-u,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(l),_=i*Math.tan((mo-Math.acos((p+l-v)/(2*g*y)))/2),b=_/y,m=_/g;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*f)+","+(n+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>f*d)+","+(this._x1=t+m*a)+","+(this._y1=n+m*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,f=n+a,s=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),e&&(l<0&&(l=l%xo+xo),l>wo?this._+="A"+e+","+e+",0,1,"+s+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=f):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=mo)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var So=Ao;function ko(t){return t.source}function Eo(t){return t.target}function Co(t){return t.radius}function To(t){return t.startAngle}function Oo(t){return t.endAngle}var No=function(){var t=ko,n=Eo,e=Co,r=To,i=Oo,o=null;function u(){var u,a=_o.call(arguments),c=t.apply(this,a),f=n.apply(this,a),s=+e.apply(this,(a[0]=c,a)),l=r.apply(this,a)-ho,h=i.apply(this,a)-ho,d=s*fo(l),p=s*so(l),v=+e.apply(this,(a[0]=f,a)),g=r.apply(this,a)-ho,y=i.apply(this,a)-ho;if(o||(o=u=So()),o.moveTo(d,p),o.arc(0,0,s,l,h),l===g&&h===y||(o.quadraticCurveTo(0,0,v*fo(g),v*so(g)),o.arc(0,0,v,g,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),u)return o=null,u+""||null}return u.radius=function(t){return arguments.length?(e="function"==typeof t?t:bo(+t),u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:bo(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:bo(+t),u):i},u.source=function(n){return arguments.length?(t=n,u):t},u.target=function(t){return arguments.length?(n=t,u):n},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u};function jo(){}function Ro(t,n){var e=new jo;if(t instanceof jo)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}jo.prototype=Ro.prototype={constructor:jo,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var Po=Ro,zo=function(){var t,n,e,r=[],i=[];function o(e,i,u,a){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,f,s,l=-1,h=e.length,d=r[i++],p=Po(),v=u();++l<h;)(s=p.get(c=d(f=e[l])+""))?s.push(f):p.set(c,[f]);return p.each((function(t,n){a(v,n,o(t,i,u,a))})),v}return e={object:function(t){return o(t,0,Lo,Io)},map:function(t){return o(t,0,Do,Fo)},entries:function(t){return function t(e,o){if(++o>r.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each((function(n,e){u.push({key:e,values:t(n,o)})}))),null!=a?u.sort((function(t,n){return a(t.key,n.key)})):u}(o(t,0,Do,Fo),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function Lo(){return{}}function Io(t,n,e){t[n]=e}function Do(){return Po()}function Fo(t,n,e){t.set(n,e)}function Bo(){}var Uo=Po.prototype;function Yo(t,n){var e=new Bo;if(t instanceof Bo)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}Bo.prototype=Yo.prototype={constructor:Bo,has:Uo.has,add:function(t){return this["$"+(t+="")]=t,this},remove:Uo.remove,clear:Uo.clear,values:Uo.keys,size:Uo.size,empty:Uo.empty,each:Uo.each};var qo=Yo,Vo=function(t){var n=[];for(var e in t)n.push(e);return n},Ho=function(t){var n=[];for(var e in t)n.push(t[e]);return n},$o=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Xo=Math.PI/180,Wo=180/Math.PI;function Go(t){if(t instanceof Qo)return new Qo(t.l,t.a,t.b,t.opacity);if(t instanceof uu)return au(t);t instanceof Ne||(t=Te(t));var n,e,r=eu(t.r),i=eu(t.g),o=eu(t.b),u=Jo((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=u:(n=Jo((.4360747*r+.3850649*i+.1430804*o)/.96422),e=Jo((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Qo(116*u-16,500*(n-u),200*(u-e),t.opacity)}function Zo(t,n){return new Qo(t,0,0,null==n?1:n)}function Ko(t,n,e,r){return 1===arguments.length?Go(t):new Qo(t,n,e,null==r?1:r)}function Qo(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Jo(t){return t>6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function tu(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function nu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function eu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ru(t){if(t instanceof uu)return new uu(t.h,t.c,t.l,t.opacity);if(t instanceof Qo||(t=Go(t)),0===t.a&&0===t.b)return new uu(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Wo;return new uu(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function iu(t,n,e,r){return 1===arguments.length?ru(t):new uu(e,n,t,null==r?1:r)}function ou(t,n,e,r){return 1===arguments.length?ru(t):new uu(t,n,e,null==r?1:r)}function uu(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function au(t){if(isNaN(t.h))return new Qo(t.l,0,0,t.opacity);var n=t.h*Xo;return new Qo(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}se(Qo,Ko,le(he,{brighter:function(t){return new Qo(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Qo(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new Ne(nu(3.1338561*(n=.96422*tu(n))-1.6168667*(t=1*tu(t))-.4906146*(e=.82521*tu(e))),nu(-.9787684*n+1.9161415*t+.033454*e),nu(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),se(uu,ou,le(he,{brighter:function(t){return new uu(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new uu(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return au(this).rgb()}}));var cu=-.29227,fu=-1.7884503806,su=3.5172982438,lu=-.6557636667999999;function hu(t){if(t instanceof pu)return new pu(t.h,t.s,t.l,t.opacity);t instanceof Ne||(t=Te(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(lu*r+fu*n-su*e)/(lu+fu-su),o=r-i,u=(1.97294*(e-i)-cu*o)/-.90649,a=Math.sqrt(u*u+o*o)/(1.97294*i*(1-i)),c=a?Math.atan2(u,o)*Wo-120:NaN;return new pu(c<0?c+360:c,a,i,t.opacity)}function du(t,n,e,r){return 1===arguments.length?hu(t):new pu(t,n,e,null==r?1:r)}function pu(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}se(pu,du,le(he,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new pu(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new pu(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Xo,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ne(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(cu*r+-.90649*i)),255*(n+e*(1.97294*r)),this.opacity)}}));var vu=Array.prototype.slice,gu=function(t,n){return t-n},yu=function(t){return function(){return t}},_u=function(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=bu(t,n[r]))return e;return 0};function bu(t,n){for(var e=n[0],r=n[1],i=-1,o=0,u=t.length,a=u-1;o<u;a=o++){var c=t[o],f=c[0],s=c[1],l=t[a],h=l[0],d=l[1];if(mu(c,l,n))return 0;s>r!=d>r&&e<(h-f)*(r-s)/(d-s)+f&&(i=-i)}return i}function mu(t,n,e){var r,i,o,u;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],u=n[r],i<=o&&o<=u||u<=o&&o<=i)}var xu=function(){},wu=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Mu=function(){var t=1,n=1,e=lt,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(gu);else{var r=Q(t),i=r[0],u=r[1];n=st(i,u,n),n=it(Math.floor(i/n)*n,Math.floor(u/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],a=[];return function(e,r,i){var o,a,c,f,s,l,h=new Array,d=new Array;o=a=-1,f=e[0]>=r,wu[f<<1].forEach(p);for(;++o<t-1;)c=f,f=e[o+1]>=r,wu[c|f<<1].forEach(p);wu[f<<0].forEach(p);for(;++a<n-1;){for(o=-1,f=e[a*t+t]>=r,s=e[a*t]>=r,wu[f<<1|s<<2].forEach(p);++o<t-1;)c=f,f=e[a*t+t+o+1]>=r,l=s,s=e[a*t+o+1]>=r,wu[c|f<<1|s<<2|l<<3].forEach(p);wu[f|s<<3].forEach(p)}o=-1,s=e[a*t]>=r,wu[s<<2].forEach(p);for(;++o<t-1;)l=s,s=e[a*t+o+1]>=r,wu[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+a],c=[t[1][0]+o,t[1][1]+a],f=u(r),s=u(c);(n=d[f])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=s]=n):(n=h[s])?(e=d[f])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=f]=n):h[f]=d[s]={start:f,end:s,ring:[r,c]}}wu[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?o.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=o.length;e<r;++e)if(-1!==_u((n=o[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function u(n){return 2*n[0]+n[1]*(t+1)*4}function a(e,r,i){e.forEach((function(e){var o,u=e[0],a=e[1],c=0|u,f=0|a,s=r[f*t+c];u>0&&u<t&&c===u&&(o=r[f*t+c-1],e[0]=u+(i-o)/(s-o)-.5),a>0&&a<n&&f===a&&(o=r[(f-1)*t+c],e[1]=a+(i-o)/(s-o)-.5)}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.ceil(e[0]),o=Math.ceil(e[1]);if(!(r>0&&o>0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?yu(vu.call(t)):yu(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:xu,i):r===a},i};function Au(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<i;++u)for(var a=0,c=0;a<r+e;++a)a<r&&(c+=t.data[a+u*r]),a>=e&&(a>=o&&(c-=t.data[a-o+u*r]),n.data[a-e+u*r]=c/Math.min(a+1,r-1+o-a,o))}function Su(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<r;++u)for(var a=0,c=0;a<i+e;++a)a<i&&(c+=t.data[u+a*r]),a>=e&&(a>=o&&(c-=t.data[u+(a-o)*r]),n.data[u+(a-e)*r]=c/Math.min(a+1,i-1+o-a,o))}function ku(t){return t[0]}function Eu(t){return t[1]}function Cu(){return 1}var Tu=function(){var t=ku,n=Eu,e=Cu,r=960,i=500,o=20,u=2,a=3*o,c=r+2*a>>u,f=i+2*a>>u,s=yu(20);function l(r){var i=new Float32Array(c*f),l=new Float32Array(c*f);r.forEach((function(r,o,s){var l=+t(r,o,s)+a>>u,h=+n(r,o,s)+a>>u,d=+e(r,o,s);l>=0&&l<c&&h>=0&&h<f&&(i[l+h*c]+=d)})),Au({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Su({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u),Au({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Su({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u),Au({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Su({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u);var d=s(i);if(!Array.isArray(d)){var p=gt(i);d=st(0,p,d),(d=it(0,Math.floor(p/d)*d,d)).shift()}return Mu().thresholds(d).size([c,f])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*u),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,u)-a,t[1]=t[1]*Math.pow(2,u)-a}function g(){return c=r+2*(a=3*o)>>u,f=i+2*a>>u,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:yu(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:yu(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:yu(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,g()},l.cellSize=function(t){if(!arguments.length)return 1<<u;if(!((t=+t)>=1))throw new Error("invalid cell size");return u=Math.floor(Math.log(t)/Math.LN2),g()},l.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?yu(vu.call(t)):yu(t),l):s},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),g()},l},Ou=function(t){return function(){return t}};function Nu(t,n,e,r,i,o,u,a,c,f){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=c,this._=f}function ju(){return!Hn.ctrlKey&&!Hn.button}function Ru(){return this.parentNode}function Pu(t){return null==t?{x:Hn.x,y:Hn.y}:t}function zu(){return navigator.maxTouchPoints||"ontouchstart"in this}Nu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Lu=function(){var t,n,e,r,i=ju,o=Ru,u=Pu,a=zu,c={},f=$t("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var u=b("mouse",o.apply(this,arguments),pr,this,arguments);u&&(oe(Hn.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),ce(Hn.view),ue(),e=!1,t=Hn.clientX,n=Hn.clientY,u("start"))}}function p(){if(ae(),!e){var r=Hn.clientX-t,i=Hn.clientY-n;e=r*r+i*i>l}c.mouse("drag")}function v(){oe(Hn.view).on("mousemove.drag mouseup.drag",null),fe(Hn.view,e),ae(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,n,e=Hn.changedTouches,r=o.apply(this,arguments),u=e.length;for(t=0;t<u;++t)(n=b(e[t].identifier,r,dr,this,arguments))&&(ue(),n("start"))}}function y(){var t,n,e=Hn.changedTouches,r=e.length;for(t=0;t<r;++t)(n=c[e[t].identifier])&&(ae(),n("drag"))}function _(){var t,n,e=Hn.changedTouches,i=e.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=c[e[t].identifier])&&(ue(),n("end"))}function b(t,n,e,r,i){var o,a,l,d=e(n,t),p=f.copy();if(Kn(new Nu(h,"beforestart",o,t,s,d[0],d[1],0,0,p),(function(){return null!=(Hn.subject=o=u.apply(r,i))&&(a=o.x-d[0]||0,l=o.y-d[1]||0,!0)})))return function u(f){var v,g=d;switch(f){case"start":c[t]=u,v=s++;break;case"end":delete c[t],--s;case"drag":d=e(n,t),v=s}Kn(new Nu(h,f,o,t,v,d[0]+a,d[1]+l,d[0]-g[0],d[1]-g[1],p),p.apply,p,[f,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Ou(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Ou(t),h):o},h.subject=function(t){return arguments.length?(u="function"==typeof t?t:Ou(t),h):u},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:Ou(!!t),h):a},h.on=function(){var t=f.on.apply(f,arguments);return t===f?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h},Iu={},Du={};function Fu(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Bu(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function Uu(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function Yu(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+Uu(-n,6):n>9999?"+"+Uu(n,6):Uu(n,4))+"-"+Uu(t.getUTCMonth()+1,2)+"-"+Uu(t.getUTCDate(),2)+(o?"T"+Uu(e,2)+":"+Uu(r,2)+":"+Uu(i,2)+"."+Uu(o,3)+"Z":i?"T"+Uu(e,2)+":"+Uu(r,2)+":"+Uu(i,2)+"Z":r||e?"T"+Uu(e,2)+":"+Uu(r,2)+"Z":"")}var qu=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,c=o<=0,f=!1;function s(){if(c)return Du;if(f)return f=!1,Iu;var n,r,i=u;if(34===t.charCodeAt(i)){for(;u++<o&&34!==t.charCodeAt(u)||34===t.charCodeAt(++u););return(n=u)>=o?c=!0:10===(r=t.charCodeAt(u++))?f=!0:13===r&&(f=!0,10===t.charCodeAt(u)&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if(10===(r=t.charCodeAt(n=u++)))f=!0;else if(13===r)f=!0,10===t.charCodeAt(u)&&++u;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=s())!==Du;){for(var l=[];r!==Iu&&r!==Du;)l.push(r),r=s();n&&null==(l=n(l,a++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return u(n[t])})).join(t)}))}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?Yu(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=Fu(t);return function(r,i){return n(e(r),i,t)}}(t,n):Fu(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=Bu(n)),[e.map(u).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Bu(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:u}},Vu=qu(","),Hu=Vu.parse,$u=Vu.parseRows,Xu=Vu.format,Wu=Vu.formatBody,Gu=Vu.formatRows,Zu=Vu.formatRow,Ku=Vu.formatValue,Qu=qu("\t"),Ju=Qu.parse,ta=Qu.parseRows,na=Qu.format,ea=Qu.formatBody,ra=Qu.formatRows,ia=Qu.formatRow,oa=Qu.formatValue;function ua(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;aa&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}var aa=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function ca(t){return+t}function fa(t){return t*t}function sa(t){return t*(2-t)}function la(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var ha=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),da=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),pa=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),va=Math.PI,ga=va/2;function ya(t){return 1==+t?1:1-Math.cos(t*ga)}function _a(t){return Math.sin(t*ga)}function ba(t){return(1-Math.cos(va*t))/2}function ma(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function xa(t){return ma(1-+t)}function wa(t){return 1-ma(t)}function Ma(t){return((t*=2)<=1?ma(1-t):2-ma(t-1))/2}function Aa(t){return 1-Math.sqrt(1-t*t)}function Sa(t){return Math.sqrt(1- --t*t)}function ka(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Ea(t){return 1-Ca(1-t)}function Ca(t){return(t=+t)<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+3/4:t<10/11?7.5625*(t-=9/11)*t+15/16:7.5625*(t-=21/22)*t+63/64}function Ta(t){return((t*=2)<=1?1-Ca(1-t):Ca(t-1)+1)/2}var Oa=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(1.70158),Na=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(1.70158),ja=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),Ra=2*Math.PI,Pa=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ra);function i(t){return n*ma(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Ra)},i.period=function(e){return t(n,e)},i}(1,.3),za=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ra);function i(t){return 1-n*ma(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Ra)},i.period=function(e){return t(n,e)},i}(1,.3),La=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ra);function i(t){return((t=2*t-1)<0?n*ma(-t)*Math.sin((r-t)/e):2-n*ma(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Ra)},i.period=function(e){return t(n,e)},i}(1,.3);function Ia(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}var Da=function(t,n){return fetch(t,n).then(Ia)};function Fa(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var Ba=function(t,n){return fetch(t,n).then(Fa)};function Ua(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var Ya=function(t,n){return fetch(t,n).then(Ua)};function qa(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Ya(n,e).then((function(n){return t(n,r)}))}}function Va(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=qu(t);return Ya(n,e).then((function(t){return i.parse(t,r)}))}var Ha=qa(Hu),$a=qa(Ju),Xa=function(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))};function Wa(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var Ga=function(t,n){return fetch(t,n).then(Wa)};function Za(t){return function(n,e){return Ya(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}var Ka=Za("application/xml"),Qa=Za("text/html"),Ja=Za("image/svg+xml"),tc=function(t,n){var e;function r(){var r,i,o=e.length,u=0,a=0;for(r=0;r<o;++r)u+=(i=e[r]).x,a+=i.y;for(u=u/o-t,a=a/o-n,r=0;r<o;++r)(i=e[r]).x-=u,i.y-=a}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},nc=function(t){return function(){return t}},ec=function(){return 1e-6*(Math.random()-.5)};function rc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,f,s,l,h,d=t._root,p={data:r},v=t._x0,g=t._y0,y=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u}while((l=s<<1|f)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}var ic=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function oc(t){return t[0]}function uc(t){return t[1]}function ac(t,n,e){var r=new cc(null==n?oc:n,null==e?uc:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function cc(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function fc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var sc=ac.prototype=cc.prototype;function lc(t){return t.x+t.vx}function hc(t){return t.y+t.vy}sc.copy=function(){var t,n,e=new cc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=fc(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=fc(n));return e},sc.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return rc(this.cover(n,e),n,e,t)},sc.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>s&&(s=r),i<f&&(f=i),i>l&&(l=i));if(c>s||f>l)return this;for(this.cover(c,f).cover(s,l),e=0;e<o;++e)rc(this,u[e],a[e],t[e]);return this},sc.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,c=i-e,f=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=f,f=u,c*=2,a){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},sc.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},sc.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},sc.find=function(t,n,e){var r,i,o,u,a,c,f,s=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new ic(v,s,l,h,d)),null==e?e=1/0:(s=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)<s||(a=c.y1)<l))if(v.length){var g=(i+u)/2,y=(o+a)/2;p.push(new ic(v[3],g,y,u,a),new ic(v[2],i,y,g,a),new ic(v[1],g,o,u,y),new ic(v[0],i,o,g,y)),(f=(n>=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),m=_*_+b*b;if(m<e){var x=Math.sqrt(e=m);s=t-x,l=n-x,h=t+x,d=n+x,r=v.data}}return r},sc.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,f,s,l,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((f=o>=(a=(p+g)/2))?p=a:g=a,(s=u>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},sc.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},sc.root=function(){return this._root},sc.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},sc.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new ic(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var f=(r+o)/2,s=(i+u)/2;(e=c[3])&&a.push(new ic(e,f,s,o,u)),(e=c[2])&&a.push(new ic(e,r,s,f,u)),(e=c[1])&&a.push(new ic(e,f,i,o,s)),(e=c[0])&&a.push(new ic(e,r,i,f,s))}return this},sc.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new ic(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,f=n.y1,s=(u+c)/2,l=(a+f)/2;(o=i[0])&&e.push(new ic(o,u,a,s,l)),(o=i[1])&&e.push(new ic(o,s,a,c,l)),(o=i[2])&&e.push(new ic(o,u,l,s,f)),(o=i[3])&&e.push(new ic(o,s,l,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},sc.x=function(t){return arguments.length?(this._x=t,this):this._x},sc.y=function(t){return arguments.length?(this._y=t,this):this._y};var dc=function(t){var n,e,r=1,i=1;function o(){for(var t,o,a,c,f,s,l,h=n.length,d=0;d<i;++d)for(o=ac(n,lc,hc).visitAfter(u),t=0;t<h;++t)a=n[t],s=e[a.index],l=s*s,c=a.x+a.vx,f=a.y+a.vy,o.visit(p);function p(t,n,e,i,o){var u=t.data,h=t.r,d=s+h;if(!u)return n>c+d||i<c-d||e>f+d||o<f-d;if(u.index>a.index){var p=c-u.x-u.vx,v=f-u.y-u.vy,g=p*p+v*v;g<d*d&&(0===p&&(g+=(p=ec())*p),0===v&&(g+=(v=ec())*v),g=(d-(g=Math.sqrt(g)))/g*r,a.vx+=(p*=g)*(d=(h*=h)/(l+h)),a.vy+=(v*=g)*d,u.vx-=p*(d=1-d),u.vy-=v*d)}}}function u(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function a(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=nc(null==t?1:+t)),o.initialize=function(t){n=t,a()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(r=+t,o):r},o.radius=function(n){return arguments.length?(t="function"==typeof n?n:nc(+n),a(),o):t},o};function pc(t){return t.index}function vc(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var gc=function(t){var n,e,r,i,o,u=pc,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=nc(30),f=1;function s(r){for(var i=0,u=t.length;i<f;++i)for(var a,c,s,l,h,d,p,v=0;v<u;++v)c=(a=t[v]).source,l=(s=a.target).x+s.vx-c.x-c.vx||ec(),h=s.y+s.vy-c.y-c.vy||ec(),l*=d=((d=Math.sqrt(l*l+h*h))-e[v])/d*r*n[v],h*=d,s.vx-=l*(p=o[v]),s.vy-=h*p,c.vx+=l*(p=1-p),c.vy+=h*p}function l(){if(r){var a,c,f=r.length,s=t.length,l=Po(r,u);for(a=0,i=new Array(f);a<s;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=vc(l,c.source)),"object"!=typeof c.target&&(c.target=vc(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,o=new Array(s);a<s;++a)c=t[a],o[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(s),h(),e=new Array(s),d()}}function h(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+a(t[e],e,t)}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}return null==t&&(t=[]),s.initialize=function(t){r=t,l()},s.links=function(n){return arguments.length?(t=n,l(),s):t},s.id=function(t){return arguments.length?(u=t,s):u},s.iterations=function(t){return arguments.length?(f=+t,s):f},s.strength=function(t){return arguments.length?(a="function"==typeof t?t:nc(+t),h(),s):a},s.distance=function(t){return arguments.length?(c="function"==typeof t?t:nc(+t),d(),s):c},s};function yc(t){return t.x}function _c(t){return t.y}var bc=Math.PI*(3-Math.sqrt(5)),mc=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=Po(),c=kr(s),f=$t("tick","end");function s(){l(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function l(r){var c,f,s=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,a.each((function(t){t(e)})),c=0;c<s;++c)null==(f=t[c]).fx?f.x+=f.vx*=u:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=u:(f.y=f.fy,f.vy=0);return n}function h(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(e),o=e*bc;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function d(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),h(),n={tick:l,restart:function(){return c.restart(s),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),a.each(d),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(u=1-t,n):1-u},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)(u=(i=n-(a=t[f]).x)*i+(o=e-a.y)*o)<r&&(c=a,r=u);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},xc=function(){var t,n,e,r,i=nc(-30),o=1,u=1/0,a=.81;function c(r){var i,o=t.length,u=ac(t,yc,_c).visitAfter(s);for(e=r,i=0;i<o;++i)n=t[i],u.visit(l)}function f(){if(t){var n,e,o=t.length;for(r=new Array(o),n=0;n<o;++n)e=t[n],r[e.index]=+i(e,n,t)}}function s(t){var n,e,i,o,u,a=0,c=0;if(t.length){for(i=o=u=0;u<4;++u)(n=t[u])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,i+=e*n.x,o+=e*n.y);t.x=i/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=r[n.data.index]}while(n=n.next)}t.value=a}function l(t,i,c,f){if(!t.value)return!0;var s=t.x-n.x,l=t.y-n.y,h=f-i,d=s*s+l*l;if(h*h/a<d)return d<u&&(0===s&&(d+=(s=ec())*s),0===l&&(d+=(l=ec())*l),d<o&&(d=Math.sqrt(o*d)),n.vx+=s*t.value*e/d,n.vy+=l*t.value*e/d),!0;if(!(t.length||d>=u)){(t.data!==n||t.next)&&(0===s&&(d+=(s=ec())*s),0===l&&(d+=(l=ec())*l),d<o&&(d=Math.sqrt(o*d)));do{t.data!==n&&(h=r[t.data.index]*e/d,n.vx+=s*h,n.vy+=l*h)}while(t=t.next)}}return c.initialize=function(n){t=n,f()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:nc(+t),f(),c):i},c.distanceMin=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.distanceMax=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c.theta=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c},wc=function(t,n,e){var r,i,o,u=nc(.1);function a(t){for(var u=0,a=r.length;u<a;++u){var c=r[u],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(o[u]-l)*i[u]*t/l;c.vx+=f*h,c.vy+=s*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+u(r[n],n,r)}}return"function"!=typeof t&&(t=nc(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(u="function"==typeof t?t:nc(+t),c(),a):u},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:nc(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},Mc=function(t){var n,e,r,i=nc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=nc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:nc(+t),u(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:nc(+n),u(),o):t},o},Ac=function(t){var n,e,r,i=nc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=nc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:nc(+t),u(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:nc(+n),u(),o):t},o};function Sc(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}var kc=function(t){return(t=Sc(Math.abs(t)))?t[1]:NaN},Ec=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cc(t){if(!(n=Ec.exec(t)))throw new Error("invalid format: "+t);var n;return new Tc({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Tc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Cc.prototype=Tc.prototype,Tc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Oc,Nc,jc,Rc,Pc=function(t,n){var e=Sc(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},zc={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Pc(100*t,n)},r:Pc,s:function(t,n){var e=Sc(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Oc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Sc(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Lc=function(t){return t},Ic=Array.prototype.map,Dc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Fc=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Lc:(n=Ic.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Lc:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ic.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"-":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Cc(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,_=t.type;"n"===_?(v=!0,_="g"):zc[_]||(void 0===g&&(g=12),y=!0,_="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",m="$"===h?o:/[%p]/.test(_)?c:"",x=zc[_],w=/[defgprs%]/.test(_);function M(t){var i,o,c,h=b,M=m;if("c"===_)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),g),y&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:f:"-"===l||"("===l?"":l)+h,M=("s"===_?Dc[8+Oc/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?u+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var S=h.length+t.length+M.length,k=S<p?new Array(p-S+1).join(n):"";switch(v&&d&&(t=r(k+t,k.length?p-M.length:1/0),k=""),e){case"<":t=h+t+M+k;break;case"=":t=h+k+t+M;break;case"^":t=k.slice(0,S=k.length>>1)+h+t+M+k.slice(S);break;default:t=k+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Cc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(kc(n)/3))),i=Math.pow(10,-r),o=Dc[8+r/3];return function(t){return e(i*t)+o}}}};function Bc(t){return Nc=Fc(t),jc=Nc.format,Rc=Nc.formatPrefix,Nc}Bc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Uc=function(t){return Math.max(0,-kc(Math.abs(t)))},Yc=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(kc(n)/3)))-kc(Math.abs(t)))},qc=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,kc(n)-kc(t))+1},Vc=function(){return new Hc};function Hc(){this.reset()}Hc.prototype={constructor:Hc,reset:function(){this.s=this.t=0},add:function(t){Xc($c,t,this.t),Xc(this,$c.s,this.s),this.s?this.t+=$c.t:this.s=$c.t},valueOf:function(){return this.s}};var $c=new Hc;function Xc(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Wc=Math.PI,Gc=Wc/2,Zc=Wc/4,Kc=2*Wc,Qc=180/Wc,Jc=Wc/180,tf=Math.abs,nf=Math.atan,ef=Math.atan2,rf=Math.cos,of=Math.ceil,uf=Math.exp,af=(Math.floor,Math.log),cf=Math.pow,ff=Math.sin,sf=Math.sign||function(t){return t>0?1:t<0?-1:0},lf=Math.sqrt,hf=Math.tan;function df(t){return t>1?0:t<-1?Wc:Math.acos(t)}function pf(t){return t>1?Gc:t<-1?-Gc:Math.asin(t)}function vf(t){return(t=ff(t/2))*t}function gf(){}function yf(t,n){t&&bf.hasOwnProperty(t.type)&&bf[t.type](t,n)}var _f={Feature:function(t,n){yf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)yf(e[r].geometry,n)}},bf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){mf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)mf(e[r],n,0)},Polygon:function(t,n){xf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)xf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)yf(e[r],n)}};function mf(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function xf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)mf(t[e],n,1);n.polygonEnd()}var wf,Mf,Af,Sf,kf,Ef=function(t,n){t&&_f.hasOwnProperty(t.type)?_f[t.type](t,n):yf(t,n)},Cf=Vc(),Tf=Vc(),Of={point:gf,lineStart:gf,lineEnd:gf,polygonStart:function(){Cf.reset(),Of.lineStart=Nf,Of.lineEnd=jf},polygonEnd:function(){var t=+Cf;Tf.add(t<0?Kc+t:t),this.lineStart=this.lineEnd=this.point=gf},sphere:function(){Tf.add(Kc)}};function Nf(){Of.point=Rf}function jf(){Pf(wf,Mf)}function Rf(t,n){Of.point=Pf,wf=t,Mf=n,Af=t*=Jc,Sf=rf(n=(n*=Jc)/2+Zc),kf=ff(n)}function Pf(t,n){var e=(t*=Jc)-Af,r=e>=0?1:-1,i=r*e,o=rf(n=(n*=Jc)/2+Zc),u=ff(n),a=kf*u,c=Sf*o+a*rf(i),f=a*r*ff(i);Cf.add(ef(f,c)),Af=t,Sf=o,kf=u}var zf=function(t){return Tf.reset(),Ef(t,Of),2*Tf};function Lf(t){return[ef(t[1],t[0]),pf(t[2])]}function If(t){var n=t[0],e=t[1],r=rf(e);return[r*rf(n),r*ff(n),ff(e)]}function Df(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Ff(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Bf(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Uf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Yf(t){var n=lf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var qf,Vf,Hf,$f,Xf,Wf,Gf,Zf,Kf,Qf,Jf=Vc(),ts={point:ns,lineStart:rs,lineEnd:is,polygonStart:function(){ts.point=os,ts.lineStart=us,ts.lineEnd=as,Jf.reset(),Of.polygonStart()},polygonEnd:function(){Of.polygonEnd(),ts.point=ns,ts.lineStart=rs,ts.lineEnd=is,Cf<0?(qf=-(Hf=180),Vf=-($f=90)):Jf>1e-6?$f=90:Jf<-1e-6&&(Vf=-90),Qf[0]=qf,Qf[1]=Hf},sphere:function(){qf=-(Hf=180),Vf=-($f=90)}};function ns(t,n){Kf.push(Qf=[qf=t,Hf=t]),n<Vf&&(Vf=n),n>$f&&($f=n)}function es(t,n){var e=If([t*Jc,n*Jc]);if(Zf){var r=Ff(Zf,e),i=Ff([r[1],-r[0],0],r);Yf(i),i=Lf(i);var o,u=t-Xf,a=u>0?1:-1,c=i[0]*Qc*a,f=tf(u)>180;f^(a*Xf<c&&c<a*t)?(o=i[1]*Qc)>$f&&($f=o):f^(a*Xf<(c=(c+360)%360-180)&&c<a*t)?(o=-i[1]*Qc)<Vf&&(Vf=o):(n<Vf&&(Vf=n),n>$f&&($f=n)),f?t<Xf?cs(qf,t)>cs(qf,Hf)&&(Hf=t):cs(t,Hf)>cs(qf,Hf)&&(qf=t):Hf>=qf?(t<qf&&(qf=t),t>Hf&&(Hf=t)):t>Xf?cs(qf,t)>cs(qf,Hf)&&(Hf=t):cs(t,Hf)>cs(qf,Hf)&&(qf=t)}else Kf.push(Qf=[qf=t,Hf=t]);n<Vf&&(Vf=n),n>$f&&($f=n),Zf=e,Xf=t}function rs(){ts.point=es}function is(){Qf[0]=qf,Qf[1]=Hf,ts.point=ns,Zf=null}function os(t,n){if(Zf){var e=t-Xf;Jf.add(tf(e)>180?e+(e>0?360:-360):e)}else Wf=t,Gf=n;Of.point(t,n),es(t,n)}function us(){Of.lineStart()}function as(){os(Wf,Gf),Of.lineEnd(),tf(Jf)>1e-6&&(qf=-(Hf=180)),Qf[0]=qf,Qf[1]=Hf,Zf=null}function cs(t,n){return(n-=t)<0?n+360:n}function fs(t,n){return t[0]-n[0]}function ss(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var ls,hs,ds,ps,vs,gs,ys,_s,bs,ms,xs,ws,Ms,As,Ss,ks,Es=function(t){var n,e,r,i,o,u,a;if($f=Hf=-(qf=Vf=1/0),Kf=[],Ef(t,ts),e=Kf.length){for(Kf.sort(fs),n=1,o=[r=Kf[0]];n<e;++n)ss(r,(i=Kf[n])[0])||ss(r,i[1])?(cs(r[0],i[1])>cs(r[0],r[1])&&(r[1]=i[1]),cs(i[0],r[1])>cs(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=cs(r[1],i[0]))>u&&(u=a,qf=i[0],Hf=r[1])}return Kf=Qf=null,qf===1/0||Vf===1/0?[[NaN,NaN],[NaN,NaN]]:[[qf,Vf],[Hf,$f]]},Cs={sphere:gf,point:Ts,lineStart:Ns,lineEnd:Ps,polygonStart:function(){Cs.lineStart=zs,Cs.lineEnd=Ls},polygonEnd:function(){Cs.lineStart=Ns,Cs.lineEnd=Ps}};function Ts(t,n){t*=Jc;var e=rf(n*=Jc);Os(e*rf(t),e*ff(t),ff(n))}function Os(t,n,e){++ls,ds+=(t-ds)/ls,ps+=(n-ps)/ls,vs+=(e-vs)/ls}function Ns(){Cs.point=js}function js(t,n){t*=Jc;var e=rf(n*=Jc);As=e*rf(t),Ss=e*ff(t),ks=ff(n),Cs.point=Rs,Os(As,Ss,ks)}function Rs(t,n){t*=Jc;var e=rf(n*=Jc),r=e*rf(t),i=e*ff(t),o=ff(n),u=ef(lf((u=Ss*o-ks*i)*u+(u=ks*r-As*o)*u+(u=As*i-Ss*r)*u),As*r+Ss*i+ks*o);hs+=u,gs+=u*(As+(As=r)),ys+=u*(Ss+(Ss=i)),_s+=u*(ks+(ks=o)),Os(As,Ss,ks)}function Ps(){Cs.point=Ts}function zs(){Cs.point=Is}function Ls(){Ds(ws,Ms),Cs.point=Ts}function Is(t,n){ws=t,Ms=n,t*=Jc,n*=Jc,Cs.point=Ds;var e=rf(n);As=e*rf(t),Ss=e*ff(t),ks=ff(n),Os(As,Ss,ks)}function Ds(t,n){t*=Jc;var e=rf(n*=Jc),r=e*rf(t),i=e*ff(t),o=ff(n),u=Ss*o-ks*i,a=ks*r-As*o,c=As*i-Ss*r,f=lf(u*u+a*a+c*c),s=pf(f),l=f&&-s/f;bs+=l*u,ms+=l*a,xs+=l*c,hs+=s,gs+=s*(As+(As=r)),ys+=s*(Ss+(Ss=i)),_s+=s*(ks+(ks=o)),Os(As,Ss,ks)}var Fs=function(t){ls=hs=ds=ps=vs=gs=ys=_s=bs=ms=xs=0,Ef(t,Cs);var n=bs,e=ms,r=xs,i=n*n+e*e+r*r;return i<1e-12&&(n=gs,e=ys,r=_s,hs<1e-6&&(n=ds,e=ps,r=vs),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[ef(e,n)*Qc,pf(r/lf(i))*Qc]},Bs=function(t){return function(){return t}},Us=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function Ys(t,n){return[tf(t)>Wc?t+Math.round(-t/Kc)*Kc:t,n]}function qs(t,n,e){return(t%=Kc)?n||e?Us(Hs(t),$s(n,e)):Hs(t):n||e?$s(n,e):Ys}function Vs(t){return function(n,e){return[(n+=t)>Wc?n-Kc:n<-Wc?n+Kc:n,e]}}function Hs(t){var n=Vs(t);return n.invert=Vs(-t),n}function $s(t,n){var e=rf(t),r=ff(t),i=rf(n),o=ff(n);function u(t,n){var u=rf(n),a=rf(t)*u,c=ff(t)*u,f=ff(n),s=f*e+a*r;return[ef(c*i-s*o,a*e-f*r),pf(s*i+c*o)]}return u.invert=function(t,n){var u=rf(n),a=rf(t)*u,c=ff(t)*u,f=ff(n),s=f*i-c*o;return[ef(c*i+f*o,a*e+s*r),pf(s*e-a*r)]},u}Ys.invert=Ys;var Xs=function(t){function n(n){return(n=t(n[0]*Jc,n[1]*Jc))[0]*=Qc,n[1]*=Qc,n}return t=qs(t[0]*Jc,t[1]*Jc,t.length>2?t[2]*Jc:0),n.invert=function(n){return(n=t.invert(n[0]*Jc,n[1]*Jc))[0]*=Qc,n[1]*=Qc,n},n};function Ws(t,n,e,r,i,o){if(e){var u=rf(n),a=ff(n),c=r*e;null==i?(i=n+r*Kc,o=n-c/2):(i=Gs(u,i),o=Gs(u,o),(r>0?i<o:i>o)&&(i+=r*Kc));for(var f,s=i;r>0?s>o:s<o;s-=c)f=Lf([u,-a*rf(s),-a*ff(s)]),t.point(f[0],f[1])}}function Gs(t,n){(n=If(n))[0]-=t,Yf(n);var e=df(-n[1]);return((-n[2]<0?-e:e)+Kc-1e-6)%Kc}var Zs=function(){var t,n,e=Bs([0,0]),r=Bs(90),i=Bs(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=Qc,e[1]*=Qc}};function u(){var u=e.apply(this,arguments),a=r.apply(this,arguments)*Jc,c=i.apply(this,arguments)*Jc;return t=[],n=qs(-u[0]*Jc,-u[1]*Jc,0).invert,Ws(o,a,c,1),u={type:"Polygon",coordinates:[t]},t=n=null,u}return u.center=function(t){return arguments.length?(e="function"==typeof t?t:Bs([+t[0],+t[1]]),u):e},u.radius=function(t){return arguments.length?(r="function"==typeof t?t:Bs(+t),u):r},u.precision=function(t){return arguments.length?(i="function"==typeof t?t:Bs(+t),u):i},u},Ks=function(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:gf,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},Qs=function(t,n){return tf(t[0]-n[0])<1e-6&&tf(t[1]-n[1])<1e-6};function Js(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var tl=function(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(Qs(r,u)){if(!r[2]&&!u[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u[0]+=2e-6}a.push(e=new Js(r,t,null,!0)),c.push(e.o=new Js(r,null,e,!1)),a.push(e=new Js(u,t,null,!1)),c.push(e.o=new Js(u,null,e,!0))}})),a.length){for(c.sort(n),nl(a),nl(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var f,s,l=a[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,u=f.length;o<u;++o)i.point((s=f[o])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,o=f.length-1;o>=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function nl(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}var el=Vc();function rl(t){return tf(t[0])<=Wc?t[0]:sf(t[0])*((tf(t[0])+Wc)%Kc-Wc)}var il=function(t,n){var e=rl(n),r=n[1],i=ff(r),o=[ff(e),-rf(e),0],u=0,a=0;el.reset(),1===i?r=Gc+1e-6:-1===i&&(r=-Gc-1e-6);for(var c=0,f=t.length;c<f;++c)if(l=(s=t[c]).length)for(var s,l,h=s[l-1],d=rl(h),p=h[1]/2+Zc,v=ff(p),g=rf(p),y=0;y<l;++y,d=b,v=x,g=w,h=_){var _=s[y],b=rl(_),m=_[1]/2+Zc,x=ff(m),w=rf(m),M=b-d,A=M>=0?1:-1,S=A*M,k=S>Wc,E=v*x;if(el.add(ef(E*A*ff(S),g*w+E*rf(S))),u+=k?M+A*Kc:M,k^d>=e^b>=e){var C=Ff(If(h),If(_));Yf(C);var T=Ff(o,C);Yf(T);var O=(k^M>=0?-1:1)*pf(T[2]);(r>O||r===O&&(C[0]||C[1]))&&(a+=k^M>=0?1:-1)}}return(u<-1e-6||u<1e-6&&el<-1e-6)^1&a},ol=function(t,n,e,r){return function(i){var o,u,a,c=n(i),f=Ks(),s=n(f),l=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=_,h.lineEnd=b,u=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,u=bt(u);var t=il(o,r);u.length?(l||(i.polygonStart(),l=!0),tl(u,al,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function y(t,n){a.push([t,n]),s.point(t,n)}function _(){s.lineStart(),a=[]}function b(){y(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,c=s.clean(),h=f.result(),d=h.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),u.push(h.filter(ul))}return h}};function ul(t){return t.length>1}function al(t,n){return((t=t.x)[0]<0?t[1]-Gc-1e-6:Gc-t[1])-((n=n.x)[0]<0?n[1]-Gc-1e-6:Gc-n[1])}var cl=ol((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?Wc:-Wc,c=tf(o-e);tf(c-Wc)<1e-6?(t.point(e,r=(r+u)/2>0?Gc:-Gc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=Wc&&(tf(e-i)<1e-6&&(e-=1e-6*i),tf(o-a)<1e-6&&(o-=1e-6*a),r=function(t,n,e,r){var i,o,u=ff(t-e);return tf(u)>1e-6?nf((ff(n)*(o=rf(r))*ff(e)-ff(r)*(i=rf(n))*ff(t))/(i*o*u)):(n+r)/2}(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Gc,r.point(-Wc,i),r.point(0,i),r.point(Wc,i),r.point(Wc,0),r.point(Wc,-i),r.point(0,-i),r.point(-Wc,-i),r.point(-Wc,0),r.point(-Wc,i);else if(tf(t[0]-n[0])>1e-6){var o=t[0]<n[0]?Wc:-Wc;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-Wc,-Gc]);var fl=function(t){var n=rf(t),e=6*Jc,r=n>0,i=tf(n)>1e-6;function o(t,e){return rf(t)*rf(e)>n}function u(t,e,r){var i=[1,0,0],o=Ff(If(t),If(e)),u=Df(o,o),a=o[0],c=u-a*a;if(!c)return!r&&t;var f=n*u/c,s=-n*a/c,l=Ff(i,o),h=Uf(i,f);Bf(h,Uf(o,s));var d=l,p=Df(h,d),v=Df(d,d),g=p*p-v*(Df(h,h)-1);if(!(g<0)){var y=lf(g),_=Uf(d,(-p-y)/v);if(Bf(_,h),_=Lf(_),!r)return _;var b,m=t[0],x=e[0],w=t[1],M=e[1];x<m&&(b=m,m=x,x=b);var A=x-m,S=tf(A-Wc)<1e-6;if(!S&&M<w&&(b=w,w=M,M=b),S||A<1e-6?S?w+M>0^_[1]<(tf(_[0]-m)<1e-6?w:M):w<=_[1]&&_[1]<=M:A>Wc^(m<=_[0]&&_[0]<=x)){var k=Uf(d,(-p+y)/v);return Bf(k,h),[_,Lf(k)]}}}function a(n,e){var i=r?t:Wc-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return ol(o,(function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],v=o(l,h),g=r?v?0:a(l,h):v?a(l+(l<0?Wc:-Wc),h):0;if(!n&&(f=c=v)&&t.lineStart(),v!==c&&(!(d=u(n,p))||Qs(n,d)||Qs(p,d))&&(p[2]=1),v!==c)s=0,v?(t.lineStart(),d=u(p,n),t.point(d[0],d[1])):(d=u(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^v){var y;g&e||!(y=u(p,n,!0))||(s=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!v||n&&Qs(n,p)||t.point(p[0],p[1]),n=p,c=v,e=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}}),(function(n,r,i,o){Ws(o,t,e,i,n,r)}),r?[0,-t]:[-Wc,t-Wc])};function sl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,f){var s=0,l=0;if(null==i||(s=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else f.point(o[0],o[1])}function u(r,i){return tf(r[0]-t)<1e-6?i>0?0:3:tf(r[0]-e)<1e-6?i>0?2:1:tf(r[1]-n)<1e-6?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){var c,f,s,l,h,d,p,v,g,y,_,b=u,m=Ks(),x={point:w,lineStart:function(){x.point=M,f&&f.push(s=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(M(l,h),d&&g&&m.rejoin(),c.push(m.result()));x.point=w,g&&b.lineEnd()},polygonStart:function(){b=m,c=[],f=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var o,u,a=f[e],c=1,s=a.length,l=a[0],h=l[0],d=l[1];c<s;++c)o=h,u=d,l=a[c],h=l[0],d=l[1],u<=r?d>r&&(h-o)*(r-u)>(d-u)*(t-o)&&++n:d<=r&&(h-o)*(r-u)<(d-u)*(t-o)&&--n;return n}(),e=_&&n,i=(c=bt(c)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&tl(c,a,n,o,u),u.polygonEnd());b=u,c=f=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,u){var a=i(o,u);if(f&&s.push([o,u]),y)l=o,h=u,d=a,y=!1,a&&(b.lineStart(),b.point(o,u));else if(a&&g)b.point(o,u);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),v=Math.max(-1e9,Math.min(1e9,v))],m=[o=Math.max(-1e9,Math.min(1e9,o)),u=Math.max(-1e9,Math.min(1e9,u))];!function(t,n,e,r,i,o){var u,a=t[0],c=t[1],f=0,s=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u<f)return;u<s&&(s=u)}else if(l>0){if(u>s)return;u>f&&(f=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>s)return;u>f&&(f=u)}else if(l>0){if(u<f)return;u<s&&(s=u)}if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<f)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>f&&(f=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>f&&(f=u)}else if(h>0){if(u<f)return;u<s&&(s=u)}return f>0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}}(c,m,t,n,e,r)?a&&(b.lineStart(),b.point(o,u),_=!1):(g||(b.lineStart(),b.point(c[0],c[1])),b.point(m[0],m[1]),a||b.lineEnd(),_=!1)}p=o,v=u,g=a}return x}}var ll,hl,dl,pl=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=sl(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},vl=Vc(),gl={sphere:gf,point:gf,lineStart:function(){gl.point=_l,gl.lineEnd=yl},lineEnd:gf,polygonStart:gf,polygonEnd:gf};function yl(){gl.point=gl.lineEnd=gf}function _l(t,n){ll=t*=Jc,hl=ff(n*=Jc),dl=rf(n),gl.point=bl}function bl(t,n){t*=Jc;var e=ff(n*=Jc),r=rf(n),i=tf(t-ll),o=rf(i),u=r*ff(i),a=dl*e-hl*r*o,c=hl*e+dl*r*o;vl.add(ef(lf(u*u+a*a),c)),ll=t,hl=e,dl=r}var ml=function(t){return vl.reset(),Ef(t,gl),+vl},xl=[null,null],wl={type:"LineString",coordinates:xl},Ml=function(t,n){return xl[0]=t,xl[1]=n,ml(wl)},Al={Feature:function(t,n){return kl(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(kl(e[r].geometry,n))return!0;return!1}},Sl={Sphere:function(){return!0},Point:function(t,n){return El(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(El(e[r],n))return!0;return!1},LineString:function(t,n){return Cl(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Cl(e[r],n))return!0;return!1},Polygon:function(t,n){return Tl(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Tl(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(kl(e[r],n))return!0;return!1}};function kl(t,n){return!(!t||!Sl.hasOwnProperty(t.type))&&Sl[t.type](t,n)}function El(t,n){return 0===Ml(t,n)}function Cl(t,n){for(var e,r,i,o=0,u=t.length;o<u;o++){if(0===(r=Ml(t[o],n)))return!0;if(o>0&&(i=Ml(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<1e-12*i)return!0;e=r}return!1}function Tl(t,n){return!!il(t.map(Ol),Nl(n))}function Ol(t){return(t=t.map(Nl)).pop(),t}function Nl(t){return[t[0]*Jc,t[1]*Jc]}var jl=function(t,n){return(t&&Al.hasOwnProperty(t.type)?Al[t.type]:kl)(t,n)};function Rl(t,n,e){var r=it(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function Pl(t,n,e){var r=it(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function zl(){var t,n,e,r,i,o,u,a,c,f,s,l,h=10,d=h,p=90,v=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return it(of(r/p)*p,e,p).map(s).concat(it(of(a/v)*v,u,v).map(l)).concat(it(of(n/h)*h,t,h).filter((function(t){return tf(t%p)>1e-6})).map(c)).concat(it(of(o/d)*d,i,d).filter((function(t){return tf(t%v)>1e-6})).map(f))}return y.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(u).slice(1),s(e).reverse().slice(1),l(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),y.precision(g)):[[r,a],[e,u]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(g)):[[n,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=Rl(o,i,90),f=Pl(n,t,g),s=Rl(a,u,90),l=Pl(r,e,g),y):g},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Ll(){return zl()()}var Il,Dl,Fl,Bl,Ul=function(t,n){var e=t[0]*Jc,r=t[1]*Jc,i=n[0]*Jc,o=n[1]*Jc,u=rf(r),a=ff(r),c=rf(o),f=ff(o),s=u*rf(e),l=u*ff(e),h=c*rf(i),d=c*ff(i),p=2*pf(lf(vf(o-r)+u*c*vf(i-e))),v=ff(p),g=p?function(t){var n=ff(t*=p)/v,e=ff(p-t)/v,r=e*s+n*h,i=e*l+n*d,o=e*a+n*f;return[ef(i,r)*Qc,ef(o,lf(r*r+i*i))*Qc]}:function(){return[e*Qc,r*Qc]};return g.distance=p,g},Yl=function(t){return t},ql=Vc(),Vl=Vc(),Hl={point:gf,lineStart:gf,lineEnd:gf,polygonStart:function(){Hl.lineStart=$l,Hl.lineEnd=Gl},polygonEnd:function(){Hl.lineStart=Hl.lineEnd=Hl.point=gf,ql.add(tf(Vl)),Vl.reset()},result:function(){var t=ql/2;return ql.reset(),t}};function $l(){Hl.point=Xl}function Xl(t,n){Hl.point=Wl,Il=Fl=t,Dl=Bl=n}function Wl(t,n){Vl.add(Bl*t-Fl*n),Fl=t,Bl=n}function Gl(){Wl(Il,Dl)}var Zl=Hl,Kl=1/0,Ql=Kl,Jl=-Kl,th=Jl;var nh,eh,rh,ih,oh={point:function(t,n){t<Kl&&(Kl=t);t>Jl&&(Jl=t);n<Ql&&(Ql=n);n>th&&(th=n)},lineStart:gf,lineEnd:gf,polygonStart:gf,polygonEnd:gf,result:function(){var t=[[Kl,Ql],[Jl,th]];return Jl=th=-(Ql=Kl=1/0),t}},uh=0,ah=0,ch=0,fh=0,sh=0,lh=0,hh=0,dh=0,ph=0,vh={point:gh,lineStart:yh,lineEnd:mh,polygonStart:function(){vh.lineStart=xh,vh.lineEnd=wh},polygonEnd:function(){vh.point=gh,vh.lineStart=yh,vh.lineEnd=mh},result:function(){var t=ph?[hh/ph,dh/ph]:lh?[fh/lh,sh/lh]:ch?[uh/ch,ah/ch]:[NaN,NaN];return uh=ah=ch=fh=sh=lh=hh=dh=ph=0,t}};function gh(t,n){uh+=t,ah+=n,++ch}function yh(){vh.point=_h}function _h(t,n){vh.point=bh,gh(rh=t,ih=n)}function bh(t,n){var e=t-rh,r=n-ih,i=lf(e*e+r*r);fh+=i*(rh+t)/2,sh+=i*(ih+n)/2,lh+=i,gh(rh=t,ih=n)}function mh(){vh.point=gh}function xh(){vh.point=Mh}function wh(){Ah(nh,eh)}function Mh(t,n){vh.point=Ah,gh(nh=rh=t,eh=ih=n)}function Ah(t,n){var e=t-rh,r=n-ih,i=lf(e*e+r*r);fh+=i*(rh+t)/2,sh+=i*(ih+n)/2,lh+=i,hh+=(i=ih*t-rh*n)*(rh+t),dh+=i*(ih+n),ph+=3*i,gh(rh=t,ih=n)}var Sh=vh;function kh(t){this._context=t}kh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Kc)}},result:gf};var Eh,Ch,Th,Oh,Nh,jh=Vc(),Rh={point:gf,lineStart:function(){Rh.point=Ph},lineEnd:function(){Eh&&zh(Ch,Th),Rh.point=gf},polygonStart:function(){Eh=!0},polygonEnd:function(){Eh=null},result:function(){var t=+jh;return jh.reset(),t}};function Ph(t,n){Rh.point=zh,Ch=Oh=t,Th=Nh=n}function zh(t,n){Oh-=t,Nh-=n,jh.add(lf(Oh*Oh+Nh*Nh)),Oh=t,Nh=n}var Lh=Rh;function Ih(){this._string=[]}function Dh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Ih.prototype={_radius:4.5,_circle:Dh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Dh(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Fh=function(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Ef(t,e(r))),r.result()}return o.area=function(t){return Ef(t,e(Zl)),Zl.result()},o.measure=function(t){return Ef(t,e(Lh)),Lh.result()},o.bounds=function(t){return Ef(t,e(oh)),oh.result()},o.centroid=function(t){return Ef(t,e(Sh)),Sh.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Yl):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Ih):new kh(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)},Bh=function(t){return{stream:Uh(t)}};function Uh(t){return function(n){var e=new Yh;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Yh(){}function qh(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Ef(e,t.stream(oh)),n(oh.result()),null!=r&&t.clipExtent(r),t}function Vh(t,n,e){return qh(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])}),e)}function Hh(t,n,e){return Vh(t,[[0,0],n],e)}function $h(t,n,e){return qh(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])}),e)}function Xh(t,n,e){return qh(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])}),e)}Yh.prototype={constructor:Yh,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Wh=rf(30*Jc),Gh=function(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,f,s,l,h,d,p,v,g){var y=f-r,_=s-i,b=y*y+_*_;if(b>4*n&&v--){var m=u+h,x=a+d,w=c+p,M=lf(m*m+x*x+w*w),A=pf(w/=M),S=tf(tf(w)-1)<1e-6||tf(o-l)<1e-6?(o+l)/2:ef(x,m),k=t(S,A),E=k[0],C=k[1],T=E-r,O=C-i,N=_*T-y*O;(N*N/b>n||tf((y*T+_*O)/b-.5)>.3||u*h+a*d+c*p<Wh)&&(e(r,i,o,u,a,c,E,C,S,m/=M,x/=M,w,v,g),g.point(E,C),e(E,C,S,m,x,w,f,s,l,h,d,p,v,g))}}return function(n){var r,i,o,u,a,c,f,s,l,h,d,p,v={point:g,lineStart:y,lineEnd:b,polygonStart:function(){n.polygonStart(),v.lineStart=m},polygonEnd:function(){n.polygonEnd(),v.lineStart=y}};function g(e,r){e=t(e,r),n.point(e[0],e[1])}function y(){s=NaN,v.point=_,n.lineStart()}function _(r,i){var o=If([r,i]),u=t(r,i);e(s,l,f,h,d,p,s=u[0],l=u[1],f=r,h=o[0],d=o[1],p=o[2],16,n),n.point(s,l)}function b(){v.point=g,n.lineEnd()}function m(){y(),v.point=x,v.lineEnd=w}function x(t,n){_(r=t,n),i=s,o=l,u=h,a=d,c=p,v.point=_}function w(){e(s,l,f,h,d,p,i,o,r,u,a,c,16,n),v.lineEnd=b,b()}return v}}(t,n):function(t){return Uh({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)};var Zh=Uh({point:function(t,n){this.stream.point(t*Jc,n*Jc)}});function Kh(t,n,e,r,i){function o(o,u){return[n+t*(o*=r),e-t*(u*=i)]}return o.invert=function(o,u){return[(o-n)/t*r,(e-u)/t*i]},o}function Qh(t,n,e,r,i,o){var u=rf(o),a=ff(o),c=u*t,f=a*t,s=u/t,l=a/t,h=(a*e-u*n)/t,d=(a*n+u*e)/t;function p(t,o){return[c*(t*=r)-f*(o*=i)+n,e-f*t-c*o]}return p.invert=function(t,n){return[r*(s*t-l*n+h),i*(d-l*t-s*n)]},p}function Jh(t){return td((function(){return t}))()}function td(t){var n,e,r,i,o,u,a,c,f,s,l=150,h=480,d=250,p=0,v=0,g=0,y=0,_=0,b=0,m=1,x=1,w=null,M=cl,A=null,S=Yl,k=.5;function E(t){return c(t[0]*Jc,t[1]*Jc)}function C(t){return(t=c.invert(t[0],t[1]))&&[t[0]*Qc,t[1]*Qc]}function T(){var t=Qh(l,0,0,m,x,b).apply(null,n(p,v)),r=(b?Qh:Kh)(l,h-t[0],d-t[1],m,x,b);return e=qs(g,y,_),a=Us(n,r),c=Us(e,a),u=Gh(a,k),O()}function O(){return f=s=null,E}return E.stream=function(t){return f&&s===t?f:f=Zh(function(t){return Uh({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(u(S(s=t)))))},E.preclip=function(t){return arguments.length?(M=t,w=void 0,O()):M},E.postclip=function(t){return arguments.length?(S=t,A=r=i=o=null,O()):S},E.clipAngle=function(t){return arguments.length?(M=+t?fl(w=t*Jc):(w=null,cl),O()):w*Qc},E.clipExtent=function(t){return arguments.length?(S=null==t?(A=r=i=o=null,Yl):sl(A=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),O()):null==A?null:[[A,r],[i,o]]},E.scale=function(t){return arguments.length?(l=+t,T()):l},E.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],T()):[h,d]},E.center=function(t){return arguments.length?(p=t[0]%360*Jc,v=t[1]%360*Jc,T()):[p*Qc,v*Qc]},E.rotate=function(t){return arguments.length?(g=t[0]%360*Jc,y=t[1]%360*Jc,_=t.length>2?t[2]%360*Jc:0,T()):[g*Qc,y*Qc,_*Qc]},E.angle=function(t){return arguments.length?(b=t%360*Jc,T()):b*Qc},E.reflectX=function(t){return arguments.length?(m=t?-1:1,T()):m<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,T()):x<0},E.precision=function(t){return arguments.length?(u=Gh(a,k=t*t),O()):lf(k)},E.fitExtent=function(t,n){return Vh(E,t,n)},E.fitSize=function(t,n){return Hh(E,t,n)},E.fitWidth=function(t,n){return $h(E,t,n)},E.fitHeight=function(t,n){return Xh(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&C,T()}}function nd(t){var n=0,e=Wc/3,r=td(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Jc,e=t[1]*Jc):[n*Qc,e*Qc]},i}function ed(t,n){var e=ff(t),r=(e+ff(n))/2;if(tf(r)<1e-6)return function(t){var n=rf(t);function e(t,e){return[t*n,ff(e)/n]}return e.invert=function(t,e){return[t/n,pf(e*n)]},e}(t);var i=1+e*(2*r-e),o=lf(i)/r;function u(t,n){var e=lf(i-2*r*ff(n))/r;return[e*ff(t*=r),o-e*rf(t)]}return u.invert=function(t,n){var e=o-n,u=ef(t,tf(e))*sf(e);return e*r<0&&(u-=Wc*sf(t)*sf(e)),[u/r,pf((i-(t*t+e*e)*r*r)/(2*r))]},u}var rd=function(){return nd(ed).scale(155.424).center([0,33.6442])},id=function(){return rd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var od=function(){var t,n,e,r,i,o,u=id(),a=rd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=rd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){o=[t,n]}};function s(t){var n=t[0],u=t[1];return o=null,e.point(n,u),o||(r.point(n,u),o)||(i.point(n,u),o)}function l(){return t=n=null,s}return s.invert=function(t){var n=u.scale(),e=u.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[u.stream(n=e),a.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(u.precision(t),a.precision(t),c.precision(t),l()):u.precision()},s.scale=function(t){return arguments.length?(u.scale(t),a.scale(.35*t),c.scale(t),s.translate(u.translate())):u.scale()},s.translate=function(t){if(!arguments.length)return u.translate();var n=u.scale(),o=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[o-.455*n,s-.238*n],[o+.455*n,s+.238*n]]).stream(f),r=a.translate([o-.307*n,s+.201*n]).clipExtent([[o-.425*n+1e-6,s+.12*n+1e-6],[o-.214*n-1e-6,s+.234*n-1e-6]]).stream(f),i=c.translate([o-.205*n,s+.212*n]).clipExtent([[o-.214*n+1e-6,s+.166*n+1e-6],[o-.115*n-1e-6,s+.234*n-1e-6]]).stream(f),l()},s.fitExtent=function(t,n){return Vh(s,t,n)},s.fitSize=function(t,n){return Hh(s,t,n)},s.fitWidth=function(t,n){return $h(s,t,n)},s.fitHeight=function(t,n){return Xh(s,t,n)},s.scale(1070)};function ud(t){return function(n,e){var r=rf(n),i=rf(e),o=t(r*i);return[o*i*ff(n),o*ff(e)]}}function ad(t){return function(n,e){var r=lf(n*n+e*e),i=t(r),o=ff(i),u=rf(i);return[ef(n*o,r*u),pf(r&&e*o/r)]}}var cd=ud((function(t){return lf(2/(1+t))}));cd.invert=ad((function(t){return 2*pf(t/2)}));var fd=function(){return Jh(cd).scale(124.75).clipAngle(179.999)},sd=ud((function(t){return(t=df(t))&&t/ff(t)}));sd.invert=ad((function(t){return t}));var ld=function(){return Jh(sd).scale(79.4188).clipAngle(179.999)};function hd(t,n){return[t,af(hf((Gc+n)/2))]}hd.invert=function(t,n){return[t,2*nf(uf(n))-Gc]};var dd=function(){return pd(hd).scale(961/Kc)};function pd(t){var n,e,r,i=Jh(t),o=i.center,u=i.scale,a=i.translate,c=i.clipExtent,f=null;function s(){var o=Wc*u(),a=i(Xs(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===hd?[[Math.max(a[0]-o,f),n],[Math.min(a[0]+o,e),r]]:[[f,Math.max(a[1]-o,n)],[e,Math.min(a[1]+o,r)]])}return i.scale=function(t){return arguments.length?(u(t),s()):u()},i.translate=function(t){return arguments.length?(a(t),s()):a()},i.center=function(t){return arguments.length?(o(t),s()):o()},i.clipExtent=function(t){return arguments.length?(null==t?f=n=e=r=null:(f=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),s()):null==f?null:[[f,n],[e,r]]},s()}function vd(t){return hf((Gc+t)/2)}function gd(t,n){var e=rf(t),r=t===n?ff(t):af(e/rf(n))/af(vd(n)/vd(t)),i=e*cf(vd(t),r)/r;if(!r)return hd;function o(t,n){i>0?n<1e-6-Gc&&(n=1e-6-Gc):n>Gc-1e-6&&(n=Gc-1e-6);var e=i/cf(vd(n),r);return[e*ff(r*t),i-e*rf(r*t)]}return o.invert=function(t,n){var e=i-n,o=sf(r)*lf(t*t+e*e),u=ef(t,tf(e))*sf(e);return e*r<0&&(u-=Wc*sf(t)*sf(e)),[u/r,2*nf(cf(i/o,1/r))-Gc]},o}var yd=function(){return nd(gd).scale(109.5).parallels([30,30])};function _d(t,n){return[t,n]}_d.invert=_d;var bd=function(){return Jh(_d).scale(152.63)};function md(t,n){var e=rf(t),r=t===n?ff(t):(e-rf(n))/(n-t),i=e/r+t;if(tf(r)<1e-6)return _d;function o(t,n){var e=i-n,o=r*t;return[e*ff(o),i-e*rf(o)]}return o.invert=function(t,n){var e=i-n,o=ef(t,tf(e))*sf(e);return e*r<0&&(o-=Wc*sf(t)*sf(e)),[o/r,i-sf(r)*lf(t*t+e*e)]},o}var xd=function(){return nd(md).scale(131.154).center([0,13.9389])},wd=1.340264,Md=-.081106,Ad=893e-6,Sd=.003796,kd=lf(3)/2;function Ed(t,n){var e=pf(kd*ff(n)),r=e*e,i=r*r*r;return[t*rf(e)/(kd*(wd+3*Md*r+i*(7*Ad+9*Sd*r))),e*(wd+Md*r+i*(Ad+Sd*r))]}Ed.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,u=0;u<12&&(o=(i=(r-=e=(r*(wd+Md*i+o*(Ad+Sd*i))-n)/(wd+3*Md*i+o*(7*Ad+9*Sd*i)))*r)*i*i,!(tf(e)<1e-12));++u);return[kd*t*(wd+3*Md*i+o*(7*Ad+9*Sd*i))/rf(r),pf(ff(r)/kd)]};var Cd=function(){return Jh(Ed).scale(177.158)};function Td(t,n){var e=rf(n),r=rf(t)*e;return[e*ff(t)/r,ff(n)/r]}Td.invert=ad(nf);var Od=function(){return Jh(Td).scale(144.049).clipAngle(60)},Nd=function(){var t,n,e,r,i,o,u,a=1,c=0,f=0,s=1,l=1,h=0,d=null,p=1,v=1,g=Uh({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),y=Yl;function _(){return p=a*s,v=a*l,o=u=null,b}function b(e){var r=e[0]*p,i=e[1]*v;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+f]}return b.invert=function(e){var r=e[0]-c,i=e[1]-f;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/v]},b.stream=function(t){return o&&u===t?o:o=g(y(u=t))},b.postclip=function(t){return arguments.length?(y=t,d=e=r=i=null,_()):y},b.clipExtent=function(t){return arguments.length?(y=null==t?(d=e=r=i=null,Yl):sl(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),_()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(a=+t,_()):a},b.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],_()):[c,f]},b.angle=function(e){return arguments.length?(n=ff(h=e%360*Jc),t=rf(h),_()):h*Qc},b.reflectX=function(t){return arguments.length?(s=t?-1:1,_()):s<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,_()):l<0},b.fitExtent=function(t,n){return Vh(b,t,n)},b.fitSize=function(t,n){return Hh(b,t,n)},b.fitWidth=function(t,n){return $h(b,t,n)},b.fitHeight=function(t,n){return Xh(b,t,n)},b};function jd(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}jd.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(tf(e)>1e-6&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Rd=function(){return Jh(jd).scale(175.295)};function Pd(t,n){return[rf(n)*ff(t),ff(n)]}Pd.invert=ad(pf);var zd=function(){return Jh(Pd).scale(249.5).clipAngle(90.000001)};function Ld(t,n){var e=rf(n),r=1+rf(t)*e;return[e*ff(t)/r,ff(n)/r]}Ld.invert=ad((function(t){return 2*nf(t)}));var Id=function(){return Jh(Ld).scale(250).clipAngle(142)};function Dd(t,n){return[af(hf((Gc+n)/2)),-t]}Dd.invert=function(t,n){return[-n,2*nf(uf(t))-Gc]};var Fd=function(){var t=pd(Dd),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function Bd(t,n){return t.parent===n.parent?1:2}function Ud(t,n){return t+n.x}function Yd(t,n){return Math.max(t,n.y)}var qd=function(){var t=Bd,n=1,e=1,r=!1;function i(i){var o,u=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Ud,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Yd,0)}(e)):(n.x=o?u+=t(n,o):0,n.y=0,o=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),f=a.x-t(a,c)/2,s=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-f)/(s-f)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function Vd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Hd(t,n){var e,r,i,o,u,a=new Gd(t),c=+t.value&&(a.value=t.value),f=[a];for(null==n&&(n=$d);e=f.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)f.push(r=e.children[o]=new Gd(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Wd)}function $d(t){return t.children}function Xd(t){t.data=t.data.data}function Wd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Gd(t){this.data=t,this.depth=this.height=0,this.parent=null}Gd.prototype=Hd.prototype={constructor:Gd,count:function(){return this.eachAfter(Vd)},each:function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},eachAfter:function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},eachBefore:function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Hd(this).eachBefore(Xd)}};var Zd=Array.prototype.slice;var Kd=function(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Zd.call(t))).length,o=[];r<i;)n=t[r],e&&tp(e,n)?++r:(e=ep(o=Qd(o,n)),r=0);return e};function Qd(t,n){var e,r;if(np(n,t))return[n];for(e=0;e<t.length;++e)if(Jd(n,t[e])&&np(rp(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(Jd(rp(t[e],t[r]),n)&&Jd(rp(t[e],n),t[r])&&Jd(rp(t[r],n),t[e])&&np(ip(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function Jd(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function tp(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function np(t,n){for(var e=0;e<n.length;++e)if(!tp(t,n[e]))return!1;return!0}function ep(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return rp(t[0],t[1]);case 3:return ip(t[0],t[1],t[2])}var n}function rp(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,f=u-r,s=a-i,l=Math.sqrt(c*c+f*f);return{x:(e+o+c/l*s)/2,y:(r+u+f/l*s)/2,r:(l+i+a)/2}}function ip(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-u,d=r-f,p=i-a,v=i-s,g=c-o,y=l-o,_=r*r+i*i-o*o,b=_-u*u-a*a+c*c,m=_-f*f-s*s+l*l,x=d*p-h*v,w=(p*m-v*b)/(2*x)-r,M=(v*g-p*y)/x,A=(d*b-h*m)/(2*x)-i,S=(h*y-d*g)/x,k=M*M+S*S-1,E=2*(o+w*M+A*S),C=w*w+A*A-o*o,T=-(k?(E+Math.sqrt(E*E-4*k*C))/(2*k):C/E);return{x:r+w+M*T,y:i+A+S*T,r:T}}function op(t,n,e){var r,i,o,u,a=t.x-n.x,c=t.y-n.y,f=a*a+c*c;f?(i=n.r+e.r,i*=i,u=t.r+e.r,i>(u*=u)?(r=(f+u-i)/(2*f),o=Math.sqrt(Math.max(0,u/f-r*r)),e.x=t.x-r*a-o*c,e.y=t.y-r*c+o*a):(r=(f+i-u)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*a-o*c,e.y=n.y+r*c+o*a)):(e.x=n.x+e.r,e.y=n.y)}function up(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function ap(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function cp(t){this._=t,this.next=null,this.previous=null}function fp(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,f,s,l;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;op(e,n,r=t[2]),n=new cp(n),e=new cp(e),r=new cp(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){op(n._,e._,r=t[a]),r=new cp(r),c=e.next,f=n.previous,s=e._.r,l=n._.r;do{if(s<=l){if(up(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}s+=c._.r,c=c.next}else{if(up(f._,r._)){(n=f).next=e,e.previous=n,--a;continue t}l+=f._.r,f=f.previous}}while(c!==f.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=ap(n);(r=r.next)!==e;)(u=ap(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Kd(n),a=0;a<i;++a)(n=t[a]).x-=r.x,n.y-=r.y;return r.r}var sp=function(t){return fp(t),t};function lp(t){return null==t?null:hp(t)}function hp(t){if("function"!=typeof t)throw new Error;return t}function dp(){return 0}var pp=function(t){return function(){return t}};function vp(t){return Math.sqrt(t.value)}var gp=function(){var t=null,n=1,e=1,r=dp;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(yp(t)).eachAfter(_p(r,.5)).eachBefore(bp(1)):i.eachBefore(yp(vp)).eachAfter(_p(dp,1)).eachAfter(_p(r,i.r/Math.min(n,e))).eachBefore(bp(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=lp(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:pp(+t),i):r},i};function yp(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function _p(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=fp(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function bp(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}var mp=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},xp=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*f},wp=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&xp(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,u=r.x1-e,a=r.y1-e;u<i&&(i=u=(i+u)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=u,r.y1=a}}(n,o)),r&&i.eachBefore(mp),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},Mp={depth:-1},Ap={};function Sp(t){return t.id}function kp(t){return t.parentId}var Ep=function(){var t=Sp,n=kp;function e(e){var r,i,o,u,a,c,f,s=e.length,l=new Array(s),h={};for(i=0;i<s;++i)r=e[i],a=l[i]=new Gd(r),null!=(c=t(r,i,e))&&(c+="")&&(h[f="$"+(a.id=c)]=f in h?Ap:a);for(i=0;i<s;++i)if(a=l[i],null!=(c=n(e[i],i,e))&&(c+="")){if(!(u=h["$"+c]))throw new Error("missing: "+c);if(u===Ap)throw new Error("ambiguous: "+c);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Mp,o.eachBefore((function(t){t.depth=t.parent.depth+1,--s})).eachBefore(Wd),o.parent=null,s>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=hp(n),e):t},e.parentId=function(t){return arguments.length?(n=hp(t),e):n},e};function Cp(t,n){return t.parent===n.parent?1:2}function Tp(t){var n=t.children;return n?n[0]:t.t}function Op(t){var n=t.children;return n?n[n.length-1]:t.t}function Np(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function jp(t,n,e){return t.a.parent===n.parent?t.a:e}function Rp(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}Rp.prototype=Object.create(Gd.prototype);var Pp=function(){var t=Cp,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,u=new Rp(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Rp(r[i],i)),e.parent=n;return(u.parent=new Rp(null,0)).children=[u],u}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(u),r)i.eachBefore(a);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,u=n,a=e,c=o.parent.children[0],f=o.m,s=u.m,l=a.m,h=c.m;a=Op(a),o=Tp(o),a&&o;)c=Tp(c),(u=Op(u)).a=n,(i=a.z+l-o.z-f+t(a._,o._))>0&&(Np(jp(a,n,r),n,i),f+=i,s+=i),l+=a.m,f+=o.m,h+=c.m,s+=u.m;a&&!Op(u)&&(u.t=a,u.m+=l-s),o&&!Tp(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},zp=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(i-e)/t.value;++a<c;)(o=u[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*f},Lp=(1+Math.sqrt(5))/2;function Ip(t,n,e,r,i,o){for(var u,a,c,f,s,l,h,d,p,v,g,y=[],_=n.children,b=0,m=0,x=_.length,w=n.value;b<x;){c=i-e,f=o-r;do{s=_[m++].value}while(!s&&m<x);for(l=h=s,g=s*s*(v=Math.max(f/c,c/f)/(w*t)),p=Math.max(h/g,g/l);m<x;++m){if(s+=a=_[m].value,a<l&&(l=a),a>h&&(h=a),g=s*s*v,(d=Math.max(h/g,g/l))>p){s-=a;break}p=d}y.push(u={value:s,dice:c<f,children:_.slice(b,m)}),u.dice?xp(u,e,r,i,w?r+=f*s/w:o):zp(u,e,r,w?e+=c*s/w:i,o),w-=s,b=m}return y}var Dp=function t(n){function e(t,e,r,i,o){Ip(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Lp),Fp=function(){var t=Dp,n=!1,e=1,r=1,i=[0],o=dp,u=dp,a=dp,c=dp,f=dp;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(mp),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),n.x0=r,n.y0=s,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=f(n)-e,s+=u(n)-e,(l-=a(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<s&&(s=h=(s+h)/2),t(n,r,s,l,h))}return s.round=function(t){return arguments.length?(n=!!t,s):n},s.size=function(t){return arguments.length?(e=+t[0],r=+t[1],s):[e,r]},s.tile=function(n){return arguments.length?(t=hp(n),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:pp(+t),s):o},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:pp(+t),s):u},s.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:pp(+t),s):a},s.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:pp(+t),s):c},s.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:pp(+t),s):f},s},Bp=function(t,n,e,r,i){var o,u,a=t.children,c=a.length,f=new Array(c+1);for(f[0]=u=o=0;o<c;++o)f[o+1]=u+=a[o].value;!function t(n,e,r,i,o,u,c){if(n>=e-1){var s=a[n];return s.x0=i,s.y0=o,s.x1=u,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&n+1<d&&--d;var g=f[d]-l,y=r-g;if(u-i>c-o){var _=(i*y+u*g)/r;t(n,d,g,i,o,_,c),t(d,e,y,_,o,u,c)}else{var b=(o*y+c*g)/r;t(n,d,g,i,o,u,b),t(d,e,y,i,b,u,c)}}(0,c,t.value,n,e,r,i)},Up=function(t,n,e,r,i){(1&t.depth?zp:xp)(t,n,e,r,i)},Yp=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,f,s,l=-1,h=u.length,d=t.value;++l<h;){for(c=(a=u[l]).children,f=a.value=0,s=c.length;f<s;++f)a.value+=c[f].value;a.dice?xp(a,e,r,i,r+=(o-r)*a.value/d):zp(a,e,r,e+=(i-e)*a.value/d,o),d-=a.value}else t._squarify=u=Ip(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Lp),qp=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},Vp=function(t,n){var e=He(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},Hp=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},$p=Math.SQRT2;function Xp(t){return((t=Math.exp(t))+1/t)/2}var Wp=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],f=n[2],s=a-i,l=c-o,h=s*s+l*l;if(h<1e-12)r=Math.log(f/u)/$p,e=function(t){return[i+t*s,o+t*l,u*Math.exp($p*t*r)]};else{var d=Math.sqrt(h),p=(f*f-u*u+4*h)/(2*u*2*d),v=(f*f-u*u-4*h)/(2*f*2*d),g=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/$p,e=function(t){var n,e=t*r,a=Xp(g),c=u/(2*d)*(a*(n=$p*e+g,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*s,o+c*l,u*a/Xp($p*e+g)]}}return e.duration=1e3*r,e};function Gp(t){return function(n,e){var r=t((n=Ie(n)).h,(e=Ie(e)).h),i=Xe(n.s,e.s),o=Xe(n.l,e.l),u=Xe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var Zp=Gp(He),Kp=Gp(Xe);function Qp(t,n){var e=Xe((t=Ko(t)).l,(n=Ko(n)).l),r=Xe(t.a,n.a),i=Xe(t.b,n.b),o=Xe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function Jp(t){return function(n,e){var r=t((n=ou(n)).h,(e=ou(e)).h),i=Xe(n.c,e.c),o=Xe(n.l,e.l),u=Xe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var tv=Jp(He),nv=Jp(Xe);function ev(t){return function n(e){function r(n,r){var i=t((n=du(n)).h,(r=du(r)).h),o=Xe(n.s,r.s),u=Xe(n.l,r.l),a=Xe(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var rv=ev(He),iv=ev(Xe);function ov(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}var uv=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},av=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},cv=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return[o/(c*=3),u/c]};function fv(t,n){return t[0]-n[0]||t[1]-n[1]}function sv(t){for(var n,e,r,i=t.length,o=[0,1],u=2,a=2;a<i;++a){for(;u>1&&(n=t[o[u-2]],e=t[o[u-1]],r=t[a],(e[0]-n[0])*(r[1]-n[1])-(e[1]-n[1])*(r[0]-n[0])<=0);)--u;o[u++]=a}return o.slice(0,u)}var lv=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(fv),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=sv(r),u=sv(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],f=[];for(n=o.length-1;n>=0;--n)f.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)f.push(t[r[u[n]][2]]);return f},hv=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],f=o[1],s=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>a!=f>a&&u<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},dv=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,n-=u=(o=t[r])[0],e-=a=o[1],c+=Math.sqrt(n*n+e*e);return c},pv=function(){return Math.random()},vv=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(pv),gv=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(pv),yv=function t(n){function e(){var t=gv.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(pv),_v=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(pv),bv=function t(n){function e(t){var e=_v.source(n)(t);return function(){return e()/t}}return e.source=t,e}(pv),mv=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(pv);function xv(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function wv(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t)}return this}var Mv=Array.prototype,Av=Mv.map,Sv=Mv.slice,kv={name:"implicit"};function Ev(){var t=Po(),n=[],e=[],r=kv;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==kv)return r;t.set(o,u=n.push(i))}return e[(u-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Po();for(var r,o,u=-1,a=e.length;++u<a;)t.has(o=(r=e[u])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Sv.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ev(n,e).unknown(r)},xv.apply(i,arguments),i}function Cv(){var t,n,e=Ev().unknown(void 0),r=e.domain,i=e.range,o=[0,1],u=!1,a=0,c=0,f=.5;function s(){var e=r().length,s=o[1]<o[0],l=o[s-0],h=o[1-s];t=(h-l)/Math.max(1,e-a+2*c),u&&(t=Math.floor(t)),l+=(h-l-t*(e-a))*f,n=t*(1-a),u&&(l=Math.round(l),n=Math.round(n));var d=it(e).map((function(n){return l+t*n}));return i(s?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),s()):r()},e.range=function(t){return arguments.length?(o=[+t[0],+t[1]],s()):o.slice()},e.rangeRound=function(t){return o=[+t[0],+t[1]],u=!0,s()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,s()):u},e.padding=function(t){return arguments.length?(a=Math.min(1,c=+t),s()):a},e.paddingInner=function(t){return arguments.length?(a=Math.min(1,t),s()):a},e.paddingOuter=function(t){return arguments.length?(c=+t,s()):c},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),s()):f},e.copy=function(){return Cv(r(),o).round(u).paddingInner(a).paddingOuter(c).align(f)},xv.apply(s(),arguments)}function Tv(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Tv(n())},t}function Ov(){return Tv(Cv.apply(null,arguments).paddingInner(1))}var Nv=function(t){return+t},jv=[0,1];function Rv(t){return t}function Pv(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function zv(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function Lv(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=Pv(i,r),o=e(u,o)):(r=Pv(r,i),o=e(o,u)),function(t){return o(r(t))}}function Iv(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<r;)i[u]=Pv(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=V(t,n,1,r)-1;return o[e](i[e](n))}}function Dv(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Fv(){var t,n,e,r,i,o,u=jv,a=jv,c=sr,f=Rv;function s(){return r=Math.min(u.length,a.length)>2?Iv:Lv,i=o=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(u.map(t),a,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(a,u.map(t),rr)))(e)))},l.domain=function(t){return arguments.length?(u=Av.call(t,Nv),f===Rv||(f=zv(u)),s()):u.slice()},l.range=function(t){return arguments.length?(a=Sv.call(t),s()):a.slice()},l.rangeRound=function(t){return a=Sv.call(t),c=Hp,s()},l.clamp=function(t){return arguments.length?(f=t?zv(u):Rv,l):f!==Rv},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function Bv(t,n){return Fv()(t,n)}var Uv=function(t,n,e,r){var i,o=st(t,n,e);switch((r=Cc(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=Yc(o,u))||(r.precision=i),Rc(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=qc(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Uc(o))||(r.precision=i-2*("%"===r.type))}return jc(r)};function Yv(t){var n=t.domain;return t.ticks=function(t){var e=n();return ct(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Uv(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c<a&&(r=a,a=c,c=r,r=o,o=u,u=r),(r=ft(a,c,e))>0?r=ft(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=ft(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function qv(){var t=Bv(Rv,Rv);return t.copy=function(){return Dv(t,qv())},xv.apply(t,arguments),Yv(t)}function Vv(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Av.call(n,Nv),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Vv(t).unknown(n)},t=arguments.length?Av.call(t,Nv):[0,1],Yv(e)}var Hv=function(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t};function $v(t){return Math.log(t)}function Xv(t){return Math.exp(t)}function Wv(t){return-Math.log(-t)}function Gv(t){return-Math.exp(-t)}function Zv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Kv(t){return function(n){return-t(-n)}}function Qv(t){var n,e,r=t($v,Xv),i=r.domain,o=10;function u(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),e=function(t){return 10===t?Zv:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),i()[0]<0?(n=Kv(n),e=Kv(e),t(Wv,Gv)):t($v,Xv),r}return r.base=function(t){return arguments.length?(o=+t,u()):o},r.domain=function(t){return arguments.length?(i(t),u()):i()},r.ticks=function(t){var r,u=i(),a=u[0],c=u[u.length-1];(r=c<a)&&(h=a,a=c,c=h);var f,s,l,h=n(a),d=n(c),p=null==t?10:+t,v=[];if(!(o%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(s=1,f=e(h);s<o;++s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}}else for(;h<d;++h)for(s=o-1,f=e(h);s>=1;--s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}}else v=ct(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=jc(i)),t===1/0)return i;null==t&&(t=10);var u=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o<o-.5&&(r*=o),r<=u?i(t):""}},r.nice=function(){return i(Hv(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function Jv(){var t=Qv(Fv()).domain([1,10]);return t.copy=function(){return Dv(t,Jv()).base(t.base())},xv.apply(t,arguments),t}function tg(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function ng(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function eg(t){var n=1,e=t(tg(n),ng(n));return e.constant=function(e){return arguments.length?t(tg(n=+e),ng(n)):n},Yv(e)}function rg(){var t=eg(Fv());return t.copy=function(){return Dv(t,rg()).constant(t.constant())},xv.apply(t,arguments)}function ig(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function og(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ug(t){return t<0?-t*t:t*t}function ag(t){var n=t(Rv,Rv),e=1;function r(){return 1===e?t(Rv,Rv):.5===e?t(og,ug):t(ig(e),ig(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Yv(n)}function cg(){var t=ag(Fv());return t.copy=function(){return Dv(t,cg()).exponent(t.exponent())},xv.apply(t,arguments),t}function fg(){return cg.apply(null,arguments).exponent(.5)}function sg(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=dt(n,t/i);return o}function o(n){return isNaN(n=+n)?t:e[V(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var e,r=0,o=t.length;r<o;++r)null==(e=t[r])||isNaN(e=+e)||n.push(e);return n.sort(F),i()},o.range=function(t){return arguments.length?(e=Sv.call(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return sg().domain(n).range(e).unknown(t)},xv.apply(o,arguments)}function lg(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function u(n){return n<=n?o[V(i,n,0,r)]:t}function a(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return u}return u.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],a()):[n,e]},u.range=function(t){return arguments.length?(r=(o=Sv.call(t)).length-1,a()):o.slice()},u.invertExtent=function(t){var u=o.indexOf(t);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=r?[i[r-1],e]:[i[u-1],i[u]]},u.unknown=function(n){return arguments.length?(t=n,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return lg().domain([n,e]).range(o).unknown(t)},xv.apply(Yv(u),arguments)}function hg(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[V(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Sv.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Sv.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return hg().domain(n).range(e).unknown(t)},xv.apply(i,arguments)}var dg=new Date,pg=new Date;function vg(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return vg((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return dg.setTime(+n),pg.setTime(+r),t(dg),t(pg),Math.floor(e(dg,pg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var gg=vg((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));gg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vg((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var yg=gg,_g=gg.range,bg=vg((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),mg=bg,xg=bg.range;function wg(t){return vg((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Mg=wg(0),Ag=wg(1),Sg=wg(2),kg=wg(3),Eg=wg(4),Cg=wg(5),Tg=wg(6),Og=Mg.range,Ng=Ag.range,jg=Sg.range,Rg=kg.range,Pg=Eg.range,zg=Cg.range,Lg=Tg.range,Ig=vg((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),Dg=Ig,Fg=Ig.range,Bg=vg((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),Ug=Bg,Yg=Bg.range,qg=vg((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()})),Vg=qg,Hg=qg.range,$g=vg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),Xg=$g,Wg=$g.range,Gg=vg((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Gg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?vg((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Gg:null};var Zg=Gg,Kg=Gg.range;function Qg(t){return vg((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/6048e5}))}var Jg=Qg(0),ty=Qg(1),ny=Qg(2),ey=Qg(3),ry=Qg(4),iy=Qg(5),oy=Qg(6),uy=Jg.range,ay=ty.range,cy=ny.range,fy=ey.range,sy=ry.range,ly=iy.range,hy=oy.range,dy=vg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})),py=dy,vy=dy.range,gy=vg((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));gy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vg((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var yy=gy,_y=gy.range;function by(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function my(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function xy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function wy(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,f=Py(i),s=zy(i),l=Py(o),h=zy(o),d=Py(u),p=zy(u),v=Py(a),g=zy(a),y=Py(c),_=zy(c),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:e_,e:e_,f:a_,g:__,G:m_,H:r_,I:i_,j:o_,L:u_,m:c_,M:f_,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:q_,s:V_,S:s_,u:l_,U:h_,V:p_,w:v_,W:g_,x:null,X:null,y:y_,Y:b_,Z:x_,"%":Y_},m={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:w_,e:w_,f:E_,g:D_,G:B_,H:M_,I:A_,j:S_,L:k_,m:C_,M:T_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:q_,s:V_,S:O_,u:N_,U:j_,V:P_,w:z_,W:L_,x:null,X:null,y:I_,Y:F_,Z:U_,"%":Y_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:$y,e:$y,f:Qy,g:Yy,G:Uy,H:Wy,I:Wy,j:Xy,L:Ky,m:Hy,M:Gy,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},q:Vy,Q:t_,s:n_,S:Zy,u:Iy,U:Dy,V:Fy,w:Ly,W:By,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:Yy,Y:Uy,Z:qy,"%":Jy};function w(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=Cy[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function M(t,n){return function(e){var r,i,o=xy(1900,void 0,1);if(A(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=my(xy(o.y,0,1))).getUTCDay(),r=i>4||0===i?ty.ceil(r):ty(r),r=py.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=by(xy(o.y,0,1))).getDay(),r=i>4||0===i?Ag.ceil(r):Ag(r),r=Dg.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?my(xy(o.y,0,1)).getUTCDay():by(xy(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,my(o)):by(o)}}function A(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in Cy?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var My,Ay,Sy,ky,Ey,Cy={"-":"",_:" ",0:"0"},Ty=/^\s*\d+/,Oy=/^%/,Ny=/[\\^$*+?|[\]().{}]/g;function jy(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function Ry(t){return t.replace(Ny,"\\$&")}function Py(t){return new RegExp("^(?:"+t.map(Ry).join("|")+")","i")}function zy(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Ly(t,n,e){var r=Ty.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Iy(t,n,e){var r=Ty.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Dy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Fy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function By(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Uy(t,n,e){var r=Ty.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Yy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function qy(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Vy(t,n,e){var r=Ty.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Hy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function $y(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Xy(t,n,e){var r=Ty.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Wy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Gy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Zy(t,n,e){var r=Ty.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Ky(t,n,e){var r=Ty.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Qy(t,n,e){var r=Ty.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Jy(t,n,e){var r=Oy.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function t_(t,n,e){var r=Ty.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function n_(t,n,e){var r=Ty.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function e_(t,n){return jy(t.getDate(),n,2)}function r_(t,n){return jy(t.getHours(),n,2)}function i_(t,n){return jy(t.getHours()%12||12,n,2)}function o_(t,n){return jy(1+Dg.count(yg(t),t),n,3)}function u_(t,n){return jy(t.getMilliseconds(),n,3)}function a_(t,n){return u_(t,n)+"000"}function c_(t,n){return jy(t.getMonth()+1,n,2)}function f_(t,n){return jy(t.getMinutes(),n,2)}function s_(t,n){return jy(t.getSeconds(),n,2)}function l_(t){var n=t.getDay();return 0===n?7:n}function h_(t,n){return jy(Mg.count(yg(t)-1,t),n,2)}function d_(t){var n=t.getDay();return n>=4||0===n?Eg(t):Eg.ceil(t)}function p_(t,n){return t=d_(t),jy(Eg.count(yg(t),t)+(4===yg(t).getDay()),n,2)}function v_(t){return t.getDay()}function g_(t,n){return jy(Ag.count(yg(t)-1,t),n,2)}function y_(t,n){return jy(t.getFullYear()%100,n,2)}function __(t,n){return jy((t=d_(t)).getFullYear()%100,n,2)}function b_(t,n){return jy(t.getFullYear()%1e4,n,4)}function m_(t,n){var e=t.getDay();return jy((t=e>=4||0===e?Eg(t):Eg.ceil(t)).getFullYear()%1e4,n,4)}function x_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+jy(n/60|0,"0",2)+jy(n%60,"0",2)}function w_(t,n){return jy(t.getUTCDate(),n,2)}function M_(t,n){return jy(t.getUTCHours(),n,2)}function A_(t,n){return jy(t.getUTCHours()%12||12,n,2)}function S_(t,n){return jy(1+py.count(yy(t),t),n,3)}function k_(t,n){return jy(t.getUTCMilliseconds(),n,3)}function E_(t,n){return k_(t,n)+"000"}function C_(t,n){return jy(t.getUTCMonth()+1,n,2)}function T_(t,n){return jy(t.getUTCMinutes(),n,2)}function O_(t,n){return jy(t.getUTCSeconds(),n,2)}function N_(t){var n=t.getUTCDay();return 0===n?7:n}function j_(t,n){return jy(Jg.count(yy(t)-1,t),n,2)}function R_(t){var n=t.getUTCDay();return n>=4||0===n?ry(t):ry.ceil(t)}function P_(t,n){return t=R_(t),jy(ry.count(yy(t),t)+(4===yy(t).getUTCDay()),n,2)}function z_(t){return t.getUTCDay()}function L_(t,n){return jy(ty.count(yy(t)-1,t),n,2)}function I_(t,n){return jy(t.getUTCFullYear()%100,n,2)}function D_(t,n){return jy((t=R_(t)).getUTCFullYear()%100,n,2)}function F_(t,n){return jy(t.getUTCFullYear()%1e4,n,4)}function B_(t,n){var e=t.getUTCDay();return jy((t=e>=4||0===e?ry(t):ry.ceil(t)).getUTCFullYear()%1e4,n,4)}function U_(){return"+0000"}function Y_(){return"%"}function q_(t){return+t}function V_(t){return Math.floor(+t/1e3)}function H_(t){return My=wy(t),Ay=My.format,Sy=My.parse,ky=My.utcFormat,Ey=My.utcParse,My}H_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $_(t){return new Date(t)}function X_(t){return t instanceof Date?+t:+new Date(+t)}function W_(t,n,e,r,i,o,u,a,c){var f=Bv(Rv,Rv),s=f.invert,l=f.domain,h=c(".%L"),d=c(":%S"),p=c("%I:%M"),v=c("%I %p"),g=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y"),m=[[u,1,1e3],[u,5,5e3],[u,15,15e3],[u,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function x(a){return(u(a)<a?h:o(a)<a?d:i(a)<a?p:r(a)<a?v:n(a)<a?e(a)<a?g:y:t(a)<a?_:b)(a)}function w(n,e,r,i){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(r-e)/n,u=B((function(t){return t[2]})).right(m,o);u===m.length?(i=st(e/31536e6,r/31536e6,n),n=t):u?(i=(u=m[o/m[u-1][2]<m[u][2]/o?u-1:u])[1],n=u[0]):(i=Math.max(st(e,r,n),1),n=a)}return null==i?n:n.every(i)}return f.invert=function(t){return new Date(s(t))},f.domain=function(t){return arguments.length?l(Av.call(t,X_)):l().map($_)},f.ticks=function(t,n){var e,r=l(),i=r[0],o=r[r.length-1],u=o<i;return u&&(e=i,i=o,o=e),e=(e=w(t,i,o,n))?e.range(i,o+1):[],u?e.reverse():e},f.tickFormat=function(t,n){return null==n?x:c(n)},f.nice=function(t,n){var e=l();return(t=w(t,e[0],e[e.length-1],n))?l(Hv(e,t)):f},f.copy=function(){return Dv(f,W_(t,n,e,r,i,o,u,a,c))},f}var G_=function(){return xv.apply(W_(yg,mg,Mg,Dg,Ug,Vg,Xg,Zg,Ay).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},Z_=vg((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),K_=Z_,Q_=Z_.range,J_=vg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getUTCHours()})),tb=J_,nb=J_.range,eb=vg((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getUTCMinutes()})),rb=eb,ib=eb.range,ob=function(){return xv.apply(W_(yy,K_,Jg,py,tb,rb,Xg,Zg,ky).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function ub(){var t,n,e,r,i,o=0,u=1,a=Rv,c=!1;function f(n){return isNaN(n=+n)?i:a(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}return f.domain=function(i){return arguments.length?(t=r(o=+i[0]),n=r(u=+i[1]),e=t===n?0:1/(n-t),f):[o,u]},f.clamp=function(t){return arguments.length?(c=!!t,f):c},f.interpolator=function(t){return arguments.length?(a=t,f):a},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i){return r=i,t=i(o),n=i(u),e=t===n?0:1/(n-t),f}}function ab(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function cb(){var t=Yv(ub()(Rv));return t.copy=function(){return ab(t,cb())},wv.apply(t,arguments)}function fb(){var t=Qv(ub()).domain([1,10]);return t.copy=function(){return ab(t,fb()).base(t.base())},wv.apply(t,arguments)}function sb(){var t=eg(ub());return t.copy=function(){return ab(t,sb()).constant(t.constant())},wv.apply(t,arguments)}function lb(){var t=ag(ub());return t.copy=function(){return ab(t,lb()).exponent(t.exponent())},wv.apply(t,arguments)}function hb(){return lb.apply(null,arguments).exponent(.5)}function db(){var t=[],n=Rv;function e(e){if(!isNaN(e=+e))return n((V(t,e)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var r,i=0,o=n.length;i<o;++i)null==(r=n[i])||isNaN(r=+r)||t.push(r);return t.sort(F),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return db(n).domain(t)},wv.apply(e,arguments)}function pb(){var t,n,e,r,i,o,u,a=0,c=.5,f=1,s=Rv,l=!1;function h(t){return isNaN(t=+t)?u:(t=.5+((t=+o(t))-n)*(t<n?r:i),s(l?Math.max(0,Math.min(1,t)):t))}return h.domain=function(u){return arguments.length?(t=o(a=+u[0]),n=o(c=+u[1]),e=o(f=+u[2]),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h):[a,c,f]},h.clamp=function(t){return arguments.length?(l=!!t,h):l},h.interpolator=function(t){return arguments.length?(s=t,h):s},h.unknown=function(t){return arguments.length?(u=t,h):u},function(u){return o=u,t=u(a),n=u(c),e=u(f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h}}function vb(){var t=Yv(pb()(Rv));return t.copy=function(){return ab(t,vb())},wv.apply(t,arguments)}function gb(){var t=Qv(pb()).domain([.1,1,10]);return t.copy=function(){return ab(t,gb()).base(t.base())},wv.apply(t,arguments)}function yb(){var t=eg(pb());return t.copy=function(){return ab(t,yb()).constant(t.constant())},wv.apply(t,arguments)}function _b(){var t=ag(pb());return t.copy=function(){return ab(t,_b()).exponent(t.exponent())},wv.apply(t,arguments)}function bb(){return _b.apply(null,arguments).exponent(.5)}var mb=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e},xb=mb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),wb=mb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Mb=mb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Ab=mb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Sb=mb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),kb=mb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Eb=mb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Cb=mb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Tb=mb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ob=mb("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Nb=function(t){return Ze(t[t.length-1])},jb=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(mb),Rb=Nb(jb),Pb=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(mb),zb=Nb(Pb),Lb=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(mb),Ib=Nb(Lb),Db=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(mb),Fb=Nb(Db),Bb=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(mb),Ub=Nb(Bb),Yb=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(mb),qb=Nb(Yb),Vb=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(mb),Hb=Nb(Vb),$b=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(mb),Xb=Nb($b),Wb=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(mb),Gb=Nb(Wb),Zb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(mb),Kb=Nb(Zb),Qb=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(mb),Jb=Nb(Qb),tm=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(mb),nm=Nb(tm),em=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(mb),rm=Nb(em),im=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(mb),om=Nb(im),um=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(mb),am=Nb(um),cm=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(mb),fm=Nb(cm),sm=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(mb),lm=Nb(sm),hm=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(mb),dm=Nb(hm),pm=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(mb),vm=Nb(pm),gm=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(mb),ym=Nb(gm),_m=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(mb),bm=Nb(_m),mm=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(mb),xm=Nb(mm),wm=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(mb),Mm=Nb(wm),Am=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(mb),Sm=Nb(Am),km=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(mb),Em=Nb(km),Cm=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(mb),Tm=Nb(Cm),Om=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(mb),Nm=Nb(Om),jm=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},Rm=iv(du(300,.5,0),du(-240,.5,1)),Pm=iv(du(-100,.75,.35),du(80,1.5,.8)),zm=iv(du(260,.75,.35),du(80,1.5,.8)),Lm=du(),Im=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Lm.h=360*t-100,Lm.s=1.5-1.5*n,Lm.l=.8-.9*n,Lm+""},Dm=Oe(),Fm=Math.PI/3,Bm=2*Math.PI/3,Um=function(t){var n;return t=(.5-t)*Math.PI,Dm.r=255*(n=Math.sin(t))*n,Dm.g=255*(n=Math.sin(t+Fm))*n,Dm.b=255*(n=Math.sin(t+Bm))*n,Dm+""},Ym=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function qm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var Vm=qm(mb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Hm=qm(mb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$m=qm(mb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Xm=qm(mb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Wm=function(t){return oe(Fn(t).call(document.documentElement))},Gm=0;function Zm(){return new Km}function Km(){this._="@"+(++Gm).toString(36)}Km.prototype=Zm.prototype={constructor:Km,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Qm=function(t){return"string"==typeof t?new ee([document.querySelectorAll(t)],[document.documentElement]):new ee([null==t?[]:t],ne)},Jm=function(t,n){null==n&&(n=lr().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=hr(t,n[e]);return i},tx=function(t){return function(){return t}},nx=Math.abs,ex=Math.atan2,rx=Math.cos,ix=Math.max,ox=Math.min,ux=Math.sin,ax=Math.sqrt,cx=Math.PI,fx=cx/2,sx=2*cx;function lx(t){return t>1?0:t<-1?cx:Math.acos(t)}function hx(t){return t>=1?fx:t<=-1?-fx:Math.asin(t)}function dx(t){return t.innerRadius}function px(t){return t.outerRadius}function vx(t){return t.startAngle}function gx(t){return t.endAngle}function yx(t){return t&&t.padAngle}function _x(t,n,e,r,i,o,u,a){var c=e-t,f=r-n,s=u-i,l=a-o,h=l*c-s*f;if(!(h*h<1e-12))return[t+(h=(s*(n-o)-l*(t-i))/h)*c,n+h*f]}function bx(t,n,e,r,i,o,u){var a=t-e,c=n-r,f=(u?o:-o)/ax(a*a+c*c),s=f*c,l=-f*a,h=t+s,d=n+l,p=e+s,v=r+l,g=(h+p)/2,y=(d+v)/2,_=p-h,b=v-d,m=_*_+b*b,x=i-o,w=h*v-p*d,M=(b<0?-1:1)*ax(ix(0,x*x*m-w*w)),A=(w*b-_*M)/m,S=(-w*_-b*M)/m,k=(w*b+_*M)/m,E=(-w*_+b*M)/m,C=A-g,T=S-y,O=k-g,N=E-y;return C*C+T*T>O*O+N*N&&(A=k,S=E),{cx:A,cy:S,x01:-s,y01:-l,x11:A*(i/x-1),y11:S*(i/x-1)}}var mx=function(){var t=dx,n=px,e=tx(0),r=null,i=vx,o=gx,u=yx,a=null;function c(){var c,f,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-fx,d=o.apply(this,arguments)-fx,p=nx(d-h),v=d>h;if(a||(a=c=So()),l<s&&(f=l,l=s,s=f),l>1e-12)if(p>sx-1e-12)a.moveTo(l*rx(h),l*ux(h)),a.arc(0,0,l,h,d,!v),s>1e-12&&(a.moveTo(s*rx(d),s*ux(d)),a.arc(0,0,s,d,h,v));else{var g,y,_=h,b=d,m=h,x=d,w=p,M=p,A=u.apply(this,arguments)/2,S=A>1e-12&&(r?+r.apply(this,arguments):ax(s*s+l*l)),k=ox(nx(l-s)/2,+e.apply(this,arguments)),E=k,C=k;if(S>1e-12){var T=hx(S/s*ux(A)),O=hx(S/l*ux(A));(w-=2*T)>1e-12?(m+=T*=v?1:-1,x-=T):(w=0,m=x=(h+d)/2),(M-=2*O)>1e-12?(_+=O*=v?1:-1,b-=O):(M=0,_=b=(h+d)/2)}var N=l*rx(_),j=l*ux(_),R=s*rx(x),P=s*ux(x);if(k>1e-12){var z,L=l*rx(b),I=l*ux(b),D=s*rx(m),F=s*ux(m);if(p<cx&&(z=_x(N,j,D,F,L,I,R,P))){var B=N-z[0],U=j-z[1],Y=L-z[0],q=I-z[1],V=1/ux(lx((B*Y+U*q)/(ax(B*B+U*U)*ax(Y*Y+q*q)))/2),H=ax(z[0]*z[0]+z[1]*z[1]);E=ox(k,(s-H)/(V-1)),C=ox(k,(l-H)/(V+1))}}M>1e-12?C>1e-12?(g=bx(D,F,N,j,l,C,v),y=bx(L,I,R,P,l,C,v),a.moveTo(g.cx+g.x01,g.cy+g.y01),C<k?a.arc(g.cx,g.cy,C,ex(g.y01,g.x01),ex(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,C,ex(g.y01,g.x01),ex(g.y11,g.x11),!v),a.arc(0,0,l,ex(g.cy+g.y11,g.cx+g.x11),ex(y.cy+y.y11,y.cx+y.x11),!v),a.arc(y.cx,y.cy,C,ex(y.y11,y.x11),ex(y.y01,y.x01),!v))):(a.moveTo(N,j),a.arc(0,0,l,_,b,!v)):a.moveTo(N,j),s>1e-12&&w>1e-12?E>1e-12?(g=bx(R,P,L,I,s,-E,v),y=bx(N,j,D,F,s,-E,v),a.lineTo(g.cx+g.x01,g.cy+g.y01),E<k?a.arc(g.cx,g.cy,E,ex(g.y01,g.x01),ex(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,E,ex(g.y01,g.x01),ex(g.y11,g.x11),!v),a.arc(0,0,s,ex(g.cy+g.y11,g.cx+g.x11),ex(y.cy+y.y11,y.cx+y.x11),v),a.arc(y.cx,y.cy,E,ex(y.y11,y.x11),ex(y.y01,y.x01),!v))):a.arc(0,0,s,x,m,v):a.lineTo(R,P)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-cx/2;return[rx(r)*e,ux(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:tx(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:tx(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:tx(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:tx(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:tx(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:tx(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:tx(+t),c):u},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c};function xx(t){this._context=t}xx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var wx=function(t){return new xx(t)};function Mx(t){return t[0]}function Ax(t){return t[1]}var Sx=function(){var t=Mx,n=Ax,e=tx(!0),r=null,i=wx,o=null;function u(u){var a,c,f,s=u.length,l=!1;for(null==r&&(o=i(f=So())),a=0;a<=s;++a)!(a<s&&e(c=u[a],a,u))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,a,u),+n(c,a,u));if(f)return o=null,f+""||null}return u.x=function(n){return arguments.length?(t="function"==typeof n?n:tx(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:tx(+t),u):n},u.defined=function(t){return arguments.length?(e="function"==typeof t?t:tx(!!t),u):e},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u},kx=function(){var t=Mx,n=null,e=tx(0),r=Ax,i=tx(!0),o=null,u=wx,a=null;function c(c){var f,s,l,h,d,p=c.length,v=!1,g=new Array(p),y=new Array(p);for(null==o&&(a=u(d=So())),f=0;f<=p;++f){if(!(f<p&&i(h=c[f],f,c))===v)if(v=!v)s=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),l=f-1;l>=s;--l)a.point(g[l],y[l]);a.lineEnd(),a.areaEnd()}v&&(g[f]=+t(h,f,c),y[f]=+e(h,f,c),a.point(n?+n(h,f,c):g[f],r?+r(h,f,c):y[f]))}if(d)return a=null,d+""||null}function f(){return Sx().defined(i).curve(u).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:tx(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:tx(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:tx(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:tx(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:tx(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:tx(+t),c):r},c.lineX0=c.lineY0=function(){return f().x(t).y(e)},c.lineY1=function(){return f().x(t).y(r)},c.lineX1=function(){return f().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:tx(!!t),c):i},c.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),c):u},c.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),c):o},c},Ex=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Cx=function(t){return t},Tx=function(){var t=Cx,n=Ex,e=null,r=tx(0),i=tx(sx),o=tx(0);function u(u){var a,c,f,s,l,h=u.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min(sx,Math.max(-sx,i.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,o.apply(this,arguments)),b=_*(y<0?-1:1);for(a=0;a<h;++a)(l=v[p[a]=a]=+t(u[a],a,u))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(u[t],u[n])})),a=0,f=d?(y-h*b)/d:0;a<h;++a,g=s)c=p[a],s=g+((l=v[c])>0?l*f:0)+b,v[c]={data:u[c],index:a,value:l,startAngle:g,endAngle:s,padAngle:_};return v}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:tx(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:tx(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:tx(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:tx(+t),u):o},u},Ox=jx(wx);function Nx(t){this._curve=t}function jx(t){function n(n){return new Nx(t(n))}return n._curve=t,n}function Rx(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(jx(t)):n()._curve},t}Nx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Px=function(){return Rx(Sx().curve(Ox))},zx=function(){var t=kx().curve(Ox),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Rx(e())},delete t.lineX0,t.lineEndAngle=function(){return Rx(r())},delete t.lineX1,t.lineInnerRadius=function(){return Rx(i())},delete t.lineY0,t.lineOuterRadius=function(){return Rx(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(jx(t)):n()._curve},t},Lx=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},Ix=Array.prototype.slice;function Dx(t){return t.source}function Fx(t){return t.target}function Bx(t){var n=Dx,e=Fx,r=Mx,i=Ax,o=null;function u(){var u,a=Ix.call(arguments),c=n.apply(this,a),f=e.apply(this,a);if(o||(o=u=So()),t(o,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=f,a)),+i.apply(this,a)),u)return o=null,u+""||null}return u.source=function(t){return arguments.length?(n=t,u):n},u.target=function(t){return arguments.length?(e=t,u):e},u.x=function(t){return arguments.length?(r="function"==typeof t?t:tx(+t),u):r},u.y=function(t){return arguments.length?(i="function"==typeof t?t:tx(+t),u):i},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u}function Ux(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Yx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function qx(t,n,e,r,i){var o=Lx(n,e),u=Lx(n,e=(e+i)/2),a=Lx(r,e),c=Lx(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Vx(){return Bx(Ux)}function Hx(){return Bx(Yx)}function $x(){var t=Bx(qx);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Xx={draw:function(t,n){var e=Math.sqrt(n/cx);t.moveTo(e,0),t.arc(0,0,e,0,sx)}},Wx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Gx=Math.sqrt(1/3),Zx=2*Gx,Kx={draw:function(t,n){var e=Math.sqrt(n/Zx),r=e*Gx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Qx=Math.sin(cx/10)/Math.sin(7*cx/10),Jx=Math.sin(sx/10)*Qx,tw=-Math.cos(sx/10)*Qx,nw={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Jx*e,i=tw*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=sx*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},ew={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},rw=Math.sqrt(3),iw={draw:function(t,n){var e=-Math.sqrt(n/(3*rw));t.moveTo(0,2*e),t.lineTo(-rw*e,-e),t.lineTo(rw*e,-e),t.closePath()}},ow=Math.sqrt(3)/2,uw=1/Math.sqrt(12),aw=3*(uw/2+1),cw={draw:function(t,n){var e=Math.sqrt(n/aw),r=e/2,i=e*uw,o=r,u=e*uw+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(-.5*r-ow*i,ow*r+-.5*i),t.lineTo(-.5*o-ow*u,ow*o+-.5*u),t.lineTo(-.5*a-ow*c,ow*a+-.5*c),t.lineTo(-.5*r+ow*i,-.5*i-ow*r),t.lineTo(-.5*o+ow*u,-.5*u-ow*o),t.lineTo(-.5*a+ow*c,-.5*c-ow*a),t.closePath()}},fw=[Xx,Wx,Kx,ew,nw,iw,cw],sw=function(){var t=tx(Xx),n=tx(64),e=null;function r(){var r;if(e||(e=r=So()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:tx(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:tx(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},lw=function(){};function hw(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function dw(t){this._context=t}dw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:hw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:hw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var pw=function(t){return new dw(t)};function vw(t){this._context=t}vw.prototype={areaStart:lw,areaEnd:lw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:hw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var gw=function(t){return new vw(t)};function yw(t){this._context=t}yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:hw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var _w=function(t){return new yw(t)};function bw(t,n){this._basis=new dw(t),this._beta=n}bw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var mw=function t(n){function e(t){return 1===n?new dw(t):new bw(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function xw(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function ww(t,n){this._context=t,this._k=(1-n)/6}ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:xw(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Mw=function t(n){function e(t){return new ww(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Aw(t,n){this._context=t,this._k=(1-n)/6}Aw.prototype={areaStart:lw,areaEnd:lw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:xw(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Sw=function t(n){function e(t){return new Aw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function kw(t,n){this._context=t,this._k=(1-n)/6}kw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xw(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ew=function t(n){function e(t){return new kw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Cw(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,u=(u*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function Tw(t,n){this._context=t,this._alpha=n}Tw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Cw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ow=function t(n){function e(t){return n?new Tw(t,n):new ww(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Nw(t,n){this._context=t,this._alpha=n}Nw.prototype={areaStart:lw,areaEnd:lw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Cw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var jw=function t(n){function e(t){return n?new Nw(t,n):new Aw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Rw(t,n){this._context=t,this._alpha=n}Rw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Pw=function t(n){function e(t){return n?new Rw(t,n):new kw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function zw(t){this._context=t}zw.prototype={areaStart:lw,areaEnd:lw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var Lw=function(t){return new zw(t)};function Iw(t){return t<0?-1:1}function Dw(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(Iw(o)+Iw(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function Fw(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Bw(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function Uw(t){this._context=t}function Yw(t){this._context=new qw(t)}function qw(t){this._context=t}function Vw(t){return new Uw(t)}function Hw(t){return new Yw(t)}function $w(t){this._context=t}function Xw(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}Uw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bw(this,this._t0,Fw(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,Bw(this,Fw(this,e=Dw(this,t,n)),e);break;default:Bw(this,this._t0,e=Dw(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(Yw.prototype=Object.create(Uw.prototype)).point=function(t,n){Uw.prototype.point.call(this,n,t)},qw.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},$w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Xw(t),i=Xw(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Ww=function(t){return new $w(t)};function Gw(t,n){this._context=t,this._t=n}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Zw=function(t){return new Gw(t,.5)};function Kw(t){return new Gw(t,0)}function Qw(t){return new Gw(t,1)}var Jw=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},tM=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function nM(t,n){return t[n]}var eM=function(){var t=tx([]),n=tM,e=Jw,r=nM;function i(i){var o,u,a=t.apply(this,arguments),c=i.length,f=a.length,s=new Array(f);for(o=0;o<f;++o){for(var l,h=a[o],d=s[o]=new Array(c),p=0;p<c;++p)d[p]=l=[0,+r(i[p],h,p,i)],l.data=i[p];d.key=h}for(o=0,u=n(s);o<f;++o)s[u[o]].index=o;return e(s,u),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:tx(Ix.call(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:tx(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?tM:"function"==typeof t?t:tx(Ix.call(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Jw:t,i):e},i},rM=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}Jw(t,n)}},iM=function(t,n){if((a=t.length)>0)for(var e,r,i,o,u,a,c=0,f=t[n[0]].length;c<f;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)},oM=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}Jw(t,n)}},uM=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,f=0;a<i;++a){for(var s=t[n[a]],l=s[u][1]||0,h=(l-(s[u-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[u][1]||0)-(p[u-1][1]||0)}c+=l,f+=h*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=f/c)}e[u-1][1]+=e[u-1][0]=o,Jw(t,n)}},aM=function(t){var n=t.map(cM);return tM(t).sort((function(t,e){return n[t]-n[e]}))};function cM(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}var fM=function(t){var n=t.map(sM);return tM(t).sort((function(t,e){return n[t]-n[e]}))};function sM(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var lM=function(t){return fM(t).reverse()},hM=function(t){var n,e,r=t.length,i=t.map(sM),o=aM(t),u=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)},dM=function(t){return tM(t).reverse()};var pM=Date.prototype.toISOString?function(t){return t.toISOString()}:ky("%Y-%m-%dT%H:%M:%S.%LZ");var vM=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Ey("%Y-%m-%dT%H:%M:%S.%LZ"),gM=function(t,n,e){var r=new Sr,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Mr():+e,r.restart((function o(u){u+=i,r.restart(o,i+=n,e),t(u)}),n,e),r)},yM=function(t){return function(){return t}};function _M(t){return t[0]}function bM(t){return t[1]}function mM(){this._=null}function xM(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function wM(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function MM(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function AM(t){for(;t.L;)t=t.L;return t}mM.prototype={constructor:mM,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=AM(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(wM(this,e),e=(t=e).U),e.C=!1,r.C=!0,MM(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(MM(this,e),e=(t=e).U),e.C=!1,r.C=!0,wM(this,r)),e=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 n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?AM(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,wM(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,MM(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,wM(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,MM(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,wM(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,MM(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var SM=mM;function kM(t,n,e,r){var i=[null,null],o=ZM.push(i)-1;return i.left=t,i.right=n,e&&CM(i,t,n,e),r&&CM(i,n,t,r),WM[t.index].halfedges.push(o),WM[n.index].halfedges.push(o),i}function EM(t,n,e){var r=[n,e];return r.left=t,r}function CM(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function TM(t,n,e,r,i){var o,u=t[0],a=t[1],c=u[0],f=u[1],s=0,l=1,h=a[0]-c,d=a[1]-f;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<s)return;o<l&&(l=o)}else if(h>0){if(o>l)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>s&&(s=o)}else if(h>0){if(o<s)return;o<l&&(l=o)}if(o=e-f,d||!(o>0)){if(o/=d,d<0){if(o<s)return;o<l&&(l=o)}else if(d>0){if(o>l)return;o>s&&(s=o)}if(o=i-f,d||!(o<0)){if(o/=d,d<0){if(o>l)return;o>s&&(s=o)}else if(d>0){if(o<s)return;o<l&&(l=o)}return!(s>0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*d]),l<1&&(t[1]=[c+l*h,f+l*d]),!0)}}}}}function OM(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],p=s[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(v<n||v>=r)return;if(l>d){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];o=[v,e]}}else if(a=g-(u=(l-d)/(p-h))*v,u<-1||u>1)if(l>d){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<p){if(c){if(c[0]>=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]<n)return}else c=[r,u*r+a];o=[n,u*n+a]}return t[0]=c,t[1]=o,!0}function NM(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function jM(t,n){return n[+(n.left!==t.site)]}function RM(t,n){return n[+(n.left===t.site)]}var PM,zM=[];function LM(){xM(this),this.x=this.y=this.arc=this.site=this.cy=null}function IM(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],c=r[0]-u,f=r[1]-a,s=o[0]-u,l=o[1]-a,h=2*(c*l-f*s);if(!(h>=-QM)){var d=c*c+f*f,p=s*s+l*l,v=(l*d-f*p)/h,g=(c*p-s*d)/h,y=zM.pop()||new LM;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var _=null,b=GM._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){_=b.P;break}b=b.L}else{if(!b.R){_=b;break}b=b.R}GM.insert(_,y),_||(PM=y)}}}}function DM(t){var n=t.circle;n&&(n.P||(PM=n.N),GM.remove(n),zM.push(n),xM(n),t.circle=null)}var FM=[];function BM(){xM(this),this.edge=this.site=this.circle=null}function UM(t){var n=FM.pop()||new BM;return n.site=t,n}function YM(t){DM(t),XM.remove(t),FM.push(t),xM(t)}function qM(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];YM(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<KM&&Math.abs(r-c.circle.cy)<KM;)o=c.P,a.unshift(c),YM(c),c=o;a.unshift(c),DM(c);for(var f=u;f.circle&&Math.abs(e-f.circle.x)<KM&&Math.abs(r-f.circle.cy)<KM;)u=f.N,a.push(f),YM(f),f=u;a.push(f),DM(f);var s,l=a.length;for(s=1;s<l;++s)f=a[s],c=a[s-1],CM(f.edge,c.site,f.site,i);c=a[0],(f=a[l-1]).edge=kM(c.site,f.site,null,i),IM(c),IM(f)}function VM(t){for(var n,e,r,i,o=t[0],u=t[1],a=XM._;a;)if((r=HM(a,u)-o)>KM)a=a.L;else{if(!((i=o-$M(a,u))>KM)){r>-KM?(n=a.P,e=a):i>-KM?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){WM[t.index]={site:t,halfedges:[]}}(t);var c=UM(t);if(XM.insert(n,c),n||e){if(n===e)return DM(n),e=UM(n.site),XM.insert(c,e),c.edge=e.edge=kM(n.site,c.site),IM(n),void IM(e);if(e){DM(n),DM(e);var f=n.site,s=f[0],l=f[1],h=t[0]-s,d=t[1]-l,p=e.site,v=p[0]-s,g=p[1]-l,y=2*(h*g-d*v),_=h*h+d*d,b=v*v+g*g,m=[(g*_-d*b)/y+s,(h*b-v*_)/y+l];CM(e.edge,f,p,m),c.edge=kM(f,t,null,m),e.edge=kM(t,p,null,m),IM(n),IM(e)}else c.edge=kM(n.site,c.site)}}function HM(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],c=e[1],f=c-n;if(!f)return a;var s=a-r,l=1/o-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-c+f/2+i-o/2)))/l+r:(r+a)/2}function $M(t,n){var e=t.N;if(e)return HM(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var XM,WM,GM,ZM,KM=1e-6,QM=1e-12;function JM(t,n){return n[1]-t[1]||n[0]-t[0]}function tA(t,n){var e,r,i,o=t.sort(JM).pop();for(ZM=[],WM=new Array(t.length),XM=new SM,GM=new SM;;)if(i=PM,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(VM(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;qM(i.arc)}if(function(){for(var t,n,e,r,i=0,o=WM.length;i<o;++i)if((t=WM[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=NM(t,ZM[n[e]]);for(u.sort((function(t,n){return a[n]-a[t]})),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}(),n){var u=+n[0][0],a=+n[0][1],c=+n[1][0],f=+n[1][1];!function(t,n,e,r){for(var i,o=ZM.length;o--;)OM(i=ZM[o],t,n,e,r)&&TM(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>KM||Math.abs(i[0][1]-i[1][1])>KM)||delete ZM[o]}(u,a,c,f),function(t,n,e,r){var i,o,u,a,c,f,s,l,h,d,p,v,g=WM.length,y=!0;for(i=0;i<g;++i)if(o=WM[i]){for(u=o.site,a=(c=o.halfedges).length;a--;)ZM[c[a]]||c.splice(a,1);for(a=0,f=c.length;a<f;)p=(d=RM(o,ZM[c[a]]))[0],v=d[1],l=(s=jM(o,ZM[c[++a%f]]))[0],h=s[1],(Math.abs(p-l)>KM||Math.abs(v-h)>KM)&&(c.splice(a,0,ZM.push(EM(u,d,Math.abs(p-t)<KM&&r-v>KM?[t,Math.abs(l-t)<KM?h:r]:Math.abs(v-r)<KM&&e-p>KM?[Math.abs(h-r)<KM?l:e,r]:Math.abs(p-e)<KM&&v-n>KM?[e,Math.abs(l-e)<KM?h:n]:Math.abs(v-n)<KM&&p-t>KM?[Math.abs(h-n)<KM?l:t,n]:null))-1),++f);f&&(y=!1)}if(y){var _,b,m,x=1/0;for(i=0,y=null;i<g;++i)(o=WM[i])&&(m=(_=(u=o.site)[0]-t)*_+(b=u[1]-n)*b)<x&&(x=m,y=o);if(y){var w=[t,n],M=[t,r],A=[e,r],S=[e,n];y.halfedges.push(ZM.push(EM(u=y.site,w,M))-1,ZM.push(EM(u,M,A))-1,ZM.push(EM(u,A,S))-1,ZM.push(EM(u,S,w))-1)}}for(i=0;i<g;++i)(o=WM[i])&&(o.halfedges.length||delete WM[i])}(u,a,c,f)}this.edges=ZM,this.cells=WM,XM=GM=ZM=WM=null}tA.prototype={constructor:tA,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return jM(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a,c,f,s=e.site,l=-1,h=n[i[o-1]],d=h.left===s?h.right:h.left;++l<o;)u=d,d=(h=n[i[l]]).left===s?h.right:h.left,u&&d&&r<u.index&&r<d.index&&(c=u,f=d,((a=s)[0]-f[0])*(c[1]-a[1])-(a[0]-c[0])*(f[1]-a[1])<0)&&t.push([s.data,u.data,d.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var c=t-i.site[0],f=n-i.site[1],s=c*c+f*f;do{i=o.cells[r=u],u=null,i.halfedges.forEach((function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],f=n-a[1],l=c*c+f*f;l<s&&(s=l,u=a.index)}}))}while(null!==u);return o._found=r,null==e||s<=e*e?i.site:null}};var nA=function(){var t=_M,n=bM,e=null;function r(r){return new tA(r.map((function(e,i){var o=[Math.round(t(e,i,r)/KM)*KM,Math.round(n(e,i,r)/KM)*KM];return o.index=i,o.data=e,o})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:yM(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:yM(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r},eA=function(t){return function(){return t}};function rA(t,n,e){this.target=t,this.type=n,this.transform=e}function iA(t,n,e){this.k=t,this.x=n,this.y=e}iA.prototype={constructor:iA,scale:function(t){return 1===t?this:new iA(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new iA(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var oA=new iA(1,0,0);function uA(t){for(;!t.__zoom;)if(!(t=t.parentNode))return oA;return t.__zoom}function aA(){Hn.stopImmediatePropagation()}uA.prototype=iA.prototype;var cA=function(){Hn.preventDefault(),Hn.stopImmediatePropagation()};function fA(){return!Hn.ctrlKey&&!Hn.button}function sA(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function lA(){return this.__zoom||oA}function hA(){return-Hn.deltaY*(1===Hn.deltaMode?.05:Hn.deltaMode?1:.002)}function dA(){return navigator.maxTouchPoints||"ontouchstart"in this}function pA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}var vA,gA=function(){var t,n,e=fA,r=sA,i=pA,o=hA,u=dA,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,s=Wp,l=$t("start","zoom","end"),h=0;function d(t){t.property("__zoom",lA).on("wheel.zoom",m).on("mousedown.zoom",x).on("dblclick.zoom",w).filter(u).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new iA(n,t.x,t.y)}function v(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new iA(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,n,e){t.on("start.zoom",(function(){_(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=_(t,i),u=r.apply(t,i),a=null==e?g(u):"function"==typeof e?e.apply(t,i):e,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,l="function"==typeof n?n.apply(t,i):n,h=s(f.invert(a).concat(c/f.k),l.invert(a).concat(c/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=c/n[2];t=new iA(e,a[0]-n[0]*e,a[1]-n[1]*e)}o.zoom(null,t)}}))}function _(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function m(){if(e.apply(this,arguments)){var t=_(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,o.apply(this,arguments)))),u=pr(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=n.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[u,n.invert(u)],Yr(this),t.start()}cA(),t.wheel=setTimeout(f,150),t.zoom("mouse",i(v(p(n,r),t.mouse[0],t.mouse[1]),t.extent,c))}function f(){t.wheel=null,t.end()}}function x(){if(!n&&e.apply(this,arguments)){var t=_(this,arguments,!0),r=oe(Hn.view).on("mousemove.zoom",f,!0).on("mouseup.zoom",s,!0),o=pr(this),u=Hn.clientX,a=Hn.clientY;ce(Hn.view),aA(),t.mouse=[o,this.__zoom.invert(o)],Yr(this),t.start()}function f(){if(cA(),!t.moved){var n=Hn.clientX-u,e=Hn.clientY-a;t.moved=n*n+e*e>h}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=pr(t.that),t.mouse[1]),t.extent,c))}function s(){r.on("mousemove.zoom mouseup.zoom",null),fe(Hn.view,t.moved),cA(),t.end()}}function w(){if(e.apply(this,arguments)){var t=this.__zoom,n=pr(this),o=t.invert(n),u=t.k*(Hn.shiftKey?.5:2),a=i(v(p(t,u),n,o),r.apply(this,arguments),c);cA(),f>0?oe(this).transition().duration(f).call(y,a,n):oe(this).call(d.transform,a)}}function M(){if(e.apply(this,arguments)){var n,r,i,o,u=Hn.touches,a=u.length,c=_(this,arguments,Hn.changedTouches.length===a);for(aA(),r=0;r<a;++r)i=u[r],o=[o=dr(this,u,i.identifier),this.__zoom.invert(o),i.identifier],c.touch0?c.touch1||c.touch0[2]===o[2]||(c.touch1=o,c.taps=0):(c.touch0=o,n=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),n&&(c.taps<2&&(t=setTimeout((function(){t=null}),500)),Yr(this),c.start())}}function A(){if(this.__zooming){var n,e,r,o,u=_(this,arguments),a=Hn.changedTouches,f=a.length;for(cA(),t&&(t=clearTimeout(t)),u.taps=0,n=0;n<f;++n)e=a[n],r=dr(this,a,e.identifier),u.touch0&&u.touch0[2]===e.identifier?u.touch0[0]=r:u.touch1&&u.touch1[2]===e.identifier&&(u.touch1[0]=r);if(e=u.that.__zoom,u.touch1){var s=u.touch0[0],l=u.touch0[1],h=u.touch1[0],d=u.touch1[1],g=(g=h[0]-s[0])*g+(g=h[1]-s[1])*g,y=(y=d[0]-l[0])*y+(y=d[1]-l[1])*y;e=p(e,Math.sqrt(g/y)),r=[(s[0]+h[0])/2,(s[1]+h[1])/2],o=[(l[0]+d[0])/2,(l[1]+d[1])/2]}else{if(!u.touch0)return;r=u.touch0[0],o=u.touch0[1]}u.zoom("touch",i(v(e,r,o),u.extent,c))}}function S(){if(this.__zooming){var t,e,r=_(this,arguments),i=Hn.changedTouches,o=i.length;for(aA(),n&&clearTimeout(n),n=setTimeout((function(){n=null}),500),t=0;t<o;++t)e=i[t],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var u=oe(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return d.transform=function(t,n,e){var r=t.selection?t.selection():t;r.property("__zoom",lA),t!==r?y(t,n,e):r.interrupt().each((function(){_(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},d.scaleBy=function(t,n,e){d.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e)},d.scaleTo=function(t,n,e){d.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,u=null==e?g(t):"function"==typeof e?e.apply(this,arguments):e,a=o.invert(u),f="function"==typeof n?n.apply(this,arguments):n;return i(v(p(o,f),u,a),t,c)}),e)},d.translateBy=function(t,n,e){d.transform(t,(function(){return i(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments),c)}))},d.translateTo=function(t,n,e,o){d.transform(t,(function(){var t=r.apply(this,arguments),u=this.__zoom,a=null==o?g(t):"function"==typeof o?o.apply(this,arguments):o;return i(oA.translate(a[0],a[1]).scale(u.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,c)}),o)},b.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){Kn(new rA(d,t,this.that.__zoom),l.apply,l,[t,this.that,this.args])}},d.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:eA(+t),d):o},d.filter=function(t){return arguments.length?(e="function"==typeof t?t:eA(!!t),d):e},d.touchable=function(t){return arguments.length?(u="function"==typeof t?t:eA(!!t),d):u},d.extent=function(t){return arguments.length?(r="function"==typeof t?t:eA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),d):r},d.scaleExtent=function(t){return arguments.length?(a[0]=+t[0],a[1]=+t[1],d):[a[0],a[1]]},d.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],d):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},d.constrain=function(t){return arguments.length?(i=t,d):i},d.duration=function(t){return arguments.length?(f=+t,d):f},d.interpolate=function(t){return arguments.length?(s=t,d):s},d.on=function(){var t=l.on.apply(l,arguments);return t===l?d:t},d.clickDistance=function(t){return arguments.length?(h=(t=+t)*t,d):Math.sqrt(h)},d},yA=(vA=function(t,n){return(vA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}vA(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),_A=i.CIRCLE,bA=o.NONE,mA=function(t){function n(n,e,i){return void 0===e&&(e=[]),void 0===i&&(i={}),t.call(this,r,n,e,i)||this}return yA(n,t),n.prototype.renderMetrics=function(){0!==this.series.length?(this.updateCrosshair(),this._delaunayDiagram=new I(this.series,this.xScale,this.getYScale.bind(this)),this.renderLines(),this.renderPoints()):this.renderNoDataPointsMessage()},n.prototype.clearAllMetrics=function(){this.chartContainer.selectAll(".metric-el").remove()},n.prototype.updateCrosshair=function(){this.crosshair.selectAll("circle").remove(),this.appendCrosshairPoints()},n.prototype.appendCrosshairPoints=function(){var t=this;this.series.forEach((function(n,e){t.appendCrosshairPoint(e)}))},n.prototype.appendCrosshairPoint=function(t){var n=this.series[t].pointType||_A;switch(n){case i.NONE:return;case i.CIRCLE:return void this.crosshair.append("circle").attr("class","crosshair-point crosshair-point-"+t+" crosshair-background").attr("r",this.getCrosshairCircleBackgroundSize(t)).attr("clip-path","url(#"+this.rectClipId+")").style("opacity",.3).style("pointer-events","none").style("display","none");case i.RECTANGLE:return void this.crosshair.append("rect").attr("class","crosshair-point crosshair-point-"+t+" crosshair-background").attr("width",this.getCrosshairCircleBackgroundSize(t)).attr("height",this.getCrosshairCircleBackgroundSize(t)).attr("clip-path","url(#"+this.rectClipId+")").style("opacity",.3).style("pointer-events","none").style("display","none");default:throw new Error("Unknown render point type: "+n)}},n.prototype.renderLines=function(){var t=this;this.series.forEach((function(n,e){if(!1!==n.visible){var r=n.lineType||bA;t.renderLine(n.datapoints,r,t.getSerieColor(e),n.yOrientation)}}))},n.prototype.renderLine=function(t,n,e,r){var i=this;if(n!==o.NONE){var u;n===o.DASHED&&(u=4);var a=this.d3.line().x((function(t){return i.xScale(t[0])})).y((function(t){return i.getYScale(r)(t[1])}));this.metricContainer.append("path").datum(t).attr("class","metric-path").attr("fill","none").style("pointer-events","none").attr("stroke",e).attr("stroke-width",1).attr("stroke-opacity",.7).attr("stroke-dasharray",u).attr("d",a)}},n.prototype.renderPoints=function(){var t=this;this._delaunayDiagram.data&&(this.metricContainer.selectAll(null).data(this._delaunayDiagram.data).enter().append("circle").filter((function(n){return t.series[L.last(n)].pointType!==i.RECTANGLE})).attr("class",(function(t,n){return"metric-element metric-circle point-"+n})).attr("r",(function(n){return t.series[L.last(n)].pointSize||4})).style("fill",(function(n,e){return t.getSeriesColorFromDataRow(n,e)})).style("pointer-events","none").attr("cx",(function(n){return t.xScale(n[0])})).attr("cy",(function(n){return t.getYScale(t.series[L.last(n)].yOrientation)(n[1])})),this.metricContainer.selectAll(null).data(this._delaunayDiagram.data).enter().append("rect").filter((function(n){return t.series[L.last(n)].pointType===i.RECTANGLE})).attr("class",(function(t,n){return"metric-element metric-circle point-"+n})).attr("r",(function(n){return t.series[L.last(n)].pointSize||4})).style("fill",(function(n){return t.getSerieColor(L.last(n))})).style("pointer-events","none").attr("x",(function(n){return t.xScale(n[0])-(t.series[L.last(n)].pointSize||4)/2})).attr("y",(function(n){return t.getYScale(t.series[L.last(n)].yOrientation)(n[1])-(t.series[L.last(n)].pointSize||4)/2})).attr("width",(function(n){return t.series[L.last(n)].pointSize||4})).attr("height",(function(n){return t.series[L.last(n)].pointSize||4})))},n.prototype.getSeriesColorFromDataRow=function(t,n){var e=L.last(t);return this.series[e].colorFormatter?this.series[e].colorFormatter(t,n):this.getSerieColor(e)},n.prototype.onPanningEnd=function(){this.isPanning=!1,this.onMouseOut(),this._delaunayDiagram.setDelaunayDiagram(this.xScale,this.getYScale.bind(this)),void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.panningEnd?this.options.eventsCallbacks.panningEnd([this.state.xValueRange,this.state.yValueRange,this.state.y1ValueRange]):console.log("on panning end, but there is no callback")},n.prototype.unhighlight=function(){this.crosshair.selectAll(".crosshair-point").style("display","none")},n.prototype.highlight=function(t){this.unhighlight();var n=this._delaunayDiagram.getDataRowByIndex(t);if(null!=n){var e=L.last(n),r=this.series[e].yOrientation,i=this.getCrosshairCircleBackgroundSize(e);this.crosshair.selectAll(".crosshair-point-"+e).attr("cx",this.xScale(n[0])).attr("cy",this.getYScale(r)(n[1])).attr("x",this.xScale(n[0])-i/2).attr("y",this.getYScale(r)(n[1])-i/2).attr("fill",this.getSeriesColorFromDataRow(n,t)).style("display",null)}},n.prototype.getCrosshairCircleBackgroundSize=function(t){var n=this.series[t].pointSize||4,e=4;return(this.series[t].pointType||_A)===i.RECTANGLE&&(e*=2),n+e},n.prototype.renderSharedCrosshair=function(t){this.onMouseOver();var n=this.xScale(t.x),e=this.yScale(t.y);this.moveCrosshairLine(n,e);var r=this.findAndHighlightDatapoints(t.x,t.y);void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.sharedCrosshairMove?this.options.eventsCallbacks.sharedCrosshairMove({datapoints:r,eventX:n,eventY:e}):console.log("Shared crosshair move, but there is no callback")},n.prototype.moveCrosshairLine=function(t,n){switch(this.options.crosshair.orientation){case u.CrosshairOrientation.VERTICAL:return void this.crosshair.select("#crosshair-line-x").attr("x1",t).attr("x2",t);case u.CrosshairOrientation.HORIZONTAL:return void this.crosshair.select("#crosshair-line-y").attr("y1",n).attr("y2",n);case u.CrosshairOrientation.BOTH:return this.crosshair.select("#crosshair-line-x").attr("x1",t).attr("x2",t),void this.crosshair.select("#crosshair-line-y").attr("y1",n).attr("y2",n);default:throw new Error("Unknown type of crosshair orientaion: "+this.options.crosshair.orientation)}},n.prototype.findAndHighlightDatapoints=function(t,n){if(void 0===this.series||0===this.series.length)return null;var e=this._delaunayDiagram.findPointIndex(t,n);return void 0===e?(this.unhighlight(),null):(this.highlight(e),{values:this._delaunayDiagram.data[e],pointIdx:e})},n.prototype.getYScale=function(t){if(void 0===t||t===u.yAxisOrientation.BOTH)return this.yScale;switch(t){case u.yAxisOrientation.LEFT:return this.yScale;case u.yAxisOrientation.RIGHT:return this.y1Scale;default:throw new Error("Unknown type of y axis orientation: "+t)}},n.prototype.hideSharedCrosshair=function(){this.crosshair.style("display","none")},n.prototype.onMouseMove=function(){var t=this.d3.mouse(this.chartContainer.node()),n=t[0],e=t[1];if(!0!==this.isOutOfChart()&&!0!==this.isPanning&&!0!==this.isBrushing){this.crosshair.style("display",null),this.moveCrosshairLine(n,e);var r=this.findAndHighlightDatapoints(n,e);void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.mouseMove?this.options.eventsCallbacks.mouseMove({x:this.d3.event.clientX,y:this.d3.event.clientY,xval:this.xScale.invert(n),yval:this.xScale.invert(e),highlighted:r,chartX:n,chartWidth:this.width}):console.log("Mouse move, but there is no callback")}else this.crosshair.style("display","none")},n.prototype.onMouseOver=function(){!0!==this.isOutOfChart()&&!0!==this.isPanning&&!0!==this.isBrushing?this.crosshair.style("display",null):this.crosshair.style("display","none")},n.prototype.onMouseOut=function(){void 0!==this.options.eventsCallbacks&&void 0!==this.options.eventsCallbacks.mouseOut&&this.options.eventsCallbacks.mouseOut(),this.crosshair.style("display","none")},n}(u.ChartwerkPod),xA={render:function(t){return t("div",{class:{"chartwerk-scatter-pod":!0},attrs:{id:this.id}})},mixins:[u.VueChartwerkPodMixin],methods:{render:function(){void 0===this.pod?(this.pod=new mA(document.getElementById(this.id),this.series,this.options),this.pod.render()):this.pod.updateData(this.series,this.options)}}}}])}));