!function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function r(t){t.forEach(n)}function o(t){return"function"==typeof t}function a(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function i(t,n){t.appendChild(n)}function u(t,n,e){t.insertBefore(n,e||null)}function c(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}var l,s=function(t,n){void 0===n&&(n=null),this.e=f("div"),this.a=n,this.u(t)};function d(t){l=t}s.prototype.m=function(t,n){void 0===n&&(n=null);for(var e=0;e<this.n.length;e+=1)u(t,this.n[e],n);this.t=t},s.prototype.u=function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)},s.prototype.p=function(t){this.d(),this.u(t),this.m(this.t,this.a)},s.prototype.d=function(){this.n.forEach(c)};var h=[],$=[],m=[],g=[],y=Promise.resolve(),v=!1;function b(t){m.push(t)}var _=!1,x=new Set;function w(){if(!_){_=!0;do{for(var t=0;t<h.length;t+=1){var n=h[t];d(n),k(n.$$)}for(h.length=0;$.length;)$.pop()();for(var e=0;e<m.length;e+=1){var r=m[e];x.has(r)||(x.add(r),r())}m.length=0}while(h.length);for(;g.length;)g.pop()();v=!1,_=!1,x.clear()}}function k(t){if(null!==t.fragment){t.update(),r(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(b)}}var A=new Set;function j(t,n){-1===t.$$.dirty[0]&&(h.push(t),v||(v=!0,y.then(w)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function E(a,i,u,c,f,p,s){void 0===s&&(s=[-1]);var h=l;d(a);var $,m,g=i.props||{},y=a.$$={fragment:null,ctx:null,props:p,update:t,not_equal:f,bound:e(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(h?h.$$.context:[]),callbacks:e(),dirty:s},v=!1;y.ctx=u?u(a,g,(function(t,n){for(var e=[],r=arguments.length-2;r-- >0;)e[r]=arguments[r+2];var o=e.length?e[0]:n;return y.ctx&&f(y.ctx[t],y.ctx[t]=o)&&(y.bound[t]&&y.bound[t](o),v&&j(a,t)),n})):[],y.update(),v=!0,r(y.before_update),y.fragment=!!c&&c(y.ctx),i.target&&(i.hydrate?y.fragment&&y.fragment.l(function(t){return Array.from(t.childNodes)}(i.target)):y.fragment&&y.fragment.c(),i.intro&&($=a.$$.fragment)&&$.i&&(A.delete($),$.i(m)),function(t,e,a){var i=t.$$,u=i.fragment,c=i.on_mount,f=i.on_destroy,p=i.after_update;u&&u.m(e,a),b((function(){var e=c.map(n).filter(o);f?f.push.apply(f,e):r(e),t.$$.on_mount=[]})),p.forEach(b)}(a,i.target,i.anchor),w()),d(h)}var O=function(){};function N(n){var e,r,o,a,l;return{c:function(){var t,i,u;e=f("span"),r=p(n[1]),o=p(":"),a=p(" "),t=e,i="class",null==(u="map-attribution-caption")?t.removeAttribute(i):t.getAttribute(i)!==u&&t.setAttribute(i,u),l=new s(n[0],null)},m:function(t,n){u(t,e,n),i(e,r),i(e,o),u(t,a,n),l.m(t,n)},p:function(t,n){var e=n[0];2&e&&function(t,n){n=""+n,t.data!==n&&(t.data=n)}(r,t[1]),1&e&&l.p(t[0])},i:t,o:t,d:function(t){t&&c(e),t&&c(a),t&&l.d()}}}function C(t,n,e){var r,o,a,i,u,c=n.props,f=c.get,p=c.__;return t.$set=function(t){"props"in t&&e(2,c=t.props)},t.$$.update=function(){if(4&t.$$.dirty&&e(3,o=c.chart),4&t.$$.dirty&&e(4,a=c.theme),4&t.$$.dirty&&e(5,i=c.data),16&t.$$.dirty&&e(1,u=f(a,"data.options.blocks.map-data.data.caption",p("footer / map data"))),41&t.$$.dirty&&(e(0,r=f(i,"publishData.basemap.meta.attribution",!1)),r&&"string"!=typeof r)){var n=Object.keys(r).reduce((function(t,n){return t[n.split(/[-_]/)[0].toLowerCase()]=n,t}),{});e(0,r=r[o.language]||r[n[o.language.split(/[-_]/)[0]]]||r[n.en]||r[Object.keys(r)[0]])}},[r,u,c]}O.prototype.$destroy=function(){var n,e;n=1,null!==(e=this.$$).fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[]),this.$destroy=t},O.prototype.$on=function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}},O.prototype.$set=function(){};var M=function(t){function n(n){t.call(this),E(this,n,C,N,a,{props:2})}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(O);M.test=function(t){return function(t,n,e){if(void 0===n&&(n=null),void 0===e&&(e=null),!n)return t;for(var r=n.split("."),o=t,a=0;a<r.length&&null!=o;a++)o=o[r[a]];return null==o?e:o}(t.data,"publishData.basemap.meta.attribution",!1)},window.dw.block.register("MapAttribution",M)}();
