(function(){"use strict";function _typeof(t){return(_typeof="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 _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}var HtmlTag=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,t),this.a=e,this.e=this.n=null}return _createClass(t,[{key:"m",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=element(e.nodeName),this.t=e,this.h(t)),this.i(n)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;e6&&void 0!==arguments[6]?arguments[6]:[-1],s=current_component;set_current_component(t);var c=e.props||{},u=t.$$={fragment:null,ctx:null,props:i,update:noop,not_equal:o,bound:blank_object(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:blank_object(),dirty:a},l=!1;if(u.ctx=n?n(t,c,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(u.bound[e]&&u.bound[e](r),l&&make_dirty(t,e)),n})):[],u.update(),l=!0,run_all(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var p=children(e.target);u.fragment&&u.fragment.l(p),p.forEach(detach)}else u.fragment&&u.fragment.c();e.intro&&transition_in(t.$$.fragment),mount_component(t,e.target,e.anchor),flush()}set_current_component(s)}var SvelteComponent=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"$destroy",value:function(){destroy_component(this,1),this.$destroy=noop}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(){}}]),t}(),TAGS=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,COMMENTS_AND_PHP_TAGS=/|<\?(?:php)?[\s\S]*?\?>/gi,defaultAllowed="

";function purifyHTML(t,e){if(null===t)return null;if(void 0!==t){if((t=String(t)).indexOf("<")<0||t.indexOf(">")<0)return t;if(t=stripTags(t,e),"undefined"==typeof document)return t;var n=document.createElement("div");n.innerHTML=t;for(var r=n.querySelectorAll("*"),o=0;o/g)||[]).join("");for(var n=t,r=t;;)if(r=(n=r).replace(COMMENTS_AND_PHP_TAGS,"").replace(TAGS,(function(t,n){return e.indexOf("<"+n.toLowerCase()+">")>-1?t:""})),n===r)return r}function clean(t){return purifyHTML(t,"


")}function create_if_block_1(t){var e,n=clean(t[0].prepend)+"";return{c:function(){e=element("span"),this.h()},l:function(t){children(e=claim_element(t,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","prepend")},m:function(t,r){insert(t,e,r),e.innerHTML=n},p:function(t,r){1&r&&n!==(n=clean(t[0].prepend)+"")&&(e.innerHTML=n)},d:function(t){t&&detach(e)}}}function create_if_block(t){var e,n=clean(t[0].append)+"";return{c:function(){e=element("span"),this.h()},l:function(t){children(e=claim_element(t,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","append")},m:function(t,r){insert(t,e,r),e.innerHTML=n},p:function(t,r){1&r&&n!==(n=clean(t[0].append)+"")&&(e.innerHTML=n)},d:function(t){t&&detach(e)}}}function create_fragment(t){var e,n,r,o,i,a,s=t[0].prepend&&create_if_block_1(t),c=t[0].component;function u(t){return{props:{props:t[0].props}}}c&&(r=new c(u(t)));var l=t[0].append&&create_if_block(t);return{c:function(){s&&s.c(),e=space(),n=element("span"),r&&create_component(r.$$.fragment),o=space(),l&&l.c(),i=empty(),this.h()},l:function(t){s&&s.l(t),e=claim_space(t);var a=children(n=claim_element(t,"SPAN",{class:!0}));r&&claim_component(r.$$.fragment,a),a.forEach(detach),o=claim_space(t),l&&l.l(t),i=empty(),this.h()},h:function(){attr(n,"class","block-inner")},m:function(t,c){s&&s.m(t,c),insert(t,e,c),insert(t,n,c),r&&mount_component(r,n,null),insert(t,o,c),l&&l.m(t,c),insert(t,i,c),a=!0},p:function(t,o){var a=_slicedToArray(o,1)[0];t[0].prepend?s?s.p(t,a):((s=create_if_block_1(t)).c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null);var p={};if(1&a&&(p.props=t[0].props),c!==(c=t[0].component)){if(r){group_outros();var f=r;transition_out(f.$$.fragment,1,0,(function(){destroy_component(f,1)})),check_outros()}c?(create_component((r=new c(u(t))).$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,n,null)):r=null}else c&&r.$set(p);t[0].append?l?l.p(t,a):((l=create_if_block(t)).c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i:function(t){a||(r&&transition_in(r.$$.fragment,t),a=!0)},o:function(t){r&&transition_out(r.$$.fragment,t),a=!1},d:function(t){s&&s.d(t),t&&detach(e),t&&detach(n),r&&destroy_component(r),t&&detach(o),l&&l.d(t),t&&detach(i)}}}function instance(t,e,n){var r=e.block;return t.$set=function(t){"block"in t&&n(0,r=t.block)},[r]}var Block=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance,create_fragment,safe_not_equal,{block:0}),r}return n}(SvelteComponent);function get_each_context(t,e,n){var r=t.slice();return r[3]=e[n],r}function create_if_block$1(t){for(var e,n,r=t[2],o=[],i=0;i .dw-chart-menu a{padding:10px;display:block;color:initial;border-bottom:1px solid #ccc}.menu-content > .dw-chart-menu a:hover{background:rgba(0, 0, 0, 0.05)}.menu-content > .dw-chart-menu .block:last-child a{border-bottom:none}",append(document.head,t)}function create_if_block$2(t){var e,n,r,o,i,a,s;function c(t,e){return t[3].icon?create_if_block_1$2:create_else_block$1}var u=c(t),l=u(t);return o=new BlocksRegion({props:{id:t[0],name:t[1],blocks:t[2]}}),{c:function(){e=element("div"),l.c(),n=space(),r=element("div"),create_component(o.$$.fragment),this.h()},l:function(t){var i=children(e=claim_element(t,"DIV",{class:!0}));l.l(i),i.forEach(detach),n=claim_space(t);var a=children(r=claim_element(t,"DIV",{class:!0}));claim_component(o.$$.fragment,a),a.forEach(detach),this.h()},h:function(){attr(e,"class","menu container svelte-1lt126s"),toggle_class(e,"ha-menu",!t[3].icon),attr(r,"class","menu-content container svelte-1lt126s"),toggle_class(r,"hidden",!t[4])},m:function(c,u){insert(c,e,u),l.m(e,null),insert(c,n,u),insert(c,r,u),mount_component(o,r,null),i=!0,a||(s=[listen(e,"click",stop_propagation(t[5])),listen(r,"click",stop_propagation(t[7]))],a=!0)},p:function(t,n){u===(u=c(t))&&l?l.p(t,n):(l.d(1),(l=u(t))&&(l.c(),l.m(e,null))),8&n&&toggle_class(e,"ha-menu",!t[3].icon);var i={};1&n&&(i.id=t[0]),2&n&&(i.name=t[1]),4&n&&(i.blocks=t[2]),o.$set(i),16&n&&toggle_class(r,"hidden",!t[4])},i:function(t){i||(transition_in(o.$$.fragment,t),i=!0)},o:function(t){transition_out(o.$$.fragment,t),i=!1},d:function(t){t&&detach(e),l.d(),t&&detach(n),t&&detach(r),destroy_component(o),a=!1,run_all(s)}}}function create_else_block$1(t){var e;return{c:function(){e=element("div"),this.h()},l:function(t){children(e=claim_element(t,"DIV",{class:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","svelte-1lt126s")},m:function(t,n){insert(t,e,n)},p:noop,d:function(t){t&&detach(e)}}}function create_if_block_1$2(t){var e,n=t[3].icon+"";return{c:function(){this.h()},l:function(t){this.h()},h:function(){e=new HtmlTag(null)},m:function(t,r){e.m(n,t,r)},p:function(t,r){8&r&&n!==(n=t[3].icon+"")&&e.p(n)},d:function(t){t&&e.d()}}}function create_fragment$2(t){var e,n,r,o,i=t[2].length&&create_if_block$2(t);return{c:function(){i&&i.c(),e=empty()},l:function(t){i&&i.l(t),e=empty()},m:function(a,s){i&&i.m(a,s),insert(a,e,s),n=!0,r||(o=listen(window,"click",t[6]),r=!0)},p:function(t,n){var r=_slicedToArray(n,1)[0];t[2].length?i?(i.p(t,r),4&r&&transition_in(i,1)):((i=create_if_block$2(t)).c(),transition_in(i,1),i.m(e.parentNode,e)):i&&(group_outros(),transition_out(i,1,1,(function(){i=null})),check_outros())},i:function(t){n||(transition_in(i),n=!0)},o:function(t){transition_out(i),n=!1},d:function(t){i&&i.d(t),t&&detach(e),r=!1,o()}}}function instance$2(t,e,n){var r=e.id,o=e.name,i=e.blocks,a=e.props,s=!1;return t.$set=function(t){"id"in t&&n(0,r=t.id),"name"in t&&n(1,o=t.name),"blocks"in t&&n(2,i=t.blocks),"props"in t&&n(3,a=t.props)},[r,o,i,a,s,function(){n(4,s=!s)},function(){n(4,s=!1)},function(e){bubble(t,e)}]}var Menu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),r=e.call(this),document.getElementById("svelte-1lt126s-style")||add_css(),init(_assertThisInitialized(r),t,instance$2,create_fragment$2,safe_not_equal,{id:0,name:1,blocks:2,props:3}),r}return n}(SvelteComponent);function create_fragment$3(t){var e;return{c:function(){this.h()},l:function(t){this.h()},h:function(){e=new HtmlTag(null)},m:function(n,r){e.m(t[0],n,r)},p:function(t,n){1&_slicedToArray(n,1)[0]&&e.p(t[0])},i:noop,o:noop,d:function(t){t&&e.d()}}}function instance$3(t,e,n){var r,o,i=e.props,a=i.purifyHtml;return t.$set=function(t){"props"in t&&n(1,i=t.props)},t.$$.update=function(){2&t.$$.dirty&&n(2,r=i.chart),4&t.$$.dirty&&n(0,o=a(r.title))},[o,i]}var Headline=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$3,create_fragment$3,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_fragment$4(t){var e;return{c:function(){this.h()},l:function(t){this.h()},h:function(){e=new HtmlTag(null)},m:function(n,r){e.m(t[0],n,r)},p:function(t,n){1&_slicedToArray(n,1)[0]&&e.p(t[0])},i:noop,o:noop,d:function(t){t&&e.d()}}}var allowedTags="


";function instance$4(t,e,n){var r,o,i=e.props,a=i,s=a.get,c=a.purifyHtml;return t.$set=function(t){"props"in t&&n(1,i=t.props)},t.$$.update=function(){2&t.$$.dirty&&n(2,r=i.chart),4&t.$$.dirty&&n(0,o=c(s(r,"metadata.describe.intro"),allowedTags))},[o,i]}var Description=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$4,create_fragment$4,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_if_block$3(t){var e,n,r,o,i,a=t[3](t[0].sourceCaption)+"";function s(t,e){return t[2]?create_if_block_1$3:create_else_block$2}var c=s(t),u=c(t);return{c:function(){e=element("span"),n=text(a),r=text(":"),o=space(),u.c(),i=empty(),this.h()},l:function(t){var s=children(e=claim_element(t,"SPAN",{class:!0}));n=claim_text(s,a),r=claim_text(s,":"),s.forEach(detach),o=claim_space(t),u.l(t),i=empty(),this.h()},h:function(){attr(e,"class","source-caption")},m:function(t,a){insert(t,e,a),append(e,n),append(e,r),insert(t,o,a),u.m(t,a),insert(t,i,a)},p:function(t,e){1&e&&a!==(a=t[3](t[0].sourceCaption)+"")&&set_data(n,a),c===(c=s(t))&&u?u.p(t,e):(u.d(1),(u=c(t))&&(u.c(),u.m(i.parentNode,i)))},d:function(t){t&&detach(e),t&&detach(o),u.d(t),t&&detach(i)}}}function create_else_block$2(t){var e;return{c:function(){e=element("span"),this.h()},l:function(t){children(e=claim_element(t,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","source")},m:function(n,r){insert(n,e,r),e.innerHTML=t[1]},p:function(t,n){2&n&&(e.innerHTML=t[1])},d:function(t){t&&detach(e)}}}function create_if_block_1$3(t){var e;return{c:function(){e=element("a"),this.h()},l:function(t){children(e=claim_element(t,"A",{class:!0,target:!0,rel:!0,href:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","source"),attr(e,"target","_blank"),attr(e,"rel","noopener noreferrer"),attr(e,"href",t[2])},m:function(n,r){insert(n,e,r),e.innerHTML=t[1]},p:function(t,n){2&n&&(e.innerHTML=t[1]),4&n&&attr(e,"href",t[2])},d:function(t){t&&detach(e)}}}function create_fragment$5(t){var e,n=t[1]&&create_if_block$3(t);return{c:function(){n&&n.c(),e=empty()},l:function(t){n&&n.l(t),e=empty()},m:function(t,r){n&&n.m(t,r),insert(t,e,r)},p:function(t,r){var o=_slicedToArray(r,1)[0];t[1]?n?n.p(t,o):((n=create_if_block$3(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:noop,o:noop,d:function(t){n&&n.d(t),t&&detach(e)}}}function instance$5(t,e,n){var r,o,i,a,s,c=e.props,u=c,l=u.__,p=u.get,f=u.purifyHtml;return t.$set=function(t){"props"in t&&n(4,c=t.props)},t.$$.update=function(){var e;16&t.$$.dirty&&n(5,(r=(e=c).chart,o=e.theme,e),r,(n(6,o),n(4,c)));64&t.$$.dirty&&n(0,i=p(o,"data.options.footer")),32&t.$$.dirty&&n(1,a=f(p(r,"metadata.describe.source-name"))),32&t.$$.dirty&&n(2,s=p(r,"metadata.describe.source-url"))},[i,a,s,l,c]}var Source=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$5,create_fragment$5,safe_not_equal,{props:4}),r}return n}(SvelteComponent);function create_if_block$4(t){var e,n=t[4](t[3])+"";return{c:function(){this.h()},l:function(t){this.h()},h:function(){e=new HtmlTag(null)},m:function(t,r){e.m(n,t,r)},p:function(t,r){8&r&&n!==(n=t[4](t[3])+"")&&e.p(n)},d:function(t){t&&e.d()}}}function create_fragment$6(t){var e,n,r,o,i,a,s=t[5](t[1])+"",c=t[0].basedOnByline&&create_if_block$4(t);return{c:function(){e=element("span"),n=text(s),r=space(),o=text(t[2]),i=space(),c&&c.c(),a=empty(),this.h()},l:function(u){var l=children(e=claim_element(u,"SPAN",{class:!0}));n=claim_text(l,s),l.forEach(detach),r=claim_space(u),o=claim_text(u,t[2]),i=claim_space(u),c&&c.l(u),a=empty(),this.h()},h:function(){attr(e,"class","byline-caption")},m:function(t,s){insert(t,e,s),append(e,n),insert(t,r,s),insert(t,o,s),insert(t,i,s),c&&c.m(t,s),insert(t,a,s)},p:function(t,e){var r=_slicedToArray(e,1)[0];2&r&&s!==(s=t[5](t[1])+"")&&set_data(n,s),4&r&&set_data(o,t[2]),t[0].basedOnByline?c?c.p(t,r):((c=create_if_block$4(t)).c(),c.m(a.parentNode,a)):c&&(c.d(1),c=null)},i:noop,o:noop,d:function(t){t&&detach(e),t&&detach(r),t&&detach(o),t&&detach(i),c&&c.d(t),t&&detach(a)}}}function instance$6(t,e,n){var r,o,i,a,s,c,u,l,p=e.props,f=p,h=f.get,d=f.purifyHtml,m=f.__;return t.$set=function(t){"props"in t&&n(6,p=t.props)},t.$$.update=function(){64&t.$$.dirty&&n(0,r=p.chart),64&t.$$.dirty&&n(7,o=p.theme),64&t.$$.dirty&&n(8,i=p.caption),384&t.$$.dirty&&n(1,a="map"===i?h(o,"data.options.footer.mapCaption","Map:"):"table"===i?h(o,"data.options.footer.tableCaption","Table:"):h(o,"data.options.footer.chartCaption","Chart:")),1&t.$$.dirty&&n(2,s=h(r,"metadata.describe.byline",!1)),128&t.$$.dirty&&n(9,c=h(o,"data.options.footer.forkCaption","footer / based-on")),5&t.$$.dirty&&n(10,u=r.basedOnByline&&s),1537&t.$$.dirty&&n(3,l=(u?"(":"")+m(c)+" "+d(r.basedOnByline)+(u?")":""))},[r,a,s,l,d,m,p]}var Byline=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$6,create_fragment$6,safe_not_equal,{props:6}),r}return n}(SvelteComponent);function create_fragment$7(t){var e,n=t[2](t[1](t[0],"metadata.annotate.notes"))+"";return{c:function(){this.h()},l:function(t){this.h()},h:function(){e=new HtmlTag(null)},m:function(t,r){e.m(n,t,r)},p:function(t,r){1&_slicedToArray(r,1)[0]&&n!==(n=t[2](t[1](t[0],"metadata.annotate.notes"))+"")&&e.p(n)},i:noop,o:noop,d:function(t){t&&e.d()}}}function instance$7(t,e,n){var r,o=e.props,i=o,a=i.get,s=i.purifyHtml;return t.$set=function(t){"props"in t&&n(3,o=t.props)},t.$$.update=function(){8&t.$$.dirty&&n(0,r=o.chart)},[r,a,s,o]}var Notes=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$7,create_fragment$7,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_fragment$8(t){var e,n,r,o,i,a=t[3](t[1].caption)+"";return{c:function(){e=element("a"),n=text(a),this.h()},l:function(t){var r=children(e=claim_element(t,"A",{class:!0,"aria-label":!0,target:!0,href:!0}));n=claim_text(r,a),r.forEach(detach),this.h()},h:function(){attr(e,"class","dw-data-link"),attr(e,"aria-label",r=t[3](t[1].caption)+": "+t[4](t[0].title,"")),attr(e,"target",o=t[2]?"_blank":"_self"),attr(e,"href",i=t[2]||"data")},m:function(t,r){insert(t,e,r),append(e,n)},p:function(t,s){var c=_slicedToArray(s,1)[0];2&c&&a!==(a=t[3](t[1].caption)+"")&&set_data(n,a),3&c&&r!==(r=t[3](t[1].caption)+": "+t[4](t[0].title,""))&&attr(e,"aria-label",r),4&c&&o!==(o=t[2]?"_blank":"_self")&&attr(e,"target",o),4&c&&i!==(i=t[2]||"data")&&attr(e,"href",i)},i:noop,o:noop,d:function(t){t&&detach(e)}}}function instance$8(t,e,n){var r,o,i,a,s=e.props,c=s,u=c.get,l=c.__,p=c.purifyHtml;return t.$set=function(t){"props"in t&&n(5,s=t.props)},t.$$.update=function(){var e;32&t.$$.dirty&&n(0,(r=(e=s).chart,o=e.theme,e),r,(n(6,o),n(5,s)));64&t.$$.dirty&&n(1,i=u(o,"data.options.footer.getTheData",{enabled:!1})),1&t.$$.dirty&&n(2,a=u(r,"externalData"))},[r,i,a,l,p,s]}var GetTheData=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$8,create_fragment$8,safe_not_equal,{props:5}),r}return n}(SvelteComponent);function create_if_block$5(t){var e,n,r,o,i,a,s,c,u,l,p=(t[1].text||"Please use the following HTML code to embed this chart:")+"";return{c:function(){e=element("div"),n=element("div"),r=text("×"),o=space(),i=element("div"),a=text(p),s=space(),c=element("textarea"),this.h()},l:function(t){var u=children(e=claim_element(t,"DIV",{class:!0})),l=children(n=claim_element(u,"DIV",{class:!0}));r=claim_text(l,"×"),l.forEach(detach),o=claim_space(u);var f=children(i=claim_element(u,"DIV",{}));a=claim_text(f,p),f.forEach(detach),s=claim_space(u),children(c=claim_element(u,"TEXTAREA",{readonly:!0,value:!0})).forEach(detach),u.forEach(detach),this.h()},h:function(){attr(n,"class","close"),c.readOnly=!0,c.value=t[2],attr(e,"class","embed-code")},m:function(p,f){insert(p,e,f),append(e,n),append(n,r),append(e,o),append(e,i),append(i,a),append(e,s),append(e,c),u||(l=[listen(n,"click",t[4]),listen(c,"click",handleTextareaClick)],u=!0)},p:function(t,e){2&e&&p!==(p=(t[1].text||"Please use the following HTML code to embed this chart:")+"")&&set_data(a,p),4&e&&(c.value=t[2])},d:function(t){t&&detach(e),u=!1,run_all(l)}}}function create_fragment$9(t){var e,n,r,o,i,a,s=t[3](t[1].caption)+"",c=!t[0]&&create_if_block$5(t);return{c:function(){e=element("a"),n=text(s),r=space(),c&&c.c(),o=empty(),this.h()},l:function(t){var i=children(e=claim_element(t,"A",{href:!0,class:!0}));n=claim_text(i,s),i.forEach(detach),r=claim_space(t),c&&c.l(t),o=empty(),this.h()},h:function(){attr(e,"href","#embed"),attr(e,"class","chart-action-embed")},m:function(s,u){insert(s,e,u),append(e,n),insert(s,r,u),c&&c.m(s,u),insert(s,o,u),i||(a=listen(e,"click",t[4]),i=!0)},p:function(t,e){var r=_slicedToArray(e,1)[0];2&r&&s!==(s=t[3](t[1].caption)+"")&&set_data(n,s),t[0]?c&&(c.d(1),c=null):c?c.p(t,r):((c=create_if_block$5(t)).c(),c.m(o.parentNode,o))},i:noop,o:noop,d:function(t){t&&detach(e),t&&detach(r),c&&c.d(t),t&&detach(o),i=!1,a()}}}function handleTextareaClick(t){t.target.focus(),t.target.select()}function instance$9(t,e,n){var r,o,i,a,s=e.props,c=s,u=c.get,l=c.__,p=!0;return t.$set=function(t){"props"in t&&n(5,s=t.props)},t.$$.update=function(){var e;32&t.$$.dirty&&n(6,(r=(e=s).chart,o=e.theme,e),r,(n(7,o),n(5,s)));128&t.$$.dirty&&n(1,i=u(o,"data.options.footer.embed",{enabled:!1})),64&t.$$.dirty&&n(2,a=u(r,"metadata.publish.embed-codes.embed-method-iframe","\x3c!-- embed code will be here after publishing --\x3e"))},[p,i,a,l,function(t){t.preventDefault(),n(0,p=!p)},s]}var Embed=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$9,create_fragment$9,safe_not_equal,{props:5}),r}return n}(SvelteComponent);function create_if_block_1$4(t){var e,n,r,o;return{c:function(){e=element("img"),this.h()},l:function(t){e=claim_element(t,"IMG",{height:!0,src:!0,alt:!0}),this.h()},h:function(){attr(e,"height",n=t[1].height),e.src!==(r=t[1].url)&&attr(e,"src",r),attr(e,"alt",o=t[2].title)},m:function(t,n){insert(t,e,n)},p:function(t,i){2&i&&n!==(n=t[1].height)&&attr(e,"height",n),2&i&&e.src!==(r=t[1].url)&&attr(e,"src",r),4&i&&o!==(o=t[2].title)&&attr(e,"alt",o)},d:function(t){t&&detach(e)}}}function create_if_block$6(t){var e,n=t[0](t[1].text)+"";return{c:function(){e=element("span"),this.h()},l:function(t){children(e=claim_element(t,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","logo-text")},m:function(t,r){insert(t,e,r),e.innerHTML=n},p:function(t,r){3&r&&n!==(n=t[0](t[1].text)+"")&&(e.innerHTML=n)},d:function(t){t&&detach(e)}}}function create_fragment$a(t){var e,n,r=t[1].url&&create_if_block_1$4(t),o=t[1].text&&create_if_block$6(t);return{c:function(){r&&r.c(),e=space(),o&&o.c(),n=empty()},l:function(t){r&&r.l(t),e=claim_space(t),o&&o.l(t),n=empty()},m:function(t,i){r&&r.m(t,i),insert(t,e,i),o&&o.m(t,i),insert(t,n,i)},p:function(t,i){var a=_slicedToArray(i,1)[0];t[1].url?r?r.p(t,a):((r=create_if_block_1$4(t)).c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[1].text?o?o.p(t,a):((o=create_if_block$6(t)).c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:noop,o:noop,d:function(t){r&&r.d(t),t&&detach(e),o&&o.d(t),t&&detach(n)}}}function instance$a(t,e,n){var r=e.purifyHtml,o=e.logo,i=e.theme;return t.$set=function(t){"purifyHtml"in t&&n(0,r=t.purifyHtml),"logo"in t&&n(1,o=t.logo),"theme"in t&&n(2,i=t.theme)},[r,o,i]}var LogoInner=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$a,create_fragment$a,safe_not_equal,{purifyHtml:0,logo:1,theme:2}),r}return n}(SvelteComponent);function create_else_block$3(t){var e,n;return e=new LogoInner({props:{logo:t[1],purifyHtml:t[2],theme:t[0]}}),{c:function(){create_component(e.$$.fragment)},l:function(t){claim_component(e.$$.fragment,t)},m:function(t,r){mount_component(e,t,r),n=!0},p:function(t,n){var r={};2&n&&(r.logo=t[1]),1&n&&(r.theme=t[0]),e.$set(r)},i:function(t){n||(transition_in(e.$$.fragment,t),n=!0)},o:function(t){transition_out(e.$$.fragment,t),n=!1},d:function(t){destroy_component(e,t)}}}function create_if_block$7(t){var e,n,r,o;return n=new LogoInner({props:{logo:t[1],purifyHtml:t[2],theme:t[0]}}),{c:function(){e=element("a"),create_component(n.$$.fragment),this.h()},l:function(t){var r=children(e=claim_element(t,"A",{href:!0,target:!0,rel:!0}));claim_component(n.$$.fragment,r),r.forEach(detach),this.h()},h:function(){attr(e,"href",r=t[1].link),attr(e,"target","_blank"),attr(e,"rel","noopener noreferrer")},m:function(t,r){insert(t,e,r),mount_component(n,e,null),o=!0},p:function(t,i){var a={};2&i&&(a.logo=t[1]),1&i&&(a.theme=t[0]),n.$set(a),(!o||2&i&&r!==(r=t[1].link))&&attr(e,"href",r)},i:function(t){o||(transition_in(n.$$.fragment,t),o=!0)},o:function(t){transition_out(n.$$.fragment,t),o=!1},d:function(t){t&&detach(e),destroy_component(n)}}}function create_fragment$b(t){var e,n,r,o,i=[create_if_block$7,create_else_block$3],a=[];function s(t,e){return t[1].link?0:1}return e=s(t),n=a[e]=i[e](t),{c:function(){n.c(),r=empty()},l:function(t){n.l(t),r=empty()},m:function(t,n){a[e].m(t,n),insert(t,r,n),o=!0},p:function(t,o){var c=_slicedToArray(o,1)[0],u=e;(e=s(t))===u?a[e].p(t,c):(group_outros(),transition_out(a[u],1,1,(function(){a[u]=null})),check_outros(),(n=a[e])||(n=a[e]=i[e](t)).c(),transition_in(n,1),n.m(r.parentNode,r))},i:function(t){o||(transition_in(n),o=!0)},o:function(t){transition_out(n),o=!1},d:function(t){a[e].d(t),t&&detach(r)}}}function instance$b(t,e,n){var r,o,i=e.props,a=i,s=a.get,c=a.purifyHtml;return t.$set=function(t){"props"in t&&n(3,i=t.props)},t.$$.update=function(){8&t.$$.dirty&&n(0,r=i.theme),1&t.$$.dirty&&n(1,o=s(r,"data.options.footer.logo"))},[r,o,c,i]}var Logo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$b,create_fragment$b,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_fragment$c(t){var e;return{c:function(){e=element("div"),this.h()},l:function(t){children(e=claim_element(t,"DIV",{class:!0,style:!0})).forEach(detach),this.h()},h:function(){attr(e,"class","export-rect"),set_style(e,"width",px(t[0])),set_style(e,"height",px(t[1])),set_style(e,"background",t[2])},m:function(t,n){insert(t,e,n)},p:function(t,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(e,"width",px(t[0])),2&r&&set_style(e,"height",px(t[1])),4&r&&set_style(e,"background",t[2])},i:noop,o:noop,d:function(t){t&&detach(e)}}}function px(t){return"string"==typeof t?t:t+"px"}function instance$c(t,e,n){var r,o,i,a,s,c=e.props,u=c,l=u.get;u.purifyHtml;return t.$set=function(t){"props"in t&&n(3,c=t.props)},t.$$.update=function(){8&t.$$.dirty&&n(4,r=c.theme),16&t.$$.dirty&&n(5,o=l(r,"data.options.blocks.rectangle.data",{})),32&t.$$.dirty&&n(0,i=l(o,"width",50)),32&t.$$.dirty&&n(1,a=l(o,"height",5)),32&t.$$.dirty&&n(2,s=l(o,"background","red"))},[i,a,s,c]}var Rectangle=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$c,create_fragment$c,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function estimateTextWidth(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=e/14;return t.split("").reduce((function(t,e){return t+(CHAR_W[e]||CHAR_W.a)}),0)*n}var CHAR_W={a:9,A:10,b:9,B:10,c:8,C:10,d:9,D:11,e:9,E:9,f:5,F:8,g:9,G:11,h:9,H:11,i:4,I:4,j:4,J:4,k:8,K:9,l:4,L:8,m:14,M:12,n:9,N:10,o:9,O:11,p:9,P:8,q:9,Q:11,r:6,R:10,s:7,S:9,t:5,T:9,u:9,U:10,v:8,V:10,w:11,W:14,x:8,X:10,y:8,Y:9,z:7,Z:10,".":4,"!":4,"|":4,",":4,":":5,";":5,"-":5,"+":12," ":4};function add_css$1(){var t=element("style");t.id="svelte-111z7el-style",t.textContent="div.svelte-111z7el{position:fixed;opacity:0.182;font-weight:700;font-size:0;white-space:nowrap;left:-100px;top:0px;right:-100px;line-height:100vh;bottom:0;text-align:center;pointer-events:none;transform-origin:middle center}",append(document.head,t)}function create_fragment$d(t){var e,n,r,o,i=t[6](t[2])+"";return add_render_callback(t[8]),{c:function(){e=element("div"),n=element("span"),this.h()},l:function(t){var r=children(e=claim_element(t,"DIV",{class:!0,style:!0,"data-rotate":!0}));children(n=claim_element(r,"SPAN",{})).forEach(detach),r.forEach(detach),this.h()},h:function(){attr(e,"class","watermark noscript svelte-111z7el"),set_style(e,"transform","rotate("+t[3]+"rad)"),set_style(e,"font-size",t[5]),attr(e,"data-rotate",t[4])},m:function(a,s){insert(a,e,s),append(e,n),n.innerHTML=i,r||(o=listen(window,"resize",t[8]),r=!0)},p:function(t,r){var o=_slicedToArray(r,1)[0];4&o&&i!==(i=t[6](t[2])+"")&&(n.innerHTML=i),8&o&&set_style(e,"transform","rotate("+t[3]+"rad)"),32&o&&set_style(e,"font-size",t[5]),16&o&&attr(e,"data-rotate",t[4])},i:noop,o:noop,d:function(t){t&&detach(e),r=!1,o()}}}function instance$d(t,e,n){var r,o,i,a,s,c,u,l,p,f,h,d,m=e.props,_=m,g=_.get,y=_.purifyHtml;return t.$set=function(t){"props"in t&&n(7,m=t.props)},t.$$.update=function(){var e;128&t.$$.dirty&&n(9,(i=(e=m).chart,a=e.theme,e),i,(n(10,a),n(7,m)));1024&t.$$.dirty&&n(11,s=g(a,"data.options.watermark.monospace",!1)),1024&t.$$.dirty&&n(12,c=g(a,"data.options.watermark.custom-field")),5632&t.$$.dirty&&n(2,u=!!g(a,"data.options.watermark")&&(c?g(i,"metadata.custom.".concat(c),""):g(a,"data.options.watermark.text","CONFIDENTIAL"))),3&t.$$.dirty&&n(3,l=-Math.atan(o/r)),8&t.$$.dirty&&n(4,p=180*l/Math.PI),3&t.$$.dirty&&n(13,f=Math.sqrt(r*r+o*o)),2052&t.$$.dirty&&n(14,h=s?20*u.length:estimateTextWidth(u,20)),24576&t.$$.dirty&&n(5,d="".concat(Math.round(.75*f/h*20),"px"))},[r,o,u,l,p,d,y,m,function(){n(0,r=window.innerWidth),n(1,o=window.innerHeight)}]}var Watermark=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),r=e.call(this),document.getElementById("svelte-111z7el-style")||add_css$1(),init(_assertThisInitialized(r),t,instance$d,create_fragment$d,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function create_fragment$e(t){var e;return{c:function(){e=element("hr"),this.h()},l:function(t){e=claim_element(t,"HR",{class:!0,style:!0}),this.h()},h:function(){attr(e,"class","dw-line"),set_style(e,"border","0"),set_style(e,"border-bottom",t[0]),set_style(e,"margin",t[1])},m:function(t,n){insert(t,e,n)},p:function(t,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(e,"border-bottom",t[0]),2&r&&set_style(e,"margin",t[1])},i:noop,o:noop,d:function(t){t&&detach(e)}}}function instance$e(t,e,n){var r,o,i,a,s=e.props,c=s.get;return t.$set=function(t){"props"in t&&n(2,s=t.props)},t.$$.update=function(){4&t.$$.dirty&&n(3,r=s.theme),12&t.$$.dirty&&n(4,o=c(r,"data.options.blocks.".concat(s.id,".data"),{})),16&t.$$.dirty&&n(0,i=c(o,"border","1px solid #cccccc")),16&t.$$.dirty&&n(1,a=c(o,"margin","0px"))},[i,a,s]}var HorizontalRule=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$e,create_fragment$e,safe_not_equal,{props:2}),r}return n}(SvelteComponent);function add_css$2(){var t=element("style");t.id="svelte-eczzvz-style",t.textContent="svg.svelte-eczzvz{width:100%;overflow-x:hidden}",append(document.head,t)}function create_fragment$f(t){var e,n,r,o;return{c:function(){e=svg_element("svg"),n=svg_element("line"),this.h()},l:function(t){var r=children(e=claim_element(t,"svg",{style:!0,class:!0},1));children(n=claim_element(r,"line",{style:!0,x1:!0,y1:!0,x2:!0,y2:!0},1)).forEach(detach),r.forEach(detach),this.h()},h:function(){set_style(n,"stroke",t[3]),set_style(n,"stroke-width",t[4]),set_style(n,"stroke-dasharray",t[5]),set_style(n,"stroke-linecap",t[6]),attr(n,"x1","0"),attr(n,"y1",r=t[4]/2),attr(n,"x2",t[1]),attr(n,"y2",o=t[4]/2),set_style(e,"height",Math.max(t[4],1)+"px"),set_style(e,"margin",t[2]),attr(e,"class","svelte-eczzvz")},m:function(r,o){insert(r,e,o),append(e,n),t[8](e)},p:function(t,i){var a=_slicedToArray(i,1)[0];8&a&&set_style(n,"stroke",t[3]),16&a&&set_style(n,"stroke-width",t[4]),32&a&&set_style(n,"stroke-dasharray",t[5]),64&a&&set_style(n,"stroke-linecap",t[6]),16&a&&r!==(r=t[4]/2)&&attr(n,"y1",r),2&a&&attr(n,"x2",t[1]),16&a&&o!==(o=t[4]/2)&&attr(n,"y2",o),16&a&&set_style(e,"height",Math.max(t[4],1)+"px"),4&a&&set_style(e,"margin",t[2])},i:noop,o:noop,d:function(n){n&&detach(e),t[8](null)}}}function instance$f(t,e,n){var r,o,i,a,s,c,u,l,p=e.props,f=p.get,h=0;return onMount((function(){n(1,h=r.getBoundingClientRect().width)})),"undefined"!=typeof window&&window.addEventListener("resize",(function(){n(1,h=r.getBoundingClientRect().width)})),t.$set=function(t){"props"in t&&n(7,p=t.props)},t.$$.update=function(){128&t.$$.dirty&&n(9,o=p.theme),640&t.$$.dirty&&n(10,i=f(o,"data.options.blocks.".concat(p.id,".data"),{})),1024&t.$$.dirty&&n(2,a=f(i,"margin","0px")),1024&t.$$.dirty&&n(3,s=f(i,"color","#000000")),1024&t.$$.dirty&&n(4,c=f(i,"width",1)),1024&t.$$.dirty&&n(5,u=f(i,"strokeDasharray","none")),1024&t.$$.dirty&&n(6,l=f(i,"strokeLinecap","butt"))},[r,h,a,s,c,u,l,p,function(t){binding_callbacks[t?"unshift":"push"]((function(){n(0,r=t)}))}]}var SvgRule=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),r=e.call(this),document.getElementById("svelte-eczzvz-style")||add_css$2(),init(_assertThisInitialized(r),t,instance$f,create_fragment$f,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function get(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return t;for(var r=e.split("."),o=t,i=0;i1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(n,r){var o=document.createElement("script");o.src=t,o.onload=function(){e&&e(),n()},o.onerror=r,document.body.appendChild(o)}))}function loadStylesheet(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof t&&(t={src:t}),t.parentElement&&"function"==typeof t.parentElement.appendChild||(t.parentElement=document.head),new Promise((function(n,r){var o=document.createElement("link");o.rel="stylesheet",o.href=t.src,o.onload=function(){e&&e(),n()},o.onerror=r,t.parentElement.appendChild(o)}))}var VERSION="1.12.1",root="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ArrayProto=Array.prototype,ObjProto=Object.prototype,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,supportsDataView="undefined"!=typeof DataView,nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,_isNaN=isNaN,hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;o=0&&n<=MAX_ARRAY_INDEX}}function shallowProperty(t){return function(e){return null==e?void 0:e[t]}}var getLength=shallowProperty("length");function emulatedSet(t){for(var e={},n=t.length,r=0;r":">",'"':""","'":"'","`":"`"};createEscaper(escapeMap);var unescapeMap=invert(escapeMap);function executeBound(t,e,n,r,o){if(!(r instanceof e))return t.apply(n,o);var i=baseCreate(t.prototype),a=t.apply(i,o);return isObject(a)?a:i}createEscaper(unescapeMap),_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var partial=restArguments((function(t,e){var n=partial.placeholder,r=function(){for(var o=0,i=e.length,a=Array(i),s=0;s1)flatten(s,e-1,n,r),o=r.length;else for(var c=0,u=s.length;c0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}function createPredicateIndexFinder(t){return function(e,n,r){n=cb(n,r);for(var o=getLength(e),i=t>0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=e(slice.call(r,a,s),isNaN$1))>=0?i+a:-1;for(i=t>0?a:s-1;i>=0&&i=0}function pluck(t,e){return map(t,property(e))}function max(t,e,n){var r,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,c=(t=isArrayLike(t)?t:values(t)).length;si&&(i=r);else e=cb(e,n),each(t,(function(t,n,r){((o=e(t,n,r))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function keyInObj(t,e,n){return e in n}restArguments((function(t,e,n){var r,o;return isFunction$1(e)?o=e:(e=toPath$1(e),r=e.slice(0,-1),e=e[e.length-1]),map(t,(function(t){var i=o;if(!i){if(r&&r.length&&(t=deepGet(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,n)}))}));var pick=restArguments((function(t,e){var n={},r=e[0];if(null==t)return n;isFunction$1(r)?(e.length>1&&(r=optimizeCb(r,e[1])),e=allKeys(t)):(r=keyInObj,e=flatten(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o1&&(n=e[1])):(e=map(flatten(e,!1,!1),String),r=function(t,n){return!contains(e,n)}),pick(t,r,n)}));var difference=restArguments((function(t,e){return e=flatten(e,!0,!0),filter(t,(function(t){return!contains(e,t)}))}));function uniq(t,e,n,r){isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=cb(n,r));for(var o=[],i=[],a=0,s=getLength(t);a1&&void 0!==arguments[1]&&arguments[1];if(!t)return null;var n=t.offsetHeight;if(!e)return n;var r=getComputedStyle(t);return n+=parseInt(r.marginTop)+parseInt(r.marginBottom)}function getNonChartHeight(){for(var t=0,e=document.querySelector(".dw-chart"),n=0;n=this.expression.length?this.newToken(TEOF,"EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},TokenStream.prototype.isString=function(){var t=!1,e=this.pos,n=this.expression.charAt(e);if("'"===n||'"'===n)for(var r=this.expression.indexOf(n,e+1);r>=0&&this.pos"9")))break}if(e>t){var r=this.expression.substring(t,e);if(r in this.consts)return this.current=this.newToken(TNUMBER,this.consts[r]),this.pos+=r.length,!0}return!1},TokenStream.prototype.isNamedOp=function(){for(var t=this.pos,e=t;e"9")))break}if(e>t){var r=this.expression.substring(t,e);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(TOP,r),this.pos+=r.length,!0}return!1},TokenStream.prototype.isName=function(){for(var t=this.pos,e=t,n=!1;e"9"))break}else n=!0}if(n){var o=this.expression.substring(t,e);return this.current=this.newToken(TNAME,o),this.pos+=o.length,!0}return!1},TokenStream.prototype.isWhitespace=function(){for(var t=!1,e=this.expression.charAt(this.pos);!(" "!==e&&"\t"!==e&&"\n"!==e&&"\r"!==e||(t=!0,this.pos++,this.pos>=this.expression.length));)e=this.expression.charAt(this.pos);return t};var codePointPattern=/^[0-9a-f]{4}$/i;TokenStream.prototype.unescape=function(t){var e=t.indexOf("\\");if(e<0)return t;for(var n=t.substring(0,e);e>=0;){var r=t.charAt(++e);switch(r){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;case"u":var o=t.substring(e+1,e+5);codePointPattern.test(o)||this.parseError("Illegal escape sequence: \\u"+o),n+=String.fromCharCode(parseInt(o,16)),e+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+r+'"')}++e;var i=t.indexOf("\\",e);n+=t.substring(e,i<0?t.length:i),e=i}return n},TokenStream.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},TokenStream.prototype.isRadixInteger=function(){var t,e,n=this.pos;if(n>=this.expression.length-2||"0"!==this.expression.charAt(n))return!1;if(++n,"x"===this.expression.charAt(n))t=16,e=/^[0-9a-f]$/i,++n;else{if("b"!==this.expression.charAt(n))return!1;t=2,e=/^[01]$/i,++n}for(var r=!1,o=n;n="0"&&t<="9"||!i&&"."===t);)"."===t?i=!0:a=!0,n++,e=a;if(e&&(o=n),"e"===t||"E"===t){n++;for(var s=!0,c=!1;n="0"&&t<="9"))break;c=!0,s=!1}else s=!1;n++}c||(n=o)}return e?(this.current=this.newToken(TNUMBER,parseFloat(this.expression.substring(r,n))),this.pos=n):this.pos=o,e},TokenStream.prototype.isOperator=function(){var t=this.pos,e=this.expression.charAt(this.pos);if("+"===e||"-"===e||"*"===e||"/"===e||"%"===e||"^"===e||"?"===e||":"===e||"."===e)this.current=this.newToken(TOP,e);else if("∙"===e||"•"===e)this.current=this.newToken(TOP,"*");else if(">"===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,">="),this.pos++):this.current=this.newToken(TOP,">");else if("<"===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"<="),this.pos++):this.current=this.newToken(TOP,"<");else if("|"===e){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(TOP,"||"),this.pos++}else if("="===e)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"=="),this.pos++):this.current=this.newToken(TOP,e);else{if("!"!==e)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"!="),this.pos++):this.current=this.newToken(TOP,e)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=t,!1)},TokenStream.prototype.isOperatorEnabled=function(t){return this.parser.isOperatorEnabled(t)},TokenStream.prototype.getCoordinates=function(){var t,e=0,n=-1;do{e++,t=this.pos-n,n=this.expression.indexOf("\n",n+1)}while(n>=0&&n=",">","in"];ParserState.prototype.parseComparison=function(t){for(this.parseAddSub(t);this.accept(TOP,COMPARISON_OPERATORS);){var e=this.current;this.parseAddSub(t),t.push(binaryInstruction(e.value))}};var ADD_SUB_OPERATORS=["+","-","||"];ParserState.prototype.parseAddSub=function(t){for(this.parseTerm(t);this.accept(TOP,ADD_SUB_OPERATORS);){var e=this.current;this.parseTerm(t),t.push(binaryInstruction(e.value))}};var TERM_OPERATORS=["*","/","%"];function add(t,e){return Number(t)+Number(e)}function sub(t,e){return t-e}function mul(t,e){return t*e}function div(t,e){return t/e}function mod(t,e){return t%e}function equal(t,e){return t===e}function notEqual(t,e){return t!==e}function greaterThan(t,e){return t>e}function lessThan(t,e){return t=e}function lessThanEqual(t,e){return t<=e}function andOperator(t,e){return Boolean(t&&e)}function orOperator(t,e){return Boolean(t||e)}function log10(t){return Math.log(t)*Math.LOG10E}function neg(t){return-t}function not(t){return!t}function trunc(t){return t<0?Math.ceil(t):Math.floor(t)}function random(t){return Math.random()*(t||1)}function stringOrArrayLength(t){return Array.isArray(t)?t.length:String(t).length}function condition(t,e,n){return t?e:n}function roundTo(t,e){return void 0===e||0==+e?Math.round(t):(t=+t,e=-+e,isNaN(t)||"number"!=typeof e||e%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-e:-e)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+e:e))))}function arrayIndex(t,e){return t[0|e]}function max$1(t){return 1===arguments.length&&Array.isArray(t)?Math.max.apply(Math,t):Math.max.apply(Math,arguments)}function min(t){return 1===arguments.length&&Array.isArray(t)?Math.min.apply(Math,t):Math.min.apply(Math,arguments)}function arrayMap(t,e){if("function"!=typeof t)throw new Error("First argument to map is not a function");if(!Array.isArray(e))throw new Error("Second argument to map is not an array");return e.map((function(e,n){return t(e,n)}))}function arrayFold(t,e,n){if("function"!=typeof t)throw new Error("First argument to fold is not a function");if(!Array.isArray(n))throw new Error("Second argument to fold is not an array");return n.reduce((function(e,n,r){return t(e,n,r)}),e)}function arrayFilter(t,e){if("function"!=typeof t)throw new Error("First argument to filter is not a function");if(!Array.isArray(e))throw new Error("Second argument to filter is not an array");return e.filter((function(e,n){return t(e,n)}))}function sign(t){return(t>0)-(t<0)||+t}function log1p(t){return Math.log(1+t)}function log2(t){return Math.log(t)/Math.LN2}function sum(t){if(!Array.isArray(t))throw new Error("Sum argument is not an array");return t.reduce((function(t,e){return t+Number(e)}),0)}function evaluate(t,e,n){var r,o,i,a,s,c,u=[];if(isExpressionEvaluator(t))return resolveExpression(t,n);for(var l=t.length,p=0;p0;)s.unshift(resolveExpression(u.pop(),n));if(!(a=u.pop()).apply||!a.call)throw new Error(a+" is not a function");u.push(a.apply(void 0,s))}else if(h===IFUNDEF)u.push(function(){for(var t=u.pop(),r=[],o=f.value;o-- >0;)r.unshift(u.pop());var i=u.pop(),a=function(){for(var o=Object.assign({},n),i=0,a=r.length;i0;)s.unshift(u.pop());u.push(s)}}if(u.length>1)throw new Error("invalid Expression (parity)");return 0===u[0]?0:resolveExpression(u[0],n)}function createExpressionEvaluator(t,e,n){return isExpressionEvaluator(t)?t:{type:IEXPREVAL,value:function(n){return evaluate(t.value,e,n)}}}function isExpressionEvaluator(t){return t&&t.type===IEXPREVAL}function resolveExpression(t,e){return isExpressionEvaluator(t)?t.value(e):t}function Expression(t,e){this.tokens=t,this.parser=e,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.functions=e.functions}function trim(t){return t.trim()}function Parser(t){this.options=t||{},this.unaryOps={SIN:Math.sin,COS:Math.cos,TAN:Math.tan,ASIN:Math.asin,ACOS:Math.acos,ATAN:Math.atan,SQRT:Math.sqrt,LOG:Math.log,LOG2:Math.log2||log2,LN:Math.log,LOG10:Math.log10||log10,LG:Math.log10||log10,LOG1P:Math.log1p||log1p,ABS:Math.abs,CEIL:Math.ceil,FLOOR:Math.floor,ISNULL:function(t){return null===t},TRUNC:Math.trunc||trunc,"-":neg,"+":Number,EXP:Math.exp,NOT:not,LENGTH:stringOrArrayLength,"!":not,SIGN:Math.sign||sign,TEXT:function(t){return e(t)?t.toISOString():String(t)},NUMBER:Number},this.binaryOps={"+":add,"-":sub,"*":mul,"/":div,"%":mod,"^":Math.pow,"==":equal,"!=":notEqual,">":greaterThan,"<":lessThan,">=":greaterThanEqual,"<=":lessThanEqual,and:andOperator,or:orOperator,in:function(t,e){return Array.isArray(e)?e.includes(t):String(e).includes(t)},"[":arrayIndex},this.ternaryOps={"?":condition};var e=function(t){return t instanceof Date&&!isNaN(t)},n=function(t){if(e(t))return t;try{var n=new Date(t);return e(n)?n:null}catch(t){return null}};function r(t){return(1===arguments.length&&Array.isArray(t)?t:Array.from(arguments)).slice(0).filter((function(t){return!isNaN(t)&&Number.isFinite(t)}))}var o=/\w*/g,i=/\w\S*/g,a=/[\\^$*+?.()|[\]{}]/g;try{o=new RegExp("\\p{L}*","ug"),i=new RegExp("[\\p{L}\\p{N}]\\S*","ug")}catch(t){}this.functions={IF:condition,RANDOM:random,MIN:function(){var t=r.apply(this,arguments);return min(t)},MAX:function(){return max$1(r.apply(this,arguments))},SUM:function(){return sum(r.apply(this,arguments))},MEAN:function(){var t=r.apply(this,arguments);return sum(t)/t.length},MEDIAN:function(){var t=r.apply(this,arguments).sort((function(t,e){return t-e})),e=Math.floor(t.length/2);return t.length%2==1?t[e]:.5*(t[e-1]+t[e])},POW:Math.pow,ATAN2:Math.atan2,ROUND:roundTo,CONCAT:function(){return Array.from(arguments).join("")},TRIM:trim,SUBSTR:function(t,e,n){return t.substr(e,n)},REPLACE:function(t,e,n){return t.replace(new RegExp(String(e).replace(a,"\\$&"),"g"),n)},REPLACE_REGEX:function(t,e,n){return t.replace(new RegExp(e,"g"),n)},SPLIT:function(t,e){return String(t).split(e)},LOWER:function(t){return String(t).toLowerCase()},UPPER:function(t){return String(t).toUpperCase()},PROPER:function(t){return String(t).replace(o,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))},TITLE:function(t){return String(t).replace(i,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))},SORT:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(t))throw new Error("First argument to SORT is not an array");return t.slice(0).sort((function(t,r){return((t="string"==typeof n?t[n]:"function"==typeof n?n(t):t)>(r="string"==typeof n?r[n]:"function"==typeof n?n(r):r)?1:t2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(t))throw new Error("First argument to JOIN is not an array");return n?[t.slice(0,t.length-1).join(e),t[t.length-1]].join(n):t.join(e)},MAP:arrayMap,FOLD:arrayFold,FILTER:arrayFilter,PLUCK:function(t,e){if(!Array.isArray(t))throw new Error("First argument to PLUCK is not an array");return t.map((function(t){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}))},INDEXOF:function(t,e){return Array.isArray(t)||(t=String(t)),t.indexOf(e)},FIND:function(t,e){if(!Array.isArray(t))throw new Error("First argument to FIND is not an array");if("function"!=typeof e)throw new Error("Second argument to FIND is not a function");for(var n=t.length,r=0;r1&&(arguments[1]=arguments[1]-1),_construct(Date,Array.prototype.slice.call(arguments))},YEAR:function(t){return(t=n(t))?t.getFullYear():null},MONTH:function(t){return(t=n(t))?t.getMonth()+1:null},DAY:function(t){return(t=n(t))?t.getDate():null},WEEKDAY:function(t){return(t=n(t))?t.getDay():null},HOURS:function(t){return(t=n(t))?t.getHours():null},MINUTES:function(t){return(t=n(t))?t.getMinutes():null},SECONDS:function(t){return(t=n(t))?t.getSeconds():null},DATEDIFF:function(t,e){return t=n(t),e=n(e),t&&e?(e.getTime()-t.getTime())/864e5:null},TIMEDIFF:function(t,e){return t=n(t),e=n(e),t&&e?(e.getTime()-t.getTime())/1e3:null}},this.unaryOps.LOWER=this.functions.LOWER,this.unaryOps.UPPER=this.functions.UPPER,this.unaryOps.PROPER=this.functions.PROPER,this.unaryOps.TITLE=this.functions.TITLE,this.unaryOps.TRIM=this.functions.TRIM,this.unaryOps.YEAR=this.functions.YEAR,this.unaryOps.MONTH=this.functions.MONTH,this.unaryOps.DAY=this.functions.DAY,this.unaryOps.WEEKDAY=this.functions.WEEKDAY,this.unaryOps.HOURS=this.functions.HOURS,this.unaryOps.MINUTES=this.functions.MINUTES,this.unaryOps.SECONDS=this.functions.SECONDS,this.consts={E:Math.E,PI:Math.PI,TRUE:!0,FALSE:!1,NA:Number.NaN,NULL:Number.NaN}}ParserState.prototype.parseTerm=function(t){for(this.parseFactor(t);this.accept(TOP,TERM_OPERATORS);){var e=this.current;this.parseFactor(t),t.push(binaryInstruction(e.value))}},ParserState.prototype.parseFactor=function(t){var e=this.tokens.unaryOps;if(this.save(),this.accept(TOP,(function(t){return t.value in e}))){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===TPAREN&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(t);if(this.nextToken.type===TSEMICOLON||this.nextToken.type===TCOMMA||this.nextToken.type===TEOF||this.nextToken.type===TPAREN&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(t)}var n=this.current;this.parseFactor(t),t.push(unaryInstruction(n.value))}else this.parseExponential(t)},ParserState.prototype.parseExponential=function(t){for(this.parsePostfixExpression(t);this.accept(TOP,"^");)this.parseFactor(t),t.push(binaryInstruction("^"))},ParserState.prototype.parsePostfixExpression=function(t){for(this.parseFunctionCall(t);this.accept(TOP,"!");)t.push(unaryInstruction("!"))},ParserState.prototype.parseFunctionCall=function(t){var e=this.tokens.unaryOps;if(this.accept(TOP,(function(t){return t.value in e}))){var n=this.current;this.parseAtom(t),t.push(unaryInstruction(n.value))}else for(this.parseMemberExpression(t);this.accept(TPAREN,"(");)if(this.accept(TPAREN,")"))t.push(new Instruction(IFUNCALL,0));else{var r=this.parseArgumentList(t);t.push(new Instruction(IFUNCALL,r))}},ParserState.prototype.parseArgumentList=function(t){for(var e=0;!this.accept(TPAREN,")");)for(this.parseExpression(t),++e;this.accept(TCOMMA);)this.parseExpression(t),++e;return e},ParserState.prototype.parseMemberExpression=function(t){for(this.parseAtom(t);this.accept(TOP,".")||this.accept(TBRACKET,"[");){var e=this.current;if("."===e.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(TNAME),t.push(new Instruction(IMEMBER,this.current.value))}else{if("["!==e.value)throw new Error("unexpected symbol: "+e.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(t),this.expect(TBRACKET,"]"),t.push(binaryInstruction("["))}}},Expression.prototype.evaluate=function(t){return t=t||{},evaluate(this.tokens,this,t)},Expression.prototype.variables=function(){return(this.tokens||[]).filter((function(t){return"IVAR"===t.type})).map((function(t){return t.value}))},Parser.prototype.parse=function(t){var e=[],n=new ParserState(this,new TokenStream(this,t),{allowMemberAccess:!0});return n.parseExpression(e),n.expect(TEOF,"EOF"),new Expression(e,this)},Parser.prototype.evaluate=function(t,e){return this.parse(t).evaluate(e)};var sharedParser=new Parser;Parser.parse=function(t){return sharedParser.parse(t)},Parser.evaluate=function(t,e){return sharedParser.parse(t).evaluate(e)},Parser.keywords=["ABS","ACOS","ACOSH","and","ASIN","ASINH","ATAN","ATAN2","ATANH","CBRT","CEIL","CONCAT","COS","COSH","DATEDIFF","DAY","E","EVERY","EXP","EXPM1","FIND","FLOOR","HOURS","IF","in","INDEXOF","ISNULL","JOIN","LENGTH","LN","LOG","LOG10","LOG1P","LOG2","LOWER","MAP","MAX","MEAN","MEDIAN","MIN","MINUTES","MONTH","NOT","NOT","or","PI","PLUCK","POW","PROPER","RANDOM","RANGE","REPLACE","REPLACE_REGEX","ROUND","SECONDS","SIGN","SIN","SINH","SLICE","SOME","SORT","SPLIT","SQRT","SUBSTR","SUM","TAN","TANH","TIMEDIFF","TITLE","TRIM","TRUNC","UPPER","WEEKDAY","YEAR"];var optionNameMap={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",AND:"logical",OR:"logical",NOT:"logical",IN:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function getOptionName(t){return Object.prototype.hasOwnProperty.call(optionNameMap,t)?optionNameMap[t]:t}function getMaxChartHeight(){if(0===window.innerHeight)return 0;var t=window.innerHeight-8;return t-=getNonChartHeight(),Math.max(t,0)}function height(t){var e=parseFloat(getComputedStyle(t,null).height.replace("px",""));return isNaN(e)?0:e}function width(t){var e=parseFloat(getComputedStyle(t,null).width.replace("px",""));return isNaN(e)?0:e}function addClass(t,e){t&&t.classList.add(e)}function removeClass(t,e){t&&t.classList.remove(e)}function domReady(t){/complete|interactive|loaded/.test(document.readyState)?t():window.addEventListener("DOMContentLoaded",(function(e){t()}))}function postEvent(t){return function(e,n){if(window.parent&&window.parent.postMessage){var r={source:"datawrapper",chartId:t,type:e,data:n};window.parent.postMessage(r,"*")}}}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}Parser.prototype.isOperatorEnabled=function(t){var e=getOptionName(t),n=this.options.operators||{};return!(e in n)||!!n[e]};var fontfaceobserver_standalone=createCommonjsModule((function(t){!function(){function e(t,e){document.addEventListener?t.addEventListener("scroll",e,!1):t.attachEvent("scroll",e)}function n(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(t,e){t.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function o(t){var e=t.a.offsetWidth,n=e+100;return t.f.style.width=n+"px",t.c.scrollLeft=n,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function i(t,n){function r(){var t=i;o(t)&&t.a.parentNode&&n(t.g)}var i=t;e(t.b,r),e(t.c,r),o(t)}function a(t,e){var n=e||{};this.family=t,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,c=null,u=null,l=null;function p(){return null===l&&(l=!!document.fonts),l}function f(){if(null===u){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}u=""!==t.style.font}return u}function h(t,e){return[t.style,t.weight,f()?t.stretch:"","100px",e].join(" ")}a.prototype.load=function(t,e){var o=this,a=t||"BESbswy",u=0,l=e||3e3,f=(new Date).getTime();return new Promise((function(t,e){if(p()&&!function(){if(null===c)if(p()&&/Apple/.test(window.navigator.vendor)){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);c=!!t&&603>parseInt(t[1],10)}else c=!1;return c}()){var d=new Promise((function(t,e){!function n(){(new Date).getTime()-f>=l?e(Error(l+"ms timeout exceeded")):document.fonts.load(h(o,'"'+o.family+'"'),a).then((function(e){1<=e.length?t():setTimeout(n,25)}),e)}()})),m=new Promise((function(t,e){u=setTimeout((function(){e(Error(l+"ms timeout exceeded"))}),l)}));Promise.race([m,d]).then((function(){clearTimeout(u),t(o)}),e)}else!function(t){document.body?t():document.addEventListener?document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e),t()})):document.attachEvent("onreadystatechange",(function e(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",e),t())}))}((function(){function c(){var e;(e=-1!=_&&-1!=g||-1!=_&&-1!=y||-1!=g&&-1!=y)&&((e=_!=g&&_!=y&&g!=y)||(null===s&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))),e=s&&(_==v&&g==v&&y==v||_==b&&g==b&&y==b||_==w&&g==w&&y==w)),e=!e),e&&($.parentNode&&$.parentNode.removeChild($),clearTimeout(u),t(o))}var p=new n(a),d=new n(a),m=new n(a),_=-1,g=-1,y=-1,v=-1,b=-1,w=-1,$=document.createElement("div");$.dir="ltr",r(p,h(o,"sans-serif")),r(d,h(o,"serif")),r(m,h(o,"monospace")),$.appendChild(p.a),$.appendChild(d.a),$.appendChild(m.a),document.body.appendChild($),v=p.a.offsetWidth,b=d.a.offsetWidth,w=m.a.offsetWidth,function t(){if((new Date).getTime()-f>=l)$.parentNode&&$.parentNode.removeChild($),e(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(_=p.a.offsetWidth,g=d.a.offsetWidth,y=m.a.offsetWidth,c()),u=setTimeout(t,50)}}(),i(p,(function(t){_=t,c()})),r(p,h(o,'"'+o.family+'",sans-serif')),i(d,(function(t){g=t,c()})),r(d,h(o,'"'+o.family+'",serif')),i(m,(function(t){y=t,c()})),r(m,h(o,'"'+o.family+'",monospace'))}))}))},t.exports=a}()}));function observeFonts(t,e){var n=Array.isArray(t)?[]:Object.keys(t),r=new Set(n);Object.keys(e).forEach((function(t){var n=e[t].typeface;n&&n.split(",").map((function(t){return t.trim()})).forEach((function(t){return r.add(t)}))}));var o=[];return r.forEach((function(t){var e=new fontfaceobserver_standalone(t);o.push(e.load(null,5e3))})),Promise.all(o)}var isMergeableObject=function(t){return isNonNullObject(t)&&!isSpecial(t)};function isNonNullObject(t){return!!t&&"object"==typeof t}function isSpecial(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||isReactElement(t)}var canUseSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(t){return t.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(t){return Array.isArray(t)?[]:{}}function cloneUnlessOtherwiseSpecified(t,e){return!1!==e.clone&&e.isMergeableObject(t)?deepmerge(emptyTarget(t),t,e):t}function defaultArrayMerge(t,e,n){return t.concat(e).map((function(t){return cloneUnlessOtherwiseSpecified(t,n)}))}function getMergeFunction(t,e){if(!e.customMerge)return deepmerge;var n=e.customMerge(t);return"function"==typeof n?n:deepmerge}function getEnumerableOwnPropertySymbols(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function getKeys(t){return Object.keys(t).concat(getEnumerableOwnPropertySymbols(t))}function propertyIsOnObject(t,e){try{return e in t}catch(t){return!1}}function propertyIsUnsafe(t,e){return propertyIsOnObject(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function mergeObject(t,e,n){var r={};return n.isMergeableObject(t)&&getKeys(t).forEach((function(e){r[e]=cloneUnlessOtherwiseSpecified(t[e],n)})),getKeys(e).forEach((function(o){propertyIsUnsafe(t,o)||(propertyIsOnObject(t,o)&&n.isMergeableObject(e[o])?r[o]=getMergeFunction(o,n)(t[o],e[o],n):r[o]=cloneUnlessOtherwiseSpecified(e[o],n))})),r}function deepmerge(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||defaultArrayMerge,n.isMergeableObject=n.isMergeableObject||isMergeableObject,n.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):mergeObject(t,e,n):cloneUnlessOtherwiseSpecified(e,n)}deepmerge.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return deepmerge(t,n,e)}),{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function _async(t){return function(){for(var e=[],n=0;n0?addClass(document.querySelector(".dw-chart-body"),"content-below-chart"):removeClass(document.querySelector(".dw-chart-body"),"content-below-chart");var t,e=width($chart),n=getMaxChartHeight();__dw$1.vis&&__dw$1.vis.supportsSmartRendering()?t=__dw$1.vis:(t=__dw$1.vis=getVis($chart),chart.vis(t)),t.size(e,n);var r=chart.dataset().toCSV&&chart.dataset().toCSV();if(!r||r&&r.trim&&"X.1"===r.trim())addClass(document.querySelector(".chart-action-data"),"hidden");else{var o=document.querySelector("a.dw-data-link[href=data]");if(o)if(window.navigator.msSaveOrOpenBlob){var i=new Blob([r]);o.addEventListener("click",(function(t){return window.navigator.msSaveOrOpenBlob(i,"data-"+chart.get("id")+".csv"),t.preventDefault(),!1}))}else o.setAttribute("download","data-"+chart.get("id")+".csv"),o.setAttribute("href","data:application/octet-stream;charset=utf-8,"+encodeURIComponent("\ufeff"+r))}("fixed"===getHeightMode()?e>0:e>0&&n>0)&&chart.render($chart)}function getHeight(t){var e=document.querySelector(t);return e?height(e):0}function getHeightMode(){var t=__dw$1.params.visJSON,e=get(dw.theme(__dw$1.params.themeId),"vis.d3-pies.fitchart",!1)&&["d3-pies","d3-donuts","d3-multiple-pies","d3-multiple-donuts"].indexOf(t.id)>-1,n=!!new URLSearchParams(window.location.search).get("fitchart");return e||n||"fixed"!==visJSON.height?"fit":"fixed"}function getVis(t){var e=dw.visualization(__dw$1.params.visId,t);return e.meta=__dw$1.params.visJSON,e.lang=__dw$1.params.lang,e}function renderLater(){clearTimeout(reloadTimer),reloadTimer=setTimeout((function(){renderChart()}),100)}function initResizeHandler(){var t=width($chart),e=function(){chart.vis().fire("resize"),renderLater()},n="fixed"===getHeightMode()?function(){var n=width($chart);t!==n&&(t=n,e())}:e;window.addEventListener("resize",n)}var initialized=!1,__dw$1={init:function(t){initialized||(initialized=!0,__dw$1.params=t,__dw$1.old_attrs=t.chartJSON,domReady((function(){var e=postEvent(t.chartJSON.id);window.addEventListener("hashchange",(function(){e("hash.change",{hash:window.location.hash})})),chartLoaded().then((function(){renderChart(),initResizeHandler()}))})))},render:renderLater,renderNow:renderChart};function render(_ref){var visJSON=_ref.visJSON,chartJSON=_ref.chartJSON,publishData=_ref.publishData,chartData=_ref.chartData,isPreview=_ref.isPreview,chartLocale=_ref.chartLocale,metricPrefix=_ref.metricPrefix,themeId=_ref.themeId,fontsJSON=_ref.fontsJSON,typographyJSON=_ref.typographyJSON,locales=_ref.locales;function run(){__dw$1.init(Object.assign({visJSON:visJSON,chartJSON:chartJSON,publishData:publishData,data:chartData,preview:isPreview,chartLocale:chartLocale,locales:locales,themeId:themeId,visId:chartJSON.type,lang:chartLocale.substr(0,2),metricPrefix:metricPrefix},window.__dwParams||{})),observeFonts(fontsJSON,typographyJSON).then((function(){return __dw$1.render()})).catch((function(){return __dw$1.render()})),/iP(hone|od|ad)/.test(navigator.platform)&&(window.onload=__dw$1.render()),setInterval((function(){var t;if("fixed"===getHeightMode())t=outerHeight(document.querySelector("html"),!0);else{if(__dw$1.params.preview||!__dw$1.vis.chart().get("metadata.publish.chart-height"))return;t=getNonChartHeight()+__dw$1.vis.chart().get("metadata.publish.chart-height")}window.parent.postMessage({"datawrapper-height":_defineProperty({},chartJSON.id,t)},"*"),window.parent.postMessage({sentinel:"amp",type:"embed-size",height:t},"*"),window.parent.postMessage(JSON.stringify({src:window.location.toString(),context:"iframe.resize",height:t}),"*"),"function"==typeof window.datawrapperHeightCallback&&window.datawrapperHeightCallback(t)}),1e3)}window.visJSON=visJSON,window.__dw=__dw$1,Object.keys(locales).forEach((function(vendor){if("null"===locales[vendor])locales[vendor]=null;else if(locales[vendor].base){var localeBase=eval(locales[vendor].base);locales[vendor]=cjs(localeBase,locales[vendor].custom)}})),run()}function _call(t,e,n){if(n)return e?e(t()):t();try{var r=Promise.resolve(t());return e?r.then(e):r}catch(t){return Promise.reject(t)}}var document_1=globals.document,window_1=globals.window;function _await(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function _empty(){}function _invokeIgnored(t){var e=t();if(e&&e.then)return e.then(_empty)}function _async$1(t){return function(){for(var e=[],n=0;n",t[10],"")+"",$=get(t[0],"data.template.afterChart");document_1.title=e=purifyHTML(t[7].title,"");for(var x=t[8].chartAfterHeadHTML&&create_if_block_9(t),E=!t[1]&&create_if_block_7(t),k=t[9]&&create_if_block_6(t),T=$&&create_if_block_5(t),M=!t[1]&&create_if_block_1$5(t),A=t[3].afterBody,S=[],O=0;O",t[10],"")+"")&&o.p(w),t[8].chartAfterHeadHTML?x?x.p(t,i):((x=create_if_block_9(t)).c(),x.m(a.parentNode,a)):x&&(x.d(1),x=null),t[1]?E&&(group_outros(),transition_out(E,1,1,(function(){E=null})),check_outros()):E?(E.p(t,i),2&i[0]&&transition_in(E,1)):((E=create_if_block_7(t)).c(),transition_in(E,1),E.m(c.parentNode,c)),t[9]?k?k.p(t,i):((k=create_if_block_6(t)).c(),k.m(u.parentNode,u)):k&&(k.d(1),k=null),(!y||512&i[0]&&p!==(p=!!t[9]))&&attr(l,"aria-hidden",p),64&i[0]&&toggle_class(l,"is-mobile",t[6]),1&i[0]&&($=get(t[0],"data.template.afterChart")),$?T?T.p(t,i):((T=create_if_block_5(t)).c(),T.m(h.parentNode,h)):T&&(T.d(1),T=null),t[1]?M&&(group_outros(),transition_out(M,1,1,(function(){M=null})),check_outros()):M?(M.p(t,i),2&i[0]&&transition_in(M,1)):((M=create_if_block_1$5(t)).c(),transition_in(M,1),M.m(d.parentNode,d)),8&i[0]){var s;for(A=t[3].afterBody,s=0;s1?e-1:0),r=1;r

")),128&t.$$.dirty[0]&&n(10,k=purifyHTML(get(w,"metadata.publish.custom-css",""),"")),4225&t.$$.dirty[0]&&n(17,M={__:b,purifyHtml:clean,get:get,theme:s,data:i,chart:w,caption:v}),147457&t.$$.dirty[0]&&n(16,T=function(t,e,n){return t.map((function(t){t.props=_objectSpread2(_objectSpread2(_objectSpread2({},t.data||{}),n),{},{id:t.id}),t.component.test&&(t.test=t.component.test);var r=get(e,"data.options.blocks",{})[t.id];return r?_objectSpread2(_objectSpread2({},t),r):t}))}([].concat(c,f),s,M)),69765&t.$$.dirty[0]&&n(3,l={header:h(T,"header",{chart:w,data:i,theme:s,isStyleStatic:y}),aboveFooter:h(T,"aboveFooter",{chart:w,data:i,theme:s,isStyleStatic:y}),footerLeft:h(T,"footerLeft",{chart:w,data:i,theme:s,isStyleStatic:y}),footerCenter:h(T,"footerCenter",{chart:w,data:i,theme:s,isStyleStatic:y}),footerRight:h(T,"footerRight",{chart:w,data:i,theme:s,isStyleStatic:y}),belowFooter:h(T,"belowFooter",{chart:w,data:i,theme:s,isStyleStatic:y}),afterBody:h(T,"afterBody",{chart:w,data:i,theme:s,isStyleStatic:y}),menu:h(T,"menu",{chart:w,data:i,theme:s,isStyleStatic:y})}),1&t.$$.dirty[0]&&n(4,p=get(s,"data.options.menu",{}))},[s,_,y,l,p,d,A,w,$,E,k,S,i,function(t){binding_callbacks[t?"unshift":"push"]((function(){n(5,d=t)}))}]}var Visualization=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=e.call(this)),t,instance$g,create_fragment$g,safe_not_equal,{data:12,theme:0,isStylePlain:1,isStyleStatic:2},[-1,-1]),r}return n}(SvelteComponent);function render$1(){new Visualization({target:document.getElementById("__svelte-dw"),props:window.__DW_SVELTE_PROPS__,hydrate:!0})}render$1()})();