diff --git a/Subway/urls.py b/Subway/urls.py index 4dd5be3..9c336a8 100644 --- a/Subway/urls.py +++ b/Subway/urls.py @@ -21,6 +21,8 @@ urlpatterns = [ path('admin/', admin.site.urls), path('', include('member.urls')), + path('schedule/',include('schedule.urls')), + path('device',include('device.urls')), path('material/', include('material.urls')), path('technology/', include('technology.urls')), path('safety/', include('safety.urls')) diff --git a/core/utils.py b/core/utils.py index ad337f7..a3e36bc 100644 --- a/core/utils.py +++ b/core/utils.py @@ -56,3 +56,12 @@ def permission(request): res[item['permissions__code']] = True print(res) return res + + +def validate_file_extension(value): + import os + from django.core.exceptions import ValidationError + ext = os.path.splitext(value.name)[1] # [0] returns path+filename + valid_extensions = ['.pdf', '.doc', '.docx', '.jpg', '.png', '.xlsx', '.xls'] + if not ext.lower() in valid_extensions: + raise ValidationError(u'不支持此类型的文件') diff --git a/device/urls.py b/device/urls.py new file mode 100644 index 0000000..d07b535 --- /dev/null +++ b/device/urls.py @@ -0,0 +1,10 @@ +from django.urls import path +from .views import * + +app_name = "device" +urlpatterns = [ + path('list', DeviceFileListView.as_view(), name='list'), # TODO + path('add', DeviceFileCreateView.as_view(), name='add'), + path('update/', DeviceFileUpdatView.as_view(), name='update'), + path('delete/', DeviceFileDetailView.as_view(), name='delete'), +] diff --git a/device/views.py b/device/views.py index 91ea44a..d80d9b6 100644 --- a/device/views.py +++ b/device/views.py @@ -1,3 +1,22 @@ from django.shortcuts import render +from django.views.generic import ListView, CreateView, UpdateView, DeleteView, DetailView, TemplateView -# Create your views here. + +class DeviceFileListView(TemplateView): + template_name = "device/device.html" + + +class DeviceFileCreateView(CreateView): + template_name = "TEMPLATE_NAME" + + +class DeviceFileUpdatView(UpdateView): + template_name = "TEMPLATE_NAME" + + +class DeviceFileDeleteView(DeleteView): + template_name = "TEMPLATE_NAME" + + +class DeviceFileDetailView(DetailView): + template_name = "TEMPLATE_NAME" diff --git a/material/models.py b/material/models.py index 4b46984..de30a02 100644 --- a/material/models.py +++ b/material/models.py @@ -14,27 +14,6 @@ class Material(models.Model): def __str__(self): return self.name - def in_stock(self, user, num): - try: - with transaction.atomic(): - self.objects.material_set.create(num=num, create_user=user, operation_type=0) - self.num += num - self.save() - return True - except: - return False - - def out_stock(self, user, num): - try: - with transaction.atomic(): - self.objects.material_set.create(num=num, create_user=user, operation_type=1) - self.num -= num - self.save() - return True - except Exception as e: - print(e) - return False - class MaterialStock(models.Model): diff --git a/material/views.py b/material/views.py index 3bd4916..f324930 100644 --- a/material/views.py +++ b/material/views.py @@ -8,7 +8,7 @@ import django_excel as excel from .models import * -from .forms import MaterialForm +from .forms import MaterialForm class MaterialAddView(PassRequestMixin, SuccessMessageMixin, CreateView): @@ -53,7 +53,7 @@ def get_queryset(self): if self.pk: queryset = queryset.filter(material_id=self.pk) return queryset - + def get_context_data(self, **kwargs): context = super(MaterialStockRecordView, self).get_context_data(**kwargs) context['material_list'] = Material.objects.all() @@ -62,7 +62,8 @@ def get_context_data(self, **kwargs): else: context['select_material'] = '全部' return context - + + def material_in_out_stock(request, **kwargs): material = get_object_or_404(Material, pk=kwargs.get('pk')) in_or_out = int(request.POST.get('type_id')) # 0 in 1 out diff --git a/member/admin.py b/member/admin.py index 1914c95..76b52db 100644 --- a/member/admin.py +++ b/member/admin.py @@ -21,10 +21,6 @@ class RoleAdmin(admin.ModelAdmin): filter_horizontal = ('permissions',) -class PermissionAdmin(admin.ModelAdmin): - list_display = ('title', 'url', 'code') - - admin.site.register(Role, RoleAdmin) admin.site.register(Account, AccountAdmin) -admin.site.register(Permission, PermissionAdmin) +admin.site.register(Permission) \ No newline at end of file diff --git a/member/forms.py b/member/forms.py index e858af7..1b781e1 100644 --- a/member/forms.py +++ b/member/forms.py @@ -118,7 +118,7 @@ class Meta: fields = ['username', 'enp', 'last_name', 'position', 'roles'] -class MemberForm(forms.ModelForm): +class MemberForm(PopRequestMixin, CreateUpdateAjaxMixin, forms.ModelForm): class Meta: model = Member fields = '__all__' diff --git a/member/migrations/0001_initial.py b/member/migrations/0001_initial.py index 4388975..7e6a540 100644 --- a/member/migrations/0001_initial.py +++ b/member/migrations/0001_initial.py @@ -1,4 +1,5 @@ -# Generated by Django 2.1.3 on 2019-01-22 05:52 +# Generated by Django 2.1.3 on 2019-01-11 08:56 + import django.contrib.auth.models import django.contrib.auth.validators diff --git a/member/views.py b/member/views.py index 6efc71f..d00a092 100644 --- a/member/views.py +++ b/member/views.py @@ -64,7 +64,8 @@ def post(self, request, *args, **kwargs): def form_valid(self, form): self.object = form.save() - self.object.enp = form.cleaned_data.get('password1') + self.object.enp = en_password(form.cleaned_data.get('password1')) + print(self.object.enp, form.cleaned_data.get('password1')) self.object.user_dept = self.dept self.object.roles.add(*list(form.cleaned_data.get('roles'))) return super(AssignAccountView, self).form_valid(form) @@ -85,8 +86,8 @@ class AssignAccountUpdateView(PassRequestMixin, SuccessMessageMixin, UpdateView) def form_valid(self, form): self.object = form.save() - self.object.enp = form.cleaned_data.get('enp') - self.object.set_password(self.object.enp) + self.object.enp = en_password(form.cleaned_data.get('enp')) + self.object.set_password(form.cleaned_data.get('enp')) self.object.roles.clear() self.object.roles.add(*list(form.cleaned_data.get('roles'))) return super(AssignAccountUpdateView, self).form_valid(form) @@ -177,10 +178,11 @@ class DeptDeleteView(DeleteAjaxMixin, DeleteView): success_url = reverse_lazy("member:dept_list") -class MemberAddView(CreateView): +class MemberAddView(PassRequestMixin, SuccessMessageMixin, CreateView): model = Member - template_name = "member/member_add_update_form.html" form_class = MemberForm + template_name = "member/member_add_update_form.html" + success_message = '添加成功' success_url = reverse_lazy('member:member_list') @@ -251,7 +253,7 @@ class MemberListDetailView(MemberListView): class MemberUpdateView(UpdateView): model = Member - template_name = "member/member_add_update_form.html" + template_name = "member/member_add_update_form2.html" form_class = MemberForm success_message = '%s 更新成功' success_url = reverse_lazy('member:member_list') @@ -355,5 +357,5 @@ def depass_view(request): try: depass = de_password(salt) return JsonResponse({'msg': 'ok', 'pass': depass}) - except Exception as e: - return JsonResponse({'msg': str(e)}) \ No newline at end of file + except Exception as e: + return JsonResponse({'msg': str(e)}) diff --git a/safety/migrations/0002_auto_20190124_1615.py b/safety/migrations/0002_auto_20190124_1615.py new file mode 100644 index 0000000..163715b --- /dev/null +++ b/safety/migrations/0002_auto_20190124_1615.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.3 on 2019-01-24 08:15 + +import core.utils +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('safety', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='safetyfile', + name='file_s', + field=models.FileField(blank=True, null=True, upload_to='safety/%Y/%m/%d/', validators=[core.utils.validate_file_extension], verbose_name='文件'), + ), + ] diff --git a/safety/models.py b/safety/models.py index 0278dbc..472db49 100644 --- a/safety/models.py +++ b/safety/models.py @@ -1,4 +1,5 @@ from django.db import models +from core.utils import validate_file_extension class SafetyFile(models.Model): @@ -16,5 +17,5 @@ class SafetyFile(models.Model): file_type = models.IntegerField( verbose_name='文件类型', choices=file_type_choiced, default=0) file_s = models.FileField( - verbose_name='文件', upload_to='Safety_file', max_length=100) + verbose_name='文件', upload_to='safety/%Y/%m/%d/', null=True, blank=True, validators=[validate_file_extension]) upload_date = models.DateTimeField(auto_now_add=True) diff --git a/safety/views.py b/safety/views.py index d7fcebc..59b989f 100644 --- a/safety/views.py +++ b/safety/views.py @@ -8,7 +8,7 @@ class SafetyFileListView(ListView): model = SafetyFile - template_name = "TEMPLATE_NAME" + template_name = "safe/safe.html" def get_queryset(self): queryset = super(SafetyFileListView, self).get_queryset() diff --git a/schedule/urls.py b/schedule/urls.py new file mode 100644 index 0000000..5d040a1 --- /dev/null +++ b/schedule/urls.py @@ -0,0 +1,13 @@ +from django.urls import path +from .views import * + +app_name = "schedule" +urlpatterns = [ + path('list', ScheduleListView.as_view(), name='list'), + path('detail', ScheduleDetailView.as_view(), name='detail'), + path('chart', ScheduleChartView.as_view(), name='chart'), + path('item', ScheduleItemChartView.as_view(), name='item'), + path('add', ScheduleFileCreateView.as_view(), name='add'), + path('update/', ScheduleFileUpdatView.as_view(), name='update'), + path('delete/', ScheduleFileDetailView.as_view(), name='delete'), +] diff --git a/schedule/views.py b/schedule/views.py index 91ea44a..993c327 100644 --- a/schedule/views.py +++ b/schedule/views.py @@ -1,3 +1,38 @@ from django.shortcuts import render +from django.views.generic import ListView, CreateView, UpdateView, DeleteView, DetailView, TemplateView + # Create your views here. + + +class ScheduleListView(TemplateView): + template_name = "schedule/schedule.html" + + +class ScheduleDetailView(TemplateView): + template_name = "schedule/schedule_detail.html" + + +class ScheduleChartView(TemplateView): + template_name = "schedule/schedule_chart.html" + + +class ScheduleItemChartView(TemplateView): + template_name = "schedule/schedule_item.html" + + +class ScheduleFileCreateView(CreateView): + template_name = "TEMPLATE_NAME" + + +class ScheduleFileUpdatView(UpdateView): + template_name = "TEMPLATE_NAME" + + +class ScheduleFileDeleteView(DeleteView): + template_name = "TEMPLATE_NAME" + + +class ScheduleFileDetailView(DetailView): + template_name = "TEMPLATE_NAME" + diff --git a/static/javascript/g2/data-set.min.js b/static/javascript/g2/data-set.min.js new file mode 100644 index 0000000..8382e85 --- /dev/null +++ b/static/javascript/g2/data-set.min.js @@ -0,0 +1 @@ +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.DataSet=n():t.DataSet=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=195)}([function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(103);e.d(n,"geoArea",function(){return r.c});var i=e(197);e.d(n,"geoBounds",function(){return i.a});var o=e(198);e.d(n,"geoCentroid",function(){return o.a});var u=e(104);e.d(n,"geoCircle",function(){return u.b});var a=e(65);e.d(n,"geoClipExtent",function(){return a.b});var c=e(217);e.d(n,"geoContains",function(){return c.a});var f=e(122);e.d(n,"geoDistance",function(){return f.a});var s=e(218);e.d(n,"geoGraticule",function(){return s.a}),e.d(n,"geoGraticule10",function(){return s.b});var l=e(219);e.d(n,"geoInterpolate",function(){return l.a});var h=e(123);e.d(n,"geoLength",function(){return h.a});var p=e(220);e.d(n,"geoPath",function(){return p.a});var v=e(125);e.d(n,"geoAlbers",function(){return v.a});var d=e(230);e.d(n,"geoAlbersUsa",function(){return d.a});var g=e(231);e.d(n,"geoAzimuthalEqualArea",function(){return g.b}),e.d(n,"geoAzimuthalEqualAreaRaw",function(){return g.a});var b=e(232);e.d(n,"geoAzimuthalEquidistant",function(){return b.b}),e.d(n,"geoAzimuthalEquidistantRaw",function(){return b.a});var y=e(233);e.d(n,"geoConicConformal",function(){return y.b}),e.d(n,"geoConicConformalRaw",function(){return y.a});var j=e(68);e.d(n,"geoConicEqualArea",function(){return j.b}),e.d(n,"geoConicEqualAreaRaw",function(){return j.a});var O=e(234);e.d(n,"geoConicEquidistant",function(){return O.b}),e.d(n,"geoConicEquidistantRaw",function(){return O.a});var _=e(127);e.d(n,"geoEquirectangular",function(){return _.a}),e.d(n,"geoEquirectangularRaw",function(){return _.b});var m=e(235);e.d(n,"geoGnomonic",function(){return m.a}),e.d(n,"geoGnomonicRaw",function(){return m.b});var w=e(236);e.d(n,"geoIdentity",function(){return w.a});var x=e(17);e.d(n,"geoProjection",function(){return x.a}),e.d(n,"geoProjectionMutator",function(){return x.b});var E=e(71);e.d(n,"geoMercator",function(){return E.a}),e.d(n,"geoMercatorRaw",function(){return E.c});var M=e(237);e.d(n,"geoOrthographic",function(){return M.a}),e.d(n,"geoOrthographicRaw",function(){return M.b});var T=e(238);e.d(n,"geoStereographic",function(){return T.a}),e.d(n,"geoStereographicRaw",function(){return T.b});var S=e(239);e.d(n,"geoTransverseMercator",function(){return S.a}),e.d(n,"geoTransverseMercatorRaw",function(){return S.b});var k=e(50);e.d(n,"geoRotation",function(){return k.a});var C=e(22);e.d(n,"geoStream",function(){return C.a});var P=e(51);e.d(n,"geoTransform",function(){return P.a})},function(t,n,e){"use strict";function r(t){return t>0?Math.sqrt(t):0}e.d(n,"a",function(){return i}),e.d(n,"f",function(){return o}),e.d(n,"g",function(){return u}),e.d(n,"h",function(){return a}),e.d(n,"m",function(){return c}),e.d(n,"n",function(){return f}),e.d(n,"p",function(){return s}),e.d(n,"q",function(){return l}),e.d(n,"r",function(){return h}),e.d(n,"t",function(){return p}),e.d(n,"w",function(){return v}),e.d(n,"x",function(){return d}),e.d(n,"y",function(){return g}),e.d(n,"F",function(){return b}),e.d(n,"k",function(){return y}),e.d(n,"l",function(){return j}),e.d(n,"s",function(){return O}),e.d(n,"o",function(){return _}),e.d(n,"u",function(){return m}),e.d(n,"C",function(){return w}),e.d(n,"D",function(){return x}),e.d(n,"E",function(){return E}),e.d(n,"H",function(){return M}),e.d(n,"j",function(){return T}),e.d(n,"v",function(){return S}),n.z=function(t){return t?t/Math.sin(t):1},n.e=function(t){return t>1?_:t<-1?-_:Math.asin(t)},n.b=function(t){return t>1?0:t<-1?O:Math.acos(t)},n.B=r,n.G=function(t){return((t=c(2*t))-1)/(t+1)},n.A=function(t){return(c(t)-c(-t))/2},n.i=function(t){return(c(t)+c(-t))/2},n.d=function(t){return s(t+r(t*t+1))},n.c=function(t){return s(t+r(t*t-1))};var i=Math.abs,o=Math.atan,u=Math.atan2,a=(Math.ceil,Math.cos),c=Math.exp,f=Math.floor,s=Math.log,l=Math.max,h=Math.min,p=Math.pow,v=Math.round,d=Math.sign||function(t){return t>0?1:t<0?-1:0},g=Math.sin,b=Math.tan,y=1e-6,j=1e-12,O=Math.PI,_=O/2,m=O/4,w=Math.SQRT1_2,x=r(2),E=r(O),M=2*O,T=180/O,S=O/180},function(t,n,e){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=e(3),o=e(77),u=e(76),a=e(356),c=e(139),f=e(39),s=e(84),l=function(t){function n(e){var o;void 0===e&&(e={state:{}});var u=r(r(o=t.call(this)||this));return i(u,{_onChangeTimer:null,DataSet:n,isDataSet:!0,views:{}},e),o}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);var e=n.prototype;return e._getUniqueViewName=function(){for(var t=a("view_");this.views[t];)t=a("view_");return t},e.createView=function(t,n){void 0===n&&(n={});var e=this;if(o(t)&&(t=e._getUniqueViewName()),u(t)&&(n=t,t=e._getUniqueViewName()),e.views[t])throw new Error("data view exists: "+t);var r=new f(e,n);return e.views[t]=r,r},e.getView=function(t){return this.views[t]},e.setView=function(t,n){this.views[t]=n},e.setState=function(t,n){var e=this;e.state[t]=n,e._onChangeTimer&&(clearTimeout(e._onChangeTimer),e._onChangeTimer=null),e._onChangeTimer=setTimeout(function(){e.emit("statechange",t,n)},16)},n}(c);i(l,{CONSTANTS:s,DataSet:l,DataView:f,View:f,connectors:{},transforms:{},registerConnector:function(t,n){l.connectors[t]=n},getConnector:function(t){return l.connectors[t]||l.connectors.default},registerTransform:function(t,n){l.transforms[t]=n},getTransform:function(t){return l.transforms[t]||l.transforms.default}},s),f.DataSet=l,i(l.prototype,{view:l.prototype.createView}),l.version="0.10.1",t.exports=l},function(t,n){function e(t,n){for(var e in n)n.hasOwnProperty(e)&&"constructor"!==e&&void 0!==n[e]&&(t[e]=n[e])}t.exports=function(t,n,r,i){return n&&e(t,n),r&&e(t,r),i&&e(t,i),t}},function(t,n,e){"use strict";e.d(n,"i",function(){return r}),e.d(n,"j",function(){return i}),e.d(n,"o",function(){return o}),e.d(n,"l",function(){return u}),e.d(n,"q",function(){return a}),e.d(n,"w",function(){return c}),e.d(n,"h",function(){return f}),e.d(n,"r",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"d",function(){return h}),e.d(n,"e",function(){return p}),e.d(n,"g",function(){return v}),e.d(n,"f",function(){return d}),e.d(n,"k",function(){return g}),e.d(n,"n",function(){return b}),e.d(n,"p",function(){return y}),e.d(n,"t",function(){return j}),e.d(n,"s",function(){return O}),e.d(n,"u",function(){return _}),e.d(n,"v",function(){return m}),n.b=function(t){return t>1?0:t<-1?o:Math.acos(t)},n.c=function(t){return t>1?u:t<-1?-u:Math.asin(t)},n.m=function(t){return(t=j(t/2))*t};var r=1e-6,i=1e-12,o=Math.PI,u=o/2,a=o/4,c=2*o,f=180/o,s=o/180,l=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,d=Math.ceil,g=Math.exp,b=(Math.floor,Math.log),y=Math.pow,j=Math.sin,O=Math.sign||function(t){return t>0?1:t<0?-1:0},_=Math.sqrt,m=Math.tan},function(t,n,e){"use strict";e.d(n,"i",function(){return r}),e.d(n,"j",function(){return i}),e.d(n,"o",function(){return o}),e.d(n,"l",function(){return u}),e.d(n,"q",function(){return a}),e.d(n,"w",function(){return c}),e.d(n,"h",function(){return f}),e.d(n,"r",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"d",function(){return h}),e.d(n,"e",function(){return p}),e.d(n,"g",function(){return v}),e.d(n,"f",function(){return d}),e.d(n,"k",function(){return g}),e.d(n,"n",function(){return b}),e.d(n,"p",function(){return y}),e.d(n,"t",function(){return j}),e.d(n,"s",function(){return O}),e.d(n,"u",function(){return _}),e.d(n,"v",function(){return m}),n.b=function(t){return t>1?0:t<-1?o:Math.acos(t)},n.c=function(t){return t>1?u:t<-1?-u:Math.asin(t)},n.m=function(t){return(t=j(t/2))*t};var r=1e-6,i=1e-12,o=Math.PI,u=o/2,a=o/4,c=2*o,f=180/o,s=o/180,l=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,d=Math.ceil,g=Math.exp,b=(Math.floor,Math.log),y=Math.pow,j=Math.sin,O=Math.sign||function(t){return t>0?1:t<0?-1:0},_=Math.sqrt,m=Math.tan},function(t,n,e){var r=e(41),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,n,e){var r=e(6),i=e(10),o="Invalid fields: it must be an array!";t.exports={getField:function(t,n){var e=t.field,o=t.fields;if(i(e))return e;if(r(e))return console.warn("Invalid field: it must be a string!"),e[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),i(o))return o;if(r(o)&&o.length)return o[0];if(n)return n;throw new TypeError("Invalid field: it must be a string!")},getFields:function(t,n){var e=t.field,u=t.fields;if(r(u))return u;if(i(u))return console.warn(o),[u];if(console.warn(o+" will try to get field instead."),i(e))return console.warn(o),[e];if(r(e)&&e.length)return console.warn(o),e;if(n)return n;throw new TypeError(o)}}},function(t,n,e){var r;try{r=e(169)}catch(t){}r||(r=window._),t.exports=r},function(t,n,e){var r=e(76),i=e(6);t.exports=function(t,n){if(t)if(i(t))for(var e=0,o=t.length;eMath.abs(i)*a?(o<0&&(a=-a),c=a*i/o,f=a):(i<0&&(u=-u),c=u,f=u*o/i),{x:e+c,y:r+f}},buildLayerMatrix:function(t){var n=o.map(o.range(i(t)+1),function(){return[]});return o.forEach(t.nodes(),function(e){var r=t.node(e),i=r.rank;o.isUndefined(i)||(n[i][r.order]=e)}),n},normalizeRanks:function(t){var n=o.minBy(o.map(t.nodes(),function(n){return t.node(n).rank}));o.forEach(t.nodes(),function(e){var r=t.node(e);o.has(r,"rank")&&(r.rank-=n)})},removeEmptyRanks:function(t){var n=o.minBy(o.map(t.nodes(),function(n){return t.node(n).rank})),e=[];o.forEach(t.nodes(),function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)});var r=0,i=t.graph().nodeRankFactor;o.forEach(e,function(n,e){o.isUndefined(n)&&e%i!=0?--r:r&&o.forEach(n,function(n){t.node(n).rank+=r})})},addBorderNode:function(t,n,e,i){var o={width:0,height:0};return arguments.length>=4&&(o.rank=e,o.order=i),r(t,"border",o,n)},maxRank:i,partition:function(t,n){var e={lhs:[],rhs:[]};return o.forEach(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e},time:function(t,n){var e=o.now();try{return n()}finally{console.log(t+" time: "+(o.now()-e)+"ms")}},notime:function(t,n){return n()}}},function(t,n,e){var r;try{r=e(169)}catch(t){}r||(r=window._),t.exports=r},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(109);e.d(n,"bisect",function(){return r.c}),e.d(n,"bisectRight",function(){return r.b}),e.d(n,"bisectLeft",function(){return r.a});var i=e(30);e.d(n,"ascending",function(){return i.a});var o=e(110);e.d(n,"bisector",function(){return o.a});var u=e(201);e.d(n,"cross",function(){return u.a});var a=e(202);e.d(n,"descending",function(){return a.a});var c=e(112);e.d(n,"deviation",function(){return c.a});var f=e(114);e.d(n,"extent",function(){return f.a});var s=e(203);e.d(n,"histogram",function(){return s.a});var l=e(206);e.d(n,"thresholdFreedmanDiaconis",function(){return l.a});var h=e(207);e.d(n,"thresholdScott",function(){return h.a});var p=e(118);e.d(n,"thresholdSturges",function(){return p.a});var v=e(208);e.d(n,"max",function(){return v.a});var d=e(209);e.d(n,"mean",function(){return d.a});var g=e(210);e.d(n,"median",function(){return g.a});var b=e(211);e.d(n,"merge",function(){return b.a});var y=e(119);e.d(n,"min",function(){return y.a});var j=e(111);e.d(n,"pairs",function(){return j.a});var O=e(212);e.d(n,"permute",function(){return O.a});var _=e(66);e.d(n,"quantile",function(){return _.a});var m=e(116);e.d(n,"range",function(){return m.a});var w=e(213);e.d(n,"scan",function(){return w.a});var x=e(214);e.d(n,"shuffle",function(){return x.a});var E=e(215);e.d(n,"sum",function(){return E.a});var M=e(117);e.d(n,"ticks",function(){return M.a}),e.d(n,"tickIncrement",function(){return M.b}),e.d(n,"tickStep",function(){return M.c});var T=e(120);e.d(n,"transpose",function(){return T.a});var S=e(113);e.d(n,"variance",function(){return S.a});var k=e(216);e.d(n,"zip",function(){return k.a})},function(t,n,e){var r=e(6),i=e(11),o=e(10),u=e(352),a=e(353);t.exports=function(t,n,e){void 0===e&&(e=[]);var c=t;e&&e.length&&(c=a(t,e));var f;i(n)?f=n:r(n)?f=function(t){return"_"+n.map(function(n){return t[n]}).join("-")}:o(n)&&(f=function(t){return"_"+t[n]});return u(c,f)}},function(t,n,e){var r;try{r=e(433)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,n,e){"use strict";function r(t){function n(t){return t=j(t[0]*f.r,t[1]*f.r),[t[0]*E+g,b-t[1]*E]}function e(t,n){return t=d(t,n),[t[0]*E+g,b-t[1]*E]}function r(){j=Object(a.a)(y=Object(s.b)(C,P,N),d);var t=d(S,k);return g=M-t[0]*E,b=T+t[1]*E,l()}function l(){return w=x=null,n}var d,g,b,y,j,O,_,m,w,x,E=150,M=480,T=250,S=0,k=0,C=0,P=0,N=0,R=null,B=i.a,A=null,I=c.a,L=.5,z=Object(p.a)(e,L);return n.stream=function(t){return w&&x===t?w:w=v(B(y,z(I(x=t))))},n.clipAngle=function(t){return arguments.length?(B=+t?Object(o.a)(R=t*f.r,6*f.r):(R=null,i.a),l()):R*f.h},n.clipExtent=function(t){return arguments.length?(I=null==t?(A=O=_=m=null,c.a):Object(u.a)(A=+t[0][0],O=+t[0][1],_=+t[1][0],m=+t[1][1]),l()):null==A?null:[[A,O],[_,m]]},n.scale=function(t){return arguments.length?(E=+t,r()):E},n.translate=function(t){return arguments.length?(M=+t[0],T=+t[1],r()):[M,T]},n.center=function(t){return arguments.length?(S=t[0]%360*f.r,k=t[1]%360*f.r,r()):[S*f.h,k*f.h]},n.rotate=function(t){return arguments.length?(C=t[0]%360*f.r,P=t[1]%360*f.r,N=t.length>2?t[2]%360*f.r:0,r()):[C*f.h,P*f.h,N*f.h]},n.precision=function(t){return arguments.length?(z=Object(p.a)(e,L=t*t),l()):Object(f.u)(L)},n.fitExtent=function(t,e){return Object(h.a)(n,t,e)},n.fitSize=function(t,e){return Object(h.b)(n,t,e)},function(){return d=t.apply(this,arguments),n.invert=d.invert&&function(t){return(t=j.invert((t[0]-g)/E,(b-t[1])/E))&&[t[0]*f.h,t[1]*f.h]},r()}}n.a=function(t){return r(function(){return t})()},n.b=r;var i=e(226),o=e(227),u=e(65),a=e(105),c=e(67),f=e(4),s=e(50),l=e(51),h=e(70),p=e(228),v=Object(l.b)({point:function(t,n){this.stream.point(t*f.r,n*f.r)}})},function(t,n,e){"use strict";function r(t){function n(t){return t=j(t[0]*f.r,t[1]*f.r),[t[0]*E+g,b-t[1]*E]}function e(t,n){return t=d(t,n),[t[0]*E+g,b-t[1]*E]}function r(){j=Object(a.a)(y=Object(s.b)(C,P,N),d);var t=d(S,k);return g=M-t[0]*E,b=T+t[1]*E,l()}function l(){return w=x=null,n}var d,g,b,y,j,O,_,m,w,x,E=150,M=480,T=250,S=0,k=0,C=0,P=0,N=0,R=null,B=i.a,A=null,I=c.a,L=.5,z=Object(p.a)(e,L);return n.stream=function(t){return w&&x===t?w:w=v(B(y,z(I(x=t))))},n.clipAngle=function(t){return arguments.length?(B=+t?Object(o.a)(R=t*f.r,6*f.r):(R=null,i.a),l()):R*f.h},n.clipExtent=function(t){return arguments.length?(I=null==t?(A=O=_=m=null,c.a):Object(u.a)(A=+t[0][0],O=+t[0][1],_=+t[1][0],m=+t[1][1]),l()):null==A?null:[[A,O],[_,m]]},n.scale=function(t){return arguments.length?(E=+t,r()):E},n.translate=function(t){return arguments.length?(M=+t[0],T=+t[1],r()):[M,T]},n.center=function(t){return arguments.length?(S=t[0]%360*f.r,k=t[1]%360*f.r,r()):[S*f.h,k*f.h]},n.rotate=function(t){return arguments.length?(C=t[0]%360*f.r,P=t[1]%360*f.r,N=t.length>2?t[2]%360*f.r:0,r()):[C*f.h,P*f.h,N*f.h]},n.precision=function(t){return arguments.length?(z=Object(p.a)(e,L=t*t),l()):Object(f.u)(L)},n.fitExtent=Object(h.a)(n),n.fitSize=Object(h.b)(n),function(){return d=t.apply(this,arguments),n.invert=d.invert&&function(t){return(t=j.invert((t[0]-g)/E,(b-t[1])/E))&&[t[0]*f.h,t[1]*f.h]},r()}}n.a=function(t){return r(function(){return t})()},n.b=r;var i=e(336),o=e(338),u=e(145),a=e(144),c=e(150),f=e(5),s=e(78),l=e(81),h=e(154),p=e(339),v=Object(l.b)({point:function(t,n){this.stream.point(t*f.r,n*f.r)}})},function(t,n,e){!function(t,e){e(n)}(0,function(t){"use strict";function n(t){if(0===t.length)return 0;for(var n,e=t[0],r=0,i=1;i=Math.abs(t[i])?r+=e-n+t[i]:r+=t[i]-n+e,e=n;return e+r}function e(t){if(0===t.length)throw new Error("mean requires at least one data point");return n(t)/t.length}function r(t,n){var r,i,o=e(t),u=0;if(2===n)for(i=0;in&&(n=t[e]);return n}function s(t,n){var e=t.length*n;if(0===t.length)throw new Error("quantile requires at least one data point.");if(n<0||1f&&h(t,e,r);sf;)p--}t[e]===f?h(t,e,p):h(t,++p,r),p<=n&&(e=p+1),n<=p&&(r=p-1)}}function h(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function p(t,n){var e=t.slice();if(Array.isArray(n)){!function(t,n){for(var e=[0],r=0;rt[t.length-1])return 1;var e=function(t,n){for(var e=0,r=0,i=t.length;r>>1]?i=e:r=-~e;return r}(t,n);if(t[e]!==n)return e/t.length;e++;var r=function(t,n){for(var e=0,r=0,i=t.length;r=t[e=r+i>>>1]?r=-~e:i=e;return r}(t,n);if(r===e)return e/t.length;var i=r-e+1;return i*(r+e)/2/i/t.length}function y(t){var n=p(t,.75),e=p(t,.25);if("number"==typeof n&&"number"==typeof e)return n-e}function j(t){return+p(t,.5)}function O(t){for(var n=j(t),e=[],r=0;r=r[e][a]);--p)(s=E(c,a,o,u)+r[e-1][c-1])e&&(e=t[r]),t[r]t.length)throw new Error("cannot generate more classes than there are data values");var e=a(t);if(1===w(e))return[e];var r=x(n,e.length),i=x(n,e.length);!function(t,n,e){for(var r,i=n[0].length,o=t[Math.floor(i/2)],u=[],a=[],c=0;c=Math.abs(o)&&(p+=1);else if("greater"===r)for(f=0;f<=i;f++)u[f]>=o&&(p+=1);else for(f=0;f<=i;f++)u[f]<=o&&(p+=1);return p/i},t.bisect=function(t,n,e,r,i){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;ou.k&&--i>0);return n/2}function i(t,n,e){function i(i,o){return[t*i*Object(u.h)(o=r(e,o)),n*Object(u.y)(o)]}return i.invert=function(r,i){return i=Object(u.e)(i/n),[r/(t*Object(u.h)(i)),Object(u.e)((2*i+Object(u.y)(2*i))/e)]},i}n.c=r,n.b=i,e.d(n,"d",function(){return a});var o=e(0),u=e(1),a=i(u.D/u.o,u.D,u.s);n.a=function(){return Object(o.geoProjection)(a).scale(169.529)}},function(t,n,e){"use strict";function r(t,n){t&&a.hasOwnProperty(t.type)&&a[t.type](t,n)}function i(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++io[u][2][0];++u);var c=t(e-o[u][1][0],r);return c[0]+=t(o[u][1][0],i*r>i*o[u][0][1]?o[u][0][1]:r)[0],c}var c=function(t){var n,e,r,u,c,f,s,l=[],h=t[0].length;for(s=0;s=0;--s)e=(n=t[1][s])[0][0],r=n[0][1],u=n[1][1],c=n[2][0],f=n[2][1],l.push(i([[c-a.k,f-a.k],[c-a.k,u+a.k],[e+a.k,u+a.k],[e+a.k,r-a.k]],30));return{type:"Polygon",coordinates:[Object(o.merge)(l)]}}(n),f=(n=n.map(function(t){return t.map(function(t){return[[t[0][0]*a.v,t[0][1]*a.v],[t[1][0]*a.v,t[1][1]*a.v],[t[2][0]*a.v,t[2][1]*a.v]]})})).map(function(n){return n.map(function(n){var e,r=t(n[0][0],n[0][1])[0],i=t(n[2][0],n[2][1])[0],o=t(n[1][0],n[0][1])[1],u=t(n[1][0],n[1][1])[1];return o>u&&(e=o,o=u,u=e),[[r,o],[i,u]]})});t.invert&&(e.invert=function(i,o){for(var u=f[+(o<0)],a=n[+(o<0)],c=0,s=u.length;cn?1:t>=n?0:NaN}},function(t,n,e){"use strict";var r=e(0),i=e(1);n.a=function(t){var n=0,e=Object(r.geoProjectionMutator)(t),o=e(n);return o.parallel=function(t){return arguments.length?e(n=t*i.v):n*i.j},o}},function(t,n,e){var r=e(9),i=e(54),o=Object.prototype.hasOwnProperty;t.exports=function(t,n){if(null===t||!i(t))return{};var e={};return r(n,function(n){o.call(t,n)&&(e[n]=t[n])}),e}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(349);e.d(n,"path",function(){return r.a})},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(369);e.d(n,"cluster",function(){return r.a});var i=e(86);e.d(n,"hierarchy",function(){return i.c});var o=e(381);e.d(n,"pack",function(){return o.a});var u=e(160);e.d(n,"packSiblings",function(){return u.a});var a=e(161);e.d(n,"packEnclose",function(){return a.a});var c=e(383);e.d(n,"partition",function(){return c.a});var f=e(384);e.d(n,"stratify",function(){return f.a});var s=e(385);e.d(n,"tree",function(){return s.a});var l=e(386);e.d(n,"treemap",function(){return l.a});var h=e(387);e.d(n,"treemapBinary",function(){return h.a});var p=e(45);e.d(n,"treemapDice",function(){return p.a});var v=e(55);e.d(n,"treemapSlice",function(){return v.a});var d=e(388);e.d(n,"treemapSliceDice",function(){return d.a});var g=e(88);e.d(n,"treemapSquarify",function(){return g.a});var b=e(389);e.d(n,"treemapResquarify",function(){return b.a})},function(t,n,e){"use strict";n.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},n.a=function(t){var n=t[0],e=t[1],i=Object(r.g)(e);return[i*Object(r.g)(n),i*Object(r.t)(n),Object(r.t)(e)]},n.d=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]},n.c=function(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]]},n.b=function(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]},n.f=function(t,n){return[t[0]*n,t[1]*n,t[2]*n]},n.e=function(t){var n=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n};var r=e(4)},function(t,n,e){"use strict";n.a=function(t){return null===t?NaN:+t}},function(t,n,e){"use strict";n.b=function(t){return function(n,e){var i=Object(r.g)(n),o=Object(r.g)(e),u=t(i*o);return[u*o*Object(r.t)(n),u*Object(r.t)(e)]}},n.a=function(t){return function(n,e){var i=Object(r.u)(n*n+e*e),o=t(i),u=Object(r.t)(o),a=Object(r.g)(o);return[Object(r.e)(n*u,i*a),Object(r.c)(i&&e*u/i)]}};var r=e(4)},function(t,n,e){"use strict";function r(t,n){return[t*Object(o.h)(n),n]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){return[t/Object(o.h)(n),n]},n.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i=e(139),o=e(3),u=e(40),a=e(40),c=e(320),f=e(9),s=e(6),l=e(54),h=e(140),p=e(76),v=e(10),d=e(24),g=e(32),b=function(t){function n(n,e){var i,u=r(r(i=t.call(this)||this));if(e=e||{},(n=n||{}).isDataSet||(e=n,n=null),o(u,{dataSet:n,loose:!n,dataType:"table",isView:!0,isDataView:!0,origin:[],rows:[],transforms:[],watchingStates:null},e),!u.loose){var a=u.watchingStates;n.on("statechange",function(t){s(a)?a.indexOf(t)>-1&&u._reExecute():u._reExecute()})}return i}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);var e=n.prototype;return e._parseStateExpression=function(t){var n=this.dataSet,e=/^\$state\.(\w+)/.exec(t);return e?n.state[e[1]]:t},e._preparseOptions=function(t){var n=this,e=function(t){var n={};return f(t,function(t,e){p(t)&&t.isView?n[e]=t:s(t)?n[e]=t.concat([]):l(t)?n[e]=u(t):n[e]=t}),n}(t);return n.loose?e:(f(e,function(t,r){v(t)&&/^\$state\./.test(t)&&(e[r]=n._parseStateExpression(t))}),e)},e._prepareSource=function(t,e){var r=this,i=n.DataSet;if(r._source={source:t,options:e},e)e=r._preparseOptions(e),r.origin=i.getConnector(e.type)(t,e,r);else if(t instanceof n||v(t))r.origin=i.getConnector("default")(t,r.dataSet);else if(s(t))r.origin=t;else{if(!p(t)||!t.type)throw new TypeError("Invalid source");e=r._preparseOptions(t),r.origin=i.getConnector(e.type)(e,r)}return r.rows=a(r.origin),r},e.source=function(t,n){return this._prepareSource(t,n),this._reExecuteTransforms(),this.trigger("change"),this},e.transform=function(t){void 0===t&&(t={});return this.transforms.push(t),this._executeTransform(t),this},e._executeTransform=function(t){t=this._preparseOptions(t);n.DataSet.getTransform(t.type)(this,t)},e._reExecuteTransforms=function(){var t=this;t.transforms.forEach(function(n){t._executeTransform(n)})},e.addRow=function(t){this.rows.push(t)},e.removeRow=function(t){this.rows.splice(t,1)},e.updateRow=function(t,n){o(this.rows[t],n)},e.findRows=function(t){return this.rows.filter(function(n){return h(n,t)})},e.findRow=function(t){return c(this.rows,t)},e.getColumnNames=function(){var t=this.rows[0];return t?d(t):[]},e.getColumnName=function(t){return this.getColumnNames()[t]},e.getColumnIndex=function(t){return this.getColumnNames().indexOf(t)},e.getColumn=function(t){return this.rows.map(function(n){return n[t]})},e.getColumnData=function(t){return this.getColumn(t)},e.getSubset=function(t,n,e){for(var r=[],i=t;i<=n;i++)r.push(g(this.rows[i],e));return r},e.toString=function(t){return t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e._reExecute=function(){var t=this._source,n=t.source,e=t.options;this._prepareSource(n,e),this._reExecuteTransforms(),this.trigger("change")},n}(i);t.exports=b},function(t,n,e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(6);t.exports=function t(n){if("object"!==(void 0===n?"undefined":r(n))||null===n)return n;var e=void 0;if(i(n)){e=[];for(var o=0,u=n.length;o1?0:t<-1?l:Math.acos(t)},n.c=function(t){return t>=1?h:t<=-1?-h:Math.asin(t)};var r=Math.abs,i=Math.atan2,o=Math.cos,u=Math.max,a=Math.min,c=Math.sin,f=Math.sqrt,s=1e-12,l=Math.PI,h=l/2,p=2*l},function(t,n,e){"use strict";n.a=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o=0;)e[n]=n;return e}},function(t,n,e){"use strict";function r(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function i(t,n){return n[1]-t[1]||n[0]-t[0]}function o(t,n){var e,r,o,d=t.sort(i).pop();for(f=[],a=new Array(t.length),u=new v.b,c=new v.b;;)if(o=h.c,d&&(!o||d[1]=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;lf.o?t-f.w:t<-f.o?t+f.w:t,n]}function i(t,n,e){return(t%=f.w)?n||e?Object(c.a)(u(t),a(n,e)):u(t):n||e?a(n,e):r}function o(t){return function(n,e){return n+=t,[n>f.o?n-f.w:n<-f.o?n+f.w:n,e]}}function u(t){var n=o(t);return n.invert=o(-t),n}function a(t,n){function e(t,n){var e=Object(f.g)(n),a=Object(f.g)(t)*e,c=Object(f.t)(t)*e,s=Object(f.t)(n),l=s*r+a*i;return[Object(f.e)(c*o-l*u,a*r-s*i),Object(f.c)(l*o+c*u)]}var r=Object(f.g)(t),i=Object(f.t)(t),o=Object(f.g)(n),u=Object(f.t)(n);return e.invert=function(t,n){var e=Object(f.g)(n),a=Object(f.g)(t)*e,c=Object(f.t)(t)*e,s=Object(f.t)(n),l=s*o-c*u;return[Object(f.e)(c*o+s*u,a*r+l*i),Object(f.c)(l*r-a*i)]},e}n.b=i;var c=e(105),f=e(4);r.invert=r,n.a=function(t){function n(n){return n=t(n[0]*f.r,n[1]*f.r),n[0]*=f.h,n[1]*=f.h,n}return t=i(t[0]*f.r,t[1]*f.r,t.length>2?t[2]*f.r:0),n.invert=function(n){return n=t.invert(n[0]*f.r,n[1]*f.r),n[0]*=f.h,n[1]*=f.h,n},n}},function(t,n,e){"use strict";function r(t){return function(n){var e=new i;for(var r in t)e[r]=t[r];return e.stream=n,e}}function i(){}n.b=r,n.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,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()}}},function(t,n,e){"use strict";var r=e(1);n.a=function(t,n,e,i,o,u,a,c){function f(f,s){if(!s)return[t*f/r.s,0];var l=s*s,h=t+l*(n+l*(e+l*i)),p=s*(o-1+l*(u-c+l*a)),v=(h*h+p*p)/(2*p),d=f*Object(r.e)(h/v)/r.s;return[v*Object(r.y)(d),s*(1+l*c)+v*(1-Object(r.h)(d))]}return arguments.length<8&&(c=0),f.invert=function(f,s){var l,h,p=r.s*f/t,v=s,d=50;do{var g=v*v,b=t+g*(n+g*(e+g*i)),y=v*(o-1+g*(u-c+g*a)),j=b*b+y*y,O=2*y,_=j/O,m=_*_,w=Object(r.e)(b/_)/r.s,x=p*w,E=b*b,M=(2*n+g*(4*e+6*g*i))*v,T=o+g*(3*u+5*g*a),S=(2*(b*M+y*(T-1))*O-j*(2*(T-1)))/(O*O),k=Object(r.h)(x),C=Object(r.y)(x),P=_*k,N=_*C,R=p/r.s*(1/Object(r.B)(1-E/m))*(M*_-b*S)/m,B=N-f,A=v*(1+g*c)+_-P-s,I=S*C+P*R,L=P*w,z=1+S-(S*k-N*R),q=N*w,F=I*q-z*L;if(!F)break;p-=l=(A*I-B*z)/F,v-=h=(B*q-A*L)/F}while((Object(r.a)(l)>r.k||Object(r.a)(h)>r.k)&&--d>0);return[p,v]},f}},function(t,n,e){"use strict";function r(t,n,e){var i,o,c=n.edges,f=c.length,s={type:"MultiPoint",coordinates:n.face},l=n.face.filter(function(t){return 90!==Object(a.a)(t[1])}),h=Object(u.geoBounds)({type:"MultiPoint",coordinates:l}),p=!1,v=-1,d=h[1][0]-h[0][0],g=180===d||360===d?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:Object(u.geoCentroid)(s);if(e)for(;++v=0;)if(r=n[a],e[0]===r[0]&&e[1]===r[1]){if(o)return[o,e];o=e}}}(t.face,n.face),r=Object(c.a)(e.map(n.project),e.map(t.project));t.transform=n.transform?Object(c.c)(n.transform,r):r;for(var o=n.edges,u=0,a=o.length;u0)do{a.point(0===c||3===c?t:e,c>1?r:n)}while((c=(c+u+4)%4)!==f);else a.point(o[0],o[1])}function p(r,o){return Object(i.a)(r[0]-t)0?0:3:Object(i.a)(r[0]-e)0?2:1:Object(i.a)(r[1]-n)0?1:0:o>0?3:2}function v(t,n){return d(t.x,n.x)}function d(t,n){var e=p(t,1),r=p(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(i){function p(t,n){l(t,n)&&T.point(t,n)}function d(i,o){var a=l(i,o);if(b&&y.push([i,o]),E)j=i,O=o,_=a,E=!1,a&&(T.lineStart(),T.point(i,o));else if(a&&x)T.point(i,o);else{var c=[m=Math.max(s,Math.min(f,m)),w=Math.max(s,Math.min(f,w))],h=[i=Math.max(s,Math.min(f,i)),o=Math.max(s,Math.min(f,o))];Object(u.a)(c,h,t,n,e,r)?(x||(T.lineStart(),T.point(c[0],c[1])),T.point(h[0],h[1]),a||T.lineEnd(),M=!1):a&&(T.lineStart(),T.point(i,o),M=!1)}m=i,w=o,x=a}var g,b,y,j,O,_,m,w,x,E,M,T=i,S=Object(o.a)(),k={point:p,lineStart:function(){k.point=d,b&&b.push(y=[]),E=!0,x=!1,m=w=NaN},lineEnd:function(){g&&(d(j,O),_&&x&&S.rejoin(),g.push(S.result())),k.point=p,x&&T.lineEnd()},polygonStart:function(){T=S,g=[],b=[],M=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=b.length;er&&(l-o)*(r-u)>(h-u)*(t-o)&&++n:h<=r&&(l-o)*(r-u)<(h-u)*(t-o)&&--n;return n}(),e=M&&n,o=(g=Object(c.merge)(g)).length;(e||o)&&(i.polygonStart(),e&&(i.lineStart(),h(null,null,1,i),i.lineEnd()),o&&Object(a.a)(g,v,n,h,i),i.polygonEnd()),T=i,g=b=y=null}};return k}}n.a=r;var i=e(4),o=e(106),u=e(200),a=e(107),c=e(14),f=1e9,s=-f;n.b=function(){var t,n,e,i=0,o=0,u=960,a=500;return e={stream:function(e){return t&&n===e?t:t=r(i,o,u,a)(n=e)},extent:function(r){return arguments.length?(i=+r[0][0],o=+r[0][1],u=+r[1][0],a=+r[1][1],t=n=null,e):[[i,o],[u,a]]}}}},function(t,n,e){"use strict";var r=e(36);n.a=function(t,n,e){if(null==e&&(e=r.a),i=t.length){if((n=+n)<=0||i<2)return+e(t[0],0,t);if(n>=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*n,u=Math.floor(o),a=+e(t[u],u,t);return a+(+e(t[u+1],u+1,t)-a)*(o-u)}}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";function r(t,n){function e(t,n){var e=Object(i.u)(a-2*o*Object(i.t)(n))/o;return[e*Object(i.t)(t*=o),c-e*Object(i.g)(t)]}var r=Object(i.t)(t),o=(r+Object(i.t)(n))/2;if(Object(i.a)(o)0?t*Object(o.B)(o.s/e)/2:0,Object(o.e)(1-e)]},n.b=function(){return Object(i.geoProjection)(r).scale(95.6464).center([0,30])}},function(t,n,e){"use strict";function r(t,n){return n>-a?(t=Object(o.d)(t,n),t[1]+=c,t):Object(u.b)(t,n)}e.d(n,"b",function(){return a}),e.d(n,"d",function(){return c}),n.c=r;var i=e(0),o=e(21),u=e(38),a=.7109889596207567,c=.0528035274542;r.invert=function(t,n){return n>-a?o.d.invert(t,n-c):u.b.invert(t,n)},n.a=function(){return Object(i.geoProjection)(r).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,n,e){"use strict";var r=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];n.a=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return r[t]})})},function(t,n,e){"use strict";var r=e(0),i=e(1);n.a=function(t){function n(n,r){var o=Object(i.a)(n)0?n-i.s:n+i.s,r),a=(u[0]-u[1])*i.C,c=(u[0]+u[1])*i.C;if(o)return[a,c];var f=e*i.C,s=a>0^c>0?-1:1;return[s*a-Object(i.x)(c)*f,s*c-Object(i.x)(a)*f]}var e=t(i.o,0)[0]-t(-i.o,0)[0];return t.invert&&(n.invert=function(n,r){var o=(n+r)*i.C,u=(r-n)*i.C,a=Object(i.a)(o)<.5*e&&Object(i.a)(u)<.5*e;if(!a){var c=e*i.C,f=o>0^u>0?-1:1,s=-f*n+(u>0?1:-1)*c,l=-f*r+(o>0?1:-1)*c;o=(-s-l)*i.C,u=(s-l)*i.C}var h=t.invert(o,u);return a||(h[0]+=o>0?i.s:-i.s),h}),Object(r.geoProjection)(n).rotate([-90,-90,45]).clipAngle(179.999)}},function(t,n){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var n=void 0===t?"undefined":e(t);return null!==t&&"object"===n||"function"===n}},function(t,n){t.exports=function(t){return null===t||void 0===t}},function(t,n,e){"use strict";function r(t,n){return[t>f.o?t-f.w:t<-f.o?t+f.w:t,n]}function i(t,n,e){return(t%=f.w)?n||e?Object(c.a)(u(t),a(n,e)):u(t):n||e?a(n,e):r}function o(t){return function(n,e){return n+=t,[n>f.o?n-f.w:n<-f.o?n+f.w:n,e]}}function u(t){var n=o(t);return n.invert=o(-t),n}function a(t,n){function e(t,n){var e=Object(f.g)(n),a=Object(f.g)(t)*e,c=Object(f.t)(t)*e,s=Object(f.t)(n),l=s*r+a*i;return[Object(f.e)(c*o-l*u,a*r-s*i),Object(f.c)(l*o+c*u)]}var r=Object(f.g)(t),i=Object(f.t)(t),o=Object(f.g)(n),u=Object(f.t)(n);return e.invert=function(t,n){var e=Object(f.g)(n),a=Object(f.g)(t)*e,c=Object(f.t)(t)*e,s=Object(f.t)(n),l=s*o-c*u;return[Object(f.e)(c*o+s*u,a*r+l*i),Object(f.c)(l*r-a*i)]},e}n.b=i;var c=e(144),f=e(5);r.invert=r,n.a=function(t){function n(n){return n=t(n[0]*f.r,n[1]*f.r),n[0]*=f.h,n[1]*=f.h,n}return t=i(t[0]*f.r,t[1]*f.r,t.length>2?t[2]*f.r:0),n.invert=function(n){return n=t.invert(n[0]*f.r,n[1]*f.r),n[0]*=f.h,n[1]*=f.h,n},n}},function(t,n,e){"use strict";function r(t,n){function e(t,n){var e=Object(i.u)(u-2*o*Object(i.t)(n))/o;return[e*Object(i.t)(t*=o),a-e*Object(i.g)(t)]}var r=Object(i.t)(t),o=(r+Object(i.t)(n))/2,u=1+r*(2*o-r),a=Object(i.u)(u)/o;return e.invert=function(t,n){var e=a-n;return[Object(i.e)(t,e)/o,Object(i.c)((u-(t*t+e*e)*o*o)/(2*o))]},e}n.a=r;var i=e(5),o=e(80);n.b=function(){return Object(o.a)(r).scale(155.424).center([0,33.6442])}},function(t,n,e){"use strict";n.a=function(t){var n=0,e=r.o/3,o=Object(i.b)(t),u=o(n,e);return u.parallels=function(t){return arguments.length?o(n=t[0]*r.r,e=t[1]*r.r):[n*r.h,e*r.h]},u};var r=e(5),i=e(18)},function(t,n,e){"use strict";function r(t){function n(){}var e=n.prototype=Object.create(i.prototype);for(var r in t)e[r]=t[r];return function(t){var e=new n;return e.stream=t,e}}function i(){}n.b=r,n.a=function(t){return{stream:r(t)}},i.prototype={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()}}},function(t,n,e){"use strict";function r(t,n){return[t,Object(u.n)(Object(u.v)((u.l+n)/2))]}function i(t){var n,e=Object(o.a)(t),r=e.scale,i=e.translate,a=e.clipExtent;return e.scale=function(t){return arguments.length?(r(t),n&&e.clipExtent(null),e):r()},e.translate=function(t){return arguments.length?(i(t),n&&e.clipExtent(null),e):i()},e.clipExtent=function(t){if(!arguments.length)return n?null:a();if(n=null==t){var o=u.o*r(),c=i();t=[[c[0]-o,c[1]-o],[c[0]+o,c[1]+o]]}return a(t),e},e.clipExtent(null)}n.c=r,n.b=i;var o=e(18),u=e(5);r.invert=function(t,n){return[t,2*Object(u.d)(Object(u.k)(n))-u.l]},n.a=function(){return i(r).scale(961/u.w)}},function(t,n,e){var r=e(9),i=e(11),o=Object.values?function(t){return Object.values(t)}:function(t){var n=[];return r(t,function(e,r){i(t)&&"prototype"===r||n.push(e)}),n};t.exports=o},function(t,n){t.exports={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},function(t,n,e){"use strict";function r(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}var i={},o={},u=34,a=10,c=13;n.a=function(t){function n(t,n){function e(){if(v)return o;if(d)return d=!1,i;var n,e,r=h;if(t.charCodeAt(r)===u){for(;h++=s?v=!0:(e=t.charCodeAt(h++))===a?d=!0:e===c&&(d=!0,t.charCodeAt(h)===a&&++h),t.slice(r+1,n-1).replace(/""/g,'"')}for(;h=0;--c)h.push(r=e.children[c]=new a(o[c])),r.parent=e,r.depth=e.depth+1;return s.eachBefore(u)}function i(t){return t.children}function o(t){t.data=t.data.data}function u(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function a(t){this.data=t,this.depth=this.height=0,this.parent=null}n.c=r,n.b=u,n.a=a;var c=e(370),f=e(371),s=e(372),l=e(373),h=e(374),p=e(375),v=e(376),d=e(377),g=e(378),b=e(379),y=e(380);a.prototype=r.prototype={constructor:a,count:c.a,each:f.a,eachAfter:l.a,eachBefore:s.a,sum:h.a,sort:p.a,path:v.a,ancestors:d.a,descendants:g.a,leaves:b.a,links:y.a,copy:function(){return r(this).eachBefore(o)}}},function(t,n,e){"use strict";function r(t){if("function"!=typeof t)throw new Error;return t}n.a=function(t){return null==t?null:r(t)},n.b=r},function(t,n,e){"use strict";function r(t,n,e,r,u,a){for(var c,f,s,l,h,p,v,d,g,b,y,j=[],O=n.children,_=0,m=0,w=O.length,x=n.value;_v&&(v=f),y=h*h*b,(d=Math.max(v/y,y/p))>g){h-=f;break}g=d}j.push(c={value:h,dice:s1?n:1)},e}(u)},function(t,n,e){"use strict";var r=e(165);n.a=function(t){if(null==t)return r.a;var n,e,i=t.scale[0],o=t.scale[1],u=t.translate[0],a=t.translate[1];return function(t,r){r||(n=e=0);var c=2,f=t.length,s=new Array(f);for(s[0]=(n+=t[0])*i+u,s[1]=(e+=t[1])*o+a;co){var u=i;i=o,o=u}return i+l+o+l+(c.isUndefined(r)?f:r)}function a(t,n){return u(t,n.v,n.w,n.name)}var c=e(13);t.exports=r;var f="\0",s="\0",l="";r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(t){return this._label=t,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultNodeLabelFn=t,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return c.keys(this._nodes)},r.prototype.sources=function(){var t=this;return c.filter(this.nodes(),function(n){return c.isEmpty(t._in[n])})},r.prototype.sinks=function(){var t=this;return c.filter(this.nodes(),function(n){return c.isEmpty(t._out[n])})},r.prototype.setNodes=function(t,n){var e=arguments,r=this;return c.each(t,function(t){e.length>1?r.setNode(t,n):r.setNode(t)}),this},r.prototype.setNode=function(t,n){return c.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=s,this._children[t]={},this._children[s][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},r.prototype.node=function(t){return this._nodes[t]},r.prototype.hasNode=function(t){return c.has(this._nodes,t)},r.prototype.removeNode=function(t){var n=this;if(c.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],c.each(this.children(t),function(t){n.setParent(t)}),delete this._children[t]),c.each(c.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],c.each(c.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},r.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(n))n=s;else{for(var e=n+="";!c.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},r.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},r.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==s)return n}},r.prototype.children=function(t){if(c.isUndefined(t)&&(t=s),this._isCompound){var n=this._children[t];if(n)return c.keys(n)}else{if(t===s)return this.nodes();if(this.hasNode(t))return[]}},r.prototype.predecessors=function(t){var n=this._preds[t];if(n)return c.keys(n)},r.prototype.successors=function(t){var n=this._sucs[t];if(n)return c.keys(n)},r.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return c.union(n,this.successors(t))},r.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},r.prototype.filterNodes=function(t){function n(t){var o=r.parent(t);return void 0===o||e.hasNode(o)?(i[t]=o,o):o in i?i[o]:n(o)}var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;c.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),c.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var i={};return this._isCompound&&c.each(e.nodes(),function(t){e.setParent(t,n(t))}),e},r.prototype.setDefaultEdgeLabel=function(t){return c.isFunction(t)||(t=c.constant(t)),this._defaultEdgeLabelFn=t,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return c.values(this._edgeObjs)},r.prototype.setPath=function(t,n){var e=this,r=arguments;return c.reduce(t,function(t,i){return r.length>1?e.setEdge(t,i,n):e.setEdge(t,i),i}),this},r.prototype.setEdge=function(){var t,n,e,r,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,n=a.w,e=a.name,2===arguments.length&&(r=arguments[1],o=!0)):(t=a,n=arguments[1],e=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),t=""+t,n=""+n,c.isUndefined(e)||(e=""+e);var f=u(this._isDirected,t,n,e);if(c.has(this._edgeLabels,f))return o&&(this._edgeLabels[f]=r),this;if(!c.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[f]=o?r:this._defaultEdgeLabelFn(t,n,e);var s=function(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var u=i;i=o,o=u}var a={v:i,w:o};return r&&(a.name=r),a}(this._isDirected,t,n,e);return t=s.v,n=s.w,Object.freeze(s),this._edgeObjs[f]=s,i(this._preds[n],t),i(this._sucs[t],n),this._in[n][f]=s,this._out[t][f]=s,this._edgeCount++,this},r.prototype.edge=function(t,n,e){var r=1===arguments.length?a(this._isDirected,arguments[0]):u(this._isDirected,t,n,e);return this._edgeLabels[r]},r.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?a(this._isDirected,arguments[0]):u(this._isDirected,t,n,e);return c.has(this._edgeLabels,r)},r.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?a(this._isDirected,arguments[0]):u(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],o(this._preds[n],t),o(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},r.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=c.values(e);return n?c.filter(r,function(t){return t.v===n}):r}},r.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=c.values(e);return n?c.filter(r,function(t){return t.w===n}):r}},r.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},function(t,n,e){"use strict";function r(){}function i(t,n){var e=new r;if(t instanceof r)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var i,o=-1,u=t.length;if(null==n)for(;++oo.f){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,i=(i*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>o.f){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*s+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,u,a,t._x2,t._y2)}function i(t,n){this._context=t,this._alpha=n}n.a=r;var o=e(46),u=e(63);i.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,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,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:r(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}};(function t(n){function e(t){return n?new i(t,n):new u.a(t,0)}return e.alpha=function(n){return t(+n)},e})(.5)},function(t,n,e){"use strict";function r(t){for(var n,e=0,r=-1,i=t.length;++r0)){if(o/=h,h<0){if(o0){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(o0)){if(o/=p,p<0){if(o0){if(o>l)return;o>s&&(s=o)}if(o=i-f,p||!(o<0)){if(o/=p,p<0){if(o>l)return;o>s&&(s=o)}else if(p>0){if(o0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*p]),l<1&&(t[1]=[c+l*h,f+l*p]),!0)}}}}}function o(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],p=s[0],v=s[1],d=(l+p)/2,g=(h+v)/2;if(v===h){if(d=r)return;if(l>p){if(c){if(c[1]>=i)return}else c=[d,e];o=[d,i]}else{if(c){if(c[1]1)if(l>p){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]u.f||Math.abs(a[0][1]-a[1][1])>u.f)||delete u.e[c]};var u=e(49)},function(t,n,e){var r={compactBox:e(516),dendrogram:e(518),indented:e(520),mindmap:e(522)};t.exports=r},function(t,n,e){var r=e(194),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],u=i[0];t.exports=function(t,n,e){var a=n.direction||u;if(n.isHorizontal=function(t){return o.indexOf(t)>-1}(a),a&&-1===i.indexOf(a))throw new TypeError("Invalid direction: "+a);if(a===i[0])e(t,n);else if(a===i[1])e(t,n),t.right2left();else if(a===i[2])e(t,n);else if(a===i[3])e(t,n),t.bottom2top();else if(a===i[4]||a===i[5]){var c=r(t,n),f=c.left,s=c.right;e(f,n),e(s,n),n.isHorizontal?f.right2left():f.bottom2top(),s.translate(f.x-s.x,f.y-s.y),t.x=f.x,t.y=s.y;var l=t.getBoundingBox();n.isHorizontal?l.top<0&&t.translate(0,-l.top):l.left<0&&t.translate(-l.left,0)}return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,n,e){"use strict";function r(){y.point=o}function i(){u(a,c)}function o(t,n){y.point=u,a=t,c=n,t*=p.r,n*=p.r,f=t,s=Object(p.g)(n=n/2+p.q),l=Object(p.t)(n)}function u(t,n){t*=p.r,n=(n*=p.r)/2+p.q;var e=t-f,r=e>=0?1:-1,i=r*e,o=Object(p.g)(n),u=Object(p.t)(n),a=l*u,c=s*o+a*Object(p.g)(i),h=a*r*Object(p.t)(i);g.add(Object(p.e)(h,c)),f=t,s=o,l=u}e.d(n,"a",function(){return g}),e.d(n,"b",function(){return y});var a,c,f,s,l,h=e(29),p=e(4),v=e(20),d=e(22),g=Object(h.a)(),b=Object(h.a)(),y={point:v.a,lineStart:v.a,lineEnd:v.a,polygonStart:function(){g.reset(),y.lineStart=r,y.lineEnd=i},polygonEnd:function(){var t=+g;b.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=v.a},sphere:function(){b.add(p.w)}};n.c=function(t){return b.reset(),Object(d.a)(t,y),2*b}},function(t,n,e){"use strict";function r(t,n,e,r,u,c){if(e){var f=Object(a.g)(n),s=Object(a.t)(n),l=r*e;null==u?(u=n+r*a.w,c=n-l/2):(u=i(f,u),c=i(f,c),(r>0?uc)&&(u+=r*a.w));for(var h,p=u;r>0?p>c:p1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}},function(t,n,e){"use strict";function r(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0;--c)a.point((p=h[c])[0],p[1]);else u(d.x,d.p.x,-1,a);d=d.p}h=(d=d.o).z,g=!g}while(!d.v);a.lineEnd()}}}},function(t,n,e){"use strict";var r=e(4);n.a=function(t,n){return Object(r.a)(t[0]-n[0])>>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>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}},function(t,n,e){"use strict";function r(t,n){return[t,n]}n.b=r,n.a=function(t,n){null==n&&(n=r);for(var e=0,i=t.length-1,o=t[0],u=new Array(i<0?0:i);e1)return f/(u-1)}},function(t,n,e){"use strict";n.a=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u=e)for(r=i=e;++ue&&(r=e),i=e)for(r=i=e;++ue&&(r=e),i=0?(c>=i?10:c>=o?5:c>=u?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(c>=i?10:c>=o?5:c>=u?2:1)}n.b=r,n.c=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),c=r/a;return c>=i?a*=10:c>=o?a*=5:c>=u&&(a*=2),n0)return[t];if((i=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),u=new Array(o=Math.ceil(n-t+1));++c=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}},function(t,n,e){"use strict";function r(t){return t.length}var i=e(119);n.a=function(t){if(!(u=t.length))return[];for(var n=-1,e=Object(i.a)(t,r),o=new Array(e);++n=0?1:-1,T=M*E,S=T>o.o,k=b*w;if(u.add(Object(o.e)(k*M*Object(o.t)(T),y*x+k*Object(o.g)(T))),c+=S?E+M*o.w:E,S^d>=e^_>=e){var C=Object(i.c)(Object(i.a)(v),Object(i.a)(O));Object(i.e)(C);var P=Object(i.c)(a,C);Object(i.e)(P);var N=(S^E>=0?-1:1)*Object(o.c)(P[2]);(r>N||r===N&&(C[0]||C[1]))&&(f+=S^E>=0?1:-1)}}return(c<-o.i||cu&&(u=t),na&&(a=n)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,o],[u,a]];return u=a=-(o=i=1/0),t}};n.a=c},function(t,n,e){"use strict";var r=e(68);n.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,n,e){"use strict";function r(t){return t.length>1}function i(t,n){return((t=t.x)[0]<0?t[1]-a.l-a.i:a.l-t[1])-((n=n.x)[0]<0?n[1]-a.l-a.i:a.l-n[1])}var o=e(106),u=e(107),a=e(4),c=e(121),f=e(14);n.a=function(t,n,e,a){return function(s,l){function h(n,e){var r=s(n,e);t(n=r[0],e=r[1])&&l.point(n,e)}function p(t,n){var e=s(t,n);m.point(e[0],e[1])}function v(){T.point=p,m.lineStart()}function d(){T.point=h,m.lineEnd()}function g(t,n){_.push([t,n]);var e=s(t,n);E.point(e[0],e[1])}function b(){E.lineStart(),_=[]}function y(){g(_[0][0],_[0][1]),E.lineEnd();var t,n,e,i,o=E.clean(),u=x.result(),a=u.length;if(_.pop(),j.push(_),_=null,a)if(1&o){if(e=u[0],(n=e.length-1)>0){for(M||(l.polygonStart(),M=!0),l.lineStart(),t=0;t1&&2&o&&u.push(u.pop().concat(u.shift())),O.push(u.filter(r))}var j,O,_,m=n(l),w=s.invert(a[0],a[1]),x=Object(o.a)(),E=n(x),M=!1,T={point:h,lineStart:v,lineEnd:d,polygonStart:function(){T.point=g,T.lineStart=b,T.lineEnd=y,O=[],j=[]},polygonEnd:function(){T.point=h,T.lineStart=v,T.lineEnd=d,O=Object(f.merge)(O);var t=Object(c.a)(j,w);O.length?(M||(l.polygonStart(),M=!0),Object(u.a)(O,i,t,e,l)):t&&(M||(l.polygonStart(),M=!0),l.lineStart(),e(null,null,1,l),l.lineEnd()),M&&(l.polygonEnd(),M=!1),O=j=null},sphere:function(){l.polygonStart(),l.lineStart(),e(null,null,1,l),l.lineEnd(),l.polygonEnd()}};return T}}},function(t,n,e){"use strict";function r(t,n){return[t,n]}n.b=r;var i=e(17);r.invert=r,n.a=function(){return Object(i.a)(r).scale(152.63)}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(240);e.d(n,"geoAiry",function(){return r.b}),e.d(n,"geoAiryRaw",function(){return r.a});var i=e(129);e.d(n,"geoAitoff",function(){return i.b}),e.d(n,"geoAitoffRaw",function(){return i.a});var o=e(241);e.d(n,"geoArmadillo",function(){return o.b}),e.d(n,"geoArmadilloRaw",function(){return o.a});var u=e(130);e.d(n,"geoAugust",function(){return u.b}),e.d(n,"geoAugustRaw",function(){return u.a});var a=e(242);e.d(n,"geoBaker",function(){return a.b}),e.d(n,"geoBakerRaw",function(){return a.a});var c=e(243);e.d(n,"geoBerghaus",function(){return c.b}),e.d(n,"geoBerghausRaw",function(){return c.a});var f=e(131);e.d(n,"geoBoggs",function(){return f.b}),e.d(n,"geoBoggsRaw",function(){return f.a});var s=e(244);e.d(n,"geoBonne",function(){return s.b}),e.d(n,"geoBonneRaw",function(){return s.a});var l=e(245);e.d(n,"geoBottomley",function(){return l.b}),e.d(n,"geoBottomleyRaw",function(){return l.a});var h=e(246);e.d(n,"geoBromley",function(){return h.b}),e.d(n,"geoBromleyRaw",function(){return h.a});var p=e(247);e.d(n,"geoChamberlin",function(){return p.c}),e.d(n,"geoChamberlinRaw",function(){return p.b}),e.d(n,"geoChamberlinAfrica",function(){return p.a});var v=e(72);e.d(n,"geoCollignon",function(){return v.b}),e.d(n,"geoCollignonRaw",function(){return v.a});var d=e(248);e.d(n,"geoCraig",function(){return d.b}),e.d(n,"geoCraigRaw",function(){return d.a});var g=e(249);e.d(n,"geoCraster",function(){return g.b}),e.d(n,"geoCrasterRaw",function(){return g.a});var b=e(132);e.d(n,"geoCylindricalEqualArea",function(){return b.b}),e.d(n,"geoCylindricalEqualAreaRaw",function(){return b.a});var y=e(250);e.d(n,"geoCylindricalStereographic",function(){return y.b}),e.d(n,"geoCylindricalStereographicRaw",function(){return y.a});var j=e(251);e.d(n,"geoEckert1",function(){return j.a}),e.d(n,"geoEckert1Raw",function(){return j.b});var O=e(252);e.d(n,"geoEckert2",function(){return O.a}),e.d(n,"geoEckert2Raw",function(){return O.b});var _=e(253);e.d(n,"geoEckert3",function(){return _.a}),e.d(n,"geoEckert3Raw",function(){return _.b});var m=e(254);e.d(n,"geoEckert4",function(){return m.a}),e.d(n,"geoEckert4Raw",function(){return m.b});var w=e(255);e.d(n,"geoEckert5",function(){return w.a}),e.d(n,"geoEckert5Raw",function(){return w.b});var x=e(256);e.d(n,"geoEckert6",function(){return x.a}),e.d(n,"geoEckert6Raw",function(){return x.b});var E=e(257);e.d(n,"geoEisenlohr",function(){return E.a}),e.d(n,"geoEisenlohrRaw",function(){return E.b});var M=e(258);e.d(n,"geoFahey",function(){return M.a}),e.d(n,"geoFaheyRaw",function(){return M.b});var T=e(259);e.d(n,"geoFoucaut",function(){return T.a}),e.d(n,"geoFoucautRaw",function(){return T.b});var S=e(260);e.d(n,"geoGilbert",function(){return S.a});var k=e(261);e.d(n,"geoGingery",function(){return k.a}),e.d(n,"geoGingeryRaw",function(){return k.b});var C=e(262);e.d(n,"geoGinzburg4",function(){return C.a}),e.d(n,"geoGinzburg4Raw",function(){return C.b});var P=e(263);e.d(n,"geoGinzburg5",function(){return P.a}),e.d(n,"geoGinzburg5Raw",function(){return P.b});var N=e(264);e.d(n,"geoGinzburg6",function(){return N.a}),e.d(n,"geoGinzburg6Raw",function(){return N.b});var R=e(265);e.d(n,"geoGinzburg8",function(){return R.a}),e.d(n,"geoGinzburg8Raw",function(){return R.b});var B=e(266);e.d(n,"geoGinzburg9",function(){return B.a}),e.d(n,"geoGinzburg9Raw",function(){return B.b});var A=e(133);e.d(n,"geoGringorten",function(){return A.a}),e.d(n,"geoGringortenRaw",function(){return A.b});var I=e(135);e.d(n,"geoGuyou",function(){return I.a}),e.d(n,"geoGuyouRaw",function(){return I.b});var L=e(268);e.d(n,"geoHammer",function(){return L.a}),e.d(n,"geoHammerRaw",function(){return L.b});var z=e(269);e.d(n,"geoHammerRetroazimuthal",function(){return z.a}),e.d(n,"geoHammerRetroazimuthalRaw",function(){return z.b});var q=e(270);e.d(n,"geoHealpix",function(){return q.a}),e.d(n,"geoHealpixRaw",function(){return q.b});var F=e(271);e.d(n,"geoHill",function(){return F.a}),e.d(n,"geoHillRaw",function(){return F.b});var D=e(136);e.d(n,"geoHomolosine",function(){return D.a}),e.d(n,"geoHomolosineRaw",function(){return D.b});var G=e(23);e.d(n,"geoInterrupt",function(){return G.a});var H=e(272);e.d(n,"geoInterruptedBoggs",function(){return H.a});var U=e(273);e.d(n,"geoInterruptedHomolosine",function(){return U.a});var V=e(274);e.d(n,"geoInterruptedMollweide",function(){return V.a});var W=e(275);e.d(n,"geoInterruptedMollweideHemispheres",function(){return W.a});var Y=e(276);e.d(n,"geoInterruptedSinuMollweide",function(){return Y.a});var $=e(277);e.d(n,"geoInterruptedSinusoidal",function(){return $.a});var J=e(278);e.d(n,"geoKavrayskiy7",function(){return J.a}),e.d(n,"geoKavrayskiy7Raw",function(){return J.b});var K=e(279);e.d(n,"geoLagrange",function(){return K.a}),e.d(n,"geoLagrangeRaw",function(){return K.b});var X=e(280);e.d(n,"geoLarrivee",function(){return X.a}),e.d(n,"geoLarriveeRaw",function(){return X.b});var Z=e(281);e.d(n,"geoLaskowski",function(){return Z.a}),e.d(n,"geoLaskowskiRaw",function(){return Z.b});var Q=e(282);e.d(n,"geoLittrow",function(){return Q.a}),e.d(n,"geoLittrowRaw",function(){return Q.b});var tt=e(283);e.d(n,"geoLoximuthal",function(){return tt.a}),e.d(n,"geoLoximuthalRaw",function(){return tt.b});var nt=e(284);e.d(n,"geoMiller",function(){return nt.a}),e.d(n,"geoMillerRaw",function(){return nt.b});var et=e(285);e.d(n,"geoModifiedStereographic",function(){return et.a}),e.d(n,"geoModifiedStereographicRaw",function(){return et.g}),e.d(n,"geoModifiedStereographicAlaska",function(){return et.b}),e.d(n,"geoModifiedStereographicGs48",function(){return et.c}),e.d(n,"geoModifiedStereographicGs50",function(){return et.d}),e.d(n,"geoModifiedStereographicMiller",function(){return et.f}),e.d(n,"geoModifiedStereographicLee",function(){return et.e});var rt=e(21);e.d(n,"geoMollweide",function(){return rt.a}),e.d(n,"geoMollweideRaw",function(){return rt.d});var it=e(286);e.d(n,"geoMtFlatPolarParabolic",function(){return it.a}),e.d(n,"geoMtFlatPolarParabolicRaw",function(){return it.b});var ot=e(287);e.d(n,"geoMtFlatPolarQuartic",function(){return ot.a}),e.d(n,"geoMtFlatPolarQuarticRaw",function(){return ot.b});var ut=e(288);e.d(n,"geoMtFlatPolarSinusoidal",function(){return ut.a}),e.d(n,"geoMtFlatPolarSinusoidalRaw",function(){return ut.b});var at=e(289);e.d(n,"geoNaturalEarth",function(){return at.a}),e.d(n,"geoNaturalEarthRaw",function(){return at.b});var ct=e(290);e.d(n,"geoNaturalEarth2",function(){return ct.a}),e.d(n,"geoNaturalEarth2Raw",function(){return ct.b});var ft=e(291);e.d(n,"geoNellHammer",function(){return ft.a}),e.d(n,"geoNellHammerRaw",function(){return ft.b});var st=e(292);e.d(n,"geoPatterson",function(){return st.a}),e.d(n,"geoPattersonRaw",function(){return st.b});var lt=e(293);e.d(n,"geoPolyconic",function(){return lt.a}),e.d(n,"geoPolyconicRaw",function(){return lt.b});var ht=e(53);e.d(n,"geoPolyhedral",function(){return ht.a});var pt=e(295);e.d(n,"geoPolyhedralButterfly",function(){return pt.a});var vt=e(296);e.d(n,"geoPolyhedralCollignon",function(){return vt.a});var dt=e(297);e.d(n,"geoPolyhedralWaterman",function(){return dt.a});var gt=e(298);e.d(n,"geoProject",function(){return gt.a});var bt=e(302);e.d(n,"geoGringortenQuincuncial",function(){return bt.a});var yt=e(137);e.d(n,"geoPeirceQuincuncial",function(){return yt.a}),e.d(n,"geoPierceQuincuncial",function(){return yt.a});var jt=e(303);e.d(n,"geoQuantize",function(){return jt.a});var Ot=e(75);e.d(n,"geoQuincuncial",function(){return Ot.a});var _t=e(304);e.d(n,"geoRectangularPolyconic",function(){return _t.a}),e.d(n,"geoRectangularPolyconicRaw",function(){return _t.b});var mt=e(305);e.d(n,"geoRobinson",function(){return mt.a}),e.d(n,"geoRobinsonRaw",function(){return mt.b});var wt=e(306);e.d(n,"geoSatellite",function(){return wt.a}),e.d(n,"geoSatelliteRaw",function(){return wt.b});var xt=e(73);e.d(n,"geoSinuMollweide",function(){return xt.a}),e.d(n,"geoSinuMollweideRaw",function(){return xt.c});var Et=e(38);e.d(n,"geoSinusoidal",function(){return Et.a}),e.d(n,"geoSinusoidalRaw",function(){return Et.b});var Mt=e(307);e.d(n,"geoStitch",function(){return Mt.a});var Tt=e(308);e.d(n,"geoTimes",function(){return Tt.a}),e.d(n,"geoTimesRaw",function(){return Tt.b});var St=e(309);e.d(n,"geoTwoPointAzimuthal",function(){return St.a}),e.d(n,"geoTwoPointAzimuthalRaw",function(){return St.b}),e.d(n,"geoTwoPointAzimuthalUsa",function(){return St.c});var kt=e(310);e.d(n,"geoTwoPointEquidistant",function(){return kt.a}),e.d(n,"geoTwoPointEquidistantRaw",function(){return kt.b}),e.d(n,"geoTwoPointEquidistantUsa",function(){return kt.c});var Ct=e(311);e.d(n,"geoVanDerGrinten",function(){return Ct.a}),e.d(n,"geoVanDerGrintenRaw",function(){return Ct.b});var Pt=e(312);e.d(n,"geoVanDerGrinten2",function(){return Pt.a}),e.d(n,"geoVanDerGrinten2Raw",function(){return Pt.b});var Nt=e(313);e.d(n,"geoVanDerGrinten3",function(){return Nt.a}),e.d(n,"geoVanDerGrinten3Raw",function(){return Nt.b});var Rt=e(314);e.d(n,"geoVanDerGrinten4",function(){return Rt.a}),e.d(n,"geoVanDerGrinten4Raw",function(){return Rt.b});var Bt=e(315);e.d(n,"geoWagner4",function(){return Bt.a}),e.d(n,"geoWagner4Raw",function(){return Bt.b});var At=e(316);e.d(n,"geoWagner6",function(){return At.a}),e.d(n,"geoWagner6Raw",function(){return At.b});var It=e(317);e.d(n,"geoWagner7",function(){return It.a}),e.d(n,"geoWagner7Raw",function(){return It.b});var Lt=e(318);e.d(n,"geoWiechel",function(){return Lt.a}),e.d(n,"geoWiechelRaw",function(){return Lt.b});var zt=e(319);e.d(n,"geoWinkel3",function(){return zt.a}),e.d(n,"geoWinkel3Raw",function(){return zt.b})},function(t,n,e){"use strict";function r(t,n){var e=Object(o.h)(n),r=Object(o.z)(Object(o.b)(e*Object(o.h)(t/=2)));return[2*e*Object(o.y)(t)*r,Object(o.y)(n)*r]}n.a=r;var i=e(0),o=e(1);r.invert=function(t,n){if(!(t*t+4*n*n>o.s*o.s+o.k)){var e=t,r=n,i=25;do{var u,a=Object(o.y)(e),c=Object(o.y)(e/2),f=Object(o.h)(e/2),s=Object(o.y)(r),l=Object(o.h)(r),h=Object(o.y)(2*r),p=s*s,v=l*l,d=c*c,g=1-v*f*f,b=g?Object(o.b)(l*f)*Object(o.B)(u=1/g):u=0,y=2*b*l*c-t,j=b*s-n,O=u*(v*d+b*l*f*p),_=u*(.5*a*h-2*b*s*c),m=.25*u*(h*c-b*s*v*a),w=u*(p*f+b*d*l),x=_*m-w*O;if(!x)break;var E=(j*_-y*w)/x,M=(y*m-j*O)/x;e-=E,r-=M}while((Object(o.a)(E)>o.k||Object(o.a)(M)>o.k)&&--i>0);return[e,r]}},n.b=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.F)(n/2),r=Object(o.B)(1-e*e),i=1+r*Object(o.h)(t/=2),u=Object(o.y)(t)*r/i,a=e/i,c=u*u,f=a*a;return[4/3*u*(3+c-3*f),4/3*a*(3+3*c-f)]}n.a=r;var i=e(0),o=e(1);r.invert=function(t,n){if(t*=3/8,n*=3/8,!t&&Object(o.a)(n)>1)return null;var e=1+t*t+n*n,r=Object(o.B)((e-Object(o.B)(e*e-4*n*n))/2),i=Object(o.e)(r)/3,u=r?Object(o.c)(Object(o.a)(n/r))/3:Object(o.d)(Object(o.a)(t))/3,a=Object(o.h)(i),c=Object(o.i)(u),f=c*c-a*a;return[2*Object(o.x)(t)*Object(o.g)(Object(o.A)(u)*a,.25-f),2*Object(o.x)(n)*Object(o.g)(c*Object(o.y)(i),.25+f)]},n.b=function(){return Object(i.geoProjection)(r).scale(66.1603)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.c)(u.s,n);return[a*t/(1/Object(u.h)(n)+c/Object(u.h)(e)),(n+u.D*Object(u.y)(e))/a]}n.a=r;var i=e(0),o=e(21),u=e(1),a=2.00276,c=1.11072;r.invert=function(t,n){var e,r,i=a*n,o=n<0?-u.u:u.u,f=25;do{r=i-u.D*Object(u.y)(o),o-=e=(Object(u.y)(2*o)+2*o-u.s*Object(u.y)(r))/(2*Object(u.h)(2*o)+2+u.s*Object(u.h)(r)*u.D*Object(u.h)(o))}while(Object(u.a)(e)>u.k&&--f>0);return r=i-u.D*Object(u.y)(o),[t*(1/Object(u.h)(r)+c/Object(u.h)(o))/a,r]},n.b=function(){return Object(i.geoProjection)(r).scale(160.857)}},function(t,n,e){"use strict";function r(t){function n(t,n){return[t*e,Object(i.y)(n)/e]}var e=Object(i.h)(t);return n.invert=function(t,n){return[t/e,Object(i.e)(n*e)]},n}n.a=r;var i=e(1),o=e(31);n.b=function(){return Object(o.a)(r).parallel(38.58).scale(195.044)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.x)(t),r=Object(o.x)(n),i=Object(o.h)(n),u=Object(o.h)(t)*i,a=Object(o.y)(t)*i,c=Object(o.y)(r*n);t=Object(o.a)(Object(o.g)(a,c)),n=Object(o.e)(u),Object(o.a)(t-o.o)>o.k&&(t%=o.o);var f=function(t,n){if(n===o.o)return[0,0];var e,r,i=Object(o.y)(n),u=i*i,a=u*u,c=1+a,f=1+3*a,s=1-a,l=Object(o.e)(1/Object(o.B)(c)),h=s+u*c*l,p=(1-i)/h,v=Object(o.B)(p),d=p*c,g=Object(o.B)(d),b=v*s;if(0===t)return[0,-(b+u*g)];var y,j=Object(o.h)(n),O=1/j,_=2*i*j,m=(-h*j-(-3*u+l*f)*_*(1-i))/(h*h),w=-O*_,x=-O*(u*c*m+p*f*_),E=-2*O*(s*(.5*m/v)-2*u*v*_),M=4*t/o.s;if(t>.222*o.s||n.175*o.s){if(e=(b+u*Object(o.B)(d*(1+a)-b*b))/(1+a),t>o.s/4)return[e,e];var T=e,S=.5*e;e=.5*(S+T),r=50;do{var k=Object(o.B)(d-e*e),C=e*(E+w*k)+x*Object(o.e)(e/g)-M;if(!C)break;C<0?S=e:T=e,e=.5*(S+T)}while(Object(o.a)(T-S)>o.k&&--r>0)}else{e=o.k,r=25;do{var P=e*e,N=Object(o.B)(d-P),R=E+w*N,B=e*R+x*Object(o.e)(e/g)-M;e-=y=N?B/(R+(x-w*P)/N):0}while(Object(o.a)(y)>o.k&&--r>0)}return[e,-b-u*Object(o.B)(d-e*e)]}(t>o.s/4?o.o-t:t,n);return t>o.s/4&&(c=f[0],f[0]=-f[1],f[1]=-c),f[0]*=e,f[1]*=-r,f}n.b=r;var i=e(0),o=e(1),u=e(134);r.invert=function(t,n){Object(o.a)(t)>1&&(t=2*Object(o.x)(t)-t),Object(o.a)(n)>1&&(n=2*Object(o.x)(n)-n);var e=Object(o.x)(t),r=Object(o.x)(n),i=-e*t,u=-r*n,a=u/i<1,c=function(t,n){for(var e=0,r=1,i=.5,u=50;;){var a=i*i,c=Object(o.B)(i),f=Object(o.e)(1/Object(o.B)(1+a)),s=1-a+i*(1+a)*f,l=(1-c)/s,h=Object(o.B)(l),p=l*(1+a),v=h*(1-a),d=p-t*t,g=Object(o.B)(d),b=n+v+i*g;if(Object(o.a)(r-e)0?e=i:r=i,i=.5*(e+r)}if(!u)return null;var y=Object(o.e)(c),j=Object(o.h)(y),O=1/j,_=2*c*j,m=(-s*j-(-3*i+f*(1+3*a))*_*(1-c))/(s*s),w=-2*O*(.5*m/h*(1-a)-2*i*h*_),x=-O*_,E=-O*(i*(1+a)*m+l*(1+3*a)*_);return[o.s/4*(t*(w+x*g)+E*Object(o.e)(t/Object(o.B)(p))),y]}(a?u:i,a?i:u),f=c[0],s=c[1],l=Object(o.h)(s);return a&&(f=-o.o-f),[e*(Object(o.g)(Object(o.y)(f)*l,-Object(o.y)(s))+o.s),r*Object(o.e)(Object(o.h)(f)*l)]},n.a=function(){return Object(i.geoProjection)(Object(u.a)(r)).scale(239.75)}},function(t,n,e){"use strict";var r=e(1);n.a=function(t){function n(n,i){var o=n>0?-.5:.5,u=t(n+o*r.s,i);return u[0]-=o*e,u}var e=t(r.o,0)[0]-t(-r.o,0)[0];return t.invert&&(n.invert=function(n,i){var o=n>0?-.5:.5,u=t.invert(n+o*e,i),a=u[0]-o*r.s;return a<-r.s?a+=2*r.s:a>r.s&&(a-=2*r.s),u[0]=a,u}),n}},function(t,n,e){"use strict";function r(t,n){var e=(u.D-1)/(u.D+1),r=Object(u.B)(1-e*e),i=Object(o.a)(u.o,r*r),a=Object(u.p)(Object(u.F)(u.s/4+Object(u.a)(n)/2)),c=Object(u.m)(-1*a)/Object(u.B)(e),f=function(t,n){var e=t*t,r=n+1,i=1-e-n*n;return[.5*((t>=0?u.o:-u.o)-Object(u.g)(i,2*t)),-.25*Object(u.p)(i*i+4*e)+.5*Object(u.p)(r*r+e)]}(c*Object(u.h)(-1*t),c*Object(u.y)(-1*t)),s=Object(o.b)(f[0],f[1],r*r);return[-s[1],(n>=0?1:-1)*(.5*i-s[0])]}n.b=r;var i=e(0),o=e(267),u=e(1),a=e(134);r.invert=function(t,n){var e=(u.D-1)/(u.D+1),r=Object(u.B)(1-e*e),i=Object(o.a)(u.o,r*r),a=Object(o.c)(.5*i-n,-t,r*r),c=function(t,n){var e=n[0]*n[0]+n[1]*n[1];return[(t[0]*n[0]+t[1]*n[1])/e,(t[1]*n[0]-t[0]*n[1])/e]}(a[0],a[1]);return[Object(u.g)(c[1],c[0])/-1,2*Object(u.f)(Object(u.m)(-.5*Object(u.p)(e*c[0]*c[0]+e*c[1]*c[1])))-u.o]},n.a=function(){return Object(i.geoProjection)(Object(a.a)(r)).scale(151.496)}},function(t,n,e){"use strict";function r(t,n){return Object(o.a)(n)>c.b?(t=Object(u.d)(t,n),t[1]-=n>0?c.d:-c.d,t):Object(a.b)(t,n)}n.b=r;var i=e(0),o=e(1),u=e(21),a=e(38),c=e(73);r.invert=function(t,n){return Object(o.a)(n)>c.b?u.d.invert(t,n+(n>0?c.d:-c.d)):a.b.invert(t,n)},n.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){"use strict";var r=e(135),i=e(75);n.a=function(){return Object(i.a)(r.b).scale(111.48)}},function(t,n,e){"use strict";var r=e(0),i=e(1);n.a=function(t,n,e){var o=Object(r.geoInterpolate)(n,e),u=o(.5),a=Object(r.geoRotation)([-u[0],-u[1]])(n),c=o.distance/2,f=-Object(i.e)(Object(i.y)(a[1]*i.v)/Object(i.y)(c)),s=[-u[0],-u[1],-(a[0]>0?i.s-f:f)*i.j],l=Object(r.geoProjection)(t(c)).rotate(s),h=Object(r.geoRotation)(s),p=l.center;return delete l.rotate,l.center=function(t){return arguments.length?p(h(t)):h.invert(p())},l.clipAngle(90)}},function(t,n,e){var r;!function(n){"use strict";function i(){}function o(t,n){for(var e=t.length;e--;)if(t[e].listener===n)return e;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}function a(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&a(t.listener)}var c=i.prototype,f=n.EventEmitter;c.getListeners=function(t){var n,e,r=this._getEvents();if(t instanceof RegExp){n={};for(e in r)r.hasOwnProperty(e)&&t.test(e)&&(n[e]=r[e])}else n=r[t]||(r[t]=[]);return n},c.flattenListeners=function(t){var n,e=[];for(n=0;n=0?1:-1,i=r*e,o=Object(p.g)(n),u=Object(p.t)(n),a=l*u,c=s*o+a*Object(p.g)(i),h=a*r*Object(p.t)(i);g.add(Object(p.e)(h,c)),f=t,s=o,l=u}e.d(n,"a",function(){return g}),e.d(n,"b",function(){return y});var a,c,f,s,l,h=e(42),p=e(5),v=e(25),d=e(26),g=Object(h.a)(),b=Object(h.a)(),y={point:v.a,lineStart:v.a,lineEnd:v.a,polygonStart:function(){g.reset(),y.lineStart=r,y.lineEnd=i},polygonEnd:function(){var t=+g;b.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=v.a},sphere:function(){b.add(p.w)}};n.c=function(t){return b.reset(),Object(d.a)(t,y),2*b}},function(t,n,e){"use strict";function r(t,n,e,r,u,c){if(e){var f=Object(a.g)(n),s=Object(a.t)(n),l=r*e;null==u?(u=n+r*a.w,c=n-l/2):(u=i(f,u),c=i(f,c),(r>0?uc)&&(u+=r*a.w));for(var h,p=u;r>0?p>c:p0)do{a.point(0===c||3===c?t:e,c>1?r:n)}while((c=(c+u+4)%4)!==f);else a.point(o[0],o[1])}function p(r,o){return Object(i.a)(r[0]-t)0?0:3:Object(i.a)(r[0]-e)0?2:1:Object(i.a)(r[1]-n)0?1:0:o>0?3:2}function v(t,n){return d(t.x,n.x)}function d(t,n){var e=p(t,1),r=p(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(i){function p(t,n){l(t,n)&&T.point(t,n)}function d(i,o){var a=l(i,o);if(b&&y.push([i,o]),E)j=i,O=o,_=a,E=!1,a&&(T.lineStart(),T.point(i,o));else if(a&&x)T.point(i,o);else{var c=[m=Math.max(s,Math.min(f,m)),w=Math.max(s,Math.min(f,w))],h=[i=Math.max(s,Math.min(f,i)),o=Math.max(s,Math.min(f,o))];Object(u.a)(c,h,t,n,e,r)?(x||(T.lineStart(),T.point(c[0],c[1])),T.point(h[0],h[1]),a||T.lineEnd(),M=!1):a&&(T.lineStart(),T.point(i,o),M=!1)}m=i,w=o,x=a}var g,b,y,j,O,_,m,w,x,E,M,T=i,S=Object(o.a)(),k={point:p,lineStart:function(){k.point=d,b&&b.push(y=[]),E=!0,x=!1,m=w=NaN},lineEnd:function(){g&&(d(j,O),_&&x&&S.rejoin(),g.push(S.result())),k.point=p,x&&T.lineEnd()},polygonStart:function(){T=S,g=[],b=[],M=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=b.length;er&&(l-o)*(r-u)>(h-u)*(t-o)&&++n:h<=r&&(l-o)*(r-u)<(h-u)*(t-o)&&--n;return n}(),e=M&&n,o=(g=Object(c.merge)(g)).length;(e||o)&&(i.polygonStart(),e&&(i.lineStart(),h(null,null,1,i),i.lineEnd()),o&&Object(a.a)(g,v,n,h,i),i.polygonEnd()),T=i,g=b=y=null}};return k}}n.a=r;var i=e(5),o=e(146),u=e(327),a=e(147),c=e(14),f=1e9,s=-f;n.b=function(){var t,n,e,i=0,o=0,u=960,a=500;return e={stream:function(e){return t&&n===e?t:t=r(i,o,u,a)(n=e)},extent:function(r){return arguments.length?(i=+r[0][0],o=+r[0][1],u=+r[1][0],a=+r[1][1],t=n=null,e):[[i,o],[u,a]]}}}},function(t,n,e){"use strict";var r=e(25);n.a=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:r.a,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}},function(t,n,e){"use strict";function r(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function i(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0;--c)a.point((p=h[c])[0],p[1]);else u(d.x,d.p.x,-1,a);d=d.p}h=(d=d.o).z,g=!g}while(!d.v);a.lineEnd()}}}},function(t,n,e){"use strict";var r=e(5);n.a=function(t,n){return Object(r.a)(t[0]-n[0])u&&(u=t),na&&(a=n)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,o],[u,a]];return u=a=-(o=i=1/0),t}};n.a=c},function(t,n,e){"use strict";var r=e(79);n.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,n,e){"use strict";function r(t){return t.length>1}function i(t,n){return((t=t.x)[0]<0?t[1]-a.l-a.i:a.l-t[1])-((n=n.x)[0]<0?n[1]-a.l-a.i:a.l-n[1])}var o=e(146),u=e(147),a=e(5),c=e(337),f=e(14);n.a=function(t,n,e,a){return function(s,l){function h(n,e){var r=s(n,e);t(n=r[0],e=r[1])&&l.point(n,e)}function p(t,n){var e=s(t,n);m.point(e[0],e[1])}function v(){T.point=p,m.lineStart()}function d(){T.point=h,m.lineEnd()}function g(t,n){_.push([t,n]);var e=s(t,n);E.point(e[0],e[1])}function b(){E.lineStart(),_=[]}function y(){g(_[0][0],_[0][1]),E.lineEnd();var t,n,e,i,o=E.clean(),u=x.result(),a=u.length;if(_.pop(),j.push(_),_=null,a)if(1&o){if(e=u[0],(n=e.length-1)>0){for(M||(l.polygonStart(),M=!0),l.lineStart(),t=0;t1&&2&o&&u.push(u.pop().concat(u.shift())),O.push(u.filter(r))}var j,O,_,m=n(l),w=s.invert(a[0],a[1]),x=Object(o.a)(),E=n(x),M=!1,T={point:h,lineStart:v,lineEnd:d,polygonStart:function(){T.point=g,T.lineStart=b,T.lineEnd=y,O=[],j=[]},polygonEnd:function(){T.point=h,T.lineStart=v,T.lineEnd=d,O=Object(f.merge)(O);var t=Object(c.a)(j,w);O.length?(M||(l.polygonStart(),M=!0),Object(u.a)(O,i,t,e,l)):t&&(M||(l.polygonStart(),M=!0),l.lineStart(),e(null,null,1,l),l.lineEnd()),M&&(l.polygonEnd(),M=!1),O=j=null},sphere:function(){l.polygonStart(),l.lineStart(),e(null,null,1,l),l.lineEnd(),l.polygonEnd()}};return T}}},function(t,n,e){"use strict";function r(t,n,e){var r=n[1][0]-n[0][0],u=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),Object(i.a)(e,t.stream(o.a));var c=o.a.result(),f=Math.min(r/(c[1][0]-c[0][0]),u/(c[1][1]-c[0][1])),s=+n[0][0]+(r-f*(c[1][0]+c[0][0]))/2,l=+n[0][1]+(u-f*(c[1][1]+c[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*f).translate([s,l])}n.b=function(t){return function(n,e){return r(t,[[0,0],n],e)}},n.a=function(t){return function(n,e){return r(t,n,e)}};var i=e(26),o=e(151)},function(t,n,e){"use strict";function r(t,n){return[t,n]}n.b=r;var i=e(18);r.invert=r,n.a=function(){return Object(i.a)(r).scale(152.63)}},function(t,n,e){var r=e(6);t.exports=function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(n))for(var i=0;i=t){p=(o-t)/(o-r[2]);return{length:o,pos:v=[e[0]*(1-p)+r[0]*p,e[1]*(1-p)+r[1]*p]}}r[0]=e[0],r[1]=e[1],r[2]=o}}else if("Q"===a[0]){r[0]=e[0],r[1]=e[1],r[2]=o;for(var c=100,f=0;f<=c;f++){var h=f/c,s=function(t,n){return Math.pow(1-n,2)*e[0]+2*(1-n)*n*t[1]+Math.pow(n,2)*t[3]}(a,h),l=function(t,n){return Math.pow(1-n,2)*e[1]+2*(1-n)*n*t[2]+Math.pow(n,2)*t[4]}(a,h);if(o+=i(e[0],e[1],s,l),e[0]=s,e[1]=l,"number"==typeof t&&o>=t){p=(o-t)/(o-r[2]);return{length:o,pos:v=[e[0]*(1-p)+r[0]*p,e[1]*(1-p)+r[1]*p]}}r[0]=e[0],r[1]=e[1],r[2]=o}}else if("L"===a[0]){if(r[0]=e[0],r[1]=e[1],r[2]=o,o+=i(e[0],e[1],a[1],a[2]),e[0]=a[1],e[1]=a[2],"number"==typeof t&&o>=t){var p=(o-t)/(o-r[2]),v=[e[0]*(1-p)+r[0]*p,e[1]*(1-p)+r[1]*p];return{length:o,pos:v}}r[0]=e[0],r[1]=e[1],r[2]=o}}return{length:o/1.045,pos:e}}},function(t,n,e){"use strict";function r(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,u=t.r+e.r,a=n.x-r,c=n.y-i,f=a*a+c*c;if(f){var s=.5+((u*=u)-(o*=o))/(2*f),l=Math.sqrt(Math.max(0,2*o*(u+f)-(u-=f)*u-o*o))/(2*f);e.x=r+s*a+l*c,e.y=i+s*c-l*a}else e.x=r+u,e.y=i}function i(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function o(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 u(t){this._=t,this.next=null,this.previous=null}function a(t){if(!(f=t.length))return 0;var n,e,a,f,s,l,h,p,v,d,g;if(n=t[0],n.x=0,n.y=0,!(f>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(f>2))return n.r+e.r;r(e,n,a=t[2]),n=new u(n),e=new u(e),a=new u(a),n.next=a.previous=e,e.next=n.previous=a,a.next=e.previous=n;t:for(h=3;h0&&e*e>r*r+i*i}function o(t,n){for(var e=0;ec&&(c=t[0]),t[1]f&&(f=t[1])}function e(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"Point":n(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(n)}}var i,o=Object(r.a)(t.transform),u=1/0,a=u,c=-u,f=-u;t.arcs.forEach(function(t){for(var n,e=-1,r=t.length;++ec&&(c=n[0]),n[1]f&&(f=n[1])});for(i in t.objects)e(t.objects[i]);return[u,a,c,f]}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";n.a=function(t,n){function e(t,n){for(var e in t){var i=t[e];delete n[i.start],delete i.start,delete i.end,i.forEach(function(t){r[t<0?~t:t]=1}),u.push(i)}}var r={},i={},o={},u=[],a=-1;return n.forEach(function(e,r){var i,o=t.arcs[e<0?~e:e];o.length<3&&!o[1][0]&&!o[1][1]&&(i=n[++a],n[a]=e,n[r]=i)}),n.forEach(function(n){var e,r,u=function(n){var e,r=t.arcs[n<0?~n:n],i=r[0];return t.transform?(e=[0,0],r.forEach(function(t){e[0]+=t[0],e[1]+=t[1]})):e=r[r.length-1],n<0?[e,i]:[i,e]}(n),a=u[0],c=u[1];if(e=o[a])if(delete o[e.end],e.push(n),e.end=c,r=i[c]){delete i[r.start];var f=r===e?e:e.concat(r);i[f.start=e.start]=o[f.end=r.end]=f}else i[e.start]=o[e.end]=e;else if(e=i[c])if(delete i[e.start],e.unshift(n),e.start=a,r=o[a]){delete o[r.end];var s=r===e?e:r.concat(e);i[s.start=r.start]=o[s.end=e.end]=s}else i[e.start]=o[e.end]=e;else i[(e=[n]).start=a]=o[e.end=c]=e}),e(o,i),e(i,o),n.forEach(function(t){r[t<0?~t:t]||u.push([t])}),u}},function(t,n,e){"use strict";var r=e(165);n.a=function(t){if(null==t)return r.a;var n,e,i=t.scale[0],o=t.scale[1],u=t.translate[0],a=t.translate[1];return function(t,r){r||(n=e=0);var c=2,f=t.length,s=new Array(f),l=Math.round((t[0]-u)/i),h=Math.round((t[1]-a)/o);for(s[0]=l-n,n=l,s[1]=h-e,e=h;c-1}},function(t,n,e){(function(t,r){var i;(function(){function o(t,n){return t.set(n[0],n[1]),t}function u(t,n){return t.add(n),t}function a(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 c(t,n){for(var e=-1,r=null==t?0:t.length;++e-1}function h(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function P(t,n){for(var e=t.length;e--&&j(n,t[e],0)>-1;);return e}function N(t){return"\\"+he[t]}function R(t){return ue.test(t)}function B(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function A(t,n){return function(e){return t(n(e))}}function I(t,n){for(var e=-1,r=t.length,i=0,o=[];++e>>1,mt=[["ary",ut],["bind",Q],["bindKey",tt],["curry",et],["curryRight",rt],["flip",ct],["partial",it],["partialRight",ot],["rearg",at]],wt="[object Arguments]",xt="[object Array]",Et="[object AsyncFunction]",Mt="[object Boolean]",Tt="[object Date]",St="[object DOMException]",kt="[object Error]",Ct="[object Function]",Pt="[object GeneratorFunction]",Nt="[object Map]",Rt="[object Number]",Bt="[object Null]",At="[object Object]",It="[object Proxy]",Lt="[object RegExp]",zt="[object Set]",qt="[object String]",Ft="[object Symbol]",Dt="[object Undefined]",Gt="[object WeakMap]",Ht="[object WeakSet]",Ut="[object ArrayBuffer]",Vt="[object DataView]",Wt="[object Float32Array]",Yt="[object Float64Array]",$t="[object Int8Array]",Jt="[object Int16Array]",Kt="[object Int32Array]",Xt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",Qt="[object Uint16Array]",tn="[object Uint32Array]",nn=/\b__p \+= '';/g,en=/\b(__p \+=) '' \+/g,rn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,on=/&(?:amp|lt|gt|quot|#39);/g,un=/[&<>"']/g,an=RegExp(on.source),cn=RegExp(un.source),fn=/<%-([\s\S]+?)%>/g,sn=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/,vn=/^\./,dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gn=/[\\^$.*+?()[\]{}|]/g,bn=RegExp(gn.source),yn=/^\s+|\s+$/g,jn=/^\s+/,On=/\s+$/,_n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mn=/\{\n\/\* \[wrapped with (.+)\] \*/,wn=/,? & /,xn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,En=/\\(\\)?/g,Mn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tn=/\w*$/,Sn=/^[-+]0x[0-9a-f]+$/i,kn=/^0b[01]+$/i,Cn=/^\[object .+?Constructor\]$/,Pn=/^0o[0-7]+$/i,Nn=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,In="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ln="\\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",zn="[\\ud800-\\udfff]",qn="["+Ln+"]",Fn="["+In+"]",Dn="\\d+",Gn="[\\u2700-\\u27bf]",Hn="[a-z\\xdf-\\xf6\\xf8-\\xff]",Un="[^\\ud800-\\udfff"+Ln+Dn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Vn="\\ud83c[\\udffb-\\udfff]",Wn="[^\\ud800-\\udfff]",Yn="(?:\\ud83c[\\udde6-\\uddff]){2}",$n="[\\ud800-\\udbff][\\udc00-\\udfff]",Jn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Kn="(?:"+Hn+"|"+Un+")",Xn="(?:"+Jn+"|"+Un+")",Zn="(?:"+Fn+"|"+Vn+")"+"?",Qn="[\\ufe0e\\ufe0f]?"+Zn+("(?:\\u200d(?:"+[Wn,Yn,$n].join("|")+")[\\ufe0e\\ufe0f]?"+Zn+")*"),te="(?:"+[Gn,Yn,$n].join("|")+")"+Qn,ne="(?:"+[Wn+Fn+"?",Fn,Yn,$n,zn].join("|")+")",ee=RegExp("['’]","g"),re=RegExp(Fn,"g"),ie=RegExp(Vn+"(?="+Vn+")|"+ne+Qn,"g"),oe=RegExp([Jn+"?"+Hn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[qn,Jn,"$"].join("|")+")",Xn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[qn,Jn+Kn,"$"].join("|")+")",Jn+"?"+Kn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Jn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Dn,te].join("|"),"g"),ue=RegExp("[\\u200d\\ud800-\\udfff"+In+"\\ufe0e\\ufe0f]"),ae=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ce=["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"],fe=-1,se={};se[Wt]=se[Yt]=se[$t]=se[Jt]=se[Kt]=se[Xt]=se[Zt]=se[Qt]=se[tn]=!0,se[wt]=se[xt]=se[Ut]=se[Mt]=se[Vt]=se[Tt]=se[kt]=se[Ct]=se[Nt]=se[Rt]=se[At]=se[Lt]=se[zt]=se[qt]=se[Gt]=!1;var le={};le[wt]=le[xt]=le[Ut]=le[Vt]=le[Mt]=le[Tt]=le[Wt]=le[Yt]=le[$t]=le[Jt]=le[Kt]=le[Nt]=le[Rt]=le[At]=le[Lt]=le[zt]=le[qt]=le[Ft]=le[Xt]=le[Zt]=le[Qt]=le[tn]=!0,le[kt]=le[Ct]=le[Gt]=!1;var he={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pe=parseFloat,ve=parseInt,de="object"==typeof t&&t&&t.Object===Object&&t,ge="object"==typeof self&&self&&self.Object===Object&&self,be=de||ge||Function("return this")(),ye="object"==typeof n&&n&&!n.nodeType&&n,je=ye&&"object"==typeof r&&r&&!r.nodeType&&r,Oe=je&&je.exports===ye,_e=Oe&&de.process,me=function(){try{return _e&&_e.binding&&_e.binding("util")}catch(t){}}(),we=me&&me.isArrayBuffer,xe=me&&me.isDate,Ee=me&&me.isMap,Me=me&&me.isRegExp,Te=me&&me.isSet,Se=me&&me.isTypedArray,ke=m("length"),Ce=w({"À":"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"}),Pe=w({"&":"&","<":"<",">":">",'"':""","'":"'"}),Ne=w({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Re=function t(n){function e(t){if(to(t)&&!Ua(t)&&!(t instanceof w)){if(t instanceof i)return t;if(Uo.call(t,"__wrapped__"))return xi(t)}return new i(t)}function r(){}function i(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=D}function w(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=jt,this.__views__=[]}function In(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Kn(t,n,e,r,i,a){var f,s=n&$,l=n&J,h=n&K;if(e&&(f=i?e(t,r,i,a):e(t)),f!==D)return f;if(!Qi(t))return t;var p=Ua(t);if(p){if(f=function(t){var n=t.length,e=t.constructor(n);return n&&"string"==typeof t[0]&&Uo.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!s)return Mr(t,f)}else{var v=ta(t),g=v==Ct||v==Pt;if(Wa(t))return Or(t,s);if(v==At||v==wt||g&&!i){if(f=l||g?{}:ci(t),!s)return l?function(t,n){return Tr(t,Qu(t),n)}(t,function(n,e){return n&&Tr(t,go(t),n)}(f)):function(t,n){return Tr(t,Zu(t),n)}(t,Wn(f,t))}else{if(!le[v])return i?t:{};f=function(t,n,e,r){var i=t.constructor;switch(n){case Ut:return _r(t);case Mt:case Tt:return new i(+t);case Vt:return function(t,n){var e=n?_r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,r);case Wt:case Yt:case $t:case Jt:case Kt:case Xt:case Zt:case Qt:case tn:return mr(t,r);case Nt:return function(t,n,e){return d(n?e(B(t),$):B(t),o,new t.constructor)}(t,r,e);case Rt:case qt:return new i(t);case Lt:return function(t){var n=new t.constructor(t.source,Tn.exec(t));return n.lastIndex=t.lastIndex,n}(t);case zt:return function(t,n,e){return d(n?e(L(t),$):L(t),u,new t.constructor)}(t,r,e);case Ft:return function(t){return qu?Ao(qu.call(t)):{}}(t)}}(t,v,Kn,s)}}a||(a=new Fn);var b=a.get(t);if(b)return b;a.set(t,f);var y=p?D:(h?l?ti:Qr:l?go:vo)(t);return c(y||t,function(r,i){y&&(r=t[i=r]),Un(f,i,Kn(r,n,e,i,t,a))}),f}function Xn(t,n,e){var r=e.length;if(null==t)return!r;for(t=Ao(t);r--;){var i=e[r],o=n[i],u=t[i];if(u===D&&!(i in t)||!o(u))return!1}return!0}function Zn(t,n,e){if("function"!=typeof t)throw new zo(U);return ra(function(){t.apply(D,e)},n)}function Qn(t,n,e,r){var i=-1,o=l,u=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=p(n,T(e))),r?(o=h,u=!1):n.length>=G&&(o=k,u=!1,n=new qn(n));t:for(;++i0&&e(a)?n>1?ie(a,n-1,e,r,i):v(i,a):r||(i[i.length]=a)}return i}function ue(t,n){return t&&Uu(t,n,vo)}function he(t,n){return t&&Vu(t,n,vo)}function de(t,n){return s(n,function(n){return Ki(t[n])})}function ge(t,n){for(var e=0,r=(n=yr(n,t)).length;null!=t&&en}function me(t,n){return null!=t&&Uo.call(t,n)}function ke(t,n){return null!=t&&n in Ao(t)}function Be(t,n,e){for(var r=e?h:l,i=t[0].length,o=t.length,u=o,a=Co(o),c=1/0,f=[];u--;){var s=t[u];u&&n&&(s=p(s,T(n))),c=Ou(s.length,c),a[u]=!e&&(n||i>=120&&s.length>=120)?new qn(u&&s):D}s=t[0];var v=-1,d=a[0];t:for(;++v=a)return c;var f=e[r];return c*("desc"==f?-1:1)}}return t.index-n.index}(t,n,e)})}function Ke(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)a!==t&&iu.call(a,c,1),iu.call(t,c,1);return t}function Ze(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;si(i)?iu.call(t,i,1):sr(t,i)}}return t}function Qe(t,n){return t+pu(wu()*(n-t+1))}function tr(t,n){var e="";if(!t||n<1||n>gt)return e;do{n%2&&(e+=t),(n=pu(n/2))&&(t+=t)}while(n);return e}function nr(t,n){return ia(bi(t,n,wo),t+"")}function er(t,n,e,r){if(!Qi(t))return t;for(var i=-1,o=(n=yr(n,t)).length,u=o-1,a=t;null!=a&&++ii?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=Co(i);++r>>1,u=t[o];null!==u&&!io(u)&&(e?u<=n:u=G){var f=n?null:Ku(t);if(f)return L(f);u=!1,i=k,c=new qn}else c=n?[]:a;t:for(;++r=r?t:rr(t,n,e)}function Or(t,n){if(n)return t.slice();var e=t.length,r=tu?tu(e):new t.constructor(e);return t.copy(r),r}function _r(t){var n=new t.constructor(t.byteLength);return new Qo(n).set(new Qo(t)),n}function mr(t,n){var e=n?_r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function wr(t,n){if(t!==n){var e=t!==D,r=null===t,i=t==t,o=io(t),u=n!==D,a=null===n,c=n==n,f=io(n);if(!a&&!f&&!o&&t>n||o&&u&&c&&!a&&!f||r&&u&&c||!e&&c||!i)return 1;if(!r&&!o&&!f&&t1?e[i-1]:D,u=i>2?e[2]:D;for(o=t.length>3&&"function"==typeof o?(i--,o):D,u&&li(e[0],e[1],u)&&(o=i<3?D:o,i=1),n=Ao(n);++r-1?i[o?n[u]:u]:D}}function Ir(t){return Zr(function(n){var e=n.length,r=e,o=i.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new zo(U);if(o&&!a&&"wrapper"==ni(u))var a=new i([],!0)}for(r=a?r:e;++r1&&y.reverse(),l&&ca))return!1;var f=o.get(t);if(f&&o.get(n))return f==n;var s=-1,l=!0,h=e&Z?new qn:D;for(o.set(t,n),o.set(n,t);++s-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(_n,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return c(mt,function(e){var r="_."+e[0];n&e[1]&&!l(t,r)&&t.push(r)}),t.sort()}(function(t){var n=t.match(mn);return n?n[1].split(wn):[]}(r),e)))}function Oi(t){var n=0,e=0;return function(){var r=_u(),i=ht-(r-e);if(e=r,i>0){if(++n>=lt)return arguments[0]}else n=0;return t.apply(D,arguments)}}function _i(t,n){var e=-1,r=t.length,i=r-1;for(n=n===D?r:n;++e0&&(e=n.apply(this,arguments)),t<=1&&(n=D),e}}function Di(t,n,e){var r=Yr(t,et,D,D,D,D,D,n=e?D:n);return r.placeholder=Di.placeholder,r}function Gi(t,n,e){var r=Yr(t,rt,D,D,D,D,D,n=e?D:n);return r.placeholder=Gi.placeholder,r}function Hi(t,n,e){function r(n){var e=c,r=f;return c=f=D,v=n,l=t.apply(r,e)}function i(t){var e=t-p;return p===D||e>=n||e<0||g&&t-v>=s}function o(){var t=Na();if(i(t))return u(t);h=ra(o,function(t){var e=n-(t-p);return g?Ou(e,s-(t-v)):e}(t))}function u(t){return h=D,b&&c?r(t):(c=f=D,l)}function a(){var t=Na(),e=i(t);if(c=arguments,f=this,p=t,e){if(h===D)return function(t){return v=t,h=ra(o,n),d?r(t):l}(p);if(g)return h=ra(o,n),r(p)}return h===D&&(h=ra(o,n)),l}var c,f,s,l,h,p,v=0,d=!1,g=!1,b=!0;if("function"!=typeof t)throw new zo(U);return n=fo(n)||0,Qi(e)&&(d=!!e.leading,s=(g="maxWait"in e)?ju(fo(e.maxWait)||0,n):s,b="trailing"in e?!!e.trailing:b),a.cancel=function(){h!==D&&Ju(h),v=0,c=p=f=h=D},a.flush=function(){return h===D?l:u(Na())},a}function Ui(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new zo(U);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(Ui.Cache||zn),e}function Vi(t){if("function"!=typeof t)throw new zo(U);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)}}function Wi(t,n){return t===n||t!=t&&n!=n}function Yi(t){return null!=t&&Zi(t.length)&&!Ki(t)}function $i(t){return to(t)&&Yi(t)}function Ji(t){if(!to(t))return!1;var n=je(t);return n==kt||n==St||"string"==typeof t.message&&"string"==typeof t.name&&!eo(t)}function Ki(t){if(!Qi(t))return!1;var n=je(t);return n==Ct||n==Pt||n==Et||n==It}function Xi(t){return"number"==typeof t&&t==ao(t)}function Zi(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gt}function Qi(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function to(t){return null!=t&&"object"==typeof t}function no(t){return"number"==typeof t||to(t)&&je(t)==Rt}function eo(t){if(!to(t)||je(t)!=At)return!1;var n=nu(t);if(null===n)return!0;var e=Uo.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Ho.call(e)==$o}function ro(t){return"string"==typeof t||!Ua(t)&&to(t)&&je(t)==qt}function io(t){return"symbol"==typeof t||to(t)&&je(t)==Ft}function oo(t){if(!t)return[];if(Yi(t))return ro(t)?F(t):Mr(t);if(uu&&t[uu])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[uu]());var n=ta(t);return(n==Nt?B:n==zt?L:yo)(t)}function uo(t){return t?(t=fo(t))===dt||t===-dt?(t<0?-1:1)*bt:t==t?t:0:0===t?t:0}function ao(t){var n=uo(t),e=n%1;return n==n?e?n-e:n:0}function co(t){return t?Jn(ao(t),0,jt):0}function fo(t){if("number"==typeof t)return t;if(io(t))return yt;if(Qi(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Qi(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(yn,"");var e=kn.test(t);return e||Pn.test(t)?ve(t.slice(2),e?2:8):Sn.test(t)?yt:+t}function so(t){return Tr(t,go(t))}function lo(t){return null==t?"":cr(t)}function ho(t,n,e){var r=null==t?D:ge(t,n);return r===D?e:r}function po(t,n){return null!=t&&ai(t,n,ke)}function vo(t){return Yi(t)?Dn(t):De(t)}function go(t){return Yi(t)?Dn(t,!0):Ge(t)}function bo(t,n){if(null==t)return{};var e=p(ti(t),function(t){return[t]});return n=ri(n),Ke(t,e,function(t,e){return n(t,e[0])})}function yo(t){return null==t?[]:S(t,vo(t))}function jo(t){return wc(lo(t).toLowerCase())}function Oo(t){return(t=lo(t))&&t.replace(Rn,Ce).replace(re,"")}function _o(t,n,e){return t=lo(t),(n=e?D:n)===D?function(t){return ae.test(t)}(t)?function(t){return t.match(oe)||[]}(t):function(t){return t.match(xn)||[]}(t):t.match(n)||[]}function mo(t){return function(){return t}}function wo(t){return t}function xo(t){return Fe("function"==typeof t?t:Kn(t,$))}function Eo(t,n,e){var r=vo(n),i=de(n,r);null!=e||Qi(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=de(n,vo(n)));var o=!(Qi(e)&&"chain"in e&&!e.chain),u=Ki(t);return c(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__);return(e.__actions__=Mr(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,v([this.value()],arguments))})}),t}function Mo(){}function To(t){return hi(t)?m(mi(t)):function(t){return function(n){return ge(n,t)}}(t)}function So(){return[]}function ko(){return!1}var Co=(n=null==n?be:Re.defaults(be.Object(),n,Re.pick(be,ce))).Array,Po=n.Date,No=n.Error,Ro=n.Function,Bo=n.Math,Ao=n.Object,Io=n.RegExp,Lo=n.String,zo=n.TypeError,qo=Co.prototype,Fo=Ro.prototype,Do=Ao.prototype,Go=n["__core-js_shared__"],Ho=Fo.toString,Uo=Do.hasOwnProperty,Vo=0,Wo=function(){var t=/[^.]+$/.exec(Go&&Go.keys&&Go.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Yo=Do.toString,$o=Ho.call(Ao),Jo=be._,Ko=Io("^"+Ho.call(Uo).replace(gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xo=Oe?n.Buffer:D,Zo=n.Symbol,Qo=n.Uint8Array,tu=Xo?Xo.allocUnsafe:D,nu=A(Ao.getPrototypeOf,Ao),eu=Ao.create,ru=Do.propertyIsEnumerable,iu=qo.splice,ou=Zo?Zo.isConcatSpreadable:D,uu=Zo?Zo.iterator:D,au=Zo?Zo.toStringTag:D,cu=function(){try{var t=ui(Ao,"defineProperty");return t({},"",{}),t}catch(t){}}(),fu=n.clearTimeout!==be.clearTimeout&&n.clearTimeout,su=Po&&Po.now!==be.Date.now&&Po.now,lu=n.setTimeout!==be.setTimeout&&n.setTimeout,hu=Bo.ceil,pu=Bo.floor,vu=Ao.getOwnPropertySymbols,du=Xo?Xo.isBuffer:D,gu=n.isFinite,bu=qo.join,yu=A(Ao.keys,Ao),ju=Bo.max,Ou=Bo.min,_u=Po.now,mu=n.parseInt,wu=Bo.random,xu=qo.reverse,Eu=ui(n,"DataView"),Mu=ui(n,"Map"),Tu=ui(n,"Promise"),Su=ui(n,"Set"),ku=ui(n,"WeakMap"),Cu=ui(Ao,"create"),Pu=ku&&new ku,Nu={},Ru=wi(Eu),Bu=wi(Mu),Au=wi(Tu),Iu=wi(Su),Lu=wi(ku),zu=Zo?Zo.prototype:D,qu=zu?zu.valueOf:D,Fu=zu?zu.toString:D,Du=function(){function t(){}return function(n){if(!Qi(n))return{};if(eu)return eu(n);t.prototype=n;var e=new t;return t.prototype=D,e}}();e.templateSettings={escape:fn,evaluate:sn,interpolate:ln,variable:"",imports:{_:e}},(e.prototype=r.prototype).constructor=e,(i.prototype=Du(r.prototype)).constructor=i,(w.prototype=Du(r.prototype)).constructor=w,In.prototype.clear=function(){this.__data__=Cu?Cu(null):{},this.size=0},In.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},In.prototype.get=function(t){var n=this.__data__;if(Cu){var e=n[t];return e===V?D:e}return Uo.call(n,t)?n[t]:D},In.prototype.has=function(t){var n=this.__data__;return Cu?n[t]!==D:Uo.call(n,t)},In.prototype.set=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Cu&&n===D?V:n,this},Ln.prototype.clear=function(){this.__data__=[],this.size=0},Ln.prototype.delete=function(t){var n=this.__data__,e=Vn(n,t);return!(e<0||(e==n.length-1?n.pop():iu.call(n,e,1),--this.size,0))},Ln.prototype.get=function(t){var n=this.__data__,e=Vn(n,t);return e<0?D:n[e][1]},Ln.prototype.has=function(t){return Vn(this.__data__,t)>-1},Ln.prototype.set=function(t,n){var e=this.__data__,r=Vn(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(Mu||Ln),string:new In}},zn.prototype.delete=function(t){var n=ii(this,t).delete(t);return this.size-=n?1:0,n},zn.prototype.get=function(t){return ii(this,t).get(t)},zn.prototype.has=function(t){return ii(this,t).has(t)},zn.prototype.set=function(t,n){var e=ii(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,V),this},qn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.clear=function(){this.__data__=new Ln,this.size=0},Fn.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Fn.prototype.get=function(t){return this.__data__.get(t)},Fn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ln){var r=e.__data__;if(!Mu||r.length1?t[n-1]:D;return e="function"==typeof e?(t.pop(),e):D,Ri(t,e)}),wa=Zr(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,o=function(n){return $n(n,t)};return!(n>1||this.__actions__.length)&&r instanceof w&&si(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Ai,args:[o],thisArg:D}),new i(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(D),t})):this.thru(o)}),xa=Sr(function(t,n,e){Uo.call(t,e)?++t[e]:Yn(t,e,1)}),Ea=Ar(Ei),Ma=Ar(Mi),Ta=Sr(function(t,n,e){Uo.call(t,e)?t[e].push(n):Yn(t,e,[n])}),Sa=nr(function(t,n,e){var r=-1,i="function"==typeof n,o=Yi(t)?Co(t.length):[];return Gu(t,function(t){o[++r]=i?a(n,t,e):Ae(t,n,e)}),o}),ka=Sr(function(t,n,e){Yn(t,e,n)}),Ca=Sr(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),Pa=nr(function(t,n){if(null==t)return[];var e=n.length;return e>1&&li(t,n[0],n[1])?n=[]:e>2&&li(n[0],n[1],n[2])&&(n=[n[0]]),Je(t,ie(n,1),[])}),Na=su||function(){return be.Date.now()},Ra=nr(function(t,n,e){var r=Q;if(e.length){var i=I(e,ei(Ra));r|=it}return Yr(t,r,n,e,i)}),Ba=nr(function(t,n,e){var r=Q|tt;if(e.length){var i=I(e,ei(Ba));r|=it}return Yr(n,r,t,e,i)}),Aa=nr(function(t,n){return Zn(t,1,n)}),Ia=nr(function(t,n,e){return Zn(t,fo(n)||0,e)});Ui.Cache=zn;var La=$u(function(t,n){var e=(n=1==n.length&&Ua(n[0])?p(n[0],T(ri())):p(ie(n,1),T(ri()))).length;return nr(function(r){for(var i=-1,o=Ou(r.length,e);++i=n}),Ha=Ie(function(){return arguments}())?Ie:function(t){return to(t)&&Uo.call(t,"callee")&&!ru.call(t,"callee")},Ua=Co.isArray,Va=we?T(we):function(t){return to(t)&&je(t)==Ut},Wa=du||ko,Ya=xe?T(xe):function(t){return to(t)&&je(t)==Tt},$a=Ee?T(Ee):function(t){return to(t)&&ta(t)==Nt},Ja=Me?T(Me):function(t){return to(t)&&je(t)==Lt},Ka=Te?T(Te):function(t){return to(t)&&ta(t)==zt},Xa=Se?T(Se):function(t){return to(t)&&Zi(t.length)&&!!se[je(t)]},Za=Hr(He),Qa=Hr(function(t,n){return t<=n}),tc=kr(function(t,n){if(vi(n)||Yi(n))Tr(n,vo(n),t);else for(var e in n)Uo.call(n,e)&&Un(t,e,n[e])}),nc=kr(function(t,n){Tr(n,go(n),t)}),ec=kr(function(t,n,e,r){Tr(n,go(n),t,r)}),rc=kr(function(t,n,e,r){Tr(n,vo(n),t,r)}),ic=Zr($n),oc=nr(function(t){return t.push(D,$r),a(ec,D,t)}),uc=nr(function(t){return t.push(D,Jr),a(lc,D,t)}),ac=zr(function(t,n,e){t[n]=e},mo(wo)),cc=zr(function(t,n,e){Uo.call(t,n)?t[n].push(e):t[n]=[e]},ri),fc=nr(Ae),sc=kr(function(t,n,e){Ye(t,n,e)}),lc=kr(function(t,n,e,r){Ye(t,n,e,r)}),hc=Zr(function(t,n){var e={};if(null==t)return e;var r=!1;n=p(n,function(n){return n=yr(n,t),r||(r=n.length>1),n}),Tr(t,ti(t),e),r&&(e=Kn(e,$|J|K,Kr));for(var i=n.length;i--;)sr(e,n[i]);return e}),pc=Zr(function(t,n){return null==t?{}:function(t,n){return Ke(t,n,function(n,e){return po(t,e)})}(t,n)}),vc=Wr(vo),dc=Wr(go),gc=Rr(function(t,n,e){return n=n.toLowerCase(),t+(e?jo(n):n)}),bc=Rr(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),yc=Rr(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),jc=Nr("toLowerCase"),Oc=Rr(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),_c=Rr(function(t,n,e){return t+(e?" ":"")+wc(n)}),mc=Rr(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),wc=Nr("toUpperCase"),xc=nr(function(t,n){try{return a(t,D,n)}catch(t){return Ji(t)?t:new No(t)}}),Ec=Zr(function(t,n){return c(n,function(n){n=mi(n),Yn(t,n,Ra(t[n],t))}),t}),Mc=Ir(),Tc=Ir(!0),Sc=nr(function(t,n){return function(e){return Ae(e,t,n)}}),kc=nr(function(t,n){return function(e){return Ae(t,e,n)}}),Cc=Fr(p),Pc=Fr(f),Nc=Fr(g),Rc=Gr(),Bc=Gr(!0),Ac=qr(function(t,n){return t+n},0),Ic=Vr("ceil"),Lc=qr(function(t,n){return t/n},1),zc=Vr("floor"),qc=qr(function(t,n){return t*n},1),Fc=Vr("round"),Dc=qr(function(t,n){return t-n},0);return e.after=function(t,n){if("function"!=typeof n)throw new zo(U);return t=ao(t),function(){if(--t<1)return n.apply(this,arguments)}},e.ary=qi,e.assign=tc,e.assignIn=nc,e.assignInWith=ec,e.assignWith=rc,e.at=ic,e.before=Fi,e.bind=Ra,e.bindAll=Ec,e.bindKey=Ba,e.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},e.chain=Bi,e.chunk=function(t,n,e){n=(e?li(t,n,e):n===D)?1:ju(ao(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var i=0,o=0,u=Co(hu(r/n));ii?0:i+e),(r=r===D||r>i?i:ao(r))<0&&(r+=i),r=e>r?0:co(r);e>>0)?(t=lo(t))&&("string"==typeof n||null!=n&&!Ja(n))&&!(n=cr(n))&&R(t)?jr(F(t),0,e):t.split(n,e):[]},e.spread=function(t,n){if("function"!=typeof t)throw new zo(U);return n=null==n?0:ju(ao(n),0),nr(function(e){var r=e[n],i=jr(e,0,n);return r&&v(i,r),a(t,this,i)})},e.tail=function(t){var n=null==t?0:t.length;return n?rr(t,1,n):[]},e.take=function(t,n,e){return t&&t.length?(n=e||n===D?1:ao(n),rr(t,0,n<0?0:n)):[]},e.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===D?1:ao(n),n=r-n,rr(t,n<0?0:n,r)):[]},e.takeRightWhile=function(t,n){return t&&t.length?hr(t,ri(n,3),!1,!0):[]},e.takeWhile=function(t,n){return t&&t.length?hr(t,ri(n,3)):[]},e.tap=function(t,n){return n(t),t},e.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new zo(U);return Qi(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Hi(t,n,{leading:r,maxWait:n,trailing:i})},e.thru=Ai,e.toArray=oo,e.toPairs=vc,e.toPairsIn=dc,e.toPath=function(t){return Ua(t)?p(t,mi):io(t)?[t]:Mr(oa(lo(t)))},e.toPlainObject=so,e.transform=function(t,n,e){var r=Ua(t),i=r||Wa(t)||Xa(t);if(n=ri(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Qi(t)&&Ki(o)?Du(nu(t)):{}}return(i?c:ue)(t,function(t,r,i){return n(e,t,r,i)}),e},e.unary=function(t){return qi(t,1)},e.union=va,e.unionBy=da,e.unionWith=ga,e.uniq=function(t){return t&&t.length?fr(t):[]},e.uniqBy=function(t,n){return t&&t.length?fr(t,ri(n,2)):[]},e.uniqWith=function(t,n){return n="function"==typeof n?n:D,t&&t.length?fr(t,D,n):[]},e.unset=function(t,n){return null==t||sr(t,n)},e.unzip=Ni,e.unzipWith=Ri,e.update=function(t,n,e){return null==t?t:lr(t,n,br(e))},e.updateWith=function(t,n,e,r){return r="function"==typeof r?r:D,null==t?t:lr(t,n,br(e),r)},e.values=yo,e.valuesIn=function(t){return null==t?[]:S(t,go(t))},e.without=ba,e.words=_o,e.wrap=function(t,n){return za(br(n),t)},e.xor=ya,e.xorBy=ja,e.xorWith=Oa,e.zip=_a,e.zipObject=function(t,n){return dr(t||[],n||[],Un)},e.zipObjectDeep=function(t,n){return dr(t||[],n||[],er)},e.zipWith=ma,e.entries=vc,e.entriesIn=dc,e.extend=nc,e.extendWith=ec,Eo(e,e),e.add=Ac,e.attempt=xc,e.camelCase=gc,e.capitalize=jo,e.ceil=Ic,e.clamp=function(t,n,e){return e===D&&(e=n,n=D),e!==D&&(e=(e=fo(e))==e?e:0),n!==D&&(n=(n=fo(n))==n?n:0),Jn(fo(t),n,e)},e.clone=function(t){return Kn(t,K)},e.cloneDeep=function(t){return Kn(t,$|K)},e.cloneDeepWith=function(t,n){return n="function"==typeof n?n:D,Kn(t,$|K,n)},e.cloneWith=function(t,n){return n="function"==typeof n?n:D,Kn(t,K,n)},e.conformsTo=function(t,n){return null==n||Xn(t,n,vo(n))},e.deburr=Oo,e.defaultTo=function(t,n){return null==t||t!=t?n:t},e.divide=Lc,e.endsWith=function(t,n,e){t=lo(t),n=cr(n);var r=t.length,i=e=e===D?r:Jn(ao(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},e.eq=Wi,e.escape=function(t){return(t=lo(t))&&cn.test(t)?t.replace(un,Pe):t},e.escapeRegExp=function(t){return(t=lo(t))&&bn.test(t)?t.replace(gn,"\\$&"):t},e.every=function(t,n,e){var r=Ua(t)?f:function(t,n){var e=!0;return Gu(t,function(t,r,i){return e=!!n(t,r,i)}),e};return e&&li(t,n,e)&&(n=D),r(t,ri(n,3))},e.find=Ea,e.findIndex=Ei,e.findKey=function(t,n){return b(t,ri(n,3),ue)},e.findLast=Ma,e.findLastIndex=Mi,e.findLastKey=function(t,n){return b(t,ri(n,3),he)},e.floor=zc,e.forEach=Ii,e.forEachRight=Li,e.forIn=function(t,n){return null==t?t:Uu(t,ri(n,3),go)},e.forInRight=function(t,n){return null==t?t:Vu(t,ri(n,3),go)},e.forOwn=function(t,n){return t&&ue(t,ri(n,3))},e.forOwnRight=function(t,n){return t&&he(t,ri(n,3))},e.get=ho,e.gt=Da,e.gte=Ga,e.has=function(t,n){return null!=t&&ai(t,n,me)},e.hasIn=po,e.head=Si,e.identity=wo,e.includes=function(t,n,e,r){t=Yi(t)?t:yo(t),e=e&&!r?ao(e):0;var i=t.length;return e<0&&(e=ju(i+e,0)),ro(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&j(t,n,e)>-1},e.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:ao(e);return i<0&&(i=ju(r+i,0)),j(t,n,i)},e.inRange=function(t,n,e){return n=uo(n),e===D?(e=n,n=0):e=uo(e),t=fo(t),function(t,n,e){return t>=Ou(n,e)&&t=-gt&&t<=gt},e.isSet=Ka,e.isString=ro,e.isSymbol=io,e.isTypedArray=Xa,e.isUndefined=function(t){return t===D},e.isWeakMap=function(t){return to(t)&&ta(t)==Gt},e.isWeakSet=function(t){return to(t)&&je(t)==Ht},e.join=function(t,n){return null==t?"":bu.call(t,n)},e.kebabCase=bc,e.last=ki,e.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==D&&(i=(i=ao(e))<0?ju(r+i,0):Ou(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):y(t,O,i,!0)},e.lowerCase=yc,e.lowerFirst=jc,e.lt=Za,e.lte=Qa,e.max=function(t){return t&&t.length?te(t,wo,_e):D},e.maxBy=function(t,n){return t&&t.length?te(t,ri(n,2),_e):D},e.mean=function(t){return _(t,wo)},e.meanBy=function(t,n){return _(t,ri(n,2))},e.min=function(t){return t&&t.length?te(t,wo,He):D},e.minBy=function(t,n){return t&&t.length?te(t,ri(n,2),He):D},e.stubArray=So,e.stubFalse=ko,e.stubObject=function(){return{}},e.stubString=function(){return""},e.stubTrue=function(){return!0},e.multiply=qc,e.nth=function(t,n){return t&&t.length?$e(t,ao(n)):D},e.noConflict=function(){return be._===this&&(be._=Jo),this},e.noop=Mo,e.now=Na,e.pad=function(t,n,e){t=lo(t);var r=(n=ao(n))?q(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Dr(pu(i),e)+t+Dr(hu(i),e)},e.padEnd=function(t,n,e){t=lo(t);var r=(n=ao(n))?q(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=wu();return Ou(t+i*(n-t+pe("1e-"+((i+"").length-1))),n)}return Qe(t,n)},e.reduce=function(t,n,e){var r=Ua(t)?d:x,i=arguments.length<3;return r(t,ri(n,4),e,i,Gu)},e.reduceRight=function(t,n,e){var r=Ua(t)?function(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}:x,i=arguments.length<3;return r(t,ri(n,4),e,i,Hu)},e.repeat=function(t,n,e){return n=(e?li(t,n,e):n===D)?1:ao(n),tr(lo(t),n)},e.replace=function(){var t=arguments,n=lo(t[0]);return t.length<3?n:n.replace(t[1],t[2])},e.result=function(t,n,e){var r=-1,i=(n=yr(n,t)).length;for(i||(i=1,t=D);++rgt)return[];var e=jt,r=Ou(t,jt);n=ri(n),t-=jt;for(var i=M(r,n);++e=o)return t;var a=e-q(r);if(a<1)return r;var c=u?jr(u,0,a).join(""):t.slice(0,a);if(i===D)return c+r;if(u&&(a+=c.length-a),Ja(i)){if(t.slice(a).search(i)){var f,s=c;for(i.global||(i=Io(i.source,lo(Tn.exec(i))+"g")),i.lastIndex=0;f=i.exec(s);)var l=f.index;c=c.slice(0,l===D?a:l)}}else if(t.indexOf(cr(i),a)!=a){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},e.unescape=function(t){return(t=lo(t))&&an.test(t)?t.replace(on,Ne):t},e.uniqueId=function(t){var n=++Vo;return lo(t)+n},e.upperCase=mc,e.upperFirst=wc,e.each=Ii,e.eachRight=Li,e.first=Si,Eo(e,function(){var t={};return ue(e,function(n,r){Uo.call(e.prototype,r)||(t[r]=n)}),t}(),{chain:!1}),e.VERSION="4.17.4",c(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),c(["drop","take"],function(t,n){w.prototype[t]=function(e){e=e===D?1:ju(ao(e),0);var r=this.__filtered__&&!n?new w(this):this.clone();return r.__filtered__?r.__takeCount__=Ou(e,r.__takeCount__):r.__views__.push({size:Ou(e,jt),type:t+(r.__dir__<0?"Right":"")}),r},w.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),c(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==pt||3==e;w.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:ri(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),c(["head","last"],function(t,n){var e="take"+(n?"Right":"");w.prototype[t]=function(){return this[e](1).value()[0]}}),c(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");w.prototype[t]=function(){return this.__filtered__?new w(this):this[e](1)}}),w.prototype.compact=function(){return this.filter(wo)},w.prototype.find=function(t){return this.filter(t).head()},w.prototype.findLast=function(t){return this.reverse().find(t)},w.prototype.invokeMap=nr(function(t,n){return"function"==typeof t?new w(this):this.map(function(e){return Ae(e,t,n)})}),w.prototype.reject=function(t){return this.filter(Vi(ri(t)))},w.prototype.slice=function(t,n){t=ao(t);var e=this;return e.__filtered__&&(t>0||n<0)?new w(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==D&&(e=(n=ao(n))<0?e.dropRight(-n):e.take(n-t)),e)},w.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},w.prototype.toArray=function(){return this.take(jt)},ue(w.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),u=e[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);u&&(e.prototype[n]=function(){var n=this.__wrapped__,c=o?[1]:arguments,f=n instanceof w,s=c[0],l=f||Ua(n),h=function(t){var n=u.apply(e,v([t],c));return o&&p?n[0]:n};l&&r&&"function"==typeof s&&1!=s.length&&(f=l=!1);var p=this.__chain__,d=!!this.__actions__.length,g=a&&!p,b=f&&!d;if(!a&&l){n=b?n:new w(this);var y=t.apply(n,c);return y.__actions__.push({func:Ai,args:[h],thisArg:D}),new i(y,p)}return g&&b?t.apply(this,c):(y=this.thru(h),g?o?y.value()[0]:y.value():y)})}),c(["pop","push","shift","sort","splice","unshift"],function(t){var n=qo[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var e=this.value();return n.apply(Ua(e)?e:[],t)}return this[r](function(e){return n.apply(Ua(e)?e:[],t)})}}),ue(w.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"";(Nu[i]||(Nu[i]=[])).push({name:n,func:r})}}),Nu[Lr(D,tt).name]=[{name:"wrapper",func:D}],w.prototype.clone=function(){var t=new w(this.__wrapped__);return t.__actions__=Mr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mr(this.__views__),t},w.prototype.reverse=function(){if(this.__filtered__){var t=new w(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},w.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Ua(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?D:this.__values__[this.__index__++]}},e.prototype.plant=function(t){for(var n,e=this;e instanceof r;){var i=xi(e);i.__index__=0,i.__values__=D,n?o.__wrapped__=i:n=i;var o=i;e=e.__wrapped__}return o.__wrapped__=t,n},e.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof w){var n=t;return this.__actions__.length&&(n=new w(this)),(n=n.reverse()).__actions__.push({func:Ai,args:[Pi],thisArg:D}),new i(n,this.__chain__)}return this.thru(Pi)},e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=function(){return pr(this.__wrapped__,this.__actions__)},e.prototype.first=e.prototype.head,uu&&(e.prototype[uu]=function(){return this}),e}();be._=Re,(i=function(){return Re}.call(n,e,n,r))!==D&&(r.exports=i)}).call(this)}).call(n,e(435),e(436)(t))},function(t,n,e){var r=e(13),i=e(171);t.exports=function(t,n,e,r){return function(t,n,e,r){var o,u,a={},c=new i,f=function(t){var n=t.v!==o?t.v:t.w,r=a[n],i=e(t),f=u.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);f0&&(o=c.removeMin(),(u=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(f);return a}(t,String(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},function(t,n,e){function r(){this._arr=[],this._keyIndices={}}var i=e(13);t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(t){return t.key})},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!i.has(e,t)){var r=this._arr,o=r.length;return e[t]=o,r.push({key:t,priority:n}),this._decrease(o),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},r.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e>1,!(e[n].priority=i;--o)v.point(b[o],y[o]);v.lineEnd(),v.areaEnd()}g&&(b[n]=+e(u,n,t),y[n]=+f(u,n,t),v.point(c?+c(u,n,t):b[n],s?+s(u,n,t):y[n]))}if(a)return v=null,a+""||null}function n(){return Object(u.a)().defined(l).curve(p).context(h)}var e=a.a,c=null,f=Object(i.a)(0),s=a.b,l=Object(i.a)(!0),h=null,p=o.a,v=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(i.a)(+n),c=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:Object(i.a)(+n),t):e},t.x1=function(n){return arguments.length?(c=null==n?null:"function"==typeof n?n:Object(i.a)(+n),t):c},t.y=function(n){return arguments.length?(f="function"==typeof n?n:Object(i.a)(+n),s=null,t):f},t.y0=function(n){return arguments.length?(f="function"==typeof n?n:Object(i.a)(+n),t):f},t.y1=function(n){return arguments.length?(s=null==n?null:"function"==typeof n?n:Object(i.a)(+n),t):s},t.lineX0=t.lineY0=function(){return n().x(e).y(f)},t.lineY1=function(){return n().x(e).y(s)},t.lineX1=function(){return n().x(c).y(f)},t.defined=function(n){return arguments.length?(l="function"==typeof n?n:Object(i.a)(!!n),t):l},t.curve=function(n){return arguments.length?(p=n,null!=h&&(v=p(h)),t):p},t.context=function(n){return arguments.length?(null==n?h=v=null:v=p(h=n),t):h},t}},function(t,n,e){"use strict";function r(t){this._curve=t}function i(t){function n(n){return new r(t(n))}return n._curve=t,n}e.d(n,"a",function(){return o}),n.b=i;var o=i(e(60).a);r.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))}}},function(t,n,e){"use strict";function r(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(Object(i.b)(t)):n()._curve},t}n.a=r;var i=e(178);e(95)},function(t,n,e){"use strict";n.a=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=Array.prototype.slice},function(t,n,e){"use strict";var r=e(46);n.a={draw:function(t,n){var e=Math.sqrt(n/r.j);t.moveTo(e,0),t.arc(0,0,e,0,r.m)}}},function(t,n,e){"use strict";n.a={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()}}},function(t,n,e){"use strict";var r=Math.sqrt(1/3),i=2*r;n.a={draw:function(t,n){var e=Math.sqrt(n/i),o=e*r;t.moveTo(0,-e),t.lineTo(o,0),t.lineTo(0,e),t.lineTo(-o,0),t.closePath()}}},function(t,n,e){"use strict";var r=e(46),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),o=Math.sin(r.m/10)*i,u=-Math.cos(r.m/10)*i;n.a={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),i=o*e,a=u*e;t.moveTo(0,-e),t.lineTo(i,a);for(var c=1;c<5;++c){var f=r.m*c/5,s=Math.cos(f),l=Math.sin(f);t.lineTo(l*e,-s*e),t.lineTo(s*i-l*a,l*i+s*a)}t.closePath()}}},function(t,n,e){"use strict";n.a={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}}},function(t,n,e){"use strict";var r=Math.sqrt(3);n.a={draw:function(t,n){var e=-Math.sqrt(n/(3*r));t.moveTo(0,2*e),t.lineTo(-r*e,-e),t.lineTo(r*e,-e),t.closePath()}}},function(t,n,e){"use strict";var r=-.5,i=Math.sqrt(3)/2,o=1/Math.sqrt(12),u=3*(o/2+1);n.a={draw:function(t,n){var e=Math.sqrt(n/u),a=e/2,c=e*o,f=a,s=e*o+e,l=-f,h=s;t.moveTo(a,c),t.lineTo(f,s),t.lineTo(l,h),t.lineTo(r*a-i*c,i*a+r*c),t.lineTo(r*f-i*s,i*f+r*s),t.lineTo(r*l-i*h,i*l+r*h),t.lineTo(r*a+i*c,r*c-i*a),t.lineTo(r*f+i*s,r*s-i*f),t.lineTo(r*l+i*h,r*h-i*l),t.closePath()}}},function(t,n,e){"use strict";function r(t,n){this._context=t,this._k=(1-n)/6}n.a=r;var i=e(61),o=e(63);r.prototype={areaStart:i.a,areaEnd:i.a,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:Object(o.b)(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}};(function t(n){function e(t){return new r(t,n)}return e.tension=function(n){return t(+n)},e})(0)},function(t,n,e){"use strict";function r(t,n){this._context=t,this._k=(1-n)/6}n.a=r;var i=e(63);r.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:Object(i.b)(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}};(function t(n){function e(t){return new r(t,n)}return e.tension=function(n){return t(+n)},e})(0)},function(t,n,e){"use strict";function r(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 i(t,n){return n[+(n.left!==t.site)]}function o(t,n){return n[+(n.left===t.site)]}n.c=function(t){return a.b[t.index]={site:t,halfedges:[]}},n.a=i,n.d=function(){for(var t,n,e,i,o=0,u=a.b.length;oa.f||Math.abs(j-g)>a.f)&&(h.splice(l,0,a.e.push(Object(u.b)(s,b,Math.abs(y-t)a.f?[t,Math.abs(d-t)a.f?[Math.abs(g-r)a.f?[e,Math.abs(d-e)a.f?[Math.abs(g-n)=-o.g)){var b=h*h+p*p,y=v*v+d*d,j=(d*b-p*y)/g,O=(h*y-v*b)/g,_=u.pop()||new function(){Object(i.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};_.arc=t,_.site=c,_.x=j+s,_.y=(_.cy=O+l)+Math.sqrt(j*j+O*O),t.circle=_;for(var m=null,w=o.c._;w;)if(_.yg&&(g=n)}function i(t,n){var e=Object(E.a)([t*M.r,n*M.r]);if(O){var r=Object(E.c)(O,e),i=[r[1],-r[0],0],o=Object(E.c)(i,r);Object(E.e)(o),o=Object(E.g)(o);var u,a=t-b,c=a>0?1:-1,f=o[0]*M.h*c,l=Object(M.a)(a)>180;l^(c*bg&&(g=u):(f=(f+360)%360-180,l^(c*bg&&(g=n))),l?ts(p,d)&&(d=t):s(t,d)>s(p,d)&&(p=t):d>=p?(td&&(d=t)):t>b?s(p,t)>s(p,d)&&(d=t):s(t,d)>s(p,d)&&(p=t)}else _.push(m=[p=t,d=t]);ng&&(g=n),O=e,b=t}function o(){k.point=i}function u(){m[0]=p,m[1]=d,k.point=r,O=null}function a(t,n){if(O){var e=t-b;S.add(Object(M.a)(e)>180?e+(e>0?360:-360):e)}else y=t,j=n;x.b.point(t,n),i(t,n)}function c(){x.b.lineStart()}function f(){a(y,j),x.b.lineEnd(),Object(M.a)(S)>M.i&&(p=-(d=180)),m[0]=p,m[1]=d,O=null}function s(t,n){return(n-=t)<0?n+360:n}function l(t,n){return t[0]-n[0]}function h(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nM.i?g=90:S<-M.i&&(v=-90),m[0]=p,m[1]=d}};n.a=function(t){var n,e,r,i,o,u,a;if(g=d=-(p=v=1/0),_=[],Object(T.a)(t,k),e=_.length){for(_.sort(l),n=1,o=[r=_[0]];ns(r[0],r[1])&&(r[1]=i[1]),s(i[0],r[1])>s(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=s(r[1],i[0]))>u&&(u=a,p=i[0],d=r[1])}return _=m=null,p===1/0||v===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,v],[d,g]]}},function(t,n,e){"use strict";function r(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n);i(e*Object(k.g)(t),e*Object(k.t)(t),Object(k.t)(n))}function i(t,n,e){d+=(t-d)/++p,g+=(n-g)/p,b+=(e-b)/p}function o(){N.point=u}function u(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n);M=e*Object(k.g)(t),T=e*Object(k.t)(t),S=Object(k.t)(n),N.point=a,i(M,T,S)}function a(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n),r=e*Object(k.g)(t),o=e*Object(k.t)(t),u=Object(k.t)(n),a=Object(k.e)(Object(k.u)((a=T*u-S*o)*a+(a=S*r-M*u)*a+(a=M*o-T*r)*a),M*r+T*o+S*u);v+=a,y+=a*(M+(M=r)),j+=a*(T+(T=o)),O+=a*(S+(S=u)),i(M,T,S)}function c(){N.point=r}function f(){N.point=l}function s(){h(x,E),N.point=r}function l(t,n){x=t,E=n,t*=k.r,n*=k.r,N.point=h;var e=Object(k.g)(n);M=e*Object(k.g)(t),T=e*Object(k.t)(t),S=Object(k.t)(n),i(M,T,S)}function h(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n),r=e*Object(k.g)(t),o=e*Object(k.t)(t),u=Object(k.t)(n),a=T*u-S*o,c=S*r-M*u,f=M*o-T*r,s=Object(k.u)(a*a+c*c+f*f),l=Object(k.c)(s),h=s&&-l/s;_+=h*a,m+=h*c,w+=h*f,v+=l,y+=l*(M+(M=r)),j+=l*(T+(T=o)),O+=l*(S+(S=u)),i(M,T,S)}var p,v,d,g,b,y,j,O,_,m,w,x,E,M,T,S,k=e(4),C=e(20),P=e(22),N={sphere:C.a,point:r,lineStart:o,lineEnd:c,polygonStart:function(){N.lineStart=f,N.lineEnd=s},polygonEnd:function(){N.lineStart=o,N.lineEnd=c}};n.a=function(t){p=v=d=g=b=y=j=O=_=m=w=0,Object(P.a)(t,N);var n=_,e=m,r=w,i=n*n+e*e+r*r;return i0)){if(u/=l,l<0){if(u0){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(u0)){if(u/=h,h<0){if(u0){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(u0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}}},function(t,n,e){"use strict";var r=e(111);n.a=function(t,n,e){var i,o,u,a,c=t.length,f=n.length,s=new Array(c*f);for(null==e&&(e=r.b),i=u=0;it?1:n>=t?0:NaN}},function(t,n,e){"use strict";var r=e(115),i=e(109),o=e(204),u=e(114),a=e(205),c=e(116),f=e(117),s=e(118);n.a=function(){function t(t){var r,o,u=t.length,a=new Array(u);for(r=0;rp;)v.pop(),--d;var g,b=new Array(d+1);for(r=0;r<=d;++r)(g=b[r]=[]).x0=r>0?v[r-1]:h,g.x1=r=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}},function(t,n,e){"use strict";var r=e(36);n.a=function(t,n){var e,i=t.length,o=i,u=-1,a=0;if(null==n)for(;++u=0;)for(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e}},function(t,n,e){"use strict";n.a=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}},function(t,n,e){"use strict";var r=e(30);n.a=function(t,n){if(e=t.length){var e,i,o=0,u=0,a=t[u];for(null==n&&(n=r.a);++oa.i}).map(v)).concat(Object(u.range)(Object(a.f)(l/j)*j,s,j).filter(function(t){return Object(a.a)(t%_)>a.i}).map(d))}var e,o,c,f,s,l,h,p,v,d,g,b,y=10,j=y,O=90,_=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[g(f).concat(b(h).slice(1),g(c).reverse().slice(1),b(p).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(f=+n[0][0],c=+n[1][0],p=+n[0][1],h=+n[1][1],f>c&&(n=f,f=c,c=n),p>h&&(n=p,p=h,h=n),t.precision(m)):[[f,p],[c,h]]},t.extentMinor=function(n){return arguments.length?(o=+n[0][0],e=+n[1][0],l=+n[0][1],s=+n[1][1],o>e&&(n=o,o=e,e=n),l>s&&(n=l,l=s,s=n),t.precision(m)):[[o,l],[e,s]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(O=+n[0],_=+n[1],t):[O,_]},t.stepMinor=function(n){return arguments.length?(y=+n[0],j=+n[1],t):[y,j]},t.precision=function(n){return arguments.length?(m=+n,v=r(l,s,90),d=i(o,e,m),g=r(p,h,90),b=i(f,c,m),t):m},t.extentMajor([[-180,-90+a.i],[180,90-a.i]]).extentMinor([[-180,-80-a.i],[180,80+a.i]])}n.a=o,n.b=function(){return o()()};var u=e(14),a=e(4)},function(t,n,e){"use strict";var r=e(4);n.a=function(t,n){var e=t[0]*r.r,i=t[1]*r.r,o=n[0]*r.r,u=n[1]*r.r,a=Object(r.g)(i),c=Object(r.t)(i),f=Object(r.g)(u),s=Object(r.t)(u),l=a*Object(r.g)(e),h=a*Object(r.t)(e),p=f*Object(r.g)(o),v=f*Object(r.t)(o),d=2*Object(r.c)(Object(r.u)(Object(r.m)(u-i)+a*f*Object(r.m)(o-e))),g=Object(r.t)(d),b=d?function(t){var n=Object(r.t)(t*=d)/g,e=Object(r.t)(d-t)/g,i=e*l+n*p,o=e*h+n*v,u=e*c+n*s;return[Object(r.e)(o,i)*r.h,Object(r.e)(u,Object(r.u)(i*i+o*o))*r.h]}:function(){return[e*r.h,i*r.h]};return b.distance=d,b}},function(t,n,e){"use strict";var r=e(67),i=e(22),o=e(221),u=e(124),a=e(222),c=e(223),f=e(224),s=e(225);n.a=function(t,n){function e(t){return t&&("function"==typeof p&&h.pointRadius(+p.apply(this,arguments)),Object(i.a)(t,l(h))),h.result()}var l,h,p=4.5;return e.area=function(t){return Object(i.a)(t,l(o.a)),o.a.result()},e.measure=function(t){return Object(i.a)(t,l(f.a)),f.a.result()},e.bounds=function(t){return Object(i.a)(t,l(u.a)),u.a.result()},e.centroid=function(t){return Object(i.a)(t,l(a.a)),a.a.result()},e.projection=function(n){return arguments.length?(l=null==n?(t=null,r.a):(t=n).stream,e):t},e.context=function(t){return arguments.length?(h=null==t?(n=null,new s.a):new c.a(n=t),"function"!=typeof p&&h.pointRadius(p),e):n},e.pointRadius=function(t){return arguments.length?(p="function"==typeof t?t:(h.pointRadius(+t),+t),e):p},e.projection(t).context(n)}},function(t,n,e){"use strict";function r(){g.point=i}function i(t,n){g.point=o,a=f=t,c=s=n}function o(t,n){d.add(s*t-f*n),f=t,s=n}function u(){o(a,c)}var a,c,f,s,l=e(29),h=e(4),p=e(20),v=Object(l.a)(),d=Object(l.a)(),g={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){g.lineStart=r,g.lineEnd=u},polygonEnd:function(){g.lineStart=g.lineEnd=g.point=p.a,v.add(Object(h.a)(d)),d.reset()},result:function(){var t=v/2;return v.reset(),t}};n.a=g},function(t,n,e){"use strict";function r(t,n){b+=t,y+=n,++j}function i(){M.point=o}function o(t,n){M.point=u,r(v=t,d=n)}function u(t,n){var e=t-v,i=n-d,o=Object(g.u)(e*e+i*i);O+=o*(v+t)/2,_+=o*(d+n)/2,m+=o,r(v=t,d=n)}function a(){M.point=r}function c(){M.point=s}function f(){l(h,p)}function s(t,n){M.point=l,r(h=v=t,p=d=n)}function l(t,n){var e=t-v,i=n-d,o=Object(g.u)(e*e+i*i);O+=o*(v+t)/2,_+=o*(d+n)/2,m+=o,w+=(o=d*t-v*n)*(v+t),x+=o*(d+n),E+=3*o,r(v=t,d=n)}var h,p,v,d,g=e(4),b=0,y=0,j=0,O=0,_=0,m=0,w=0,x=0,E=0,M={point:r,lineStart:i,lineEnd:a,polygonStart:function(){M.lineStart=c,M.lineEnd=f},polygonEnd:function(){M.point=r,M.lineStart=i,M.lineEnd=a},result:function(){var t=E?[w/E,x/E]:m?[O/m,_/m]:j?[b/j,y/j]:[NaN,NaN];return b=y=j=O=_=m=w=x=E=0,t}};n.a=M},function(t,n,e){"use strict";function r(t){this._context=t}n.a=r;var i=e(4),o=e(20);r.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,i.w)}},result:o.a}},function(t,n,e){"use strict";function r(t,n){v.point=i,u=c=t,a=f=n}function i(t,n){c-=t,f-=n,p.add(Object(l.u)(c*c+f*f)),c=t,f=n}var o,u,a,c,f,s=e(29),l=e(4),h=e(20),p=Object(s.a)(),v={point:h.a,lineStart:function(){v.point=r},lineEnd:function(){o&&i(u,a),v.point=h.a},polygonStart:function(){o=!0},polygonEnd:function(){o=null},result:function(){var t=+p;return p.reset(),t}};n.a=v},function(t,n,e){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}n.a=r,r.prototype={_radius:4.5,_circle:i(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=i(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}}},function(t,n,e){"use strict";var r=e(126),i=e(4);n.a=Object(r.a)(function(){return!0},function(t){var n,e=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,a){var c=u>0?i.o:-i.o,f=Object(i.a)(u-e);Object(i.a)(f-i.o)0?i.l:-i.l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(u,r),n=0):o!==c&&f>=i.o&&(Object(i.a)(e-o)i.i?Object(i.d)((Object(i.t)(n)*(u=Object(i.g)(r))*Object(i.t)(e)-Object(i.t)(r)*(o=Object(i.g)(n))*Object(i.t)(t))/(o*u*a)):(n+r)/2}(e,r,u,a),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),n=0),t.point(e=u,r=a),o=c},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var o;if(null==t)o=e*i.l,r.point(-i.o,o),r.point(0,o),r.point(i.o,o),r.point(i.o,0),r.point(i.o,-o),r.point(0,-o),r.point(-i.o,-o),r.point(-i.o,0),r.point(-i.o,o);else if(Object(i.a)(t[0]-n[0])>i.i){var u=t[0]s}function c(t,n,e){var i=Object(r.a)(t),u=Object(r.a)(n),a=[1,0,0],c=Object(r.c)(i,u),f=Object(r.d)(c,c),l=c[0],h=f-l*l;if(!h)return!e&&t;var p=s*f/h,v=-s*l/h,d=Object(r.c)(a,c),g=Object(r.f)(a,p),b=Object(r.f)(c,v);Object(r.b)(g,b);var y=d,j=Object(r.d)(g,y),O=Object(r.d)(y,y),_=j*j-O*(Object(r.d)(g,g)-1);if(!(_<0)){var m=Object(o.u)(_),w=Object(r.f)(y,(-j-m)/O);if(Object(r.b)(w,g),w=Object(r.g)(w),!e)return w;var x,E=t[0],M=n[0],T=t[1],S=n[1];M0^w[1]<(Object(o.a)(w[0]-E)o.o^(E<=w[0]&&w[0]<=M)){var N=Object(r.f)(y,(-j+m)/O);return Object(r.b)(N,g),[w,Object(r.g)(N)]}}}function f(n,e){var r=l?t:o.o-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var s=Object(o.g)(t),l=s>0,h=Object(o.a)(s)>o.i;return Object(a.a)(e,function(t){var n,r,i,a,s;return{lineStart:function(){a=i=!1,s=1},point:function(p,v){var d,g=[p,v],b=e(p,v),y=l?b?0:f(p,v):b?f(p+(p<0?o.o:-o.o),v):0;if(!n&&(a=i=b)&&t.lineStart(),b!==i&&(!(d=c(n,g))||Object(u.a)(n,d)||Object(u.a)(g,d))&&(g[0]+=o.i,g[1]+=o.i,b=e(g[0],g[1])),b!==i)s=0,b?(t.lineStart(),d=c(g,n),t.point(d[0],d[1])):(d=c(n,g),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(h&&n&&l^b){var j;y&r||!(j=c(g,n,!0))||(s=0,l?(t.lineStart(),t.point(j[0][0],j[0][1]),t.point(j[1][0],j[1][1]),t.lineEnd()):(t.point(j[1][0],j[1][1]),t.lineEnd(),t.lineStart(),t.point(j[0][0],j[0][1])))}!b||n&&Object(u.a)(n,g)||t.point(g[0],g[1]),n=g,i=b,r=y},lineEnd:function(){i&&t.lineEnd(),n=null},clean:function(){return s|(a&&i)<<1}}},function(e,r,o,u){Object(i.a)(u,t,n,o,e,r)},l?[0,-t]:[-o.o,t-o.o])}},function(t,n,e){"use strict";var r=e(35),i=e(4),o=e(51),u=16,a=Object(i.g)(30*i.r);n.a=function(t,n){return+n?function(t,n){function e(r,o,u,c,f,s,l,h,p,v,d,g,b,y){var j=l-r,O=h-o,_=j*j+O*O;if(_>4*n&&b--){var m=c+v,w=f+d,x=s+g,E=Object(i.u)(m*m+w*w+x*x),M=Object(i.c)(x/=E),T=Object(i.a)(Object(i.a)(x)-1)n||Object(i.a)((j*P+O*N)/_-.5)>.3||c*v+f*d+s*g=.12&&i<.234&&r>=-.425&&r<-.214?p:i>=.166&&i<.234&&r>=-.214&&r<-.115?v:h).invert(t)},t.stream=function(t){return e&&a===t?e:e=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i0?n<-o.l+o.i&&(n=-o.l+o.i):n>o.l-o.i&&(n=o.l-o.i);var e=c/Object(o.p)(r(n),u);return[e*Object(o.t)(u*t),c-e*Object(o.g)(u*t)]}var i=Object(o.g)(t),u=t===n?Object(o.t)(t):Object(o.n)(i/Object(o.g)(n))/Object(o.n)(r(n)/r(t)),c=i*Object(o.p)(r(t),u)/u;return u?(e.invert=function(t,n){var e=c-n,r=Object(o.s)(u)*Object(o.u)(t*t+e*e);return[Object(o.e)(t,Object(o.a)(e))/u*Object(o.s)(e),2*Object(o.d)(Object(o.p)(c/r,1/u))-o.l]},e):a.c}n.a=i;var o=e(4),u=e(69),a=e(71);n.b=function(){return Object(u.a)(i).scale(109.5).parallels([30,30])}},function(t,n,e){"use strict";function r(t,n){function e(t,n){var e=a-n,r=o*t;return[e*Object(i.t)(r),a-e*Object(i.g)(r)]}var r=Object(i.g)(t),o=t===n?Object(i.t)(t):(r-Object(i.g)(n))/(n-t),a=r/o+t;return Object(i.a)(o)2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)}},function(t,n,e){"use strict";function r(t){function n(t,n){var e=Object(o.h)(t),i=Object(o.h)(n),u=Object(o.y)(n),a=i*e,c=-((1-a?Object(o.p)((1+a)/2)/(1-a):-.5)+r/(1+a));return[c*i*Object(o.y)(t),c*u]}var e=Object(o.F)(t/2),r=2*Object(o.p)(Object(o.h)(t/2))/(e*e);return n.invert=function(n,e){var i,u=Object(o.B)(n*n+e*e),a=-t/2,c=50;if(!u)return[0,0];do{var f=a/2,s=Object(o.h)(f),l=Object(o.y)(f),h=Object(o.F)(f),p=Object(o.p)(1/s);a-=i=(2/h*p-r*h-u)/(-p/(l*l)+1-r/(2*s*s))}while(Object(o.a)(i)>o.k&&--c>0);var v=Object(o.y)(a);return[Object(o.g)(n*v,u*Object(o.h)(a)),Object(o.e)(e*v/u)]},n}n.a=r;var i=e(0),o=e(1);n.b=function(){var t=o.o,n=Object(i.geoProjectionMutator)(r),e=n(t);return e.radius=function(e){return arguments.length?n(t=e*o.v):t*o.j},e.scale(179.976).clipAngle(147)}},function(t,n,e){"use strict";function r(t){function n(t,n){var c=Object(o.h)(n),f=Object(o.h)(t/=2);return[(1+c)*Object(o.y)(t),(i*n>-Object(o.g)(f,u)-.001?0:10*-i)+a+Object(o.y)(n)*r-(1+c)*e*f]}var e=Object(o.y)(t),r=Object(o.h)(t),i=t>=0?1:-1,u=Object(o.F)(i*t),a=(1+e-r)/2;return n.invert=function(t,n){var c=0,f=0,s=50;do{var l=Object(o.h)(c),h=Object(o.y)(c),p=Object(o.h)(f),v=Object(o.y)(f),d=1+p,g=d*h-t,b=a+v*r-d*e*l-n,y=d*l/2,j=-h*v,O=e*d*h/2,_=r*p+e*l*v,m=j*O-_*y,w=(b*j-g*_)/m/2,x=(g*O-b*y)/m;c-=w,f-=x}while((Object(o.a)(w)>o.k||Object(o.a)(x)>o.k)&&--s>0);return i*f>-Object(o.g)(Object(o.h)(c),u)-.001?[2*c,f]:null},n}n.a=r;var i=e(0),o=e(1);n.b=function(){var t=20*o.v,n=t>=0?1:-1,e=Object(o.F)(n*t),u=Object(i.geoProjectionMutator)(r),a=u(t),c=a.stream;return a.parallel=function(r){return arguments.length?(e=Object(o.F)((n=(t=r*o.v)>=0?1:-1)*t),u(t)):t*o.j},a.stream=function(r){var i=a.rotate(),u=c(r),f=(a.rotate([0,0]),c(r));return a.rotate(i),u.sphere=function(){f.polygonStart(),f.lineStart();for(var r=-180*n;n*r<180;r+=90*n)f.point(r,90*n);for(;n*(r-=t)>=-180;)f.point(r,n*-Object(o.g)(Object(o.h)(r*o.v/2),e)*o.j);f.lineEnd(),f.polygonEnd()},u},a.scale(218.695).center([0,28.0974])}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.a)(n);return eo.l&&--c>0);return[t/(Object(o.h)(i)*(u-1/Object(o.y)(i))),Object(o.x)(n)*i]},n.b=function(){return Object(i.geoProjection)(r).scale(112.314)}},function(t,n,e){"use strict";function r(t){function n(t,n){var r=Object(i.geoAzimuthalEquidistantRaw)(t,n);if(Object(o.a)(t)>o.o){var u=Object(o.g)(r[1],r[0]),a=Object(o.B)(r[0]*r[0]+r[1]*r[1]),c=e*Object(o.w)((u-o.o)/e)+o.o,f=Object(o.g)(Object(o.y)(u-=c),2-Object(o.h)(u));u=c+Object(o.e)(o.s/a*Object(o.y)(f))-f,r[0]=a*Object(o.h)(u),r[1]=a*Object(o.y)(u)}return r}var e=2*o.s/t;return n.invert=function(t,n){var r=Object(o.B)(t*t+n*n);if(r>o.o){var u=Object(o.g)(n,t),a=e*Object(o.w)((u-o.o)/e)+o.o,c=u>a?-1:1,f=r*Object(o.h)(a-u),s=1/Object(o.F)(c*Object(o.b)((f-o.s)/Object(o.B)(o.s*(o.s-2*f)+r*r)));u=a+2*Object(o.f)((s+c*Object(o.B)(s*s-3))/3),t=r*Object(o.h)(u),n=r*Object(o.y)(u)}return i.geoAzimuthalEquidistantRaw.invert(t,n)},n}n.a=r;var i=e(0),o=e(1);n.b=function(){var t=5,n=Object(i.geoProjectionMutator)(r),e=n(t),u=e.stream,a=-Object(o.h)(.01*o.v),c=Object(o.y)(.01*o.v);return e.lobes=function(e){return arguments.length?n(t=+e):t},e.stream=function(n){var r=e.rotate(),i=u(n),f=(e.rotate([0,0]),u(n));return e.rotate(r),i.sphere=function(){f.polygonStart(),f.lineStart();for(var n=0,e=360/t,r=2*o.s/t,i=90-180/t,u=o.o;n1||Object(s.a)(o)>1)u=Object(s.b)(e*i+n*r*a);else{var c=Object(s.y)(t/2),f=Object(s.y)(o/2);u=2*Object(s.e)(Object(s.B)(c*c+n*r*f*f))}return Object(s.a)(u)>s.k?[u,Object(s.g)(r*Object(s.y)(o),n*i-e*r*a)]:[0,0]}function i(t,n,e){return Object(s.b)((t*t+n*n-e*e)/(2*t*n))}function o(t){return t-2*s.s*Object(s.n)((t+s.s)/(2*s.s))}function u(t,n,e){for(var u,a=[[t[0],t[1],Object(s.y)(t[1]),Object(s.h)(t[1])],[n[0],n[1],Object(s.y)(n[1]),Object(s.h)(n[1])],[e[0],e[1],Object(s.y)(e[1]),Object(s.h)(e[1])]],c=a[2],f=0;f<3;++f,c=u)u=a[f],c.v=r(u[1]-c[1],c[3],c[2],u[3],u[2],u[0]-c[0]),c.point=[0,0];var l=i(a[0].v[0],a[2].v[0],a[1].v[0]),h=i(a[0].v[0],a[1].v[0],a[2].v[0]),p=s.s-l;a[2].point[1]=0,a[0].point[0]=-(a[1].point[0]=a[0].v[0]/2);var v=[a[2].point[0]=a[0].point[0]+a[2].v[0]*Object(s.h)(l),2*(a[0].point[1]=a[1].point[1]=a[2].v[0]*Object(s.y)(l))];return function(t,n){var e,u=Object(s.y)(n),c=Object(s.h)(n),f=new Array(3);for(e=0;e<3;++e){var l=a[e];if(f[e]=r(n-l[1],l[3],l[2],c,u,t-l[0]),!f[e][0])return l.point;f[e][1]=o(f[e][1]-l.v[1])}var d=v.slice();for(e=0;e<3;++e){var g=2==e?0:e+1,b=i(a[e].v[0],f[e][0],f[g][0]);f[e][1]<0&&(b=-b),e?1==e?(b=h-b,d[0]-=f[e][0]*Object(s.h)(b),d[1]-=f[e][0]*Object(s.y)(b)):(b=p-b,d[0]+=f[e][0]*Object(s.h)(b),d[1]+=f[e][0]*Object(s.y)(b)):(d[0]+=f[e][0]*Object(s.h)(b),d[1]-=f[e][0]*Object(s.y)(b))}return d[0]/=3,d[1]/=3,d}}function a(t){return t[0]*=s.v,t[1]*=s.v,t}function c(t,n,e){var r=Object(f.geoCentroid)({type:"MultiPoint",coordinates:[t,n,e]}),i=[-r[0],-r[1]],o=Object(f.geoRotation)(i),c=Object(f.geoProjection)(u(a(o(t)),a(o(n)),a(o(e)))).rotate(i),s=c.center;return delete c.rotate,c.center=function(t){return arguments.length?s(o(t)):o.invert(s())},c.clipAngle(90)}n.b=u,n.a=function(){return c([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},n.c=c;var f=e(0),s=e(1)},function(t,n,e){"use strict";function r(t){function n(t,n){return[t,(t?t/Object(i.y)(t):1)*(Object(i.y)(n)*Object(i.h)(t)-e*Object(i.h)(n))]}var e=Object(i.F)(t);return n.invert=e?function(t,n){t&&(n*=Object(i.y)(t)/t);var r=Object(i.h)(t);return[t,2*Object(i.g)(Object(i.B)(r*r+e*e-n*n)-r,e-n)]}:function(t,n){return[t,Object(i.e)(t?n*Object(i.F)(t)/t:n)]},n}n.a=r;var i=e(1),o=e(31);n.b=function(){return Object(o.a)(r).scale(249.828).clipAngle(90)}},function(t,n,e){"use strict";function r(t,n){return[u*t*(2*Object(o.h)(2*n/3)-1)/o.E,u*o.E*Object(o.y)(n/3)]}n.a=r;var i=e(0),o=e(1),u=Object(o.B)(3);r.invert=function(t,n){var e=3*Object(o.e)(n/(u*o.E));return[o.E*t/(u*(2*Object(o.h)(2*e/3)-1)),e]},n.b=function(){return Object(i.geoProjection)(r).scale(156.19)}},function(t,n,e){"use strict";function r(t){function n(t,n){return[t*e,(1+e)*Object(i.F)(n/2)]}var e=Object(i.h)(t);return n.invert=function(t,n){return[t/e,2*Object(i.f)(n/(1+e))]},n}n.a=r;var i=e(1),o=e(31);n.b=function(){return Object(o.a)(r).scale(124.75)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.B)(8/(3*o.s));return[e*t*(1-Object(o.a)(n)/o.s),e*n]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=Object(o.B)(8/(3*o.s)),r=n/e;return[t/(e*(1-Object(o.a)(r)/o.s)),r]},n.a=function(){return Object(i.geoProjection)(r).scale(165.664)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.B)(4-3*Object(o.y)(Object(o.a)(n)));return[2/Object(o.B)(6*o.s)*t*e,Object(o.x)(n)*Object(o.B)(2*o.s/3)*(2-e)]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=2-Object(o.a)(n)/Object(o.B)(2*o.s/3);return[t*Object(o.B)(6*o.s)/(2*e),Object(o.x)(n)*Object(o.e)((4-e*e)/3)]},n.a=function(){return Object(i.geoProjection)(r).scale(165.664)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.B)(o.s*(4+o.s));return[2/e*t*(1+Object(o.B)(1-4*n*n/(o.s*o.s))),4/e*n]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=Object(o.B)(o.s*(4+o.s))/2;return[t*e/(1+Object(o.B)(1-n*n*(4+o.s)/(4*o.s))),n*e/2]},n.a=function(){return Object(i.geoProjection)(r).scale(180.739)}},function(t,n,e){"use strict";function r(t,n){var e=(2+o.o)*Object(o.y)(n);n/=2;for(var r=0,i=1/0;r<10&&Object(o.a)(i)>o.k;r++){var u=Object(o.h)(n);n-=i=(n+Object(o.y)(n)*(u+2)-e)/(2*u*(1+u))}return[2/Object(o.B)(o.s*(4+o.s))*t*(1+Object(o.h)(n)),2*Object(o.B)(o.s/(4+o.s))*Object(o.y)(n)]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=n*Object(o.B)((4+o.s)/o.s)/2,r=Object(o.e)(e),i=Object(o.h)(r);return[t/(2/Object(o.B)(o.s*(4+o.s))*(1+i)),Object(o.e)((r+e*(i+2))/(2+o.o))]},n.a=function(){return Object(i.geoProjection)(r).scale(180.739)}},function(t,n,e){"use strict";function r(t,n){return[t*(1+Object(o.h)(n))/Object(o.B)(2+o.s),2*n/Object(o.B)(2+o.s)]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=Object(o.B)(2+o.s),r=n*e/2;return[e*t/(1+Object(o.h)(r)),r]},n.a=function(){return Object(i.geoProjection)(r).scale(173.044)}},function(t,n,e){"use strict";function r(t,n){for(var e=(1+o.o)*Object(o.y)(n),r=0,i=1/0;r<10&&Object(o.a)(i)>o.k;r++)n-=i=(n+Object(o.y)(n)-e)/(1+Object(o.h)(n));return e=Object(o.B)(2+o.s),[t*(1+Object(o.h)(n))/e,2*n/e]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=1+o.o,r=Object(o.B)(e/2);return[2*t*r/(1+Object(o.h)(n*=r)),Object(o.e)((n+Object(o.y)(n))/e)]},n.a=function(){return Object(i.geoProjection)(r).scale(173.044)}},function(t,n,e){"use strict";function r(t,n){var e=Object(u.y)(t/=2),r=Object(u.h)(t),i=Object(u.B)(Object(u.h)(n)),o=Object(u.h)(n/=2),c=Object(u.y)(n)/(o+u.D*r*i),f=Object(u.B)(2/(1+c*c)),s=Object(u.B)((u.D*o+(r+e)*i)/(u.D*o+(r-e)*i));return[a*(f*(s-1/s)-2*Object(u.p)(s)),a*(f*c*(s+1/s)-2*Object(u.f)(c))]}n.b=r;var i=e(0),o=e(130),u=e(1),a=3+2*u.D;r.invert=function(t,n){if(!(e=o.a.invert(t/1.2,1.065*n)))return null;var e,r=e[0],i=e[1],c=20;t/=a,n/=a;do{var f=r/2,s=i/2,l=Object(u.y)(f),h=Object(u.h)(f),p=Object(u.y)(s),v=Object(u.h)(s),d=Object(u.h)(i),g=Object(u.B)(d),b=p/(v+u.D*h*g),y=b*b,j=Object(u.B)(2/(1+y)),O=(u.D*v+(h+l)*g)/(u.D*v+(h-l)*g),_=Object(u.B)(O),m=_-1/_,w=_+1/_,x=j*m-2*Object(u.p)(_)-t,E=j*b*w-2*Object(u.f)(b)-n,M=p&&u.C*g*l*y/p,T=(u.D*h*v+g)/(2*(v+u.D*h*g)*(v+u.D*h*g)*g),S=-.5*b*j*j*j,k=S*M,C=S*T,P=(P=2*v+u.D*g*(h-l))*P*_,N=(u.D*h*v*g+d)/P,R=-u.D*l*p/(g*P),B=m*k-2*N/_+j*(N+N/O),A=m*C-2*R/_+j*(R+R/O),I=b*w*k-2*M/(1+y)+j*w*M+j*b*(N-N/O),L=b*w*C-2*T/(1+y)+j*w*T+j*b*(R-R/O),z=A*I-L*B;if(!z)break;var q=(E*A-x*L)/z,F=(x*I-E*B)/z;r-=q,i=Object(u.q)(-u.o,Object(u.r)(u.o,i-F))}while((Object(u.a)(q)>u.k||Object(u.a)(F)>u.k)&&--c>0);return Object(u.a)(Object(u.a)(i)-u.o)c){var p=Object(a.B)(h),v=Object(a.g)(l,s),d=r*Object(a.w)(v/r),g=v-d,b=t*Object(a.h)(g),y=(t*Object(a.y)(g)-g*Object(a.y)(b))/(a.o-b),j=i(g,y),O=(a.s-t)/o(j,b,a.s);s=p;var _,m=50;do{s-=_=(t+o(j,b,s)*O-p)/(j(s)*O)}while(Object(a.a)(_)>a.k&&--m>0);l=g*Object(a.y)(s),sc){var s=Object(a.B)(f),l=Object(a.g)(e,n),h=r*Object(a.w)(l/r),p=l-h;n=s*Object(a.h)(p),e=s*Object(a.y)(p);for(var v=n-a.o,d=Object(a.y)(n),g=e/d,b=no.k&&--u>0);u=50,t/=1-.162388*a;do{var c=(c=r*r)*c;r-=e=(r*(.87-952426e-9*c)-t)/(.87-.00476213*c)}while(Object(o.a)(e)>o.k&&--u>0);return[r,i]},n.a=function(){return Object(i.geoProjection)(r).scale(131.747)}},function(t,n,e){"use strict";e.d(n,"b",function(){return o});var r=e(0),i=e(52),o=Object(i.a)(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);n.a=function(){return Object(r.geoProjection)(o).scale(131.087)}},function(t,n,e){"use strict";function r(t,n){var e,r,i,u,a;if(n=1-o.k)return e=(1-n)/4,r=Object(o.i)(t),u=Object(o.G)(t),i=1/r,a=r*Object(o.A)(t),[u+e*(a-t)/(r*r),i-e*u*i*(a-t),i+e*u*i*(a+t),2*Object(o.f)(Object(o.m)(t))-o.o+e*(a-t)/r];var c=[1,0,0,0,0,0,0,0,0],f=[Object(o.B)(n),0,0,0,0,0,0,0,0],s=0;for(r=Object(o.B)(1-n),a=1;Object(o.a)(f[s]/c[s])>o.k&&s<8;)e=c[s++],f[s]=(e-r)/2,c[s]=(e+r)/2,r=Object(o.B)(e*r),a*=2;i=a*c[s]*t;do{u=f[s]*Object(o.y)(r=i)/c[s],i=(Object(o.e)(u)+i)/2}while(--s);return[Object(o.y)(i),u=Object(o.h)(i),u/Object(o.h)(i-r),i]}function i(t,n){if(!n)return t;if(1===n)return Object(o.p)(Object(o.F)(t/2+o.u));for(var e=1,r=Object(o.B)(1-n),i=Object(o.B)(n),u=0;Object(o.a)(i)>o.k;u++){if(t%o.s){var a=Object(o.f)(r*Object(o.F)(t)/e);a<0&&(a+=o.s),t+=a+~~(t/o.s)*o.s}else t+=t;i=(e+r)/2,r=Object(o.B)(e*r),i=((e=i)-r)/2}return t/(Object(o.t)(2,u)*e)}n.c=function(t,n,e){var i,o,u;return t?(i=r(t,e),n?(o=r(n,1-e),u=o[1]*o[1]+e*i[0]*i[0]*o[0]*o[0],[[i[0]*o[2]/u,i[1]*i[2]*o[0]*o[1]/u],[i[1]*o[1]/u,-i[0]*i[2]*o[0]*o[2]/u],[i[2]*o[1]*o[2]/u,-e*i[0]*i[1]*o[0]/u]]):[[i[0],0],[i[1],0],[i[2],0]]):(o=r(n,1-e),[[0,o[0]/o[1]],[1/o[1],0],[o[2]/o[1],0]])},n.b=function(t,n,e){var r=Object(o.a)(t),u=Object(o.a)(n),a=Object(o.A)(u);if(r){var c=1/Object(o.y)(r),f=1/(Object(o.F)(r)*Object(o.F)(r)),s=-(f+e*(a*a*c*c)-1+e),l=(e-1)*f,h=(-s+Object(o.B)(s*s-4*l))/2;return[i(Object(o.f)(1/Object(o.B)(h)),e)*Object(o.x)(t),i(Object(o.f)(Object(o.B)((h/f-1)/e)),1-e)*Object(o.x)(n)]}return[0,i(Object(o.f)(a),1-e)*Object(o.x)(n)]},n.a=i;var o=e(1)},function(t,n,e){"use strict";function r(t,n){function e(e,r){var i=Object(o.geoAzimuthalEqualAreaRaw)(e/n,r);return i[0]*=t,i}return arguments.length<2&&(n=t),1===n?o.geoAzimuthalEqualAreaRaw:n===1/0?i:(e.invert=function(e,r){var i=o.geoAzimuthalEqualAreaRaw.invert(e/t,r);return i[0]*=n,i},e)}function i(t,n){return[t*Object(u.h)(n)/Object(u.h)(n/=2),2*Object(u.y)(n)]}n.b=r;var o=e(0),u=e(1);i.invert=function(t,n){var e=2*Object(u.e)(n/2);return[t*Object(u.h)(e/2)/Object(u.h)(e),e]},n.a=function(){var t=2,n=Object(o.geoProjectionMutator)(r),e=n(t);return e.coefficient=function(e){return arguments.length?n(t=+e):t},e.scale(169.529)}},function(t,n,e){"use strict";function r(t){function n(t,n){var i=o(t,n);t=i[0],n=i[1];var a=Object(u.y)(n),c=Object(u.h)(n),f=Object(u.h)(t),s=Object(u.b)(e*a+r*c*f),l=Object(u.y)(s),h=Object(u.a)(l)>u.k?s/l:1;return[h*r*Object(u.y)(t),(Object(u.a)(t)>u.o?h:-h)*(e*c-r*a*f)]}var e=Object(u.y)(t),r=Object(u.h)(t),o=i(t);return o.invert=i(-t),n.invert=function(t,n){var r=Object(u.B)(t*t+n*n),i=-Object(u.y)(r),a=Object(u.h)(r),c=r*a,f=-n*i,s=r*e,l=Object(u.B)(c*c+f*f-s*s),h=Object(u.g)(c*s+f*l,f*s-c*l),p=(r>u.o?-1:1)*Object(u.g)(t*i,r*Object(u.h)(h)*a+n*Object(u.y)(h)*i);return o.invert(p,h)},n}function i(t){var n=Object(u.y)(t),e=Object(u.h)(t);return function(t,r){var i=Object(u.h)(r),o=Object(u.h)(t)*i,a=Object(u.y)(t)*i,c=Object(u.y)(r);return[Object(u.g)(a,o*e-c*n),Object(u.e)(c*e+o*n)]}}n.b=r;var o=e(0),u=e(1);n.a=function(){var t=0,n=Object(o.geoProjectionMutator)(r),e=n(t),i=e.rotate,a=e.stream,c=Object(o.geoCircle)();return e.parallel=function(r){if(!arguments.length)return t*u.j;var i=e.rotate();return n(t=r*u.v).rotate(i)},e.rotate=function(n){return arguments.length?(i.call(e,[n[0],n[1]-t*u.j]),c.center([-n[0],-n[1]]),e):(n=i.call(e),n[1]+=t*u.j,n)},e.stream=function(t){return t=a(t),t.sphere=function(){t.polygonStart();var n,e=c.radius(89.99)().coordinates[0],r=e.length-1,i=-1;for(t.lineStart();++i=0;)t.point((n=e[i])[0],n[1]);t.lineEnd(),t.polygonEnd()},t},e.scale(79.4187).parallel(45).clipAngle(179.999)}},function(t,n,e){"use strict";function r(t){function n(n,f){var v,d=Object(c.a)(f);if(d>e){var g=Object(c.r)(t-1,Object(c.q)(0,Object(c.n)((n+c.s)/l)));n+=c.s*(t-1)/t-g*l,(v=Object(u.a)(n,d))[0]=v[0]*c.H/r-c.H*(t-1)/(2*t)+g*c.H/t,v[1]=i+4*(v[1]-o)*a/c.H,f<0&&(v[1]=-v[1])}else v=s(n,f);return v[0]*=h,v[1]/=p,v}var e=f*c.v,r=Object(u.a)(c.s,e)[0]-Object(u.a)(-c.s,e)[0],i=s(0,e)[1],o=Object(u.a)(0,e)[1],a=c.E-o,l=c.H/t,h=4/c.H,p=i+a*a*4/c.H;return n.invert=function(n,e){n/=h,e*=p;var f=Object(c.a)(e);if(f>i){var v=Object(c.r)(t-1,Object(c.q)(0,Object(c.n)((n+c.s)/l)));n=(n+c.s*(t-1)/t-v*l)*r/c.H;var d=u.a.invert(n,.25*(f-i)*c.H/a+o);return d[0]-=c.s*(t-1)/t-v*l,e<0&&(d[1]=-d[1]),d}return s.invert(n,e)},n}n.b=r;var i=e(14),o=e(0),u=e(72),a=e(132),c=e(1),f=41+48/36+37/3600,s=Object(a.a)(0);n.a=function(){var t=4,n=Object(o.geoProjectionMutator)(r),e=n(t),u=e.stream;return e.lobes=function(e){return arguments.length?n(t=+e):t},e.stream=function(n){var r=e.rotate(),a=u(n),c=(e.rotate([0,0]),u(n));return e.rotate(r),a.sphere=function(){Object(o.geoStream)(function(t){return{type:"Polygon",coordinates:[Object(i.range)(-180,180+t/2,t).map(function(t,n){return[t,1&n?90-1e-6:f]}).concat(Object(i.range)(180,-180-t/2,-t).map(function(t,n){return[t,1&n?1e-6-90:-f]}))]}}(180/t),c)},a},e.scale(239.75)}},function(t,n,e){"use strict";function r(t){function n(n,i){var l,h,p=1-Object(o.y)(i);if(p&&p<2){var v,d=o.o-i,g=25;do{var b=Object(o.y)(d),y=Object(o.h)(d),j=u+Object(o.g)(b,r-y),O=1+s-2*r*y;d-=v=(d-f*u-r*b+O*j-.5*p*e)/(2*r*b*j)}while(Object(o.a)(v)>o.l&&--g>0);l=a*Object(o.B)(O),h=n*j/o.s}else l=a*(t+p),h=n*u/o.s;return[l*Object(o.y)(h),c-l*Object(o.h)(h)]}var e,r=1+t,i=Object(o.y)(1/r),u=Object(o.e)(i),a=2*Object(o.B)(o.s/(e=o.s+4*u*r)),c=.5*a*(r+Object(o.B)(t*(2+t))),f=t*t,s=r*r;return n.invert=function(t,n){var i=t*t+(n-=c)*n,l=(1+s-i/(a*a))/(2*r),h=Object(o.b)(l),p=Object(o.y)(h),v=u+Object(o.g)(p,r-l);return[Object(o.e)(t/Object(o.B)(i))*o.s/v,Object(o.e)(1-2*(h-f*u-r*p+(1+s-2*r*l)*v)/e)]},n}n.b=r;var i=e(0),o=e(1);n.a=function(){var t=1,n=Object(i.geoProjectionMutator)(r),e=n(t);return e.ratio=function(e){return arguments.length?n(t=+e):t},e.scale(167.774).center([0,18.67])}},function(t,n,e){"use strict";var r=e(131),i=e(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];n.a=function(){return Object(i.a)(r.a,o).scale(160.857)}},function(t,n,e){"use strict";var r=e(136),i=e(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];n.a=function(){return Object(i.a)(r.b,o).scale(152.63)}},function(t,n,e){"use strict";var r=e(21),i=e(23),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];n.a=function(){return Object(i.a)(r.d,o).scale(169.529)}},function(t,n,e){"use strict";var r=e(21),i=e(23),o=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];n.a=function(){return Object(i.a)(r.d,o).scale(169.529).rotate([20,0])}},function(t,n,e){"use strict";var r=e(73),i=e(23),o=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];n.a=function(){return Object(i.a)(r.c,o).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,n,e){"use strict";var r=e(38),i=e(23),o=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];n.a=function(){return Object(i.a)(r.b,o).scale(152.63).rotate([-20,0])}},function(t,n,e){"use strict";function r(t,n){return[3/o.H*t*Object(o.B)(o.s*o.s/3-n*n),n]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){return[o.H/3*t/Object(o.B)(o.s*o.s/3-n*n),n]},n.a=function(){return Object(i.geoProjection)(r).scale(158.837)}},function(t,n,e){"use strict";function r(t){function n(n,e){if(Object(o.a)(Object(o.a)(e)-o.o)2)return null;var i=(n/=2)*n,u=(e/=2)*e,a=2*e/(1+i+u);return a=Object(o.t)((1+a)/(1-a),1/t),[Object(o.g)(2*n,1-i-u)/t,Object(o.e)((a-1)/(a+1))]},n}n.b=r;var i=e(0),o=e(1);n.a=function(){var t=.5,n=Object(i.geoProjectionMutator)(r),e=n(t);return e.spacing=function(e){return arguments.length?n(t=+e):t},e.scale(124.75)}},function(t,n,e){"use strict";function r(t,n){return[t*(1+Object(o.B)(Object(o.h)(n)))/2,n/(Object(o.h)(n/2)*Object(o.h)(t/6))]}n.b=r;var i=e(0),o=e(1),u=o.s/o.D;r.invert=function(t,n){var e=Object(o.a)(t),r=Object(o.a)(n),i=o.k,a=o.o;ro.k||Object(o.a)(b)>o.k)&&--i>0);return i&&[e,r]},n.a=function(){return Object(i.geoProjection)(r).scale(139.98)}},function(t,n,e){"use strict";function r(t,n){return[Object(o.y)(t)/Object(o.h)(n),Object(o.F)(n)*Object(o.h)(t)]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=t*t,r=n*n,i=r+1,u=t?o.C*Object(o.B)((i-Object(o.B)(e*e+2*e*(r-1)+i*i))/e+1):1/Object(o.B)(i);return[Object(o.e)(t*u),Object(o.x)(n)*Object(o.b)(u)]},n.a=function(){return Object(i.geoProjection)(r).scale(144.049).clipAngle(89.999)}},function(t,n,e){"use strict";function r(t){function n(n,i){var u=i-t,a=Object(o.a)(u)=0;)h=(l=t[s])[0]+c*(i=h)-f*p,p=l[1]+c*p+f*i;return h=c*(i=h)-f*p,p=c*p+f*i,[h,p]}var e=t.length-1;return n.invert=function(n,r){var i=20,o=n,a=r;do{for(var c,f=e,s=t[f],l=s[0],h=s[1],p=0,v=0;--f>=0;)p=l+o*(c=p)-a*v,v=h+o*v+a*c,l=(s=t[f])[0]+o*(c=l)-a*h,h=s[1]+o*h+a*c;var d,g,b=(p=l+o*(c=p)-a*v)*p+(v=h+o*v+a*c)*v;o-=d=((l=o*(c=l)-a*h-n)*p+(h=o*h+a*c-r)*v)/b,a-=g=(h*p-l*v)/b}while(Object(u.a)(d)+Object(u.a)(g)>u.k*u.k&&--i>0);if(i){var y=Object(u.B)(o*o+a*a),j=2*Object(u.f)(.5*y),O=Object(u.y)(j);return[Object(u.g)(o*O,y*Object(u.h)(j)),y?Object(u.e)(a*O/y):0]}},n}function i(t,n){var e=Object(o.geoProjection)(r(t)).rotate(n).clipAngle(90),i=Object(o.geoRotation)(n),u=e.center;return delete e.rotate,e.center=function(t){return arguments.length?u(i(t)):i.invert(u())},e}n.g=r,n.b=function(){return i(a,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)},n.c=function(){return i(c,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},n.d=function(){return i(f,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},n.f=function(){return i(s,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},n.e=function(){return i(l,[165,10]).scale(250).clipAngle(130).center([-165,-10])},n.a=i;var o=e(0),u=e(1),a=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],c=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],f=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],s=[[.9245,0],[0,0],[.01943,0]],l=[[.721316,0],[0,0],[-.00881625,-.00617325]]},function(t,n,e){"use strict";function r(t,n){var e=Object(o.e)(7*Object(o.y)(n)/(3*u));return[u*t*(2*Object(o.h)(2*e/3)-1)/a,9*Object(o.y)(e/3)/a]}n.b=r;var i=e(0),o=e(1),u=Object(o.B)(6),a=Object(o.B)(7);r.invert=function(t,n){var e=3*Object(o.e)(n*a/9);return[t*a/(u*(2*Object(o.h)(2*e/3)-1)),Object(o.e)(3*Object(o.y)(e)*u/7)]},n.a=function(){return Object(i.geoProjection)(r).scale(164.859)}},function(t,n,e){"use strict";function r(t,n){for(var e,r=(1+o.C)*Object(o.y)(n),i=n,u=0;u<25&&(i-=e=(Object(o.y)(i/2)+Object(o.y)(i)-r)/(.5*Object(o.h)(i/2)+Object(o.h)(i)),!(Object(o.a)(e)o.k&&--i>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]},n.a=function(){return Object(i.geoProjection)(r).scale(175.295)}},function(t,n,e){"use strict";function r(t,n){var e=n*n,r=e*e,i=e*r;return[t*(.84719-.13063*e+i*i*(.05494*e-.04515-.02326*r+.00331*i)),n*(1.01183+r*r*(.01926*e-.02625-.00396*r))]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e,r,i,u,a=n,c=25;do{a-=e=(a*(1.01183+(i=(r=a*a)*r)*i*(.01926*r-.02625-.00396*i))-n)/(1.01183+i*i*(.21186*r-.23625+-.05148*i))}while(Object(o.a)(e)>o.l&&--c>0);return r=a*a,i=r*r,u=r*i,[t/(.84719-.13063*r+u*u*(.05494*r-.04515-.02326*i+.00331*u)),a]},n.a=function(){return Object(i.geoProjection)(r).scale(175.295)}},function(t,n,e){"use strict";function r(t,n){return[t*(1+Object(o.h)(n))/2,2*(n-Object(o.F)(n/2))]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){for(var e=n/2,r=0,i=1/0;r<10&&Object(o.a)(i)>o.k;++r){var u=Object(o.h)(n/2);n-=i=(n-Object(o.F)(n/2)-e)/(1-.5/(u*u))}return[2*t/(1+Object(o.h)(n)),n]},n.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){"use strict";function r(t,n){var e=n*n;return[t,n*(u+e*e*(a+e*(c+f*e)))]}n.b=r;var i=e(0),o=e(1),u=1.0148,a=.23185,c=-.14499,f=.02406,s=u,l=5*a,h=7*c,p=9*f;r.invert=function(t,n){n>1.790857183?n=1.790857183:n<-1.790857183&&(n=-1.790857183);var e,r=n;do{var i=r*r;r-=e=(r*(u+i*i*(a+i*(c+f*i)))-n)/(s+i*i*(l+i*(h+p*i)))}while(Object(o.a)(e)>o.k);return[t,r]},n.a=function(){return Object(i.geoProjection)(r).scale(139.319)}},function(t,n,e){"use strict";function r(t,n){if(Object(o.a)(n)o.k&&--u>0);return a=Object(o.F)(i),[(Object(o.a)(n)0?[-n[0],0]:[180-n[0],180])};var n=c.a.map(function(n){return{face:n,project:t(n)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])}),Object(a.a)(n[0],function(t,e){return n[t<-u.s/2?e<0?6:4:t<0?e<0?2:0:t1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}}},function(t,n,e){"use strict";n.a=function(){}},function(t,n,e){"use strict";n.a=function(t){if((n=t.length)<4)return!1;for(var n,e=0,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++er^p>r&&e<(h-f)*(r-s)/(p-s)+f&&(i=!i)}return i}},function(t,n,e){"use strict";var r=e(133),i=e(75);n.a=function(){return Object(i.a)(r.b).scale(176.423)}},function(t,n,e){"use strict";n.a=function(t,n){function e(t){var e=t.length,r=2,i=new Array(e);for(i[0]=+t[0].toFixed(n),i[1]=+t[1].toFixed(n);ri.k&&--c>0);var h=n*(f=Object(i.F)(a)),p=Object(i.F)(Object(i.a)(r)0?o.o:-o.o)*(l+a*(p-f)/2+a*a*(p-2*l+f)/2)]}n.b=r;var i=e(0),o=e(1),u=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];u.forEach(function(t){t[1]*=1.0144}),r.invert=function(t,n){var e=n/o.o,r=90*e,i=Object(o.r)(18,Object(o.a)(r/5)),a=Object(o.q)(0,Object(o.n)(i));do{var c=u[a][1],f=u[a+1][1],s=u[Object(o.r)(19,a+2)][1],l=s-c,h=s-2*f+c,p=2*(Object(o.a)(e)-f)/l,v=h/l,d=p*(1-v*p*(1-2*v*p));if(d>=0||1===a){r=(n>=0?5:-5)*(d+i);var g,b=50;do{d=(i=Object(o.r)(18,Object(o.a)(r)/5))-(a=Object(o.n)(i)),c=u[a][1],f=u[a+1][1],s=u[Object(o.r)(19,a+2)][1],r-=(g=(n>=0?o.o:-o.o)*(f+d*(s-c)/2+d*d*(s-2*f+c)/2)-n)*o.j}while(Object(o.a)(g)>o.l&&--b>0);break}}while(--a>=0);var y=u[a][0],j=u[a+1][0],O=u[Object(o.r)(19,a+2)][0];return[t/(j+d*(O-y)/2+d*d*(O-2*j+y)/2),r*o.v]},n.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){"use strict";function r(t,n){function e(n,e){var o=r(n,e),a=o[1],c=a*u/(t-1)+i;return[o[0]*i/c,a/c]}var r=function(t){function n(n,e){var r=Object(o.h)(e),i=(t-1)/(t-r*Object(o.h)(n));return[i*r*Object(o.y)(n),i*Object(o.y)(e)]}return n.invert=function(n,e){var r=n*n+e*e,i=Object(o.B)(r),u=(t-Object(o.B)(1-r*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[Object(o.g)(n*u,i*Object(o.B)(1-u*u)),i?Object(o.e)(e*u/i):0]},n}(t);if(!n)return r;var i=Object(o.h)(n),u=Object(o.y)(n);return e.invert=function(n,e){var o=(t-1)/(t-1-e*u);return r.invert(o*n,o*e*i)},e}n.b=r;var i=e(0),o=e(1);n.a=function(){var t=2,n=0,e=Object(i.geoProjectionMutator)(r),u=e(t,n);return u.distance=function(r){return arguments.length?e(t=+r,n):t},u.tilt=function(r){return arguments.length?e(t,n=r*o.v):n*o.j},u.scale(432.147).clipAngle(Object(o.b)(1/t)*o.j-1e-6)}},function(t,n,e){"use strict";function r(t){return t.length>0}function i(t){return t===g||t===y?[0,t]:[h,function(t){return Math.floor(t*l)/l}(t)]}function o(t){var n=t[0],e=t[1],r=!1;return n<=p?(n=h,r=!0):n>=d&&(n=v,r=!0),e<=b?(e=g,r=!0):e>=j&&(e=y,r=!0),r?[n,e]:t}function u(t){return t.map(o)}function a(t,n,e){for(var r=0,u=t.length;r=d||h<=b||h>=j){a[c]=o(s);for(var v=c+1;vp&&yb&&O=f)break;e.push({index:-1,polygon:n,ring:a=a.slice(v-1)}),a[0]=i(a[0][1]),c=-1,f=a.length}}}}function c(t){var n,e,r,i,o,u,a=t.length,c={},f={};for(n=0;no.k&&--c>0);return[Object(o.x)(t)*(Object(o.B)(i*i+4)+i)*o.s/4,o.o*a]},n.a=function(){return Object(i.geoProjection)(r).scale(127.16)}},function(t,n,e){"use strict";e.d(n,"b",function(){return c});var r=e(0),i=e(1),o=e(21),u=4*i.s+3*Object(i.B)(3),a=2*Object(i.B)(2*i.s*Object(i.B)(3)/u),c=Object(o.b)(a*Object(i.B)(3)/i.s,a,u/6);n.a=function(){return Object(r.geoProjection)(c).scale(176.84)}},function(t,n,e){"use strict";function r(t,n){return[t*Object(o.B)(1-3*n*n/(o.s*o.s)),n]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){return[t/Object(o.B)(1-3*n*n/(o.s*o.s)),n]},n.a=function(){return Object(i.geoProjection)(r).scale(152.63)}},function(t,n,e){"use strict";function r(t,n){var e=.90631*Object(o.y)(n),r=Object(o.B)(1-e*e),i=Object(o.B)(2/(1+r*Object(o.h)(t/=3)));return[2.66723*r*i*Object(o.y)(t),1.24104*e*i]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=t/2.66723,r=n/1.24104,i=Object(o.B)(e*e+r*r),u=2*Object(o.e)(i/2);return[3*Object(o.g)(t*Object(o.F)(u),2.66723*i),i&&Object(o.e)(n*Object(o.y)(u)/(1.24104*.90631*i))]},n.a=function(){return Object(i.geoProjection)(r).scale(172.632)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.h)(n),r=Object(o.h)(t)*e,i=1-r,u=Object(o.h)(t=Object(o.g)(Object(o.y)(t)*e,-Object(o.y)(n))),a=Object(o.y)(t);return e=Object(o.B)(1-r*r),[a*e-u*i,-u*e-a*i]}n.b=r;var i=e(0),o=e(1);r.invert=function(t,n){var e=(t*t+n*n)/-2,r=Object(o.B)(-e*(2+e)),i=n*e+t*r,u=t*e-n*r,a=Object(o.B)(u*u+i*i);return[Object(o.g)(r*i,a*(1+e)),a?-Object(o.e)(r*u/a):0]},n.a=function(){return Object(i.geoProjection)(r).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}},function(t,n,e){"use strict";function r(t,n){var e=Object(o.a)(t,n);return[(e[0]+t/u.o)/2,(e[1]+n)/2]}n.b=r;var i=e(0),o=e(129),u=e(1);r.invert=function(t,n){var e=t,r=n,i=25;do{var o,a=Object(u.h)(r),c=Object(u.y)(r),f=Object(u.y)(2*r),s=c*c,l=a*a,h=Object(u.y)(e),p=Object(u.h)(e/2),v=Object(u.y)(e/2),d=v*v,g=1-l*p*p,b=g?Object(u.b)(a*p)*Object(u.B)(o=1/g):o=0,y=.5*(2*b*a*v+e/u.o)-t,j=.5*(b*c+r)-n,O=.5*o*(l*d+b*a*p*s)+.5/u.o,_=o*(h*f/4-b*c*v),m=.125*o*(f*v-b*c*l*h),w=.5*o*(s*p+b*d*a)+.5,x=_*m-w*O,E=(j*_-y*w)/x,M=(y*m-j*O)/x;e-=E,r-=M}while((Object(u.a)(E)>u.k||Object(u.a)(M)>u.k)&&--i>0);return[e,r]},n.a=function(){return Object(i.geoProjection)(r).scale(158.837)}},function(t,n,e){var r=e(11),i=e(54),o=e(140);t.exports=function(t,n){var e=void 0;if(r(n)&&(e=n),i(n)&&(e=function(t){return o(t,n)}),e)for(var u=0;uf&&(f=t),ns&&(s=n)},lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var t=[[a,c],[f,s]];return f=s=-(c=a=1/0),t}};t.geoAlbersUsa=function(){function t(t){var n=t[0],e=t[1];return h=null,f.point(n,e),h||(s.point(n,e),h)||(l.point(n,e),h)}function r(){return a=c=null,t}var a,c,f,s,l,h,p=n.geoAlbers(),v=n.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),d=n.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g={point:function(t,n){h=[t,n]}};return t.invert=function(t){var n=p.scale(),e=p.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?v:i>=.166&&i<.234&&r>=-.214&&r<-.115?d:p).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=.12&&i<.234&&r>=-.425&&r<-.214?b:i>=.166&&i<.234&&r>=-.214&&r<-.115?y:i>=.2064&&i<.2413&&r>=.312&&r<.385?j:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?O:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?_:g).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=.05346&&i<.0897&&r>=-.13388&&r<-.0322?p:h).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=.0093&&i<.03678&&r>=-.03875&&r<-.0116?v:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?d:p).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?p:h).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=.2582&&i<.32&&r>=-.1036&&r<-.087?d:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?g:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?b:v).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?v:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?d:p).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=.029&&i<.0864&&r>=-.14&&r<-.0996?w:i>=0&&i<.029&&r>=-.14&&r<-.0996?x:i>=-.032&&i<0&&r>=-.14&&r<-.0996?E:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?M:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?T:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?S:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?k:i>=-.02&&i<.012&&r>=.0967&&r<.1371?C:i>=.012&&i<.033&&r>=.0967&&r<.1371?P:i>=.033&&i<.0864&&r>=.0967&&r<.1371?N:m).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=-.31&&i<-.24&&r>=.14&&r<.24?w:i>=-.24&&i<-.17&&r>=.14&&r<.24?x:i>=-.17&&i<-.12&&r>=.21&&r<.24?M:i>=-.17&&i<-.14&&r>=.14&&r<.165?T:i>=-.17&&i<-.1&&r>=.14&&r<.24?E:i>=-.1&&i<-.03&&r>=.14&&r<.24?S:i>=-.03&&i<.04&&r>=.14&&r<.24?k:i>=-.31&&i<-.24&&r>=.24&&r<.34?C:i>=-.24&&i<-.17&&r>=.24&&r<.34?P:i>=-.17&&i<-.1&&r>=.24&&r<.34?N:i>=-.1&&i<-.03&&r>=.24&&r<.34?R:m).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=-.0521&&i<.0229&&r>=-.0111&&r<.1?p:h).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i=-.02&&i<0&&r>=-.038&&r<-.005?v:i>=0&&i<.02&&r>=-.038&&r<-.005?d:p).invert(t)},t.stream=function(t){return a&&c===t?a:a=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++ig&&(g=n)}function i(t,n){var e=Object(E.a)([t*M.r,n*M.r]);if(O){var i=Object(E.c)(O,e),o=[i[1],-i[0],0],u=Object(E.c)(o,i);Object(E.e)(u),u=Object(E.g)(u);var a,c=t-b,f=c>0?1:-1,l=u[0]*M.h*f,h=Object(M.a)(c)>180;h^(f*bg&&(g=a):(l=(l+360)%360-180,h^(f*bg&&(g=n))),h?ts(p,d)&&(d=t):s(t,d)>s(p,d)&&(p=t):d>=p?(td&&(d=t)):t>b?s(p,t)>s(p,d)&&(d=t):s(t,d)>s(p,d)&&(p=t)}else r(t,n);O=e,b=t}function o(){k.point=i}function u(){m[0]=p,m[1]=d,k.point=r,O=null}function a(t,n){if(O){var e=t-b;S.add(Object(M.a)(e)>180?e+(e>0?360:-360):e)}else y=t,j=n;x.b.point(t,n),i(t,n)}function c(){x.b.lineStart()}function f(){a(y,j),x.b.lineEnd(),Object(M.a)(S)>M.i&&(p=-(d=180)),m[0]=p,m[1]=d,O=null}function s(t,n){return(n-=t)<0?n+360:n}function l(t,n){return t[0]-n[0]}function h(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nM.i?g=90:S<-M.i&&(v=-90),m[0]=p,m[1]=d}};n.a=function(t){var n,e,r,i,o,u,a;if(g=d=-(p=v=1/0),_=[],Object(T.a)(t,k),e=_.length){for(_.sort(l),n=1,o=[r=_[0]];ns(r[0],r[1])&&(r[1]=i[1]),s(i[0],r[1])>s(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=s(r[1],i[0]))>u&&(u=a,p=i[0],d=r[1])}return _=m=null,p===1/0||v===1/0?[[NaN,NaN],[NaN,NaN]]:[[p,v],[d,g]]}},function(t,n,e){"use strict";function r(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n);i(e*Object(k.g)(t),e*Object(k.t)(t),Object(k.t)(n))}function i(t,n,e){d+=(t-d)/++p,g+=(n-g)/p,b+=(e-b)/p}function o(){N.point=u}function u(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n);M=e*Object(k.g)(t),T=e*Object(k.t)(t),S=Object(k.t)(n),N.point=a,i(M,T,S)}function a(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n),r=e*Object(k.g)(t),o=e*Object(k.t)(t),u=Object(k.t)(n),a=Object(k.e)(Object(k.u)((a=T*u-S*o)*a+(a=S*r-M*u)*a+(a=M*o-T*r)*a),M*r+T*o+S*u);v+=a,y+=a*(M+(M=r)),j+=a*(T+(T=o)),O+=a*(S+(S=u)),i(M,T,S)}function c(){N.point=r}function f(){N.point=l}function s(){h(x,E),N.point=r}function l(t,n){x=t,E=n,t*=k.r,n*=k.r,N.point=h;var e=Object(k.g)(n);M=e*Object(k.g)(t),T=e*Object(k.t)(t),S=Object(k.t)(n),i(M,T,S)}function h(t,n){t*=k.r,n*=k.r;var e=Object(k.g)(n),r=e*Object(k.g)(t),o=e*Object(k.t)(t),u=Object(k.t)(n),a=T*u-S*o,c=S*r-M*u,f=M*o-T*r,s=Object(k.u)(a*a+c*c+f*f),l=M*r+T*o+S*u,h=s&&-Object(k.b)(l)/s,p=Object(k.e)(s,l);_+=h*a,m+=h*c,w+=h*f,v+=p,y+=p*(M+(M=r)),j+=p*(T+(T=o)),O+=p*(S+(S=u)),i(M,T,S)}var p,v,d,g,b,y,j,O,_,m,w,x,E,M,T,S,k=e(5),C=e(25),P=e(26),N={sphere:C.a,point:r,lineStart:o,lineEnd:c,polygonStart:function(){N.lineStart=f,N.lineEnd=s},polygonEnd:function(){N.lineStart=o,N.lineEnd=c}};n.a=function(t){p=v=d=g=b=y=j=O=_=m=w=0,Object(P.a)(t,N);var n=_,e=m,r=w,i=n*n+e*e+r*r;return i0)){if(u/=l,l<0){if(u0){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(u0)){if(u/=h,h<0){if(u0){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(u0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}}},function(t,n,e){"use strict";var r=e(149),i=[null,null],o={type:"LineString",coordinates:i};n.a=function(t,n){return i[0]=t,i[1]=n,Object(r.a)(o)}},function(t,n,e){"use strict";function r(t,n,e){var r=Object(o.range)(t,n-u.i,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function i(t,n,e){var r=Object(o.range)(t,n-u.i,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}var o=e(14),u=e(5);n.a=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Object(o.range)(Object(u.f)(f/O)*O,c,O).map(g).concat(Object(o.range)(Object(u.f)(p/_)*_,h,_).map(b)).concat(Object(o.range)(Object(u.f)(a/y)*y,e,y).filter(function(t){return Object(u.a)(t%O)>u.i}).map(v)).concat(Object(o.range)(Object(u.f)(l/j)*j,s,j).filter(function(t){return Object(u.a)(t%_)>u.i}).map(d))}var e,a,c,f,s,l,h,p,v,d,g,b,y=10,j=y,O=90,_=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[g(f).concat(b(h).slice(1),g(c).reverse().slice(1),b(p).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(f=+n[0][0],c=+n[1][0],p=+n[0][1],h=+n[1][1],f>c&&(n=f,f=c,c=n),p>h&&(n=p,p=h,h=n),t.precision(m)):[[f,p],[c,h]]},t.extentMinor=function(n){return arguments.length?(a=+n[0][0],e=+n[1][0],l=+n[0][1],s=+n[1][1],a>e&&(n=a,a=e,e=n),l>s&&(n=l,l=s,s=n),t.precision(m)):[[a,l],[e,s]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(O=+n[0],_=+n[1],t):[O,_]},t.stepMinor=function(n){return arguments.length?(y=+n[0],j=+n[1],t):[y,j]},t.precision=function(n){return arguments.length?(m=+n,v=r(l,s,90),d=i(a,e,m),g=r(p,h,90),b=i(f,c,m),t):m},t.extentMajor([[-180,-90+u.i],[180,90-u.i]]).extentMinor([[-180,-80-u.i],[180,80+u.i]])}},function(t,n,e){"use strict";var r=e(5);n.a=function(t,n){var e=t[0]*r.r,i=t[1]*r.r,o=n[0]*r.r,u=n[1]*r.r,a=Object(r.g)(i),c=Object(r.t)(i),f=Object(r.g)(u),s=Object(r.t)(u),l=a*Object(r.g)(e),h=a*Object(r.t)(e),p=f*Object(r.g)(o),v=f*Object(r.t)(o),d=2*Object(r.c)(Object(r.u)(Object(r.m)(u-i)+a*f*Object(r.m)(o-e))),g=Object(r.t)(d),b=d?function(t){var n=Object(r.t)(t*=d)/g,e=Object(r.t)(d-t)/g,i=e*l+n*p,o=e*h+n*v,u=e*c+n*s;return[Object(r.e)(o,i)*r.h,Object(r.e)(u,Object(r.u)(i*i+o*o))*r.h]}:function(){return[e*r.h,i*r.h]};return b.distance=d,b}},function(t,n,e){"use strict";var r=e(150),i=e(26),o=e(332),u=e(151),a=e(333),c=e(334),f=e(335);n.a=function(){function t(t){return t&&("function"==typeof h&&l.pointRadius(+h.apply(this,arguments)),Object(i.a)(t,e(l))),l.result()}var n,e,s,l,h=4.5;return t.area=function(t){return Object(i.a)(t,e(o.a)),o.a.result()},t.bounds=function(t){return Object(i.a)(t,e(u.a)),u.a.result()},t.centroid=function(t){return Object(i.a)(t,e(a.a)),a.a.result()},t.projection=function(i){return arguments.length?(e=null==(n=i)?r.a:i.stream,t):n},t.context=function(n){return arguments.length?(l=null==(s=n)?new f.a:new c.a(n),"function"!=typeof h&&l.pointRadius(h),t):s},t.pointRadius=function(n){return arguments.length?(h="function"==typeof n?n:(l.pointRadius(+n),+n),t):h},t.projection(null).context(null)}},function(t,n,e){"use strict";function r(){g.point=i}function i(t,n){g.point=o,a=f=t,c=s=n}function o(t,n){d.add(s*t-f*n),f=t,s=n}function u(){o(a,c)}var a,c,f,s,l=e(42),h=e(5),p=e(25),v=Object(l.a)(),d=Object(l.a)(),g={point:p.a,lineStart:p.a,lineEnd:p.a,polygonStart:function(){g.lineStart=r,g.lineEnd=u},polygonEnd:function(){g.lineStart=g.lineEnd=g.point=p.a,v.add(Object(h.a)(d)),d.reset()},result:function(){var t=v/2;return v.reset(),t}};n.a=g},function(t,n,e){"use strict";function r(t,n){b+=t,y+=n,++j}function i(){M.point=o}function o(t,n){M.point=u,r(v=t,d=n)}function u(t,n){var e=t-v,i=n-d,o=Object(g.u)(e*e+i*i);O+=o*(v+t)/2,_+=o*(d+n)/2,m+=o,r(v=t,d=n)}function a(){M.point=r}function c(){M.point=s}function f(){l(h,p)}function s(t,n){M.point=l,r(h=v=t,p=d=n)}function l(t,n){var e=t-v,i=n-d,o=Object(g.u)(e*e+i*i);O+=o*(v+t)/2,_+=o*(d+n)/2,m+=o,w+=(o=d*t-v*n)*(v+t),x+=o*(d+n),E+=3*o,r(v=t,d=n)}var h,p,v,d,g=e(5),b=0,y=0,j=0,O=0,_=0,m=0,w=0,x=0,E=0,M={point:r,lineStart:i,lineEnd:a,polygonStart:function(){M.lineStart=c,M.lineEnd=f},polygonEnd:function(){M.point=r,M.lineStart=i,M.lineEnd=a},result:function(){var t=E?[w/E,x/E]:m?[O/m,_/m]:j?[b/j,y/j]:[NaN,NaN];return b=y=j=O=_=m=w=x=E=0,t}};n.a=M},function(t,n,e){"use strict";function r(t){this._context=t}n.a=r;var i=e(5),o=e(25);r.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,i.w)}},result:o.a}},function(t,n,e){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}n.a=r,r.prototype={_circle:i(4.5),pointRadius:function(t){return this._circle=i(t),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:this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}}},function(t,n,e){"use strict";var r=e(153),i=e(5);n.a=Object(r.a)(function(){return!0},function(t){var n,e=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,a){var c=u>0?i.o:-i.o,f=Object(i.a)(u-e);Object(i.a)(f-i.o)0?i.l:-i.l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(u,r),n=0):o!==c&&f>=i.o&&(Object(i.a)(e-o)i.i?Object(i.d)((Object(i.t)(n)*(u=Object(i.g)(r))*Object(i.t)(e)-Object(i.t)(r)*(o=Object(i.g)(n))*Object(i.t)(t))/(o*u*a)):(n+r)/2}(e,r,u,a),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),n=0),t.point(e=u,r=a),o=c},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var o;if(null==t)o=e*i.l,r.point(-i.o,o),r.point(0,o),r.point(i.o,o),r.point(i.o,0),r.point(i.o,-o),r.point(0,-o),r.point(-i.o,-o),r.point(-i.o,0),r.point(-i.o,o);else if(Object(i.a)(t[0]-n[0])>i.i){var u=t[0]=0?1:-1,T=M*E,S=T>o.o,k=b*w;if(u.add(Object(o.e)(k*M*Object(o.t)(T),y*x+k*Object(o.g)(T))),c+=S?E+M*o.w:E,S^d>=e^_>=e){var C=Object(i.c)(Object(i.a)(v),Object(i.a)(O));Object(i.e)(C);var P=Object(i.c)(a,C);Object(i.e)(P);var N=(S^E>=0?-1:1)*Object(o.c)(P[2]);(r>N||r===N&&(C[0]||C[1]))&&(f+=S^E>=0?1:-1)}}return(c<-o.i||cs}function c(t,n,e){var i=Object(r.a)(t),u=Object(r.a)(n),a=[1,0,0],c=Object(r.c)(i,u),f=Object(r.d)(c,c),l=c[0],h=f-l*l;if(!h)return!e&&t;var p=s*f/h,v=-s*l/h,d=Object(r.c)(a,c),g=Object(r.f)(a,p),b=Object(r.f)(c,v);Object(r.b)(g,b);var y=d,j=Object(r.d)(g,y),O=Object(r.d)(y,y),_=j*j-O*(Object(r.d)(g,g)-1);if(!(_<0)){var m=Object(o.u)(_),w=Object(r.f)(y,(-j-m)/O);if(Object(r.b)(w,g),w=Object(r.g)(w),!e)return w;var x,E=t[0],M=n[0],T=t[1],S=n[1];M0^w[1]<(Object(o.a)(w[0]-E)o.o^(E<=w[0]&&w[0]<=M)){var N=Object(r.f)(y,(-j+m)/O);return Object(r.b)(N,g),[w,Object(r.g)(N)]}}}function f(n,e){var r=l?t:o.o-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var s=Object(o.g)(t),l=s>0,h=Object(o.a)(s)>o.i;return Object(a.a)(e,function(t){var n,r,i,a,s;return{lineStart:function(){a=i=!1,s=1},point:function(p,v){var d,g=[p,v],b=e(p,v),y=l?b?0:f(p,v):b?f(p+(p<0?o.o:-o.o),v):0;if(!n&&(a=i=b)&&t.lineStart(),b!==i&&(d=c(n,g),(Object(u.a)(n,d)||Object(u.a)(g,d))&&(g[0]+=o.i,g[1]+=o.i,b=e(g[0],g[1]))),b!==i)s=0,b?(t.lineStart(),d=c(g,n),t.point(d[0],d[1])):(d=c(n,g),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(h&&n&&l^b){var j;y&r||!(j=c(g,n,!0))||(s=0,l?(t.lineStart(),t.point(j[0][0],j[0][1]),t.point(j[1][0],j[1][1]),t.lineEnd()):(t.point(j[1][0],j[1][1]),t.lineEnd(),t.lineStart(),t.point(j[0][0],j[0][1])))}!b||n&&Object(u.a)(n,g)||t.point(g[0],g[1]),n=g,i=b,r=y},lineEnd:function(){i&&t.lineEnd(),n=null},clean:function(){return s|(a&&i)<<1}}},function(e,r,o,u){Object(i.a)(u,t,n,o,e,r)},l?[0,-t]:[-o.o,t-o.o])}},function(t,n,e){"use strict";var r=e(43),i=e(5),o=e(81),u=16,a=Object(i.g)(30*i.r);n.a=function(t,n){return+n?function(t,n){function e(r,o,u,c,f,s,l,h,p,v,d,g,b,y){var j=l-r,O=h-o,_=j*j+O*O;if(_>4*n&&b--){var m=c+v,w=f+d,x=s+g,E=Object(i.u)(m*m+w*w+x*x),M=Object(i.c)(x/=E),T=Object(i.a)(Object(i.a)(x)-1)n||Object(i.a)((j*P+O*N)/_-.5)>.3||c*v+f*d+s*g=.12&&i<.234&&r>=-.425&&r<-.214?h:i>=.166&&i<.234&&r>=-.214&&r<-.115?p:l).invert(t)},t.stream=function(t){return n&&e===t?n:n=function(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i0?n<-o.l+o.i&&(n=-o.l+o.i):n>o.l-o.i&&(n=o.l-o.i);var e=c/Object(o.p)(r(n),u);return[e*Object(o.t)(u*t),c-e*Object(o.g)(u*t)]}var i=Object(o.g)(t),u=t===n?Object(o.t)(t):Object(o.n)(i/Object(o.g)(n))/Object(o.n)(r(n)/r(t)),c=i*Object(o.p)(r(t),u)/u;return u?(e.invert=function(t,n){var e=c-n,r=Object(o.s)(u)*Object(o.u)(t*t+e*e);return[Object(o.e)(t,e)/u,2*Object(o.d)(Object(o.p)(c/r,1/u))-o.l]},e):a.c}n.a=i;var o=e(5),u=e(80),a=e(82);n.b=function(){return Object(u.a)(i).scale(109.5).parallels([30,30])}},function(t,n,e){"use strict";function r(t,n){function e(t,n){var e=a-n,r=o*t;return[e*Object(i.t)(r),a-e*Object(i.g)(r)]}var r=Object(i.g)(t),o=t===n?Object(i.t)(t):(r-Object(i.g)(n))/(n-t),a=r/o+t;return Object(i.a)(o)2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)}},function(t,n,e){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new r}var o=Math.PI,u=2*o,a=u-1e-6;r.prototype=i.prototype={constructor:r,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 u=this._x1,a=this._y1,c=e-t,f=r-n,s=u-t,l=a-n,h=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>1e-6)if(Math.abs(l*c-f*s)>1e-6&&i){var p=e-u,v=r-a,d=c*c+f*f,g=p*p+v*v,b=Math.sqrt(d),y=Math.sqrt(h),j=i*Math.tan((o-Math.acos((d+h-g)/(2*b*y)))/2),O=j/y,_=j/b;Math.abs(O-1)>1e-6&&(this._+="L"+(t+O*s)+","+(n+O*l)),this._+="A"+i+","+i+",0,0,"+ +(l*p>s*v)+","+(this._x1=t+_*c)+","+(this._y1=n+_*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,c){t=+t,n=+n;var f=(e=+e)*Math.cos(r),s=e*Math.sin(r),l=t+f,h=n+s,p=1^c,v=c?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+l+","+h),e&&(v<0&&(v=v%u+u),v>a?this._+="A"+e+","+e+",0,1,"+p+","+(t-f)+","+(n-s)+"A"+e+","+e+",0,1,"+p+","+(this._x1=l)+","+(this._y1=h):v>1e-6&&(this._+="A"+e+","+e+",0,"+ +(v>=o)+","+p+","+(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._}},n.a=i},function(t,n,e){var r=e(3),i=e(39);r(i.prototype,{getAllNodes:function(){var t=[],n=this.root;return n.each?n.each(function(n){t.push(n)}):n.eachNode&&n.eachNode(function(n){t.push(n)}),t},getAllLinks:function(){for(var t,n=[],e=[this.root];t=e.pop();){var r=t.children;r&&r.forEach(function(r){n.push({source:t,target:r}),e.push(r)})}return n}}),r(i.prototype,{getAllEdges:i.prototype.getAllLinks})},function(t,n,e){var r=e(3),i=e(83),o=e(15);r(e(39).prototype,{partition:function(t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),o(this.rows,t,n)},group:function(t,n){var e=this.partition(t,n);return i(e)},groups:function(t,n){return this.group(t,n)}})},function(t,n,e){var r=e(9),i=e(6),o=Object.prototype.hasOwnProperty;t.exports=function(t,n){if(!n||!i(t))return t;var e={},u=null;return r(t,function(t){u=n(t),o.call(e,u)?e[u].push(t):e[u]=[t]}),e}},function(t,n,e){var r=e(6),i=e(11),o=e(10);t.exports=function(t,n){void 0===n&&(n=[]);var e;return i(n)?e=n:r(n)?e=function(t,e){for(var r=0;re[i])return 1}return 0}:o(n)&&(e=function(t,e){return t[n]e[n]?1:0}),t.sort(e)}},function(t,n,e){function r(t,n){var e=t.getColumn(n);return u(e)&&u(e[0])&&(e=o(e)),e}var i=e(3),o=e(156),u=e(6),a=e(19),c=e(39),f=e(157);e(84).STATISTICS_METHODS.forEach(function(t){c.prototype[t]=function(n){return a[t](r(this,n))}});var s=a.quantile;i(c.prototype,{average:c.prototype.mean,quantile:function(t,n){return s(r(this,t),n)},quantiles:function(t,n){var e=r(this,t);return n.map(function(t){return s(e,t)})},quantilesByFraction:function(t,n){return this.quantiles(t,f(n))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},function(t,n,e){var r=e(10),i=e(40);(0,e(2).registerConnector)("default",function(t,n){if(r(t)&&(t=n.getView(t)),!t)throw new TypeError("Invalid dataView");return i(t.rows)})},function(t,n){var e=function(){var t={};return function(n){return n=n||"g",t[n]?t[n]+=1:t[n]=1,n+t[n]}}();t.exports=e},function(t,n,e){var r=e(10),i=e(358),o=i.dsvFormat,u=i.csvParse,a=i.tsvParse,c=e(2).registerConnector;c("dsv",function(t,n){void 0===n&&(n={});var e=n.delimiter||",";if(!r(e))throw new TypeError("Invalid delimiter: must be a string!");return o(e).parse(t)}),c("csv",function(t){return u(t)}),c("tsv",function(t){return a(t)})},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(85);e.d(n,"dsvFormat",function(){return r.a});var i=e(359);e.d(n,"csvParse",function(){return i.c}),e.d(n,"csvParseRows",function(){return i.d}),e.d(n,"csvFormat",function(){return i.a}),e.d(n,"csvFormatRows",function(){return i.b});var o=e(360);e.d(n,"tsvParse",function(){return o.c}),e.d(n,"tsvParseRows",function(){return o.d}),e.d(n,"tsvFormat",function(){return o.a}),e.d(n,"tsvFormatRows",function(){return o.b})},function(t,n,e){"use strict";e.d(n,"c",function(){return o}),e.d(n,"d",function(){return u}),e.d(n,"a",function(){return a}),e.d(n,"b",function(){return c});var r=e(85),i=Object(r.a)(","),o=i.parse,u=i.parseRows,a=i.format,c=i.formatRows},function(t,n,e){"use strict";e.d(n,"c",function(){return o}),e.d(n,"d",function(){return u}),e.d(n,"a",function(){return a}),e.d(n,"b",function(){return c});var r=e(85),i=Object(r.a)("\t"),o=i.parse,u=i.parseRows,a=i.format,c=i.formatRows},function(t,n,e){function r(t,n){n.dataType="geo-graticule";var e=i().lines();return e.map(function(t,n){return t.index=""+n,t}),n.rows=e,e}var i=e(0).geoGraticule;(0,e(2).registerConnector)("geo-graticule",r),t.exports=r},function(t,n){t.exports=function(t){var n=[];return t.replace(r,function(t,r,o){var u=r.toLowerCase();for(o=function(t){var n=t.match(i);return n?n.map(Number):[]}(o),"m"==u&&o.length>2&&(n.push([r].concat(o.splice(0,2))),u="l",r="m"==r?"l":"L");;){if(o.length==e[u])return o.unshift(r),n.push(o);if(o.length=0;)n+=e[r].value;else n=1;t.value=n}n.a=function(){return this.eachAfter(r)}},function(t,n,e){"use strict";n.a=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=0;--e)i.push(n[e]);return this}},function(t,n,e){"use strict";n.a=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=0;)e+=r[i].value;n.value=e})}},function(t,n,e){"use strict";n.a=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}},function(t,n,e){"use strict";n.a=function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();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}},function(t,n,e){"use strict";n.a=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.each(function(n){t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n}},function(t,n,e){"use strict";function r(t){return Math.sqrt(t.value)}function i(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function o(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,c=t(e)*n||0;if(c)for(i=0;i0)throw new Error("cycle");return o}var n=r,e=i;return t.id=function(e){return arguments.length?(n=Object(o.b)(e),t):n},t.parentId=function(n){return arguments.length?(e=Object(o.b)(n),t):e},t}},function(t,n,e){"use strict";function r(t,n){return t.parent===n.parent?1:2}function i(t){var n=t.children;return n?n[0]:t.t}function o(t){var n=t.children;return n?n[n.length-1]:t.t}function u(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 a(t,n,e){return t.a.parent===n.parent?t.a:e}function c(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}var f=e(86);c.prototype=Object.create(f.a.prototype),n.a=function(){function t(t){var r=function(t){for(var n,e,r,i,o,u=new c(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 c(r[i],i)),e.parent=n;return(u.parent=new c(null,0)).children=[u],u}(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),p)t.eachBefore(f);else{var i=t,o=t,u=t;t.eachBefore(function(t){t.xo.x&&(o=t),t.depth>u.depth&&(u=t)});var a=i===o?1:s(i,o)/2,v=a-i.x,d=l/(o.x+a+v),g=h/(u.depth||1);t.eachBefore(function(t){t.x=(t.x+v)*d,t.y=t.depth*g})}return t}function n(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n){!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)}(t);var c=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-c):t.z=c}else r&&(t.z=r.z+s(t._,r._));t.parent.A=function(t,n,e){if(n){for(var r,c=t,f=t,l=n,h=c.parent.children[0],p=c.m,v=f.m,d=l.m,g=h.m;l=o(l),c=i(c),l&&c;)h=i(h),(f=o(f)).a=t,(r=l.z+d-c.z-p+s(l._,c._))>0&&(u(a(l,t,e),t,r),p+=r,v+=r),d+=l.m,p+=c.m,g+=h.m,v+=f.m;l&&!o(f)&&(f.t=l,f.m+=d-v),c&&!i(h)&&(h.t=c,h.m+=p-g,e=t)}return e}(t,r,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=l,t.y=t.depth*h}var s=r,l=1,h=1,p=null;return t.separation=function(n){return arguments.length?(s=n,t):s},t.size=function(n){return arguments.length?(p=!1,l=+n[0],h=+n[1],t):p?null:[l,h]},t.nodeSize=function(n){return arguments.length?(p=!0,l=+n[0],h=+n[1],t):p?[l,h]:null},t}},function(t,n,e){"use strict";var r=e(163),i=e(88),o=e(87),u=e(162);n.a=function(){function t(t){return t.x0=t.y0=0,t.x1=c,t.y1=f,t.eachBefore(n),s=[0],a&&t.eachBefore(r.a),t}function n(t){var n=s[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,u=t.y1-n;o=n-1){var f=c[t];return f.x0=r,f.y0=i,f.x1=u,void(f.y1=a)}for(var l=s[t],h=e/2+l,p=t+1,v=n-1;p>>1;s[d]a-i){var y=(r*b+u*g)/e;o(t,p,g,r,i,y,a),o(p,n,b,y,i,u,a)}else{var j=(i*b+a*g)/e;o(t,p,g,r,i,u,j),o(p,n,b,r,j,u,a)}}var u,a,c=t.children,f=c.length,s=new Array(f+1);for(s[0]=a=u=0;u1?n:1)},e}(o.b)},function(t,n,e){function r(t,n,e){var r=n.object;if(!i(r))throw new TypeError("Invalid object: must be a string!");var a=o(t,t.objects[r]);return u(a,n,e)}var i=e(10),o=e(391).feature,u=e(158),a=e(2).registerConnector;a("topojson",r),a("TopoJSON",r)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(164);e.d(n,"bbox",function(){return r.a});var i=e(90);e.d(n,"feature",function(){return i.a});var o=e(393);e.d(n,"mesh",function(){return o.a}),e.d(n,"meshArcs",function(){return o.b});var u=e(394);e.d(n,"merge",function(){return u.a}),e.d(n,"mergeArcs",function(){return u.b});var a=e(395);e.d(n,"neighbors",function(){return a.a});var c=e(397);e.d(n,"quantize",function(){return c.a});var f=e(89);e.d(n,"transform",function(){return f.a});var s=e(167);e.d(n,"untransform",function(){return s.a})},function(t,n,e){"use strict";n.a=function(t,n){for(var e,r=t.length,i=r-n;i<--r;)e=t[i],t[i++]=t[r],t[r]=e}},function(t,n,e){"use strict";function r(t,n,e){var r,i,u;if(arguments.length>1)r=function(t,n,e){function r(t){var n=t<0?~t:t;(f[n]||(f[n]=[])).push({i:t,g:a})}function i(t){t.forEach(r)}function o(t){t.forEach(i)}function u(t){switch(a=t,t.type){case"GeometryCollection":t.geometries.forEach(u);break;case"LineString":i(t.arcs);break;case"MultiLineString":case"Polygon":o(t.arcs);break;case"MultiPolygon":!function(t){t.forEach(o)}(t.arcs)}}var a,c=[],f=[];return u(n),f.forEach(null==e?function(t){c.push(t[0].i)}:function(t){e(t[0].g,t[t.length-1].g)&&c.push(t[0].i)}),c}(0,n,e);else for(i=0,r=new Array(u=t.arcs.length);i1)for(var i,c,f=1,s=u(r[0]);fs&&(c=r[0],r[0]=r[f],r[f]=c,s=i);return r})}}n.b=r;var i=e(90),o=e(166);n.a=function(t){return Object(i.b)(t,r.apply(this,arguments))}},function(t,n,e){"use strict";var r=e(396);n.a=function(t){function n(t,n){t.forEach(function(t){t<0&&(t=~t);var e=o[t];e?e.push(n):o[t]=[n]})}function e(t,e){t.forEach(function(t){n(t,e)})}function i(t,n){"GeometryCollection"===t.type?t.geometries.forEach(function(t){i(t,n)}):t.type in a&&a[t.type](t.arcs,n)}var o={},u=t.map(function(){return[]}),a={LineString:n,MultiLineString:e,Polygon:e,MultiPolygon:function(t,n){t.forEach(function(t){e(t,n)})}};t.forEach(i);for(var c in o)for(var f=o[c],s=f.length,l=0;l>>1;t[i]=2))throw new Error("n must be ≥2");var u,a=(l=t.bbox||Object(r.a)(t))[0],c=l[1],f=l[2],s=l[3];n={scale:[f-a?(f-a)/(u-1):1,s-c?(s-c)/(u-1):1],translate:[a,c]}}var l,h,p=Object(i.a)(n),v=t.objects,d={};for(h in v)d[h]=o(v[h]);return{type:"Topology",bbox:l,transform:n,objects:d,arcs:t.arcs.map(function(t){var n,e=0,r=1,i=t.length,o=new Array(i);for(o[0]=p(t[0],0);++e1&&void 0!==arguments[1]?arguments[1]:[];return r(t,function(t){return!i(n,t)})}},function(t,n,e){var r=e(9),i=e(91);t.exports=function(t,n){if(!i(t))return t;var e=[];return r(t,function(t,r){n(t,r)&&e.push(t)}),e}},function(t,n,e){(0,e(2).registerTransform)("map",function(t,n){void 0===n&&(n={}),t.rows=t.rows.map(n.callback||function(t){return t})})},function(t,n,e){function r(t,n){void 0===n&&(n={}),n=i({},c,n),t.rows=o(u(t.rows,n.groupBy,n.orderBy))}var i=e(3),o=e(83),u=e(15),a=e(2).registerTransform,c={groupBy:[],orderBy:[]};a("partition",function(t,n){void 0===n&&(n={}),n=i({},c,n),t.rows=u(t.rows,n.groupBy,n.orderBy)}),a("group",r),a("groups",r)},function(t,n,e){var r=e(3),i=e(9),o=e(6),u=e(10),a=e(19).sum,c=e(15),f=e(2).registerTransform,s=e(7).getField,l={groupBy:[],as:"_percent"};f("percent",function(t,n){void 0===n&&(n={}),n=r({},l,n);var e=s(n),f=n.dimension,h=n.groupBy,p=n.as;if(!u(f))throw new TypeError("Invalid dimension: must be a string!");if(o(p)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),p=p[0]),!u(p))throw new TypeError("Invalid as: must be a string!");var v=t.rows,d=[],g=c(v,h);i(g,function(t){var n=a(t.map(function(t){return t[e]}));0===n&&console.warn("Invalid data: total sum of field "+e+" is 0!");var r=c(t,[f]);i(r,function(t){var r=a(t.map(function(t){return t[e]})),i=t[0],o=i[f];i[e]=r,i[f]=o,i[p]=0===n?0:r/n,d.push(i)})}),t.rows=d})},function(t,n,e){var r=e(32),i=e(2).registerTransform,o=e(7).getFields;i("pick",function(t,n){void 0===n&&(n={});var e=o(n,t.getColumnNames());t.rows=t.rows.map(function(t){return r(t,e)})})},function(t,n,e){var r=e(3),i=e(9),o=e(6),u=e(10),a=e(15),c=e(2).registerTransform,f=e(7).getField,s={groupBy:[],as:"_proportion"};c("proportion",function(t,n){void 0===n&&(n={}),n=r({},s,n);var e=f(n),c=n.dimension,l=n.groupBy,h=n.as;if(!u(c))throw new TypeError("Invalid dimension: must be a string!");if(o(h)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),h=h[0]),!u(h))throw new TypeError("Invalid as: must be a string!");var p=t.rows,v=[],d=a(p,l);i(d,function(t){var n=t.length,r=a(t,[c]);i(r,function(t){var r=t.length,i=t[0],o=i[c];i[e]=r,i[c]=o,i[h]=r/n,v.push(i)})}),t.rows=v})},function(t,n,e){function r(t,n){void 0===n&&(n={});var e=n.map||{},r={};o(e)&&i(e,function(t,n){u(t)&&u(n)&&(r[n]=t)}),t.rows.forEach(function(t){i(e,function(n,e){var r=t[e];delete t[e],t[n]=r})})}var i=e(9),o=e(54),u=e(10),a=e(2).registerTransform;a("rename",r),a("rename-fields",r)},function(t,n,e){(0,e(2).registerTransform)("reverse",function(t){t.rows.reverse()})},function(t,n,e){(0,e(2).registerTransform)("sort",function(t,n){void 0===n&&(n={});var e=t.getColumnName(0);t.rows.sort(n.callback||function(t,n){return t[e]-n[e]})})},function(t,n,e){function r(t,n){void 0===n&&(n={});var e=a(n,[t.getColumnName(0)]);if(!i(e))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=o(t.rows,e);var r=n.order;if(r&&-1===c.indexOf(r))throw new TypeError("Invalid order: "+r+" must be one of "+c.join(", "));"DESC"===r&&t.rows.reverse()}var i=e(6),o=e(412),u=e(2).registerTransform,a=e(7).getFields,c=["ASC","DESC"];u("sort-by",r),u("sortBy",r)},function(t,n,e){var r=e(10),i=e(11),o=e(6);t.exports=function(t,n){var e=void 0;if(i(n))e=function(t,e){return n(t)-n(e)};else{var u=[];r(n)?u.push(n):o(n)&&(u=n),e=function(t,n){for(var e=0;en[r])return 1;if(t[r]-1&&e.splice(n,1)}),e}function i(t,n){void 0===n&&(n={}),n=o({},f,n);var e=t.rows,i=n.groupBy,c=n.orderBy,s=a(e,i,c),l=0,h=[];u(s,function(t){t.length>l&&(l=t.length,h=t)});var p=[],v={};if(h.forEach(function(t){var n=c.map(function(n){return t[n]}).join("-");p.push(n),v[n]=t}),"order"===n.fillBy){var d=h[0],g=[],b={};e.forEach(function(t){var n=c.map(function(n){return t[n]}).join("-");-1===g.indexOf(n)&&(g.push(n),b[n]=t)});r(g,p).forEach(function(t){var n={};i.forEach(function(t){n[t]=d[t]}),c.forEach(function(e){n[e]=b[t][e]}),e.push(n),h.push(n),p.push(t),v[t]=n}),l=h.length}u(s,function(t){if(t!==h&&t.length=l-t.length)return!0;var u=v[r],a={};return i.forEach(function(t){a[t]=n[t]}),c.forEach(function(t){a[t]=u[t]}),e.push(a),!1})}})}var o=e(3),u=e(9),a=e(15),c=e(2).registerTransform,f={fillBy:"group",groupBy:[],orderBy:[]};c("fill-rows",i),c("fillRows",i)},function(t,n,e){function r(t){return t.filter(function(t){return!c(t)})}var i=e(3),o=e(9),u=e(416),a=e(11),c=e(417),f=e(10),s=e(19),l=e(15),h=e(2).registerTransform,p=e(7).getField,v={groupBy:[]},d=["mean","median","max","min"],g={};d.forEach(function(t){g[t]=function(n,e){return s[t](e)}}),g.value=function(t,n,e){return e},h("impute",function(t,n){void 0===n&&(n={}),n=i({},v,n);var e=p(n),s=n.method;if(!s)throw new TypeError("Invalid method!");if("value"===s&&!u(n,"value"))throw new TypeError("Invalid value: it is nil.");var h=r(t.getColumn(e)),b=l(t.rows,n.groupBy);o(b,function(t){var i=r(t.map(function(t){return t[e]}));0===i.length&&(i=h),t.forEach(function(r){if(c(r[e]))if(a(s))r[e]=s(r,i,n.value,t);else{if(!f(s))throw new TypeError("Invalid method: must be a function or one of "+d.join(", "));r[e]=g[s](r,i,n.value)}})})})},function(t,n){t.exports=function(t,n){return t.hasOwnProperty(n)}},function(t,n){t.exports=function(t){return void 0===t}},function(t,n,e){function r(t,n){n=i({},g,n);var e=d(n);if(!a(e))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var r=n.as||[];c(r)&&(r=[r]);var o=n.operations;c(o)&&(o=[o]);var f=[b];if(a(o)&&o.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),r=o=f),1!==o.length||o[0]!==b){if(o.length!==e.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(r.length!==e.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var s=h(t.rows,n.groupBy),l=[];u(s,function(t){var n=t[0];o.forEach(function(i,o){var u=r[o],a=e[o];n[u]=y[i](t,a)}),l.push(n)}),t.rows=l}var i=e(3),o=e(156),u=e(9),a=e(6),c=e(10),f=e(24),s=e(419),l=e(19),h=e(15),p=e(2).registerTransform,v=e(84).STATISTICS_METHODS,d=e(7).getFields,g={as:[],fields:[],groupBy:[],operations:[]},b="count",y={count:function(t){return t.length},distinct:function(t,n){return s(t.map(function(t){return t[n]})).length}};v.forEach(function(t){y[t]=function(n,e){var r=n.map(function(t){return t[e]});return a(r)&&a(r[0])&&(r=o(r)),l[t](r)}}),y.average=y.mean,p("aggregate",r),p("summary",r),t.exports={VALID_AGGREGATES:f(y)}},function(t,n,e){var r=e(9),i=e(168);t.exports=function(t){var n=[];return r(t,function(t){i(n,t)||n.push(t)}),n}},function(t,n,e){var r=e(3),i=e(6),o=e(56),u=e(421),a=e(57),c=e(2).registerTransform,f=e(7).getFields,s=e(58).silverman,l={as:["x","y"],method:"linear",order:2,precision:2},h=["linear","exponential","logarithmic","power","polynomial"];c("regression",function(t,n){n=r({},l,n);var e=f(n);if(!i(e)||2!==e.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var c=e[0],p=e[1],v=n.method;if(-1===h.indexOf(v))throw new TypeError("invalid method: "+v+". Must be one of "+h.join(", "));var d=t.rows.map(function(t){return[t[c],t[p]]}),g=u[v](d,n),b=n.extent;i(b)&&2===b.length||(b=t.range(c));var y=n.bandwidth;(!o(y)||y<=0)&&(y=s(t.getColumn(c)));var j=a(b,y),O=[],_=n.as,m=_[0],w=_[1];j.forEach(function(t){var n={},e=g.predict(t),r=e[0],i=e[1];n[m]=r,n[w]=i,isFinite(i)&&O.push(n)}),t.rows=O}),t.exports={REGRESSION_METHODS:h}},function(t,n,e){var r,i,o;!function(e,u){i=[t],void 0!==(o="function"==typeof(r=u)?r.apply(n,i):r)&&(t.exports=o)}(0,function(t){"use strict";function n(t,n){var e=[],r=[];t.forEach(function(t,i){null!==t[1]&&(r.push(t),e.push(n[i]))});var i=r.reduce(function(t,n){return t+n[1]},0)/r.length,o=r.reduce(function(t,n){var e=n[1]-i;return t+e*e},0);return 1-r.reduce(function(t,n,r){var i=e[r],o=n[1]-i[1];return t+o*o},0)/o}function e(t,n){var e=Math.pow(10,n);return Math.round(t*e)/e}var r=Object.assign||function(t){for(var n=1;nMath.abs(e[o][u])&&(u=a);for(var c=o;c=o;l--)e[l][s]-=e[l][o]*e[o][s]/e[o][o]}for(var h=r-1;h>=0;h--){for(var p=0,v=h+1;v=0;j--)y+=j>1?d[j]+"x^"+j+" + ":1===j?d[j]+"x + ":d[j];return{string:y,points:b,predict:g,equation:[].concat(function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n=n.minSize&&(u[c].push(t),u[f].push(r))}),E.push(u)})}),t.rows=E}var i=e(3),o=e(9),u=e(9),a=e(6),c=e(11),f=e(56),s=e(10),l=e(24),h=e(32),p=e(57),v=e(92),d=e(58),g=e(15),b=e(2).registerTransform,y=e(7).getFields,j=e(19).kernelDensityEstimation,O={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},_=l(v),m=l(d);b("kernel-density-estimation",r),b("kde",r),b("KDE",r),t.exports={KERNEL_METHODS:_,BANDWIDTH_METHODS:m}},function(t,n,e){function r(t,n,e,r){return Math.sqrt((t-e)*(t-e)+(n-r)*(n-r))}function i(t,n,e){var r=t-e;n/=2;var i=Math.floor(r/n);return[n*(i+(1===Math.abs(i%2)?1:0))+e,n*(i+(1===Math.abs(i%2)?0:1))+e]}function o(t,n){n=u({},l,n);var e=s(n);if(!c(e)||2!==e.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var o=e[0],f=e[1],p=t.range(o),d=t.range(f),g=p[1]-p[0],b=d[1]-d[0],y=n.binWidth||[];if(2!==y.length){var j=n.bins,O=j[0],_=j[1];if(O<=0||_<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");y=[g/O,b/_]}var m=n.offset,w=m[0],x=m[1],E=3*y[0]/(h*y[1]),M=function(t,n,e){void 0===n&&(n=[1,1]),void 0===e&&(e=[0,0]);var o={},u=n,a=u[0],c=u[1],f=e,s=f[0],l=f[1];return t.forEach(function(t){var n,e,u,f=t[0],h=t[1],p=i(f,a,s),v=p[0],d=p[1],g=i(h,c,l),b=g[0],y=g[1];r(f,h,v,b)B&&(B=t.count)}),a(M,function(t){var e=t.x,r=t.y,i=t.count,o={};o[C]=i,n.sizeByCount?(o[S]=N.map(function(n){return e+t.count/B*n[0]}),o[k]=N.map(function(n){return(r+t.count/B*n[1])/E})):(o[S]=N.map(function(t){return e+t[0]}),o[k]=N.map(function(t){return(r+t[1])/E})),R.push(o)}),t.rows=R}var u=e(3),a=e(9),c=e(6),f=e(2).registerTransform,s=e(7).getFields,l={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},h=Math.sqrt(3),p=Math.PI/3,v=[0,p,2*p,3*p,4*p,5*p];f("bin.hexagon",o),f("bin.hex",o),f("hexbin",o)},function(t,n,e){function r(t,n){n=i({},s,n);var e=f(n);if(0!==t.rows.length){var r=t.range(e),c=r[1]-r[0],l=n.binWidth;if(!l){var h=n.bins;if(h<=0)throw new TypeError("Invalid bins: it must be a positive number!");l=c/h}var p=n.offset%l,v=[],d=n.groupBy,g=a(t.rows,d);o(g,function(t){var r={};t.map(function(t){return t[e]}).forEach(function(t){var n=function(t,n,e){var r=t-e,i=Math.floor(r/n);return[i*n+e,(i+1)*n+e]}(t,l,p),e=n[0],i=n[1],o=e+"-"+i;r[o]=r[o]||{x0:e,x1:i,count:0},r[o].count++});var a=n.as,c=a[0],f=a[1];if(!c||!f)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var s=u(t[0],d);o(r,function(t){var n=i({},s);n[c]=[t.x0,t.x1],n[f]=t.count,v.push(n)})}),t.rows=v}}var i=e(3),o=e(9),u=e(32),a=e(15),c=e(2).registerTransform,f=e(7).getField,s={as:["x","count"],bins:30,offset:0,groupBy:[]};c("bin.histogram",r),c("bin.dot",r)},function(t,n,e){var r=e(3),i=e(9),o=e(6),u=e(10),a=e(19).quantile,c=e(15),f=e(157),s=e(2).registerTransform,l=e(7).getField,h={as:"_bin",groupBy:[],fraction:4};s("bin.quantile",function(t,n){n=r({},h,n);var e=l(n),s=n.as;if(!u(s))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var p=n.p,v=n.fraction;o(p)&&0!==p.length||(p=f(v));var d=t.rows,g=n.groupBy,b=c(d,g),y=[];i(b,function(t){var n=t[0],r=t.map(function(t){return t[e]}),i=p.map(function(t){return a(r,t)});n[s]=i,y.push(n)}),t.rows=y})},function(t,n,e){function r(t,n,e){var r=t-e,i=Math.floor(r/n);return[i*n+e,(i+1)*n+e]}function i(t,n){n=o({},f,n);var e=c(n),i=e[0],a=e[1];if(!i||!a)throw new TypeError("Invalid fields: must be an array with 2 strings!");var s=t.range(i),l=t.range(a),h=s[1]-s[0],p=l[1]-l[0],v=n.binWidth||[];if(2!==v.length){var d=n.bins,g=d[0],b=d[1];if(g<=0||b<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");v=[h/g,p/b]}var y=t.rows.map(function(t){return[t[i],t[a]]}),j={},O=n.offset,_=O[0],m=O[1];y.forEach(function(t){var n=r(t[0],v[0],_),e=n[0],i=n[1],o=r(t[1],v[1],m),u=o[0],a=o[1],c=e+"-"+i+"-"+u+"-"+a;j[c]=j[c]||{x0:e,x1:i,y0:u,y1:a,count:0},j[c].count++});var w=[],x=n.as,E=x[0],M=x[1],T=x[2];if(!E||!M||!T)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(n.sizeByCount){var S=0;u(j,function(t){t.count>S&&(S=t.count)}),u(j,function(t){var n=t.x0,e=t.x1,r=t.y0,i=t.y1,o=t.count,u=o/S,a=(n+e)/2,c=(r+i)/2,f=(e-n)*u/2,s=(i-r)*u/2,l=a-f,h=a+f,p=c-s,v=c+s,d={};d[E]=[l,h,h,l],d[M]=[p,p,v,v],d[T]=o,w.push(d)})}else u(j,function(t){var n={};n[E]=[t.x0,t.x1,t.x1,t.x0],n[M]=[t.y0,t.y0,t.y1,t.y1],n[T]=t.count,w.push(n)});t.rows=w}var o=e(3),u=e(9),a=e(2).registerTransform,c=e(7).getFields,f={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};a("bin.rectangle",i),a("bin.rect",i)},function(t,n,e){var r=e(3),i=e(6),o=e(10),u=e(2).registerTransform,a=e(7).getField,c={as:["_centroid_x","_centroid_y"]};u("geo.centroid",function(t,n){n=r({},c,n);var e=a(n),u=n.geoView||n.geoDataView;if(o(u)&&(u=t.dataSet.getView(u)),!u||"geo"!==u.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var f=n.as;if(!i(f)||2!==f.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var s=f[0],l=f[1];t.rows.forEach(function(t){var n=u.geoFeatureByName(t[e]);n&&(u._projectedAs?(t[s]=n[u._projectedAs[2]],t[l]=n[u._projectedAs[3]]):(t[s]=n.centroidX,t[l]=n.centroidY))})})},function(t,n,e){var r=e(3),i=e(0),o=e(159),u=e(6),a=e(2).registerTransform,c=e(141),f=i.geoPath,s={as:["_x","_y","_centroid_x","_centroid_y"]};a("geo.projection",function(t,n){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");var e=(n=r({},s,n)).projection;if(!e)throw new TypeError("Invalid projection!");e=c(e);var i=f(e),a=n.as;if(!u(a)||4!==a.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=a;var l=a[0],h=a[1],p=a[2],v=a[3];t.rows.forEach(function(t){t[l]=[],t[h]=[];var n=i(t);if(n){o(n)._path.forEach(function(n){t[l].push(n[1]),t[h].push(n[2])});var e=i.centroid(t);t[p]=e[0],t[v]=e[1]}}),t.rows=t.rows.filter(function(t){return 0!==t[l].length})})},function(t,n,e){var r=e(3),i=e(6),o=e(10),u=e(2).registerTransform,a=e(7).getField,c={as:["_x","_y"]};u("geo.region",function(t,n){n=r({},c,n);var e=a(n),u=n.geoView||n.geoDataView;if(o(u)&&(u=t.dataSet.getView(u)),!u||"geo"!==u.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var f=n.as;if(!i(f)||2!==f.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var s=f[0],l=f[1];t.rows.forEach(function(t){var n=u.geoFeatureByName(t[e]);n&&(u._projectedAs?(t[s]=n[u._projectedAs[0]],t[l]=n[u._projectedAs[1]]):(t[s]=n.longitude,t[l]=n.latitude))})})},function(t,n,e){function r(t,n){n=i({},s,n);var e={},r=t.nodes,f=t.edges;u(r)&&0!==r.length||(r=function(t,n,e){return void 0===e&&(e={}),t.forEach(function(t){var r=n.edgeSource(t),i=n.edgeTarget(t);e[r]||(e[r]={id:r}),e[i]||(e[i]={id:i})}),a(e)}(f,n,e)),r.forEach(function(t){var r=n.id(t);e[r]=t}),function(t,n,e){o(t,function(t,r){t.inEdges=n.filter(function(t){return""+e.target(t)==""+r}),t.outEdges=n.filter(function(t){return""+e.source(t)==""+r}),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach(function(n){t.value+=e.targetWeight(n)}),t.outEdges.forEach(function(n){t.value+=e.sourceWeight(n)})})}(e,f,n),function(t,n){var e={weight:function(t,n){return n.value-t.value},frequency:function(t,n){return n.frequency-t.frequency},id:function(t,e){return(""+n.id(t)).localeCompare(""+n.id(e))}}[n.sortBy];!e&&c(n.sortBy)&&(e=n.sortBy),e&&t.sort(e)}(r,n),function(t,n){var e=t.length;if(!e)throw new TypeError("Invalid nodes: it's empty!");if(n.weight){var r=n.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var i=r/(2*e),o=n.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var u=0;t.forEach(function(t){u+=t.value}),t.forEach(function(t){t.weight=t.value/u,t.width=t.weight*(1-r),t.height=o}),t.forEach(function(e,r){for(var u=0,a=r-1;a>=0;a--)u+=t[a].width+2*i;var c=e.minX=i+u,f=e.maxX=e.minX+e.width,s=e.minY=n.y-o/2,l=e.maxY=s+o;e.x=[c,f,f,c],e.y=[s,s,l,l]})}else{var a=1/e;t.forEach(function(t,e){t.x=(e+.5)*a,t.y=n.y})}}(r,n),function(t,n,e){if(e.weight){var r={};o(t,function(t,n){r[n]=t.value}),n.forEach(function(n){var i=e.source(n),o=e.target(n),u=t[i],a=t[o];if(u&&a){var c=r[i],f=e.sourceWeight(n),s=u.minX+(u.value-c)/u.value*u.width,l=s+f/u.value*u.width;r[i]-=f;var h=r[o],p=e.targetWeight(n),v=a.minX+(a.value-h)/a.value*a.width,d=v+p/a.value*a.width;r[o]-=p;var g=e.y;n.x=[s,l,v,d],n.y=[g,g,g,g]}})}else n.forEach(function(n){var r=t[e.source(n)],i=t[e.target(n)];r&&i&&(n.x=[r.x,i.x],n.y=[r.y,i.y])})}(e,f,n),t.nodes=r,t.edges=f}var i=e(3),o=e(9),u=e(6),a=e(83),c=e(11),f=e(2).registerTransform,s={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};f("diagram.arc",r),f("arc",r)},function(t,n,e){function r(t,n){n=i({},a,n);var e=new o.graphlib.Graph;e.setGraph({}),e.setDefaultEdgeLabel(function(){return{}}),t.nodes.forEach(function(t){var r=n.nodeId?n.nodeId(t):t.id;t.height||t.width||(t.height=t.width=n.edgesep),e.setNode(r,t)}),t.edges.forEach(function(t){e.setEdge(n.source(t),n.target(t))}),o.layout(e);var r=[],u=[];e.nodes().forEach(function(t){var n=e.node(t),i=n.x,o=n.y,u=n.height,a=n.width;n.x=[i-a/2,i+a/2,i+a/2,i-a/2],n.y=[o+u/2,o+u/2,o-u/2,o-u/2],r.push(n)}),e.edges().forEach(function(t){var n=e.edge(t).points,r={};r.x=n.map(function(t){return t.x}),r.y=n.map(function(t){return t.y}),u.push(r)}),t.nodes=r,t.edges=u}var i=e(3),o=e(432),u=e(2).registerTransform,a={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};u("diagram.dagre",r),u("dagre",r)},function(t,n,e){t.exports={graphlib:e(16),layout:e(448),debug:e(470),util:{time:e(12).time,notime:e(12).notime},version:e(471)}},function(t,n,e){var r=e(434);t.exports={Graph:r.Graph,json:e(438),alg:e(439),version:r.version}},function(t,n,e){t.exports={Graph:e(93),version:e(437)}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("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){t.exports="2.1.5"},function(t,n,e){var r=e(13),i=e(93);t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return r.map(t.nodes(),function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o})}(t),edges:function(t){return r.map(t.edges(),function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i})}(t)};return r.isUndefined(t.graph())||(n.value=r.clone(t.graph())),n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),r.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}}},function(t,n,e){t.exports={components:e(440),dijkstra:e(170),dijkstraAll:e(441),findCycles:e(442),floydWarshall:e(443),isAcyclic:e(444),postorder:e(445),preorder:e(446),prim:e(447),tarjan:e(172),topsort:e(173)}},function(t,n,e){var r=e(13);t.exports=function(t){function n(o){r.has(i,o)||(i[o]=!0,e.push(o),r.each(t.successors(o),n),r.each(t.predecessors(o),n))}var e,i={},o=[];return r.each(t.nodes(),function(t){e=[],n(t),e.length&&o.push(e)}),o}},function(t,n,e){var r=e(170),i=e(13);t.exports=function(t,n,e){return i.transform(t.nodes(),function(i,o){i[o]=r(t,o,n,e)},{})}},function(t,n,e){var r=e(13),i=e(172);t.exports=function(t){return r.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}},function(t,n,e){var r=e(13);t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var o=r[e];i.forEach(function(e){var r=o[t],i=n[e],u=o[e],a=r.distance+i.distance;a0;){if(u=f.removeMin(),r.has(c,u))a.setEdge(u,c[u]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(u).forEach(e)}return a}},function(t,n,e){"use strict";function r(t,n){return o.mapValues(o.pick(t,n),Number)}function i(t){var n={};return o.forEach(t,function(t,e){n[e.toLowerCase()]=t}),n}var o=e(8),u=e(449),a=e(452),c=e(453),f=e(12).normalizeRanks,s=e(455),l=e(12).removeEmptyRanks,h=e(456),p=e(457),v=e(458),d=e(459),g=e(468),b=e(12),y=e(16).Graph;t.exports=function(t,n){var e=n&&n.debugTiming?b.time:b.notime;e("layout",function(){var n=e(" buildLayoutGraph",function(){return function(t){var n=new y({multigraph:!0,compound:!0}),e=i(t.graph());return n.setGraph(o.merge({},O,r(e,j),o.pick(e,_))),o.forEach(t.nodes(),function(e){var u=i(t.node(e));n.setNode(e,o.defaults(r(u,m),w)),n.setParent(e,t.parent(e))}),o.forEach(t.edges(),function(e){var u=i(t.edge(e));n.setEdge(e,o.merge({},E,r(u,x),o.pick(u,M)))}),n}(t)});e(" runLayout",function(){!function(t,n){n(" makeSpaceForEdgeLabels",function(){!function(t){var n=t.graph();n.ranksep/=2,o.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),n(" removeSelfEdges",function(){!function(t){o.forEach(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}(t)}),n(" acyclic",function(){u.run(t)}),n(" nestingGraph.run",function(){h.run(t)}),n(" rank",function(){c(b.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){!function(t){o.forEach(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i={rank:(t.node(n.w).rank-r.rank)/2+r.rank,e:n};b.addDummyNode(t,"edge-proxy",i,"_ep")}})}(t)}),n(" removeEmptyRanks",function(){l(t)}),n(" nestingGraph.cleanup",function(){h.cleanup(t)}),n(" normalizeRanks",function(){f(t)}),n(" assignRankMinMax",function(){!function(t){var n=0;o.forEach(t.nodes(),function(e){var r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=o.max(n,r.maxRank))}),t.graph().maxRank=n}(t)}),n(" removeEdgeLabelProxies",function(){!function(t){o.forEach(t.nodes(),function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}(t)}),n(" normalize.run",function(){a.run(t)}),n(" parentDummyChains",function(){s(t)}),n(" addBorderSegments",function(){p(t)}),n(" order",function(){d(t)}),n(" insertSelfEdges",function(){!function(t){var n=b.buildLayerMatrix(t);o.forEach(n,function(n){var e=0;o.forEach(n,function(n,r){var i=t.node(n);i.order=r+e,o.forEach(i.selfEdges,function(n){b.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:i.rank,order:r+ ++e,e:n.e,label:n.label},"_se")}),delete i.selfEdges})})}(t)}),n(" adjustCoordinateSystem",function(){v.adjust(t)}),n(" position",function(){g(t)}),n(" positionSelfEdges",function(){!function(t){o.forEach(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,u=e.x-i,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*u/3,y:o-a},{x:i+5*u/6,y:o-a},{x:i+u,y:o},{x:i+5*u/6,y:o+a},{x:i+2*u/3,y:o+a}],e.label.x=e.x,e.label.y=e.y}})}(t)}),n(" removeBorderNodes",function(){!function(t){o.forEach(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),i=t.node(e.borderBottom),u=t.node(o.last(e.borderLeft)),a=t.node(o.last(e.borderRight));e.width=Math.abs(a.x-u.x),e.height=Math.abs(i.y-r.y),e.x=u.x+e.width/2,e.y=r.y+e.height/2}}),o.forEach(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}(t)}),n(" normalize.undo",function(){a.undo(t)}),n(" fixupEdgeLabelCoords",function(){!function(t){o.forEach(t.edges(),function(n){var e=t.edge(n);if(o.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}})}(t)}),n(" undoCoordinateSystem",function(){v.undo(t)}),n(" translateGraph",function(){!function(t){function n(t){var n=t.x,o=t.y,a=t.width,c=t.height;e=Math.min(e,n-a/2),r=Math.max(r,n+a/2),i=Math.min(i,o-c/2),u=Math.max(u,o+c/2)}var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,u=0,a=t.graph(),c=a.marginx||0,f=a.marginy||0;o.forEach(t.nodes(),function(e){n(t.node(e))}),o.forEach(t.edges(),function(e){var r=t.edge(e);o.has(r,"x")&&n(r)}),e-=c,i-=f,o.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),o.forEach(t.edges(),function(n){var r=t.edge(n);o.forEach(r.points,function(t){t.x-=e,t.y-=i}),o.has(r,"x")&&(r.x-=e),o.has(r,"y")&&(r.y-=i)}),a.width=r-e+c,a.height=u-i+f}(t)}),n(" assignNodeIntersects",function(){!function(t){o.forEach(t.edges(),function(n){var e,r,i=t.edge(n),o=t.node(n.v),u=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=u,r=o),i.points.unshift(b.intersectRect(o,e)),i.points.push(b.intersectRect(u,r))})}(t)}),n(" reversePoints",function(){!function(t){o.forEach(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}(t)}),n(" acyclic.undo",function(){u.undo(t)})}(n,e)}),e(" updateInputGraph",function(){!function(t,n){o.forEach(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),o.forEach(t.edges(),function(e){var r=t.edge(e),i=n.edge(e);r.points=i.points,o.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)})})};var j=["nodesep","edgesep","ranksep","marginx","marginy"],O={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],m=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"]},function(t,n,e){"use strict";var r=e(8),i=e(450);t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){function n(u){r.has(o,u)||(o[u]=!0,i[u]=!0,r.forEach(t.outEdges(u),function(t){r.has(i,t.w)?e.push(t):n(t.w)}),delete i[u])}var e=[],i={},o={};return r.forEach(t.nodes(),n),e}(t);r.forEach(n,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))})},undo:function(t){r.forEach(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}}},function(t,n,e){function r(t,n,e,r,u){var a=u?[]:void 0;return o.forEach(t.inEdges(r.v),function(r){var o=t.edge(r),c=t.node(r.v);u&&a.push({v:r.v,w:r.w}),c.out-=o,i(n,e,c)}),o.forEach(t.outEdges(r.v),function(r){var o=t.edge(r),u=r.w,a=t.node(u);a.in-=o,i(n,e,a)}),t.removeNode(r.v),a}function i(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}var o=e(8),u=e(16).Graph,a=e(451);t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new u,r=0,c=0;o.forEach(t.nodes(),function(t){e.setNode(t,{v:t,in:0,out:0})}),o.forEach(t.edges(),function(t){var i=e.edge(t.v,t.w)||0,o=n(t),u=i+o;e.setEdge(t.v,t.w,u),c=Math.max(c,e.node(t.v).out+=o),r=Math.max(r,e.node(t.w).in+=o)});var f=o.range(c+r+3).map(function(){return new a}),s=r+1;return o.forEach(e.nodes(),function(t){i(f,s,e.node(t))}),{graph:e,buckets:f,zeroIdx:s}}(t,n||c),f=function(t,n,e){for(var i,o=[],u=n[n.length-1],a=n[0];t.nodeCount();){for(;i=a.dequeue();)r(t,n,e,i);for(;i=u.dequeue();)r(t,n,e,i);if(t.nodeCount())for(var c=n.length-2;c>0;--c)if(i=n[c].dequeue()){o=o.concat(r(t,n,e,i,!0));break}}return o}(e.graph,e.buckets,e.zeroIdx);return o.flatten(o.map(f,function(n){return t.outEdges(n.v,n.w)}),!0)};var c=o.constant(1)},function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return r(n),n},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return"["+t.join(", ")+"]"}},function(t,n,e){"use strict";var r=e(8),i=e(12);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(n){!function(t,n){var e=n.v,r=t.node(e).rank,o=n.w,u=t.node(o).rank,a=n.name,c=t.edge(n),f=c.labelRank;if(u!==r+1){t.removeEdge(n);var s,l,h;for(h=0,++r;ru.lim&&(a=u,c=!0);var f=h.filter(n.edges(),function(n){return c===l(t,t.node(n.v),a)&&c!==l(t,t.node(n.w),a)});return h.minBy(f,function(t){return v(n,t)})}function s(t,n,e,r){var o=e.v,a=e.w;t.removeEdge(o,a),t.setEdge(r.v,r.w,{}),u(t),i(t,n),function(t,n){var e=h.find(t.nodes(),function(t){return!n.node(t).parent}),r=g(t,e);r=r.slice(1),h.forEach(r,function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)})}(t,n)}function l(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}var h=e(8),p=e(175),v=e(59).slack,d=e(59).longestPath,g=e(16).alg.preorder,b=e(16).alg.postorder,y=e(12).simplify;t.exports=r,r.initLowLimValues=u,r.initCutValues=i,r.calcCutValue=o,r.leaveEdge=c,r.enterEdge=f,r.exchangeEdges=s},function(t,n,e){var r=e(8);t.exports=function(t){var n=function(t){function n(o){var u=i;r.forEach(t.children(o),n),e[o]={low:u,lim:i++}}var e={},i=0;return r.forEach(t.children(),n),e}(t);r.forEach(t.graph().dummyChains,function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,u=[],a=[],c=Math.min(n[e].low,n[r].low),f=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),u.push(i)}while(i&&(n[i].low>c||f>n[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:u.concat(a.reverse()),lca:o}}(t,n,i.v,i.w),u=o.path,a=o.lca,c=0,f=u[c],s=!0;e!==i.w;){if(r=t.node(e),s){for(;(f=u[c])!==a&&t.node(f).maxRank=2),p=h.buildLayerMatrix(t);var y=a(t,p);y0;)n%2&&(e+=c[n+1]),c[n=n-1>>1]+=t.weight;f+=t.weight*e})),f}(t,n[i-1],n[i]);return e}},function(t,n,e){function r(t,n,e,c){var f=t.children(n),s=t.node(n),l=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,p={};l&&(f=i.filter(f,function(t){return t!==l&&t!==h}));var v=o(t,f);i.forEach(v,function(n){if(t.children(n.v).length){var o=r(t,n.v,e,c);p[n.v]=o,i.has(o,"barycenter")&&function(t,n){i.isUndefined(t.barycenter)?(t.barycenter=n.barycenter,t.weight=n.weight):(t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight)}(n,o)}});var d=u(v,e);!function(t,n){i.forEach(t,function(t){t.vs=i.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(d,p);var g=a(d,c);if(l&&(g.vs=i.flatten([l,g.vs,h],!0),t.predecessors(l).length)){var b=t.node(t.predecessors(l)[0]),y=t.node(t.predecessors(h)[0]);i.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+b.order+y.order)/(g.weight+2),g.weight+=2}return g}var i=e(8),o=e(463),u=e(464),a=e(465);t.exports=r},function(t,n,e){var r=e(8);t.exports=function(t,n){return r.map(n,function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})}},function(t,n,e){"use strict";var r=e(8);t.exports=function(t,n){var e={};return r.forEach(t,function(t,n){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)}),r.forEach(n.edges(),function(t){var n=e[t.v],i=e[t.w];r.isUndefined(n)||r.isUndefined(i)||(i.indegree++,n.out.push(e[t.w]))}),function(t){function n(t){return function(n){n.merged||(r.isUndefined(n.barycenter)||r.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&function(t,n){var e=0,r=0;t.weight&&(e+=t.barycenter*t.weight,r+=t.weight),n.weight&&(e+=n.barycenter*n.weight,r+=n.weight),t.vs=n.vs.concat(t.vs),t.barycenter=e/r,t.weight=r,t.i=Math.min(n.i,t.i),n.merged=!0}(t,n)}}function e(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(var i=[];t.length;){var o=t.pop();i.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,e(o))}return r.chain(i).filter(function(t){return!t.merged}).map(function(t){return r.pick(t,["vs","i","barycenter","weight"])}).value()}(r.filter(e,function(t){return!t.indegree}))}},function(t,n,e){function r(t,n,e){for(var r;n.length&&(r=i.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}var i=e(8),o=e(12);t.exports=function(t,n){var e=o.partition(t,function(t){return i.has(t,"barycenter")}),u=e.lhs,a=i.sortBy(e.rhs,function(t){return-t.i}),c=[],f=0,s=0,l=0;u.sort(function(t){return function(n,e){return n.barycentere.barycenter?1:t?e.i-n.i:n.i-e.i}}(!!n)),l=r(c,a,l),i.forEach(u,function(t){l+=t.vs.length,c.push(t.vs),f+=t.barycenter*t.weight,s+=t.weight,l=r(c,a,l)});var h={vs:i.flatten(c,!0)};return s&&(h.barycenter=f/s,h.weight=s),h}},function(t,n,e){var r=e(8),i=e(16).Graph;t.exports=function(t,n,e){var o=function(t){for(var n;t.hasNode(n=r.uniqueId("_root")););return n}(t),u=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(n){return t.node(n)});return r.forEach(t.nodes(),function(i){var a=t.node(i),c=t.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(u.setNode(i),u.setParent(i,c||o),r.forEach(t[e](i),function(n){var e=n.v===i?n.w:n.v,o=u.edge(e,i),a=r.isUndefined(o)?0:o.weight;u.setEdge(e,i,{weight:t.edge(n).weight+a})}),r.has(a,"minRank")&&u.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),u}},function(t,n,e){var r=e(8);t.exports=function(t,n,e){var i,o={};r.forEach(e,function(e){for(var r,u,a=t.parent(e);a;){if((r=t.parent(a))?(u=o[r],o[r]=a):(u=i,i=a),u&&u!==a)return void n.setEdge(u,a);a=r}})}},function(t,n,e){"use strict";var r=e(8),i=e(12),o=e(469).positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,function(n){var i=r.max(r.map(n,function(n){return t.node(n).height}));r.forEach(n,function(n){t.node(n).y=o+i/2}),o+=i+e})})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),function(n,e){t.node(e).x=n})}},function(t,n,e){"use strict";function r(t,n){var e={};return h.reduce(n,function(n,r){var i=0,u=0,a=n.length,c=h.last(r);return h.forEach(r,function(n,f){var s=function(t,n){if(t.node(n).dummy)return h.find(t.predecessors(n),function(n){return t.node(n).dummy})}(t,n),l=s?t.node(s).order:a;(s||n===c)&&(h.forEach(r.slice(u,f+1),function(n){h.forEach(t.predecessors(n),function(r){var u=t.node(r),a=u.order;!(aa)&&o(r,n,c)})})}var r={};return h.reduce(n,function(n,r){var i,o=-1,u=0;return h.forEach(r,function(a,c){if("border"===t.node(a).dummy){var f=t.predecessors(a);f.length&&(i=t.node(f[0]).order,e(r,u,c,o,i),u=c,o=i)}e(r,u,r.length,i,n.length)}),r}),r}function o(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function u(t,n,e){if(n>e){var r=n;n=e,e=r}return h.has(t[n],e)}function a(t,n,e,r){var i={},o={},a={};return h.forEach(n,function(t){h.forEach(t,function(t,n){i[t]=t,o[t]=t,a[t]=n})}),h.forEach(n,function(t){var n=-1;h.forEach(t,function(t){var c=r(t);if(c.length)for(var f=((c=h.sortBy(c,function(t){return a[t]})).length-1)/2,s=Math.floor(f),l=Math.ceil(f);s<=l;++s){var p=c[s];o[t]===t&&n0&&(n.y0+=e,n.y1+=e),i=n.y1+m;if((e=i-m-O)>0)for(i=n.y0-=e,n.y1-=e,r=u-2;r>=0;--r)n=t[r],(e=n.y1+m-i)>0&&(n.y0-=e,n.y1-=e),i=n.y0})}var e=Object(d.b)().key(function(t){return t.x0}).sortKeys(v.ascending).entries(t.nodes).map(function(t){return t.values});(function(){var n=Object(v.min)(e,function(t){return(O-y-(t.length-1)*m)/Object(v.sum)(t,u)});e.forEach(function(t){t.forEach(function(t,e){t.y1=(t.y0=e)+t.value*n})}),t.links.forEach(function(t){t.width=t.value*n})})(),n();for(var r=1,i=T;i>0;--i)!function(t){e.slice().reverse().forEach(function(n){n.forEach(function(n){if(n.sourceLinks.length){var e=(Object(v.sum)(n.sourceLinks,f)/Object(v.sum)(n.sourceLinks,u)-a(n))*t;n.y0+=e,n.y1+=e}})})}(r*=.99),n(),function(t){e.forEach(function(n){n.forEach(function(n){if(n.targetLinks.length){var e=(Object(v.sum)(n.targetLinks,c)/Object(v.sum)(n.targetLinks,u)-a(n))*t;n.y0+=e,n.y1+=e}})})}(r),n()}(t),n(t),t}function n(t){t.nodes.forEach(function(t){t.sourceLinks.sort(i),t.targetLinks.sort(r)}),t.nodes.forEach(function(t){var n=t.y0,e=n;t.sourceLinks.forEach(function(t){t.y0=n+t.width/2,n+=t.width}),t.targetLinks.forEach(function(t){t.y1=e+t.width/2,e+=t.width})})}var e=0,y=0,j=1,O=1,_=24,m=8,w=s,x=g.b,E=l,M=h,T=32;return t.update=function(t){return n(t),t},t.nodeId=function(n){return arguments.length?(w="function"==typeof n?n:Object(b.a)(n),t):w},t.nodeAlign=function(n){return arguments.length?(x="function"==typeof n?n:Object(b.a)(n),t):x},t.nodeWidth=function(n){return arguments.length?(_=+n,t):_},t.nodePadding=function(n){return arguments.length?(m=+n,t):m},t.nodes=function(n){return arguments.length?(E="function"==typeof n?n:Object(b.a)(n),t):E},t.links=function(n){return arguments.length?(M="function"==typeof n?n:Object(b.a)(n),t):M},t.size=function(n){return arguments.length?(e=y=0,j=+n[0],O=+n[1],t):[j-e,O-y]},t.extent=function(n){return arguments.length?(e=+n[0][0],j=+n[1][0],y=+n[0][1],O=+n[1][1],t):[[e,y],[j,O]]},t.iterations=function(n){return arguments.length?(T=+n,t):T},t}},function(t,n,e){"use strict";var r=e(476);e.d(n,"b",function(){return r.a});e(477);var i=e(94);e.d(n,"a",function(){return i.a});e(478),e(479),e(480)},function(t,n,e){"use strict";function r(){return{}}function i(t,n,e){t[n]=e}function o(){return Object(a.a)()}function u(t,n,e){t.set(n,e)}var a=e(94);n.a=function(){function t(n,r,i,o){if(r>=s.length)return null!=e&&n.sort(e),null!=c?c(n):n;for(var u,f,l,h=-1,p=n.length,v=s[r++],d=Object(a.a)(),g=i();++hs.length)return t;var r,i=l[e-1];return null!=c&&e>=s.length?r=t.entries():(r=[],t.each(function(t,i){r.push({key:i,values:n(t,e)})})),null!=i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,c,f,s=[],l=[];return f={object:function(n){return t(n,0,r,i)},map:function(n){return t(n,0,o,u)},entries:function(e){return n(t(e,0,o,u),0)},key:function(t){return s.push(t),f},sortKeys:function(t){return l[s.length-1]=t,f},sortValues:function(t){return e=t,f},rollup:function(t){return c=t,f}}}},function(t,n,e){"use strict";function r(){}function i(t,n){var e=new r;if(t instanceof r)t.each(function(t){e.add(t)});else if(t){var i=-1,o=t.length;if(null==n)for(;++it?1:n>=t?0:NaN}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";e(178),e(177),e(179)},function(t,n,e){"use strict";function r(t){return t.source}function i(t){return t.target}function o(t){function n(){var n,r=c.a.call(arguments),i=e.apply(this,r),f=o.apply(this,r);if(h||(h=n=Object(a.path)()),t(h,+u.apply(this,(r[0]=i,r)),+l.apply(this,r),+u.apply(this,(r[0]=f,r)),+l.apply(this,r)),n)return h=null,n+""||null}var e=r,o=i,u=s.a,l=s.b,h=null;return n.source=function(t){return arguments.length?(e=t,n):e},n.target=function(t){return arguments.length?(o=t,n):o},n.x=function(t){return arguments.length?(u="function"==typeof t?t:Object(f.a)(+t),n):u},n.y=function(t){return arguments.length?(l="function"==typeof t?t:Object(f.a)(+t),n):l},n.context=function(t){return arguments.length?(h=null==t?null:t,n):h},n}function u(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}n.a=function(){return o(u)};var a=e(33),c=e(181),f=e(27),s=e(96);e(180)},function(t,n,e){"use strict";e(33);var r=e(182),i=e(183),o=e(184),u=e(185),a=e(186),c=e(187),f=e(188);e(27),r.a,i.a,o.a,a.a,u.a,c.a,f.a},function(t,n,e){"use strict";function r(t){this._context=t}var i=e(61),o=e(62);r.prototype={areaStart:i.a,areaEnd:i.a,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:Object(o.b)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},function(t,n,e){"use strict";function r(t){this._context=t}var i=e(62);r.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:Object(i.b)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},function(t,n,e){"use strict";function r(t,n){this._basis=new i.a(t),this._beta=n}var i=e(62);r.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)}};(function t(n){function e(t){return 1===n?new i.a(t):new r(t,n)}return e.beta=function(n){return t(+n)},e})(.85)},function(t,n,e){"use strict";function r(t,n){this._context=t,this._alpha=n}var i=e(189),o=e(61),u=e(97);r.prototype={areaStart:o.a,areaEnd:o.a,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:Object(u.a)(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}};(function t(n){function e(t){return n?new r(t,n):new i.a(t,0)}return e.alpha=function(n){return t(+n)},e})(.5)},function(t,n,e){"use strict";function r(t,n){this._context=t,this._alpha=n}var i=e(190),o=e(97);r.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:Object(o.a)(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}};(function t(n){function e(t){return n?new r(t,n):new i.a(t,0)}return e.alpha=function(n){return t(+n)},e})(.5)},function(t,n,e){"use strict";function r(t){this._context=t}var i=e(61);r.prototype={areaStart:i.a,areaEnd:i.a,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))}}},function(t,n,e){"use strict";function r(t){return t<0?-1:1}function i(t,n,e){var i=t._x1-t._x0,o=n-t._x1,u=(t._y1-t._y0)/(i||o<0&&-0),a=(e-t._y1)/(o||i<0&&-0),c=(u*o+a*i)/(i+o);return(r(u)+r(a))*Math.min(Math.abs(u),Math.abs(a),.5*Math.abs(c))||0}function o(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function u(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 a(t){this._context=t}function c(t){this._context=new f(t)}function f(t){this._context=t}a.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:u(this,this._t0,o(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(t=+t,n=+n,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,u(this,o(this,e=i(this,t,n)),e);break;default:u(this,this._t0,e=i(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(c.prototype=Object.create(a.prototype)).point=function(t,n){a.prototype.point.call(this,n,t)},f.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)}}},function(t,n,e){"use strict";function r(t){this._context=t}function i(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=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n=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}}},function(t,n,e){"use strict";e(181),e(27),e(47),e(48)},function(t,n,e){"use strict";e(47)},function(t,n,e){"use strict"},function(t,n,e){"use strict";e(47)},function(t,n,e){"use strict";e(47)},function(t,n,e){"use strict";e(98)},function(t,n,e){"use strict";e(48),e(98)},function(t,n,e){"use strict";e(48)},function(t,n,e){function r(t,n){var e=(n=i({},f,n)).as;if(!u(e)||2!==e.length)throw new TypeError("Invalid as: must be an array with two strings!");var r=e[0],a=e[1],s=c(n);if(!u(s)&&2!==s.length)throw new TypeError("Invalid fields: must be an array with two strings!");var l=s[0],h=s[1],p=t.rows,v=p.map(function(t){return[t[l],t[h]]}),d=o.voronoi();n.extend&&d.extent(n.extend),n.size&&d.size(n.size);var g=d(v).polygons();p.forEach(function(t,n){var e=g[n].filter(function(t){return!!t});t[r]=e.map(function(t){return t[0]}),t[a]=e.map(function(t){return t[1]})})}var i=e(3),o=e(509),u=e(6),a=e(2).registerTransform,c=e(7).getFields,f={as:["_x","_y"]};a("diagram.voronoi",r),a("voronoi",r)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(510);e.d(n,"voronoi",function(){return r.a})},function(t,n,e){"use strict";var r=e(511),i=e(512),o=e(49);n.a=function(){function t(t){return new o.d(t.map(function(r,i){var u=[Math.round(n(r,i,t)/o.f)*o.f,Math.round(e(r,i,t)/o.f)*o.f];return u.index=i,u.data=r,u}),u)}var n=i.a,e=i.b,u=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(r.a)(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:Object(r.a)(+n),t):e},t.extent=function(n){return arguments.length?(u=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):u&&[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},t.size=function(n){return arguments.length?(u=null==n?null:[[0,0],[+n[0],+n[1]]],t):u&&[u[1][0]-u[0][0],u[1][1]-u[0][1]]},t}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";n.a=function(t){return t[0]},n.b=function(t){return t[1]}},function(t,n,e){"use strict";function r(t){var n=l.pop()||new function(){Object(u.a)(this),this.edge=this.site=this.circle=null};return n.site=t,n}function i(t){Object(c.b)(t),s.a.remove(t),l.push(t),Object(u.a)(t)}function o(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}n.b=function(t){var n=t.circle,e=n.x,r=n.cy,o=[e,r],u=t.P,a=t.N,l=[t];i(t);for(var h=u;h.circle&&Math.abs(e-h.circle.x)s.f)p=p.L;else{if(!((u=l-function(t,n){var e=t.N;if(e)return o(e,n);var r=t.site;return r[1]===n?r[0]:1/0}(p,h))>s.f)){i>-s.f?(n=p.P,e=p):u>-s.f?(n=p,e=p.N):n=e=p;break}if(!p.R){n=p;break}p=p.R}Object(a.c)(t);var v=r(t);if(s.a.insert(n,v),n||e){if(n===e)return Object(c.b)(n),e=r(n.site),s.a.insert(v,e),v.edge=e.edge=Object(f.c)(n.site,v.site),Object(c.a)(n),void Object(c.a)(e);if(e){Object(c.b)(n),Object(c.b)(e);var d=n.site,g=d[0],b=d[1],y=t[0]-g,j=t[1]-b,O=e.site,_=O[0]-g,m=O[1]-b,w=2*(y*m-j*_),x=y*y+j*j,E=_*_+m*m,M=[(m*x-j*E)/w+g,(y*E-_*x)/w+b];Object(f.d)(e.edge,d,O,M),v.edge=Object(f.c)(d,t,null,M),e.edge=Object(f.c)(t,O,null,M),Object(c.a)(n),Object(c.a)(e)}else v.edge=Object(f.c)(n.site,v.site)}};var u=e(99),a=e(191),c=e(192),f=e(100),s=e(49),l=[]},function(t,n,e){function r(t,n){if(t.dataType!==c)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var e=t.root,r=(n=i({},l,n)).as;if(!u(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var a;try{a=s(n)}catch(t){console.warn(t)}a&&e.sum(function(t){return t[a]});var f=o.cluster();f.size(n.size),n.nodeSize&&f.nodeSize(n.nodeSize),n.separation&&f.separation(n.separation),f(e);var h=r[0],p=r[1];e.each(function(t){t[h]=t.x,t[p]=t.y})}var i=e(3),o=e(34),u=e(6),a=e(2),c=a.HIERARCHY,f=a.registerTransform,s=e(7).getField,l={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};f("hierarchy.cluster",r),f("dendrogram",r)},function(t,n,e){function r(t,n){var e=t.root;if(n=Object.assign({},c,n),t.dataType!==u)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=i.compactBox(e,n)}var i=e(101),o=e(2),u=o.HIERARCHY,a=o.registerTransform,c={};a("hierarchy.compact-box",r),a("compact-box-tree",r),a("non-layered-tidy-tree",r),a("mindmap-logical",r)},function(t,n,e){var r=e(64),i=e(517),o=e(102),u=e(28),a=function(t){function n(){return t.apply(this,arguments)||this}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);return n.prototype.execute=function(){return o(this.rootNode,this.options,i)},n}(r),c={};t.exports=function(t,n){return n=u.assign({},c,n),new a(t,n).execute()}},function(t,n){function e(t,n,e,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=n||0,i.y=e||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,n,e){e?t.y+=n:t.x+=n,t.children.forEach(function(t){r(t,n,e)})}function i(t,n){var e=n?t.y:t.x;return t.children.forEach(function(t){e=Math.min(i(t,n),e)}),e}function o(t,n,e){e?n.y=t.x:n.x=t.x,t.c.forEach(function(t,r){o(t,n.children[r],e)})}function u(t,n,e){void 0===e&&(e=0),n?(t.x=e,e+=t.width):(t.y=e,e+=t.height),t.children.forEach(function(t){u(t,n,e)})}e.fromNode=function(t,n){if(!t)return null;var r=[];return t.children.forEach(function(t){r.push(e.fromNode(t,n))}),n?new e(t.height,t.width,t.x,r):new e(t.width,t.height,t.y,r)},t.exports=function(t,n){function a(t){if(0!==t.cs){a(t.c[0]);for(var n=l(f(t.c[0].el),0,null),e=1;ee.low&&(e=e.nxt);var a=i+r.prelim+r.w-(u+o.prelim);a>0&&(u+=a,function(t,n,e,r){t.c[n].mod+=r,t.c[n].msel+=r,t.c[n].mser+=r,function(t,n,e,r){if(e!==n-1){var i=n-e;t.c[e+1].shift+=r/i,t.c[n].shift-=r/i,t.c[n].change-=r-r/i}}(t,n,e,r)}(t,n,e.index,a));var c=f(r),s=f(o);c<=s&&null!==(r=function(t){return 0===t.cs?t.tr:t.c[t.cs-1]}(r))&&(i+=r.mod),c>=s&&null!==(o=function(t){return 0===t.cs?t.tl:t.c[0]}(o))&&(u+=o.mod)}!r&&o?function(t,n,e,r){var i=t.c[0].el;i.tl=e;var o=r-e.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[n].el,t.c[0].msel=t.c[n].msel}(t,n,o,u):r&&!o&&function(t,n,e,r){var i=t.c[n].er;i.tr=e;var o=r-e.mod-t.c[n].mser;i.mod+=o,i.prelim-=o,t.c[n].er=t.c[n-1].er,t.c[n].mser=t.c[n-1].mser}(t,n,r,i)}(t,e,n),n=l(r,e,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(t),c(t)}else c(t)}function c(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function f(t){return t.y+t.h}function s(t,n){n+=t.mod,t.x=t.prelim+n,function(t){for(var n=0,e=0,r=0;r=e.low;)e=e.nxt;return{low:t,index:n,nxt:e}}void 0===n&&(n={});var h=n.isHorizontal;u(t,h);var p=e.fromNode(t,h);return a(p),s(p,0),o(p,t,h),function(t,n){r(t,-i(t,n),n)}(t,h),t}},function(t,n,e){var r=e(64),i=e(519),o=e(102),u=e(28),a=function(t){function n(){return t.apply(this,arguments)||this}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);return n.prototype.execute=function(){return this.rootNode.width=0,o(this.rootNode,this.options,i)},n}(r),c={};t.exports=function(t,n){return n=u.assign({},c,n),new a(t,n).execute()}},function(t,n,e){function r(t,n,e){e?(n.x=t.x,n.y=t.y):(n.x=t.y,n.y=t.x),t.children.forEach(function(t,i){r(t,n.children[i],e)})}var i=e(28),o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,n){function e(t){if(!t)return null;t.width=0,t.depth&&t.depth>f&&(f=t.depth);var n=t.children,r=n.length,i=new function(t,n){void 0===t&&(t=0),void 0===n&&(n=[]);var e=this;e.x=e.y=0,e.leftChild=e.rightChild=null,e.height=0,e.children=n}(t.height,[]);return n.forEach(function(t,n){var o=e(t);i.children.push(o),0===n&&(i.leftChild=o),n===r-1&&(i.rightChild=o)}),i.originNode=t,i.isLeaf=t.isLeaf(),i}function u(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=f;else{var n=t.children.map(function(t){return u(t)}),e=Math.min.apply(null,n);t.drawingDepth=e-1}return t.drawingDepth}function a(t){t.x=t.drawingDepth*n.rankSep,t.isLeaf?(t.y=0,c&&(t.y=c.y+c.height+n.nodeSep,t.originNode.parent!==c.originNode.parent&&(t.y+=n.subTreeSep)),c=t):(t.children.forEach(function(t){a(t)}),t.y=(t.leftChild.y+t.rightChild.y)/2)}void 0===n&&(n={}),n=i.assign({},o,n);var c,f=0,s=e(t);return u(s),a(s),r(s,t,n.isHorizontal),t}},function(t,n,e){var r=e(64),i=e(521),o=e(194),u=e(28),a=["LR","RL","H"],c=a[0],f=function(t){function n(){return t.apply(this,arguments)||this}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);return n.prototype.execute=function(){var t=this.options,n=this.rootNode;t.isHorizontal=!0;var e=t.indent,r=t.direction||c;if(r&&-1===a.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===a[0])i(n,e);else if(r===a[1])i(n,e),n.right2left();else if(r===a[2]){var u=o(n,t),f=u.left,s=u.right;i(f,e),f.right2left(),i(s,e);var l=f.getBoundingBox();s.translate(l.width,0),n.x=s.x-n.width/2}return n},n}(r),s={};t.exports=function(t,n){return n=u.assign({},s,n),new f(t,n).execute()}},function(t,n){t.exports=function(t,n){void 0===n&&(n=20);var e=null;t.eachNode(function(t){!function(t,n,e){t.x+=e*t.depth,t.y=n?n.y+n.height:0}(t,e,n),e=t})}},function(t,n,e){var r=e(64),i=e(523),o=e(102),u=e(28),a=function(t){function n(){return t.apply(this,arguments)||this}!function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n}(n,t);return n.prototype.execute=function(){return o(this.rootNode,this.options,i)},n}(r),c={};t.exports=function(t,n){return n=u.assign({},c,n),new a(t,n).execute()}},function(t,n,e){function r(t,n){var e=0;return t.children.length?t.children.forEach(function(t){e+=r(t,n)}):e=t.height,t._subTreeSep=n.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,e)+2*t._subTreeSep,t.totalHeight}function i(t){var n=t.children,e=n.length;if(e){n.forEach(function(t){i(t)});var r=n[0],o=n[e-1],u=o.y-r.y+o.height,a=0;if(n.forEach(function(t){a+=t.totalHeight}),u>t.height)t.y=r.y+u/2-t.height/2;else if(1!==n.length||t.height>a){var c=t.y+(t.height-u)/2-r.y;n.forEach(function(t){t.translate(0,c)})}else t.y=(r.y+r.height/2+o.y+o.height/2)/2-t.height/2}}var o=e(28),u={getSubTreeSep:function(){return 0}};t.exports=function(t,n){void 0===n&&(n={}),n=o.assign({},u,n),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,r(t,n),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var n=t.children,e=n.length;if(e){var r=n[0];if(r.startY=t.startY+t._subTreeSep,1===e)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i>5<<5,l=~~Math.max(Math.abs(d+j),Math.abs(d-j))}else s=s+31>>5<<5;if(l>c&&(c=l),u+s>=b<<5&&(u=0,a+=c,c=0),a+l>=y)break;i.translate((u+(s>>1))/o,(a+(l>>1))/o),n.rotate&&i.rotate(n.rotate*g),i.fillText(n.text,0,0),n.padding&&(i.lineWidth=2*n.padding,i.strokeText(n.text,0,0)),i.restore(),n.width=s,n.height=l,n.xoff=u,n.yoff=a,n.x1=s>>1,n.y1=l>>1,n.x0=-n.x1,n.y0=-n.y1,n.hasText=!0,u+=s}for(var _=i.getImageData(0,0,(b<<5)/o,y/o).data,m=[];--r>=0;)if((n=e[r]).hasText){for(var w=n.width,x=w>>5,E=n.y1-n.y0,M=0;M>5),N=_[(a+k)*(b<<5)+(u+C)<<2]?1<<31-C%32:0;m[P]|=N,T|=N}T?S=k:(n.y0++,E--,k--,a++)}n.y1=n.y0+S,n.sprite=m.slice(0,(n.y1-n.y0)*x)}}}function f(t,n,e){e>>=5;for(var r,i=t.sprite,o=t.width>>5,u=t.x-(o<<4),a=127&u,c=32-a,f=t.y1-t.y0,s=(t.y+t.y0)*e+(u>>5),l=0;l>>a:0))&n[s+h])return!0;s+=e}return!1}function s(t,n){var e=t[0],r=t[1];n.x+n.x0r.x&&(r.x=n.x+n.x1),n.y+n.y1>r.y&&(r.y=n.y+n.y1)}function l(t,n){return t.x+t.x1>n[0].x&&t.x+t.x0n[0].y&&t.y+t.y0>2);t.width=(b<<5)/n,t.height=y/n;var e=t.getContext("2d");return e.fillStyle=e.strokeStyle="red",e.textAlign="center",{context:e,ratio:n}}(k()),u=C.board?C.board:p((t[0]>>5)*t[1]),a=M.length,h=[],v=M.map(function(t,e){return t.text=n.call(this,t,e),t.font=g.call(this,t,e),t.style=_.call(this,t,e),t.weight=m.call(this,t,e),t.rotate=w.call(this,t,e),t.size=~~O.call(this,t,e),t.padding=x.call(this,t,e),t}).sort(function(t,n){return n.size-t.size}),d=-1,j=C.board?[{x:0,y:0},{x:r,y:i}]:null;return function(){for(var n=Date.now();Date.now()-n>1,e.y=i*(S()+.5)>>1,c(o,e,v,d),e.hasText&&function(n,e,r){for(var i,o,u,a=e.x,c=e.y,s=Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=E(t),p=S()<.5?1:-1,v=-p;(i=h(v+=p))&&(o=~~i[0],u=~~i[1],!(Math.min(Math.abs(o),Math.abs(u))>=s));)if(e.x=a+o,e.y=c+u,!(e.x+e.x0<0||e.y+e.y0<0||e.x+e.x1>t[0]||e.y+e.y1>t[1])&&(!r||!f(e,n,t[0]))&&(!r||l(e,r))){for(var d=e.sprite,g=e.width>>5,b=t[0]>>5,y=e.x-(g<<4),j=127&y,O=32-j,_=e.y1-e.y0,m=void 0,w=(e.y+e.y0)*b+(y>>5),x=0;x<_;x++){m=0;for(var M=0;M<=g;M++)n[w+M]|=m<>>j:0);w+=b}return delete e.sprite,!0}return!1}(u,e,j)&&(h.push(e),j?C.hasImage||s(j,e):j=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=t[0]>>1,e.y-=t[1]>>1)}C._tags=h,C._bounds=j}(),C},C.createMask=function(n){var e=document.createElement("canvas"),r=t,i=r[0],o=r[1],u=i>>5,a=p((i>>5)*o);e.width=i,e.height=o;var c=e.getContext("2d");c.drawImage(n,0,0,n.width,n.height,0,0,i,o);for(var f=c.getImageData(0,0,i,o).data,s=0;s>5),v=s*i+l<<2,d=f[v]>=250&&f[v+1]>=250&&f[v+2]>=250?1<<31-l%32:0;a[h]|=d}C.board=a,C.hasImage=!0},C.timeInterval=function(t){return arguments.length?(T=null==t?1/0:t,C):T},C.words=function(t){return arguments.length?(M=t,C):M},C.size=function(n){return arguments.length?(t=[+n[0],+n[1]],C):t},C.font=function(t){return arguments.length?(g=d(t),C):g},C.fontStyle=function(t){return arguments.length?(_=d(t),C):_},C.fontWeight=function(t){return arguments.length?(m=d(t),C):m},C.rotate=function(t){return arguments.length?(w=d(t),C):w},C.text=function(t){return arguments.length?(n=d(t),C):n},C.spiral=function(t){return arguments.length?(E=j[t]||t,C):E},C.fontSize=function(t){return arguments.length?(O=d(t),C):O},C.padding=function(t){return arguments.length?(x=d(t),C):x},C.random=function(t){return arguments.length?(S=t,C):S},C}},function(t,n,e){var r=e(3),i=e(9),o=e(9),u=e(24),a=e(533),c=e(32),f=e(19).sum,s=e(15),l=e(2).registerTransform,h=e(7).getFields,p={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};l("waffle",function(t,n){n=r({},p,n);var e=h(n),l=e[0],v=e[1],d=n.as,g=d[0],b=d[1],y=n.groupBy,j=s(t.rows,y),O=u(j),_=n.size,m=_[0],w=_[1],x=n.maxCount,E=w/O.length,M=n.rows,T=n.gapRatio,S=[],k=n.scale,C=0,P=0;o(j,function(t){var n=f(a(t,function(t){return t[v]})),e=Math.ceil(n*k/M);n*k>x&&(k=x/n,e=Math.ceil(n*k/M)),P=m/e}),o(j,function(t){var n=[C*E,(C+1)*E],e=(n[1]-n[0])*(1-T)/M,r=0,o=0;i(t,function(t){for(var i=t[v],u=Math.round(i*k),a=0;a0){var a=e.strokeOpacity;i.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var i=this.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,n[0],n[1]))return!1}var r=this._attrs.clip;return r?(r.invert(n,this.get("canvas")),!!r.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._cfg.box=t),t},clone:function(){var t=null,e=this._attrs,n={};return i.each(e,function(t,r){l[r]&&i.isArray(e[r])?n[r]=function(t){for(var e=[],n=0;n1){var y=f[1];y.change({nice:!1,min:0,max:Math.max.apply(null,y.values)})}s.scales=f;var x=new a[c](s);t[o]=x}},n._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),i=0;ia&&(a=c)}(re.max)&&e.change({min:r,max:a})},n._adjust=function(t){var e=this,n=e.get("adjusts"),i=this.viewTheme||u,r=e.getYScale(),a=e.getXScale(),s=a.field,c=r?r.field:null;l.each(n,function(n){var u=l.mix({xField:s,yField:c},n),h=l.upperFirst(n.type);if("Dodge"===h){var f=[];if(a.isCategory||a.isIdentity)f.push("x");else{if(r)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}u.adjustNames=f,u.dodgeRatio=i.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!r){u.height=p.getHeight();var g=e.getDefaultValue("size")||3;u.size=g}!p.isTransposed&&l.isNil(u.reverseOrder)&&(u.reverseOrder=!0)}new o[h](u).processAdjust(t),"Stack"===h&&r&&e._updateStackRange(c,r,t)})},n.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},n.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this.set("shapeFactory",n);var i=this.get("shapeContainer");this._beforeMapping(t);for(var r=0;r=0?e:n<=0?n:0},n._normalizeValues=function(t,e){var n=[];if(l.isArray(t))for(var i=0;i1)for(var h=0;h0)l.each(n,function(n){e+="-"+t[n]});else{var i,r=this.get("type"),a=this.getXScale(),o=this.getYScale(),s=a.field||"x",u=o.field||"y",c=t[u];i=a.isIdentity?a.value:t[s],e+="interval"===r||"schema"===r?"-"+i:"line"===r||"area"===r||"path"===r?"-"+r:"-"+i+"-"+c;var h=this._getGroupScales();l.isEmpty(h)||l.each(h,function(n){var i=n.field;"identity"!==n.type&&(e+="-"+t[i])})}return e},n.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},n.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},n._applyViewThemeShapeStyle=function(t,e,n){var i=this.viewTheme||u,r=n.name;e?e&&e.indexOf("hollow")>-1&&(r="hollow"+l.upperFirst(r)):n.defaultShapeType.indexOf("hollow")>-1&&(r="hollow"+l.upperFirst(r));var a=i.shape[r]||{};t.style=l.mix({},a,t.style)},n.drawPoint=function(t,e,n,i){var r=t.shape,a=this.getDrawCfg(t);this._applyViewThemeShapeStyle(a,r,n);var o=n.drawShape(r,a,e);this.appendShapeInfo(o,i)},n.getAttr=function(t){return this.get("attrs")[t]},n.getXScale=function(){return this.getAttr("position").scales[0]},n.getYScale=function(){return this.getAttr("position").scales[1]},n.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return l.each(e,function(e){e.get("origin")&&t.push(e)}),t},n.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return l.each(t,function(t){-1!==v.indexOf(t.type)&&e.push(t)}),e},n.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return l.each(v,function(n){var i=e[n];i&&i.field&&l.isString(i.field)&&(t=t.concat(i.field.split("*")))}),l.uniq(t)},n.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var i=this.get("labelContainer");if(i&&i.set("visible",t),!e&&n){n.get("canvas").draw()}},n.reset=function(){this.set("attrOptions",{}),this.clearInner()},n.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},n.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},n.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(s);t.exports=y},function(t,e,n){t.exports={Axis:n(303),Component:n(66),Guide:n(311),Label:n(320),Legend:n(321),Tooltip:n(327)}},function(t,e,n){function i(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function r(t,e){for(var n=t.length,i=[t[0]],r=1;r=s[c]?1:0,p=h>Math.PI?1:0,g=n.convertPoint(l),d=i(n,g);if(d>=.5)if(h===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},y=n.convertPoint(v);u.push(["A",d,d,0,p,f,y.x,y.y]),u.push(["A",d,d,0,p,f,g.x,g.y])}else u.push(["A",d,d,0,p,f,g.x,g.y]);return u}(n,o,t)):u.push(r(a,t));break;case"z":default:u.push(a)}}),function(t){a.each(t,function(e,n){if("a"===e[0].toLowerCase()){var i=t[n-1],r=t[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}})}(u),u}};t.exports=s},function(t,e,n){var i=n(5);t.exports=function(t){return i(t)?"":t.toString()}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){t.exports={Canvas:n(178),Group:n(101),Shape:n(6),Arc:n(105),Circle:n(106),Dom:n(107),Ellipse:n(108),Fan:n(109),Image:n(110),Line:n(111),Marker:n(56),Path:n(112),Polygon:n(113),Polyline:n(114),Rect:n(115),Text:n(116),PathSegment:n(39),PathUtil:n(57),Event:n(100),version:"3.3.5"}},function(t,e,n){var i=n(48),r=n(12);t.exports=function(t){if(!i(t)||!r(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var i=n(1),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,r=0,a=0;return i.isArray(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}},parsePath:function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(r),i.each(t,function(e,n){if((e=e.match(a))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}}},function(t,e,n){"use strict";function i(t,e){return function(n){return t+n*e}}function r(t,e){var n=e-t;return n?i(t,n):Object(a.a)(isNaN(t)?e:t)}e.c=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?r:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Object(a.a)(isNaN(e)?n:e)}},e.a=r;var a=n(121)},function(t,e,n){function i(t,e){return r(e)?e:t.invert(t.scale(e))}var r=n(10),a=n(4),o=n(5),s=n(8),l=n(2),u=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,i=this.callback;if(t.callback){var r=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;a1&&(e=(t[1].value-t[0].value)/2);for(var n=[],i=0;i0){var s=e.value-a[r-1].value;s/=t.get("subTickCount")+1;for(var l=1;l<=n;l++){var u={text:"",value:r?a[r-1].value+l*s:l*s},c=t.getTickPoint(u.value),h=void 0;h=o&&o.length?o.length:parseInt(.6*i.length,10),t._addTickItem(l-1,c,h,"sub")}}})}},n._addTickLine=function(t,e){var n=r.mix({},e),i=[];r.each(t,function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])}),delete n.length,n.path=i;var a=this.get("group").addShape("path",{attrs:n});a.name="axis-ticks",a._id=this.get("_id")+"-ticks",a.set("coord",this.get("coord")),this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},n._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!r.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!r.isEmpty(e)){var i=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,i)}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(a,t))}},n._renderLabels=function(){var t=this.get("labelRenderer"),e=this.get("labelItems");t&&(t.set("items",e),t._dryDraw())},n.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");("cat"===n||"timeCat"===n)&&!1===e?this._processCatTicks():this._processTicks(),this._renderTicks(),this._renderGrid(),this._renderLabels();var i=this.get("label");i&&i.autoRotate&&this.autoRotateLabels(),i&&i.autoHide&&this.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return r.each(e,function(t){var e=t.getBBox().width;ne)&&(this.min=e),(i(this.max)||this.max=t.min&&e<=t.max&&n.push(e)}),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},n.scale=function(t){if(i(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),a=this.rangeMin();return a+r*(this.rangeMax()-a)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(a);a.Linear=s,t.exports=s},function(t,e,n){var i=n(13);t.exports=function(t){return i(t)?Array.prototype.slice.call(t):[]}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)n&&(r=2*Math.PI-t+e,a=t-n):(r=t-e,a=n-t),r>a?n:e}function a(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),i?e>=n?t>n&&tn?t:r(t,e,n):e<=n?ee||tt.x&&(g=t.x),dt.y&&(v=t.y),y0&&p>0?h=Math.PI/2-g:f<0&&p<0?h=-Math.PI/2-g:f>=0&&p<0?h=-g-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-g);var d=function(t){var e,n=[],i=a.parsePath(t.path);if(!Array.isArray(i)||0===i.length||"M"!==i[0][0]&&"m"!==i[0][0])return!1;for(var r=i.length,s=0;s=0,p=f?n.toUpperCase():n,g=t,v=e.endPoint,y=g[1],x=g[2];switch(p){default:break;case"M":h=f?i(y,x,v):{x:y,y:x},this.command="M",this.params=[v,h],this.subStart=h,this.endPoint=h;break;case"L":h=f?i(y,x,v):{x:y,y:x},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"H":h=f?i(y,0,v):{x:y,y:v.y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"V":h=f?i(0,y,v):{x:v.x,y:y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"Q":f?(a=i(y,x,v),u=i(g[3],g[4],v)):(a={x:y,y:x},u={x:g[3],y:g[4]}),this.command="Q",this.params=[v,a,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-a.x,u.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"T":u=f?i(y,x,v):{x:y,y:x},"Q"===e.command?(a=r(e.params[1],v),this.command="Q",this.params=[v,a,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-a.x,u.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="TL",this.params=[v,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-v.x,u.y-v.y]},this.startTangent=function(){return[v.x-u.x,v.y-u.y]});break;case"C":f?(a=i(y,x,v),u=i(g[3],g[4],v),c=i(g[5],g[6],v)):(a={x:y,y:x},u={x:g[3],y:g[4]},c={x:g[5],y:g[6]}),this.command="C",this.params=[v,a,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"S":f?(u=i(y,x,v),c=i(g[3],g[4],v)):(u={x:y,y:x},c={x:g[3],y:g[4]}),"C"===e.command?(a=r(e.params[2],v),this.command="C",this.params=[v,a,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="SQ",this.params=[v,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[v.x-u.x,v.y-u.y]});break;case"A":var m=y,_=x,b=g[3],w=g[4],S=g[5];h=f?i(g[6],g[7],v):{x:g[6],y:g[7]},this.command="A";var M=function(t,e,n,i,r,a,u){var c=l.mod(l.toRadian(u),2*Math.PI),h=t.x,f=t.y,p=e.x,g=e.y,d=Math.cos(c)*(h-p)/2+Math.sin(c)*(f-g)/2,v=-1*Math.sin(c)*(h-p)/2+Math.cos(c)*(f-g)/2,y=d*d/(r*r)+v*v/(a*a);y>1&&(r*=Math.sqrt(y),a*=Math.sqrt(y));var x=r*r*(v*v)+a*a*(d*d),m=Math.sqrt((r*r*(a*a)-x)/x);n===i&&(m*=-1),isNaN(m)&&(m=0);var _=m*r*v/a,b=m*-a*d/r,w=(h+p)/2+Math.cos(c)*_-Math.sin(c)*b,S=(f+g)/2+Math.sin(c)*_+Math.cos(c)*b,M=s([1,0],[(d-_)/r,(v-b)/a]),C=[(d-_)/r,(v-b)/a],A=[(-1*d-_)/r,(-1*v-b)/a],k=s(C,A);return o(C,A)<=-1&&(k=Math.PI),o(C,A)>=1&&(k=0),0===i&&k>0&&(k-=2*Math.PI),1===i&&k<0&&(k+=2*Math.PI),[t,w,S,r,a,M,k,c,i]}(v,h,w,S,m,_,b);this.params=M;var C=e.subStart;this.subStart=C,this.endPoint=h;var A=M[5]%(2*Math.PI);l.isNumberEqual(A,2*Math.PI)&&(A=0);var k=M[6]%(2*Math.PI);l.isNumberEqual(k,2*Math.PI)&&(k=0);var P=.001;this.startTangent=function(){0===S&&(P*=-1);var t=M[3]*Math.cos(A-P)+M[1],e=M[4]*Math.sin(A-P)+M[2];return[t-C.x,e-C.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(A+t+P)+M[1],n=M[4]*Math.sin(A+t-P)+M[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var i=this.command,r=this.params,a=this.box;if(a&&!u.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return u.line(r[0].x,r[0].y,r[1].x,r[1].y,n,t,e);case"SQ":case"Q":return u.quadraticline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,n,t,e);case"C":return u.cubicline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y,n,t,e);case"A":var o=r,s=o[1],l=o[2],c=o[3],h=o[4],f=o[5],d=o[6],v=o[7],y=o[8],x=c>h?c:h,m=c>h?1:c/h,_=c>h?h/c:1;o=[t,e,1];var b=[1,0,0,0,1,0,0,0,1];return g.translate(b,b,[-s,-l]),g.rotate(b,b,-v),g.scale(b,b,[1/m,1/_]),p.transformMat3(o,o,b),u.arcline(0,0,x,f,f+d,1-y,n,o[0],o[1])}return!1},draw:function(t){var e,n,i,r=this.command,a=this.params;switch(r){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],i=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,i.x,i.y);break;case"A":var o=a,s=o[1],l=o[2],u=o[3],c=o[4],h=o[5],f=o[6],p=o[7],g=o[8],d=u>c?u:c,v=u>c?1:u/c,y=u>c?c/u:1;t.translate(s,l),t.rotate(p),t.scale(v,y),t.arc(0,0,d,h,h+f,1-g),t.scale(1/v,1/y),t.rotate(-p),t.translate(-s,-l);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,i,r,a=t/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-a,maxX:Math.max(o[0].x,o[1].x)+a,minY:Math.min(o[0].y,o[1].y)-a,maxY:Math.max(o[0].y,o[1].y)+a};break;case"SQ":case"Q":for(i=0,r=(n=h.extrema(o[0].x,o[1].x,o[2].x)).length;iS&&(S=A)}var k=f.yExtrema(y,p,g),P=1/0,I=-1/0,T=[m,_];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var O=k+i;1===x?mI&&(I=L)}this.box={minX:w-a,maxX:S+a,minY:P-a,maxY:I+a}}}}),t.exports=v},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){var i=n(13),r=Array.prototype.indexOf;t.exports=function(t,e){return!!i(t)&&r.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;n2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=[t,e,n];return l.transformMat3(r,r,i),r}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=s.invert([],i),a=[t,e,n];return l.transformMat3(a,a,r),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return s.translate(e,e,[-n.x,-n.y]),s.rotate(e,e,t),s.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,i=this.center;return s.translate(n,n,[-i.x,-i.y]),s.scale(n,n,[t,e]),s.translate(n,n,[i.x,i.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return s.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=u},function(t,e,n){var i=n(0),r={splitPoints:function(t){var e=[],n=t.x,r=t.y;return r=i.isArray(r)?r:[r],i.each(r,function(t,r){var a={x:i.isArray(n)?n[r]:n,y:t};e.push(a)}),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),e.opacity&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),i.isNil(e.opacity)||(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=r},function(t,e,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=n(4);t.exports=function t(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return e;var n=void 0;if(r(e)){n=[];for(var a=0,o=e.length;an?n:t}},function(t,e,n){var i=n(179);i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=r=t},e.toRadian=function(t){return t*a},e.equals=function(t,e){return Math.abs(t-e)<=i*Math.max(1,Math.abs(t),Math.abs(e))};var i=e.EPSILON=1e-6,r=e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,a=(e.RANDOM=Math.random,Math.PI/180)},function(t,e,n){var i;!function(e){"use strict";function r(){}function a(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}function s(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&s(t.listener)}var l=r.prototype,u=e.EventEmitter;l.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},l.flattenListeners=function(t){var e,n=[];for(e=0;e=0&&v=0&&r<=1&&h.push(r);else{var f=u*u-4*l*c;o.isNumberEqual(f,0)?h.push(-u/(2*l)):f>0&&(a=(-u-(s=Math.sqrt(f)))/(2*l),(r=(-u+s)/(2*l))>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h},len:function(t,e,n,i,r,s,l,u,c){o.isNil(c)&&(c=1);for(var h=(c=c>1?1:c<0?0:c)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,d=0;d<12;d++){var v=h*f[d]+h,y=a(v,t,n,r,l),x=a(v,e,i,s,u),m=y*y+x*x;g+=p[d]*Math.sqrt(m)}return h*g}}},function(t,e,n){var i=n(1),r=n(6),a=n(27),o=n(39),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},s.ATTRS={path:null,lineWidth:1},i.extend(s,r),i.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},_getPath:function(){var t=this._attrs,e=t.x,n=t.y,r=t.radius||t.r,a=t.symbol||"circle";return(i.isFunction(a)?a:s.Symbols[a])(e,n,r)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n=a.parsePath(this._getPath());t.beginPath();var i;e=[];for(var r=0;r2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else for(;a.length>=e[o]&&(n.push([i].concat(a.splice(0,e[o]))),e[o]););}),n},f=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},p=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),l=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,l,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},g=function(t){if(!(t=h(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,s=0,l=0;"M"===t[0][0]&&(o=r=+t[0][1],s=a=+t[0][2],l++,i[0]=["M",r,a]);for(var u,c,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=l,v=t.length;d1&&(i*=w=Math.sqrt(w),r*=w);var S=i*i,M=r*r,C=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*b*b-M*_*_)/(S*b*b+M*_*_)));g=C*i*b/r+(e+l)/2,d=C*-r*_/i+(n+u)/2,f=Math.asin(((n-d)/r).toFixed(9)),p=Math.asin(((u-d)/r).toFixed(9)),f=ep&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var A=p-f;if(Math.abs(A)>v){var k=p,P=l,I=u;p=f+v*(s&&p>f?1:-1),x=t(l=g+i*Math.cos(p),u=d+r*Math.sin(p),i,r,a,0,s,P,I,[p,k,g,d])}A=p-f;var T=Math.cos(f),O=Math.sin(f),L=Math.cos(p),E=Math.sin(p),D=Math.tan(A/4),F=4/3*i*D,B=4/3*r*D,R=[e,n],j=[e+F*O,n-B*T],N=[l+F*E,u-B*L],z=[l,u];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],c)return[j,N,z].concat(x);for(var Y=[],V=0,H=(x=[j,N,z].concat(x).join().split(",")).length;V7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},p=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var g=u*c[p]+u,d=_(g,t,n,r,o),v=_(g,e,i,a,s),y=d*d+v*v;f+=h[p]*Math.sqrt(y)}return u*f},w=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)Math.max(r,o)||Math.max(e,i)Math.max(a,s))){var l=(t-n)*(a-s)-(e-i)*(r-o);if(l){var u=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/l,c=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/l,h=+u.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},S=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=m,a},C=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:M(t,e,n,i),vb:[t,e,n,i].join(" ")}},A=function(t,e,n,i,r,a,o,l){s.isArray(t)||(t=[t,e,n,i,r,a,o,l]);var u=function(t,e,n,i,r,a,o,s){for(var l,u,c,h,f=[],p=[[],[]],g=0;g<2;++g)if(0===g?(u=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*o,c=3*n-3*t):(u=6*e-12*i+6*a,l=-3*e+9*i-9*a+3*s,c=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&f.push(h)}else{var d=u*u-4*c*l,v=Math.sqrt(d);if(!(d<0)){var y=(-u+v)/(2*l);y>0&&y<1&&f.push(y);var x=(-u-v)/(2*l);x>0&&x<1&&f.push(x)}}for(var m,_=f.length,b=_;_--;)m=1-(h=f[_]),p[0][_]=m*m*m*t+3*m*m*h*n+3*m*h*h*r+h*h*h*o,p[1][_]=m*m*m*e+3*m*m*h*i+3*m*h*h*a+h*h*h*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}}.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},k=function(t,e,n,i,r,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,p=f*l,g=t+2*l*(n-t)+f*(r-2*n+t),d=e+2*l*(i-e)+f*(a-2*i+e),v=n+2*l*(r-n)+f*(o-2*r+n),y=i+2*l*(a-i)+f*(s-2*a+i);return{x:c*t+3*h*l*n+3*u*l*l*r+p*o,y:c*e+3*h*l*i+3*u*l*l*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*i},end:{x:u*r+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},P=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),S(e,t.x,t.y)||S(e,t.x2,t.y)||S(e,t.x,t.y2)||S(e,t.x2,t.y2)||S(t,e.x,e.y)||S(t,e.x2,e.y)||S(t,e.x,e.y2)||S(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(A(t),A(e)))return n?0:[];for(var i=~~(b.apply(0,t)/8),r=~~(b.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],u=0;u=0&&P<=1&&I>=0&&I<=1&&(n?l++:l.push({x:M.x,y:M.y,t1:P,t2:I}))}}return l},I=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/n,l=0;l=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)r.push(a)}return r},T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return s.each(t,function(t,i){if(t!==e[i])return n=!1,!1}),n};t.exports={parsePathString:h,parsePathArray:m,pathTocurve:y,pathToAbsolute:g,catmullRomToBezier:f,rectPath:M,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;f--)s=o[f].index,"add"===o[f].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}var p=a-(i=t.length);if(i0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],2)}t[i]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[i]=e[i]}return t},intersection:function(t,e){return function(t,e,n){t=y(t),e=y(e);for(var i,r,a,o,s,l,u,c,h,f,p=n?0:[],g=0,d=t.length;g=0&&e._call.call(null,t),e=e._next;--p}function l(){x=(y=_.now())+m,p=g=0;try{s()}finally{p=0,function(){var t,e,n=h,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);f=t,c(i)}(),x=0}}function u(){var t=_.now(),e=t-y;e>v&&(m-=e,y=t)}function c(t){if(!p){g&&(g=clearTimeout(g));t-x>24?(t<1/0&&(g=setTimeout(l,t-_.now()-m)),d&&(d=clearInterval(d))):(d||(y=_.now(),d=setInterval(u,v)),p=1,b(l))}}e.b=i,e.a=a,e.c=o,e.d=s;var h,f,p=0,g=0,d=0,v=1e3,y=0,x=0,m=0,_="object"==typeof performance&&performance.now?performance:Date,b="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=o.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?i():+n)+(null==e?0:+e),this._next||f===this||(f?f._next=this:h=this,f=this),this._call=t,this._time=n,c()},stop:function(){this._call&&(this._call=null,this._time=1/0,c())}}},function(t,e,n){"use strict";var i=n(19),r=n(119),a=n(122),o=n(123),s=n(40),l=n(124),u=n(125),c=n(121);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(c.a)(e):("number"===h?s.a:"string"===h?(n=Object(i.a)(e))?(e=n,r.a):u.a:e instanceof i.a?r.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?l.a:s.a)(t,e)}},function(t,e,n){"use strict";function i(){}function r(t){var e;return t=(t+"").trim().toLowerCase(),(e=_.exec(t))?(e=parseInt(e[1],16),new u(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=b.exec(t))?a(parseInt(e[1],16)):(e=w.exec(t))?new u(e[1],e[2],e[3],1):(e=S.exec(t))?new u(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=M.exec(t))?o(e[1],e[2],e[3],e[4]):(e=C.exec(t))?o(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=A.exec(t))?c(e[1],e[2]/100,e[3]/100,1):(e=k.exec(t))?c(e[1],e[2]/100,e[3]/100,e[4]):P.hasOwnProperty(t)?a(P[t]):"transparent"===t?new u(NaN,NaN,NaN,0):null}function a(t){return new u(t>>16&255,t>>8&255,255&t,1)}function o(t,e,n,i){return i<=0&&(t=e=n=NaN),new u(t,e,n,i)}function s(t){return t instanceof i||(t=r(t)),t?(t=t.rgb(),new u(t.r,t.g,t.b,t.opacity)):new u}function l(t,e,n,i){return 1===arguments.length?s(t):new u(t,e,n,null==i?1:i)}function u(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function c(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new f(t,e,n,i)}function h(t,e,n,a){return 1===arguments.length?function(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=r(t)),!t)return new f;if(t instanceof f)return t;var e=(t=t.rgb()).r/255,n=t.g/255,a=t.b/255,o=Math.min(e,n,a),s=Math.max(e,n,a),l=NaN,u=s-o,c=(s+o)/2;return u?(l=e===s?(n-a)/u+6*(n0&&c<1?0:l,new f(l,u,c,t.opacity)}(t):new f(t,e,n,null==a?1:a)}function f(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function p(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=i,n.d(e,"d",function(){return d}),n.d(e,"c",function(){return v}),e.e=r,e.h=s,e.g=l,e.b=u,e.f=h;var g=n(61),d=.7,v=1/d,y="\\s*([+-]?\\d+)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,b=/^#([0-9a-f]{6})$/,w=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),S=new RegExp("^rgb\\("+[m,m,m]+"\\)$"),M=new RegExp("^rgba\\("+[y,y,y,x]+"\\)$"),C=new RegExp("^rgba\\("+[m,m,m,x]+"\\)$"),A=new RegExp("^hsl\\("+[x,m,m]+"\\)$"),k=new RegExp("^hsla\\("+[x,m,m,x]+"\\)$"),P={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};Object(g.a)(i,r,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(g.a)(u,l,Object(g.b)(i,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new u(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new u(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){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+")")}})),Object(g.a)(f,h,Object(g.b)(i,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new f(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new u(p(t>=240?t-240:t+120,r,i),p(t,r,i),p(t<120?t+240:t-120,r,i),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}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function i(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}e.a=i,e.b=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],o=t[r+1],s=r>0?t[r-1]:2*a-o,l=r0&&e.lineToLabel(t)})},n.lineToLabel=function(){},n.getLabelPoint=function(t,e,n){function i(e,n){return o.isArray(e)&&(e=1===t.text.length?e.length<=2?e[e.length-1]:function(t){var e=0;return o.each(t,function(t){e+=t}),e/t.length}(e):e[n]),e}var r=this.get("coord"),a=t.text.length,s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var l=function(t,e){for(var n,i,r=-1,a=0,o=0,s=t.length-1,l=0;++ru&&(u=t.x)}),s.x=(s.x+u)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=r.convert(t),(o.isArray(t.x)&&-1===e.x.indexOf(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)}),t.position&&this.setLabelPosition(s,e,n,t.position);var c=this.getLabelOffset(t,n,a);return t.offsetX&&(c.x+=t.offsetX),t.offsetY&&(c.y+=t.offsetY),this.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=c.x,s.y+=c.y,s.color=e.color,s},n.setLabelPosition=function(){},n.transLabelPoint=function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},n.getOffsetVector=function(t){var e=t.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(e,0):n.applyMatrix(0,e)},n.getDefaultOffset=function(t){var e=this.get("coord"),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},n.getLabelOffset=function(t,e,n){var i=this.getDefaultOffset(t),r=this.get("coord").isTransposed,a=r?"x":"y",o=r?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?i*o:i*o*-1,s},n.getLabelAlign=function(t,e,n){var i="center";if(this.get("coord").isTransposed){var r=this.getDefaultOffset(t);i=r<0?"right":0===r?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},n._getLabelValue=function(t,e){o.isArray(e)||(e=[e]);var n=[];return o.each(e,function(e){var i=t[e.field];if(o.isArray(i)){var r=[];o.each(i,function(t){r.push(e.getText(t))}),i=r}else i=e.getText(i);(o.isNil(i)||""===i)&&n.push(null),n.push(i)}),n},n._getLabelCfgs=function(t){var e=this,n=this.get("labelCfg"),i=n.scales,r=this.get("label"),a=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),o.each(t,function(t,s){var l={},u=t._origin,c=e._getLabelValue(u,i);if(n.callback){var h=i.map(function(t){return u[t.field]});l=n.callback.apply(null,h)}if(l||0===l){if(o.isString(l)||o.isNumber(l)?l={text:l}:(l.text=l.content||c[0],delete l.content),l=o.mix({},r,n.globalCfg||{},l),t.point=u,l.htmlTemplate&&(l.useHtml=!0,l.text=l.htmlTemplate.call(null,l.text,t,s),delete l.htmlTemplate),l.formatter&&(l.text=l.formatter.call(null,l.text,t,s),delete l.formatter),l.label){var f=l.label;delete l.label,l=o.mix(l,f)}if(l.textStyle){delete l.textStyle.offset;var p=l.textStyle;o.isFunction(p)&&(l.textStyle=p.call(null,l.text,t,s))}l.labelLine&&(l.labelLine=o.mix({},r.labelLine,l.labelLine)),l.textStyle=o.mix({},r.textStyle,l.textStyle),delete l.items,a.push(l)}else a.push(null)}),this.set("labelItemCfgs",a)},n.showLabels=function(t,e){var n=this.get("labelRenderer"),i=this.getLabelsItems(t,e);e=[].concat(e);var r=this.get("type");i=this.adjustItems(i,e),this.drawLines(i),n.set("items",i.filter(function(t,n){return!!t||(e.splice(n,1),!1)})),r&&(n.set("shapes",e),n.set("type",r),n.set("points",t)),n.set("canvas",this.get("canvas")),n.draw()},n.destroy=function(){this.get("labelRenderer").destroy(),t.prototype.destroy.call(this)},e}(i);t.exports=l},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(53),a=n(3),o=function(t){function e(e){var n,r=i(i(n=t.call(this)||this)),o={visible:!0},s=r.getDefaultCfg();return r._attrs=o,a.deepMix(o,s,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(r);t.exports=o},function(t,e,n){var i=n(3),r=n(158),a=n(324),o=n(14).FONT_FAMILY,s=i.Event,l=i.Group,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:o},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},n._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-8},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},n.beforeRender=function(){var e=this.get("items");i.isArray(e)&&!i.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},n._renderSlider=function(){var t=new l,e=new l,n=new l,i=this._calStartPoint(),r=this.get("group").addGroup(a,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});r.translate(i.x,i.y),this.set("slider",r);this._renderSliderShape().attr("clip",r.get("middleHandleElement")),this._renderTrigger()},n._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:i.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),a=this.get("triggerAttr"),o=i.mix({},a),s=i.mix({},a),l=i.mix({text:this._formatItemValue(t.value)+""},r),u=i.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,l),this._addVerticalTrigger("max",s,u)):(this._addHorizontalTrigger("min",o,l),this._addHorizontalTrigger("max",s,u))},n._addVerticalTrigger=function(t,e,n){var r=this.get("slider").get(t+"HandleElement"),a=this.get("width"),o=r.addShape("rect",{attrs:i.mix({x:a/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),s=r.addShape("text",{attrs:i.mix(n,{x:a+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),l="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",l),s.attr("cursor",l),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._addHorizontalTrigger=function(t,e,n){var r=this.get("slider").get(t+"HandleElement"),a=r.addShape("rect",{attrs:i.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),o=r.addShape("text",{attrs:i.mix(n,{x:"min"===t?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";a.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",a),this.set(t+"TextElement",o)},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i);t._updateElement(a,o);var l=new s("itemfilter",e,!0,!0);l.range=[a,o],t.emit("itemfilter",l)})}this.get("hoverable")&&(this.get("group").on("mousemove",i.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",i.wrapBehavior(this,"_onMouseLeave")))},n._updateElement=function(t,e){var n=this.get("minTextElement"),i=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),i.attr("text",this._formatItemValue(e)+"")},n._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},n._onMouseMove=function(t){var e,n=this.get("height"),i=this.get("width"),r=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var l=this.get("titleGap"),u=this.get("titleShape");u&&(l+=u.getBBox().maxY-u.getBBox().minY);var c=t.clientY||t.event.clientY;c=c-a.y-this.get("group").attr("matrix")[7]+o.y-s+l,e=r[0].value+(1-c/n)*(r[r.length-1].value-r[0].value)}else{var h=t.clientX||t.event.clientX;h=h-a.x-this.get("group").attr("matrix")[6],e=r[0].value+h/i*(r[r.length-1].value-r[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},n.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),r=this.get("items");if(!(tr[r.length-1].value)){var a,o=this.get("height"),s=this.get("width"),l=this.get("titleShape"),u=this.get("titleGap"),c=[],h=(t-r[0].value)/(r[r.length-1].value-r[0].value);if("vertical"===this.get("layout")){var f=0,p=0;"color-legend"===this.get("type")&&(f=u,l&&(f+=l.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=u-15,l&&(f+=l.getBBox().height)),p+=10),c=[[p,(h=(1-h)*o)+f],[p-10,h+f-5],[p-10,h+f+5]],a=i.mix({},{x:s+this.get("textOffset")/2+p,y:h+f,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var g=0,d=0;"color-legend"===this.get("type")&&(g=u,l&&(g+=l.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?g-=7:(g=u,l||(g-=7)),d+=10),c=[[(h*=s)+d,g],[h+d-5,g-10],[h+d+5,g-10]],a=i.mix({},{x:h-5,y:o+this.get("textOffset")+g,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=i.mix(a,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v})).set("id","hoverText"),e?e.attr(i.mix({points:c},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:i.mix({points:c},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},n.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},e}(r);t.exports=u},function(t,e,n){var i=n(66),r=n(3),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},n.isContentChange=function(t,e){var n=this.get("titleContent"),i=this.get("items"),a=!(t===n&&i.length===e.length);return a||r.each(e,function(t,e){var n=i[e];for(var o in t)if(t.hasOwnProperty(o)&&!r.isObject(t[o])&&t[o]!==n[o]){a=!0;break}if(a)return!1}),a},n.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},n.setPosition=function(t,e){this.set("x",t),this.set("y",e)},n.render=function(){},n.clear=function(){},n.show=function(){this.set("visible",!0)},n.hide=function(){this.set("visible",!1)},n.destroy=function(){},e}(i);t.exports=a},function(t,e,n){"use strict";function i(t,e){this._groups=t,this._parents=e}function r(){return new i([[document.documentElement]],F)}n.d(e,"c",function(){return F}),e.a=i;var a=n(400),o=n(401),s=n(402),l=n(403),u=n(380),c=n(405),h=n(406),f=n(407),p=n(408),g=n(409),d=n(410),v=n(411),y=n(412),x=n(413),m=n(414),_=n(415),b=n(382),w=n(416),S=n(417),M=n(418),C=n(419),A=n(420),k=n(421),P=n(422),I=n(423),T=n(424),O=n(425),L=n(426),E=n(372),D=n(427),F=[null];i.prototype=r.prototype={constructor:i,select:a.a,selectAll:o.a,filter:s.a,data:l.a,enter:u.b,exit:c.a,merge:h.a,order:f.a,sort:p.a,call:g.a,nodes:d.a,node:v.a,size:y.a,empty:x.a,each:m.a,attr:_.a,style:b.a,property:w.a,classed:S.a,text:M.a,html:C.a,raise:A.a,lower:k.a,append:P.a,insert:I.a,remove:T.a,clone:O.a,datum:L.a,on:E.b,dispatch:D.a},e.b=r},function(t,e,n){"use strict";function i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}n.d(e,"c",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return p}),n.d(e,"a",function(){return g}),e.g=function(t,e){var n=i(t,e);if(n.state>l)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=i(t,e);if(n.state>c)throw new Error("too late; already started");return n},e.f=i;var r=n(436),a=n(167),o=Object(r.a)("start","end","interrupt"),s=[],l=0,u=1,c=2,h=3,f=4,p=5,g=6;e.e=function(t,e,n,i,r,d){var v=t.__transition;if(v){if(n in v)return}else t.__transition={};!function(t,e,n){function i(p){var d,v,y,x;if(n.state!==u)return o();for(d in l)if((x=l[d]).name===n.name){if(x.state===h)return Object(a.timeout)(i);x.state===f?(x.state=g,x.timer.stop(),x.on.call("interrupt",t,t.__data__,x.index,x.group),delete l[d]):+d0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r(t)&&(t=t.getTime()),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(399);n.d(e,"create",function(){return i.a});var r=n(358);n.d(e,"creator",function(){return r.a});var a=n(428);n.d(e,"local",function(){return a.a});var o=n(379);n.d(e,"matcher",function(){return o.a});var s=n(429);n.d(e,"mouse",function(){return s.a});var l=n(368);n.d(e,"namespace",function(){return l.a});var u=n(369);n.d(e,"namespaces",function(){return u.a});var c=n(359);n.d(e,"clientPoint",function(){return c.a});var h=n(377);n.d(e,"select",function(){return h.a});var f=n(430);n.d(e,"selectAll",function(){return f.a});var p=n(69);n.d(e,"selection",function(){return p.b});var g=n(370);n.d(e,"selector",function(){return g.a});var d=n(378);n.d(e,"selectorAll",function(){return d.a});var v=n(382);n.d(e,"style",function(){return v.b});var y=n(431);n.d(e,"touch",function(){return y.a});var x=n(432);n.d(e,"touches",function(){return x.a});var m=n(371);n.d(e,"window",function(){return m.a});var _=n(372);n.d(e,"event",function(){return _.c}),n.d(e,"customEvent",function(){return _.a})},function(t,e,n){t.exports={Position:n(289),Color:n(290),Shape:n(291),Size:n(292),Opacity:n(293),ColorUtil:n(149)}},function(t,e,n){var i=n(75),r=n(16);r.Linear=n(33),r.Identity=n(172),r.Cat=n(77),r.Time=n(173),r.TimeCat=n(175),r.Log=n(176),r.Pow=n(177);var a=function(t){if(r.hasOwnProperty(t)){var e=i(t);r[e]=function(e){return new r[t](e)}}};for(var o in r)a(o);var s=["cat","timeCat"];r.isCategory=function(t){return s.indexOf(t)>=0},t.exports=r},function(t,e,n){var i=n(23);t.exports=function(t){var e=i(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){function n(t,e){var n=t.length;if(0===n)return NaN;var i=t[0];if(e=t[n-1])return t[n-1];for(var r=1;rt[n-1])return NaN;if(er&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}(t*=i);i*=o,t/=o}var s=(t="floor"===n?a.snapFloor(e,t):"ceil"===n?a.snapCeiling(e,t):a.snapTo(e,t))*i;if(Math.abs(i)<1&&s.toString().length>r){s=t/parseInt(1/i)*(i>0?1:-1)}return s},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var r=n(t,e),a=i(t,e);if(isNaN(r)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-r)20&&(r=20),parseFloat(t.toFixed(r))}};t.exports=a},function(t,e,n){var i=n(16),r=n(78),a=n(2),o=n(9),s=n(10),l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this.values,e=this.tickCount;if(a(t,function(e,n){t[n]=e.toString()}),!this.ticks){var n=t;if(e){n=r({maxCount:e,data:t,isRounding:this.isRounding}).ticks}this.ticks=n}},n.getText=function(e){return-1===this.values.indexOf(e)&&o(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&o(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax();return(s(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(i-n)},n.invert=function(t){if(s(t))return t;var e=this.rangeMin(),n=this.rangeMax();tn&&(t=n);var i=(t-e)/(n-e),r=Math.round(i*(this.values.length-1))%this.values.length;return r=r||0,this.values[r]},e}(i);i.Cat=l,t.exports=l},function(t,e,n){var i=n(2);t.exports=function(t){var e,n={},r=[],a=t.isRounding,o=function(t){var e=[];return i(t,function(t){e=e.concat(t)}),e}(t.data),s=o.length,l=t.maxCount||8;if(a?2===(e=function(t,e){var n;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}(s-1,l-1)+1)?e=l:e3?0:(t-t%10!=10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},m={D:[c,function(t,e){t.day=e}],Do:[new RegExp(c.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[c,function(t,e){t.month=e-1}],YY:[c,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[c,function(t,e){t.hour=e}],m:[c,function(t,e){t.minute=e}],s:[c,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[c,p],ddd:[h,p],MMM:[h,o("monthNamesShort")],MMMM:[h,o("monthNames")],a:[h,function(t,e,n){var i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,i=(e+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),t.timezoneOffset="+"===i[0]?n:-n)}]};m.dd=m.d,m.dddd=m.ddd,m.DD=m.D,m.mm=m.m,m.hh=m.H=m.HH=m.h,m.MM=m.M,m.ss=m.s,m.A=m.a,l.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},l.format=function(t,e,n){var i=n||l.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var r=[];return e=(e=l.masks[e]||e||l.masks.default).replace(f,function(t,e){return r.push(e),"??"}),(e=e.replace(u,function(e){return e in x?x[e](t,i):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return r.shift()})},l.parse=function(t,e,n){var i=n||l.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=l.masks[e]||e,t.length>1e3)return!1;var r=!0,a={};if(e.replace(u,function(e){if(m[e]){var n=m[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,i),t=t.substr(o+e.length),e}):r=!1}return m[e]?"":e.slice(1,e.length-1)}),!r)return!1;var o=new Date;!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0);var s;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):s=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),s},void 0!==t&&t.exports?t.exports=l:void 0!==(i=function(){return l}.call(e,n,e,t))&&(t.exports=i)}()},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Date")}},function(t,e,n){t.exports={isFunction:n(11),isObject:n(24),isBoolean:n(82),isNil:n(5),isString:n(10),isArray:n(4),isNumber:n(9),isEmpty:n(83),uniqueId:n(86),clone:n(46),deepMix:n(47),assign:n(8),merge:n(47),upperFirst:n(87),each:n(2),isEqual:n(49),toArray:n(34),extend:n(88),augment:n(89),remove:n(90),isNumberEqual:n(35),toRadian:n(91),toDegree:n(92),mod:n(93),clamp:n(50),createDom:n(94),modifyCSS:n(95),requestAnimationFrame:n(96),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(51),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Boolean")}},function(t,e,n){var i=n(5),r=n(13),a=n(84),o=n(85),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(i(t))return!0;if(r(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var i=n(23);t.exports=function(t){var e=i(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var i=n(11),r=n(8);t.exports=function(t,e,n,a){i(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},s=o(e.prototype,t);return t.prototype=r(s,t.prototype),t.superclass=o(e.prototype,e),r(s,n),r(t,a),t}},function(t,e,n){var i=n(11),r=n(34),a=n(8);t.exports=function(t){for(var e=r(arguments),n=1;n-1;)i.call(t,s,1);return t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=document.createElement("table"),i=document.createElement("tr"),r=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:i,th:i,"*":document.createElement("div")};t.exports=function(t){var e=r.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){var i=n(180),r=n(50);i.angle=function(t,e){var n=i.dot(t,e)/(i.length(t)*i.length(e));return Math.acos(r(n,-1,1))},i.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},i.angleTo=function(t,e,n){var r=i.angle(t,e),a=i.direction(t,e)>=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r},i.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=i},function(t,e,n){var i=n(181);t.exports=i},function(t,e,n){var i=n(46),r=n(2),a=n(51);t.exports=function(t,e){return t=i(t),r(e,function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}}),t}},function(t,e,n){var i=n(1),r=function(t,e,n,i){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};i.augment(r,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return i.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=r},function(t,e,n){function i(t,e,n){for(var i,r=t.length-1;r>=0;r--){var a=t[r];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?i=a.getShape(e,n):a.isHit(e,n)&&(i=a)),i)break}return i}function r(t){if(!t._cfg&&t!==c){var e=t.superclass.constructor;e&&!e._cfg&&r(e),t._cfg={},a.merge(t._cfg,e._cfg),a.merge(t._cfg,t.CFG)}}var a=n(1),o=n(102),s=n(185),l={},u="_INDEX",c=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(c,o),a.augment(c,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return r(this.constructor),a.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=l[t];if(i||(i=a.upperFirst(t),l[t]=i),e.attrs&&n){var r=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(r.fontFamily=r.fontFamily?r.fontFamily:o)}}e.canvas=n,e.type=t;var u=new s[i](e);return this.add(u),u},addGroup:function(t,e){var n,i=this.get("canvas");if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(a.isObject(t))t.canvas=i,n=new c(t),this.add(n);else{if(void 0!==t)return!1;n=new c,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return a.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),c.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var i=t,r=i.get("parent");r&&r.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.get("children");r.length>0?a.each(r,function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],l=[a.maxX,a.minY,1],u=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(l),r.apply(u);var c=Math.min(o[0],s[0],l[0],u[0]),h=Math.max(o[0],s[0],l[0],u[0]),f=Math.min(o[1],s[1],l[1],u[1]),p=Math.max(o[1],s[1],l[1],u[1]);ce&&(e=h),fi&&(i=p)}}):(t=0,e=0,n=0,i=0);var o={minX:t,minY:n,maxX:e,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return a.each(t,function(t,e){return t[u]=e,t}),t.sort(function(t){return function(e,n){var i=t(e,n);return 0===i?e[u]-n[u]:i}}(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(a.isString(t))return this.findById(t);var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},getShape:function(t,e){var n,r=this._attrs.clip,a=this._cfg.children;if(r){var o=[t,e,1];r.invert(o,this.get("canvas")),r.isPointInPath(o[0],o[1])&&(n=i(a,t,e))}else n=i(a,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),c.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new c;return a.each(t,function(t){e.add(t.clone())}),e}}),t.exports=c},function(t,e,n){var i=n(1),r=n(182),a=n(183),o=n(184),s=n(53),l=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},i.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};l.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},i.augment(l,r,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,r=n.parent,a=n.el;return r&&i.remove(r.get("children"),this),a&&(e?r&&r._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);n.splice(r,1),n.push(this),i&&(i.parentNode.removeChild(i),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);if(n.splice(r,1),n.unshift(this),i){var a=i.parentNode;a.removeChild(i),a.insertBefore(i,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,i.isNil(e)||e.sort();var n=this._cfg.el;if(n){var r=e._cfg.children,a=r.indexOf(this),o=n.parentNode;o.removeChild(n),a===r.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return i.clone(this)},getBBox:function(){}}),t.exports=l},function(t,e,n){function i(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function r(t,e,n,r,a,s,l,u,c){var h,f,p,g,d,v,y,x=.005,m=1/0,_=[l,u];for(d=0;d<1;d+=.05)p=[i(t,n,a,d),i(e,r,s,d)],(f=o.squaredDistance(_,p))=0&&f=0?[r]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,i,r){return e*Math.cos(t)*Math.cos(r)-n*Math.sin(t)*Math.sin(r)+i},yAt:function(t,e,n,i,r){return e*Math.sin(t)*Math.cos(r)+n*Math.cos(t)*Math.sin(r)+i},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function i(t,e,n){return t+e*Math.cos(n)}function r(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(6),s=n(37),l=n(38),u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(u,o),a.augment(u,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=t.startAngle,a=t.endAngle,o=t.clockwise,l=this.getHitLineWidth()/2,u=s.box(e,n,i,r,a,o);return u.minX-=l,u.minY-=l,u.maxX+=l,u.maxY+=l,u},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=t.clockwise,l=Math.PI/180;s&&(l*=-1);var u=[],c=i(e,o,a+l),h=r(n,o,a+l),f=i(e,o,a),p=r(n,o,a);return u.push([c,h]),u.push([f,p]),u},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=t.clockwise,l=Math.PI/180,u=[];s&&(l*=-1);var c=i(e,o,a+l),h=r(n,o,a+l),f=i(e,o,a),p=r(n,o,a);return u.push([f,p]),u.push([c,h]),u},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,i,r,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();l.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var i=this.getEndTangent();l.addEndArrow(t,e,i[0][0],i[0][1],i[1][0],i[1][1])}}}),t.exports=u},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rx,r=t.ry,a=this.getHitLineWidth(),o=i+a/2,s=r+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,l=a>o?1:a/o,u=a>o?o/a:1,c=[1,0,0,0,1,0,0,0,1];i.mat3.scale(c,c,[l,u]),i.mat3.translate(c,c,[n,r]),t.beginPath(),t.save(),t.transform(c[0],c[1],c[3],c[4],c[6],c[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(37),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},i.extend(o,r),i.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rs,r=t.re,o=t.startAngle,s=t.endAngle,l=t.clockwise,u=this.getHitLineWidth(),c=a.box(e,n,i,o,s,l),h=a.box(e,n,r,o,s,l),f=u/2;return{minX:Math.min(c.minX,h.minX)-f,minY:Math.min(c.minY,h.minY)-f,maxX:Math.max(c.maxX,h.maxX)+f,maxY:Math.max(c.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,l=e.clockwise,u={x:Math.cos(o)*r+n,y:Math.sin(o)*r+i},c={x:Math.cos(o)*a+n,y:Math.sin(o)*a+i},h={x:Math.cos(s)*r+n,y:Math.sin(s)*r+i};(t=t||self.get("context")).beginPath(),t.moveTo(u.x,u.y),t.lineTo(c.x,c.y),t.arc(n,i,a,o,s,l),t.lineTo(h.x,h.y),t.arc(n,i,r,s,o,!l),t.closePath()}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},i.extend(a,r),i.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!i.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&i.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var r=new Image;r.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",r);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},r.src=n,r.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.img,o=e.width,s=e.height,l=e.sx,u=e.sy,c=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&i.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(i.isNil(l)||i.isNil(u)||i.isNil(c)||i.isNil(h))return void t.drawImage(f,n,r,o,s);if(!(i.isNil(l)||i.isNil(u)||i.isNil(c)||i.isNil(h)))return void t.drawImage(f,l,u,c,h,n,r,o,s)}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(s,r),i.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,i=t.x2,r=t.y2,a=this.getHitLineWidth();return o.box(e,n,i,r,a)},createPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,i),t.lineTo(r,a)},afterPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,r,o,n,i),e.endArrow&&a.addEndArrow(t,e,n,i,r,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(6),a=n(39),o=n(27),s=n(38),l=n(57),u=n(55),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(c,r),i.augment(c,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(i.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=o.parsePath(t),r=[];if(i.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var s=n.length,l=0;lr&&(r=i.maxX),i.minYo&&(o=i.maxY))}),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:r,maxY:o}},_setTcache:function(){var t,e,n,r,a=0,o=0,s=[],l=this._cfg.curve;l&&(i.each(l,function(t,e){n=l[e+1],r=t.length,n&&(a+=u.len(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),i.each(l,function(i,c){n=l[c+1],r=i.length,n&&((t=[])[0]=o/a,e=u.len(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))}),this._cfg.tCache=s)},_calculateCurve:function(){var t=this._attrs.path;this._cfg.curve=l.pathTocurve(t)},getStartTangent:function(){var t,e,n,r,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,r=[],i.isFunction(n)){var o=n();r.push([t.x-o[0],t.y-o[1]]),r.push([t.x,t.y])}else r.push([e.x,e.y]),r.push([t.x,t.y]);return r},getEndTangent:function(){var t,e,n,r,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,r=[],i.isFunction(n)){var s=n();r.push([e.x-s[0],e.y-s[1]]),r.push([e.x,e.y])}else r.push([t.x,t.y]),r.push([e.x,e.y]);return r},getPoint:function(t){var e,n,r=this._cfg.tCache;r||(this._calculateCurve(),this._setTcache(),r=this._cfg.tCache);var a=this._cfg.curve;if(!r)return a?{x:a[0][1],y:a[0][2]}:null;i.each(r,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)});var o=a[n];if(i.isNil(o)||i.isNil(n))return null;var s=o.length,l=a[n+1];return{x:u.at(o[s-2],l[1],l[3],l[5],1-e),y:u.at(o[s-1],l[2],l[4],l[6],1-e)}},createPath:function(t){var e=this.get("segments");if(i.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,r=0;ra&&(a=e),io&&(o=i)});var s=e/2;return{minX:n-s,minY:r-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),i.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},i.extend(s,r),i.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var r=1/0,a=1/0,o=-1/0,s=-1/0;i.each(n,function(t){var e=t[0],n=t[1];eo&&(o=e),ns&&(s=n)});var l=e/2;return{minX:r-l,minY:a-l,maxX:o+l,maxY:s+l}},_setTcache:function(){var t,e,n=this._attrs.points,r=0,a=0,s=[];n&&0!==n.length&&(i.each(n,function(t,e){n[e+1]&&(r+=o.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),r<=0||(i.each(n,function(i,l){n[l+1]&&((t=[])[0]=a/r,e=o.len(i[0],i[1],n[l+1][0],n[l+1][1]),a+=e,t[1]=a/r,s.push(t))}),this.tCache=s))},createPath:function(t){var e,n,i=this._attrs.points;if(!(i.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(i[0][0],i[0][1]),n=1,e=i.length-1;n=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}),{x:o.at(r[n][0],r[n+1][0],e),y:o.at(r[n][1],r[n+1][1],e)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(27).parseRadius,a=n(6),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},i.extend(o,a),i.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,i,a,o);else{var l=r(s);t.moveTo(n+l.r1,i),t.lineTo(n+a-l.r2,i),0!==l.r2&&t.arc(n+a-l.r2,i+l.r2,l.r2,-Math.PI/2,0),t.lineTo(n+a,i+o-l.r3),0!==l.r3&&t.arc(n+a-l.r3,i+o-l.r3,l.r3,0,Math.PI/2),t.lineTo(n+l.r4,i+o),0!==l.r4&&t.arc(n+l.r4,i+o-l.r4,l.r4,Math.PI/2,Math.PI),t.lineTo(n,i+l.r1),0!==l.r1&&t.arc(n+l.r1,i+l.r1,l.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,a=t.fontVariant;t.font=[r,a,i,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(i.isString(e)&&-1!==e.indexOf("\n")){var r=(n=e.split("\n")).length;t.lineCount=r}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this._getSpaceingY()*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,i=t.y,r=this.measureText();if(!r)return{minX:n,minY:i,maxX:n,maxY:i};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,l=this.getHitLineWidth(),u={x:n,y:i-a};o&&("end"===o||"right"===o?u.x-=r:"center"===o&&(u.x-=r/2)),s&&("top"===s?u.y+=a:"middle"===s&&(u.y+=a/2)),this.set("startPoint",u);var c=l/2;return{minX:u.x-c,minY:u.y-c,maxX:u.x+r+c,maxY:u.y+a+c}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var r=e.text;if(r){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var l=e.strokeOpacity;i.isNil(l)||1===l||(t.globalAlpha=l),a?this._drawTextArr(t,!1):t.strokeText(r,o,s),t.globalAlpha=1}if(this.hasFill()){var u=e.fillOpacity;i.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!0):t.fillText(r,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,r=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),l=this._attrs.x,u=this._attrs.y,c=this.getBBox(),h=c.maxY-c.minY;i.each(r,function(i,r){n=u+r*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(i,l,n):t.strokeText(i,l,n)})},measureText:function(){var t,e=this._attrs,n=e.text,r=e.font,a=e.textArr,o=0;if(!i.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=r,a?i.each(a,function(e){t=s.measureText(e).width,ol&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,h.push({i:u,x:Object(i.a)(n,o)})),l=a.lastIndex;return lo&&(n=t,o=s)}),n}}},function(t,e){t.exports=parseInt},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var i=n(2),r=n(11),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i(t,function(n,i){r(t)&&"prototype"===i||e.push(n)}),e};t.exports=a},function(t,e,n){var i=n(137);t.exports=function(t,e,n,r,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,r-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-r],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=i,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var i=n(139),r=function(t,e,n,i){return[t,e,n,i,n,i]},a=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]};t.exports=function(t,e){var n=i(t),o=e&&i(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=[],c=[],h="",f="",p=void 0,g=function(t,e,n){var i=void 0,o=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,a,o,s,l,u,c){i===r&&(i+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],g=void 0,d=void 0,v=void 0,y=void 0,x=void 0,m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)d=c[0],v=c[1],y=c[2],x=c[3];else{e=(g=m(e,n,-f)).x,n=g.y,l=(g=m(l,u,-f)).x,u=g.y,e===l&&n===u&&(l+=1,u+=1);var _=(e-l)/2,b=(n-u)/2,w=_*_/(i*i)+b*b/(r*r);w>1&&(i*=w=Math.sqrt(w),r*=w);var S=i*i,M=r*r,C=(o===s?-1:1)*Math.sqrt(Math.abs((S*M-S*b*b-M*_*_)/(S*b*b+M*_*_)));y=C*i*b/r+(e+l)/2,x=C*-r*_/i+(n+u)/2,d=Math.asin(((n-x)/r).toFixed(9)),v=Math.asin(((u-x)/r).toFixed(9)),d=ev&&(d-=2*Math.PI),!s&&v>d&&(v-=2*Math.PI)}var A=v-d;if(Math.abs(A)>h){var k=v,P=l,I=u;v=d+h*(s&&v>d?1:-1),p=t(l=y+i*Math.cos(v),u=x+r*Math.sin(v),i,r,a,0,s,P,I,[v,k,y,x])}A=v-d;var T=Math.cos(d),O=Math.sin(d),L=Math.cos(v),E=Math.sin(v),D=Math.tan(A/4),F=4/3*i*D,B=4/3*r*D,R=[e,n],j=[e+F*O,n-B*T],N=[l+F*E,u-B*L],z=[l,u];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],c)return[j,N,z].concat(p);for(var Y=[],V=0,H=(p=[j,N,z].concat(p).join().split(",")).length;V7){t[e].shift();for(var i=t[e];i.length;)u[e]="A",o&&(c[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),p=Math.max(n.length,o&&o.length||0)}},v=function(t,e,i,r,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],p=Math.max(n.length,o&&o.length||0))};p=Math.max(n.length,o&&o.length||0);for(var y=0;y180),0,l,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a}var r=n(140),a=n(141);t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,l=0,u=0,c=void 0,h=void 0;"M"===t[0][0]&&(s=n=+t[0][1],l=o=+t[0][2],u++,e[0]=["M",n,o]);for(var f,p,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=u,v=t.length;d2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=e[s]&&(i.push([n].concat(o.splice(0,e[s]))),e[s]););}),i}},function(t,e){t.exports=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var i=n(23);t.exports=function(t){return i(t).toLowerCase()}},function(t,e,n){var i=n(23);t.exports=function(t){return i(t).toUpperCase()}},function(t,e,n){var i=n(145);t.exports=function(t,e){if(!e)return[t];var n=i(t,e),r=[];for(var a in n)r.push(n[a]);return r}},function(t,e,n){var i=n(11),r=n(4),a=n(146);t.exports=function(t,e){if(!e)return{0:t};if(!i(e)){var n=r(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i');t.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=s.getWidth(t,n),this.set("width",n));var l=this.get("renderer"),u=new o({containerDOM:a,width:n,height:i,pixelRatio:"svg"===l?1:this.get("pixelRatio"),renderer:l});this.set("canvas",u)},n._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:0}),i=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",i)},n._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(u,{padding:this.get("padding"),plotBackground:r.mix({},e.plotBackground,this.get("plotBackground")),background:r.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",r.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(r.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options").legends;if(r.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),i=[];r.each(n,function(t){var n=t.get("view"),a=t.getAttrsForLegend();r.each(a,function(a){var o=a.type,s=a.getScale(o);if(s.field&&"identity"!==s.type&&!function(t,e){var n=!1;return r.each(t,function(t){var i=[].concat(t.values),r=[].concat(e.values);t.type!==e.type||t.field!==e.field||i.sort().toString()!==r.sort().toString()||(n=!0)}),n}(i,s)){i.push(s);var l=n.getFilteredOutValues(s.field);e.addLegend(s,a,t,l)}})});var a=this.getYScales();0===i.length&&a.length>1&&e.addMixedLegend(a,n)}e.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(r.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},n.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return r.each(e,function(e){t=t.concat(e.get("geoms"))}),t},n.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=s.getWidth(t,e);if(0!==n&&n!==e){var i=this.get("height");this.changeSize(n,i)}return this}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");i(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},n.changeWidth=function(t){return this.changeSize(t,this.get("height"))},n.changeHeight=function(t){return this.changeSize(this.get("width"),t)},n.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),r.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=r.mix({},this._getSharedOptions(),t.options);var e=new a(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},n.removeView=function(t){var e=this.get("views");r.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return r.each(["scales","coord","axes"],function(n){e[n]=r.cloneDeep(t[n])}),e},n.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},n.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var i={};return!1===t?n.legends=!1:r.isObject(t)?i=t:r.isString(t)?i[t]=e:i=e,r.mix(n.legends,i),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:r.isObject(t)?r.mix(n.tooltip,t):r.mix(n.tooltip,e),this},n.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;){e.shift().destroy()}t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},n.clearInner=function(){var e=this.get("views");r.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var i=this.get("legendController");i&&i.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");i(n.get("padding"),e)||(n.set("padding",e),n.repaint())}var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var o=r.getClipByRange(this.get("plotRange"));a.attr("clip",o)}t.prototype.render.call(this),this._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},n.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),i="";if("svg"===e){var r=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(r,o.documentElement);var s=(new XMLSerializer).serializeToString(o);i="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(i=n.toDataURL("image/png"));return i},n.downloadImage=function(t){var e=this,n=document.createElement("a"),i=e.get("renderer"),r=(t||"chart")+("svg"===i?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==i){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,r):n.addEventListener("click",function(){n.download=r,n.href=window.URL.createObjectURL(c)})}else n.addEventListener("click",function(){n.download=r,n.href=t});var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)},16)},n.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){this.get("tooltipController").showTooltip(t,e)}return this},n.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},n.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return r.each(e,function(e){var i=e.get("geoms");r.each(i,function(e){var i=e.get("dataArray"),a=[];r.each(i,function(n){var i=e.findPoint(t,n);if(i){var r=e.getTipItems(i);a=a.concat(r)}}),n=n.concat(a)})}),n},n.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",r.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(a);t.exports=h},function(t,e,n){var i=n(53),r=n(0),a=function(t){function e(e){var n,i={visible:!0},a=(n=t.call(this)||this).getDefaultCfg();return n._attrs=i,r.assign(i,a,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},n.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(i);t.exports=a},function(t,e,n){function i(t,e,n,i){return t[i]+(e[i]-t[i])*n}function r(t){return"#"+a(t[0])+a(t[1])+a(t[2])}function a(t){return t=Math.round(t),1===(t=t.toString(16)).length&&(t="0"+t),t}function o(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var s=n(9),l=n(10),u=n(2),c=/rgba?\(([\s.,0-9]+)\)/,h={},f=null,p={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;f||(f=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}());var e;if(h[t])e=h[t];else{f.style.color=t,e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color");e=r(c.exec(e)[1].split(/\s*,\s*/)),h[t]=e}return e},rgb2arr:o,gradient:function(t){var e=[];return l(t)&&(t=t.split("-")),u(t,function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){(isNaN(e)||!s(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,a=Math.floor(n*e),o=n*e-a,l=t[a],u=a===n?l:t[a+1];return r([i(l,u,o,0),i(l,u,o,1),i(l,u,o,2)])}(e,t)}}};t.exports=p},function(t,e,n){var i=n(2),r={values:n(64)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];if(this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),i(n,function(n){var i=r.values(t,n);i.sort(function(t,e){return t-e}),e[n]=i}),!this.yField&&this.isAdjust("y")){var a=[0,1];e.y=a}return e},adjustData:function(t,e){var n=this,r=n._getDimValues(e);i(t,function(e,a){i(r,function(i,r){n.adjustDim(r,i,e,t.length,a)})})},getAdjustRange:function(t,e,n){var i,r,a=n.indexOf(e),o=n.length;return!this.yField&&this.isAdjust("y")?(i=0,r=1):o>1?(i=0===a?n[0]:n[a-1],r=a===o-1?n[o-1]:n[a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==o-1?r-=(r-e)/2:r+=(e-n[o-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},groupData:function(t,e){var n={};return i(t,function(t){var i=t[e];void 0===i&&(i=t[e]=0),n[i]||(n[i]=[]),n[i].push(t)}),n}}},function(t,e,n){var i={default:n(152),dark:n(301)};t.exports=i},function(t,e){var n,i,r='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:r,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:r}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:r}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:r}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:r},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:r,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:r},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(i={useHtml:!0,crosshairs:!1,offset:15},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={marginBottom:"4px"},i["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.6},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:r,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:r}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=a},function(t,e,n){var i=n(25).Group,r=n(3),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},n._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},n._drawLines=function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},n._precessItems=function(t){var e,n=this;r.each(t,function(t,i){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,i),e=t})},n._drawGridLines=function(t,e){var n,i,a,o,s=this,l=this.get("type"),u=t.length;"line"===l||"polygon"===l?r.each(t,function(t,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===u-1||(o=t.points,i=[],"line"===l?(i.push(["M",o[0].x,o[0].y]),i.push(["L",o[o.length-1].x,o[o.length-1].y])):r.each(o,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])}),a=s._drawZeroLine(l,c)?r.mix({},s.get("zeroLineStyle"),{path:i}):r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}):r.each(t,function(t,l){s.get("hideFirstLine")&&0===l||s.get("hideLastLine")&&l===u-1||(o=t.points,i=[],r.each(o,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])}),a=r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})},n._drawZeroLine=function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},n._drawAlternativeBg=function(t,e,n){var i,a,o,s=this.get("alternateColor");r.isString(s)?a=s:r.isArray(s)&&(a=s[0],o=s[1]),n%2==0?o&&(i=this._getBackItem(e.points,t.points,o)):a&&(i=this._getBackItem(e.points,t.points,a));var l=this.addShape("Path",{attrs:i});l.name="axis-grid-rect",l._id=t._id&&t._id.replace("grid","grid-rect"),l.set("coord",this.get("coord")),this.get("appendInfo")&&l.setSilent("appendInfo",this.get("appendInfo"))},n._getBackItem=function(t,e,n){var i=[],a=this.get("type");if("line"===a)i.push(["M",t[0].x,t[0].y]),i.push(["L",t[t.length-1].x,t[t.length-1].y]),i.push(["L",e[e.length-1].x,e[e.length-1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]);else if("polygon"===a){r.each(t,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)i.push(["L",e[o].x,e[o].y]);i.push(["Z"])}else{var s=t[0].flag;r.each(t,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var l=e.length-1;l>=0;l--){var u=e[l],c=u.radius;l===e.length-1?i.push(["M",u.x,u.y]):i.push(["A",c,c,0,0,1===s?0:1,u.x,u.y])}}return{fill:n,path:i}},e}(i);t.exports=a},function(t,e,n){var i=n(3),r=i.DomUtil,a=n(32),o={scatter:n(304),map:n(305),treemap:n(306)},s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'
',itemTpl:'
{text}
',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},n.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},n.destroy=function(){var t=this.get("group"),e=this.get("container");t.destroy||t.destroy(),e&&(e.innerHTML="")},n.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},n._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),r=n.length;i.each(e,function(e,i){if(i=e.length;a--)n[a].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},n.draw=function(){this._dryDraw(),this.get("canvas").draw()},n.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},n.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},n.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},n.drawLines=function(){var t=this;"boolean"==typeof t.get("labelLine")&&t.set("labelLine",{});var e=t.get("lineGroup");!e||e.get("destroyed")?(e=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",e)):e.clear(),i.each(t.get("items"),function(n){t.lineToLabel(n,e)})},n.lineToLabel=function(t,e){if(this.get("config")||t.labelLine){var n=t.labelLine||this.get("labelLine"),r=void 0===t.capture?this.get("capture"):t.capture,a=n.path;if(a&&i.isFunction(n.path)&&(a=n.path(t)),!a){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};a=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var l=e.addShape("path",{attrs:i.mix({path:a,fill:null,stroke:s},n),capture:r});l.name=this.get("name"),l._id=t._id&&t._id.replace("glabel","glabelline"),l.set("coord",this.get("coord"))}},n._adjustLabels=function(){var t=this.get("type"),e=this.getLabels(),n=this.get("shapes"),i=o[t];"default"!==t&&i&&i(e,n)},n.getLabels=function(){var t=this.get("container");return t?i.toArray(t.childNodes):this.get("group").get("children")},n._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},n._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},r=this.get("formatter"),a=this.get("htmlTemplate");if(!i.isObject(t)){var o=t;(t={}).text=o}i.isFunction(n)&&(n=n(t.text,t,e)),r&&(t.text=r(t.text,t,e)),a&&(t.useHtml=!0,i.isFunction(a)&&(t.text=a(t.text,t,e))),i.isNil(t.text)&&(t.text=""),t.text=t.text+"";return i.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},n._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},n.initHtmlContainer=function(){var t=this.get("container");if(t)i.isString(t)&&(t=document.getElementById(t))&&this.set("container",t);else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=r.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},n._createText=function(t){var e,n=this.get("container"),r=void 0===t.capture?this.get("capture"):t.capture;if(!t.useHtml&&!t.htmlTemplate){var a=this.get("name"),o=t.point,s=this.get("group");delete t.point;var l=t.rotate;return t.textStyle&&(t.textStyle.rotate&&(l=t.textStyle.rotate,delete t.textStyle.rotate),t=i.mix({x:t.x,y:t.y,textAlign:t.textAlign,text:t.text},t.textStyle)),e=s.addShape("text",{attrs:t,capture:r}),l&&(Math.abs(l)>2*Math.PI&&(l=l/180*Math.PI),e.transform([["t",-t.x,-t.y],["r",l],["t",t.x,t.y]])),e.setSilent("origin",o||t),e.name=a,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}n||(n=this.initHtmlContainer());var u=this._createDom(t);n.appendChild(u),this._setCustomPosition(t,u)},n._createDom=function(t){var e=this.get("itemTpl"),n=i.substitute(e,{text:t.text});return r.createDom(n)},n._setCustomPosition=function(t,e){var n=t.textAlign||"left",i=t.y,a=t.x,o=r.getOuterWidth(e);i-=r.getOuterHeight(e)/2,"center"===n?a-=o/2:"right"===n&&(a-=o),e.style.top=parseInt(i,10)+"px",e.style.left=parseInt(a,10)+"px"},e}(a);t.exports=s},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.floor(t.minX),r=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=i;sn&&a.each(e,function(t){h=t.getBBox(),u=f||h.width,c=h.height+r,n-li&&a.each(n,function(t){p=t.getBBox(),h=p.width,f=p.height,u?g=u+r:h>g&&(g=h+r),i-c-1?t:t.parentNode?t.parentNode.className===h?t.parentNode:r(t.parentNode,e):null}function a(t,e){var n=null,i=e instanceof c?e.get("value"):e;return o.each(t,function(t){if(t.value===i)return n=t,!1}),n}var o=n(3),s=n(157),l=n(14).FONT_FAMILY,u=o.DomUtil,c=o.Group,h="g2-legend",f="g2-legend-list",p="g2-legend-list-item",g="g2-legend-marker",d=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"category-legend",container:null,containerTpl:'

    ',itemTpl:'
  • {value}
  • ',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:l},abridgeText:!1,tipTpl:'
    ',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},n._init=function(){},n.beforeRender=function(){},n.render=function(){this._renderHTML()},n._bindEvents=function(){var t=this,e=i(this.get("legendWrapper"),f);this.get("hoverable")&&(e.onmousemove=function(e){return t._onMousemove(e)},e.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(e.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,i=n.className;if(!((i=i.split(" ")).indexOf(h)>-1||i.indexOf(f)>-1)){var o=r(n,p),s=a(e,o.getAttribute("data-value"));s?(this.deactivate(),this.activate(o.getAttribute("data-value")),this.emit("itemhover",{item:s,currentTarget:o,checked:s.checked})):s||(this.deactivate(),this.emit("itemunhover",t))}},n._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this,n=i(this.get("legendWrapper"),f),s=this.get("unCheckColor"),l=this.get("items"),u=this.get("selectedMode"),c=n.childNodes,d=t.target,v=d.className;if(!((v=v.split(" ")).indexOf(h)>-1||v.indexOf(f)>-1)){var y=r(d,p),x=i(y,"g2-legend-text"),m=i(y,g),_=a(l,y.getAttribute("data-value"));if(_){var b=y.className,w=y.getAttribute("data-color");if("single"===u)_.checked=!0,o.each(c,function(t){if(t!==y){i(t,g).style.backgroundColor=s,t.className=t.className.replace("checked","unChecked"),t.style.color=s;a(l,t.getAttribute("data-value")).checked=!1}else x&&(x.style.color=e.get("textStyle").fill),m&&(m.style.backgroundColor=w),y.className=b.replace("unChecked","checked")});else{var S=-1!==b.indexOf("checked"),M=0;if(o.each(c,function(t){-1!==t.className.indexOf("checked")&&M++}),!this.get("allowAllCanceled")&&S&&1===M)return void this.emit("clicklastitem",{item:_,currentTarget:y,checked:"single"===u||_.checked});_.checked=!_.checked,S?(m&&(m.style.backgroundColor=s),y.className=b.replace("checked","unChecked"),y.style.color=s):(m&&(m.style.backgroundColor=w),y.className=b.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:_,currentTarget:y,checked:"single"===u||_.checked})}}},n.activate=function(t){var e=this,n=this,r=n.get("items"),o=a(r,t);i(n.get("legendWrapper"),f).childNodes.forEach(function(t){var s=i(t,g),l=a(r,t.getAttribute("data-value"));if(e.get("highlight")){if(l===o&&l.checked)return void(s.style.border="1px solid #333")}else l===o?s.style.opacity=n.get("activeOpacity"):l.checked&&(s.style.opacity=n.get("inactiveOpacity"))})},n.deactivate=function(){var t=this,e=this;i(e.get("legendWrapper"),f).childNodes.forEach(function(n){var r=i(n,g);t.get("highlight")?r.style.border="1px solid #fff":r.style.opacity=e.get("inactiveOpacity")})},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),r=this.get("containerTpl"),a=u.createDom(r),s=i(a,"g2-legend-title"),c=i(a,f),d=this.get("unCheckColor"),v=o.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:l,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:l},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"==typeof e&&e.constructor===String){var y=e.replace("#","");(e=document.getElementById(y)).appendChild(a)}else{var x=this.get("position"),m={};m="left"===x||"right"===x?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},u.modifyCSS(a,o.mix({},v.CONTAINER_CLASS,m,this.get(h))),e.appendChild(a)}u.modifyCSS(c,o.mix({},v.LIST_CLASS,this.get(f))),s&&(n&&n.text?(s.innerHTML=n.text,u.modifyCSS(s,o.mix({},v.TITLE_CLASS,this.get("g2-legend-title"),n))):a.removeChild(s));var _=this.get("items"),b=this.get("itemTpl"),w=this.get("position"),S=this.get("layout"),M="right"===w||"left"===w||"vertical"===S?"block":"inline-block",C=o.mix({},v.LIST_ITEM_CLASS,{display:M},this.get(p)),A=o.mix({},v.MARKER_CLASS,this.get(g));if(o.each(_,function(e,n){var r,s=e.checked,l=t._formatItemValue(e.value),h=e.marker.fill||e.marker.stroke,f=s?h:d;r=o.isFunction(b)?b(l,f,s,n):b;var p=o.substitute(r,o.mix({},e,{index:n,checked:s?"checked":"unChecked",value:l,color:f,originColor:h,originValue:e.value.replace(/\"/g,""")})),v=u.createDom(p);v.style.color=t.get("textStyle").fill;var y=i(v,g),x=i(v,"g2-legend-text");if(u.modifyCSS(v,C),y&&u.modifyCSS(y,A),s||(v.style.color=d,y&&(y.style.backgroundColor=d)),c.appendChild(v),t.get("abridgeText")){var m=l,_=v.offsetWidth,w=t.get("textStyle").fontSize;isNaN(w)&&(-1!==w.indexOf("pt")?w=1*parseFloat(w.substr(0,w.length-2))/72*96:-1!==w.indexOf("px")&&(w=parseFloat(w.substr(0,w.length-2))));var S=w*m.length,M=Math.floor(_/w);_<2*w?m="":_1&&(m=m.substr(0,M-1)+"..."),x.innerText=m,v.addEventListener("mouseover",function(){var t=i(a.parentNode,"textTip");t.style.display="block",t.style.left=v.offsetLeft+v.offsetWidth+"px",t.style.top=v.offsetTop+15+"px",t.innerText=l}),v.addEventListener("mouseout",function(){i(a.parentNode,"textTip").style.display="none"})}}),this.get("abridgeText")){var k=this.get("tipTpl"),P=u.createDom(k),I=this.get("tipStyle");u.modifyCSS(P,I),a.parentNode.appendChild(P),P.addEventListener("mouseover",function(){P.style.display="none"})}this.set("legendWrapper",a)},n._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");n&&(e[0]=n),i&&(e[1]=i);var r=this.get("legendWrapper");r.style.left=t[0]+"px",r.style.top=t[1]+"px",r.style.marginLeft=e[0]+"px",r.style.marginTop=e[1]+"px"},n.getWidth=function(){return u.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return u.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(u.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},n.destroy=function(){var t=this.get("legendWrapper");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(s);t.exports=d},function(t,e,n){var i=n(32),r=n(3),a=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init_(),n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},n._init_=function(){var t,e=this.get("plot");t="rect"===this.type?e.addGroup({zIndex:0}):e.addGroup(),this.set("container",t)},n._addLineShape=function(t,e){var n=this.get("container").addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,n),n},n._renderHorizontalLine=function(t,e){var n=this.get("lineStyle"),i=r.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(i,"X")},n._renderVerticalLine=function(t,e){var n=this.get("lineStyle"),i=r.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(i,"Y")},n._renderBackground=function(t,e){var n=this.get("rectStyle"),i=this.get("container"),a=r.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=i.addShape("rect",{attrs:a,capture:!1});return this.set("crosshairsRectShape",o),o},n._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),i=this.get("isTransposed"),a=t[0],o=t[t.length-1],s=i?"y":"x",l=i?"height":"width",u=a[s];if(t.length>1&&a[s]>o[s]&&(u=o[s]),this.get("width"))n.attr(s,u-this.get("crosshairs").width/2),n.attr(l,this.get("width"));else if(r.isArray(a.point[s])&&!a.size){var c=a.point[s][1]-a.point[s][0];n.attr(s,a.point[s][0]),n.attr(l,c)}else e=3*a.size/4,n.attr(s,u-e),1===t.length?n.attr(l,3*a.size/2):n.attr(l,Math.abs(o[s]-a[s])+2*e)},n.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},n.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},n.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},n.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},n.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},n.setPosition=function(t,e,n){var i=this.get("crossLineShapeX"),r=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");r&&!r.get("destroyed")&&r.move(t,0),i&&!i.get("destroyed")&&i.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},e}(i);t.exports=a},function(t,e){var n={_calcTooltipPosition:function(t,e,n,i,r,a){var o=0,s=0,l=20;if(a){var u=a.getBBox();o=u.width,s=u.height,t=u.x,e=u.y,l=5}switch(n){case"inside":t=t+o/2-i/2,e=e+s/2-r/2;break;case"top":t=t+o/2-i/2,e=e-r-l;break;case"left":t=t-i-l,e=e+s/2-r/2;break;case"right":t=t+o+l,e=e+s/2-r/2;break;case"bottom":default:t=t+o/2-i/2,e=e+s+l}return[t,e]},_constraintPositionInBoundary:function(t,e,n,i,r,a){return t+n+20>r?t=(t-=n+20)<0?0:t:t+20<0?t=20:t+=20,e+i+20>a?e=(e-=i+20)<0?0:e:e+20<0?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,i,r,a){return t+n>r.tr.x&&(t-=n+40),tr.bl.y&&(e-=i+40),ee&&!a){t+=2*Math.asin(e/(2*o))}else o+=e;return{x:r.x+o*Math.cos(t),y:r.y+o*Math.sin(t),angle:t,r:o}},n.getArcPoint=function(t,e){var n;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},n.getPointAngle=function(t){var e=this.get("coord");return r.getPointAngle(e,t)},n.getMiddlePoint=function(t){var e=this.get("coord"),n=t.length,i={x:0,y:0};return a.each(t,function(t){i.x+=t.x,i.y+=t.y}),i.x/=n,i.y/=n,i=e.convert(i)},n._isToMiddle=function(t){return t.x.length>2},n.getLabelPoint=function(t,e,n){var i,r=t.text[n],a=1;this._isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),i=this.getArcPoint(e,n));var o=this.getDefaultOffset(t);o*=a;var s=this.getPointAngle(i),l=this.getCirclePoint(s,o,i);if(l?(l.text=r,l.angle=s,l.color=e.color):l={text:""},t.autoRotate||void 0===t.autoRotate){var u=l.textStyle?l.textStyle.rotate:null;u||(u=l.rotate||this.getLabelRotate(s,o,e)),l.rotate=u}return l.start={x:i.x,y:i.y},l},n._isEmitLabels=function(){return this.get("label").labelEmit},n.getLabelRotate=function(t){var e;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},n.getLabelAlign=function(t){var e,n=this.get("coord");if(this._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=this.getDefaultOffset(t);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e}(i);t.exports=o},function(t,e,n){t.exports={Scale:n(338),Coord:n(339),Axis:n(344),Guide:n(345),Legend:n(348),Tooltip:n(350),Event:n(351)}},function(t,e,n){"use strict";function i(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function r(t){return Object(a.selection)().transition(t)}e.a=i,e.b=r,e.c=function(){return++S};var a=n(72),o=n(439),s=n(440),l=n(441),u=n(442),c=n(443),h=n(444),f=n(445),p=n(446),g=n(447),d=n(448),v=n(449),y=n(450),x=n(451),m=n(452),_=n(453),b=n(454),w=n(360),S=0,M=a.selection.prototype;i.prototype=r.prototype={constructor:i,select:d.a,selectAll:v.a,filter:h.a,merge:f.a,selection:y.a,transition:b.a,call:M.call,nodes:M.nodes,node:M.node,size:M.size,empty:M.empty,each:M.each,on:p.a,attr:o.a,attrTween:s.a,style:x.a,styleTween:m.a,text:_.a,remove:g.a,tween:w.a,delay:l.a,duration:u.a,ease:c.a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(58);n.d(e,"now",function(){return i.b}),n.d(e,"timer",function(){return i.c}),n.d(e,"timerFlush",function(){return i.d});var r=n(188);n.d(e,"timeout",function(){return r.a});var a=n(189);n.d(e,"interval",function(){return a.a})},function(t,e,n){var i=n(0),r=i.DomUtil,a=["start","process","end","reset"],o=function(){function t(t,e){var n=this,r=n.getDefaultCfg();i.assign(n,r,t),n.view=n.chart=e,n.canvas=e.get("canvas"),n._bindEvents()}var e=t.prototype;return e.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},e._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},e._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},e._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},e._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},e.start=function(){},e.process=function(){},e.end=function(){},e.reset=function(){},e._bindEvents=function(){var t=this,e=t.canvas.get("canvasDOM");t._clearEvents(),i.each(a,function(n){var a=i.upperFirst(n);t["_on"+a+"Listener"]=r.addEventListener(e,t[n+"Event"],i.wrapBehavior(t,"_"+n))})},e._clearEvents=function(){var t=this;i.each(a,function(e){var n="_on"+i.upperFirst(e)+"Listener";t[n]&&t[n].remove()})},e.destroy=function(){this._clearEvents()},t}();t.exports=o},function(t,e,n){var i=n(74),r=n(17),a=n(126),o=n(147),s=n(7),l=n(18),u=n(0),c={version:s.version,Animate:a,Chart:o,Global:s,Scale:i,Shape:l,Util:u,G:r,DomUtil:u.DomUtil,MatrixUtil:u.MatrixUtil,PathUtil:u.PathUtil};c.track=function(t){s.trackable=t},n(354),"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+c.version+"'s reference is 'window.G2_3'"):window.G2=c),t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(190);n.d(e,"easeLinear",function(){return i.a});var r=n(191);n.d(e,"easeQuad",function(){return r.b}),n.d(e,"easeQuadIn",function(){return r.a}),n.d(e,"easeQuadOut",function(){return r.c}),n.d(e,"easeQuadInOut",function(){return r.b});var a=n(192);n.d(e,"easeCubic",function(){return a.b}),n.d(e,"easeCubicIn",function(){return a.a}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.b});var o=n(193);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var s=n(194);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var l=n(195);n.d(e,"easeExp",function(){return l.b}),n.d(e,"easeExpIn",function(){return l.a}),n.d(e,"easeExpOut",function(){return l.c}),n.d(e,"easeExpInOut",function(){return l.b});var u=n(196);n.d(e,"easeCircle",function(){return u.b}),n.d(e,"easeCircleIn",function(){return u.a}),n.d(e,"easeCircleOut",function(){return u.c}),n.d(e,"easeCircleInOut",function(){return u.b});var c=n(197);n.d(e,"easeBounce",function(){return c.c}),n.d(e,"easeBounceIn",function(){return c.a}),n.d(e,"easeBounceOut",function(){return c.c}),n.d(e,"easeBounceInOut",function(){return c.b});var h=n(198);n.d(e,"easeBack",function(){return h.b}),n.d(e,"easeBackIn",function(){return h.a}),n.d(e,"easeBackOut",function(){return h.c}),n.d(e,"easeBackInOut",function(){return h.b});var f=n(199);n.d(e,"easeElastic",function(){return f.c}),n.d(e,"easeElasticIn",function(){return f.a}),n.d(e,"easeElasticOut",function(){return f.c}),n.d(e,"easeElasticInOut",function(){return f.b})},function(t,e,n){var i=n(5),r=n(9),a=n(76),o=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,n=t.max,l=t.interval,u=t.minTickInterval,c=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,g=i(t.minLimit)?-1/0:t.minLimit,d=i(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,y=v,x=t.snapArray?t.snapArray:p?o:s;if(e===g&&n===d&&p&&(l=(n-e)/(y-1)),i(e)&&(e=0),i(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!l&&n-e>=1&&(l=1)),i(l)){var m=(n-e)/(v-1);l=a.snapFactorTo(m,x,"ceil"),f!==h&&((y=parseInt((n-e)/l,10))>f&&(y=f),ye&&(_-=l),n=a.fixedBase(M,l),e=a.fixedBase(_,l)}n=Math.min(n,d),e=Math.max(e,g),c.push(e);for(var C=1;Cn?(s=o,o=n):s>n&&(s=n),l1&&(e.minTickInterval=s-o),(a(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(a(e.max)||e._toTimeStamp(e.max)d&&(d=n);var m=d/x,_=i(p);if(m>.51){for(var b=Math.ceil(m),w=i(g),S=_;S<=w+b;S+=b)f.push(r(S));d=null}else if(m>.0834){for(var M=Math.ceil(m/.0834),C=a(p),A=function(t,e){var n=i(t),r=i(e),o=a(t);return 12*(r-n)+(a(e)-o)%12}(p,g),k=0;k<=A+M;k+=M)f.push(o(_,k+C));d=null}else if(d>.5*y){var P=new Date(p),I=P.getFullYear(),T=P.getMonth(p),O=P.getDate(),L=Math.ceil(d/y),E=function(t,e){return Math.ceil((e-t)/h)}(p,g);d=L*y;for(var D=0;Dc){var F=new Date(p),B=F.getFullYear(),R=F.getMonth(p),j=F.getDate(),N=F.getHours(),z=s.snapTo(u,Math.ceil(d/c)),Y=function(t,e){return Math.ceil((e-t)/c)}(p,g);d=z*c;for(var V=0;V<=Y+z;V+=z)f.push(new Date(B,R,j,N+V).getTime())}else if(d>6e4){var H=function(t,e){return Math.ceil((e-t)/6e4)}(p,g),X=Math.ceil(d/6e4);d=6e4*X;for(var W=0;W<=H+X;W+=X)f.push(p+6e4*W)}else{d<1e3&&(d=1e3),p=1e3*Math.floor(p/1e3);var G=Math.ceil((g-p)/1e3),q=Math.ceil(d/1e3);d=1e3*q;for(var U=0;U-1?r/(this.values.length-1):0,n+e*(i-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var i=this.formatter;return e=parseInt(e,10),e=i?i(e):a.format(e,this.mask)},n.getTicks=function(){var t=this,e=this.ticks,n=[];return l(e,function(e){var i;i=c(e)?e:{text:h(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(i)}),n},n._toTimeStamp=function(t){return s.toTimeStamp(t)},e}(r);i.TimeCat=f,t.exports=f},function(t,e,n){function i(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var r=n(2),a=n(16),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this.base;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=i(e,this.max);if(this.min>0)t=Math.floor(i(e,this.min));else{var a=this.values,o=this.max;r(a,function(t){t>0&&t1&&(o=1),t=Math.floor(i(e,o)),this._minTick=t,this.positiveMin=o}for(var s=n-t,l=this.tickCount,u=Math.ceil(s/l),c=[],h=t;h=0?Math.floor(i(e,this.min)):0)>n){var r=n;n=t,t=r}for(var a=n-t,o=this.tickCount,s=Math.ceil(a/o),l=[],u=t;u0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*h.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},e.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},e.rotate=function(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));var s=r*r+a*a;s>0&&(s=1/Math.sqrt(s));var l=(n*r+i*a)*o*s;return l>1?0:l<-1?Math.PI:Math.acos(l)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1];return Math.abs(n-r)<=h.EPSILON*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-a)<=h.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))};var h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52));e.len=u,e.sub=r,e.mul=a,e.div=o,e.dist=s,e.sqrDist=l,e.sqrLen=c,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,l=void 0;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=i,e.clone=function(t){var e=new g.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=r,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},e.distance=u,e.squaredDistance=c,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=p,e.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=r*l-a*s,t[1]=a*o-i*l,t[2]=i*s-r*o,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},e.hermite=function(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+i[0]*u+r[0]*c,t[1]=e[1]*s+n[1]*l+i[1]*u+r[1]*c,t[2]=e[2]*s+n[2]*l+i[2]*u+r[2]*c,t},e.bezier=function(t,e,n,i,r,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,h=3*l*o,f=l*a;return t[0]=e[0]*u+n[0]*c+i[0]*h+r[0]*f,t[1]=e[1]*u+n[1]*c+i[1]*h+r[1]*f,t[2]=e[2]*u+n[2]*c+i[2]*h+r[2]*f,t},e.random=function(t,e){e=e||1;var n=2*g.RANDOM()*Math.PI,i=2*g.RANDOM()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=r*u-a*l,h=a*s-i*u,f=i*l-r*s,p=r*f-a*h,g=a*c-i*f,d=i*h-r*c,v=2*o;return c*=v,h*=v,f*=v,p*=2,g*=2,d*=2,t[0]=s+c+p,t[1]=l+h+g,t[2]=u+f+d,t},e.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),i=a(e[0],e[1],e[2]);f(n,n),f(i,i);var r=p(n,i);return r>1?0:r<-1?Math.PI:Math.acos(r)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=g.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=g.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=g.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))};var g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52));e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.len=r,e.sqrLen=h,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,l=void 0;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,i=this.get("y")||0;return this.translate(t-n,e-i),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",o.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),o.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var i=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){o.mat3.multiply(i,t.attr("matrix"),i)}),i},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){a(t,e.getTotalMatrix())}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(r(e))t[0]/=e[0],t[1]/=e[4];else{var n=o.mat3.invert([],e);n&&o.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var i=n(1),r={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,o,s){void 0===s&&(s=0);this.set("animating",!0);var l=this.get("timeline");l||(l=this.get("canvas").get("timeline"),this.setSilent("timeline",l));var u=this.get("animators")||[];l._timer||l.initTimer(),i.isNumber(o)&&(s=o,o=null),i.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var c=function(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=i.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=i.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;r[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}(t,this),h={fromAttrs:function(t,e){var n={},i=e._attrs;for(var r in t.attrs)n[r]=i[r];return n}(c,this),toAttrs:c.attrs,fromMatrix:i.clone(this.getMatrix()),toMatrix:c.matrix,duration:e,easing:n,callback:o,delay:s,startTime:l.getTime(),id:i.uniqueId()};u.length>0?u=function(t,e){var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,function(e,a){i.each(t,function(t){n').getContext("2d"),l={arc:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=n.startAngle,l=n.endAngle,u=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(i,r,o,s,l,u,c,t,e)},circle:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=this.getHitLineWidth(),l=this.hasFill(),u=this.hasStroke();return l&&u?a.circle(i,r,o,t,e)||a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e):l?a.circle(i,r,o,t,e):!!u&&a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,i=this.hasFill(),o=this.hasStroke(),s=n.x,l=n.y,u=n.rx,c=n.ry,h=this.getHitLineWidth(),f=u>c?u:c,p=u>c?1:u/c,g=u>c?c/u:1,d=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[p,g]),r.mat3.translate(v,v,[s,l]);var y=r.mat3.invert([],v);return r.vec3.transformMat3(d,d,y),i&&o?a.circle(0,0,f,d[0],d[1])||a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1]):i?a.circle(0,0,f,d[0],d[1]):!!o&&a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1])},fan:function(t,e){function n(){var t=o.arc.nearAngle(m,d,v,y);if(r.isNumberEqual(m,t)){var e=r.vec2.squaredLength(x);if(p*p<=e&&e<=g*g)return!0}return!1}function i(){var n=s.getHitLineWidth(),i={x:Math.cos(d)*p+h,y:Math.sin(d)*p+f},r={x:Math.cos(d)*g+h,y:Math.sin(d)*g+f},o={x:Math.cos(v)*p+h,y:Math.sin(v)*p+f},l={x:Math.cos(v)*g+h,y:Math.sin(v)*g+f};return!!(a.line(i.x,i.y,r.x,r.y,n,t,e)||a.line(o.x,o.y,l.x,l.y,n,t,e)||a.arcline(h,f,p,d,v,y,n,t,e)||a.arcline(h,f,g,d,v,y,n,t,e))}var s=this,l=s.hasFill(),u=s.hasStroke(),c=s._attrs,h=c.x,f=c.y,p=c.rs,g=c.re,d=c.startAngle,v=c.endAngle,y=c.clockwise,x=[t-h,e-f],m=r.vec2.angleTo([1,0],x);return l&&u?n()||i():l?n():!!u&&i()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var i=n.x,r=n.y,o=n.width,s=n.height;return a.rect(i,r,o,s,t,e)},line:function(t,e){var n=this._attrs,i=n.x1,r=n.y1,o=n.x2,s=n.y2,l=this.getHitLineWidth();return!!this.hasStroke()&&a.line(i,r,o,s,l,t,e)},path:function(t,e){function n(){if(!r.isEmpty(o)){for(var n=a.getHitLineWidth(),i=0,s=o.length;i=3&&o.push(n[0]),a.polyline(o,i,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var i=n.points;if(i.length<2)return!1;var r=n.lineWidth;return a.polyline(i,r,t,e)}return!1},rect:function(t,e){function n(){var n=r._attrs,i=n.x,o=n.y,s=n.width,l=n.height,u=n.radius,c=r.getHitLineWidth();if(0===u){var h=c/2;return a.line(i-h,o,i+s+h,o,c,t,e)||a.line(i+s,o-h,i+s,o+l+h,c,t,e)||a.line(i+s+h,o+l,i-h,o+l,c,t,e)||a.line(i,o+l+h,i,o-h,c,t,e)}return a.line(i+u,o,i+s-u,o,c,t,e)||a.line(i+s,o+u,i+s,o+l-u,c,t,e)||a.line(i+s-u,o+l,i+u,o+l,c,t,e)||a.line(i,o+l-u,i,o+u,c,t,e)||a.arcline(i+s-u,o+u,u,1.5*Math.PI,2*Math.PI,!1,c,t,e)||a.arcline(i+s-u,o+l-u,u,0,.5*Math.PI,!1,c,t,e)||a.arcline(i+u,o+l-u,u,.5*Math.PI,Math.PI,!1,c,t,e)||a.arcline(i+u,o+u,u,Math.PI,1.5*Math.PI,!1,c,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=l[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function i(t,e,n){var i=e.startTime;if(ng.length?(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.fillPathByDiff(g,p),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),i[f]=[];for(var d=0;d0){for(var l=r._animators.length-1;l>=0;l--)if((t=r._animators[l]).get("destroyed"))a.removeAnimator(l);else{if(!t.get("pause").isPaused)for(var u=(e=t.get("animators")).length-1;u>=0;u--)n=e[u],(s=i(t,n,o))&&(e.splice(u,1),s=!1,n.callback&&n.callback());0===e.length&&a.removeAnimator(l)}r.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";var i=n(58);e.a=function(t,e,n){var r=new i.a;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r}},function(t,e,n){"use strict";var i=n(58);e.a=function(t,e,n){var r=new i.a,a=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Object(i.b)():+n,r.restart(function i(o){o+=a,r.restart(i,a+=e,n),t(o)},e,n),r)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return a});var i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),r=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*r)},e.c=function(t){return Math.sin(t*r)},e.b=function(t){return(1-Math.cos(i*t))/2};var i=Math.PI,r=i/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";function i(t){return(t=+t)b?Math.pow(t,1/3):t/_+x}function s(t){return t>m?t*t*t:_*(t-x)}function l(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function u(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function c(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof a||(t=i(t));var e=Math.atan2(t.b,t.a)*g.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}e.a=r,e.b=c;var f=n(61),p=n(60),g=n(118),d=.95047,v=1,y=1.08883,x=4/29,m=6/29,_=3*m*m,b=m*m*m;Object(f.a)(a,r,Object(f.b)(p.a,{brighter:function(t){return new a(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new a(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=v*s(t),e=d*s(e),n=y*s(n),new p.b(l(3.2404542*e-1.5371385*t-.4985314*n),l(-.969266*e+1.8760108*t+.041556*n),l(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(f.a)(h,c,Object(f.b)(p.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return i(this).rgb()}}))},function(t,e,n){"use strict";function i(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof r)return new r(t.h,t.s,t.l,t.opacity);t instanceof o.b||(t=Object(o.h)(t));var e=t.r/255,n=t.g/255,i=t.b/255,a=(d*i+p*e-g*n)/(d+p-g),l=i-a,u=(f*(n-a)-c*l)/h,v=Math.sqrt(u*u+l*l)/(f*a*(1-a)),y=v?Math.atan2(u,l)*s.b-120:NaN;return new r(y<0?y+360:y,v,a,t.opacity)}(t):new r(t,e,n,null==i?1:i)}function r(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}e.a=i;var a=n(61),o=n(60),s=n(118),l=-.14861,u=1.78277,c=-.29227,h=-.90649,f=1.97294,p=f*h,g=f*u,d=u*c-h*l;Object(a.a)(r,i,Object(a.b)(o.a,{brighter:function(t){return t=null==t?o.c:Math.pow(o.c,t),new r(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o.d:Math.pow(o.d,t),new r(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new o.b(255*(e+n*(l*i+u*r)),255*(e+n*(c*i+h*r)),255*(e+n*(f*i)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function i(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var l=[],u=[];return o=t(o),s=t(s),function(t,i,a,o,s,l){if(t!==a||i!==o){var u=s.push("translate(",null,e,null,n);l.push({i:u-4,x:Object(r.a)(t,a)},{i:u-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,l,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,l,u),function(t,e,n,i,o,s){if(t!==n||e!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:Object(r.a)(t,n)},{i:l-2,x:Object(r.a)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,l,u),o=s=null,function(t){for(var e,n=-1,i=u.length;++n');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()}),n.beforeDraw();try{n._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var i=0;i-1){var s=n[o];"fillStyle"===o&&(s=r.parseStyle(s,t,e)),"strokeStyle"===o&&(s=r.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?i.isArray(s)?e.setLineDash(s):i.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function i(t,e){var n=t.match(c);r.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var r=n(1),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,l=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,u=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(a),r.each(t,function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a,o,l=s.exec(t),u=r.mod(r.toRadian(parseFloat(l[1])),2*Math.PI),c=l[2],h=e.getBBox();u>=0&&u<.5*Math.PI?(a={x:h.minX,y:h.minY},o={x:h.maxX,y:h.maxY}):.5*Math.PI<=u&&u');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{n._drawChildren(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(i.each(n.tobeRemoved,function(t){t.parentNode&&t.parentNode.removeChild(t)}),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t))},e._drawChildren=function(t){var e,n=t._cfg.children;if(n)for(var i=0;is?1:0,f=Math.abs(l-s)>Math.PI?1:0,p=n.rs,g=n.re,d=e(s,n.rs,a),v=e(l,n.rs,a);n.rs>0?(o.push("M "+c.x+","+c.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+d.x+","+d.y),o.push("L "+u.x+" "+u.y)):(o.push("M "+a.x+","+a.y),o.push("L "+u.x+","+u.y)),o.push("A "+g+","+g+",0,"+f+","+h+","+c.x+","+c.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),r.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,i=t._cfg.el;this._setFont(t);for(var r in e)if(e[r]!==n[r]){if("text"===r){this._setText(t,""+e[r]);continue}if("fillStyle"===r||"strokeStyle"===r){this._setColor(t,r,e[r]);continue}if("matrix"===r){this._setTransform(t);continue}l[r]&&i.setAttribute(l[r],e[r])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,i=n.fontSize;e.setAttribute("alignment-baseline",u[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",c[n.textAlign]||"left"),i&&+i<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+i/12,+i/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,r=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,l="";i.each(o,function(t,e){0===e?"alphabetic"===r?l+=''+t+"":"top"===r?l+=''+t+"":"middle"===r?l+=''+t+"":"bottom"===r?l+=''+t+"":"hanging"===r&&(l+=''+t+""):l+=''+t+""}),n.innerHTML=l}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var i=this.context.addClip(e);n.setAttribute("clip-path","url(#"+i+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var i=t._cfg.el,r=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=r.find("gradient",n);a||(a=r.addGradient(n)),i.setAttribute(l[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=r.find("pattern",n);o||(o=r.addPattern(n)),i.setAttribute(l[e],"url(#"+o+")")}else i.setAttribute(l[e],n);else i.setAttribute(l[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,i={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(i.dx||i.dy||i.blur||i.color){var r=this.context.find("filter",i);r||(r=this.context.addShadow(i,this)),e.setAttribute("filter","url(#"+r+")")}else e.removeAttribute("filter")},t}();t.exports=h},function(t,e,n){var i=n(1),r=n(219),a=n(220),o=n(221),s=n(222),l=n(223),u=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=i.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,i=null,r=0;r'}),n}var r=n(1),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,o,s=a.exec(t),l=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),u=s[2];l>=0&&l<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=l&&l';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var i=n(1),r=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=i.uniqueId("marker_");n.setAttribute("id",r);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=r,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,r=this.cfg.path,a=this.cfg.d;i.isArray(r)&&(r=r.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",r),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=i.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){function e(){console.log(l.width,l.height),n.setAttribute("width",l.width),n.setAttribute("height",l.height)}var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var a=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(a);var o=i.uniqueId("pattern_");n.id=o,this.el=n,this.id=o,this.cfg=t;var s=r.exec(t)[2];a.setAttribute("href",s);var l=new Image;return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?e():(l.onload=e,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,i){var r=i.target||i.srcElement;if(!n[r.tagName]){for(var a=r.parentNode;a&&!n[a.tagName];)a=a.parentNode;r=a}return this._cfg.el===r?this:this.find(function(t){return t._cfg&&t._cfg.el===r})}},function(t,e,n){t.exports={addEventListener:n(226),createDom:n(94),getBoundingClientRect:n(227),getHeight:n(228),getOuterHeight:n(229),getOuterWidth:n(230),getRatio:n(231),getStyle:n(232),getWidth:n(233),modifyCSS:n(95),requestAnimationFrame:n(96)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),i=document.documentElement.clientTop,r=document.documentElement.clientLeft;return{top:n.top-i,bottom:n.bottom-i,left:n.left-r,right:n.right-r}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),i=parseFloat(this.getStyle(t,"borderTopWidth"))||0,r=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+i+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+r+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),i=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,r=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+i+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+r+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var i=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return i(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={contains:n(41),difference:n(235),find:n(236),firstValue:n(237),flatten:n(238),flattenDeep:n(239),getRange:n(240),merge:n(42),pull:n(90),pullAt:n(130),reduce:n(241),remove:n(242),sortBy:n(243),union:n(244),uniq:n(131),valuesOfKey:n(64)}},function(t,e,n){var i=n(63),r=n(41);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(t,function(t){return!r(e,t)})}},function(t,e,n){var i=n(11),r=n(26),a=n(128);t.exports=function(t,e){var n=void 0;if(i(e)&&(n=e),r(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:[];if(i(e))for(var r=0;re[i])return 1;if(t[i]1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}a(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){var i=n(4);t.exports=function(t){var e=0,n=0,r=0,a=0;return i(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}}},function(t,e,n){var i=n(35);t.exports={clamp:n(50),fixedBase:n(253),isDecimal:n(254),isEven:n(255),isInteger:n(256),isNegative:n(257),isNumberEqual:i,isOdd:n(258),isPositive:n(259),maxBy:n(132),minBy:n(260),mod:n(93),snapEqual:i,toDegree:n(92),toInt:n(133),toInteger:n(133),toRadian:n(91)}},function(t,e){t.exports=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%1!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2==0}},function(t,e,n){var i=n(9),r=Number.isInteger?Number.isInteger:function(t){return i(t)&&t%1==0};t.exports=r},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t<0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t>0}},function(t,e,n){var i=n(4),r=n(11),a=n(2);t.exports=function(t,e){if(i(t)){var n=t[0],o=void 0;o=r(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=r(e)?e(t):t[e])1?1:u<0?0:u)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var d=c*h[g]+c,v=o(d,t,n,r,s),y=o(d,e,i,a,l),x=v*v+y*y;p+=f[g]*Math.sqrt(x)}return c*p},l=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)Math.max(r,o)||Math.max(e,i)Math.max(a,s))){var l=(t-n)*(a-s)-(e-i)*(r-o);if(l){var u=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/l,c=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/l,h=+u.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},u=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},c=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:r(t,e,n,i),vb:[t,e,n,i].join(" ")}},h=function(t,e,n,r,a,o,s,l){i(t)||(t=[t,e,n,r,a,o,s,l]);var u=function(t,e,n,i,r,a,o,s){for(var l=[],u=[[],[]],c=void 0,h=void 0,f=void 0,p=void 0,g=0;g<2;++g)if(0===g?(h=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*o,f=3*n-3*t):(h=6*e-12*i+6*a,c=-3*e+9*i-9*a+3*s,f=3*i-3*e),Math.abs(c)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&l.push(p)}else{var d=h*h-4*f*c,v=Math.sqrt(d);if(!(d<0)){var y=(-h+v)/(2*c);y>0&&y<1&&l.push(y);var x=(-h-v)/(2*c);x>0&&x<1&&l.push(x)}}for(var m=l.length,_=m,b=void 0;m--;)b=1-(p=l[m]),u[0][m]=b*b*b*t+3*b*b*p*n+3*b*p*p*r+p*p*p*o,u[1][m]=b*b*b*e+3*b*b*p*i+3*b*p*p*a+p*p*p*s;return u[0][_]=t,u[1][_]=e,u[0][_+1]=o,u[1][_+1]=s,u[0].length=u[1].length=_+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}.apply(null,t);return c(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},f=function(t,e,n,i,r,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),f=l*l,p=f*l,g=t+2*l*(n-t)+f*(r-2*n+t),d=e+2*l*(i-e)+f*(a-2*i+e),v=n+2*l*(r-n)+f*(o-2*r+n),y=i+2*l*(a-i)+f*(s-2*a+i);return{x:c*t+3*h*l*n+3*u*l*l*r+p*o,y:c*e+3*h*l*i+3*u*l*l*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*i},end:{x:u*r+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},p=function(t,e,n){if(!function(t,e){return t=c(t),e=c(e),u(e,t.x,t.y)||u(e,t.x2,t.y)||u(e,t.x,t.y2)||u(e,t.x2,t.y2)||u(t,e.x,e.y)||u(t,e.x2,e.y)||u(t,e.x,e.y2)||u(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(h(t),h(e)))return n?0:[];for(var i=~~(s.apply(0,t)/8),r=~~(s.apply(0,e)/8),a=[],o=[],p={},g=n?0:[],d=0;d=0&&P<=1&&I>=0&&I<=1&&(n?g++:g.push({x:k.x,y:k.y,t1:P,t2:I}))}}return g};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var i=void 0,r=void 0,o=void 0,s=void 0,l=void 0,u=void 0,c=void 0,h=void 0,f=void 0,g=void 0,d=n?0:[],v=0,y=t.length;v=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,i));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=i-1;o++)r.push(a)}return r}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s=0;p--)l=s[p].index,"add"===s[p].type?t.splice(l,0,[].concat(t[l])):t.splice(l,1)}if((a=t.length)0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["Q"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],2)}t[a]=["C"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["S"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var i={lc:n(272),lowerCase:n(142),lowerFirst:n(75),substitute:n(273),uc:n(274),upperCase:n(143),upperFirst:n(87)};t.exports=i},function(t,e,n){t.exports=n(142)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}},function(t,e,n){t.exports=n(143)},function(t,e,n){var i=n(12),r={getType:n(84),isArray:n(4),isArrayLike:n(13),isBoolean:n(82),isFunction:n(11),isNil:n(5),isNull:n(276),isNumber:n(9),isObject:n(24),isObjectLike:n(48),isPlainObject:n(26),isPrototype:n(85),isType:i,isUndefined:n(277),isString:n(10),isRegExp:n(278),isDate:n(80),isArguments:n(279),isError:n(280)};t.exports=r},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"RegExp")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Arguments")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Error")}},function(t,e){t.exports=function(t,e,n){var i=void 0;return function(){var r=this,a=arguments,o=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(r,a)},e),o&&t.apply(r,a)}}},function(t,e,n){var i=n(13);t.exports=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,a=0;ae?(i&&(clearTimeout(i),i=null),s=u,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(i),s=0,i=r=a=null},u}},function(t,e,n){function i(t,e){var n,i,r=function(t){if(f.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return f.each(t,function(t){e=e>t.x?t.x:e,n=nt.y?t.y:i,r=r0?o.maxX:o.minX,l,1];t.apply(u),t.attr({transform:[["t",-n,-l],["s",.01,1],["t",n,l]]});var c={transform:[["t",-n,-l],["s",100,1],["t",n,l]]},h=r(e,a,i);t.animate(c,h.duration,h.easing,h.callback,h.delay)}function s(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var l=t.getBBox();i=(l.minX+l.maxX)/2,a=(l.minY+l.maxY)/2}var u=[i,a,1];t.apply(u),t.attr({transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]});var c={transform:[["t",-i,-a],["s",100,100],["t",i,a]]},h=r(e,s,o);t.animate(c,h.duration,h.easing,h.callback,h.delay)}function l(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a=g.pathToAbsolute(t.attr("path"));t.attr("path",[a[0]]);var o={path:a},s=r(e,i,n);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function u(t,e,n,i,a){var o,s=function(t){var e,n,i,r,a,o=t.start,s=t.end,l=t.getWidth(),u=t.getHeight();return t.isPolar?(r=t.getRadius(),i=t.getCenter(),e=t.startAngle,n=t.endAngle,(a=new p.Fan({attrs:{x:i.x,y:i.y,rs:0,re:r+200,startAngle:e,endAngle:e}})).endState={endAngle:n}):(a=new p.Rect({attrs:{x:o.x-200,y:s.y-200,width:t.isTransposed?l+400:0,height:t.isTransposed?0:u+400}}),t.isTransposed?a.endState={height:u+400}:a.endState={width:l+400}),a.isClip=!0,a}(n),l=t.get("canvas"),u=t._id,c=t.get("index");i?(s.attr("startAngle",i),s.attr("endAngle",i),o={endAngle:a}):o=s.endState,s.set("canvas",l),t.attr("clip",s),t.setSilent("animating",!0);var h=r(e,c,u);s.animate(o,h.duration,h.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())},h.delay)}function c(t,e){var n=t._id,i=t.get("index"),a=f.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=f.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},l=r(e,i,n);t.animate(s,l.duration,l.easing,l.callback,l.delay)}function h(t,e,n){var r=i(t,n),a=r.endAngle;u(t,e,n,r.startAngle,a)}var f=n(0),p=n(17),g=f.PathUtil;t.exports={enter:{clipIn:u,zoomIn:s,pathIn:l,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:c},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},i=t._id,a=r(e,t.get("index"),i);t.animate(n,a.duration,a.easing,function(){t.remove()},a.delay)},zoomOut:function(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var l=t.getBBox();i=(l.minX+l.maxX)/2,a=(l.minY+l.maxY)/2}var u=[i,a,1];t.apply(u);var c={transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]},h=r(e,s,o);t.animate(c,h.duration,h.easing,function(){t.remove()},h.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a={path:[g.pathToAbsolute(t.attr("path"))[0]]},o=r(e,i,n);t.animate(a,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,i={fillOpacity:0,strokeOpacity:0},a=r(e,t.get("index"),n);t.animate(i,a.duration,a.easing,function(){t.remove()},a.delay)}},appear:{clipIn:u,zoomIn:s,pathIn:l,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:c},update:{fadeIn:c,fanIn:h}}},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e,n){var i=(t-e)/(n-e);return i>=0&&i<=1}function a(t,e){var n=!1;if(t){if("theta"===t.type){var i=t.start,a=t.end;n=r(e.x,i.x,a.x)&&r(e.y,i.y,a.y)}else{var o=t.invert(e);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}}return n}var o=n(148),s=n(20),l=n(0),u=n(165),c=n(7),h=n(151),f=n(352),p={};l.each(s,function(t,e){var n=l.lowerFirst(e);p[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var g=function(t){function e(e){var n,r=i(i(n=t.call(this,e)||this));return r._setTheme(),l.each(s,function(t,e){var n=l.lowerFirst(e);r[n]=function(e){void 0===e&&(e={}),e.viewTheme=r.get("viewTheme");var n=new t(e);return r.addGeom(n),n}}),r.init(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:c.animate,visible:!0}},n._setTheme=function(){var t=this.get("theme"),e={},n={};l.isObject(t)?n=t:-1!==l.indexOf(Object.keys(h),t)&&(n=h[t]),l.deepMix(e,c,n),this.set("viewTheme",e)},n.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},n._initOptions=function(){var t=this,e=l.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||l.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&l.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var i=t.get("coordController");i&&i.reset(e.coord),this.set("options",e)},n._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),l.each(t,function(t,n){if(e[n])if(l.isObject(t)&&t.field)if("label"===t)e[n](t.field,t.callback,t.cfg);else{var i;l.each(t,function(t,e){"field"!==e&&(i=t)}),e[n](t.field,i)}else e[n](t)}))},n._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=this.get("canvas"),i=new u.Scale({viewTheme:e,defs:t.scales}),r=new u.Coord(t.coord);this.set("scaleController",i),this.set("coordController",r);var a=new u.Axis({canvas:n,viewTheme:e});this.set("axisController",a);var o=new u.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",o)},n._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},n._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),i=this.get("_id"),r=0;r0;){t.shift().destroy()}},n._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n0?r.change({min:0}):s<=0&&r.change({max:0}))}}},n._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),i=this.getYScales(),r=[];n&&r.push(n),r=r.concat(i);var a=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!l.isNil(e)&&!l.isNil(n)&&n-e<2*Math.PI)}(t),o=this.get("scaleController").defs;l.each(r,function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!o[n.field]||!o[n.field].range)){var i,r=n.values.length;if(1===r)i=[.5,1];else{var s=0;i=a?t.isTransposed?[(s=1/r*e.widthRatio.multiplePie)/2,1-s/2]:[0,1-1/r]:[s=1/r*1/2,1-s]}n.range=i}})},n.getXScale=function(){var t=this.get("geoms"),e=null;return l.isEmpty(t)||(e=t[0].getXScale()),e},n.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n=0?"positive":"negative";o[d][g]||(o[d][g]=0),h[n]=[o[d][g],p+o[d][g]],o[d][g]+=p}}},e}(a);a.Stack=o,t.exports=o},function(t,e,n){var i={merge:n(42),values:n(64)},r=n(144),a=n(2);t.exports={processAdjust:function(t){var e=i.merge(t),n=this.dodgeBy,a=t;n&&(a=r(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.adjDataArray,n=this.cacheMap,r=n[t];return r||(r={},a(e,function(e,n){var o=i.values(e,t);o.length||o.push(0),a(o,function(t){r[t]||(r[t]=[]),r[t].push(n)})}),n[t]=r),r},adjustDim:function(t,e,n,i,r){var o=this,s=o.getDistribution(t),l=o.groupData(n,t);a(l,function(n,i){i=parseFloat(i);var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,i,e),a(n,function(e){var n=e[t],i=s[n],a=i.indexOf(r);e[t]=o.getDodgeOffset(l,a,i.length)})})}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",i=this.height,r={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;ai.width||n.height>i.height?r.push(t[a]):n.width*n.height>i.width*i.height&&r.push(t[a]);for(var o=0;o0?e="left":t[0]<0&&(e="right"),e},n.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),l=[];if(Math.abs(o-a)===2*Math.PI)l=[["M",e,n],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];else{var u=this._getCirclePoint(a),c=this._getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;if(s){var p=this.getSideVector(s*i,u),g=this.getSideVector(s*i,c),d={x:p[0]+e,y:p[1]+n},v={x:g[0]+e,y:g[1]+n};l=[["M",d.x,d.y],["L",u.x,u.y],["A",i,r,0,h,f,c.x,c.y],["L",v.x,v.y],["A",i*s,r*s,0,h,Math.abs(f-1),d.x,d.y]]}else l=[["M",e,n],["L",u.x,u.y],["A",i,r,0,h,f,c.x,c.y],["L",e,n]]}return l},n.addLabel=function(e,n,i){var r=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,r),t.prototype.addLabel.call(this,e,n,i)},n.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelRenderer");if(e&&t.length>12){var n=this.get("radius"),r=this.get("startAngle"),a=this.get("endAngle")-r,o=a/(t.length-1),s=Math.sin(o/2)*n*2,l=this.getMaxLabelWidth(e);i.each(e.get("group").get("children"),function(e,n){var i=t[n].value*a+r,o=i%(2*Math.PI);lMath.PI&&(i-=Math.PI),i-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?i-=Math.PI:oo.x)&&(u=!0);var c=a.vertical([],l,u);return a.scale([],c,t*n)},n.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},n.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},n.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),i=n.x-e.x,r=n.y-e.y;return{x:e.x+i*t,y:e.y+r*t}},n.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(r.isNil(n)){n=20;var i=this.get("labelsGroup");if(i){n+=this.getMaxLabelWidth(i)+(this.get("label").offset||this.get("_labelOffset"))}}var o=t.textStyle,s=r.mix({},o);if(t.text){var l=this.getAxisVector();if(t.autoRotate&&r.isNil(o.rotate)){var u=0;if(!r.snapEqual(l[1],0)){var c=[l[0],l[1]];u=a.angleTo(c,[1,0],!0)}s.rotate=u*(180/Math.PI)}else r.isNil(o.rotate)||(s.rotate=o.rotate/180*Math.PI);var h,f=this.getSideVector(n),p=t.position;h="start"===p?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===p?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:e.x+f[0],y:e.y+f[1]},s.x=h.x,s.y=h.y,s.text=t.text;var g=this.get("group").addShape("Text",{zIndex:2,attrs:s});g.name="axis-title",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this.get("labelRenderer"),e=this.get("title");if(t){var n=t.get("group").get("children"),i=this.get("label").offset,a=e?e.offset:48;if(a<0)return;var o,s,l=this.getAxisVector();if(r.snapEqual(l[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>a-i-12&&(o=-1*Math.acos((a-i-12)/s));else if(r.snapEqual(l[1],0)&&n.length>1){var u=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>u&&(o=Math.asin(1.25*(a-i-12)/s))}if(o){var c=this.get("factor");r.each(n,function(t){t.rotateAtStart(o),r.snapEqual(l[1],0)&&(c>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},n.autoHideLabels=function(){var t,e,n=this.get("labelRenderer");if(n){var i=n.get("group").get("children"),a=this.getAxisVector();if(i.length<2)return;if(r.snapEqual(a[0],0)){var o=this.getMaxLabelHeight(n)+8,s=Math.abs(this._getAvgLabelHeightSpace(n));o>s&&(t=o,e=s)}else if(r.snapEqual(a[1],0)&&i.length>1){var l=this.getMaxLabelWidth(n)+8,u=Math.abs(this._getAvgLabelLength(n));l>u&&(t=l,e=u)}if(t&&e){var c=Math.ceil(t/e);r.each(i,function(t,e){e%c!=0&&t.attr("text","")})}}},e}(i);t.exports=o},function(t,e,n){var i=n(3),r=n(31),a=i.MatrixUtil,o=i.PathUtil,s=a.vec2,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),r=[];r.push(e.x),r.push(e.y),i.each(t,function(t){r.push(t.x),r.push(t.y)}),r.push(n.x),r.push(n.y);var a=o.catmullRomToBezier(r);return a.unshift(["M",e.x,e.y]),a},n.getTickPoint=function(t,e){return this.get("tickPoints")[e]},n.getTickEnd=function(t,e,n){var i=this.get("tickLine"),r=e||i.length,a=this.getSideVector(r,t,n);return{x:t.x+a[0],y:t.y+a[1]}},n.getSideVector=function(t,e,n){var i;if(0===n){if((i=this.get("start")).x===e.x&&i.y===e.y)return[0,0]}else{i=this.get("tickPoints")[n-1]}var r=[e.x-i.x,e.y-i.y],a=s.normalize([],r),o=s.vertical([],a,!1);return s.scale([],o,t)},e}(r);t.exports=l},function(t,e,n){t.exports={Guide:n(15),Arc:n(312),DataMarker:n(313),DataRegion:n(314),Html:n(315),Image:n(316),Line:n(317),Region:n(318),Text:n(319)}},function(t,e,n){function i(t,e){var n,i=t.x-e.x,r=t.y-e.y;return 0===r?n=i<0?o/2:270*o/180:i>=0&&r>0?n=2*o-s(i/r):i<=0&&r<0?n=o-s(i/r):i>0&&r<0?n=o+s(-i/r):i<0&&r>0&&(n=s(i/-r)),n}var r=n(3),a=n(15),o=Math.PI,s=Math.atan,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n,a=this.parsePoint(t,this.get("start")),s=this.parsePoint(t,this.get("end")),l=t.getCenter(),u=Math.sqrt((a.x-l.x)*(a.x-l.x)+(a.y-l.y)*(a.y-l.y)),c=i(a,l),h=i(s,l);if(ho?1:0;n=[["M",a.x,a.y],["A",u,u,0,f,1,s.x,s.y]]}var p=e.addShape("path",{zIndex:this.get("zIndex"),attrs:r.mix({path:n},this.get("style"))});p.name="guide-arc",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo")),this.set("el",p)},e}(a);t.exports=l},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position")),i=e.addGroup();i.name="guide-data-marker";var r,a,o=this._getElementPosition(n),s=this.get("display");if(s.line){var l=o.line;r=this._drawLine(l,i)}if(s.text&&this.get("content")){var u=o.text;a=this._drawText(u,i)}if(s.point){var c=o.point;this._drawPoint(c,i)}if(this.get("autoAdjust")){var h=i.getBBox(),f=h.minX,p=h.minY,g=h.maxX,d=h.maxY,v=t.start,y=t.end;if(a){f<=v.x&&a.attr("textAlign","start"),g>=y.x&&a.attr("textAlign","end");var x=this.get("direction");if("upward"===x&&p<=y.y||"upward"!==x&&d>=v.y){var m,_;"upward"===x&&p<=y.y?(m="top",_=1):(m="bottom",_=-1),a.attr("textBaseline",m);var b=0;if(this.get("display").line){b=this.get("lineLength");var w=[["M",n.x,n.y],["L",n.x,n.y+b*_]];r.attr("path",w)}var S=n.y+(b+2)*_;a.attr("y",S)}}}this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo")),this.set("el",i)},n._getElementPosition=function(t){var e=t.x,n=t.y,i=this.get("display").line?this.get("lineLength"):0,r=this.get("direction");this.get("style").text.textBaseline="upward"===r?"bottom":"top";var a="upward"===r?-1:1;return{point:{x:e,y:n},line:[{x:e,y:n},{x:e,y:i*a+n}],text:{x:e,y:(i+2)*a+n}}},n._drawLine=function(t,e){var n=this.get("style").line,r=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]];return e.addShape("path",{attrs:i.mix({path:r},n)})},n._drawText=function(t,e){var n=this.get("style").text;return e.addShape("text",{attrs:i.mix({text:this.get("content")},n,t)})},n._drawPoint=function(t,e){var n=this.get("style").point;return e.addShape("circle",{attrs:i.mix({},n,t)})},e}(n(15));t.exports=r},function(t,e,n){var i=n(3),r=n(156),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},n.render=function(t,e,n){var r=this.get("lineLength")||0,a=this._getRegionData(t,n);if(a.length){var o=this._getBBox(a),s=[];s.push(["M",a[0].x,o.yMin-r]);for(var l=0,u=a.length;l=n&&h.push(this.parsePoint(t,[g[s],g[l]])),g[s]===c)break}return h},n._getBBox=function(t){for(var e=[],n=[],r=0;r');a.appendChild(o);var s=this.get("htmlContent")||this.get("html");if(i.isFunction(s)){s=s(this.get("xScales"),this.get("yScales"))}var l=r.createDom(s);o.appendChild(l),r.modifyCSS(o,{position:"absolute"}),this._setDomPosition(o,l,n),this.set("el",o)},n._setDomPosition=function(t,e,n){var i=this.get("alignX"),a=this.get("alignY"),o=r.getOuterWidth(e),s=r.getOuterHeight(e),l={x:n.x,y:n.y};"middle"===i&&"top"===a?l.x-=Math.round(o/2):"middle"===i&&"bottom"===a?(l.x-=Math.round(o/2),l.y-=Math.round(s)):"left"===i&&"bottom"===a?l.y-=Math.round(s):"left"===i&&"middle"===a?l.y-=Math.round(s/2):"left"===i&&"top"===a?(l.x=n.x,l.y=n.y):"right"===i&&"bottom"===a?(l.x-=Math.round(o),l.y-=Math.round(s)):"right"===i&&"middle"===a?(l.x-=Math.round(o),l.y-=Math.round(s/2)):"right"===i&&"top"===a?l.x-=Math.round(o):(l.x-=Math.round(o/2),l.y-=Math.round(s/2));var u=this.get("offsetX");u&&(l.x+=u);var c=this.get("offsetY");c&&(l.y+=c),r.modifyCSS(t,{top:Math.round(l.y)+"px",left:Math.round(l.x)+"px",visibility:"visible",zIndex:this.get("zIndex")})},n.clear=function(){var t=this.get("el");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(n(15));t.exports=a},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i={x:n.x,y:n.y};if(i.img=this.get("src"),this.get("end")){var r=this.parsePoint(t,this.get("end"));i.width=r.x-n.x,i.height=r.y-n.y}else i.width=this.get("width")||32,i.height=this.get("height")||32;this.get("offsetX")&&(i.x+=this.get("offsetX")),this.get("offsetY")&&(i.y+=this.get("offsetY"));var a=e.addShape("Image",{zIndex:1,attrs:i});a.name="guide-image",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)},e}(n(15));t.exports=r},function(t,e,n){var i=n(3),r=n(15),a=i.MatrixUtil.vec2,o=n(14).FONT_FAMILY,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:o},content:null}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end")),r=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,i,r);var a=this.get("text");a&&a.content&&this._drawText(n,i,r),this.set("el",r)},n._drawLines=function(t,e,n){var r=[["M",t.x,t.y],["L",e.x,e.y]],a=n.addShape("Path",{attrs:i.mix({path:r},this.get("lineStyle"))});a.name="guide-line",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var r,o=this.get("text"),s=o.position,l=o.style||{};((r="start"===s?0:"center"===s?.5:i.isString(s)&&-1!==s.indexOf("%")?parseInt(s,10)/100:i.isNumber(s)?s:1)>1||r<0)&&(r=1);var u={x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r};if(o.offsetX&&(u.x+=o.offsetX),o.offsetY&&(u.y+=o.offsetY),u.text=o.content,u=i.mix({},u,l),o.autoRotate&&i.isNil(l.rotate)){var c=a.angleTo([e.x-t.x,e.y-t.y],[1,0],1);u.rotate=c}else i.isNil(l.rotate)||(u.rotate=l.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:u});h.name="guide-line-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"))},e}(r);t.exports=s},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},n.render=function(t,e){var n=this.get("style"),r=this._getPath(t),a=e.addShape("path",{zIndex:this.get("zIndex"),attrs:i.mix({path:r},n)});a.name="guide-region",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)},n._getPath=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));return[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]]},e}(n(15));t.exports=r},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position")),r=i.mix({},this.get("style")),a=this.get("offsetX"),o=this.get("offsetY");a&&(n.x+=a),o&&(n.y+=o),r.rotate&&(r.rotate=r.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:this.get("zIndex"),attrs:i.mix({text:this.get("content")},r,n)});s.name="guide-text",this.get("appendInfo")&&s.setSilent("appendInfo",this.get("appendInfo")),this.set("el",s)},e}(n(15));t.exports=r},function(t,e,n){var i=n(154);t.exports=i},function(t,e,n){t.exports={Category:n(157),CatHtml:n(159),CatPageHtml:n(322),Color:n(323),Size:n(325),CircleSize:n(326)}},function(t,e,n){function i(t,e){return t.getElementsByClassName(e)[0]}var r=n(3),a=n(159),o=n(14).FONT_FAMILY,s=r.DomUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:o,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'

    1

    /2

    ',slipWidth:65,legendOverflow:"unset"})},n.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},n._renderFlipPage=function(){var t=document.getElementsByClassName("g2-legend")[0],e=i(t,"g2-legend-list"),n=this.get("position"),a=this.get("layout"),o="right"===n||"left"===n||"vertical"===a?"block":"inline-block";if(t.scrollHeight>t.offsetHeight){var l=this.get("slipTpl"),u=s.createDom(l),c=i(u,"g2-caret-up"),h=i(u,"g2-caret-down");s.modifyCSS(c,this.get("caretStyle")),s.modifyCSS(c,{fill:"rgba(0,0,0,0.25)"}),s.modifyCSS(h,this.get("caretStyle"));var f=i(u,"cur-pagenum"),p=i(u,"next-pagenum"),g=this.get("pageNumStyle");s.modifyCSS(f,r.mix({},g,{paddingLeft:"10px"})),s.modifyCSS(p,r.mix({},g,{opacity:.3,paddingRight:"10px"})),s.modifyCSS(u,r.mix({},this.get("slipDomStyle"),{top:t.offsetHeight+"px"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(u);for(var d=e.childNodes,v=0,y=1,x=[],m=0;m=t.offsetHeight&&(y++,x.forEach(function(t){t.style.display="none"}),x=[]),x.push(d[m]);p.innerText="/"+y,d.forEach(function(e){e.style.display=o,(v=e.offsetTop+e.offsetHeight)>t.offsetHeight&&(e.style.display="none")}),c.addEventListener("click",function(){if(d[0].style.display!==o){var e=-1;d.forEach(function(t,n){t.style.display===o&&(e=-1===e?n:e,t.style.display="none")});for(var n=e-1;n>=0&&(d[n].style.display=o,v=d[e-1].offsetTop+d[e-1].offsetHeight,d[n].style.display="none",v0){var g=i.toRGB(l[p-1].color);u+=1-l[p].percentage+":"+g+" "}h.addShape("text",{attrs:r.mix({},{x:a+this.get("textOffset")/2,y:o-l[p].percentage*o,text:this._formatItemValue(l[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{u+="l (0) ";for(var d=0;d0){var v=i.toRGB(l[d-1].color);u+=l[d].percentage+":"+v+" "}u+=l[d].percentage+":"+n+" ",h.addShape("text",{attrs:r.mix({},{x:l[d].percentage*a,y:o+5+this.get("textOffset"),text:this._formatItemValue(l[d].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:a,height:o,fill:u,strokeOpacity:0}}),h.addShape("path",{attrs:r.mix({path:c},this.get("lineStyle"))}),h.move(0,e)},e}(n(67));t.exports=a},function(t,e,n){var i=n(3),r=i.DomUtil,a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},n._beforeRenderUI=function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),i=this.get("maxHandleElement"),r=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,i]),this.set("middleHandleElement",r),e.set("zIndex",0),r.set("zIndex",1),n.set("zIndex",2),i.set("zIndex",2),r.attr("cursor","move"),n.attr("cursor",a),i.attr("cursor",a),this.sort()},n._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},n._transform=function(t){var e=this.get("range"),n=e[0]/100,i=e[1]/100,r=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),l=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(l.attr({x:r*n,y:0,width:(i-n)*r,height:a}),o.translate(n*r,a),s.translate(i*r,a)):(l.attr({x:0,y:a*(1-i),width:r,height:(i-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-i)*a))},n._renderHorizontal=function(){this._transform("horizontal")},n._renderVertical=function(){this._transform("vertical")},n._bindUI=function(){this.on("mousedown",i.wrapBehavior(this,"_onMouseDown"))},n._isElement=function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){return n.get("children").indexOf(t)>-1}return!1},n._getRange=function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},n._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=i.upperFirst(t);var r,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),l=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],h=(c-o)/n*100*u;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]))),this._isElement(s,"middleHandleElement")&&(r=l[1]-l[0],a[0]=this._getRange(h,a[0]),a[1]=a[0]+r,a[1]>100&&(a[1]=100,a[0]=a[1]-r)),this.emit("sliderchange",{range:a}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},n._onMouseDown=function(t){var e=t.currentTarget,n=t.event,i=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[i[0],i[1]]),this._bindCanvasEvents()},n._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=r.addEventListener(t,"mousemove",i.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(t,"mouseup",i.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=r.addEventListener(t,"mouseleave",i.wrapBehavior(this,"_onCanvasMouseUp"))},n._onCanvasMouseMove=function(t){if(!this._mouseOutArea(t)){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)}},n._onCanvasMouseUp=function(){this._removeDocumentEvents()},n._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},n._mouseOutArea=function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),i=n.getBBox(),r=n.attr("matrix")[6],a=n.attr("matrix")[7],o=r+i.width,s=a+i.height,l=t.clientX-e.x,u=t.clientY-e.y;return lo||us},e}(i.Group);t.exports=a},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n=this.get("width"),r=this.get("height"),a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,r],[n-4,r]]:[[0,a+r/2],[0,a+r/2-4],[n,a-r/2],[n,a+r/2]];return this._addMiddleBar(t,"Polygon",i.mix({points:s},o))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),r=this.get("frontMiddleBarStyle"),a="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]];this.get("group").addGroup().addShape("Polygon",{attrs:i.mix({points:a},r)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,o),this._addText(e+10,3,s)):(this._addText(0,n,o),this._addText(e,n,s))},n._addText=function(t,e,n){var r=this.get("group").addGroup(),a=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?r.addShape("text",{attrs:i.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},a)}):(e+=s+this.get("textOffset")-20,o||(e+=10),r.addShape("text",{attrs:i.mix({x:t,y:e,text:0===n?"0":n},a)}))},e}(n(67));t.exports=r},function(t,e,n){var i=n(3),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),r="vertical"===e?this.get("height"):2,a=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,r],[0,r]]:[[0,a+r],[0,a-r],[5+n-4,a-r],[5+n-4,a+r]];return this._addMiddleBar(t,"Polygon",i.mix({points:s},o))},n._addHorizontalTrigger=function(t,e,n,r){var a=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=a.addShape("circle",{attrs:i.mix({x:0,y:o,r:r},e)}),l=a.addShape("text",{attrs:i.mix(n,{x:0,y:o+r+10,textAlign:"center",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",u),l.attr("cursor",u),this.set(t+"ButtonElement",s),this.set(t+"TextElement",l)},n._addVerticalTrigger=function(t,e,n,r){var a=this.get("slider").get(t+"HandleElement"),o=a.addShape("circle",{attrs:i.mix({x:0,y:0,r:r},e)}),s=a.addShape("text",{attrs:i.mix(n,{x:r+10,y:0,textAlign:"start",textBaseline:"middle"})}),l="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",l),s.attr("cursor",l),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),a=this.get("triggerAttr"),o=i.mix({},a),s=i.mix({},a),l=i.mix({text:this._formatItemValue(t.value)+""},r),u=i.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,l,5),this._addVerticalTrigger("max",s,u,16)):(this._addHorizontalTrigger("min",o,l,5),this._addHorizontalTrigger("max",s,u,16))},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i),s=5+n[0]/100*11,l=5+n[1]/100*11;t._updateElement(a,o,s,l);var u=new Event("itemfilter",e,!0,!0);u.range=[a,o],t.emit("itemfilter",u)})}},n._updateElement=function(e,n,i,r){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),l=this.get("maxButtonElement");s.attr("r",i),l.attr("r",r);if("vertical"===this.get("layout"))a.attr("x",i+10),o.attr("x",r+10);else{var u=-this.get("height")/2;a.attr("y",u+i+10),o.attr("y",u+r+10)}},n._addCircle=function(t,e,n,r,a){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),l=this.get("textStyle"),u=this.get("titleShape"),c=this.get("titleGap");u&&(c+=u.getBBox().height),o.addShape("circle",{attrs:i.mix({x:t,y:e+c,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:i.mix({x:a+20+this.get("textOffset"),y:e+c,text:0===r?"0":r},l)}):o.addShape("text",{attrs:i.mix({x:t,y:e+c+a+13+this.get("textOffset"),text:0===r?"0":r},l)})},n._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var i=this._formatItemValue(t),r=this._formatItemValue(e),a=t<5?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,i,2*o),this._addCircle(o,2*o+16+a,o,r,2*o)):(this._addCircle(o,o,a,i,2*o),this._addCircle(2*o+16+a,o,o,r,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(n(67));t.exports=r},function(t,e,n){var i=n(68);i.Html=n(328),i.Canvas=n(163),i.Mini=n(330),t.exports=i},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){return t.getElementsByClassName(e)[0]}var a=n(68),o=n(3),s=o.DomUtil,l=n(329),u=n(160),c=n(161),h=n(162),f=function(t){function e(e){var n;n=t.call(this,e)||this,o.assign(i(i(n)),c),o.assign(i(i(n)),h);var r=l;n.style=function(t,e){return Object.keys(t).forEach(function(n){e[n]&&(t[n]=o.mix(t[n],e[n]))}),t}(r,e),n._init_(),n.get("items")&&n.render();var a=n.get("crosshairs");if(a){var s="rect"===a.type?n.get("backPlot"):n.get("frontPlot"),f=new u(o.mix({plot:s,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));f.hide(),n.set("crosshairGroup",f)}return n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{containerTpl:'
      ',itemTpl:'
    • {name}{value}
    • ',htmlContent:null,follow:!0,enterable:!1})},n._init_=function(){var t,e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(e)){var i=e.replace("#","");t=document.getElementById(i)}else t=s.createDom(e),s.modifyCSS(t,this.style["g2-tooltip"]),n.appendChild(t),n.style.position="relative";this.set("container",t)}},n.render=function(){if(this.clear(),this.get("htmlContent")){var t=this.get("canvas").get("el").parentNode,e=this._getHtmlContent();t.appendChild(e),this.set("container",e)}else this._renderTpl()},n._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),i=t.get("container"),a=r(i,"g2-tooltip-title"),l=r(i,"g2-tooltip-list"),u=t.get("items");a&&e&&(s.modifyCSS(a,t.style["g2-tooltip-title"]),a.innerHTML=n),l&&(s.modifyCSS(l,t.style["g2-tooltip-list"]),o.each(u,function(e,n){l.appendChild(t._addItem(e,n))}))},n.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=r(t,"g2-tooltip-title"),n=r(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")}},n.show=function(){var e=this.get("container");e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var i=this.get("markerGroup");i&&i.show(),t.prototype.show.call(this),this.get("canvas").draw()},n.hide=function(){var e=this.get("container");e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var i=this.get("markerGroup");i&&i.hide(),t.prototype.hide.call(this),this.get("canvas").draw()},n.destroy=function(){var e=this.get("container"),n=this.get("containerTpl");e&&!/^\#/.test(n)&&e.parentNode.removeChild(e);var i=this.get("crosshairGroup");i&&i.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this)},n._addItem=function(t,e){var n=this.get("itemTpl"),i=o.substitute(n,o.mix({index:e},t)),a=s.createDom(i);s.modifyCSS(a,this.style["g2-tooltip-list-item"]);var l=r(a,"g2-tooltip-marker");l&&s.modifyCSS(l,this.style["g2-tooltip-marker"]);var u=r(a,"g2-tooltip-value");return u&&s.modifyCSS(u,this.style["g2-tooltip-value"]),a},n._getHtmlContent=function(){var t=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return s.createDom(t)},n.setPosition=function(e,n,i){var r,a=this.get("container"),l=this.get("canvas").get("el"),u=s.getWidth(l),c=s.getHeight(l),h=a.clientWidth,f=a.clientHeight,p=e,g=n,d=this.get("prePosition")||{x:0,y:0};if(this.get("enterable"))r=[e,n-=a.clientHeight/2],d&&e-d.x>0?e-=a.clientWidth+1:e+=1;else if(this.get("position")){var v=a.clientWidth,y=a.clientHeight;e=(r=this._calcTooltipPosition(e,n,this.get("position"),v,y,i))[0],n=r[1]}else e=(r=this._constraintPositionInBoundary(e,n,h,f,u,c))[0],n=r[1];if(this.get("inPlot")){var x=this.get("plotRange");e=(r=this._constraintPositionInPlot(e,n,h,f,x,this.get("enterable")))[0],n=r[1]}var m=this.get("markerItems");o.isEmpty(m)||(p=m[0].x,g=m[0].y),this.set("prePosition",r);this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var _=this.get("crosshairGroup");if(_){var b=this.get("items");_.setPosition(p,g,b)}t.prototype.setPosition.call(this,e,n)},e}(a);t.exports=f},function(t,e,n){var i,r=n(14).FONT_FAMILY,a=(i={crosshairs:!1,offset:15},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={marginBottom:"4px"},i["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i);t.exports=a},function(t,e,n){var i=n(3),r=n(163),a=n(14).FONT_FAMILY,o=i.DomUtil,s=i.MatrixUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:a,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot").addGroup();this.set("container",e);var n=e.addShape("rect",{attrs:i.mix({},this.get("boardStyle"))});this.set("board",n);var r=e.addShape("path",{attrs:{fill:this.get("boardStyle").fill}});this.set("triangleShape",r);var a=e.addGroup();a.move(t.left,t.top);var o=a.addShape("text",{attrs:i.mix({},this.get("valueStyle"))});this.set("valueShape",o)},n.render=function(){this.clear();var t=this.get("board"),e=this.get("valueShape"),n=this.get("padding"),i=this.get("items")[0];e&&e.attr("text",i.value);var r=e?e.getBBox():{width:80,height:30},a=n.left+r.width+n.right,o=n.top+r.height+n.bottom;t.attr("width",a),t.attr("height",o),this._centerTriangleShape()},n.clear=function(){this.get("valueShape").attr("text","")},n.setPosition=function(t,e,n){var i=this.get("container"),r=this.get("plotRange"),a=i.getBBox(),l=a.width,u=a.height;if(t-=l/2,n&&("point"===n.name||"interval"===n.name)){e=n.getBBox().y}if(e-=u,this.get("inPlot"))tr.tr.x?(t=r.tr.x-l,this._rightTriangleShape()):this._centerTriangleShape(),er.bl.y&&(e=r.bl.y-u);else{var c=this.get("canvas").get("el"),h=o.getWidth(c),f=o.getHeight(c);t<0?(t=0,this._leftTriangleShape()):t+l/2>h?(t=h-l,this._rightTriangleShape()):this._centerTriangleShape(),e<0?e=0:e+u>f&&(e=f-u)}var p=s.transform([1,0,0,0,1,0,0,0,1],[["t",t,e]]);i.stopAnimate(),i.animate({matrix:p},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",o),t.move(r/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox().height,r=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",r),t.move(0,i-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",o),t.move(r-e-1,a-4)},e}(r);t.exports=l},function(t,e,n){var i=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var r=!!e,a=[],o=0,s=t.length;o0&&(e=this._distribute(e,n)),t.prototype.adjustItems.call(this,e)},n._distribute=function(t,e){var n=this.get("coord"),i=n.getRadius(),r=this.get("label").labelHeight,a=n.getCenter(),o=2*(i+e)+2*r,s={start:n.start,end:n.end},l=this.get("geom");if(l){var u=l.get("view");s=u.getViewRegion()}var c=[[],[]];return t.forEach(function(t){t&&("right"===t.textAlign?c[0].push(t):c[1].push(t))}),c.forEach(function(t,e){var n=parseInt(o/r,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,i,r){var a,o=!0,s=n.start,l=n.end,u=Math.min(s.y,l.y),c=Math.abs(s.y-l.y),h=0,f=Number.MIN_VALUE,p=t.map(function(t){return t.y>h&&(h=t.y),t.yc&&(c=h-u);o;)for(p.forEach(function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),c-t.size)}),o=!1,a=p.length;a--;)if(a>0){var g=p[a-1],d=p[a];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),g.pos+g.size>c&&(g.pos=c-g.size),p.splice(a,1),o=!0)}a=0,p.forEach(function(n){var i=u+e/2;n.targets.forEach(function(){t[a].y=n.pos+i,i+=e,a++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},n.getLabelAlign=function(t){var e,n=this.get("coord").getCenter();e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right";return this.getDefaultOffset(t)<=0&&(e="right"===e?"left":"right"),e},n.getArcPoint=function(t){return t},n.getPointAngle=function(t){var e=this.get("coord"),n={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var i={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(i);var a,s=o.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)a=s;else{var l=o.getPointAngle(e,i);s>=l&&(l+=2*Math.PI),a=s+(l-s)/2}return a},n.getCirclePoint=function(t,e){var n=this.get("coord"),r=n.getCenter(),a=n.getRadius()+e,o=i(r,t,a);return o.angle=t,o.r=a,o},e}(a);t.exports=l},function(t,e,n){var i=n(0),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.setLabelPosition=function(t,e,n,r){i.isFunction(r)&&(r=r(t.text,e._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(e.points[0]),l=a.convertPoint(e.points[2]),u=(s.x-l.x)/2*(o?-1:1),c=(s.y-l.y)/2*(o?-1:1);switch(r){case"right":o?(t.x-=u,t.y+=c,t.textAlign=t.textAlign||"center"):(t.x-=u,t.y+=c,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=u,t.y-=c,t.textAlign=t.textAlign||"center"):(t.x+=u,t.y+=c,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*u,t.textAlign=t.textAlign||"left"):(t.y+=2*c,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=u:t.y+=c,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=o?t.textAlign||"left":t.textAlign||"center"}},e}(n(65));t.exports=r},function(t,e,n){function i(t){return t.alias||t.field}var r=n(0),a=n(7).defaultColor,o={_getIntervalSize:function(t){var e=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=i.isTransposed?"y":"x";if(r.isArray(t[a])){e=e(1+i.rangeMax())/2&&(r=i.rangeMin()),e=i.invert(r),i.isCategory&&(e=i.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),i=e.field,r=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),l={};return l[i]=o,l[r]=s,l},_getScale:function(t){var e=this.get("scales"),n=null;return r.each(e,function(e){if(e.field===t)return n=e,!1}),n},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();r.each(e,function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1});var n=this.getXScale(),i=this.getYScale();return!t&&i&&"..y"===i.field?n:t||i||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e,n=this.getAttr("position").getFields();return r.each(n,function(t){if(-1===t.indexOf(".."))return e=t,!1}),this._getScale(e)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),a=i.field,o=n.invert(e).y;o=i.invert(o);var s=t[t.length-1];return r.each(t,function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1}),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,i=e.translate(n[0]),a=i;r.each(n,function(t){(t=e.translate(t))a&&(a=t)});var o=n.length;t=(a-i)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,i=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,l=o.field,u=null;if(r.indexOf(["heatmap","point"],i)>-1){var c=n.get("coord").invert(t),h=a.invert(c.x),f=o.invert(c.y),p=1/0;return r.each(e,function(t){var e=Math.pow(t._origin[s]-h,2)+Math.pow(t._origin[l]-f,2);e=v){if(!_)return u=t,!1;r.isArray(u)||(u=[]),u.push(t)}}),r.isArray(u)&&(u=this._filterValue(u,t));else{var b;if(a.isLinear||"timeCat"===a.type){if((v>a.translate(m)||va.max||vMath.abs(a.translate(b._origin[s])-v)&&(d=b)}var A=n.getXDistance();return!u&&Math.abs(a.translate(d._origin[s])-v)<=A/2&&(u=d),u},getTipTitle:function(t,e){var n="",i=this._getTipTitleScale(e);if(i){var r=t[i.field];n=i.getText(r)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(t[a.field])+", "+o.getText(t[o.field])+" )"}return n},getTipValue:function(t,e){var n,i=e.field,a=t.key;if(n=t[i],r.isArray(n)){var o=[];r.each(n,function(t){o.push(e.getText(t))}),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e,n,a=this._getGroupScales();if(a.length&&r.each(a,function(t){return n=t,!1}),n){var o=n.field;e=n.getText(t[o])}else{e=i(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,i){if(!r.isNil(n)&&""!==n){var o={title:c,point:t,name:e||c,value:n,color:t.color||a,marker:!0};o.size=l._getIntervalSize(t),f.push(r.mix({},o,i))}}var o,s,l=this,u=t._origin,c=l.getTipTitle(u,e),h=l.get("tooltipCfg"),f=[];if(h){var p=h.fields,g=h.cfg,d=[];if(r.each(p,function(t){d.push(u[t])}),g){r.isFunction(g)&&(g=g.apply(null,d));var v=r.mix({},{point:t,title:c,color:t.color||a,marker:!0},g);v.size=l._getIntervalSize(t),f.push(v)}else r.each(p,function(t){if(!r.isNil(u[t])){var e=l._getScale(t);o=i(e),s=e.getText(u[t]),n(o,s)}})}else{var y=l._getTipValueScale();r.isNil(u[y.field])||(s=l.getTipValue(u,y),n(o=l.getTipName(u),s))}return f},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(t=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&r.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=o},function(t,e,n){function i(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,i){if(!function(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isEqual(n,i)}(e,t[i]))return n=!0,!1}),n}function r(t,e){var n={};return a.each(t,function(t,i){var r=e.attr(i);a.isArray(r)&&(r=a.cloneDeep(r)),n[i]=r}),n}var a=n(0),o={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",a.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",a.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",a.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),i=n.shape||this.getDefaultValue("shape");a.isArray(i)&&(i=i[0]);var o=this.get("shapeFactory"),s=a.mix({},t.attr(),{origin:n}),l=o.getActiveCfg(i,s);e.style&&a.mix(l,e.style);var u=r(l,t);t.setSilent("_originAttrs",u),e.animate?t.animate(l,300):t.attr(l),t.set("zIndex",1)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(i(n,t)){var r=e.get("view").get("canvas"),o=e.get("shapeContainer"),s=e.get("activedOptions");s&&s.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&!t.get("selected")&&e._setActiveShape(t)})),e.set("activeShapes",t),o.sort(),r.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var i=this.get("activeShapes");a.each(i,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null)}});if(this.get("preHighlightShapes")){var r=t.get("children");a.each(r,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null))}})}t.get("children").sort(function(t,e){return t._INDEX-e._INDEX}),this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=[];if(this.get("shapeContainer")){var n=this.getXScale().field,i=this.getShapes(),r=this._getOriginByPoint(t);a.each(i,function(t){var i=t.get("origin");if(t.get("visible")&&i){i._origin[n]===r[n]&&e.push(t)}})}return e},getSingleShapeByPoint:function(t){var e,n=this.get("shapeContainer"),i=n.get("canvas").get("pixelRatio");if(n&&(e=n.getShape(t.x*i,t.y*i)),e&&e.get("origin"))return e},highlightShapes:function(t,e){a.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(i(n,t)){n&&this.clearActivedShapes();var o=this.getShapes(),s=this.get("activedOptions"),l=s&&s.animate,u=s&&s.style;a.each(o,function(n){var i={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(i,u,e),n.setZIndex(1)):(a.mix(i,{fillOpacity:.3,opacity:.3}),n.setZIndex(0));var o=r(i,n);n.setSilent("_originAttrs",o),l?n.animate(i,300):n.attr(i)}),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=o},function(t,e,n){function i(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}var r=n(0),a={_isAllowSelect:function(){var t=this.get("allowSelect");if(!r.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===e&&"theta"===i},_onClick:function(t){if(this._isAllowSelect()){this.clearActivedShapes();var e=t.shape,n=this.get("shapeContainer");e&&!e.get("animating")&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",r.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",r.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),i=this.get("selectedOptions")||{},a=!1!==i.animate,o=n.get("canvas");t.set("selected",e);var s=t.get("origin");if(e){var l=s.shape||this.getDefaultValue("shape");r.isArray(l)&&(l=l[0]);var u=this.get("shapeFactory"),c=r.mix({geom:this,point:s},i),h=u.getSelectedCfg(l,c);r.mix(h,c.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return r.each(t,function(t,i){"transform"===i&&(i="matrix");var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a}),n}(h,t))),a?t.animate(h,300):(t.attr(h),o.draw())}else{var f=t.get("_originAttrs");t.set("_originAttrs",null),a?t.animate(f,300):(t.attr(f),o.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},a=!1!==n.cancelable;if("multiple"===n.mode)-1===r.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):a&&(r.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];a&&(t=i(o,t)?null:t),i(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();r.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return r.each(n,function(n){var i=n.get("origin");i&&i._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return r.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=a},function(t,e,n){var i=n(0);t.exports=function(t){return i.isArray(t)?t:i.isString(t)?t.split("*"):[t]}},function(t,e,n){var i=n(74),r=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o={LINEAR:"linear",CAT:"cat",TIME:"time"},s=function(){function t(t){this.defs={},this.viewTheme={scales:{}},r.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,i=null;return(n.scales[t]||e[t])&&(i=r.mix({},n.scales[t]),r.each(e[t],function(t,e){r.isNil(t)?delete i[e]:i[e]=t})),i},e._getDefaultType=function(t,e){var n=o.LINEAR,i=r.Array.firstValue(e,t);return r.isArray(i)&&(i=i[0]),a.test(i)?n=o.TIME:r.isString(i)&&(n=o.CAT),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=r.Array.values(n,e);if(a.values=o,!i.isCategory(t)&&"time"!==t){var s=r.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this._getDef(t);if(!e||!e.length)return n=a&&a.type?i[a.type](a):i.identity({value:t,field:t.toString(),values:[t]});var o=r.Array.firstValue(e,t);if(r.isNumber(t)||r.isNil(o)&&!a)n=i.identity({value:t,field:t.toString(),values:[t]});else{var s;a&&(s=a.type),s=s||this._getDefaultType(t,e);var l=this._getScaleCfg(s,t,e);a&&r.mix(l,a),n=i[s](l)}return n},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(340),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},i.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){var e=this.actions;i.each(e,function(e){var n=e[0];t[n](e[1],e[2])})},e.hasAction=function(t){var e=this.actions,n=!1;return i.each(e,function(e){if(t===e[0])return n=!0,!1}),n},e.createCoord=function(t,e){var n,a,o=this.type,s=this.cfg,l=i.mix({start:t,end:e},s);return"theta"===o?(n=r.Polar,this.hasAction("transpose")||this.transpose(),(a=new n(l)).type=o):a=new(n=r[i.upperFirst(o||"")]||r.Rect)(l),this._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){"use strict";var i=n(44);i.Cartesian=n(341),i.Rect=i.Cartesian,i.Polar=n(342),i.Helix=n(343),t.exports=i},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;nf/l?(a=f/l,o={x:n.x-(.5-c)*f,y:n.y-(.5-h)*a*u}):(a=p/u,o={x:n.x-(.5-c)*a*l,y:n.y-(.5-h)*p}),t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var g={start:i,end:r},d={start:e*t,end:t};this.x=g,this.y=d,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r0?l:-l;var u=this.invertDim(s,"y"),c={};return c.x=this.isTransposed?u:l,c.y=this.isTransposed?l:u,c}}]),e}();t.exports=y},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n=0&&n<=1&&(s*=n);var l=Math.floor(s*(1-i)/o),u=l/(2*Math.PI),c={start:r,end:a},h={start:i*s,end:i*s+.99*l};this.a=u,this.d=l,this.x=c,this.y=h}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,i=this.a,r=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=i*a,s=this.convertDim(n,"y");return{x:r.x+Math.cos(a)*(o+s),y:r.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,i=this.d+this.y.start,r=g.subtract([],[t.x,t.y],[e.x,e.y]),a=g.angleTo(r,[1,0],!0),o=a*n;g.length(r)u.x||!o&&s.y>u.y?1:-1,{isVertical:o,factor:r,start:s,end:l}},e._getCircleCfg=function(t){var e,n={},i=t.x,r=t.y,a=r.start>r.end;e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1},e=t.convert(e);var s,l=t.circleCentre,u=[e.x-l.x,e.y-l.y],c=[1,0],h=(s=e.y>l.y?o.angle(u,c):-1*o.angle(u,c))+(i.end-i.start);return n.startAngle=s,n.endAngle=h,n.center=l,n.radius=Math.sqrt(Math.pow(e.x-l.x,2)+Math.pow(e.y-l.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,i=t.x.start<0?-1:1;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:i,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,i){var r="",a=this.options;if(a[i]&&a[i].position)r=a[i].position;else{var o=t.type;t.isRect?"x"===e?r="bottom":"y"===e&&(r=n?"right":"left"):r="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return r},e._getAxisDefaultCfg=function(t,e,n,i){var a=this.viewTheme,o={},s=this.options,l=e.field;if(o=r.deepMix({},a.axis[i],o,s[l]),o.viewTheme=a,o.title){var u=r.isPlainObject(o.title)?o.title:{};u.text=u.text||e.alias||l,r.deepMix(o,{title:u})}return o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o},e._getAxisCfg=function(t,e,n,i,a,o){void 0===a&&(a="");var s=this,l=s._getAxisPosition(t,i,a,e.field),u=s._getAxisDefaultCfg(t,e,i,l);if(!r.isEmpty(u.grid)&&n){var c=[],h=[],f=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],i=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==i.value&&e.push({value:1})}return e}(n.getTicks());if(f.length){var p=function(t,e,n){var i=[];return t.length<1?i:(t.length>=2&&e&&n&&i.push({text:"",tickValue:"",value:0}),0!==t[0].value&&i.push({text:"",tickValue:"",value:0}),1!==(i=i.concat(t))[i.length-1].value&&i.push({text:"",tickValue:"",value:1}),i)}(u.ticks,e.isLinear,"center"===u.grid.align);r.each(p,function(n,l){h.push(n.tickValue);var g=[],d=n.value;if("center"===u.grid.align&&(d=s._getMiddleValue(d,p,l,e.isLinear)),!r.isNil(d)){var v=t.x,y=t.y;r.each(f,function(e){var n="x"===i?d:e.value,r="x"===i?e.value:d,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;y.start>y.end&&(r=1-r),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}g.push(a)}),c.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:g})}})}u.grid.items=c,u.grid.tickValues=h}return u.type=e.type,u},e._getHelixCfg=function(t){for(var e={},n=t.a,i=t.startAngle,r=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var l=t.convert({x:0,y:0});return e.a=n,e.startAngle=i,e.endAngle=r,e.crp=a,e.axisStart=l,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,i,o,s,l){var u,c,h=this.container,f=this.canvas;"cartesian"===t.type?(u=a.Line,c=this._getLineCfg(t,e,i,l)):"helix"===t.type&&"x"===i?(u=a.Helix,c=this._getHelixCfg(t)):"x"===i?(u=a.Circle,c=this._getCircleCfg(t)):(u=a.Line,c=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,i,l,o);p=r.mix({},p,c),"y"===i&&s&&"circle"===s.get("type")&&(p.circle=s),p._id=o+"-"+i,r.isNil(l)||(p._id=o+"-"+i+l),r.mix(p,{canvas:f,group:h});var g=new u(p);return g.render(),this.axes.push(g),g},e.createAxis=function(t,e,n){var i=this,a=this.coord,o=a.type;if("theta"!==o&&("polar"!==o||!a.isTransposed)){var s;t&&!i._isHide(t.field)&&(s=i._drawAxis(a,t,e[0],"x",n)),r.isEmpty(e)||"helix"===o||r.each(e,function(e,r){i._isHide(e.field)||i._drawAxis(a,e,t,"y",n,s,r)})}},e.changeVisible=function(t){var e=this.axes;r.each(e,function(e){e.set("visible",t)})},e.clear=function(){var t=this.axes;r.each(t,function(t){t.clear()}),this.axes=[]},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(346),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,i.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach(function(e){var o=e.type,l=i.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=i.upperFirst(o);var u=new r[o](l);t.guides.push(u)}),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,r=n&&n.get("data"),a=e._creatGuides();i.each(a,function(i){var a;a=i.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,i.render(t,a,r,n)})},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){var e=this.guides;i.each(e,function(e){e.changeVisible(t)})},e.reset=function(){var t=this.guides;i.each(t,function(t){t.clear()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){var i=n(21).Guide,r=n(347);i.RegionFilter=r,t.exports=i},function(t,e,n){var i=n(0),r=n(15),a=n(25).Path,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},n.render=function(t,e,n,i){var r=this,a=e.addGroup();a.name="guide-region-filter",i.once("afterpaint",function(){if(!a.get("destroyed")){r._drawShapes(i,a);var e=r._drawClip(t);a.attr({clip:e}),r.set("clip",e),r.get("appendInfo")&&a.setSilent("appendInfo",r.get("appendInfo")),r.set("el",a)}})},n._drawShapes=function(t,e){var n=this,r=[];return t.getAllGeoms().map(function(t){var a=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&a.map(function(t){var a=t.type,o=i.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(a,{attrs:o});return r.push(s),t}),t}),r},n._drawClip=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end")),i=[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]];return new a({attrs:{path:i,opacity:1}})},n._adjustDisplay=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},n._geomFilter=function(t){var e=this.get("apply");return!e||i.contains(e,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(r);t.exports=o},function(t,e,n){var i=n(0),r=n(21).Legend,a=n(349),o=n(18),s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,l=function(){function t(t){this.options={},i.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,i.each(t,function(t){i.each(t,function(t){t.destroy()})}),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){t=this.chart.get("backPlot").getBBox();var e=this.plotRange;t.maxX-t.minX0){var a=e.getXScale(),o=e.getYScale(),s=a.field,l=o.field,u=t.get("origin")._origin,c=e.get("labelContainer").get("labelsGroup").get("children");i.each(c,function(e){var i=e.get("origin")||[];i[s]===u[s]&&i[l]===u[l]&&(e.set("visible",n),t.set("gLabel",e))})}}},e._bindFilterEvent=function(t,e){var n=this,i=this.chart,r=e.field;t.on("itemfilter",function(t){var e=t.range;i.filterShape(function(t,i,a){if(t[r]){var o=t[r]>=e[0]&&t[r]<=e[1];return n._filterLabels(i,a,o),o}return!0});for(var a=i.getAllGeoms()||[],o=function(t){var n=a[t];"heatmap"===n.get("type")&&s(function(){n.drawWithRange(e)})},l=0;l1?l:n;if("left"===x[0]||"right"===x[0])s=u.br.y,m=this._getXAlign(x[0],o,n,c,g,d),_=e?e.get("group").get("y")+e.getHeight()+v:this._getYAlignVertical(x[1],s,b,c,0,d,a.get("height"));else if("top"===x[0]||"bottom"===x[0])if(_=this._getYAlignHorizontal(x[0],s,n,c,p,d),e){var w=e.getWidth();m=e.get("group").get("x")+w+v}else m=this._getXAlign(x[1],o,b,c,0,d),"right"===x[1]&&(m=u.br.x-b.totalWidth);t.move(m+h,_+f)},e._getXAlign=function(t,e,n,i,r,a){var o="left"===t?i.minX-r-a[3]:i.maxX+a[1];return"center"===t&&(o=(e-n.totalWidth)/2),o},e._getYAlignHorizontal=function(t,e,n,i,r,a){return"top"===t?i.minY-r-a[0]:i.maxY+a[2]},e._getYAlignVertical=function(t,e,n,i,r,a,o){var s="top"===t?i.minY-r-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,r=0,a=0;return i.each(t,function(t){var i=t.getWidth(),o=t.getHeight();e1){var g=Array(f.callback.length-1).fill("");c.color=f.mapping.apply(f,[l].concat(g)).join("")||b.defaultColor}else c.color=f.mapping(l).join("")||b.defaultColor;if(y&&p)if(p.callback&&p.callback.length>1){var v=Array(p.callback.length-1).fill("");m=p.mapping.apply(p,[l].concat(v)).join("")}else m=p.mapping(l).join("");var _=o.getShapeFactory(x).getMarkerCfg(m,c);i.isFunction(m)&&(_.symbol=m),d.push({value:r,dataValue:l,checked:h,marker:_})});var A=i.deepMix({},b.legend[M[0]],h[c]||h,{viewId:_.get("_id"),maxLength:C,items:d,container:g,position:[0,0]});A.title&&i.deepMix(A,{title:{text:t.alias||t.field}});var k;if(u._isTailLegend(h,n))A.chart=u.chart,A.geom=n,k=new a(A);else if(h.useHtml){var P=g.get("canvas").get("el");if(g=h.container,i.isString(g)&&/^\#/.test(g)){var I=g.replace("#","");g=document.getElementById(I)}g||(g=P.parentNode),A.container=g,void 0===A.legendStyle&&(A.legendStyle={}),A.legendStyle.CONTAINER_CLASS={position:"absolute",overflow:"auto","z-index":""===P.style.zIndex?1:parseInt(P.style.zIndex,10)+1},h.flipPage?(A.legendStyle.CONTAINER_CLASS.height="right"===M[0]||"left"===M[0]?C+"px":"auto",A.legendStyle.CONTAINER_CLASS.width="right"!==M[0]&&"left"!==M[0]?C+"px":"auto",k=new r.CatPageHtml(A)):k=new r.CatHtml(A)}else k=new r.Category(A);return u._bindClickEvent(k,t,s),p[l].push(k),k},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",function(e){var r=!1;if(e.target){var a=e.target.get("origin");if(a){var o=a._origin||a[0]._origin,s=t.field;if(o){var l=o[s];i.each(n,function(t){i.each(t,function(t){r=!0,!t.destroyed&&t.activate(l)})})}}}r||i.each(n,function(t){i.each(t,function(t){!t.destroyed&&t.deactivate()})})})},e._addContinuousLegend=function(t,e,n){var a=this.legends;a[n]=a[n]||[];var o,s,l,u=this.container,c=t.field,h=t.getTicks(),f=[],p=this.viewTheme;i.each(h,function(n){var i=n.value,r=t.invert(i),a=e.mapping(r).join("");f.push({value:n.tickValue,attrValue:a,color:a,scaleValue:i}),0===i&&(s=!0),1===i&&(l=!0)}),s||f.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),l||f.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=this.options,d=n.split("-"),v=p.legend[d[0]];(g&&!1===g.slidable||g[c]&&!1===g[c].slidable)&&(v=i.mix({},v,p.legend.gradient));var y=i.deepMix({},v,g[c]||g,{items:f,attr:e,formatter:t.formatter,container:u,position:[0,0]});return y.title&&i.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type?o=new r.Color(y):"size"===e.type&&(o=g&&"circle"===g.sizeType?new r.CircleSize(y):new r.Size(y)),this._bindFilterEvent(o,t),a[n].push(o),o},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(i.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var r=t.split("-");1===r.length?("left"===r[0]&&(n="left-bottom"),"right"===r[0]&&(n="right-bottom"),"top"===r[0]&&(n="top-center"),"bottom"===r[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,i){var r=this.options,a=t.field,o=r[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var l=r.position||s.defaultLegendPosition;l=this._adjustPosition(l,this._isTailLegend(r,n)),o&&o.position&&(l=this._adjustPosition(o.position,this._isTailLegend(o,n)));var u;u=t.isLinear?this._addContinuousLegend(t,e,l):this._addCategoryLegend(t,e,n,i,l),this._bindHoverEvent(u,a),r.reactive&&this._bindChartMove(t)}},e.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,a=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var l=this.legends;l[s]=l[s]||[];var u=o.items;if(u){var c=e.getAllGeoms();i.each(u,function(t){var e=function(t,e){var n;return i.each(t,function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)}),n}(c,t.value);i.isObject(t.marker)?t.marker.radius=t.marker.radius||4.5:t.marker={symbol:t.marker?t.marker:"circle",fill:t.fill,radius:4.5},t.checked=!!i.isNil(t.checked)||t.checked,t.geom=e});var h,f=e.get("canvas"),p=this.plotRange,g=s.split("-"),d="right"===g[0]||"left"===g[0]?p.bl.y-p.tr.y:f.get("width"),v=i.deepMix({},n.legend[g[0]],o,{maxLength:d,items:u,container:a,position:[0,0]});if(o.useHtml){var y=o.container;if(/^\#/.test(a)){var x=y.replace("#","");y=document.getElementById(x)}else y||(y=a.get("canvas").get("el").parentNode);v.container=y,void 0===v.legendStyle&&(v.legendStyle={}),v.legendStyle.CONTAINER_CLASS||(v.legendStyle.CONTAINER_CLASS={height:"right"===g[0]||"left"===g[0]?d+"px":"auto",width:"right"!==g[0]&&"left"!==g[0]?d+"px":"auto",position:"absolute",overflow:"auto"}),h=o.flipPage?new r.CatPageHtml(v):new r.CatHtml(v)}else h=new r.Category(v);return l[s].push(h),h.on("itemclick",function(t){o.onClick&&o.onClick(t)}),this._bindHoverEvent(h),h}},e.addMixedLegend=function(t,e){var n=[];i.each(t,function(t){var r=t.field;i.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0){var i=e.get("shapeType")||"point",a=e.getDefaultValue("shape")||"circle",s=o.getShapeFactory(i),l={color:e.getDefaultValue("color")},u=s.getMarkerCfg(a,l),c={value:r,marker:u};n.push(c)}})});var r={custom:!0,items:n};this.options=i.deepMix({},r,this.options);var a=this.addCustomLegend();this._bindClickEventForMix(a)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var r=0;return i.each(e,function(e,a){var o=n.subs[r];i.each(e,function(n,i){var r=e[i-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,r,o,a)}),r++}),this},t}();t.exports=l},function(t,e,n){var i=n(0),r=n(21),a=n(7),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,0),a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),l=0;if(t.marker){var u=i.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(u.fill&&(u.fill=r),u.stroke&&(u.stroke=r));var c=a.addShape("marker",{type:"marker",attrs:u});c.attr("cursor","pointer"),c.name="legend-marker",l+=c.getBBox().width+s}var h=i.mix({},o,{x:l,y:0,text:this._formatItemValue(t.value)});t.checked||i.mix(h,{fill:r});var f=a.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),g=this.get("itemWidth"),d=a.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:g||p.width,height:p.height}});return d.attr("cursor","pointer"),d.setSilent("origin",t),d.name="legend-item",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjust=function(){if(this.get("geom")){this.get("group").attr("matrix")[7]=0;var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;i.each(e,function(e){var r=t[n],a=r[r.length-1].y;i.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x"),l=a-o/2;e.translate(s,l),n++}),this.get("autoLayout")&&this._antiCollision(e)}},n.render=function(){var e=this;t.prototype.render.call(this);this.get("chart").once("afterpaint",function(){e._adjust()})},n._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},n._adjustDenote=function(t,e,n){var i=2*-a.legend.legendMargin;t.addShape("path",{attrs:{path:"M-2,"+e+"L"+i+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},n._antiCollision=function(t){var e=this;t.sort(function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]});var n=!0,i=e.get("chart").get("plotRange"),r=i.tl.y,a=Math.abs(r-i.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,l=0,u=t.map(function(t){var e=t.attr("matrix")[7];return e>l&&(l=e),e0){var g=u[c-1],d=u[c];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),u.splice(c,1),n=!0)}}c=0;var v=this.get("itemsGroup").addGroup();u.forEach(function(n){var i=r+o;n.targets.forEach(function(){var r=t[c].attr("matrix")[7],a=n.pos+i-o/2;Math.abs(r-a)>o/2&&e._adjustDenote(v,a,r-e.get("group").attr("matrix")[7]/2),t[c].translate(0,-r),t[c].translate(0,a),i+=o,c++})})},e}(r.Legend.Category);t.exports=o},function(t,e,n){function i(t,e){if(!t)return!1;return!!t.className&&-1!==(a.isNil(t.className.baseVal)?t.className:t.className.baseVal).indexOf(e)}function r(t){var e=[];return a.each(t,function(t){var n=function(t,e){var n=-1;return a.each(t,function(t,i){var r=!0;for(var o in e)if(e.hasOwnProperty(o)&&-1===h.indexOf(o)&&!a.isObject(e[o])&&e[o]!==t[o]){r=!1;break}if(r)return n=i,!1}),n}(e,t);-1===n?e.push(t):e[n]=t}),e}var a=n(0),o=n(18),s=n(21).Tooltip,l=a.MatrixUtil.vec2,u=["line","area","path","areaStack"],c=["line","area"],h=["marker","showMarker"],f=function(){function t(t){a.assign(this,t),this.timeStamp=0}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),i=n.getPointByClient(t.clientX,t.clientY),r=n.get("pixelRatio");i.x=i.x/r,i.y=i.y/r;var a=e.getViewsByPoint(i);return i.views=a,i},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options.triggerOn;return e&&"mousemove"!==e?"click"===e?t="plotclick":"none"===e&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,i=a.mix({},e.tooltip),r=t.getAllGeoms().filter(function(t){return t.get("visible")}),o=[];a.each(r,function(t){var e=t.get("type"),n=t.get("adjusts"),i=!1;n&&a.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return i=!0,!1}),-1!==a.indexOf(o,e)||i||o.push(e)});var s,l=!(!r.length||!r[0].get("coord"))&&r[0].get("coord").isTransposed;if(r.length&&r[0].get("coord")&&"cartesian"===r[0].get("coord").type&&1===o.length)if("interval"===o[0]&&!1!==n.shared){var u=a.mix({},e.tooltipCrosshairsRect);u.isTransposed=l,s={zIndex:0,crosshairs:u}}else if(a.indexOf(c,o[0])>-1){var h=a.mix({},e.tooltipCrosshairsLine);h.isTransposed=l,s={crosshairs:h}}return a.mix(i,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,a.wrapBehavior(this,"onMouseMove")),t.on("plotleave",a.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,a.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",a.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,i){var o=this.tooltip,s=this.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=r(e),this.prePoint=t;var l=this.chart,u=this.viewTheme,c=a.isArray(t.x)?t.x[t.x.length-1]:t.x,h=a.isArray(t.y)?t.y[t.y.length-1]:t.y;o.get("visible")||l.emit("tooltip:show",{x:c,y:h,tooltip:o});var f=e[0],p=f.title||f.name;o.isContentChange(p,e)&&(l.emit("tooltip:change",{tooltip:o,x:c,y:h,items:e}),p=e[0].title||e[0].name,o.setContent(p,e),a.isEmpty(n)?o.clearMarkers():!0===this.options.hideMarkers?o.set("markerItems",n):o.setMarkers(n,u.tooltipMarker));i===this._getCanvas()&&"mini"===o.get("type")?o.hide():(o.setPosition(c,h,i),o.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!a.isEmpty(t.views)){var e=this.timeStamp,n=+new Date,i={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(i,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&(t&&t.toElement&&(i(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,r=!1;n&&n!==document.body;){if(i(n,e)){r=!0;break}n=n.parentNode}return r}(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t.viewTheme,i=t._getCanvas(),r=t._getDefaultTooltipCfg(),o=t.options;(o=a.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:i,frontPlot:e.get("frontPlot"),viewTheme:n.tooltip,backPlot:e.get("backPlot")},r,o)).crosshairs&&"rect"===o.crosshairs.type&&(o.zIndex=0),o.visible=!1;var l;"mini"===o.type?(o.crosshairs=!1,o.position="top",l=new s.Mini(o)):l=o.useHtml?new s.Html(o):new s.Canvas(o),t.tooltip=l;var u=t._getTriggerEvent();if(!l.get("enterable")&&"plotmove"===u){var c=l.get("container");c&&(c.onmousemove=function(n){var i=t._normalizeEvent(n);e.emit(u,i)})}t._bindEvent()}},e.showTooltip=function(t,e,n){var i=this;if(!a.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var r=i.options,o=[],s=[];if(a.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),l=e.get("coord");a.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var c=e.get("dataArray");if(e.isShareTooltip()||!1===r.shared&&a.inArray(["area","line","path","polygon"],n))a.each(c,function(c){var h=e.findPoint(t,c);if(h){var f=e.getTipItems(h,r.title);a.each(f,function(t){var r=t.point;if(r&&r.x&&r.y){var s=a.isArray(r.x)?r.x[r.x.length-1]:r.x,c=a.isArray(r.y)?r.y[r.y.length-1]:r.y;r=l.applyMatrix(s,c,1),t.x=r[0],t.y=r[1],t.showMarker=!0;var h=i._getItemMarker(e,t.color);t.marker=h,-1!==a.indexOf(u,n)&&o.push(t)}}),s=s.concat(f)}});else{var h=e.get("shapeContainer"),f=h.get("canvas").get("pixelRatio"),p=h.getShape(t.x*f,t.y*f);p&&p.get("visible")&&p.get("origin")&&(s=e.getTipItems(p.get("origin"),r.title))}}}),a.each(s,function(t){var e=t.point,n=a.isArray(e.x)?e.x[e.x.length-1]:e.x,i=a.isArray(e.y)?e.y[e.y.length-1]:e.y;e=l.applyMatrix(n,i,1),t.x=e[0],t.y=e[1]})}),s.length){var c=s[0];if(!s.every(function(t){return t.title===c.title})){var h=c,f=1/0;s.forEach(function(e){var n=l.distance([t.x,t.y],[e.x,e.y]);n1){var p=s[0],g=Math.abs(t.y-p.y);a.each(s,function(e){Math.abs(t.y-e.y)<=g&&(p=e,g=Math.abs(t.y-e.y))}),p&&p.x&&p.y&&(o=[p]),s=[p]}i._setTooltip(t,s,o,n)}else i.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=t.get("shapeType")||"point",i=t.getDefaultValue("shape")||"circle",r={color:e};return o.getShapeFactory(n).getMarkerCfg(i,r)},t}();t.exports=f},function(t,e,n){function i(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isNil(n)&&a.isNil(i)?a.isEqual(t,e):a.isEqual(n,i)}function r(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),o=function(){function t(t){this.view=null,this.canvas=null,a.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},i=e.getViewsByPoint(n);return n.views=i,n},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var i=this.view;if(i.isShapeInView(t)){var r=t.name+":"+e;n.view=i,n.appendInfo=t.get("appendInfo"),i.emit(r,n);var a=i.get("parent");a&&a.emit(r,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var a=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=a,r(o),e.emit("mousemove",o),this._triggerShapeEvent(a,"mousemove",o),n&&!i(n,a)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=a,r(s),this._triggerShapeEvent(n,"mouseleave",s)}if(a&&!i(n,a)){var l=this._getShapeEventObj(t);l.shape=a,l.fromShape=n,r(l),this._triggerShapeEvent(a,"mouseenter",l)}this.currentShape=a;var u=this._getPointInfo(t),c=this.curViews||[];0===c.length&&u.views.length&&e.emit("plotenter",this._getEventObj(t,u,u.views)),c.length&&0===u.views.length&&e.emit("plotleave",this._getEventObj(t,u,c)),u.views.length&&((o=this._getEventObj(t,u,u.views)).shape=a,r(o),e.emit("plotmove",o)),this.curViews=u.views},e.onOut=function(t){var e=this.view,n=this._getPointInfo(t),i=this.curViews||[],r=this._getEventObj(t,n,i);!this.curViews||0===this.curViews.length||r.toElement&&"CANVAS"===r.toElement.tagName||(e.emit("plotleave",r),this.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("click",i),this._triggerShapeEvent(n,t.type,i),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!a.isEmpty(s)){var l=this._getEventObj(t,o,s);if(this.currentShape){var u=this.currentShape;l.shape=u,r(l)}e.emit("plotclick",l),"dblclick"===t.type&&(e.emit("plotdblclick",l),e.emit("dblclick",i))}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchstart",i),this._triggerShapeEvent(n,"touchstart",i),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchmove",i),this._triggerShapeEvent(n,"touchmove",i),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){function i(t,e){var n=[];if(!1===t.get("animate"))return[];var r=t.get("children");return s.each(r,function(t){if(t.isGroup)n=n.concat(i(t,e));else if(t.isShape&&t._id){var r=t._id;(r=r.split("-")[0])===e&&n.push(t)}}),n}function r(t,e,n,i){return i?l.Action[n][i]:l.getAnimation(t,e,n)}function a(t,e,n){var i=l.getAnimateCfg(t,e);return n&&n[e]?s.deepMix({},i,n[e]):i}function o(t,e,n,i){var o,l,c=!1;if(i){var h=[],f=[];s.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),h.push(e),delete t[e._id]):f.push(e)}),s.each(t,function(t){var e=t.name,i=t.coord,h=t._id,f=t.attrs,p=t.index,g=t.type;if(l=a(e,"leave",t.animateCfg),o=r(e,i,"leave",l.animation),s.isFunction(o)){var d=n.addShape(g,{attrs:f,index:p});if(d._id=h,d.name=e,i&&"label"!==e){var v=d.getMatrix(),y=u.multiply([],v,i.matrix);d.setMatrix(y)}c=!0,o(d,l,i)}}),s.each(h,function(t){var e=t.name,n=t.get("coord"),i=t.get("cacheShape").attrs;if(!s.isEqual(i,t.attr())){if(l=a(e,"update",t.get("animateCfg")),o=r(e,n,"update",l.animation),s.isFunction(o))o(t,l,n);else{var u=s.cloneDeep(t.attr());t.attr(i),t.animate(u,l.duration,l.easing,function(){t.setSilent("cacheShape",null)})}c=!0}}),s.each(f,function(t){var e=t.name,n=t.get("coord");l=a(e,"enter",t.get("animateCfg")),o=r(e,n,"enter",l.animation),s.isFunction(o)&&(o(t,l,n),c=!0)})}else s.each(e,function(t){var e=t.name,n=t.get("coord");l=a(e,"appear",t.get("animateCfg")),o=r(e,n,"appear",l.animation),s.isFunction(o)&&(o(t,l,n),c=!0)});return c}var s=n(0),l=n(126),u=s.MatrixUtil.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),r=t.get("backPlot"),a=t.get("_id"),l=t.get("canvas"),u=l.get(a+"caches")||[];0===u.length&&(e=!1);var c=i(n,a),h=i(r,a),f=c.concat(h);l.setSilent(a+"caches",function(t){var e={};return s.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:s.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}(f));(e?o(u,f,l,e):o(u,c,l,e))||l.draw()}}},function(t,e,n){var i=n(0),r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},n._beforeRenderUI=function(){this._calculateRange()},n._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},n._renderBackground=function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},r=this.get("backgroundShape");r?r.attr(n):(r=this.addShape("rect",{attrs:i.mix(n,t)}),this.set("backgroundShape",r))}},n._renderPlotBackground=function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,r=e.br.y-e.tr.y,a=e.tl,o={x:a.x,y:a.y,width:n,height:r},s=this.get("plotBackShape");s?s.attr(o):(t.image?(o.img=t.image,s=this.addShape("image",{attrs:o})):(i.mix(o,t),s=this.addShape("rect",{attrs:o})),this.set("plotBackShape",s))}},n._convert=function(t,e){if(i.isString(t))if("auto"===t)t=0;else if(-1!==t.indexOf("%")){var n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*r:t*a}return t},n._calculateRange=function(){var t=this.get("plotRange");i.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=i.toAllPadding(e),s=this._convert(o[0],!1),l=this._convert(o[1],!0),u=this._convert(o[2],!1),c=this._convert(o[3],!0),h=Math.min(c,r-l),f=Math.max(c,r-l),p=Math.min(a-u,s),g=Math.max(a-u,s);t.tl={x:h,y:p},t.tr={x:f,y:p},t.bl={x:h,y:g},t.br={x:f,y:g},t.cc={x:(f+h)/2,y:(g+p)/2},this.set("plotRange",t)},n.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},e}(n(17).Group);t.exports=r},function(t,e,n){var i=n(0),r=n(7);setTimeout(function(){if(r.trackable){var t=new Image,e=i.mix({},r.trackingInfo,{pg:document.URL,r:(new Date).getTime(),g2:!0,version:r.version,page_type:"syslog"}),n=encodeURIComponent(JSON.stringify([e]));t.src="https://kcart.alipay.com/web/bi.do?BIProfile=merge&d="+n}},3e3)},function(t,e,n){var i=n(7),r=n(0),a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||i;if(!t){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,l=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var u=function(t,e){var n=t.length;r.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var i=t[1]-t[0],a=2;ao&&(i=o)}return i}(s,o);n=(o.max-o.min)/u,s.length>n&&(n=s.length)}else n=s.length;var c=o.range,h=1/n,f=1;if(this.isInCircle()?f=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(h*=c[1]-c[0]),f=e.widthRatio.column),h*=f,this.hasAdjust("dodge")){h/=this._getDodgeCount(l)}t=h,this.set("defaultSize",t)}return t},_getDodgeCount:function(t){var e,n=this.get("adjusts"),i=t.length;if(r.each(n,function(t){"dodge"===t.type&&(e=t.dodgeBy)}),e){var a=r.Array.merge(t);i=r.Array.values(a,e).length}return i},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),i=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return n&&i&&(r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))),r},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=r.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var i=n(0),r=n(7);t.exports={splitData:function(t){var e=this.get("viewTheme")||r;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale().field;return i.each(t,function(t){n=t._origin?t._origin[s]:t[s],e.connectNulls?i.isNil(n)||o.push(t):i.isArray(n)&&i.isNil(n[0])||i.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}}},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(20),a=n(356),o=n(0),s=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(i(i(n)),a),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},n.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},n.draw=function(t,e,n,i){var r=this,a=this.splitData(t),s=this.getDrawCfg(t[0]);r._applyViewThemeShapeStyle(s,s.shape,n),s.origin=t,o.each(a,function(t,a){if(!o.isEmpty(t)){s.splitedIndex=a,s.points=t;var l=n.drawShape(s.shape,s,e);r.appendShapeInfo(l,i+a)}})},e}(r);r.Path=s,t.exports=s},function(t,e,n){"use strict";var i=n(368),r=n(369);e.a=function(t){var e=Object(i.a)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r.b&&e.documentElement.namespaceURI===r.b?e.createElement(t):e.createElementNS(n,t)}})(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}},function(t,e,n){"use strict";e.b=function(t,e,n){var r=t._id;return t.each(function(){var t=Object(i.h)(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Object(i.f)(t,r).value[e]}};var i=n(70);e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,a=Object(i.f)(this.node(),n).tween,o=0,s=a.length;o0;)i-=2*Math.PI;var c=a-t+(i=i/Math.PI/2*n)-2*t;l.push(["M",c,e]);for(var h=0,f=0;f=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.a.hasOwnProperty(e)?{space:i.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var i="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){}:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function i(t,e,n){return function(i){var r=o;o=i;try{t.call(this,this.__data__,e,n)}finally{o=r}}}function r(t,e,n){var r=a.hasOwnProperty(t.type)?function(t,e,n){return t=i(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}:i;return function(i,a,o){var s,l=this.__on,u=r(e,a,o);if(l)for(var c=0,h=l.length;c=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;{if(!(arguments.length<2)){for(l=e?r:function(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,a=e.length;in.max&&(n.max=e.max)):"timeCat"===o?(i.each(s,function(t,e){s[e]=r.toTimeStamp(t)}),s.sort(function(t,e){return t-e}),n=s):n=s,n}},function(t,e,n){"use strict";var i=n(69);e.a=function(t){return"string"==typeof t?new i.a([[document.querySelector(t)]],[document.documentElement]):new i.a([[t]],i.c)}},function(t,e,n){"use strict";e.a=function(t){return null==t?function(){return[]}:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var i=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var r=document.documentElement;if(!r.matches){var a=r.webkitMatchesSelector||r.msMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;i=function(t){return function(){return a.call(this,t)}}}}e.a=i},function(t,e,n){"use strict";function i(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=i;var r=n(381),a=n(69);e.b=function(){return new a.a(this._enter||this._groups.map(r.a),this._parents)},i.prototype={constructor:i,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function i(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=i;var r=n(371);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):i(this.node(),t)}},function(t,e,n){"use strict";var i=n(70);e.a=function(t,e){var n,r,a,o=t.__transition,s=!0;if(o){e=null==e?null:e+"";for(a in o)(n=o[a]).name===e?(r=n.state>i.d&&n.state0&&(o[0][0]="L"),i=i.concat(o)}),i.push(["Z"]),i}function o(t){return{symbol:function(t,e){return[["M",t-5.5,e-4],["L",t+5.5,e-4],["L",t+5.5,e+4],["L",t-5.5,e+4],["Z"]]},radius:5,fill:t.color,fillOpacity:.6}}var s=n(0),l=n(18),u=n(22),c=n(45),h=n(7),f=l.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,i=t.y,r=t.y0;return i=s.isArray(i)?i:[r,i],s.each(i,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return function(t,e){if("line"===t||"smoothLine"===t)return{lineWidth:(e.lineWidth||0)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}(t,e)},drawShape:function(t,e,n){var i,r=this.getShape(t);return(i=1===e.points.length&&h.showSinglePoint?function(t,e,n){var i=t._coord.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:s.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}(this,e,n):r.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});l.registerShape("area","area",{draw:function(t,e){var n=r(t),i=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),l.registerShape("area","smooth",{draw:function(t,e){var n=r(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var o=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:o})})},getMarkerCfg:function(t){return o(t)}}),l.registerShape("area","line",{draw:function(t,e){var n=i(t),r=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return o(t)}}),l.registerShape("area","smoothLine",{draw:function(t,e){var n=i(t),r=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return o(t)}}),f.spline=f.smooth,t.exports=f},function(t,e,n){var i=n(20);n(391);var r=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(i);i.Edge=r,t.exports=r},function(t,e,n){function i(t){var e=u.shape.edge,n=o.mix({},e,t.style);return l.addStrokeAttrs(n,t),n}function r(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var i=["C"];return o.each(n,function(t){i.push(t.x,t.y)}),i}function a(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return o.each(n,function(t){i.push(t.x,t.y)}),i}var o=n(0),s=n(18),l=n(45),u=n(7),c=n(22),h=1/3,f=s.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return l.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});s.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),r=i(t),a=c.getLinePath(n);return e.addShape("path",{attrs:o.mix(r,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},i(t))}}),s.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,r=i(t),a=function(t,e){var n=[];n.push({y:t.y*(1-h)+e.y*h,x:t.x}),n.push({y:t.y*(1-h)+e.y*h,x:e.x}),n.push(e);var i=[["M",t.x,t.y]];return o.each(n,function(t){i.push(["L",t.x,t.y])}),i}(n[0],n[1]);a=this.parsePath(a);return e.addShape("path",{attrs:o.mix(r,{path:a})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},i(t))}}),s.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,a=i(t),s=function(t,e){var n=r(t,e),i=[["M",t.x,t.y]];return i.push(n),i}(n[0],n[1]);s=this.parsePath(s);return e.addShape("path",{attrs:o.mix(a,{path:s})})},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},i(t))}}),s.registerShape("edge","arc",{draw:function(t,e){var n,s,l=t.points,u=l.length>2?"weight":"normal",c=i(t);if(t.isInCircle){var h={x:0,y:1};"normal"===u?s=function(t,e,n){var i=a(e,n),r=[["M",t.x,t.y]];return r.push(i),r}(l[0],l[1],h):(c.fill=c.stroke,s=function(t,e){var n=a(t[1],e),i=a(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}(l,h)),s=this.parsePath(s),n=e.addShape("path",{attrs:o.mix(c,{path:s})})}else if("normal"===u)l=this.parsePoints(l),n=e.addShape("arc",{attrs:o.mix(c,{x:(l[1].x+l[0].x)/2,y:l[0].y,r:Math.abs(l[1].x-l[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{s=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y]];var f=r(l[1],l[3]),p=r(l[2],l[0]);s.push(f),s.push(["L",l[3].x,l[3].y]),s.push(["L",l[2].x,l[2].y]),s.push(p),s.push(["Z"]),s=this.parsePath(s),c.fill=c.stroke,n=e.addShape("path",{attrs:o.mix(c,{path:s})})}return n},getMarkerCfg:function(t){return o.mix({symbol:"circle",radius:4.5},i(t))}}),t.exports=f},function(t,e,n){var i=n(73).ColorUtil,r=n(20),a=n(0),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e.paletteCache={},e},n._prepareRange=function(){var t=this.get("mappedData"),e=this.getAttr("color").field,n=1/0,i=-1/0;t.forEach(function(t){var r=t._origin[e];r>i&&(i=r),r=t[0]}));for(var c=this._getScale(o),h=0;h1?t[1]:e;return{min:e,max:n,min1:i,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:i}}function r(t,e,n){var r,a,s=[];return o.isArray(e)?r=[[t-n/2,(a=i(e)).max],[t+n/2,a.max],[t,a.max],[t,a.max1],[t-n/2,a.min1],[t-n/2,a.max1],[t+n/2,a.max1],[t+n/2,a.min1],[t,a.min1],[t,a.min],[t-n/2,a.min],[t+n/2,a.min],[t-n/2,a.median],[t+n/2,a.median]]:(e=e||.5,r=[[(a=i(t)).min,e-n/2],[a.min,e+n/2],[a.min,e],[a.min1,e],[a.min1,e-n/2],[a.min1,e+n/2],[a.max1,e+n/2],[a.max1,e-n/2],[a.max1,e],[a.max,e],[a.max,e-n/2],[a.max,e+n/2],[a.median,e-n/2],[a.median,e+n/2]]),function(t,e){o.each(t,function(t){e.push({x:t[0],y:t[1]})})}(r,s),s}function a(t,e,n){var i=function(t){o.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return te[n].radius+B)return!1;return!0}(e,t)}),u=0,c=0,h=[];if(o.length>1){var f=l(o);for(n=0;n-1){var m=t[d.parentIndex[x]],_=Math.atan2(d.x-m.x,d.y-m.y),b=Math.atan2(g.x-m.x,g.y-m.y),w=b-_;w<0&&(w+=2*Math.PI);var S=b-w/2,M=a(v,{x:m.x+m.radius*Math.sin(S),y:m.y+m.radius*Math.cos(S)});M>2*m.radius&&(M=2*m.radius),(null===y||y.width>M)&&(y={circle:m,width:M,p1:d,p2:g})}null!==y&&(h.push(y),u+=r(y.circle.radius,y.width),g=d)}}else{var C=t[0];for(n=1;nMath.abs(C.radius-t[n].radius)){A=!0;break}A?u=c=0:(u=C.radius*C.radius*Math.PI,h.push({circle:C,p1:{x:C.x,y:C.y+C.radius},p2:{x:C.x-B,y:C.y+C.radius},width:2*C.radius}))}return c/=2,e&&(e.area=u+c,e.arcArea=u,e.polygonArea=c,e.arcs=h,e.innerPoints=o,e.intersectionPoints=i),u+c}function r(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function o(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var i=e-(n*n-t*t+e*e)/(2*n);return r(t,t-(n*n-e*e+t*t)/(2*n))+r(e,i)}function s(t,e){var n=a(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var o=(i*i-r*r+n*n)/(2*n),s=Math.sqrt(i*i-o*o),l=t.x+o*(e.x-t.x)/n,u=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:l+c,y:u-h},{x:l-c,y:u+h}]}function l(t){for(var e={x:0,y:0},n=0;n=v[d-1].fx){var P=!1;if(b.fx>k.fx?(g(w,1+f,_,-f,k),w.fx=t(w),w.fx=1)break;for(y=1;yl+a*r*u||c>=d)f=r;else{if(Math.abs(p)<=-o*u)return r;p*(f-s)>=0&&(f=s),s=r,d=c}return 0}var l=n.fx,u=h(n.fxprime,e),c=l,f=l,p=u,d=0;r=r||1,a=a||1e-6,o=o||.1;for(var v=0;v<10;++v){if(g(i.x,1,n.x,r,e),c=i.fx=t(i.x,i.fxprime),p=h(i.fxprime,e),c>l+a*r*u||v&&c>=f)return s(d,r,f);if(Math.abs(p)<=-o*u)return r;if(p>=0)return s(r,d,c);f=c,d=r,r*=2}return r}function y(t,e,n){var i,r,a,o={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},l=e.slice(),u=1;a=(n=n||{}).maxIterations||20*e.length,o.fx=t(o.x,o.fxprime),p(i=o.fxprime.slice(),o.fxprime,-1);for(var c=0;ce}),e=0;e0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var u=0;u=0&&(e=c),Math.abs(l)=8){var r=function(t,e){var n,i=(e=e||{}).restarts||10,r=[],a={};for(n=0;n=Math.min(e[a].size,e[o].size)?l=1:t.size<=1e-10&&(l=-1),r[a][o]=r[o][a]=l}),{distances:i,constraints:r}}(t,r,a),l=s.distances,h=s.constraints,g=f(l.map(f))/l.length;l=l.map(function(t){return t.map(function(t){return t/g})});var d,v,x=function(t,e){return function(t,e,n,i){var r,a=0;for(r=0;r0&&g<=h||f<0&&g>=h||(a+=2*d*d,e[2*r]+=4*d*(o-u),e[2*r+1]+=4*d*(s-c),e[2*l]+=4*d*(u-o),e[2*l+1]+=4*d*(c-s))}return a}(t,e,l,h)};for(n=0;n=Math.min(l[g].size,l[d].size)&&(p=0),u[g].push({set:d,size:f.size,weight:p}),u[d].push({set:g,size:f.size,weight:p})}var v=[];for(a in u)if(u.hasOwnProperty(a)){var y=0;for(c=0;c0){var r=t[0].x,o=t[0].y;for(i=0;i1){var s,l,u=Math.atan2(t[1].x,t[1].y)-e,c=Math.cos(u),h=Math.sin(u);for(i=0;i2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(i=0;iu&&p.node().getComputedTextLength()>o&&(h.pop(),p.text(h.join(" ")),h=[c],p=r.append("tspan").text(c),f++)}var g=.35-1.1*f/2,d=r.attr("x"),v=r.attr("y");r.selectAll("tspan").attr("x",d).attr("y",v).attr("dy",function(t,e){return g+1.1*e+"em"})}}function I(t,e,n){var i,r,o=e[0].radius-a(e[0],t);for(i=1;i=u&&(s=r[n],u=c)}var h=d(function(n){return-1*I({x:n[0],y:n[1]},t,e)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:h[0],y:h[1]},p=!0;for(n=0;nt[n].radius){p=!1;break}for(n=0;n0&&console.log("WARNING: area "+a+" not represented on screen")}return n}function E(t,e,n){var i=[];return i.push("\nM",t,e),i.push("\nm",-n,0),i.push("\na",n,n,0,1,0,2*n,0),i.push("\na",n,n,0,1,0,2*-n,0),i.join(" ")}function D(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function F(t){var e={};i(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return E(r.x,r.y,r.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;ol;a.push("\nA",l,l,0,u?1:0,1,s.p1.x,s.p1.y)}return a.join(" ")}var B=1e-10,R=1e-10;t.intersectionArea=i,t.circleCircleIntersection=s,t.circleOverlap=o,t.circleArea=r,t.distance=a,t.venn=x,t.greedyLayout=b,t.scaleSolution=k,t.normalizeSolution=A,t.bestInitialLayout=_,t.lossFunction=w,t.disjointCluster=M,t.distanceFromIntersectArea=m,t.VennDiagram=function(){function t(t){function f(t){return t.sets in b?b[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}var p=t.datum(),g={};p.forEach(function(t){0==t.size&&1==t.sets.length&&(g[t.sets[0]]=1)});var x={},m={};if((p=p.filter(function(t){return!t.sets.some(function(t){return t in g})})).length>0){var _=v(p,{lossFunction:y});s&&(_=A(_,o,h)),x=k(_,n,i,r),m=L(x,p)}var b={};p.forEach(function(t){t.label&&(b[t.sets]=t.label)}),t.selectAll("svg").data([x]).enter().append("svg");var w=t.select("svg").attr("width",n).attr("height",i),S={},M=!1;w.selectAll(".venn-area path").each(function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(M=!0,S[t.sets[0]]=D(n))});var C=function(t){return function(e){return F(t.sets.map(function(t){var r=S[t],a=x[t];return r||(r={x:n/2,y:i/2,radius:1}),a||(a={x:n/2,y:i/2,radius:1}),{x:r.x*(1-e)+a.x*e,y:r.y*(1-e)+a.y*e,radius:r.radius*(1-e)+a.radius*e}}))}},I=w.selectAll(".venn-area").data(p,function(t){return t.sets}),T=I.enter().append("g").attr("class",function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")}).attr("data-venn-sets",function(t){return t.sets.join("_")}),O=T.append("path"),E=T.append("text").attr("class","label").text(function(t){return f(t)}).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",i/2);u&&(O.style("fill-opacity","0").filter(function(t){return 1==t.sets.length}).style("fill",function(t){return d(t.sets)}).style("fill-opacity",".25"),E.style("fill",function(t){return 1==t.sets.length?d(t.sets):"#444"}));var B=t;M?(B=t.transition("venn").duration(a)).selectAll("path").attrTween("d",C):B.selectAll("path").attr("d",function(t){return F(t.sets.map(function(t){return x[t]}))});var R=B.selectAll("text").filter(function(t){return t.sets in m}).text(function(t){return f(t)}).attr("x",function(t){return Math.floor(m[t.sets].x)}).attr("y",function(t){return Math.floor(m[t.sets].y)});l&&(M?"on"in R?R.on("end",P(x,f)):R.each("end",P(x,f)):R.each(P(x,f)));var j=I.exit().transition("venn").duration(a).remove();j.selectAll("path").attrTween("d",C);var N=j.selectAll("text").attr("x",n/2).attr("y",i/2);return null!==c&&(E.style("font-size","0px"),R.style("font-size",c),N.style("font-size","0px")),{circles:x,textCentres:m,nodes:I,enter:T,update:B,exit:j}}var n=600,i=350,r=15,a=1e3,o=Math.PI/2,s=!0,l=!0,u=!0,c=null,h=null,f={},p=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],g=0,d=function(t){if(t in f)return f[t];var e=f[t]=p[g];return(g+=1)>=p.length&&(g=0),e},v=x,y=w;return t.wrap=function(e){return arguments.length?(l=e,t):l},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(i=e,t):i},t.padding=function(e){return arguments.length?(r=e,t):r},t.colours=function(e){return arguments.length?(d=e,t):d},t.fontSize=function(e){return arguments.length?(c=e,t):c},t.duration=function(e){return arguments.length?(a=e,t):a},t.layoutFunction=function(e){return arguments.length?(v=e,t):v},t.normalize=function(e){return arguments.length?(s=e,t):s},t.styled=function(e){return arguments.length?(u=e,t):u},t.orientation=function(e){return arguments.length?(o=e,t):o},t.orientationOrder=function(e){return arguments.length?(h=e,t):h},t.lossFunction=function(e){return arguments.length?(y=e,t):y},t},t.wrapText=P,t.computeTextCentres=L,t.computeTextCentre=T,t.sortAreas=function(t,e){function n(t){for(var e=0;e=M&&(M=S+1);!(w=_[M])&&++M=0;)(i=r[a])&&(o&&o!==i.nextSibling&&o.parentNode.insertBefore(i,o),o=i);return this}},function(t,e,n){"use strict";function i(t,e){return te?1:t>=e?0:NaN}var r=n(69);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=i);for(var n=this._groups,a=n.length,o=new Array(a),s=0;s1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]}},function(t,e,n){"use strict";function i(t){return t.trim().split(/^|\s+/)}function r(t){return t.classList||new a(t)}function a(t){this._node=t,this._names=i(t.getAttribute("class")||"")}function o(t,e){for(var n=r(t),i=-1,a=e.length;++i=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=i(t+"");if(arguments.length<2){for(var a=r(this.node()),l=-1,u=n.length;++l=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}(t+"",i),o=-1,s=r.length;{if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,i,r=new Array(n),a=0;a=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?i.g:i.h;return function(){var i=o(this,t),s=i.on;s!==r&&(a=(r=s).copy()).on(e,n),i.on=a}}(n,t,e))}},function(t,e,n){"use strict";e.a=function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))}},function(t,e,n){"use strict";var i=n(72),r=n(166),a=n(70);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(i.selector)(t));for(var o=this._groups,s=o.length,l=new Array(s),u=0;ur.c&&n.name===e)return new i.a([[t]],a,e,+o)}return null}},function(t,e,n){function i(t){var e=s.shape.venn,n=r.mix({},e,t.style);return o.addFillAttrs(n,t),n}var r=n(0),a=n(18),o=n(45),s=n(7),l=r.PathUtil,u=a.registerFactory("venn",{defaultShapeType:"venn",getDefaultPoints:function(t){var e=[];return r.each(t.x,function(n,i){var r=t.y[i];e.push({x:n,y:r})}),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;if("hollow"===t)return{lineWidth:n+1};return{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});a.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin.path,a=i(t),o=l.parsePathString(n);return e.addShape("path",{attrs:r.mix(a,{path:o})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},i(t))}}),a.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin.path,i=function(t){var e=s.shape.hollowVenn,n=r.mix({},e,t.style);return o.addStrokeAttrs(n,t),n}(t),a=l.parsePathString(n);return e.addShape("path",{attrs:r.mix(i,{path:a})})},getMarkerCfg:function(t){return r.mix({symbol:"circle",radius:4},i(t))}}),t.exports=u},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(20),o=n(0),s=n(355);n(458);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,o.assign(r(r(n)),s),n}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);n.size=this.getNormalizedSize(e);var i=this.get("_sizeField");return n._size=e._origin[i],n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n._initAttrs=function(){var e=this.get("attrOptions"),n=e.size?e.size.field:this.get("_sizeField")?this.get("_sizeField"):"size";this.set("_sizeField",n),delete e.size,t.prototype._initAttrs.call(this)},e}(a),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(l);l.Dodge=u,a.Violin=l,a.ViolinDodge=u,t.exports=l},function(t,e,n){function i(t){var e=c.shape.venn,n=s.mix({},e,t.style);return u.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function r(t){var e=c.shape.hollowVenn,n=s.mix({},e,t.style);return u.addStrokeAttrs(n,t),n}function a(t){for(var e=[],n=0;n=0;r--)for(var a=e.getFacetsByLevel(t,r),o=0;op.x||a.yf.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5})).initTransform(),e.container=c,"POLYGON"===i&&(e.polygonPath="M "+a.x+" "+a.y)}}}},n.process=function(t){var e=this,n=e.brushing,i=e.dragging,a=e.type,o=e.plot,s=e.startPoint,l=e.xScale,u=e.yScale,c=e.canvas;if(n||i){var h={x:t.offsetX,y:t.offsetY},f=c.get("canvasDOM");if(n){f.style.cursor="crosshair";var p=o.start,g=o.end,d=e.polygonPath,v=e.brushShape,y=e.container;e.plot&&e.inPlot&&(h=e._limitCoordScope(h));var x,m,_,b;"Y"===a?(x=p.x,m=h.y>=s.y?s.y:h.y,_=Math.abs(p.x-g.x),b=Math.abs(s.y-h.y)):"X"===a?(x=h.x>=s.x?s.x:h.x,m=g.y,_=Math.abs(s.x-h.x),b=Math.abs(g.y-p.y)):"XY"===a?(h.x>=s.x?(x=s.x,m=h.y>=s.y?s.y:h.y):(x=h.x,m=h.y>=s.y?s.y:h.y),_=Math.abs(s.x-h.x),b=Math.abs(s.y-h.y)):"POLYGON"===a&&(d+="L "+h.x+" "+h.y,e.polygonPath=d,v?!v.get("destroyed")&&v.attr(r.mix({},v._attrs,{path:d})):v=y.addShape("path",{attrs:r.mix(e.style,{path:d})})),"POLYGON"!==a&&(v?!v.get("destroyed")&&v.attr(r.mix({},v._attrs,{x:x,y:m,width:_,height:b})):v=y.addShape("rect",{attrs:r.mix(e.style,{x:x,y:m,width:_,height:b})})),e.brushShape=v}else if(i){f.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===a){var S=e.prePoint;e.selection.translate(h.x-S.x,h.y-S.y)}else e.dragoffX&&w.attr("x",h.x-e.dragoffX),e.dragoffY&&w.attr("y",h.y-e.dragoffY)}e.prePoint=h,c.draw();var M=e._getSelected(),C=M.data,A=M.shapes,k=M.xValues,P=M.yValues,I={data:C,shapes:A,x:h.x,y:h.y};l&&(I[l.field]=k),u&&(I[u.field]=P),e.onDragmove&&e.onDragmove(I),e.onBrushmove&&e.onBrushmove(I)}},n.end=function(t){var e=this,n=e.data,i=e.shapes,a=e.xValues,o=e.yValues,s=e.canvas,l=e.type,u=e.startPoint,c=e.chart,h=e.container,f=e.xScale,p=e.yScale,g=t.offsetX,d=t.offsetY;if(s.get("canvasDOM").style.cursor="default",Math.abs(u.x-g)<=1&&Math.abs(u.y-d)<=1)return e.brushing=!1,void(e.dragging=!1);var v={data:n,shapes:i,x:g,y:d};if(f&&(v[f.field]=a),p&&(v[p.field]=o),e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(v);else if(e.brushing){e.brushing=!1;var y=e.brushShape,x=e.polygonPath;"POLYGON"===l&&(x+="z",y&&!y.get("destroyed")&&y.attr(r.mix({},y._attrs,{path:x})),e.polygonPath=x,s.draw()),e.onBrushend?e.onBrushend(v):c&&e.filter&&(h.clear(),"X"===l?f&&c.filter(f.field,function(t){return a.indexOf(t)>-1}):"Y"===l?p&&c.filter(p.field,function(t){return o.indexOf(t)>-1}):(f&&c.filter(f.field,function(t){return a.indexOf(t)>-1}),p&&c.filter(p.field,function(t){return o.indexOf(t)>-1})),c.repaint())}},n.reset=function(){var t=this.chart,e=this.filter,n=this.brushShape,i=this.canvas;t&&e&&(t.get("options").filters={},t.repaint()),n&&(n.destroy(),i.draw())},n._limitCoordScope=function(t){var e=this.plot,n=e.start,i=e.end;return t.xi.x&&(t.x=i.x),t.yn.y&&(t.y=n.y),t},n._getSelected=function(){var t=this,e=t.chart,n=t.xScale,i=t.yScale,r=t.brushShape,a=t.canvas,o=a.get("pixelRatio"),s=[],l=[],u=[],c=[];if(e){e.get("geoms").map(function(t){return t.getShapes().map(function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map(function(e){if(r.isHit(e.x*o,e.y*o)){s.push(t);var a=e._origin;c.push(a),n&&l.push(a[n.field]),i&&u.push(a[i.field])}return e}),t}),t})}return t.shapes=s,t.xValues=l,t.yValues=u,t.data=c,a.draw(),{data:c,xValues:l,yValues:u,shapes:s}},e}(n(168));t.exports=s},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(0),a=n(168),o=n(467),s=n(375),l=n(376),u=["X","Y","XY"],c="X",h=function(t){function e(e,n){var a,s=i(i(a=t.call(this,e,n)||this));s.type=s.type.toUpperCase(),s.chart=n,s.coord=n.get("coord");var h=s.data=n.get("data");o(n);var f=n.getYScales(),p=n.getXScale();f.push(p);var g=n.get("scaleController");return f.forEach(function(t){var e=t.field;s.limitRange[e]=l(h,t);var n=g.defs[e]||{};s.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear&&(s.stepByField[e]=(t.max-t.min)*s.stepRatio)}),-1===u.indexOf(s.type)&&(s.type=c),s._disableTooltip(),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{type:c,stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},n._disableTooltip=function(){var t=this.chart;t.get("tooltipController")&&(this._showTooltip=!0,t.tooltip(!1))},n._enableTooltip=function(t){var e=this.chart;this._showTooltip&&(e.tooltip(!0),e.showTooltip(t))},n._applyTranslate=function(t,e,n){void 0===e&&(e=0);t.isLinear?this._translateLinearScale(t,e,n):this._translateCatScale(t,e,n)},n._translateCatScale=function(t,e,n){var i=this.chart,a=t.type,o=t.field,l=t.values,u=t.ticks,c=s(i,o),h=this.limitRange[o],f=e/n,p=l.length,g=Math.max(1,Math.abs(parseInt(f*p))),d=h.indexOf(l[0]),v=h.indexOf(l[p-1]);if(e>0&&d>=0){for(var y=0;y0;y++)d-=1,v-=1;var x=h.slice(d,v+1),m=null;if("timeCat"===a){for(var _=u.length>2?u[1]-u[0]:864e5,b=u[0]-_;b>=x[0];b-=_)u.unshift(b);m=u}i.scale(o,r.mix({},c,{values:x,ticks:m}))}else if(e<0&&v<=h.length-1){for(var w=0;w2?u[1]-u[0]:864e5,A=u[u.length-1]+C;A<=S[S.length-1];A+=C)u.push(A);M=u}i.scale(o,r.mix({},c,{values:S,ticks:M}))}},n._translateLinearScale=function(t,e,n){var i=this.chart,a=this.limitRange,o=t.min,l=t.max,u=t.field;if(o!==a[u].min||l!==a[u].max){var c=e/n,h=l-o,f=s(i,u);i.scale(u,r.mix({},f,{nice:!1,min:o+c*h,max:l+c*h}))}},n.start=function(t){this.canvas.get("canvasDOM").style.cursor="pointer",this.isDragging=!0,this.previousPoint={x:t.x,y:t.y},this._disableTooltip()},n.process=function(t){var e=this;if(e.isDragging){var n=e.chart,i=e.type,r=e.canvas,a=e.coord,o=e.threshold;r.get("canvasDOM").style.cursor="move";var s=e.previousPoint,l=t,u=l.x-s.x,c=l.y-s.y,h=!1;if(Math.abs(u)>o&&i.indexOf("X")>-1){h=!0;var f=n.getXScale();e._applyTranslate(f,f.isLinear?-u:u,a.width)}if(Math.abs(c)>o&&i.indexOf("Y")>-1){h=!0;n.getYScales().forEach(function(t){e._applyTranslate(t,l.y-s.y,a.height)})}h&&(e.previousPoint=l,n.repaint())}},n.end=function(t){this.isDragging=!1;this.canvas.get("canvasDOM").style.cursor="default",this._enableTooltip(t)},n.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),i=t.getXScale();n.push(i),n.forEach(function(n){if(n.isLinear){var i=n.field;t.scale(i,e[i])}}),t.repaint(),this._disableTooltip()},e}(a);t.exports=h},function(t,e,n){var i=n(0),r=n(71),a=n(374);t.exports=function(t){t.on("beforeinitgeoms",function(){t.set("limitInPlot",!0);var e=t.get("data"),n=a(t);if(!n)return e;var o=t.get("geoms"),s=!1;i.each(o,function(t){if(-1!==["area","line","path"].indexOf(t.get("type")))return s=!0,!1});var l=[];if(i.each(n,function(t,e){!s&&t&&(t.values||t.min||t.max)&&l.push(e)}),0===l.length)return e;var u=[];i.each(e,function(t){var e=!0;i.each(l,function(a){var o=t[a];if(o){var s=n[a];if("timeCat"===s.type){var l=s.values;i.isNumber(l[0])&&(o=r.toTimeStamp(o))}(s.values&&-1===s.values.indexOf(o)||s.min&&os.max)&&(e=!1)}}),e&&u.push(t)}),t.set("filteredData",u)})}},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(0),a=n(168),o=n(469),s=n(376),l=function(t){function e(e,n){var a,o=i(i(a=t.call(this,e,n)||this));n.set("_limitRange",{});var s=o.getDefaultCfg();return n.set("_scrollBarCfg",r.deepMix({},s,e)),n.on("afterclear",function(){n.set("_limitRange",{})}),n.on("beforechangedata",function(){n.set("_limitRange",{})}),n.on("afterclearinner",function(){var t=n.get("_horizontalBar"),e=n.get("_verticalBar");t&&t.remove(!0),e&&e.remove(!0),n.set("_horizontalBar",null),n.set("_verticalBar",null)}),n.on("afterdrawgeoms",function(){o._renderScrollBars()}),n.get("_horizontalBar")||n.get("_verticalBar")||o._renderScrollBars(),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:"X",xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},n._renderScrollBars=function(){var t=this.chart,e=t.get("_scrollBarCfg");if(e){var n=t.get("data"),i=t.get("plotRange");i.width=Math.abs(i.br.x-i.bl.x),i.height=Math.abs(i.tl.y-i.bl.y);var r=t.get("backPlot"),a=t.get("canvas").get("height"),l=t.get("_limitRange"),u=e.type;if(u.indexOf("X")>-1){var c=e.xStyle,h=c.offsetX,f=c.offsetY,p=c.lineCap,g=c.backgroundColor,d=c.fillerColor,v=c.size,y=t.getXScale(),x=l[y.field];x||(x=s(n,y),l[y.field]=x);var m=o(y,x,y.type),_=t.get("_horizontalBar"),b=a-v/2+f;if(_){_.get("children")[1].attr({x1:Math.max(i.bl.x+i.width*m[0]+h,i.bl.x),x2:Math.min(i.bl.x+i.width*m[1]+h,i.br.x)})}else(_=r.addGroup({className:"horizontalBar"})).addShape("line",{attrs:{x1:i.bl.x+h,y1:b,x2:i.br.x+h,y2:b,lineWidth:v,stroke:g,lineCap:p}}),_.addShape("line",{attrs:{x1:Math.max(i.bl.x+i.width*m[0]+h,i.bl.x),y1:b,x2:Math.min(i.bl.x+i.width*m[1]+h,i.br.x),y2:b,lineWidth:v,stroke:d,lineCap:p}}),t.set("_horizontalBar",_)}if(u.indexOf("Y")>-1){var w=e.yStyle,S=w.offsetX,M=w.offsetY,C=w.lineCap,A=w.backgroundColor,k=w.fillerColor,P=w.size,I=t.getYScales()[0],T=l[I.field];T||(T=s(n,I),l[I.field]=T);var O=o(I,T,I.type),L=t.get("_verticalBar"),E=P/2+S;if(L){L.get("children")[1].attr({y1:Math.max(i.tl.y+i.height*O[0]+M,i.tl.y),y2:Math.min(i.tl.y+i.height*O[1]+M,i.bl.y)})}else(L=r.addGroup({className:"verticalBar"})).addShape("line",{attrs:{x1:E,y1:i.tl.y+M,x2:E,y2:i.bl.y+M,lineWidth:P,stroke:A,lineCap:C}}),L.addShape("line",{attrs:{x1:E,y1:Math.max(i.tl.y+i.height*O[0]+M,i.tl.y),x2:E,y2:Math.min(i.tl.y+i.height*O[1]+M,i.bl.y),lineWidth:P,stroke:k,lineCap:C}}),t.set("_verticalBar",L)}}},e}(a);t.exports=l},function(t,e){t.exports=function(t,e,n){if(!t)return[0,1];var i=0,r=0;if("linear"===n){var a=e.min,o=e.max-a;i=(t.min-a)/o,r=(t.max-a)/o}else{var s=e,l=t.values,u=s.indexOf(l[0]),c=s.indexOf(l[l.length-1]);i=u/(s.length-1),r=c/(s.length-1)}return[i,r]}},function(t,e,n){function i(t,e){var n={};for(var i in e)n[i]=t[i];return n}var r=n(0),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},n.start=function(t){var e,n=[];if(this.view.eachShape(function(i,r){r.isPointInPath(t.x,t.y)?e=r:n.push(r)}),e)if(e.get("_selected")){if(!this.cancelable)return;this.reset()}else{var a=this.selectStyle,o=this.unSelectStyle,s=i(e.attr(),e);e.set("_originAttrs",s),e.attr(a),r.each(n,function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),o&&(e=i(t.attr(),o),t.set("_originAttrs",e),t.attr(o))}),e.set("_selected",!0),this.selectedShape=e,this.canvas.draw()}else this.reset()},n.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},n.reset=function(){if(this.selectedShape){var t=this.view.get("geoms")[0].get("container").get("children")[0].get("children");r.each(t,function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)}),this.canvas.draw()}},e}(n(168));t.exports=a},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(472),a=n(147),o=n(0),s=n(17),l=n(7),u=n(168),c=n(375),h=n(374),f=s.Canvas,p=o.DomUtil,g=o.isNumber,d=function(t){function e(e,n){var r,a=i(i(r=t.call(this,e,n)||this));return a._initContainer(),a._initStyle(),a.render(),r}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",padding:l.plotCfg.padding,container:null,xAxis:null,yAxis:null,fillerStyle:{fill:"#BDCCED",fillOpacity:.3},backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",textStyle:{fill:"#545454"},handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},backgroundChart:{type:["area"],color:"#CCD6EC"}})},n._initContainer=function(){var t=this.container;if(!t)throw new Error("Please specify the container for the Slider!");o.isString(t)?this.domContainer=document.getElementById(t):this.domContainer=t},n.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=p.getWidth(t.domContainer),n=t.height;if(e!==t.domWidth){var i=t.canvas;i.changeSize(e,n),t.bgChart&&t.bgChart.changeWidth(e),i.clear(),t._initWidth(),t._initSlider(),t._bindEvent(),i.draw()}}},n._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.resizeTimer),this.resizeTimer=t},n._initStyle=function(){var t=this;t.handleStyle=o.mix({width:t.height,height:t.height},t.handleStyle),"auto"===t.width&&window.addEventListener("resize",o.wrapBehavior(t,"_initForceFitEvent"))},n._initWidth=function(){var t,e=this;t="auto"===e.width?p.getWidth(e.domContainer):e.width,e.domWidth=t;var n=o.toAllPadding(e.padding);"horizontal"===e.layout?(e.plotWidth=t-n[1]-n[3],e.plotPadding=n[3],e.plotHeight=e.height):"vertical"===e.layout&&(e.plotWidth=e.width,e.plotHeight=e.height-n[0]-n[2],e.plotPadding=n[0])},n._initCanvas=function(){var t=this.domWidth,e=this.height,n=new f({width:t,height:e,containerDOM:this.domContainer,capture:!1}),i=n.get("el");i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=3,this.canvas=n},n._initBackground=function(){var t,e=this,n=this.chart,i=n.getAllGeoms[0],r=e.data=e.data||n.get("data"),s=n.getXScale(),l=e.xAxis||s.field,u=e.yAxis||n.getYScales()[0].field,c=o.deepMix((t={},t[""+l]={range:[0,1]},t),h(n),e.scales);if(delete c[l].min,delete c[l].max,!r)throw new Error("Please specify the data!");if(!l)throw new Error("Please specify the xAxis!");if(!u)throw new Error("Please specify the yAxis!");var f=e.backgroundChart,p=f.type||i.get("type"),g=f.color||"grey";o.isArray(p)||(p=[p]);var d=o.toAllPadding(e.padding),v=new a({container:e.container,width:e.domWidth,height:e.height,padding:[0,d[1],0,d[3]],animate:!1});v.source(r),v.scale(c),v.axis(!1),v.tooltip(!1),v.legend(!1),o.each(p,function(t){v[t]().position(l+"*"+u).color(g).opacity(1)}),v.render(),e.bgChart=v,e.scale="horizontal"===e.layout?v.getXScale():v.getYScales()[0],"vertical"===e.layout&&v.destroy()},n._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,i=t._startValue,r=t._endValue,a=t.scale,o=0,s=1;g(e)?o=e:i&&(o=a.scale(a.translate(i))),g(n)?s=n:r&&(s=a.scale(a.translate(r)));var l=t.minSpan,u=t.maxSpan,c=0;if("time"===a.type||"timeCat"===a.type){var h=a.values,f=h[0];c=h[h.length-1]-f}else a.isLinear&&(c=a.max-a.min);c&&l&&(t.minRange=l/c*100),c&&u&&(t.maxRange=u/c*100);var p=[100*o,100*s];return t.range=p,p},n._getHandleValue=function(t){var e=this,n=e.range,i=n[0]/100,r=n[1]/100,a=e.scale;return"min"===t?e._startValue?e._startValue:a.invert(i):e._endValue?e._endValue:a.invert(r)},n._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),i=t.scale,a=e.addGroup(r,{middleAttr:t.fillerStyle,range:n,minRange:t.minRange,maxRange:t.maxRange,layout:t.layout,width:t.plotWidth,height:t.plotHeight,backgroundStyle:t.backgroundStyle,textStyle:t.textStyle,handleStyle:t.handleStyle,minText:i.getText(t._getHandleValue("min")),maxText:i.getText(t._getHandleValue("max"))});"horizontal"===t.layout?a.translate(t.plotPadding,0):"vertical"===t.layout&&a.translate(0,t.plotPadding),t.rangeElement=a},n._updateElement=function(t,e){var n=this,i=n.chart,r=n.scale,a=n.rangeElement,s=r.field,l=a.get("minTextElement"),u=a.get("maxTextElement"),h=r.invert(t),f=r.invert(e),p=r.getText(h),g=r.getText(f);l.attr("text",p),u.attr("text",g),n._startValue=p,n._endValue=g,n.onChange&&n.onChange({startText:p,endText:g,startValue:h,endValue:f,startRadio:t,endRadio:e}),i.scale(s,o.mix({},c(i,s),{nice:!1,min:h,max:f})),i.repaint()},n._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",function(e){var n=e.range,i=n[0]/100,r=n[1]/100;t._updateElement(i,r)})},n.clear=function(){var t=this;t.canvas.clear(),t.bgChart&&t.bgChart.destroy(),t.bgChart=null,t.scale=null,t.canvas.draw()},n.repaint=function(){this.clear(),this.render()},n.render=function(){var t=this;t._initWidth(),t._initCanvas(),t._initBackground(),t._initSlider(),t._bindEvent(),t.canvas.draw()},n.destroy=function(){var t=this;clearTimeout(t.resizeTimer);t.rangeElement.off("sliderchange"),t.bgChart&&t.bgChart.destroy(),t.canvas.destroy();for(var e=t.domContainer;e.hasChildNodes();)e.removeChild(e.firstChild);window.removeEventListener("resize",o.getWrapBehavior(t,"_initForceFitEvent")),t.destroyed=!0},e}(u);t.exports=d},function(t,e,n){var i=n(0),r=n(17).Group,a=i.DomUtil,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},n._initHandle=function(t){var e,n,r,a=this.addGroup(),o=this.get("layout"),s=this.get("handleStyle"),l=s.img,u=s.width,c=s.height;if("horizontal"===o){var h=s.width;r="ew-resize",n=a.addShape("Image",{attrs:{x:-h/2,y:0,width:h,height:c,img:l,cursor:r}}),e=a.addShape("Text",{attrs:i.mix({x:"min"===t?-(h/2+5):h/2+5,y:c/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:r},this.get("textStyle"))})}else r="ns-resize",n=a.addShape("Image",{attrs:{x:0,y:-c/2,width:u,height:c,img:l,cursor:r}}),e=a.addShape("Text",{attrs:i.mix({x:u/2,y:"min"===t?c/2+5:-(c/2+5),textAlign:"center",textBaseline:"middle",text:"min"===t?this.get("minText"):this.get("maxText"),cursor:r},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),a},n._initSliderBackground=function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:i.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},n._beforeRenderUI=function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),i=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",i),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),i.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),i.attr("cursor","move"),this.sort()},n._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},n._transform=function(t){var e=this.get("range"),n=e[0]/100,i=e[1]/100,r=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),l=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(l.attr({x:r*n,y:0,width:(i-n)*r,height:a}),o.translate(n*r,0),s.translate(i*r,0)):(l.attr({x:0,y:a*(1-i),width:r,height:(i-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-i)*a))},n._renderHorizontal=function(){this._transform("horizontal")},n._renderVertical=function(){this._transform("vertical")},n._bindUI=function(){this.on("mousedown",i.wrapBehavior(this,"_onMouseDown"))},n._isElement=function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){return n.get("children").indexOf(t)>-1}return!1},n._getRange=function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},n._limitRange=function(t,e,n){n[0]=this._getRange(t,n[0]),n[1]=n[0]+e,n[1]>100&&(n[1]=100,n[0]=n[1]-e)},n._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=i.upperFirst(t);var r,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),l=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],h=(c-o)/n*100*u,f=this.get("minRange"),p=this.get("maxRange");a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a)),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]),f&&a[1]-a[0]<=f&&this._limitRange(h,f,a),p&&a[1]-a[0]>=p&&this._limitRange(h,p,a))),this._isElement(s,"middleHandleElement")&&(r=l[1]-l[0],this._limitRange(h,r,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},n._onMouseDown=function(t){var e=t.currentTarget,n=t.event,i=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[i[0],i[1]]),this._bindCanvasEvents()},n._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=a.addEventListener(t,"mousemove",i.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=a.addEventListener(t,"mouseup",i.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=a.addEventListener(t,"mouseleave",i.wrapBehavior(this,"_onCanvasMouseUp"))},n._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},n._onCanvasMouseUp=function(){this._removeDocumentEvents()},n._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove(),this.onMouseLeaveListener.remove()},e}(r);t.exports=o},function(t,e,n){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var r=n(0),a=n(168),o=n(375),s=n(376),l=["X","Y","XY"],u="X",c=function(t){function e(e,n){var a,o=i(i(a=t.call(this,e,n)||this));o.chart=n,o.type=o.type.toUpperCase();var c=o.data=n.get("data"),h=n.getYScales(),f=n.getXScale();h.push(f);var p=n.get("scaleController");return h.forEach(function(t){var e=t.field,n=p.defs[e]||{};o.limitRange[e]=s(c,t),o.originScaleDefsByField[e]=r.mix(n,{nice:!!n.nice}),t.isLinear?o.stepByField[e]=(t.max-t.min)*o.stepRatio:o.stepByField[e]=o.catStep}),-1===l.indexOf(o.type)&&(o.type=u),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{processEvent:"mousewheel",type:u,stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},n._applyScale=function(t,e,n,i){void 0===n&&(n=0);var a=this,s=a.chart,l=a.stepByField;if(t.isLinear){var u=t.min,c=t.max,h=t.field,f=1-n,p=l[h]*e,g=u+p*n,d=c-p*f;d>g&&s.scale(h,{nice:!1,min:g,max:d})}else{var v=t.field,y=t.values,x=a.chart,m=x.get("coord"),_=o(x,v),b=a.limitRange[v],w=b.length,S=w/a.maxScale,M=w/a.minScale,C=y.length,A=m.invertPoint(i).x,k=C-e*this.catStep,P=parseInt(k*A),I=k+P;if(e>0&&C>=S){var T=P,O=I;I>C&&(O=C-1,T=C-k);var L=y.slice(T,O);x.scale(v,r.mix({},_,{values:L}))}else if(e<0&&C<=M){var E=b.indexOf(y[0]),D=b.indexOf(y[C-1]),F=Math.max(0,E-P),B=Math.min(D+I,w),R=b.slice(F,B);x.scale(v,r.mix({},_,{values:R}))}}},n.process=function(t){var e=this,n=e.chart,i=e.type,r=n.get("coord"),a=t.deltaY,o=r.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);if(i.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x,t),i.indexOf("Y")>-1){n.getYScales().forEach(function(n){e._applyScale(n,s,o.y,t)})}}n.repaint()},n.reset=function(){var t=this.view,e=this.originScaleDefsByField,n=t.getYScales(),i=t.getXScale();n.push(i),n.forEach(function(n){if(n.isLinear){var i=n.field;t.scale(i,e[i])}}),t.repaint()},e}(a);t.exports=c}])}); \ No newline at end of file diff --git a/static/javascript/jquery.bootstrap.modal.forms.js b/static/javascript/jquery.bootstrap.modal.forms.js new file mode 100644 index 0000000..fb345b7 --- /dev/null +++ b/static/javascript/jquery.bootstrap.modal.forms.js @@ -0,0 +1,89 @@ +/* +django-bootstrap-modal-forms +version : 1.3.1 +Copyright (c) 2018 Uros Trstenjak +https://github.com/trco/django-bootstrap-modal-forms +*/ + +(function ($) { + + // Open modal & load the form at formURL to the modalContent element + var newForm = function (modalID, modalContent, modalForm, formURL, errorClass, submitBtn) { + $(modalContent).load(formURL, function () { + $(modalID).modal("show"); + $(modalForm).attr("action", formURL); + // Add click listener to the submitBtn + ajaxSubmit(modalID, modalContent, modalForm, formURL, errorClass, submitBtn); + }); + }; + + // Add click listener to the submitBtn + var ajaxSubmit = function (modalID, modalContent, modalForm, formURL, errorClass, submitBtn) { + $(submitBtn).on("click", function () { + // Check if form.is_valid() via ajax request + var formIsValid = isFormValid(modalID, modalContent, modalForm, formURL, errorClass); + if (formIsValid) { + // Submit form if form.is_valid() + $(modalForm).submit(); + } else { + // Reinstantiate click listener on submitBtn + // Form is updated with errors in isFormValid(...) call + ajaxSubmit(modalID, modalContent, modalForm, formURL, errorClass, submitBtn); + } + }); + }; + + // Check if form.is_valid() + var isFormValid = function (modalID, modalContent, modalForm, formURL, errorClass) { + var formIsValid = true; + $.ajax({ + type: $(modalForm).attr("method"), + url: $(modalForm).attr("action"), + async: false, + // Serialize form data + data: new FormData($(modalForm)[0]), + cache: false, + contentType: false, + processData: false, + success: function (response) { + if ($(response).find(errorClass).length > 0) { + formIsValid = false; + // Update form with errors if not form.is_valid() + $(modalID).find(modalContent).html(response); + $(modalForm).attr("action", formURL); + } + } + }); + return formIsValid; + }; + + + $.fn.modalForm = function (options) { + // Default settings + var defaults = { + modalID: "#modal", + modalContent: ".modal-content", + modalForm: ".modal-content form", + formURL: null, + errorClass: ".invalid", + submitBtn: ".submit-btn" + }; + + // Extend default settings with provided options + var settings = $.extend(defaults, options); + + return this.each(function () { + // Add click listener to the element with attached modalForm + $(this).click(function (event) { + // Instantiate new modalForm in modal + newForm(settings.modalID, + settings.modalContent, + settings.modalForm, + settings.formURL, + settings.errorClass, + settings.submitBtn); + }); + }); + }; + +}(jQuery)); \ No newline at end of file diff --git a/static/javascript/laydate/laydate.js b/static/javascript/laydate/laydate.js new file mode 100644 index 0000000..83a12cb --- /dev/null +++ b/static/javascript/laydate/laydate.js @@ -0,0 +1,2 @@ +/*! laydate-v5.0.9 日期与时间组件 MIT License http://www.layui.com/laydate/ By 贤心 */ + ;!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期
      建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push(''+n.timeTips+""),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push(''+o+""))}),e.push('"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3)},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length必须遵循下述格式:
      "+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"
      已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html(''+n+""),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.nowl.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.yeard[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e=t&&e=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["

      "+r.time[e]+"

        "];w.each(new Array(t),function(t){i.push(""+w.digit(t,2)+"")}),a.innerHTML=i.join("")+"
      ",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/javascript/laydate/theme/default/font/iconfont.ttf b/static/javascript/laydate/theme/default/font/iconfont.ttf new file mode 100644 index 0000000..0bd6c4a Binary files /dev/null and b/static/javascript/laydate/theme/default/font/iconfont.ttf differ diff --git a/static/javascript/laydate/theme/default/font/iconfont.woff b/static/javascript/laydate/theme/default/font/iconfont.woff new file mode 100644 index 0000000..bfe5599 Binary files /dev/null and b/static/javascript/laydate/theme/default/font/iconfont.woff differ diff --git a/static/javascript/laydate/theme/default/laydate.css b/static/javascript/laydate/theme/default/laydate.css new file mode 100644 index 0000000..c7e1508 --- /dev/null +++ b/static/javascript/laydate/theme/default/laydate.css @@ -0,0 +1,2 @@ +/*! laydate-v5.0.9 日期与时间组件 MIT License http://www.layui.com/laydate/ By 贤心 */ +.laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px}@font-face{font-family:laydate-icon;src:url(font/iconfont.eot);src:url(font/iconfont.eot#iefix) format('embedded-opentype'),url(font/iconfont.svg#iconfont) format('svg'),url(font/iconfont.woff) format('woff'),url(font/iconfont.ttf) format('truetype')}.laydate-icon{font-family:laydate-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} \ No newline at end of file diff --git a/static/javascript/semantic.min.js b/static/javascript/semantic.min.js index 0c1b392..8f65953 100644 --- a/static/javascript/semantic.min.js +++ b/static/javascript/semantic.min.js @@ -8,4 +8,4 @@ * http://opensource.org/licenses/MIT * */ -!function(p,h,v,b){p.site=p.fn.site=function(e){var s,l,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,c=[].slice.call(arguments,1),u=p.isPlainObject(e)?p.extend(!0,{},p.site.settings,e):p.extend({},p.site.settings),a=u.namespace,d=u.error,r="module-"+a,f=p(v),m=this,g=f.data(r);return s={initialize:function(){s.instantiate()},instantiate:function(){s.verbose("Storing instance of site",s),g=s,f.data(r,s)},normalize:function(){s.fix.console(),s.fix.requestAnimationFrame()},fix:{console:function(){s.debug("Normalizing window.console"),console!==b&&console.log!==b||(s.verbose("Console not available, normalizing events"),s.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(s.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(s.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){s.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){s.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(s.debug("RequestAnimationFrame not available, normalizing event"),h.requestAnimationFrame=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return p.fn[e]!==b&&p.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||u.modules,p.each(e,function(e,t){s.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||u.modules,p.each(e,function(e,t){s.moduleExists(t)||n.push(t)}),n}},change:{setting:function(o,a,e,r){e="string"==typeof e?"all"===e?u.modules:[e]:e||u.modules,r=r===b||r,p.each(e,function(e,t){var n,i=!s.moduleExists(t)||(p.fn[t].settings.namespace||!1);s.moduleExists(t)&&(s.verbose("Changing default setting",o,a,t),p.fn[t].settings[o]=a,r&&i&&0<(n=p(":data(module-"+i+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",o,a)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||u.modules,o=o===b||o,p.each(e,function(e,t){var n;s.moduleExists(t)&&(s.verbose("Changing default setting",i,t),p.extend(!0,p.fn[t].settings,i),o&&a&&0<(n=p(":data(module-"+a+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){s.console(!0)},debug:function(e,t){e=e||u.modules,s.debug("Enabling debug for modules",e),s.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Enabling verbose debug for modules",e),s.change.setting("verbose",!0,e,t)}},disable:{console:function(){s.console(!1)},debug:function(e,t){e=e||u.modules,s.debug("Disabling debug for modules",e),s.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Disabling verbose debug for modules",e),s.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(g.cache.console===b)return void s.error(d.console);s.debug("Restoring console function"),h.console=g.cache.console}else s.debug("Disabling console function"),g.cache.console=h.console,h.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){s.verbose("Destroying previous site for",f),f.removeData(r)},cache:{},setting:function(e,t){if(p.isPlainObject(e))p.extend(!0,u,e);else{if(t===b)return u[e];u[e]=t}},internal:function(e,t){if(p.isPlainObject(e))p.extend(!0,s,e);else{if(t===b)return s[e];s[e]=t}},debug:function(){u.debug&&(u.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,u.name+":"),s.debug.apply(console,arguments)))},verbose:function(){u.verbose&&u.debug&&(u.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),s.verbose.apply(console,arguments)))},error:function(){s.error=Function.prototype.bind.call(console.error,console,u.name+":"),s.error.apply(console,arguments)},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:m,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=u.name+":",n=0;i=!1,clearTimeout(s.performance.timer),p.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0")},fields:function(e){var n=F();return F.each(e,function(e,t){n=n.add(h.get.field(t))}),n},validation:function(n){var i,o;return!!c&&(F.each(c,function(e,t){o=t.identifier||e,h.get.field(o)[0]==n[0]&&(t.identifier=o,i=t)}),i||!1)},value:function(e){var t=[];return t.push(e),h.get.values.call(v,t)[e]},values:function(e){var t=F.isArray(e)?h.get.fields(e):n,c={};return t.each(function(e,t){var n=F(t),i=(n.prop("type"),n.prop("name")),o=n.val(),a=n.is(f.checkbox),r=n.is(f.radio),s=-1!==i.indexOf("[]"),l=!!a&&n.is(":checked");i&&(s?(i=i.replace("[]",""),c[i]||(c[i]=[]),a?l?c[i].push(o||!0):c[i].push(!1):c[i].push(o)):r?c[i]!==D&&0!=c[i]||(c[i]=!!l&&(o||!0)):c[i]=a?!!l&&(o||!0):o)}),c}},has:{field:function(e){return h.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=h.escape.string(e))&&h.error(s.identifier,e),0"}),F(n+="")},prompt:function(e){return F("
      ").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(e===D||""===e||F.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==D&&e.length>=t},exactLength:function(e,t){return e!==D&&e.length==t},maxLength:function(e,t){return e!==D&&e.length<=t},match:function(e,t){var n;F(this);return 0=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(S,k,e,T){"use strict";k=void 0!==k&&k.Math==Math?k:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),S.fn.accordion=function(a){var v,r=S(this),b=(new Date).getTime(),y=[],x=a,C="string"==typeof x,w=[].slice.call(arguments,1);k.requestAnimationFrame||k.mozRequestAnimationFrame||k.webkitRequestAnimationFrame||k.msRequestAnimationFrame;return r.each(function(){var e,c,u=S.isPlainObject(a)?S.extend(!0,{},S.fn.accordion.settings,a):S.extend({},S.fn.accordion.settings),d=u.className,t=u.namespace,f=u.selector,s=u.error,n="."+t,i="module-"+t,o=r.selector||"",m=S(this),g=m.find(f.title),p=m.find(f.content),l=this,h=m.data(i);c={initialize:function(){c.debug("Initializing",m),c.bind.events(),u.observeChanges&&c.observeChanges(),c.instantiate()},instantiate:function(){h=c,m.data(i,c)},destroy:function(){c.debug("Destroying previous instance",m),m.off(n).removeData(i)},refresh:function(){g=m.find(f.title),p=m.find(f.content)},observeChanges:function(){"MutationObserver"in k&&((e=new MutationObserver(function(e){c.debug("DOM tree modified, updating selector cache"),c.refresh()})).observe(l,{childList:!0,subtree:!0}),c.debug("Setting up mutation observer",e))},bind:{events:function(){c.debug("Binding delegated events"),m.on(u.on+n,f.trigger,c.event.click)}},event:{click:function(){c.toggle.call(this)}},toggle:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating),o=n.hasClass(d.active),a=o&&!i,r=!o&&i;c.debug("Toggling visibility of content",t),a||r?u.collapsible?c.close.call(t):c.debug("Cannot close accordion content collapsing is disabled"):c.open.call(t)},open:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating);n.hasClass(d.active)||i?c.debug("Accordion already open, skipping",n):(c.debug("Opening accordion content",t),u.onOpening.call(n),u.onChanging.call(n),u.exclusive&&c.closeOthers.call(t),t.addClass(d.active),n.stop(!0,!0).addClass(d.animating),u.animateChildren&&(S.fn.transition!==T&&m.transition("is supported")?n.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):n.children().stop(!0,!0).animate({opacity:1},u.duration,c.resetOpacity)),n.slideDown(u.duration,u.easing,function(){n.removeClass(d.animating).addClass(d.active),c.reset.display.call(this),u.onOpen.call(this),u.onChange.call(this)}))},close:function(e){var t=e!==T?"number"==typeof e?g.eq(e):S(e).closest(f.title):S(this).closest(f.title),n=t.next(p),i=n.hasClass(d.animating),o=n.hasClass(d.active);!o&&!(!o&&i)||o&&i||(c.debug("Closing accordion content",n),u.onClosing.call(n),u.onChanging.call(n),t.removeClass(d.active),n.stop(!0,!0).addClass(d.animating),u.animateChildren&&(S.fn.transition!==T&&m.transition("is supported")?n.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:u.debug,verbose:u.verbose,duration:u.duration}):n.children().stop(!0,!0).animate({opacity:0},u.duration,c.resetOpacity)),n.slideUp(u.duration,u.easing,function(){n.removeClass(d.animating).removeClass(d.active),c.reset.display.call(this),u.onClose.call(this),u.onChange.call(this)}))},closeOthers:function(e){var t,n,i,o=e!==T?g.eq(e):S(this).closest(f.title),a=o.parents(f.content).prev(f.title),r=o.closest(f.accordion),s=f.title+"."+d.active+":visible",l=f.content+"."+d.active+":visible";i=u.closeNested?(t=r.find(s).not(a)).next(p):(t=r.find(s).not(a),n=r.find(l).find(s).not(a),(t=t.not(n)).next(p)),0 adjusting invoked element"),c=c.closest(o.checkbox),s.refresh())}},setup:function(){s.set.initialLoad(),s.is.indeterminate()?(s.debug("Initial value is indeterminate"),s.indeterminate()):s.is.checked()?(s.debug("Initial value is checked"),s.check()):(s.debug("Initial value is unchecked"),s.uncheck()),s.remove.initialLoad()},refresh:function(){u=c.children(o.label),d=c.children(o.input),f=d[0]},hide:{input:function(){s.verbose("Modifying z-index to be unselectable"),d.addClass(t.hidden)}},show:{input:function(){s.verbose("Modifying z-index to be selectable"),d.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in A&&((e=new MutationObserver(function(e){s.debug("DOM tree modified, updating selector cache"),s.refresh()})).observe(h,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=T(e);t=T.isFunction(s[t])?s[t]:s.toggle,0").insertAfter(d),s.debug("Creating label",u))}},has:{label:function(){return 0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return S("
      ").attr("class","ui dimmer")}}}}(jQuery,window,document),function(Y,Z,K,J){"use strict";Z=void 0!==Z&&Z.Math==Math?Z:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Y.fn.dropdown=function(M){var L,V=Y(this),N=Y(K),H=V.selector||"",U="ontouchstart"in K.documentElement,W=(new Date).getTime(),B=[],Q=M,X="string"==typeof Q,$=[].slice.call(arguments,1);return V.each(function(n){var e,t,i,o,a,r,s,g,p=Y.isPlainObject(M)?Y.extend(!0,{},Y.fn.dropdown.settings,M):Y.extend({},Y.fn.dropdown.settings),h=p.className,c=p.message,l=p.fields,v=p.keys,b=p.metadata,u=p.namespace,d=p.regExp,y=p.selector,f=p.error,m=p.templates,x="."+u,C="module-"+u,w=Y(this),S=Y(p.context),k=w.find(y.text),T=w.find(y.search),A=w.find(y.sizer),R=w.find(y.input),P=w.find(y.icon),E=0").html(o).attr("data-"+b.value,t).attr("data-"+b.text,t).addClass(h.addition).addClass(h.item),p.hideAdditions&&i.addClass(h.hidden),n=n===J?i:n.add(i),g.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=g.get.userValues();t&&(g.debug("Adding user labels",t),Y.each(t,function(e,t){g.verbose("Adding custom user value"),g.add.label(t,t)}))},menu:function(){F=Y("
      ").addClass(h.menu).appendTo(w)},sizer:function(){A=Y("").addClass(h.sizer).insertAfter(T)}},search:function(e){e=e!==J?e:g.get.query(),g.verbose("Searching for query",e),g.has.minCharacters(e)?g.filter(e):g.hide()},select:{firstUnfiltered:function(){g.verbose("Selecting first non-filtered element"),g.remove.selectedItem(),O.not(y.unselectable).not(y.addition+y.hidden).eq(0).addClass(h.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(y.item).not(y.unselectable).eq(0),n=e.prevAll(y.item).not(y.unselectable).eq(0);0").addClass(h.search).prop("autocomplete","off").insertBefore(k)),g.is.multiple()&&g.is.searchSelection()&&!g.has.sizer()&&g.create.sizer(),p.allowTab&&g.set.tabbable()},select:function(){var e=g.get.selectValues();g.debug("Dropdown initialized on a select",e),w.is("select")&&(R=w),0").attr("class",R.attr("class")).addClass(h.selection).addClass(h.dropdown).html(m.dropdown(e)).insertBefore(R),R.hasClass(h.multiple)&&!1===R.prop("multiple")&&(g.error(f.missingMultiple),R.prop("multiple",!0)),R.is("[multiple]")&&g.set.multiple(),R.prop("disabled")&&(g.debug("Disabling dropdown"),w.addClass(h.disabled)),R.removeAttr("class").detach().prependTo(w)),g.refresh()},menu:function(e){F.html(m.menu(e,l)),O=F.find(y.item)},reference:function(){g.debug("Dropdown behavior was called on select, replacing with closest dropdown"),w=w.parent(y.dropdown),I=w.data(C),z=w.get(0),g.refresh(),g.setup.returnedObject()},returnedObject:function(){var e=V.slice(0,n),t=V.slice(n+1);V=e.add(w).add(t)}},refresh:function(){g.refreshSelectors(),g.refreshData()},refreshItems:function(){O=F.find(y.item)},refreshSelectors:function(){g.verbose("Refreshing selector cache"),k=w.find(y.text),T=w.find(y.search),R=w.find(y.input),P=w.find(y.icon),E=0 modified, recreating menu");var n=!1;Y.each(e,function(e,t){if(Y(t.target).is("select")||Y(t.addedNodes).is("select"))return n=!0}),n&&(g.disconnect.selectObserver(),g.refresh(),g.setup.select(),g.set.selected(),g.observe.select())}},menu:{mutation:function(e){var t=e[0],n=t.addedNodes?Y(t.addedNodes[0]):Y(!1),i=t.removedNodes?Y(t.removedNodes[0]):Y(!1),o=n.add(i),a=o.is(y.addition)||0t.name?1:-1}),g.debug("Retrieved and sorted values from select",o)):g.debug("Retrieved values from select",o),o},activeItem:function(){return O.filter("."+h.active)},selectedItem:function(){var e=O.not(y.unselectable).filter("."+h.selected);return 0=p.maxSelections?(g.debug("Maximum selection count reached"),p.useLabels&&(O.addClass(h.filtered),g.add.message(c.maxSelections)),!0):(g.verbose("No longer at maximum selection count"),g.remove.message(),g.remove.filteredItem(),g.is.searchSelection()&&g.filterItems(),!1))}},restore:{defaults:function(){g.clear(),g.restore.defaultText(),g.restore.defaultValue()},defaultText:function(){var e=g.get.defaultText();e===g.get.placeholderText?(g.debug("Restoring default placeholder text",e),g.set.placeholderText(e)):(g.debug("Restoring default text",e),g.set.text(e))},placeholderText:function(){g.set.placeholderText()},defaultValue:function(){var e=g.get.defaultValue();e!==J&&(g.debug("Restoring default value",e),""!==e?(g.set.value(e),g.set.selected()):(g.remove.activeItem(),g.remove.selectedItem()))},labels:function(){p.allowAdditions&&(p.useLabels||(g.error(f.labels),p.useLabels=!0),g.debug("Restoring selected values"),g.create.userLabels()),g.check.maxSelections()},selected:function(){g.restore.values(),g.is.multiple()?(g.debug("Restoring previously selected values and labels"),g.restore.labels()):g.debug("Restoring previously selected values")},values:function(){g.set.initialLoad(),p.apiSettings&&p.saveRemoteData&&g.get.remoteValues()?g.restore.remoteValues():g.set.selected(),g.remove.initialLoad()},remoteValues:function(){var e=g.get.remoteValues();g.debug("Recreating selected from session data",e),e&&(g.is.single()?Y.each(e,function(e,t){g.set.text(t)}):Y.each(e,function(e,t){g.add.label(e,t)}))}},read:{remoteData:function(e){var t;if(Z.Storage!==J)return(t=sessionStorage.getItem(e))!==J&&t;g.error(f.noStorage)}},save:{defaults:function(){g.save.defaultText(),g.save.placeholderText(),g.save.defaultValue()},defaultValue:function(){var e=g.get.value();g.verbose("Saving default value as",e),w.data(b.defaultValue,e)},defaultText:function(){var e=g.get.text();g.verbose("Saving default text as",e),w.data(b.defaultText,e)},placeholderText:function(){var e;!1!==p.placeholder&&k.hasClass(h.placeholder)&&(e=g.get.text(),g.verbose("Saving placeholder text as",e),w.data(b.placeholderText,e))},remoteData:function(e,t){Z.Storage!==J?(g.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):g.error(f.noStorage)}},clear:function(){g.is.multiple()&&p.useLabels?g.remove.labels():(g.remove.activeItem(),g.remove.selectedItem()),g.set.placeholderText(),g.clearValue()},clearValue:function(){g.set.value("")},scrollPage:function(e,t){var n,i,o=t||g.get.selectedItem(),a=o.closest(y.menu),r=a.outerHeight(),s=a.scrollTop(),l=O.eq(0).outerHeight(),c=Math.floor(r/l),u=(a.prop("scrollHeight"),"up"==e?s-l*c:s+l*c),d=O.not(y.unselectable);i="up"==e?d.index(o)-c:d.index(o)+c,0<(n=("up"==e?0<=i:i").addClass(h.label).attr("data-"+b.value,a).html(m.label(a,t)),i=p.onLabelCreate.call(i,a,t),g.has.label(e)?g.debug("User selection already exists, skipping",a):(p.label.variation&&i.addClass(p.label.variation),!0===n?(g.debug("Animating in label",i),i.addClass(h.hidden).insertBefore(o).transition(p.label.transition,p.label.duration)):(g.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=F.children(y.message),n=p.templates.message(g.add.variables(e));0").html(n).addClass(h.message).appendTo(F)},optionValue:function(e){var t=g.escape.value(e);0").prop("value",t).addClass(h.addition).html(e).appendTo(R),g.verbose("Adding user addition as an