(window.webpackJsonp=window.webpackJsonp||[]).push([[171],{32:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"f",(function(){return a})),i.d(e,"b",(function(){return l})),i.d(e,"e",(function(){return u}));var s=i(11),c=i(3);class n{constructor(t={},e={}){this.explicit=t,this.implicit=e}clone(){return new n(Object(c.f)(this.explicit),Object(c.f)(this.implicit))}combine(){return Object.assign(Object.assign({},this.explicit),this.implicit)}get(t){return Object(c.k)(this.explicit[t],this.implicit[t])}getWithExplicit(t){return void 0!==this.explicit[t]?{explicit:!0,value:this.explicit[t]}:void 0!==this.implicit[t]?{explicit:!1,value:this.implicit[t]}:{explicit:!1,value:void 0}}setWithExplicit(t,{value:e,explicit:i}){void 0!==e&&this.set(t,e,i)}set(t,e,i){return delete this[i?"implicit":"explicit"][t],this[i?"explicit":"implicit"][t]=e,this}copyKeyFromSplit(t,{explicit:e,implicit:i}){void 0!==e[t]?this.set(t,e[t],!0):void 0!==i[t]&&this.set(t,i[t],!1)}copyKeyFromObject(t,e){void 0!==e[t]&&this.set(t,e[t],!0)}copyAll(t){for(const e of Object(c.u)(t.combine())){const i=t.getWithExplicit(e);this.setWithExplicit(e,i)}}}function r(t){return{explicit:!0,value:t}}function o(t){return{explicit:!1,value:t}}function a(t){return(e,i,s,c)=>{const n=t(e.value,i.value);return n>0?e:n<0?i:l(e,i,s,c)}}function l(t,e,i,c){return t.explicit&&e.explicit&&s.e(s.b.mergeConflictingProperty(i,c,t.value,e.value)),t}function u(t,e,i,s,n=l){return void 0===t||void 0===t.value?e:t.explicit&&!e.explicit?t:e.explicit&&!t.explicit?e:Object(c.d)(t.value,e.value)?t:n(t,e,i,s)}},518:function(t,e,i){"use strict";i.d(e,"a",(function(){return D}));var s=i(1),c=i(89),n=i(6),r=i(5),o=i(30),a=i(43),l=i(58),u=i(18),h=i(78),p=i(82),d=i(499),b=i(3),j=i(243),O=i(537),f=i(14),m=i(195),g=i(245),v=i(956),x=i(246),k=i(619),S=i(978),y=i(29),w=i(106),A=i(152);class D extends y.b{constructor(t,e,i,s={},c){var n;super(t,"unit",e,i,c,void 0,Object(p.c)(t)?t.view:void 0),this.specifiedScales={},this.specifiedAxes={},this.specifiedLegends={},this.specifiedProjection={},this.selection=[],this.children=[];const r=Object(u.z)(t.mark)?Object.assign({},t.mark):{type:t.mark},l=r.type;void 0===r.filled&&(r.filled=Object(k.a)(r,c,{graticule:t.data&&Object(o.c)(t.data)}));const b=this.encoding=Object(a.e)(t.encoding||{},l,r.filled,c);this.markDef=Object(k.b)(r,b,c),this.size=Object(v.a)({encoding:b,size:Object(p.c)(t)?Object.assign(Object.assign(Object.assign({},s),t.width?{width:t.width}:{}),t.height?{height:t.height}:{}):s}),this.stack=Object(d.a)(l,b),this.specifiedScales=this.initScales(l,b),this.specifiedAxes=this.initAxes(b),this.specifiedLegends=this.initLegends(b),this.specifiedProjection=t.projection,this.selection=(null!==(n=t.params)&&void 0!==n?n:[]).filter(t=>Object(h.e)(t))}get hasProjection(){const{encoding:t}=this,e=this.mark===u.g,i=t&&n.k.some(e=>Object(r.v)(t[e]));return e||i}scaleDomain(t){const e=this.specifiedScales[t];return e?e.domain:void 0}axis(t){return this.specifiedAxes[t]}legend(t){return this.specifiedLegends[t]}initScales(t,e){return n.C.reduce((t,i)=>{var s;const c=Object(r.g)(e[i]);return c&&(t[i]=this.initScale(null!==(s=c.scale)&&void 0!==s?s:{})),t},{})}initScale(t){const{domain:e,range:i}=t,c=Object(l.b)(t);return Object(s.B)(e)&&(c.domain=e.map(f.n)),Object(s.B)(i)&&(c.range=i.map(f.n)),c}initAxes(t){return n.x.reduce((e,i)=>{const s=t[i];if(Object(r.v)(s)||i===n.P&&Object(r.v)(t.x2)||i===n.R&&Object(r.v)(t.y2)){const t=Object(r.v)(s)?s.axis:void 0;e[i]=t?this.initAxis(Object.assign({},t)):t}return e},{})}initAxis(t){const e=Object(b.u)(t),i={};for(const s of e){const e=t[s];i[s]=Object(c.g)(e)?Object(f.m)(e):Object(f.n)(e)}return i}initLegends(t){return n.s.reduce((e,i)=>{const s=Object(r.g)(t[i]);if(s&&Object(n.kb)(i)){const t=s.legend;e[i]=t?Object(l.b)(t):t}return e},{})}parseData(){this.component.data=Object(m.b)(this)}parseLayoutSize(){Object(x.d)(this)}parseSelections(){this.component.selection=Object(A.d)(this,this.selection)}parseMarkGroup(){this.component.mark=Object(S.a)(this)}parseAxesAndHeaders(){this.component.axes=Object(O.b)(this)}assembleSelectionTopLevelSignals(t){return Object(w.e)(this,t)}assembleSignals(){return[...Object(j.c)(this),...Object(w.h)(this,[])]}assembleSelectionData(t){return Object(w.f)(this,t)}assembleLayout(){return null}assembleLayoutSignals(){return Object(g.a)(this)}assembleMarks(){var t;let e=null!==(t=this.component.mark)&&void 0!==t?t:[];return this.parent&&Object(y.e)(this.parent)||(e=Object(w.g)(this,e)),e.map(this.correctDataNames)}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(t){return a.a(this.encoding,t)}fieldDef(t){const e=this.encoding[t];return Object(r.f)(e)}typedFieldDef(t){const e=this.fieldDef(t);return Object(r.C)(e)?e:null}}}}]);