|
|
t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+p]=255&a,p+=d,a/=256,l-=8);e[r+p-d]|=128*y}},21839:function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return!!e&&("symbol"===t(Symbol.observable)&&"function"==typeof e[Symbol.observable]?e===e[Symbol.observable]():"function"==typeof e["@@observable"]&&e===e["@@observable"]())}},11354:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var a=r(81528),s=Symbol("max"),u=Symbol("length"),l=Symbol("lengthCalculator"),c=Symbol("allowStale"),f=Symbol("maxAge"),h=Symbol("dispose"),p=Symbol("noDisposeOnSet"),d=Symbol("lruList"),y=Symbol("cache"),v=Symbol("updateAgeOnGet"),m=function(){return 1},g=function(){function e(t){if(n(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[s]=t.max||1/0;var r=t.length||m;if(this[l]="function"!=typeof r?m:r,this[c]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[f]=t.maxAge||0,this[h]=t.dispose,this[p]=t.noDisposeOnSet||!1,this[v]=t.updateAgeOnGet||!1,this.reset()}return o(e,[{key:"max",get:function(){return this[s]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||1/0,w(this)}},{key:"allowStale",get:function(){return this[c]},set:function(e){this[c]=!!e}},{key:"maxAge",get:function(){return this[f]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[f]=e,w(this)}},{key:"lengthCalculator",get:function(){return this[l]},set:function(e){var t=this;"function"!=typeof e&&(e=m),e!==this[l]&&(this[l]=e,this[u]=0,this[d].forEach((function(e){e.length=t[l](e.value,e.key),t[u]+=e.length}))),w(this)}},{key:"length",get:function(){return this[u]}},{key:"itemCount",get:function(){return this[d].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var r=this[d].tail;null!==r;){var n=r.prev;O(this,e,r,t),r=n}}},{key:"forEach",value:function(e,t){t=t||this;for(var r=this[d].head;null!==r;){var n=r.next;O(this,e,r,t),r=n}}},{key:"keys",value:function(){return this[d].toArray().map((function(e){return e.key}))}},{key:"values",value:function(){return this[d].toArray().map((function(e){return e.value}))}},{key:"reset",value:function(){var e=this;this[h]&&this[d]&&this[d].length&&this[d].forEach((function(t){return e[h](t.key,t.value)})),this[y]=new Map,this[d]=new a,this[u]=0}},{key:"dump",value:function(){var e=this;return this[d].map((function(t){return!_(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}})).toArray().filter((function(e){return e}))}},{key:"dumpLru",value:function(){return this[d]}},{key:"set",value:function(e,t,r){if((r=r||this[f])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");var n=r?Date.now():0,i=this[l](t,e);if(this[y].has(e)){if(i>this[s])return x(this,this[y].get(e)),!1;var o=this[y].get(e).value;return this[h]&&(this[p]||this[h](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[u]+=i-o.length,o.length=i,this.get(e),w(this),!0}var a=new k(e,t,i,n,r);return a.length>this[s]?(this[h]&&this[h](e,t),!1):(this[u]+=a.length,this[d].unshift(a),this[y].set(e,this[d].head),w(this),!0)}},{key:"has",value:function(e){if(!this[y].has(e))return!1;var t=this[y].get(e).value;return!_(this,t)}},{key:"get",value:function(e){return b(this,e,!0)}},{key:"peek",value:function(e){return b(this,e,!1)}},{key:"pop",value:function(){var e=this[d].tail;return e?(x(this,e),e.value):null}},{key:"del",value:function(e){x(this,this[y].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var o=i-t;o>0&&this.set(n.k,n.v,o)}}}},{key:"prune",value:function(){var e=this;this[y].forEach((function(t,r){return b(e,r,!1)}))}}]),e}(),b=function(e,t,r){var n=e[y].get(t);if(n){var i=n.value;if(_(e,i)){if(x(e,n),!e[c])return}else r&&(e[v]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return i.value}},_=function(e,t){if(!t||!t.maxAge&&!e[f])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[f]&&r>e[f]},w=function(e){if(e[u]>e[s])for(var t=e[d].tail;e[u]>e[s]&&null!==t;){var r=t.prev;x(e,t),t=r}},x=function(e,t){if(t){var r=t.value;e[h]&&e[h](r.key,r.value),e[u]-=r.length,e[y].delete(r.key),e[d].removeNode(t)}},k=o((function e(t,r,i,o,a){n(this,e),this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=a||0})),O=function(e,t,r,n){var i=r.value;_(e,i)&&(x(e,r),e[c]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=g},85976:function(e){var t={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},r=" ",n=/(italic|oblique)$/i,i={};e.exports=function(e,o,a){var s=i[e];if(!s){Array.isArray(e)||(e=[e]);for(var u=400,l="normal",c=[],f=0,h=e.length;f<h;++f){var p=e[f].split(" "),d=p[p.length-1].toLowerCase();for(var y in"normal"==d||"italic"==d||"oblique"==d?(l=d,p.pop(),d=p[p.length-1].toLowerCase()):n.test(d)&&(d=d.replace(n,""),l=p[p.length-1].replace(d,"")),t)if(d==y||d==y.replace("-","")||d==y.replace("-",r)){u=t[y],p.pop();break}"number"==typeof d&&(u=d);var v=p.join(r).replace("Klokantech Noto Sans","Noto Sans");-1!==v.indexOf(r)&&(v='"'+v+'"'),c.push(v)}s=i[e]=[l,u,c]}return s[0]+r+s[1]+r+o+"px"+(a?"/"+a:"")+r+s[2]}},16223:function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=1e3,n=60*r,i=60*n,o=24*i,a=7*o,s=365.25*o;function u(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,l){l=l||{};var c=t(e);if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;case"minutes":case"minute":case"mins":case"min":case"m":return u*n;case"seconds":case"second":case"secs":case"sec":case"s":return u*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var t=Math.abs(e);if(t>=o)return u(e,t,o,"day");if(t>=i)return u(e,t,i,"hour");if(t>=n)return u(e,t,n,"minute");if(t>=r)return u(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=n)return Math.round(e/n)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},94992:function(e,t,r){"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(t),r.d(t,{Observable:function(){return j},Subject:function(){return J},filter:function(){return L},flatMap:function(){return N},interval:function(){return G},map:function(){return z},merge:function(){return U},multicast:function(){return Q},scan:function(){return te},unsubscribe:function(){return I}});var a=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._baseObserver=t,this._pendingPromises=new Set}var t,r,i;return t=e,(r=[{key:"complete",value:function(){var e=this;Promise.all(this._pendingPromises).then((function(){return e._baseObserver.complete()})).catch((function(t){return e._baseObserver.error(t)}))}},{key:"error",value:function(e){this._baseObserver.error(e)}},{key:"schedule",value:function(e){var t=this,r=Promise.all(this._pendingPromises),i=[],o=function(e){return i.push(e)},s=Promise.resolve().then((function(){return a(t,void 0,void 0,regeneratorRuntime.mark((function t(){var a,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r;case 2:return t.next=4,e(o);case 4:this._pendingPromises.delete(s),a=n(i);try{for(a.s();!(u=a.n()).done;)l=u.value,this._baseObserver.next(l)}catch(e){a.e(e)}finally{a.f()}case 7:case"end":return t.stop()}}),t,this)})))})).catch((function(e){t._pendingPromises.delete(s),t._baseObserver.error(e)}));this._pendingPromises.add(s)}}])&&o(t.prototype,r),i&&o(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=function(){return"function"==typeof Symbol},l=function(e){return u()&&Boolean(Symbol[e])},c=function(e){return l(e)?Symbol[e]:"@@"+e};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}l("asyncIterator")||(Symbol.asyncIterator=Symbol.asyncIterator||Symbol.for("Symbol.asyncIterator"));var m=c("iterator"),g=c("observable"),b=c("species");function _(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function w(e){var t=e.constructor;return void 0!==t&&null===(t=t[b])&&(t=void 0),void 0!==t?t:M}function x(e){return e instanceof M}function k(e){k.log?k.log(e):setTimeout((function(){throw e}),0)}function O(e){Promise.resolve().then((function(){try{e()}catch(e){k(e)}}))}function S(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=_(t,"unsubscribe");r&&r.call(t)}}catch(e){k(e)}}function E(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function T(e,t,r){e._state="running";var n=e._observer;try{var i=n?_(n,t):void 0;switch(t){case"next":i&&i.call(n,r);break;case"error":if(E(e),!i)throw r;i.call(n,r);break;case"complete":E(e),i&&i.call(n)}}catch(e){k(e)}"closed"===e._state?S(e):"running"===e._state&&(e._state="ready")}function R(e,t,r){if("closed"!==e._state)return"buffering"===e._state?(e._queue=e._queue||[],void e._queue.push({type:t,value:r})):"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void O((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";var r,n=y(t);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(T(e,i.type,i.value),"closed"===e._state)break}}catch(e){n.e(e)}finally{n.f()}}}(e)}))):void T(e,t,r)}var P=function(){function e(t,r){h(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var n=new C(this);try{this._cleanup=r.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return d(e,[{key:"closed",get:function(){return"closed"===this._state}},{key:"unsubscribe",value:function(){"closed"!==this._state&&(E(this),S(this))}}]),e}(),C=function(){function e(t){h(this,e),this._subscription=t}return d(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}},{key:"next",value:function(e){R(this._subscription,"next",e)}},{key:"error",value:function(e){R(this._subscription,"error",e)}},{key:"complete",value:function(){R(this._subscription,"complete")}}]),e}(),M=function(e){function t(e){if(h(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return d(t,[{key:"subscribe",value:function(e,t,r){return"object"===f(e)&&null!==e||(e={next:e,error:t,complete:r}),new P(e,this._subscriber)}},{key:"pipe",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0,a=[e].concat(n);o<a.length;o++){var s=a[o];t=s(t)}return t}},{key:"tap",value:function(e,r,n){var i=this,o="object"!==f(e)||null===e?{next:e,error:r,complete:n}:e;return new t((function(e){return i.subscribe({next:function(t){o.next&&o.next(t),e.next(t)},error:function(t){o.error&&o.error(t),e.error(t)},complete:function(){o.complete&&o.complete(),e.complete()},start:function(e){o.start&&o.start(e)}})}))}},{key:"forEach",value:function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:function(e){n(e)},complete:function(){r(void 0)}});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r(void 0)}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(w(this))((function(r){return t.subscribe({next:function(t){var n=t;try{n=e(t)}catch(e){return r.error(e)}r.next(n)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(w(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(e,t){var r=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=w(this),i=arguments.length>1,o=!1,a=t;return new n((function(t){return r.subscribe({next:function(r){var n=!o;if(o=!0,!n||i)try{a=e(a,r)}catch(e){return t.error(e)}else a=r},error:function(e){t.error(e)},complete:function(){if(!o&&!i)return t.error(new TypeError("Cannot reduce an empty sequence"));t.next(a),t.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=w(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=w(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){var o;if(e)try{o=e(t)}catch(e){return n.error(e)}else o=t;var s=r.from(o).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(s);e>=0&&i.splice(e,1),a()}});i.push(s)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:e,value:function(){return this}}],[{key:"from",value:function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var n=_(e,g);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return x(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(l("iterator")){var o=_(e,m);if(o)return new r((function(t){O((function(){if(!t.closed){var r,n=y(o.call(e));try{for(n.s();!(r=n.n()).done;){var i=r.value;if(t.next(i),t.closed)return}}catch(e){n.e(e)}finally{n.f()}t.complete()}}))}))}if(Array.isArray(e))return new r((function(t){O((function(){if(!t.closed){var r,n=y(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(t.next(i),t.closed)return}}catch(e){n.e(e)}finally{n.f()}t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i="function"==typeof this?this:t;return new i((function(e){O((function(){if(!e.closed){var t,n=y(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.next(i),e.closed)return}}catch(e){n.e(e)}finally{n.f()}e.complete()}}))}))}},{key:b,get:function(){return this}}]),t}((Symbol.observable,g));u()&&Object.defineProperty(M,Symbol("extensions"),{value:{symbol:g,hostReportError:k},configurable:!0});var j=M;var I=function(e){"function"==typeof e?e():e&&"function"==typeof e.unsubscribe&&e.unsubscribe()},A=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var L=function(e){return function(t){return new j((function(r){var n=new s(r),i=t.subscribe({complete:function(){n.complete()},error:function(e){n.error(e)},next:function(t){var r=this;n.schedule((function(n){return A(r,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e(t);case 2:if(!r.sent){r.next=4;break}n(t);case 4:case"end":return r.stop()}}),r)})))}))}});return function(){return I(i)}}))}};function D(e){return e&&l("asyncIterator")&&e[Symbol.asyncIterator]}var Z=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},F=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}};var N=function(e){return function(t){return new j((function(r){var n=new s(r),i=t.subscribe({complete:function(){n.complete()},error:function(e){n.error(e)},next:function(t){var r=this;n.schedule((function(n){return Z(r,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a,s,u,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e(t);case 2:if(a=r.sent,!((f=a)&&l("iterator")&&f[Symbol.iterator]||D(a))){r.next=31;break}r.prev=4,s=F(a);case 6:return r.next=8,s.next();case 8:if((u=r.sent).done){r.next=14;break}c=u.value,n(c);case 12:r.next=6;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(4),i={error:r.t0};case 19:if(r.prev=19,r.prev=20,!u||u.done||!(o=s.return)){r.next=24;break}return r.next=24,o.call(s);case 24:if(r.prev=24,!i){r.next=27;break}throw i.error;case 27:return r.finish(24);case 28:return r.finish(19);case 29:r.next=32;break;case 31:a.map((function(e){return n(e)}));case 32:case"end":return r.stop()}var f}),r,null,[[4,16,19,29],[20,,24,28]])})))}))}});return function(){return I(i)}}))}};function G(e){return new M((function(t){var r=0,n=setInterval((function(){t.next(r++)}),e);return function(){return clearInterval(n)}}))}var B=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var z=function(e){return function(t){return new j((function(r){var n=new s(r),i=t.subscribe({complete:function(){n.complete()},error:function(e){n.error(e)},next:function(t){var r=this;n.schedule((function(n){return B(r,void 0,void 0,regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e(t);case 2:i=r.sent,n(i);case 4:case"end":return r.stop()}}),r)})))}))}});return function(){return I(i)}}))}};var U=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?M.from([]):new M((function(e){var r=0,n=t.map((function(n){return n.subscribe({error:function(t){e.error(t),i()},next:function(t){e.next(t)},complete:function(){++r===t.length&&(e.complete(),i())}})})),i=function(){n.forEach((function(e){return I(e)}))};return i}))};function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=$(e);if(t){var i=$(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return H(this,r)}}function H(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(o,e);var t,r,n,i=K(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,(function(t){return e._observers.add(t),function(){return e._observers.delete(t)}})))._observers=new Set,e}return t=o,(r=[{key:"next",value:function(e){var t,r=V(this._observers);try{for(r.s();!(t=r.n()).done;)t.value.next(e)}catch(e){r.e(e)}finally{r.f()}}},{key:"error",value:function(e){var t,r=V(this._observers);try{for(r.s();!(t=r.n()).done;)t.value.error(e)}catch(e){r.e(e)}finally{r.f()}}},{key:"complete",value:function(){var e,t=V(this._observers);try{for(t.s();!(e=t.n()).done;)e.value.complete()}catch(e){t.e(e)}finally{t.f()}}}])&&Y(t.prototype,r),n&&Y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(j);var Q=function(e){var t,r=new J,n=0;return new j((function(i){t||(t=e.subscribe(r));var o=r.subscribe(i);return n++,function(){n--,o.unsubscribe(),0===n&&(I(t),t=void 0)}}))},ee=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var te=function(e,t){return function(r){return new j((function(n){var i,o=0,a=new s(n),u=r.subscribe({complete:function(){a.complete()},error:function(e){a.error(e)},next:function(r){var n=this;a.schedule((function(a){return ee(n,void 0,void 0,regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=0===o?void 0===t?r:t:i,n.next=3,e(s,r,o++);case 3:i=n.sent,a(i);case 5:case"end":return n.stop()}}),n)})))}))}});return function(){return I(u)}}))}}},72443:function(e,t,r){"use strict";e.exports=i;var n=r(27303);function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function u(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function l(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function c(e,t,r){var n=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=e;i--)r.buf[i+n]=r.buf[i]}function f(e,t){for(var r=0;r<e.length;r++)t.writeVarint(e[r])}function h(e,t){for(var r=0;r<e.length;r++)t.writeSVarint(e[r])}function p(e,t){for(var r=0;r<e.length;r++)t.writeFloat(e[r])}function d(e,t){for(var r=0;r<e.length;r++)t.writeDouble(e[r])}function y(e,t){for(var r=0;r<e.length;r++)t.writeBoolean(e[r])}function v(e,t){for(var r=0;r<e.length;r++)t.writeFixed32(e[r])}function m(e,t){for(var r=0;r<e.length;r++)t.writeSFixed32(e[r])}function g(e,t){for(var r=0;r<e.length;r++)t.writeFixed64(e[r])}function b(e,t){for(var r=0;r<e.length;r++)t.writeSFixed64(e[r])}function _(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function w(e,t,r){e[r]=t,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function x(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,o=this.pos;this.type=7&n,e(i,t,this),this.pos===o&&this.skip(n)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=_(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=x(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=_(this.buf,this.pos)+_(this.buf,this.pos+4)*o;return this.pos+=8,e},readSFixed64:function(){var e=_(this.buf,this.pos)+x(this.buf,this.pos+4)*o;return this.pos+=8,e},readFloat:function(){var e=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,r,n=this.buf;return t=127&(r=n[this.pos++]),r<128?t:(t|=(127&(r=n[this.pos++]))<<7,r<128?t:(t|=(127&(r=n[this.pos++]))<<14,r<128?t:(t|=(127&(r=n[this.pos++]))<<21,r<128?t:function(e,t,r){var n,i,o=r.buf;if(i=o[r.pos++],n=(112&i)>>4,i<128)return l(e,n,t);if(i=o[r.pos++],n|=(127&i)<<3,i<128)return l(e,n,t);if(i=o[r.pos++],n|=(127&i)<<10,i<128)return l(e,n,t);if(i=o[r.pos++],n|=(127&i)<<17,i<128)return l(e,n,t);if(i=o[r.pos++],n|=(127&i)<<24,i<128)return l(e,n,t);if(i=o[r.pos++],n|=(1&i)<<31,i<128)return l(e,n,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(r=n[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&s?function(e,t,r){return s.decode(e.subarray(t,r))}(this.buf,t,e):function(e,t,r){var n="",i=t;for(;i<r;){var o,a,s,u=e[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>r)break;1===c?u<128&&(l=u):2===c?128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,n+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),n+=String.fromCharCode(l),i+=c}return n}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var r=u(this);for(e=e||[];this.pos<r;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==i.Bytes)return e.push(this.readSVarint());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==i.Bytes)return e.push(this.readBoolean());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==i.Bytes)return e.push(this.readFloat());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==i.Bytes)return e.push(this.readDouble());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed32());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed32());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed64());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed64());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===i.Varint)for(;this.buf[this.pos++]>127;);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),w(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),w(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),w(this.buf,-1&e,this.pos),w(this.buf,Math.floor(e*a),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),w(this.buf,-1&e,this.pos),w(this.buf,Math.floor(e*a),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var r,n;e>=0?(r=e%4294967296|0,n=e/4294967296|0):(n=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,n=n+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos]=127&e}(r,0,t),function(e,t){var r=(7&e)<<4;if(t.buf[t.pos++]|=r|((e>>>=3)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;t.buf[t.pos++]=127&e}(n,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,r){for(var n,i,o=0;o<t.length;o++){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){n>56319||o+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):i=n;continue}if(n<56320){e[r++]=239,e[r++]=191,e[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(e[r++]=239,e[r++]=191,e[r++]=189,i=null);n<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(n<65536?e[r++]=n>>12|224:(e[r++]=n>>18|240,e[r++]=n>>12&63|128),e[r++]=n>>6&63|128),e[r++]=63&n|128)}return r}(this.buf,e,this.pos);var r=this.pos-t;r>=128&&c(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(e){this.realloc(4),n.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),n.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r<t;r++)this.buf[this.pos++]=e[r]},writeRawMessage:function(e,t){this.pos++;var r=this.pos;e(t,this);var n=this.pos-r;n>=128&&c(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(e,t,r){this.writeTag(e,i.Bytes),this.writeRawMessage(t,r)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,b,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},83384:function(e,t,r){"use strict";r.d(t,{Z:function(){return mr}});var n=6378137,i=.0066943799901413165,o=484813681109536e-20,a=Math.PI/2,s=1e-10,u=.017453292519943295,l=57.29577951308232,c=Math.PI/4,f=2*Math.PI,h=3.14159265359,p={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},d={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},y=/[\s_\-\/\(\)]/g;function v(e,t){if(e[t])return e[t];for(var r,n=Object.keys(e),i=t.toLowerCase().replace(y,""),o=-1;++o<n.length;)if((r=n[o]).toLowerCase().replace(y,"")===i)return e[r]}function m(e){var t,r,n,i={},o=e.split("+").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r=t.split("=");return r.push(!0),e[r[0].toLowerCase()]=r[1],e}),{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*u},lat_1:function(e){i.lat1=e*u},lat_2:function(e){i.lat2=e*u},lat_ts:function(e){i.lat_ts=e*u},lon_0:function(e){i.long0=e*u},lon_1:function(e){i.long1=e*u},lon_2:function(e){i.long2=e*u},alpha:function(e){i.alpha=parseFloat(e)*u},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*u},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map((function(e){return parseFloat(e)}))},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=v(d,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*u},pm:function(e){var t=v(p,e);i.from_greenwich=(t||parseFloat(e))*u},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){var t="ewnsud";3===e.length&&-1!==t.indexOf(e.substr(0,1))&&-1!==t.indexOf(e.substr(1,1))&&-1!==t.indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)r=o[t],t in a?"function"==typeof(n=a[t])?n(r):i[n]=r:i[t]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i}var g=function(e){return new O(e).output()},b=/\s/,_=/[A-Za-z]/,w=/[A-Za-z84]/,x=/[,\]]/,k=/[\d\.E\-\+]/;function O(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function S(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce((function(e,t){return E(t,e),e}),n);t&&(e[t]=i)}function E(e,t){if(Array.isArray(e)){var r=e.shift();if("PARAMETER"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(t[r]={},void E(e[0],t[r])):void(t[r]=e[0]);if(e.length)if("TOWGS84"!==r){if("AXIS"===r)return r in t||(t[r]=[]),void t[r].push(e);var n;switch(Array.isArray(r)||(t[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&E(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&E(e[3],t[r]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return e[0]=["name",e[0]],void S(t,r,e);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return E(e,t[r]);return S(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}O.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;b.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},O.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(x.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},O.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},O.prototype.number=function(e){if(!k.test(e)){if(x.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},O.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},O.prototype.keyword=function(e){if(w.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!x.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},O.prototype.neutral=function(e){if(_.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(k.test(e))return this.word=e,void(this.state=3);if(!x.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},O.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function R(e){return.017453292519943295*e}function P(e){var t=g(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return E(t,i),function(e){if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"===T(e.PROJECTION)?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",r=0,n=e.AXIS.length;r<n;++r){var i=[e.AXIS[r][0].toLowerCase(),e.AXIS[r][1].toLowerCase()];-1!==i[0].indexOf("north")||("y"===i[0]||"lat"===i[0])&&"north"===i[1]?t+="n":-1!==i[0].indexOf("south")||("y"===i[0]||"lat"===i[0])&&"south"===i[1]?t+="s":-1!==i[0].indexOf("east")||("x"===i[0]||"lon"===i[0])&&"east"===i[1]?t+="e":-1===i[0].indexOf("west")&&("x"!==i[0]&&"lon"!==i[0]||"west"!==i[1])||(t+="w")}2===t.length&&(t+="u"),3===t.length&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var o=e.GEOGCS;function a(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(o=e),o&&(o.DATUM?e.datumCode=o.DATUM.name.toLowerCase():e.datumCode=o.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),o.DATUM&&o.DATUM.SPHEROID&&(e.ellps=o.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=o.DATUM.SPHEROID.a,e.rf=parseFloat(o.DATUM.SPHEROID.rf,10)),o.DATUM&&o.DATUM.TOWGS84&&(e.datum_params=o.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",R],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",R],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",R],["lat0","latitude_of_origin",R],["lat0","standard_parallel_1",R],["lat1","standard_parallel_1",R],["lat2","standard_parallel_2",R],["azimuth","Azimuth"],["alpha","azimuth",R],["srsCode","name"]].forEach((function(t){return function(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],3===t.length&&(e[r]=t[2](e[r])))}(e,t)})),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=R(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(i),i}function C(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?C[e]=m(arguments[1]):C[e]=P(arguments[1]):C[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?C.apply(t,e):C(e)}));if("string"==typeof e){if(e in C)return C[e]}else"EPSG"in e?C["EPSG:"+e.EPSG]=e:"ESRI"in e?C["ESRI:"+e.ESRI]=e:"IAU2000"in e?C["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(C);var M=C;var j=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var I=["3857","900913","3785","102113"];var A=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in M}(e))return M[e];if(function(e){return j.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=P(e);if(function(e){var t=v(e,"authority");if(t){var r=v(t,"epsg");return r&&I.indexOf(r)>-1}}(t))return M["EPSG:3857"];var r=function(e){var t=v(e,"extension");if(t)return v(t,"proj4")}(t);return r?m(r):t}return function(e){return"+"===e[0]}(e)?m(e):void 0};function L(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e}function D(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function Z(e){return e<0?-1:1}function F(e){return Math.abs(e)<=h?e:e-Z(e)*f}function N(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(a-t))/n}function G(e,t){for(var r,n,i=.5*e,o=a-2*Math.atan(t),s=0;s<=15;s++)if(r=e*Math.sin(o),o+=n=a-2*Math.atan(t*Math.pow((1-r)/(1+r),i))-o,Math.abs(n)<=1e-10)return o;return-9999}function B(e){return e}var z=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,i=e.y;if(i*l>90&&i*l<-90&&n*l>180&&n*l<-180)return null;if(Math.abs(Math.abs(i)-a)<=s)return null;if(this.sphere)t=this.x0+this.a*this.k0*F(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(c+.5*i));else{var o=Math.sin(i),u=N(this.e,i,o);t=this.x0+this.a*this.k0*F(n-this.long0),r=this.y0-this.a*this.k0*Math.log(u)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,i=e.y-this.y0;if(this.sphere)r=a-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(r=G(this.e,o)))return null}return t=F(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:B,inverse:B,names:["longlat","identity"]}],U={},q=[];function V(e,t){var r=q.length;return e.names?(q[r]=e,e.names.forEach((function(e){U[e.toLowerCase()]=r})),this):(console.log(t),!0)}var X={start:function(){z.forEach(V)},add:V,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==U[t]&&q[U[t]]?q[U[t]]:void 0}},Y={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},W=Y.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Y.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var K={};K.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},K.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},K.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},K.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},K.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},K.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},K.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},K.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},K.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},K.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},K.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},K.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},K.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},K.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},K.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},K.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},K.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var H=function(e,t,r,n,i,a,s){var u={};return u.datum_type=void 0===e||"none"===e?5:4,t&&(u.datum_params=t.map(parseFloat),0===u.datum_params[0]&&0===u.datum_params[1]&&0===u.datum_params[2]||(u.datum_type=1),u.datum_params.length>3&&(0===u.datum_params[3]&&0===u.datum_params[4]&&0===u.datum_params[5]&&0===u.datum_params[6]||(u.datum_type=2,u.datum_params[3]*=o,u.datum_params[4]*=o,u.datum_params[5]*=o,u.datum_params[6]=u.datum_params[6]/1e6+1))),s&&(u.datum_type=3,u.grids=s),u.a=r,u.b=n,u.es=i,u.ep2=a,u},$={};function J(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:$[e]||null,isNull:!1}}function Q(e){return e/3600*Math.PI/180}function ee(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function te(e){return e.map((function(e){return[Q(e.longitudeShift),Q(e.latitudeShift)]}))}function re(e,t,r){return{name:ee(e,t+8,t+16).trim(),parent:ee(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function ne(e,t,r,n){for(var i=t+176,o=[],a=0;a<r.gridNodeCount;a++){var s={latitudeShift:e.getFloat32(i+16*a,n),longitudeShift:e.getFloat32(i+16*a+4,n),latitudeAccuracy:e.getFloat32(i+16*a+8,n),longitudeAccuracy:e.getFloat32(i+16*a+12,n)};o.push(s)}return o}function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){if(!(this instanceof oe))return new oe(e);t=t||function(e){if(e)throw e};var r=A(e);if("object"===ie(r)){var n=oe.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=v(K,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var o,a,u,l,c,f,h,p=function(e,t,r,n,i){if(!e){var o=v(Y,n);o||(o=W),e=o.a,t=o.b,r=o.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<s)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),d=(o=p.a,a=p.b,p.rf,u=r.R_A,f=((l=o*o)-(c=a*a))/l,h=0,u?(l=(o*=1-f*(.16666666666666666+f*(.04722222222222222+.022156084656084655*f)))*o,f=0):h=Math.sqrt(f),{es:f,e:h,ep2:(l-c)/c}),y=function(e){return void 0===e?null:e.split(",").map(J)}(r.nadgrids),m=r.datum||H(r.datumCode,r.datum_params,p.a,p.b,d.es,d.ep2,y);L(this,r),L(this,n),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=m,this.init(),t(null,this)}else t(e)}else t(e)}oe.projections=X,oe.projections.start();var ae=oe;function se(e,t,r){var n,i,o,s,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-a&&l>-1.001*a)l=-a;else if(l>a&&l<1.001*a)l=a;else{if(l<-a)return{x:-1/0,y:-1/0,z:e.z};if(l>a)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),i=Math.sin(l),s=Math.cos(l),o=i*i,{x:((n=r/Math.sqrt(1-t*o))+c)*s*Math.cos(u),y:(n+c)*s*Math.sin(u),z:(n*(1-t)+c)*i}}function ue(e,t,r,n){var i,o,s,u,l,c,f,h,p,d,y,v,m,g,b,_=1e-12,w=e.x,x=e.y,k=e.z?e.z:0;if(i=Math.sqrt(w*w+x*x),o=Math.sqrt(w*w+x*x+k*k),i/r<_){if(g=0,o/r<_)return a,b=-n,{x:e.x,y:e.y,z:e.z}}else g=Math.atan2(x,w);s=k/o,h=(u=i/o)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=s*l,m=0;do{m++,c=t*(f=r/Math.sqrt(1-t*p*p))/(f+(b=i*h+k*p-f*(1-t*p*p))),v=(y=s*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*h-(d=u*(1-c)*l)*p,h=d,p=y}while(v*v>1e-24&&m<30);return{x:g,y:Math.atan(y/Math.abs(d)),z:b}}function le(e){return 1===e||2===e}function ce(e,t,r){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return r;if(5===e.datum_type||5===t.datum_type)return r;var o=e.a,a=e.es;if(3===e.datum_type){if(0!==fe(e,!1,r))return;o=n,a=i}var s=t.a,u=t.b,l=t.es;if(3===t.datum_type&&(s=n,u=6356752.314,l=i),a===l&&o===s&&!le(e.datum_type)&&!le(t.datum_type))return r;if((r=se(r,a,o),le(e.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(2===t){var n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],l=r[6];return{x:l*(e.x-u*e.y+s*e.z)+n,y:l*(u*e.x+e.y-a*e.z)+i,z:l*(-s*e.x+a*e.y+e.z)+o}}}(r,e.datum_type,e.datum_params)),le(t.datum_type)&&(r=function(e,t,r){if(1===t)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(2===t){var n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],l=r[6],c=(e.x-n)/l,f=(e.y-i)/l,h=(e.z-o)/l;return{x:c+u*f-s*h,y:-u*c+f+a*h,z:s*c-a*f+h}}}(r,t.datum_type,t.datum_params)),r=ue(r,l,s,u),3===t.datum_type)&&0!==fe(t,!0,r))return;return r}function fe(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},o=[],a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=n;break}if(s.mandatory,null!==s.grid){var u=s.grid.subgrids[0],c=(Math.abs(u.del[1])+Math.abs(u.del[0]))/1e4,f=u.ll[0]-c,h=u.ll[1]-c,p=u.ll[0]+(u.lim[0]-1)*u.del[0]+c,d=u.ll[1]+(u.lim[1]-1)*u.del[1]+c;if(!(h>n.y||f>n.x||d<n.y||p<n.x||(i=he(n,t,u),isNaN(i.x))))break}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*l+" "+n.y*l+" tried: '"+o+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function he(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=F(i.x-Math.PI)+Math.PI;var o=pe(i,r);if(t){if(isNaN(o.x))return n;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,u=9;do{if(s=pe(o,r),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(u--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=F(o.x+r.ll[0]),n.y=o.y+r.ll[1]}else isNaN(o.x)||(n.x=e.x+o.x,n.y=e.y+o.y);return n}function pe(e,t){var r,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),o=Math.floor(n.y),a=n.x-1*i,s=n.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return u;if(o<0||o>=t.lim[1])return u;r=o*t.lim[0]+i;var l=t.cvs[r][0],c=t.cvs[r][1];r++;var f=t.cvs[r][0],h=t.cvs[r][1];r+=t.lim[0];var p=t.cvs[r][0],d=t.cvs[r][1];r--;var y=t.cvs[r][0],v=t.cvs[r][1],m=a*s,g=a*(1-s),b=(1-a)*(1-s),_=(1-a)*s;return u.x=b*l+g*f+_*y+m*p,u.y=b*c+g*h+_*v+m*d,u}function de(e,t,r){var n,i,o,a=r.x,s=r.y,u=r.z||0,l={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==r.z)switch(0===o?(n=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(n=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(n=u,i="z"),e.axis[o]){case"e":l[i]=n;break;case"w":l[i]=-n;break;case"n":l[i]=n;break;case"s":l[i]=-n;break;case"u":void 0!==r[i]&&(l.z=n);break;case"d":void 0!==r[i]&&(l.z=-n);break;default:return null}return l}function ye(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function ve(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function me(e,t,r,n){var i;if(Array.isArray(r)&&(r=ye(r)),function(e){ve(e.x),ve(e.y)}(r),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(r=me(e,i=new ae("WGS84"),r,n),e=i),n&&"enu"!==e.axis&&(r=de(e,!1,r)),"longlat"===e.projName)r={x:r.x*u,y:r.y*u,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),!(r=e.inverse(r)))return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=ce(e.datum,t.datum,r))return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),"longlat"===t.projName?r={x:r.x*l,y:r.y*l,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),n&&"enu"!==t.axis?de(t,!0,r):r}var ge=ae("WGS84");function be(e,t,r,n){var i,o,a;return Array.isArray(r)?(i=me(e,t,r,n)||{x:NaN,y:NaN},r.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(o=me(e,t,r,n),2===(a=Object.keys(r)).length||a.forEach((function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=r[n]})),o)}function _e(e){return e instanceof ae?e:e.oProj?e.oProj:ae(e)}var we=function(e,t,r){e=_e(e);var n,i=!1;return void 0===t?(t=e,e=ge,i=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=ge,i=!0),t=_e(t),r?be(e,t,r):(n={forward:function(r,n){return be(e,t,r,n)},inverse:function(r,n){return be(t,e,r,n)}},i&&(n.oProj=t),n)},xe="AJSAJS",ke="AFAFAF",Oe=65,Se=73,Ee=79,Te=86,Re=90,Pe={forward:Ce,inverse:function(e){var t=Ae(Ze(e.toUpperCase()));if(t.lat&&t.lon)return[t.lon,t.lat,t.lon,t.lat];return[t.left,t.bottom,t.right,t.top]},toPoint:Me};function Ce(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(p=e.easting,d=e.northing,y=e.zoneNumber,v=De(y),m=Math.floor(p/1e5),g=Math.floor(d/1e5)%20,i=m,o=g,a=v,s=a-1,u=xe.charCodeAt(s),l=ke.charCodeAt(s),c=u+i-1,f=l+o,h=!1,c>Re&&(c=c-Re+Oe-1,h=!0),(c===Se||u<Se&&c>Se||(c>Se||u<Se)&&h)&&c++,(c===Ee||u<Ee&&c>Ee||(c>Ee||u<Ee)&&h)&&++c===Se&&c++,c>Re&&(c=c-Re+Oe-1),f>Te?(f=f-Te+Oe-1,h=!0):h=!1,(f===Se||l<Se&&f>Se||(f>Se||l<Se)&&h)&&f++,(f===Ee||l<Ee&&f>Ee||(f>Ee||l<Ee)&&h)&&++f===Se&&f++,f>Te&&(f=f-Te+Oe-1),String.fromCharCode(c)+String.fromCharCode(f))+r.substr(r.length-5,t)+n.substr(n.length-5,t);var i,o,a,s,u,l,c,f,h;var p,d,y,v,m,g}(function(e){var t,r,n,i,o,a,s,u,l=e.lat,c=e.lon,f=6378137,h=.00669438,p=.9996,d=je(l),y=je(c);u=Math.floor((c+180)/6)+1,180===c&&(u=60);l>=56&&l<64&&c>=3&&c<12&&(u=32);l>=72&&l<84&&(c>=0&&c<9?u=31:c>=9&&c<21?u=33:c>=21&&c<33?u=35:c>=33&&c<42&&(u=37));s=je(6*(u-1)-180+3),t=h/(1-h),r=f/Math.sqrt(1-h*Math.sin(d)*Math.sin(d)),n=Math.tan(d)*Math.tan(d),i=t*Math.cos(d)*Math.cos(d),o=Math.cos(d)*(y-s),a=f*((1-h/4-3*h*h/64-5*h*h*h/256)*d-(3*h/8+3*h*h/32+45*h*h*h/1024)*Math.sin(2*d)+(15*h*h/256+45*h*h*h/1024)*Math.sin(4*d)-35*h*h*h/3072*Math.sin(6*d));var v=p*r*(o+(1-n+i)*o*o*o/6+(5-18*n+n*n+72*i-58*t)*o*o*o*o*o/120)+5e5,m=p*(a+r*Math.tan(d)*(o*o/2+(5-n+9*i+4*i*i)*o*o*o*o/24+(61-58*n+n*n+600*i-330*t)*o*o*o*o*o*o/720));l<0&&(m+=1e7);return{northing:Math.round(m),easting:Math.round(v),zoneNumber:u,zoneLetter:Le(l)}}({lat:e[1],lon:e[0]}),t)}function Me(e){var t=Ae(Ze(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function je(e){return e*(Math.PI/180)}function Ie(e){return e/Math.PI*180}function Ae(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,u,l,c,f,h,p,d=.9996,y=6378137,v=.00669438,m=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),g=r-5e5,b=t;n<"N"&&(b-=1e7),f=6*(i-1)-180+3,o=.006739496752268451,p=(h=b/d/6367449.145945056)+(3*m/2-27*m*m*m/32)*Math.sin(2*h)+(21*m*m/16-55*m*m*m*m/32)*Math.sin(4*h)+151*m*m*m/96*Math.sin(6*h),a=y/Math.sqrt(1-v*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),u=o*Math.cos(p)*Math.cos(p),l=.99330562*y/Math.pow(1-v*Math.sin(p)*Math.sin(p),1.5),c=g/(a*d);var _=p-a*Math.tan(p)/l*(c*c/2-(5+3*s+10*u-4*u*u-9*o)*c*c*c*c/24+(61+90*s+298*u+45*s*s-1.6983531815716497-3*u*u)*c*c*c*c*c*c/720);_=Ie(_);var w,x=(c-(1+2*s+u)*c*c*c/6+(5-2*u+28*s-3*u*u+8*o+24*s*s)*c*c*c*c*c/120)/Math.cos(p);if(x=f+Ie(x),e.accuracy){var k=Ae({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});w={top:k.lat,right:k.lon,bottom:_,left:x}}else w={lat:_,lon:x};return w}function Le(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function De(e){var t=e%6;return 0===t&&(t=6),t}function Ze(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>r)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(o,o+=2);for(var u=De(a),l=function(e,t){var r=xe.charCodeAt(t-1),n=1e5,i=!1;for(;r!==e.charCodeAt(0);){if(++r===Se&&r++,r===Ee&&r++,r>Re){if(i)throw"Bad character: "+e;r=Oe,i=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r=ke.charCodeAt(t-1),n=0,i=!1;for(;r!==e.charCodeAt(0);){if(++r===Se&&r++,r===Ee&&r++,r>Te){if(i)throw"Bad character: "+e;r=Oe,i=!0}n+=1e5}return n}(n.charAt(1),u);c<Fe(s);)c+=2e6;var f=r-o;if(f%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var h,p,d,y=f/2,v=0,m=0;return y>0&&(h=1e5/Math.pow(10,y),p=e.substring(o,o+y),v=parseFloat(p)*h,d=e.substring(o+y),m=parseFloat(d)*h),{easting:v+l,northing:m+c,zoneLetter:s,zoneNumber:a,accuracy:h}}function Fe(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t,r){if(!(this instanceof Ge))return new Ge(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"===Ne(e))this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ge.fromMGRS=function(e){return new Ge(Me(e))},Ge.prototype.toMGRS=function(e){return Ce([this.x,this.y],e)};var Be=Ge,ze=.046875,Ue=.01953125,qe=.01068115234375;function Ve(e){var t=[];t[0]=1-e*(.25+e*(ze+e*(Ue+e*qe))),t[1]=e*(.75-e*(ze+e*(Ue+e*qe)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t}function Xe(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}function Ye(e,t,r){for(var n=1/(1-t),i=e,o=20;o;--o){var a=Math.sin(i),u=1-t*a*a;if(i-=u=(Xe(i,a,Math.cos(i),r)-e)*(u*Math.sqrt(u))*n,Math.abs(u)<s)return i}return i}var We={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Ve(this.es),this.ml0=Xe(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,i=e.x,o=e.y,a=F(i-this.long0),u=Math.sin(o),l=Math.cos(o);if(this.es){var c=l*a,f=Math.pow(c,2),h=this.ep2*Math.pow(l,2),p=Math.pow(h,2),d=Math.abs(l)>s?Math.tan(o):0,y=Math.pow(d,2),v=Math.pow(y,2);t=1-this.es*Math.pow(u,2),c/=Math.sqrt(t);var m=Xe(o,u,l,this.en);r=this.a*(this.k0*c*(1+f/6*(1-y+h+f/20*(5-18*y+v+14*h-58*y*h+f/42*(61+179*v-v*y-479*y)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+u*a*c/2*(1+f/12*(5-y+9*h+4*p+f/30*(61+v-58*y+270*h-330*y*h+f/56*(1385+543*v-v*y-3111*y))))))+this.y0}else{var g=l*Math.sin(a);if(Math.abs(Math.abs(g)-1)<s)return 93;if(r=.5*this.a*this.k0*Math.log((1+g)/(1-g))+this.x0,n=l*Math.cos(a)/Math.sqrt(1-Math.pow(g,2)),(g=Math.abs(n))>=1){if(g-1>s)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,i,o=(e.x-this.x0)*(1/this.a),u=(e.y-this.y0)*(1/this.a);if(this.es)if(r=Ye(t=this.ml0+u/this.k0,this.es,this.en),Math.abs(r)<a){var l=Math.sin(r),c=Math.cos(r),f=Math.abs(c)>s?Math.tan(r):0,h=this.ep2*Math.pow(c,2),p=Math.pow(h,2),d=Math.pow(f,2),y=Math.pow(d,2);t=1-this.es*Math.pow(l,2);var v=o*Math.sqrt(t)/this.k0,m=Math.pow(v,2);n=r-(t*=f)*m/(1-this.es)*.5*(1-m/12*(5+3*d-9*h*d+h-4*p-m/30*(61+90*d-252*h*d+45*y+46*h-m/56*(1385+3633*d+4095*y+1574*y*d)))),i=F(this.long0+v*(1-m/6*(1+2*d+h-m/20*(5+28*d+24*y+8*h*d+6*h-m/42*(61+662*d+1320*y+720*y*d))))/c)}else n=a*Z(u),i=0;else{var g=Math.exp(o/this.k0),b=.5*(g-1/g),_=this.lat0+u/this.k0,w=Math.cos(_);t=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(b,2))),n=Math.asin(t),u<0&&(n=-n),i=0===b&&0===w?0:F(Math.atan2(b,w)+this.long0)}return e.x=i,e.y=n,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function Ke(e){var t=Math.exp(e);return t=(t-1/t)/2}function He(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))}function $e(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/(He(1,t)+1))),e<0?-t:t}function Je(e,t){for(var r,n=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return t+r*Math.sin(2*t)}function Qe(e,t,r){for(var n,i,o=Math.sin(t),a=Math.cos(t),s=Ke(r),u=function(e){var t=Math.exp(e);return(t+1/t)/2}(r),l=2*a*u,c=-2*o*s,f=e.length-1,h=e[f],p=0,d=0,y=0;--f>=0;)n=d,i=p,h=l*(d=h)-n-c*(p=y)+e[f],y=c*d-i+l*p;return[(l=o*u)*h-(c=a*s)*y,l*y+c*h]}var et={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(We.init.apply(this),this.forward=We.forward,this.inverse=We.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=.6650675310896665*r;var n=Je(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=F(e.x-this.long0),r=e.y;r=Je(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),a=Math.cos(t);r=Math.atan2(n,a*i),t=Math.atan2(o*i,He(n,i*a)),t=$e(Math.tan(t));var s,u,l=Qe(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(s=1/0,u=1/0),e.x=s,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=Qe(this.utg,2*i,2*n);i+=o[0],n+=o[1],n=Math.atan(Ke(n));var a=Math.sin(i),s=Math.cos(i),u=Math.sin(n),l=Math.cos(n);i=Math.atan2(a*l,He(u,l*s)),t=F((n=Math.atan2(u,l*s))+this.long0),r=Je(this.cgb,i)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]};var tt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(F(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*u,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,et.init.apply(this),this.forward=et.forward,this.inverse=et.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function rt(e,t){return Math.pow((1-e)/(1+e),t)}var nt={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+c)/(Math.pow(Math.tan(.5*this.lat0+c),this.C)*rt(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+c),this.C)*rt(this.e*Math.sin(r),this.ratexp))-a,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+c)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*rt(this.e*Math.sin(e.y),-.5*this.e))-a,!(Math.abs(r-e.y)<1e-14));--i)e.y=r;return i?(e.x=t,e.y=r,e):null},names:["gauss"]};var it={init:function(){nt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,i;return e.x=F(e.x-this.long0),nt.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),r=Math.cos(a),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o),n=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,nt.inverse.apply(this,[e]),e.x=F(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};var ot={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&(this.k0=.5*(1+Z(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&(this.k0=.5*this.cons*D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/N(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=D(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,i,o,u,l=e.x,c=e.y,f=Math.sin(c),h=Math.cos(c),p=F(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=s&&Math.abs(c+this.lat0)<=s?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*f+this.coslat0*h*Math.cos(p)),e.x=this.a*t*h*Math.sin(p)+this.x0,e.y=this.a*t*(this.coslat0*f-this.sinlat0*h*Math.cos(p))+this.y0,e):(r=2*Math.atan(this.ssfn_(c,f,this.e))-a,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=s?(o=N(this.e,c*this.con,this.con*f),u=2*this.a*this.k0*o/this.cons,e.x=this.x0+u*Math.sin(l-this.long0),e.y=this.y0-this.con*u*Math.cos(l-this.long0),e):(Math.abs(this.sinlat0)<s?(t=2*this.a*this.k0/(1+i*Math.cos(p)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(p))),e.y=t*(this.cosX0*n-this.sinX0*i*Math.cos(p))+this.y0),e.x=t*i*Math.sin(p)+this.x0,e))},inverse:function(e){var t,r,n,i,o;e.x-=this.x0,e.y-=this.y0;var u=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(u/(2*this.a*this.k0));return t=this.long0,r=this.lat0,u<=s?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/u),t=Math.abs(this.coslat0)<s?this.lat0>0?F(this.long0+Math.atan2(e.x,-1*e.y)):F(this.long0+Math.atan2(e.x,e.y)):F(this.long0+Math.atan2(e.x*Math.sin(l),u*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=s){if(u<=s)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=u*this.cons/(2*this.a*this.k0),r=this.con*G(this.e,n),t=this.con*F(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,u<=s?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/u),t=F(this.long0+Math.atan2(e.x*Math.sin(i),u*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*G(this.e,Math.tan(.5*(a+o)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,r){return t*=r,Math.tan(.5*(a+e))*Math.pow((1-t)/(1+t),.5*r)}};var at={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),o=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,u=0,l=o,c=-1e3,f=0;Math.abs(l-c)>1e-7;){if(++f>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=l,e},names:["somerc"]};function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ut=1e-7;var lt={init:function(){var e,t,r,n,i,o,l,h,p,d,y,v,m,g=0,b=0,_=0,w=0,x=0,k=0,O=0;this.no_off=(m="object"===st((v=this).PROJECTION)?Object.keys(v.PROJECTION)[0]:v.PROJECTION,"no_uoff"in v||"no_off"in v||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(m)),this.no_rot="no_rot"in this;var S=!1;"alpha"in this&&(S=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),S&&(O=this.alpha),E&&(g=this.rectified_grid_angle*u),S||E)b=this.longc;else if(_=this.long1,x=this.lat1,w=this.long2,k=this.lat2,Math.abs(x-k)<=ut||(e=Math.abs(x))<=ut||Math.abs(e-a)<=ut||Math.abs(Math.abs(this.lat0)-a)<=ut||Math.abs(Math.abs(k)-a)<=ut)throw new Error;var T=1-this.es;t=Math.sqrt(T),Math.abs(this.lat0)>s?(h=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*h*h,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/T),this.A=this.B*this.k0*t/e,(i=(n=this.B*t/(r*Math.sqrt(e)))*n-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(N(this.e,this.lat0,h),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),S||E?(S?(y=Math.asin(Math.sin(O)/n),E||(g=O)):(y=g,O=Math.asin(n*Math.sin(y))),this.lam0=b-Math.asin(.5*(i-1/i)*Math.tan(y))/this.B):(o=Math.pow(N(this.e,x,Math.sin(x)),this.B),l=Math.pow(N(this.e,k,Math.sin(k)),this.B),i=this.E/o,p=(l-o)/(l+o),d=((d=this.E*this.E)-l*o)/(d+l*o),(e=_-w)<-Math.pi?w-=f:e>Math.pi&&(w+=f),this.lam0=F(.5*(_+w)-Math.atan(d*Math.tan(.5*this.B*(_-w))/p)/this.B),y=Math.atan(2*Math.sin(this.B*F(_-this.lam0))/(i-1/i)),g=O=Math.asin(n*Math.sin(y))),this.singam=Math.sin(y),this.cosgam=Math.cos(y),this.sinrot=Math.sin(g),this.cosrot=Math.cos(g),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(O))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*y,this.v_pole_n=this.ArB*Math.log(Math.tan(c-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(c+i))},forward:function(e){var t,r,n,i,o,u,l,c,f={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-a)>s){if(t=.5*((o=this.E/Math.pow(N(this.e,e.y,Math.sin(e.y)),this.B))-(u=1/o)),r=.5*(o+u),i=Math.sin(this.B*e.x),n=(t*this.singam-i*this.cosgam)/r,Math.abs(Math.abs(n)-1)<s)throw new Error;c=.5*this.ArB*Math.log((1-n)/(1+n)),u=Math.cos(this.B*e.x),l=Math.abs(u)<ut?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,u)}else c=e.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*e.y;return this.no_rot?(f.x=l,f.y=c):(l-=this.u_0,f.x=c*this.cosrot+l*this.sinrot,f.y=l*this.cosrot-c*this.sinrot),f.x=this.a*f.x+this.x0,f.y=this.a*f.y+this.y0,f},inverse:function(e){var t,r,n,i,o,u,l,c={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((n=Math.exp(-this.BrA*r))-1/n),o=.5*(n+1/n),l=((u=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(l)-1)<s)c.x=0,c.y=l<0?-a:a;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=G(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(i*this.cosgam-u*this.singam,Math.cos(this.BrA*t))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};var ct={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<s)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=D(this.e,t,r),i=N(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),u=D(this.e,o,a),l=N(this.e,this.lat2,o),c=N(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>s?this.ns=Math.log(n/u)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=s&&(r=Z(r)*(a-2e-10));var n,i,o=Math.abs(Math.abs(r)-a);if(o>s)n=N(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((o=r*this.ns)<=0)return null;i=0}var u=this.ns*F(t-this.long0);return e.x=this.k0*(i*Math.sin(u))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(u))+this.y0,e},inverse:function(e){var t,r,n,i,o,s=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(s*s+u*u),r=1):(t=-Math.sqrt(s*s+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*s,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=G(this.e,n)))return null}else i=-a;return o=F(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"]};var ft={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y,c=F(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,i,o,a,s,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,a=t,s=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,l+=1}while(0===s&&l<15);return l>=15?null:e},names:["Krovak","krovak"]};function ht(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function pt(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function dt(e){return.375*e*(1+.25*e*(1+.46875*e))}function yt(e){return.05859375*e*e*(1+.75*e)}function vt(e){return e*e*e*(35/3072)}function mt(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function gt(e){return Math.abs(e)<a?e:e-Z(e)*Math.PI}function bt(e,t,r,n,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-r*Math.sin(2*o)+n*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*n*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN}var _t={init:function(){this.sphere||(this.e0=pt(this.es),this.e1=dt(this.es),this.e2=yt(this.es),this.e3=vt(this.es),this.ml0=this.a*ht(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,r,n=e.x,i=e.y;if(n=F(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=mt(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),c=l*l,f=this.es*a*a/(1-this.es);t=s*l*(1-c*u*(1/6-(8-u+8*f)*c/120)),r=this.a*ht(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*c*(.5+(5-u+6*f)*c/24)}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(o))}else{var u=bt(this.ml0/this.a+i,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(u)-a)<=s)return e.x=this.long0,e.y=a,i<0&&(e.y*=-1),e;var l=mt(this.a,this.e,Math.sin(u)),c=l*l*l/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(u),2),h=n*this.a/l,p=h*h;t=u-l*Math.tan(u)/c*h*h*(.5-(1+3*f)*h*h/24),r=h*(1-p*(f/3+(1+3*f)*f*p/15))/Math.cos(u)}return e.x=F(r+this.long0),e.y=gt(t),e},names:["Cassini","Cassini_Soldner","cass"]};function wt(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t}var xt=.3333333333333333,kt=.17222222222222222,Ot=.10257936507936508,St=.06388888888888888,Et=.0664021164021164,Tt=.016415012942191543;var Rt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-a)<s?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<s?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=wt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=e*xt,t=e*e,r[0]+=t*kt,r[1]=t*St,t*=e,r[0]+=t*Ot,r[1]+=t*Et,r[2]=t*Tt,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=wt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,i,o,u,l,f,h,p,d=e.x,y=e.y;if(d=F(d-this.long0),this.sphere){if(o=Math.sin(y),p=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+p*n:1+this.sinph0*o+this.cosph0*p*n)<=s)return null;t=(r=Math.sqrt(2/r))*p*Math.sin(d),r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<s)return null;r=c-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(l=0,f=0,h=0,n=Math.cos(d),i=Math.sin(d),o=Math.sin(y),u=wt(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=u/this.qp,f=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:h=1+this.sinb1*l+this.cosb1*f*n;break;case this.EQUIT:h=1+f*n;break;case this.N_POLE:h=a+y,u=this.qp-u;break;case this.S_POLE:h=y-a,u=this.qp+u}if(Math.abs(h)<s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),r=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*l-this.sinb1*f*n):(h=Math.sqrt(2/(1+f*n)))*l*this.ymf,t=this.xmf*h*f*i;break;case this.N_POLE:case this.S_POLE:u>=0?(t=(h=Math.sqrt(u))*i,r=n*(this.mode===this.S_POLE?h:-h)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,o,u,l,c,f,h,p=e.x/this.a,d=e.y/this.a;if(this.sphere){var y,v=0,m=0;if((r=.5*(y=Math.sqrt(p*p+d*d)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(r),v=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(y)<=s?0:Math.asin(d*m/y),p*=m,d=v*y;break;case this.OBLIQ:r=Math.abs(y)<=s?this.lat0:Math.asin(v*this.sinph0+d*m*this.cosph0/y),p*=m*this.cosph0,d=(v-Math.sin(r)*this.sinph0)*y;break;case this.N_POLE:d=-d,r=a-r;break;case this.S_POLE:r-=a}t=0!==d||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,d):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,d*=this.dd,(u=Math.sqrt(p*p+d*d))<s)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*u/this.rq),n=Math.cos(i),p*=i=Math.sin(i),this.mode===this.OBLIQ?(l=n*this.sinb1+d*i*this.cosb1/u,o=this.qp*l,d=u*this.cosb1*n-d*this.sinb1*i):(l=d*i/u,o=this.qp*l,d=u*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(d=-d),!(o=p*p+d*d))return e.x=this.long0,e.y=this.lat0,e;l=1-o/this.qp,this.mode===this.S_POLE&&(l=-l)}t=Math.atan2(p,d),c=Math.asin(l),f=this.apa,h=c+c,r=c+f[0]*Math.sin(h)+f[1]*Math.sin(h+h)+f[2]*Math.sin(h+h+h)}return e.x=F(this.long0+t),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Pt(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}var Ct={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=D(this.e3,this.sin_po,this.cos_po),this.qs1=wt(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=D(this.e3,this.sin_po,this.cos_po),this.qs2=wt(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=wt(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>s?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=wt(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*F(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,r)),o=F(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,i,o,a=Pt(.5*t);if(e<s)return a;for(var u=e*e,l=1;l<=25;l++)if(a+=o=.5*(i=1-(n=e*(r=Math.sin(a)))*n)*i/Math.cos(a)*(t/(1-u)-r/i+.5/e*Math.log((1-n)/(1+n))),Math.abs(o)<=1e-7)return a;return null}};var Mt={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,i,o,a,u,l=e.x,c=e.y;return n=F(l-this.long0),t=Math.sin(c),r=Math.cos(c),i=Math.cos(n),1,(o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=s?(a=this.x0+1*this.a*r*Math.sin(n)/o,u=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)/o):(a=this.x0+this.infinity_dist*r*Math.sin(n),u=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=u,e},inverse:function(e){var t,r,n,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),a=Pt((n=Math.cos(i))*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),o=F(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]};var jt={init:function(){this.sphere||(this.k0=D(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,i=e.y,o=F(n-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=wt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,r=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=F(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*a:a;for(var n,i,o,s,u=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(u),o=Math.cos(u),s=e*i,u+=n=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-i/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=F(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},names:["cea"]};var It={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=F(t-this.long0),i=gt(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,r=e.y;return e.x=F(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=gt(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};var At={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=dt(this.es),this.e2=yt(this.es),this.e3=vt(this.es),this.ml0=this.a*ht(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,i=e.x,o=e.y,a=F(i-this.long0);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=s?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(gt(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=s)t=this.a*a,r=-1*this.ml0;else{var u=mt(this.a,this.e,Math.sin(o))/Math.tan(o);t=u*Math.sin(n),r=this.a*ht(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+u*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,i,o,a,u,l,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=s)t=F(n/this.a+this.long0),r=0;else{var f;for(a=this.lat0+i/this.a,u=n*n/this.a/this.a+a*a,l=a,o=20;o;--o)if(l+=c=-1*(a*(l*(f=Math.tan(l))+1)-l-.5*(l*l+u)*f)/((l-a)/f-1),Math.abs(c)<=s){r=l;break}t=F(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=s)r=0,t=F(this.long0+n/this.a);else{var h,p,d,y,v;for(a=(this.ml0+i)/this.a,u=n*n/this.a/this.a+a*a,l=a,o=20;o;--o)if(v=this.e*Math.sin(l),h=Math.sqrt(1-v*v)*Math.tan(l),p=this.a*ht(this.e0,this.e1,this.e2,this.e3,l),d=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(h*(y=p/this.a)+1)-y-.5*h*(y*y+u))/(this.es*Math.sin(2*l)*(y*y+u-2*a*y)/(4*h)+(a-y)*(h*d-2/Math.sin(2*l))-d),Math.abs(c)<=s){r=l;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=F(this.long0+Math.asin(n*h/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},names:["Polyconic","poly"]};var Lt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,n=e.y-this.lat0,i=r-this.long0,a=n/o*1e-5,s=i,u=1,l=0;for(t=1;t<=10;t++)u*=a,l+=this.A[t]*u;var c,f=l,h=s,p=1,d=0,y=0,v=0;for(t=1;t<=6;t++)c=d*f+p*h,p=p*f-d*h,d=c,y=y+this.B_re[t]*p-this.B_im[t]*d,v=v+this.B_im[t]*p+this.B_re[t]*d;return e.x=v*this.a+this.x0,e.y=y*this.a+this.y0,e},inverse:function(e){var t,r,n=e.x,i=e.y,a=n-this.x0,s=(i-this.y0)/this.a,u=a/this.a,l=1,c=0,f=0,h=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,f=f+this.C_re[t]*l-this.C_im[t]*c,h=h+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p<this.iterations;p++){var d,y=f,v=h,m=s,g=u;for(t=2;t<=6;t++)d=v*f+y*h,y=y*f-v*h,v=d,m+=(t-1)*(this.B_re[t]*y-this.B_im[t]*v),g+=(t-1)*(this.B_im[t]*y+this.B_re[t]*v);y=1,v=0;var b=this.B_re[1],_=this.B_im[1];for(t=2;t<=6;t++)d=v*f+y*h,y=y*f-v*h,v=d,b+=t*(this.B_re[t]*y-this.B_im[t]*v),_+=t*(this.B_im[t]*y+this.B_re[t]*v);var w=b*b+_*_;f=(m*b+g*_)/w,h=(g*b-m*_)/w}var x=f,k=h,O=1,S=0;for(t=1;t<=9;t++)O*=x,S+=this.D[t]*O;var E=this.lat0+S*o*1e5,T=this.long0+k;return e.x=T,e.y=E,e},names:["New_Zealand_Map_Grid","nzmg"]};var Dt={init:function(){},forward:function(e){var t=e.x,r=e.y,n=F(t-this.long0),i=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=F(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},names:["Miller_Cylindrical","mill"]};var Zt={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Ve(this.es)},forward:function(e){var t,r,n=e.x,i=e.y;if(n=F(n-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var u=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=u,Math.abs(u)<s)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var l=Math.sin(i),c=Math.cos(i);r=this.a*Xe(i,l,c,this.en),t=this.a*n*c/Math.sqrt(1-this.es*l*l)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n;return e.x-=this.x0,r=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,r/=this.C_x*(this.m+Math.cos(t)),this.m?t=Pt((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Pt(Math.sin(t)/this.n)),r=F(r+this.long0),t=gt(t)):(t=Ye(e.y/this.a,this.es,this.en),(n=Math.abs(t))<a?(n=Math.sin(t),r=F(this.long0+e.x*Math.sqrt(1-this.es*n*n)/(this.a*Math.cos(t)))):n-s<a&&(r=this.long0)),e.x=r,e.y=t,e},names:["Sinusoidal","sinu"]};var Ft={init:function(){},forward:function(e){for(var t=e.x,r=e.y,n=F(t-this.long0),i=r,o=Math.PI*Math.sin(r);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<s)break}i/=2,Math.PI/2-Math.abs(r)<s&&(n=0);var u=.900316316158*this.a*n*Math.cos(i)+this.x0,l=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=u,e.y=l,e},inverse:function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=F(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e},names:["Mollweide","moll"]};var Nt={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=dt(this.es),this.e2=yt(this.es),this.e3=vt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=D(this.e,this.sinphi,this.cosphi),this.ml1=ht(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<s?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=D(this.e,this.sinphi,this.cosphi),this.ml2=ht(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ht(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=ht(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*F(r-this.long0),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;return 0!==r&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere?(i=F(this.long0+o/this.ns),n=gt(this.g-r/this.a),e.x=i,e.y=n,e):(n=bt(this.g-r/this.a,this.e0,this.e1,this.e2,this.e3),i=F(this.long0+o/this.ns),e.x=i,e.y=n,e)},names:["Equidistant_Conic","eqdc"]};var Gt={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,i=e.y,o=F(n-this.long0);Math.abs(i)<=s&&(t=this.x0+this.R*o,r=this.y0);var u=Pt(2*Math.abs(i/Math.PI));(Math.abs(o)<=s||Math.abs(Math.abs(i)-a)<=s)&&(t=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*u):this.y0+Math.PI*this.R*-Math.tan(.5*u));var l=.5*Math.abs(Math.PI/o-o/Math.PI),c=l*l,f=Math.sin(u),h=Math.cos(u),p=h/(f+h-1),d=p*p,y=p*(2/f-1),v=y*y,m=Math.PI*this.R*(l*(p-v)+Math.sqrt(c*(p-v)*(p-v)-(v+c)*(d-v)))/(v+c);o<0&&(m=-m),t=this.x0+m;var g=c+p;return m=Math.PI*this.R*(y*g-l*Math.sqrt((v+c)*(c+1)-g*g))/(v+c),r=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i,o,a,u,l,c,f,h,p;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,o=(n=e.x/h)*n+(i=e.y/h)*i,h=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(u=a-2*i*i+n*n)*u*u/l/l/l-9*a*u/l/l)/27)/(c=(a-u*u/3/l)/l)/(f=2*Math.sqrt(-c/3)),Math.abs(h)>1&&(h=h>=0?1:-1),p=Math.acos(h)/3,r=e.y>=0?(-f*Math.cos(p+Math.PI/3)-u/3/l)*Math.PI:-(-f*Math.cos(p+Math.PI/3)-u/3/l)*Math.PI,t=Math.abs(n)<s?this.long0:F(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-i*i)+o*o))/2/n),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};var Bt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S=e.x,E=e.y,T=Math.sin(e.y),R=Math.cos(e.y),P=F(S-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=s?(e.x=this.x0+this.a*(a-E)*Math.sin(P),e.y=this.y0-this.a*(a-E)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=s?(e.x=this.x0+this.a*(a+E)*Math.sin(P),e.y=this.y0+this.a*(a+E)*Math.cos(P),e):(_=this.sin_p12*T+this.cos_p12*R*Math.cos(P),b=(g=Math.acos(_))?g/Math.sin(g):1,e.x=this.x0+this.a*b*R*Math.sin(P),e.y=this.y0+this.a*b*(this.cos_p12*T-this.sin_p12*R*Math.cos(P)),e):(t=pt(this.es),r=dt(this.es),n=yt(this.es),i=vt(this.es),Math.abs(this.sin_p12-1)<=s?(o=this.a*ht(t,r,n,i,a),u=this.a*ht(t,r,n,i,E),e.x=this.x0+(o-u)*Math.sin(P),e.y=this.y0-(o-u)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=s?(o=this.a*ht(t,r,n,i,a),u=this.a*ht(t,r,n,i,E),e.x=this.x0+(o+u)*Math.sin(P),e.y=this.y0+(o+u)*Math.cos(P),e):(l=T/R,c=mt(this.a,this.e,this.sin_p12),f=mt(this.a,this.e,T),h=Math.atan((1-this.es)*l+this.es*c*this.sin_p12/(f*R)),w=0===(p=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(h)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(h)-this.sin_p12*Math.cos(h)):Math.abs(Math.abs(p)-Math.PI)<=s?-Math.asin(this.cos_p12*Math.sin(h)-this.sin_p12*Math.cos(h)):Math.asin(Math.sin(P)*Math.cos(h)/Math.sin(p)),d=this.e*this.sin_p12/Math.sqrt(1-this.es),g=c*w*(1-(x=w*w)*(m=(y=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*y)*(1-m)/6+(k=x*w)/8*(v=d*y)*(1-2*m)+(O=k*w)/120*(m*(4-7*m)-3*d*d*(1-7*m))-O*w/48*v),e.x=this.x0+g*Math.sin(p),e.y=this.y0+g*Math.cos(p),e))},inverse:function(e){var t,r,n,i,o,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*a*this.a)return;return r=t/this.a,n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=s?u=this.lat0:(u=Pt(i*this.sin_p12+e.y*n*this.cos_p12/t),l=Math.abs(this.lat0)-a,o=Math.abs(l)<=s?this.lat0>=0?F(this.long0+Math.atan2(e.x,-e.y)):F(this.long0-Math.atan2(-e.x,e.y)):F(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=o,e.y=u,e}return c=pt(this.es),f=dt(this.es),h=yt(this.es),p=vt(this.es),Math.abs(this.sin_p12-1)<=s?(u=bt(((d=this.a*ht(c,f,h,p,a))-(t=Math.sqrt(e.x*e.x+e.y*e.y)))/this.a,c,f,h,p),o=F(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=u,e):Math.abs(this.sin_p12+1)<=s?(d=this.a*ht(c,f,h,p,a),u=bt(((t=Math.sqrt(e.x*e.x+e.y*e.y))-d)/this.a,c,f,h,p),o=F(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=u,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),y=mt(this.a,this.e,this.sin_p12),g=Math.cos(m),_=-(b=this.e*this.cos_p12*g)*b/(1-this.es),w=3*this.es*(1-_)*this.sin_p12*this.cos_p12*g/(1-this.es),O=1-_*(k=(x=t/y)-_*(1+_)*Math.pow(x,3)/6-w*(1+3*_)*Math.pow(x,4)/24)*k/2-x*k*k*k/6,v=Math.asin(this.sin_p12*Math.cos(k)+this.cos_p12*Math.sin(k)*g),o=F(this.long0+Math.asin(Math.sin(m)*Math.sin(k)/Math.cos(v))),S=Math.sin(v),u=Math.atan2((S-this.es*O*this.sin_p12)*Math.tan(v),S*(1-this.es)),e.x=o,e.y=u,e)},names:["Azimuthal_Equidistant","aeqd"]};var zt={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,u,l=e.x,c=e.y;return n=F(l-this.long0),t=Math.sin(c),r=Math.cos(c),i=Math.cos(n),1,((o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=s)&&(a=1*this.a*r*Math.sin(n),u=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=u,e},inverse:function(e){var t,r,n,i,o,u,l;return e.x-=this.x0,e.y-=this.y0,r=Pt((t=Math.sqrt(e.x*e.x+e.y*e.y))/this.a),n=Math.sin(r),i=Math.cos(r),u=this.long0,Math.abs(t)<=s?(l=this.lat0,e.x=u,e.y=l,e):(l=Pt(i*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.abs(this.lat0)-a,Math.abs(o)<=s?(u=this.lat0>=0?F(this.long0+Math.atan2(e.x,-e.y)):F(this.long0-Math.atan2(-e.x,e.y)),e.x=u,e.y=l,e):(u=F(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=u,e.y=l,e))},names:["ortho"]},Ut=1,qt=2,Vt=3,Xt=4,Yt=5,Wt=6,Kt=1,Ht=2,$t=3,Jt=4;function Qt(e,t,r,n){var i;return e<s?(n.value=Kt,i=0):(i=Math.atan2(t,r),Math.abs(i)<=c?n.value=Kt:i>c&&i<=a+c?(n.value=Ht,i-=a):i>a+c||i<=-(a+c)?(n.value=$t,i=i>=0?i-h:i+h):(n.value=Jt,i+=a)),i}function er(e,t){var r=e+t;return r<-h?r+=f:r>+h&&(r-=f),r}var tr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-c/2?this.face=Yt:this.lat0<=-(a-c/2)?this.face=Wt:Math.abs(this.long0)<=c?this.face=Ut:Math.abs(this.long0)<=a+c?this.face=this.long0>0?qt:Xt:this.face=Vt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,i,o,s,u={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===Yt)i=a-t,r>=c&&r<=a+c?(l.value=Kt,n=r-a):r>a+c||r<=-(a+c)?(l.value=Ht,n=r>0?r-h:r+h):r>-(a+c)&&r<=-c?(l.value=$t,n=r+a):(l.value=Jt,n=r);else if(this.face===Wt)i=a+t,r>=c&&r<=a+c?(l.value=Kt,n=-r+a):r<c&&r>=-c?(l.value=Ht,n=-r):r<-c&&r>=-(a+c)?(l.value=$t,n=-r-a):(l.value=Jt,n=r>0?-r+h:-r-h);else{var f,p,d,y,v,m;this.face===qt?r=er(r,+a):this.face===Vt?r=er(r,+h):this.face===Xt&&(r=er(r,-a)),y=Math.sin(t),v=Math.cos(t),m=Math.sin(r),f=v*Math.cos(r),p=v*m,d=y,this.face===Ut?n=Qt(i=Math.acos(f),d,p,l):this.face===qt?n=Qt(i=Math.acos(p),d,-f,l):this.face===Vt?n=Qt(i=Math.acos(-f),d,-p,l):this.face===Xt?n=Qt(i=Math.acos(-p),d,f,l):(i=n=0,l.value=Kt)}return s=Math.atan(12/h*(n+Math.acos(Math.sin(n)*Math.cos(c))-a)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===Ht?s+=a:l.value===$t?s+=h:l.value===Jt&&(s+=1.5*h),u.x=o*Math.cos(s),u.y=o*Math.sin(s),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var t,r,n,i,o,s,u,l,c,f,p,d,y={lam:0,phi:0},v={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?v.value=Kt:e.y>=0&&e.y>=Math.abs(e.x)?(v.value=Ht,t-=a):e.x<0&&-e.x>=Math.abs(e.y)?(v.value=$t,t=t<0?t+h:t-h):(v.value=Jt,t+=a),c=h/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),s=Math.atan(o),(u=1-(n=Math.cos(t))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?u=-1:u>1&&(u=1),this.face===Yt)l=Math.acos(u),y.phi=a-l,v.value===Kt?y.lam=s+a:v.value===Ht?y.lam=s<0?s+h:s-h:v.value===$t?y.lam=s-a:y.lam=s;else if(this.face===Wt)l=Math.acos(u),y.phi=l-a,v.value===Kt?y.lam=-s+a:v.value===Ht?y.lam=-s:v.value===$t?y.lam=-s-a:y.lam=s<0?-s-h:-s+h;else{var m,g,b;c=(m=u)*m,g=(c+=(b=c>=1?0:Math.sqrt(1-c)*Math.sin(s))*b)>=1?0:Math.sqrt(1-c),v.value===Ht?(c=g,g=-b,b=c):v.value===$t?(g=-g,b=-b):v.value===Jt&&(c=g,g=b,b=-c),this.face===qt?(c=m,m=-g,g=c):this.face===Vt?(m=-m,g=-g):this.face===Xt&&(c=m,m=g,g=-c),y.phi=Math.acos(-b)-a,y.lam=Math.atan2(g,m),this.face===qt?y.lam=er(y.lam,-a):this.face===Vt?y.lam=er(y.lam,-h):this.face===Xt&&(y.lam=er(y.lam,+a))}return 0!==this.es&&(f=y.phi<0?1:0,p=Math.tan(y.phi),d=this.b/Math.sqrt(p*p+this.one_minus_f_squared),y.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),f&&(y.phi=-y.phi)),y.lam+=this.long0,e.x=y.lam,e.y=y.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},rr=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],nr=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],ir=.8487,or=1.3523,ar=l/5,sr=18,ur=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};var lr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=F(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*ar);n<0?n=0:n>=sr&&(n=17);var i={x:ur(rr[n],r=l*(r-.08726646259971647*n))*t,y:ur(nr[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*ir+this.x0,i.y=i.y*this.a*or+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(this.a*ir),y:Math.abs(e.y-this.y0)/(this.a*or)};if(t.y>=1)t.x/=rr[18][0],t.y=e.y<0?-a:a;else{var r=Math.floor(t.y*sr);for(r<0?r=0:r>=sr&&(r=17);;)if(nr[r][0]>t.y)--r;else{if(!(nr[r+1][0]<=t.y))break;++r}var n=nr[r],i=5*(t.y-n[0])/(nr[r+1][0]-n[0]);i=function(e,t,r,n){for(var i=t;n;--n){var o=e(i);if(i-=o,Math.abs(o)<r)break}return i}((function(e){return(ur(n,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(n,e)}),i,s,100),t.x/=ur(rr[r],i),t.y=(5*r+i)*u,e.y<0&&(t.y=-t.y)}return t.x=F(t.x+this.long0),t},names:["Robinson","robin"]};var cr={init:function(){this.name="geocent"},forward:function(e){return se(e,this.es,this.a)},inverse:function(e){return ue(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},fr=0,hr=1,pr=2,dr=3,yr={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};var vr={init:function(){if(Object.keys(yr).forEach(function(e){if(void 0===this[e])this[e]=yr[e].def;else{if(yr[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);yr[e].num&&(this[e]=parseFloat(this[e]))}yr[e].degrees&&(this[e]=this[e]*u)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<s?this.mode=this.lat0<0?hr:fr:Math.abs(this.lat0)<s?this.mode=pr:(this.mode=dr,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,r,n,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case dr:r=this.sinph0*o+this.cosph0*a*s;break;case pr:r=a*s;break;case hr:r=-o;break;case fr:r=o}switch(t=(r=this.pn1/(this.p-r))*a*Math.sin(e.x),this.mode){case dr:r*=this.cosph0*o-this.sinph0*a*s;break;case pr:r*=o;break;case fr:r*=-a*s;break;case hr:r*=a*s}return i=1/((n=r*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-r*this.sg)*this.cw*i,r=n*i,e.x=t*this.a,e.y=r*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,r,n,i={x:e.x,y:e.y};n=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*n,r=this.pn1*e.y*this.cw*n,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var o=He(e.x,e.y);if(Math.abs(o)<s)i.x=0,i.y=e.y;else{var a,u;switch(u=1-o*o*this.pfact,u=(this.p-Math.sqrt(u))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-u*u),this.mode){case dr:i.y=Math.asin(a*this.sinph0+e.y*u*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=u*this.cosph0;break;case pr:i.y=Math.asin(e.y*u/o),e.y=a*o,e.x*=u;break;case fr:i.y=Math.asin(a),e.y=-e.y;break;case hr:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]};we.defaultDatum="WGS84",we.Proj=ae,we.WGS84=new we.Proj("WGS84"),we.Point=Be,we.toPoint=ye,we.defs=M,we.nadgrid=function(e,t){var r=new DataView(t),n=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:ee(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(r,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o={header:i,subgrids:function(e,t,r){for(var n=176,i=[],o=0;o<t.nSubgrids;o++){var a=re(e,n,r),s=ne(e,n,a,r),u=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),l=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);i.push({ll:[Q(a.lowerLongitude),Q(a.lowerLatitude)],del:[Q(a.longitudeInterval),Q(a.latitudeInterval)],lim:[u,l],count:a.gridNodeCount,cvs:te(s)})}return i}(r,i,n)};return $[e]=o,o},we.transform=me,we.mgrs=Pe,we.version="__VERSION__",function(e){e.Proj.projections.add(We),e.Proj.projections.add(et),e.Proj.projections.add(tt),e.Proj.projections.add(it),e.Proj.projections.add(ot),e.Proj.projections.add(at),e.Proj.projections.add(lt),e.Proj.projections.add(ct),e.Proj.projections.add(ft),e.Proj.projections.add(_t),e.Proj.projections.add(Rt),e.Proj.projections.add(Ct),e.Proj.projections.add(Mt),e.Proj.projections.add(jt),e.Proj.projections.add(It),e.Proj.projections.add(At),e.Proj.projections.add(Lt),e.Proj.projections.add(Dt),e.Proj.projections.add(Zt),e.Proj.projections.add(Ft),e.Proj.projections.add(Nt),e.Proj.projections.add(Gt),e.Proj.projections.add(Bt),e.Proj.projections.add(zt),e.Proj.projections.add(tr),e.Proj.projections.add(lr),e.Proj.projections.add(cr),e.Proj.projections.add(vr)}(we);var mr=we},53925:function(e,t,r){var n,i,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=function(){"use strict";function e(e,n,i,o,a){!function e(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=n-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);e(r,n,Math.max(i,Math.floor(n-u*c/s+f)),Math.min(o,Math.floor(n+(s-u)*c/s+f)),a)}var h=r[n],p=i,d=o;for(t(r,i,n),a(r[o],h)>0&&t(r,i,o);p<d;){for(t(r,p,d),p++,d--;a(r[p],h)<0;)p++;for(;a(r[d],h)>0;)d--}0===a(r[i],h)?t(r,i,d):t(r,++d,o),d<=n&&(i=d+1),n<=d&&(o=d-1)}}(e,n,i||0,o||e.length-1,a||r)}function t(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function r(e,t){return e<t?-1:e>t?1:0}var n=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function o(e,t){a(e,0,e.children.length,t,e)}function a(e,t,r,n,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<r;o++){var a=e.children[o];s(i,e.leaf?n(a):a)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function u(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function h(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function d(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,r,n,i,o){for(var a=[r,n];a.length;)if(!((n=a.pop())-(r=a.pop())<=i)){var s=r+Math.ceil((n-r)/i/2)*i;e(t,s,r,n,o),a.push(r,s,s,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(e){var t=this.data,r=[];if(!p(e,t))return r;for(var n=this.toBBox,i=[];t;){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?n(a):a;p(e,s)&&(t.leaf?r.push(a):h(e,s)?this._all(a,r):i.push(a))}t=i.pop()}return r},n.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var r=[];t;){for(var n=0;n<t.children.length;n++){var i=t.children[n],o=t.leaf?this.toBBox(i):i;if(p(e,o)){if(t.leaf||h(e,o))return!0;r.push(i)}}t=r.pop()}return!1},n.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var n=this.data;this.data=r,r=n}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},n.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},n.prototype.clear=function(){return this.data=d([]),this},n.prototype.remove=function(e,t){if(!e)return this;for(var r,n,o,a=this.data,s=this.toBBox(e),u=[],l=[];a||u.length;){if(a||(a=u.pop(),n=u[u.length-1],r=l.pop(),o=!0),a.leaf){var c=i(e,a.children,t);if(-1!==c)return a.children.splice(c,1),u.push(a),this._condense(u),this}o||a.leaf||!h(a,s)?n?(r++,a=n.children[r],o=!1):a=null:(u.push(a),l.push(r),r=0,n=a,a=a.children[0])}return this},n.prototype.toBBox=function(e){return e},n.prototype.compareMinX=function(e,t){return e.minX-t.minX},n.prototype.compareMinY=function(e,t){return e.minY-t.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(e){return this.data=e,this},n.prototype._all=function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},n.prototype._build=function(e,t,r,n){var i,a=r-t+1,s=this._maxEntries;if(a<=s)return o(i=d(e.slice(t,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,n-1))),(i=d([])).leaf=!1,i.height=n;var u=Math.ceil(a/s),l=u*Math.ceil(Math.sqrt(s));y(e,t,r,l,this.compareMinX);for(var c=t;c<=r;c+=l){var f=Math.min(c+l-1,r);y(e,c,f,u,this.compareMinY);for(var h=c;h<=f;h+=u){var p=Math.min(h+u-1,f);i.children.push(this._build(e,h,p,n-1))}}return o(i,this.toBBox),i},n.prototype._chooseSubtree=function(e,t,r,n){for(;n.push(t),!t.leaf&&n.length-1!==r;){for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var u=t.children[s],l=c(u),f=(h=e,p=u,(Math.max(p.maxX,h.maxX)-Math.min(p.minX,h.minX))*(Math.max(p.maxY,h.maxY)-Math.min(p.minY,h.minY))-l);f<o?(o=f,i=l<i?l:i,a=u):f===o&&l<i&&(i=l,a=u)}t=a||t.children[0]}var h,p;return t},n.prototype._insert=function(e,t,r){var n=r?e:this.toBBox(e),i=[],o=this._chooseSubtree(n,this.data,t,i);for(o.children.push(e),s(o,n);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(n,i,t)},n.prototype._split=function(e,t){var r=e[t],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var a=this._chooseSplitIndex(r,i,n),s=d(r.children.splice(a,r.children.length-a));s.height=r.height,s.leaf=r.leaf,o(r,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(r,s)},n.prototype._splitRoot=function(e,t){this.data=d([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(e,t,r){for(var n,i,o,s,u,l,f,h=1/0,p=1/0,d=t;d<=r-t;d++){var y=a(e,0,d,this.toBBox),v=a(e,d,r,this.toBBox),m=(i=y,o=v,s=Math.max(i.minX,o.minX),u=Math.max(i.minY,o.minY),l=Math.min(i.maxX,o.maxX),f=Math.min(i.maxY,o.maxY),Math.max(0,l-s)*Math.max(0,f-u)),g=c(y)+c(v);m<h?(h=m,n=d,p=g<p?g:p):m===h&&g<p&&(p=g,n=d)}return n||r-t},n.prototype._chooseSplitAxis=function(e,t,r){var n=e.leaf?this.compareMinX:u,i=e.leaf?this.compareMinY:l;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,i)&&e.children.sort(n)},n.prototype._allDistMargin=function(e,t,r,n){e.children.sort(n);for(var i=this.toBBox,o=a(e,0,t,i),u=a(e,r-t,r,i),l=f(o)+f(u),c=t;c<r-t;c++){var h=e.children[c];s(o,e.leaf?i(h):h),l+=f(o)}for(var p=r-t-1;p>=t;p--){var d=e.children[p];s(u,e.leaf?i(d):d),l+=f(u)}return l},n.prototype._adjustParentBBoxes=function(e,t,r){for(var n=r;n>=0;n--)s(t[n],e)},n.prototype._condense=function(e){for(var t=e.length-1,r=void 0;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},n},"object"==a(t)?e.exports=o():void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i)},9877:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=function(e){"use strict";var t,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new P(n||[]);return o._invoke=function(e,t,r){var n=h;return function(i,o){if(n===d)throw new Error("Generator is already running");if(n===y){if("throw"===i)throw o;return M()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var _={};l(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(C([])));x&&x!==r&&i.call(x,a)&&(_=x);var k=b.prototype=m.prototype=Object.create(_);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,a,s,u){var l=f(e[o],e,a);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"===n(h)&&i.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(h).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,u)}))}u(l.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=f(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(i.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:M}}function M(){return{value:t,done:!0}}return g.prototype=b,l(k,"constructor",b),l(b,"constructor",g),g.displayName=l(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},O(S.prototype),l(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(k),l(k,u,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}("object"===n(e=r.nmd(e))?e.exports:{});try{regeneratorRuntime=i}catch(e){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},7994:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.deserialize=t.registerSerializer=void 0;var n=r(1540),i=n.DefaultSerializer;t.registerSerializer=function(e){i=n.extendSerializer(i,e)},t.deserialize=function(e){return i.deserialize(e)},t.serialize=function(e){return i.serialize(e)}},85094:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.Transfer=t.DefaultSerializer=t.expose=t.registerSerializer=void 0;var o=r(7994);Object.defineProperty(t,"registerSerializer",{enumerable:!0,get:function(){return o.registerSerializer}}),i(r(59316),t);var a=r(48390);Object.defineProperty(t,"expose",{enumerable:!0,get:function(){return a.expose}});var s=r(1540);Object.defineProperty(t,"DefaultSerializer",{enumerable:!0,get:function(){return s.DefaultSerializer}});var u=r(37800);Object.defineProperty(t,"Transfer",{enumerable:!0,get:function(){return u.Transfer}})},72714:function(e,t){"use strict";var r;function n(e){return(""+e).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)?\/[^/]+(?:\?.*)?$/,"$1")+"/"}Object.defineProperty(t,"__esModule",{value:!0}),t.getBundleURL=t.getBaseURL=void 0,t.getBundleURL=function(){return r||(r=function(){try{throw new Error}catch(t){var e=(""+t.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);if(e)return n(e[0])}return"/"}()),r},t.getBaseURL=n},30175:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function o(e){var t=l();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function u(e,t,r){return(u=l()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.isWorkerRuntime=t.getWorkerImplementation=t.defaultPoolSize=void 0;var y=r(72714);t.defaultPoolSize="undefined"!=typeof navigator&&navigator.hardwareConcurrency?navigator.hardwareConcurrency:4;var v,m=function(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)};function g(e){var t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}t.getWorkerImplementation=function(){return v||(v=function(){if("undefined"==typeof Worker)return p((function e(){throw d(this,e),Error("No web worker implementation available. You might have tried to spawn a worker within a worker in a browser that doesn't support workers in workers.")}));var e=function(e){i(r,e);var t=o(r);function r(e,n){var i,o;return d(this,r),"string"==typeof e&&n&&n._baseURL?e=new URL(e,n._baseURL):"string"==typeof e&&!m(e)&&y.getBundleURL().match(/^file:\/\//i)&&(e=new URL(e,y.getBundleURL().replace(/\/[^\/]+$/,"/")),(null===(i=null==n?void 0:n.CORSWorkaround)||void 0===i||i)&&(e=g("importScripts(".concat(JSON.stringify(e),");")))),"string"==typeof e&&m(e)&&(null===(o=null==n?void 0:n.CORSWorkaround)||void 0===o||o)&&(e=g("importScripts(".concat(JSON.stringify(e),");"))),t.call(this,e,n)}return p(r)}(s(Worker));return{blob:function(e){i(r,e);var t=o(r);function r(e,n){d(this,r);var i=window.URL.createObjectURL(e);return t.call(this,i,n)}return p(r,null,[{key:"fromText",value:function(e,t){return new r(new window.Blob([e],{type:"text/javascript"}),t)}}]),r}(e),default:e}}()),v},t.isWorkerRuntime=function(){var e="undefined"!=typeof self&&"undefined"!=typeof Window&&self instanceof Window;return!("undefined"==typeof self||!self.postMessage||e)}},59316:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Worker=t.BlobWorker=t.isWorkerRuntime=t.Thread=t.spawn=t.Pool=void 0;var n=r(30175);Object.defineProperty(t,"isWorkerRuntime",{enumerable:!0,get:function(){return n.isWorkerRuntime}});var i=r(38545);Object.defineProperty(t,"Pool",{enumerable:!0,get:function(){return i.Pool}});var o=r(99693);Object.defineProperty(t,"spawn",{enumerable:!0,get:function(){return o.spawn}});var a=r(25556);Object.defineProperty(t,"Thread",{enumerable:!0,get:function(){return a.Thread}}),t.BlobWorker=n.getWorkerImplementation().blob,t.Worker=n.getWorkerImplementation().default},22826:function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProxyModule=t.createProxyFunction=void 0;var u=s(r(98532)),l=r(94992),c=r(7994),f=r(64119),h=r(37800),p=r(8225),d=u.default("threads:master:messages"),y=1;function v(e,t){return new l.Observable((function(r){var n,i=function i(o){var a;if(d("Message from worker:",o.data),o.data&&o.data.uid===t)if((a=o.data)&&a.type===p.WorkerMessageType.running)n=o.data.resultType;else if(function(e){return e&&e.type===p.WorkerMessageType.result}(o.data))"promise"===n?(void 0!==o.data.payload&&r.next(c.deserialize(o.data.payload)),r.complete(),e.removeEventListener("message",i)):(o.data.payload&&r.next(c.deserialize(o.data.payload)),o.data.complete&&(r.complete(),e.removeEventListener("message",i)));else if(function(e){return e&&e.type===p.WorkerMessageType.error}(o.data)){var s=c.deserialize(o.data.error);r.error(s),e.removeEventListener("message",i)}};return e.addEventListener("message",i),function(){if("observable"===n||!n){var r={type:p.MasterMessageType.cancel,uid:t};e.postMessage(r)}e.removeEventListener("message",i)}}))}function m(e){if(0===e.length)return{args:[],transferables:[]};var t,r,o=[],a=[],s=i(e);try{for(s.s();!(t=s.n()).done;){var u=t.value;h.isTransferDescriptor(u)?(o.push(c.serialize(u.send)),a.push.apply(a,n(u.transferables))):o.push(c.serialize(u))}}catch(e){s.e(e)}finally{s.f()}return{args:o,transferables:0===a.length?a:(r=a,Array.from(new Set(r)))}}function g(e,t){return function(){for(var r=y++,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=m(i),s=a.args,u=a.transferables,c={type:p.MasterMessageType.run,uid:r,method:t,args:s};d("Sending command to run function to worker:",c);try{e.postMessage(c,u)}catch(e){return f.ObservablePromise.from(Promise.reject(e))}return f.ObservablePromise.from(l.multicast(v(e,r)))}}t.createProxyFunction=g,t.createProxyModule=function(e,t){var r,n={},o=i(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;n[a]=g(e,a)}}catch(e){o.e(e)}finally{o.f()}return n}},86910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PoolEventType=void 0,function(e){e.initialized="initialized",e.taskCanceled="taskCanceled",e.taskCompleted="taskCompleted",e.taskFailed="taskFailed",e.taskQueued="taskQueued",e.taskQueueDrained="taskQueueDrained",e.taskStart="taskStart",e.terminated="terminated"}(t.PoolEventType||(t.PoolEventType={}))},38545:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pool=t.Thread=t.PoolEventType=void 0;var u=s(r(98532)),l=r(94992),c=r(83467),f=r(30175),h=r(86910);Object.defineProperty(t,"PoolEventType",{enumerable:!0,get:function(){return h.PoolEventType}});var p=r(25556);Object.defineProperty(t,"Thread",{enumerable:!0,get:function(){return p.Thread}});var d=1;function y(e){return new Promise((function(t){return setTimeout(t,e)}))}function v(e,t){return e.reduce((function(e,r){return[].concat(i(e),i(t(r)))}),[])}var m=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventSubject=new l.Subject,this.initErrors=[],this.isClosing=!1,this.nextTaskID=1,this.taskQueue=[];var i="number"==typeof r?{size:r}:r||{},o=i.size,a=void 0===o?f.defaultPoolSize:o;this.debug=u.default("threads:pool:".concat((i.name||String(d++)).replace(/\W/g," ").trim().replace(/\s+/g,"-"))),this.options=i,this.workers=function(e,t){return function(e){for(var t=[],r=0;r<e;r++)t.push(r);return t}(t).map((function(){return{init:e(),runningTasks:[]}}))}(t,a),this.eventObservable=l.multicast(l.Observable.from(this.eventSubject)),Promise.all(this.workers.map((function(e){return e.init}))).then((function(){return n.eventSubject.next({type:h.PoolEventType.initialized,size:n.workers.length})}),(function(e){n.debug("Error while initializing pool worker:",e),n.eventSubject.error(e),n.initErrors.push(e)}))}var t,r,o;return t=e,(r=[{key:"findIdlingWorker",value:function(){var e=this.options.concurrency,t=void 0===e?1:e;return this.workers.find((function(e){return e.runningTasks.length<t}))}},{key:"runPoolTask",value:function(e,t){return a(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=this.workers.indexOf(e)+1,this.debug("Running task #".concat(t.id," on worker #").concat(n,"...")),this.eventSubject.next({type:h.PoolEventType.taskStart,taskID:t.id,workerID:n}),r.prev=3,r.t0=t,r.next=7,e.init;case 7:return r.t1=r.sent,r.next=10,r.t0.run.call(r.t0,r.t1);case 10:i=r.sent,this.debug("Task #".concat(t.id," completed successfully")),this.eventSubject.next({type:h.PoolEventType.taskCompleted,returnValue:i,taskID:t.id,workerID:n}),r.next=19;break;case 15:r.prev=15,r.t2=r.catch(3),this.debug("Task #".concat(t.id," failed")),this.eventSubject.next({type:h.PoolEventType.taskFailed,taskID:t.id,error:r.t2,workerID:n});case 19:case"end":return r.stop()}}),r,this,[[3,15]])})))}},{key:"run",value:function(e,t){return a(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=a(i,void 0,void 0,regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=function(){e.runningTasks=e.runningTasks.filter((function(e){return e!==n}))},r.next=3,y(0);case 3:return r.prev=3,r.next=6,this.runPoolTask(e,t);case 6:return r.prev=6,i(),this.isClosing||this.scheduleWork(),r.finish(6);case 10:case"end":return r.stop()}}),r,this,[[3,,6,10]])}))),e.runningTasks.push(n);case 2:case"end":return r.stop()}}),r)})))}},{key:"scheduleWork",value:function(){this.debug("Attempt de-queueing a task in order to run it...");var e=this.findIdlingWorker();if(e){var t=this.taskQueue.shift();if(!t)return this.debug("Task queue is empty"),void this.eventSubject.next({type:h.PoolEventType.taskQueueDrained});this.run(e,t)}}},{key:"taskCompletion",value:function(e){var t=this;return new Promise((function(r,n){var i=t.events().subscribe((function(t){t.type===h.PoolEventType.taskCompleted&&t.taskID===e?(i.unsubscribe(),r(t.returnValue)):t.type===h.PoolEventType.taskFailed&&t.taskID===e?(i.unsubscribe(),n(t.error)):t.type===h.PoolEventType.terminated&&(i.unsubscribe(),n(Error("Pool has been terminated before task was run.")))}))}))}},{key:"settled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return a(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=function(){return v(o.workers,(function(e){return e.runningTasks}))},n=[],i=this.eventObservable.subscribe((function(e){e.type===h.PoolEventType.taskFailed&&n.push(e.error)})),!(this.initErrors.length>0)){t.next=5;break}return t.abrupt("return",Promise.reject(this.initErrors[0]));case 5:if(!e||0!==this.taskQueue.length){t.next=9;break}return t.next=8,c.allSettled(r());case 8:return t.abrupt("return",n);case 9:return t.next=11,new Promise((function(e,t){var r=o.eventObservable.subscribe({next:function(t){t.type===h.PoolEventType.taskQueueDrained&&(r.unsubscribe(),e(void 0))},error:t})}));case 11:return t.next=13,c.allSettled(r());case 13:return i.unsubscribe(),t.abrupt("return",n);case 15:case"end":return t.stop()}}),t,this)})))}},{key:"completed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return a(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.settled(e),n=new Promise((function(e,t){var n=o.eventObservable.subscribe({next:function(i){i.type===h.PoolEventType.taskQueueDrained?(n.unsubscribe(),e(r)):i.type===h.PoolEventType.taskFailed&&(n.unsubscribe(),t(i.error))},error:t})})),t.next=4,Promise.race([r,n]);case 4:if(!((i=t.sent).length>0)){t.next=7;break}throw i[0];case 7:case"end":return t.stop()}}),t,this)})))}},{key:"events",value:function(){return this.eventObservable}},{key:"queue",value:function(e){var t=this,r=this.options.maxQueuedJobs,n=void 0===r?1/0:r;if(this.isClosing)throw Error("Cannot schedule pool tasks after terminate() has been called.");if(this.initErrors.length>0)throw this.initErrors[0];var i=this.nextTaskID++,o=this.taskCompletion(i);o.catch((function(e){t.debug("Task #".concat(i," errored:"),e)}));var a={id:i,run:e,cancel:function(){-1!==t.taskQueue.indexOf(a)&&(t.taskQueue=t.taskQueue.filter((function(e){return e!==a})),t.eventSubject.next({type:h.PoolEventType.taskCanceled,taskID:a.id}))},then:o.then.bind(o)};if(this.taskQueue.length>=n)throw Error("Maximum number of pool tasks queued. Refusing to queue another one.\nThis usually happens for one of two reasons: We are either at peak workload right now or some tasks just won't finish, thus blocking the pool.");return this.debug("Queueing task #".concat(a.id,"...")),this.taskQueue.push(a),this.eventSubject.next({type:h.PoolEventType.taskQueued,taskID:a.id}),this.scheduleWork(),a}},{key:"terminate",value:function(e){return a(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isClosing=!0,e){t.next=4;break}return t.next=4,this.completed(!0);case 4:return this.eventSubject.next({type:h.PoolEventType.terminated,remainingQueue:i(this.taskQueue)}),this.eventSubject.complete(),t.next=8,Promise.all(this.workers.map((function(e){return a(r,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=p.Thread,t.next=3,e.init;case 3:return t.t1=t.sent,t.abrupt("return",t.t0.terminate.call(t.t0,t.t1));case 5:case"end":return t.stop()}}),t)})))})));case 8:case"end":return t.stop()}}),t,this)})))}}])&&n(t.prototype,r),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function g(e,t){return new m(e,t)}m.EventType=h.PoolEventType,g.EventType=h.PoolEventType,t.Pool=g},99693:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.spawn=void 0;var u=s(r(98532)),l=r(94992),c=r(7994),f=r(4609),h=r(80628),p=r(69043),d=r(22826),y=u.default("threads:master:messages"),v=u.default("threads:master:spawn"),m=u.default("threads:master:thread-utils"),g="undefined"!=typeof process&&process.env.THREADS_WORKER_INIT_TIMEOUT?Number.parseInt(process.env.THREADS_WORKER_INIT_TIMEOUT,10):1e4;function b(e,t,r){return a(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=new Promise((function(e,n){i=setTimeout((function(){return n(Error(r))}),t)})),n.next=3,Promise.race([e,o]);case 3:return a=n.sent,clearTimeout(i),n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))}function _(e){return new Promise((function(t,r){e.addEventListener("message",(function n(i){var o;y("Message from worker before finishing initialization:",i.data),(o=i.data)&&"init"===o.type?(e.removeEventListener("message",n),t(i.data)):function(e){return e&&"uncaughtError"===e.type}(i.data)&&(e.removeEventListener("message",n),r(c.deserialize(i.data.error)))}))}))}function w(e,t){return new l.Observable((function(r){var n=function(e){var t={type:p.WorkerEventType.message,data:e.data};r.next(t)},i=function(e){m("Unhandled promise rejection event in thread:",e);var t={type:p.WorkerEventType.internalError,error:Error(e.reason)};r.next(t)};e.addEventListener("message",n),e.addEventListener("unhandledrejection",i),t.then((function(){var t={type:p.WorkerEventType.termination};e.removeEventListener("message",n),e.removeEventListener("unhandledrejection",i),r.next(t),r.complete()}))}))}function x(e){var t=this,r=i(f.createPromiseWithResolver(),2),n=r[0],o=r[1];return{terminate:function(){return a(t,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return m("Terminating worker"),t.next=3,e.terminate();case 3:o();case 4:case"end":return t.stop()}}),t)})))},termination:n}}function k(e,t,r,i){var o,a=r.filter((function(e){return e.type===p.WorkerEventType.internalError})).map((function(e){return e.error}));return Object.assign(e,(n(o={},h.$errors,a),n(o,h.$events,r),n(o,h.$terminate,i),n(o,h.$worker,t),o))}t.spawn=function(e,t){return a(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o,a,s,u,l,c,f,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return v("Initializing new thread"),n=t&&t.timeout?t.timeout:g,r.next=4,b(_(e),n,"Timeout: Did not receive an init message from worker after ".concat(n,"ms. Make sure the worker calls expose()."));case 4:if(i=r.sent,o=i.exposed,a=x(e),s=a.termination,u=a.terminate,l=w(e,s),"function"!==o.type){r.next=13;break}return c=d.createProxyFunction(e),r.abrupt("return",k(c,e,l,u));case 13:if("module"!==o.type){r.next=18;break}return f=d.createProxyModule(e,o.methods),r.abrupt("return",k(f,e,l,u));case 18:throw h=o.type,Error("Worker init message states unexpected type of expose(): ".concat(h));case 20:case"end":return r.stop()}}),r)})))}},25556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Thread=void 0;var n=r(80628);function i(e){throw Error(e)}t.Thread={errors:function(e){return e[n.$errors]||i("Error observable not found. Make sure to pass a thread instance as returned by the spawn() promise.")},events:function(e){return e[n.$events]||i("Events observable not found. Make sure to pass a thread instance as returned by the spawn() promise.")},terminate:function(e){return e[n.$terminate]()}}},64119:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=u(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ObservablePromise=void 0;var d=r(94992),y=function(){},v=function(e){return e},m=function(e){return Promise.resolve().then(e)};function g(e){throw e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,r,n,o=c(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=o.call(this,(function(r){var n=h(t),i=Object.assign(Object.assign({},r),{complete:function(){r.complete(),n.onCompletion()},error:function(e){r.error(e),n.onError(e)},next:function(e){r.next(e),n.onNext(e)}});try{return t.initHasRun=!0,e(i)}catch(e){i.error(e)}}))).initHasRun=!1,t.fulfillmentCallbacks=[],t.rejectionCallbacks=[],t.firstValueSet=!1,t.state="pending",t}return t=u,n=[{key:"from",value:function(e){return function(e){return e&&"function"==typeof e.then}(e)?new u((function(t){e.then((function(e){t.next(e),t.complete()}),(function(e){t.error(e)}))})):s(p(u),"from",this).call(this,e)}}],(r=[{key:"onNext",value:function(e){this.firstValueSet||(this.firstValue=e,this.firstValueSet=!0)}},{key:"onError",value:function(e){this.state="rejected",this.rejection=e;var t,r=i(this.rejectionCallbacks);try{var n=function(){var r=t.value;m((function(){return r(e)}))};for(r.s();!(t=r.n()).done;)n()}catch(e){r.e(e)}finally{r.f()}}},{key:"onCompletion",value:function(){var e=this;this.state="fulfilled";var t,r=i(this.fulfillmentCallbacks);try{var n=function(){var r=t.value;m((function(){return r(e.firstValue)}))};for(r.s();!(t=r.n()).done;)n()}catch(e){r.e(e)}finally{r.f()}}},{key:"then",value:function(e,t){var r=this,n=e||v,i=t||g,o=!1;return new Promise((function(e,t){var a=function(r){if(!o){o=!0;try{e(i(r))}catch(e){t(e)}}};return r.initHasRun||r.subscribe({error:a}),"fulfilled"===r.state?e(n(r.firstValue)):"rejected"===r.state?(o=!0,e(i(r.rejection))):(r.fulfillmentCallbacks.push((function(t){try{e(n(t))}catch(e){a(e)}})),void r.rejectionCallbacks.push(a))}))}},{key:"catch",value:function(e){return this.then(void 0,e)}},{key:"finally",value:function(e){var t=e||y;return this.then((function(e){return t(),e}),(function(){return t()}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(d.Observable);t.ObservablePromise=b},83467:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=void 0,t.allSettled=function(e){return Promise.all(e.map((function(e){var t=Promise.resolve(e);try{return t.then((function(e){return{status:"fulfilled",value:e}}),(function(e){return{status:"rejected",reason:e}}))}catch(e){return Promise.reject(e)}})))}},4609:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createPromiseWithResolver=void 0;var r=function(){};t.createPromiseWithResolver=function(){var e,t=!1,n=r;return[new Promise((function(r){t?r(e):n=r})),function(r){t=!0,n(e=r)}]}},1540:function(e,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultSerializer=t.extendSerializer=void 0,t.extendSerializer=function(e,t){var r=e.deserialize.bind(e),n=e.serialize.bind(e);return{deserialize:function(e){return t.deserialize(e,r)},serialize:function(e){return t.serialize(e,n)}}};var n=function(e){return Object.assign(Error(e.message),{name:e.name,stack:e.stack})},i=function(e){return{__error_marker:"$$error",message:e.message,name:e.name,stack:e.stack}};t.DefaultSerializer={deserialize:function(e){return(t=e)&&"object"===r(t)&&"__error_marker"in t&&"$$error"===t.__error_marker?n(e):e;var t},serialize:function(e){return e instanceof Error?i(e):e}}},80628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.$worker=t.$transferable=t.$terminate=t.$events=t.$errors=void 0,t.$errors=Symbol("thread.errors"),t.$events=Symbol("thread.events"),t.$terminate=Symbol("thread.terminate"),t.$transferable=Symbol("thread.transferable"),t.$worker=Symbol("thread.worker")},37800:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Transfer=t.isTransferDescriptor=void 0;var o=r(80628);t.isTransferDescriptor=function(e){return e&&"object"===i(e)&&e[o.$transferable]},t.Transfer=function(e,t){var r,a;if(!t){if(!(a=e)||"object"!==i(a))throw Error();t=[e]}return n(r={},o.$transferable,!0),n(r,"send",e),n(r,"transferables",t),r}},69043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerEventType=void 0;r(80628);!function(e){e.internalError="internalError",e.message="message",e.termination="termination"}(t.WorkerEventType||(t.WorkerEventType={}))},8225:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageType=t.MasterMessageType=void 0,function(e){e.cancel="cancel",e.run="run"}(t.MasterMessageType||(t.MasterMessageType={})),function(e){e.error="error",e.init="init",e.result="result",e.running="running",e.uncaughtError="uncaughtError"}(t.WorkerMessageType||(t.WorkerMessageType={}))},17415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={isWorkerRuntime:function(){var e="undefined"!=typeof self&&"undefined"!=typeof Window&&self instanceof Window;return!("undefined"==typeof self||!self.postMessage||e)},postMessageToMaster:function(e,t){self.postMessage(e,t)},subscribeToMasterMessages:function(e){var t=function(t){e(t.data)};return self.addEventListener("message",t),function(){self.removeEventListener("message",t)}}}},48390:function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expose=t.isWorkerRuntime=t.Transfer=t.registerSerializer=void 0;var u=s(r(21839)),l=r(7994),c=r(37800),f=r(8225),h=s(r(17415)),p=r(7994);Object.defineProperty(t,"registerSerializer",{enumerable:!0,get:function(){return p.registerSerializer}});var d=r(37800);Object.defineProperty(t,"Transfer",{enumerable:!0,get:function(){return d.Transfer}}),t.isWorkerRuntime=h.default.isWorkerRuntime;var y=!1,v=new Map,m=function(e){return e&&e.type===f.MasterMessageType.run},g=function(e){return u.default(e)||function(e){return e&&"object"===o(e)&&"function"==typeof e.subscribe}(e)};function b(e){return c.isTransferDescriptor(e)?{payload:e.send,transferables:e.transferables}:{payload:e,transferables:void 0}}function _(e,t){var r=b(t),n=r.payload,i=r.transferables,o={type:f.WorkerMessageType.error,uid:e,error:l.serialize(n)};h.default.postMessageToMaster(o,i)}function w(e,t,r){var n=b(r),i=n.payload,o=n.transferables,a={type:f.WorkerMessageType.result,uid:e,complete:!!t||void 0,payload:i};h.default.postMessageToMaster(a,o)}function x(e,t){var r={type:f.WorkerMessageType.running,uid:e,resultType:t};h.default.postMessageToMaster(r)}function k(e){try{var t={type:f.WorkerMessageType.uncaughtError,error:l.serialize(e)};h.default.postMessageToMaster(t)}catch(t){console.error("Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\nLatest error:",t,"\nOriginal error:",e)}}function O(e,t,r){return a(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a,s,u;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:i.prev=0,o=t.apply(void 0,n(r)),i.next=7;break;case 4:return i.prev=4,i.t0=i.catch(0),i.abrupt("return",_(e,i.t0));case 7:if(a=g(o)?"observable":"promise",x(e,a),!g(o)){i.next=14;break}s=o.subscribe((function(t){return w(e,!1,l.serialize(t))}),(function(t){_(e,l.serialize(t)),v.delete(e)}),(function(){w(e,!0),v.delete(e)})),v.set(e,s),i.next=24;break;case 14:return i.prev=14,i.next=17,o;case 17:u=i.sent,w(e,!0,l.serialize(u)),i.next=24;break;case 21:i.prev=21,i.t1=i.catch(14),_(e,l.serialize(i.t1));case 24:case"end":return i.stop()}}),i,null,[[0,4],[14,21]])})))}t.expose=function(e){if(!h.default.isWorkerRuntime())throw Error("expose() called in the master thread.");if(y)throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");if(y=!0,"function"==typeof e)h.default.subscribeToMasterMessages((function(t){m(t)&&!t.method&&O(t.uid,e,t.args.map(l.deserialize))})),t={type:f.WorkerMessageType.init,exposed:{type:"function"}},h.default.postMessageToMaster(t);else{if("object"!==o(e)||!e)throw Error("Invalid argument passed to expose(). Expected a function or an object, got: ".concat(e));h.default.subscribeToMasterMessages((function(t){m(t)&&t.method&&O(t.uid,e[t.method],t.args.map(l.deserialize))})),function(e){var t={type:f.WorkerMessageType.init,exposed:{type:"module",methods:e}};h.default.postMessageToMaster(t)}(Object.keys(e).filter((function(t){return"function"==typeof e[t]})))}var t;h.default.subscribeToMasterMessages((function(e){if((n=e)&&n.type===f.MasterMessageType.cancel){var t=e.uid,r=v.get(t);r&&(r.unsubscribe(),v.delete(t))}var n}))},"undefined"!=typeof self&&"function"==typeof self.addEventListener&&h.default.isWorkerRuntime()&&(self.addEventListener("error",(function(e){setTimeout((function(){return k(e.error||e)}),250)})),self.addEventListener("unhandledrejection",(function(e){var t=e.reason;t&&"string"==typeof t.message&&setTimeout((function(){return k(t)}),250)}))),"undefined"!=typeof process&&"function"==typeof process.on&&h.default.isWorkerRuntime()&&(process.on("uncaughtException",(function(e){setTimeout((function(){return k(e)}),250)})),process.on("unhandledRejection",(function(e){e&&"string"==typeof e.message&&setTimeout((function(){return k(e)}),250)})))},19569:function(e){(function(){var t;e.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return t},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},t=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(this)},6961:function(e,t,r){var n=r(80589);e.exports=function(e,t,r){var i=r&&r.debug||!1,o=r&&r.startIndex||0;i&&console.log("starting findTagByName with",t," and ",r);var a=n(e,"<".concat(t,"[ >]"),o);if(i&&console.log("start:",a),-1!==a){var s=e.slice(a+t.length),u=n(s,"[ /]"+t+">",0),l=-1===u;l&&(u=n(s,"[ /]>",0));var c=a+t.length+u+1+(l?0:t.length)+1;if(i&&console.log("end:",c),-1!==c){var f=e.slice(a,c);return{inner:l?null:f.slice(f.indexOf(">")+1,f.lastIndexOf("<")),outer:f,start:a,end:c}}}}},70686:function(e,t,r){var n=r(6961);e.exports=function(e,t,r){for(var i,o=[],a=r&&r.debug||!1,s=r&&r.startIndex||0;i=n(e,t,{debug:a,startIndex:s});)s=i.end,o.push(i);return a&&console.log("findTagsByName found",o.length,"tags"),o}},58287:function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e,r,n){var i=n&&n.debug||!1;i&&console.log("getting "+r+" in "+e);var o="object"===t(e)?e.outer:e,a="".concat(r,'\\="([^"]*)"');i&&console.log("pattern:",a);var s=new RegExp(a).exec(o);if(i&&console.log("match:",s),s)return s[1]}},80589:function(e){e.exports=function(e,t,r){var n=new RegExp(t).exec(e.slice(r));return n?r+n.index:-1}},36676:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.head;case 1:if(!t){e.next=7;break}return e.next=4,t.value;case 4:t=t.next,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))}},81528:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var o=[];for(r=0;n&&r<t;r++)o.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(r=0;r<(arguments.length<=2?0:arguments.length-2);r++)n=i(this,n,r+2<2||arguments.length<=r+2?void 0:arguments[r+2]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(36676)(n)}catch(e){}},20901:function(){},2300:function(){},25473:function(){},7834:function(e,t,r){"use strict";r.d(t,{h0:function(){return gi},bg:function(){return yi},ZP:function(){return Oi},KO:function(){return _i}});var n=r(91118),i=r(8768),o=r(41376),a=r(15492),s=r(76166),u=r(42010),l=r(41372),c=r(95783),f=r(14197),h=r(28083),p=r(54354),d=r(77138),y=r(77975),v=r(24598),m=r(10925),g=r(720),b=r(69039),_=r(40729),w=r(85976);function x(e){return function(e){if(Array.isArray(e))return F(e)}(e)||k(e)||Z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e,t){return E(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||Z(e,t)||S()}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e){if(Array.isArray(e))return e}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t&&T(e.prototype,t),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){var t="function"==typeof Map?new Map:void 0;return(M=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return j(e,arguments,L(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),A(n,e)})(e)}function j(e,t,r){return(j=I()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&A(i,r.prototype),i}).apply(null,arguments)}function I(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Z(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Z(e,t){if(e){if("string"==typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var G={$version:8,$root:{version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},terrain:{type:"terrain",doc:"A global modifier that elevates layers and markers based on a DEM data source."},fog:{type:"fog",doc:"A global effect that fades layers and markers based on their distance to the camera. The fog can be used to approximate the effect of atmosphere on distant objects and enhance the depth perception of the map when used with terrain or 3D features."},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},sources:{"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster:{type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},filter:{type:"*",doc:"An expression for filtering features prior to processing them for rendering."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15."},clusterMinPoints:{type:"number",doc:"Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to `2`."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`."}},source_video:{type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},source_image:{type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},layer:{id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},sky:{doc:"A spherical dome around the map that is always rendered behind all other layers.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"},"data-driven styling":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.","sdk-support":{"basic functionality":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"},"data-driven styling":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},"viewport-y":{doc:"Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},source:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data."}},default:"auto",doc:"Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbol-sort-key`.","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"stretchable icons":{js:"1.6.0",android:"9.2.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{doc:"The text is aligned towards the anchor position."},left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},auto:{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,doc:"Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which defaults to using the two-dimensional `text-offset` if present.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"},"data-driven styling":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},requires:["text-field",{"symbol-placement":["point"]}],doc:"To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the `text-radial-offset` or the two-dimensional `text-offset`.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field",{"!":"text-variable-anchor"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{doc:"If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally."},vertical:{doc:"If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically."}},doc:"The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.",requires:["text-field",{"symbol-placement":["point"]}],"sdk-support":{"basic functionality":{js:"1.3.0",android:"8.3.0",ios:"5.3.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},filter:{type:"array",value:"*",doc:"A filter selects specific features from a layer."},filter_operator:{type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'},within:{doc:'`["within", object]` feature geometry is within object geometry'}},doc:"The filter operator."},geometry_type:{type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2,doc:"Zoom level and value pair."},expression:{type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},expression_name:{doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},in:{doc:"Determines whether an item exists in an array or a substring exists in a string.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.6.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"index-of":{doc:"Returns the first position at which an item can be found in an array or a substring can be found in a string, or `-1` if the input cannot be found. Accepts an optional index from where to begin the search.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},slice:{doc:"Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output for which the label value matches the input value, or the fallback value if no match is found. The input can be any expression (for example, `["get", "building_type"]`). Each label must be unique, and must be either:\n - a single literal value; or\n - an array of literal values, the values of which must be all strings or all numbers (for example `[100, 101]` or `["c", "b"]`).\n\nThe input matches if any of the values in the array matches using strict equality, similar to the `"in"` operator.\nIf the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\n\nInterpolation types:\n- `["linear"]`: Interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: Interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: Interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:'Returns a `formatted` string for displaying mixed-format text in the `text-field` property. The input may contain a string literal or expression, including an [`\'image\'`](#types-image) expression. Strings may be followed by a style override object that supports the following properties:\n- `"text-font"`: Overrides the font stack specified by the root layout property.\n- `"text-color"`: Overrides the color specified by the root paint property.\n- `"font-scale"`: Applies a scaling factor on `text-size` as specified by the root layout property.',group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-font":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"font-scale":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-color":{js:"1.3.0",android:"7.3.0",ios:"4.10.0",macos:"0.14.0"},image:{js:"1.6.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},image:{doc:"Returns an `image` type for use in `icon-image`, `*-pattern` entries and as a section in the `format` expression. If set, the `image` argument will check that the requested image exists in the style and will return either the resolved image name or `null`, depending on whether or not the image is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `image` argument.",group:"Types","sdk-support":{"basic functionality":{js:"1.4.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Features are identified by their `id` attribute, which must be an integer or a string that can be cast to an integer. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},"sky-radial-progress":{doc:"Gets the distance of a point on the sky from the sun position. Returns 0 at sun position and 1 when the distance reaches `sky-gradient-radius`. Can only be used in the `sky-gradient` property.",group:"sky","sdk-support":{"basic functionality":{js:"2.0.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},distance:{doc:"Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.",group:"Math","sdk-support":{"basic functionality":{android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},within:{doc:"Returns `true` if the evaluated feature is fully contained inside a boundary of the input geometry, `false` otherwise. The input value can be a valid GeoJSON of type `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Supported features for evaluation:\n- `Point`: Returns `false` if a point is on the boundary or falls outside the boundary.\n- `LineString`: Returns `false` if any part of a line falls outside the boundary, the line intersects the boundary, or a line's endpoint is on the boundary.",group:"Decision","sdk-support":{"basic functionality":{js:"1.9.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.6.0"}}},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.",example:[.5,10],"sdk-support":{"basic functionality":{js:"2.3.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The color of the fog. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.","sdk-support":{"basic functionality":{js:"2.3.0"}}},"horizon-blend":{type:"number","property-type":"data-constant",default:.1,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Horizon blend applies a smooth fade from the color of the fog to the color of the sky. A value of zero leaves a sharp transition from fog to sky. Increasing the value blends the color of fog into increasingly high angles of the sky.","sdk-support":{"basic functionality":{js:"2.3.0"}}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},terrain:{source:{type:"string",doc:"Name of a source of `raster_dem` type to be used for terrain elevation.",required:!0,"sdk-support":{"basic functionality":{js:"2.0.0"}}},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{doc:"Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`."},atmosphere:{doc:"Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`."}},default:"atmosphere",doc:"The type of the sky","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the sun center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the sun relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.","sdk-support":{"basic functionality":{js:"2.0.0"}},requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,doc:"Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the gradient center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the gradient center relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,doc:"The angular distance (measured in degrees) from `sky-gradient-center` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `sky-gradient-center`.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],doc:"Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `sky-radial-progress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `sky-gradient-radius`] centered at the position specified by `sky-gradient-center`.",transition:!1,requires:[{"sky-type":"gradient"}],"sdk-support":{"basic functionality":{js:"2.0.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",doc:"A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",doc:"A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire sky layer.",transition:!0,"sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:{"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}}};var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function z(e){var t={exports:{}};return e(t,t.exports),t.exports}
|
|
|
var U=z((function(e,t){!function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o="object"==N(B)&&B;o.global!==o&&o.window!==o&&o.self!==o||(r=o);var a,s,u=2147483647,l=36,c=/^xn--/,f=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,y=String.fromCharCode;function v(e){throw RangeError(p[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(h,".")).split("."),t).join(".")}function b(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function _(e){return m(e,(function(e){var t="";return e>65535&&(t+=y((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=y(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=l)e=d(e/35);return d(n+36*e/(e+38))}function k(e){var t,r,n,i,o,a,s,c,f,h,p,y=[],m=e.length,g=0,b=128,w=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=g,a=1,s=l;i>=m&&v("invalid-input"),((c=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||c>d((u-g)/a))&&v("overflow"),g+=c*a,!(c<(f=s<=w?1:s>=w+26?26:s-w));s+=l)a>d(u/(h=l-f))&&v("overflow"),a*=h;w=x(g-o,t=y.length+1,0==o),d(g/t)>u-b&&v("overflow"),b+=d(g/t),g%=t,y.splice(g++,0,b)}return _(y)}function O(e){var t,r,n,i,o,a,s,c,f,h,p,m,g,_,k,O=[];for(m=(e=b(e)).length,t=128,r=0,o=72,a=0;a<m;++a)(p=e[a])<128&&O.push(y(p));for(n=i=O.length,i&&O.push("-");n<m;){for(s=u,a=0;a<m;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>d((u-r)/(g=n+1))&&v("overflow"),r+=(s-t)*g,t=s,a=0;a<m;++a)if((p=e[a])<t&&++r>u&&v("overflow"),p==t){for(c=r,f=l;!(c<(h=f<=o?1:f>=o+26?26:f-o));f+=l)k=c-h,_=l-h,O.push(y(w(h+k%_,0))),c=d(k/_);O.push(y(w(c,0))),o=x(r,g,n==i),r=0,++n}++r,++t}return O.join("")}if(a={version:"1.3.2",ucs2:{decode:b,encode:_},decode:k,encode:O,toASCII:function(e){return g(e,(function(e){return f.test(e)?"xn--"+O(e):e}))},toUnicode:function(e){return g(e,(function(e){return c.test(e)?k(e.slice(4).toLowerCase()):e}))}},n&&i)if(e.exports==n)i.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else r.punycode=a}(B)})),q=function(e){return"string"==typeof e},V=function(e){return"object"===N(e)&&null!==e},X=function(e){return null===e},Y=function(e){return null==e};function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var K=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,f,h,p=e[u].replace(o,"%20"),d=p.indexOf(r);d>=0?(l=p.substr(0,d),c=p.substr(d+1)):(l=p,c=""),f=decodeURIComponent(l),h=decodeURIComponent(c),W(i,f)?Array.isArray(i[f])?i[f].push(h):i[f]=[i[f],h]:i[f]=h}return i},H=function(e){switch(N(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},$=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===N(e)?Object.keys(e).map((function(n){var i=encodeURIComponent(H(n))+r;return Array.isArray(e[n])?e[n].map((function(e){return i+encodeURIComponent(H(e))})).join(t):i+encodeURIComponent(H(e[n]))})).join(t):n?encodeURIComponent(H(n))+r+encodeURIComponent(H(e)):""},J=z((function(e,t){t.decode=t.parse=K,t.encode=t.stringify=$}));function Q(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var ee=/^([a-z0-9.+-]+:)/i,te=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ne=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),ie=["'"].concat(ne),oe=["%","/","?",";","#"].concat(ie),ae=["/","?","#"],se=/^[+a-z0-9A-Z_-]{0,63}$/,ue=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,le={javascript:!0,"javascript:":!0},ce={javascript:!0,"javascript:":!0},fe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function he(e,t,r){if(e&&V(e)&&e instanceof Q)return e;var n=new Q;return n.parse(e,t,r),n}Q.prototype.parse=function(e,t,r){if(!q(e))throw new TypeError("Parameter 'url' must be a string, not "+N(e));var n=e.indexOf("?"),i=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!r&&1===e.split("#").length){var s=re.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?J.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=ee.exec(a);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&ce[u]||(a=a.substr(2),this.slashes=!0)}if(!ce[u]&&(c||u&&!fe[u])){for(var f,h,p=-1,d=0;d<ae.length;d++){-1!==(y=a.indexOf(ae[d]))&&(-1===p||y<p)&&(p=y)}-1!==(h=-1===p?a.lastIndexOf("@"):a.lastIndexOf("@",p))&&(f=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(f)),p=-1;for(d=0;d<oe.length;d++){var y;-1!==(y=a.indexOf(oe[d]))&&(-1===p||y<p)&&(p=y)}-1===p&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var v="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!v)for(var m=this.hostname.split(/\./),g=(d=0,m.length);d<g;d++){var b=m[d];if(b&&!b.match(se)){for(var _="",w=0,x=b.length;w<x;w++)b.charCodeAt(w)>127?_+="x":_+=b[w];if(!_.match(se)){var k=m.slice(0,d),O=m.slice(d+1),S=b.match(ue);S&&(k.push(S[1]),O.unshift(S[2])),O.length&&(a="/"+O.join(".")+a),this.hostname=k.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=U.toASCII(this.hostname));var E=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+E,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!le[l])for(d=0,g=ie.length;d<g;d++){var R=ie[d];if(-1!==a.indexOf(R)){var P=encodeURIComponent(R);P===R&&(P=escape(R)),a=a.split(R).join(P)}}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C));var M=a.indexOf("?");if(-1!==M?(this.search=a.substr(M),this.query=a.substr(M+1),t&&(this.query=J.parse(this.query)),a=a.slice(0,M)):t&&(this.search="",this.query={}),a&&(this.pathname=a),fe[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){E=this.pathname||"";var j=this.search||"";this.path=E+j}return this.href=this.format(),this},Q.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&V(this.query)&&Object.keys(this.query).length&&(o=J.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||fe[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},Q.prototype.resolve=function(e){return this.resolveObject(he(e,!1,!0)).format()},Q.prototype.resolveObject=function(e){if(q(e)){var t=new Q;t.parse(e,!1,!0),e=t}for(var r=new Q,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return fe[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!fe[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var f=l[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||ce[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",d=r.search||"";r.path=p+d}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),m=v||y||r.host&&e.pathname,g=m,b=r.pathname&&r.pathname.split("/")||[],_=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!fe[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===b[0]?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),m=m&&(""===h[0]||""===b[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=h;else if(h.length)b||(b=[]),b.pop(),b=b.concat(h),r.search=e.search,r.query=e.query;else if(!Y(e.search)){if(_)r.hostname=r.host=b.shift(),(S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift());return r.search=e.search,r.query=e.query,X(r.pathname)&&X(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=b.slice(-1)[0],x=(r.host||e.host||b.length>1)&&("."===w||".."===w)||""===w,k=0,O=b.length;O>=0;O--)"."===(w=b[O])?b.splice(O,1):".."===w?(b.splice(O,1),k++):k&&(b.splice(O,1),k--);if(!m&&!g)for(;k--;k)b.unshift("..");!m||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),x&&"/"!==b.join("/").substr(-1)&&b.push("");var S,E=""===b[0]||b[0]&&"/"===b[0].charAt(0);_&&(r.hostname=r.host=E?"":b.length?b.shift():"",(S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=S.shift(),r.host=r.hostname=S.shift()));return(m=m||r.host&&b.length)&&!E&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),X(r.pathname)&&X(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Q.prototype.parseHost=function(){var e=this.host,t=te.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};function pe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];for(var s in a)e[s]=a[s]}return e}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(i,e);var t,r,n=(t=i,r=I(),function(){var e,n=L(t);if(r){var i=L(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return C(this,e)});function i(e,t){var r;return P(this,i),(r=n.call(this,t)).message=t,r.key=e,r}return R(i)}(M(Error)),ye=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];P(this,e),this.parent=t,this.bindings={};var n,i=D(r);try{for(i.s();!(n=i.n()).done;){var o=O(n.value,2),a=o[0],s=o[1];this.bindings[a]=s}}catch(e){i.e(e)}finally{i.f()}}return R(e,[{key:"concat",value:function(t){return new e(this,t)}},{key:"get",value:function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error("".concat(e," not found in scope."))}},{key:"has",value:function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}]),e}(),ve={kind:"null"},me={kind:"number"},ge={kind:"string"},be={kind:"boolean"},_e={kind:"color"},we={kind:"object"},xe={kind:"value"},ke={kind:"collator"},Oe={kind:"formatted"},Se={kind:"resolvedImage"};function Ee(e,t){return{kind:"array",itemType:e,N:t}}function Te(e){if("array"===e.kind){var t=Te(e.itemType);return"number"==typeof e.N?"array<".concat(t,", ").concat(e.N,">"):"value"===e.itemType.kind?"array":"array<".concat(t,">")}return e.kind}var Re=[ve,me,ge,be,_e,Oe,we,Ee(xe),Se];function Pe(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Pe(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind){var r,n=D(Re);try{for(n.s();!(r=n.n()).done;){if(!Pe(r.value,t))return null}}catch(e){n.e(e)}finally{n.f()}}}return"Expected ".concat(Te(e)," but found ").concat(Te(t)," instead.")}function Ce(e,t){return t.some((function(t){return t.kind===e.kind}))}function Me(e,t){return t.some((function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"===N(e):t===N(e)}))}var je=z((function(e,t){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return e<0?0:e>1?1:e}function o(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function a(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}try{t.parseCSSColor=function(e){var t,i=e.replace(/ /g,"").toLowerCase();if(i in r)return r[i].slice();if("#"===i[0])return 4===i.length?(t=parseInt(i.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===i.length&&(t=parseInt(i.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var u=i.indexOf("("),l=i.indexOf(")");if(-1!==u&&l+1===i.length){var c=i.substr(0,u),f=i.substr(u+1,l-(u+1)).split(","),h=1;switch(c){case"rgba":if(4!==f.length)return null;h=a(f.pop());case"rgb":return 3!==f.length?null:[o(f[0]),o(f[1]),o(f[2]),h];case"hsla":if(4!==f.length)return null;h=a(f.pop());case"hsl":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),y=a(f[2]),v=y<=.5?y*(d+1):y+d-y*d,m=2*y-v;return[n(255*s(m,v,p+1/3)),n(255*s(m,v,p)),n(255*s(m,v,p-1/3)),h];default:return null}}return null}}catch(e){}})),Ie=function(){function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;P(this,e),this.r=t,this.g=r,this.b=n,this.a=i}return R(e,[{key:"toString",value:function(){var e=O(this.toArray(),4),t=e[0],r=e[1],n=e[2],i=e[3];return"rgba(".concat(Math.round(t),",").concat(Math.round(r),",").concat(Math.round(n),",").concat(i,")")}},{key:"toArray",value:function(){var e=this.r,t=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*r/n,n]}}],[{key:"parse",value:function(t){if(t){if(t instanceof e)return t;if("string"==typeof t){var r=je.parseCSSColor(t);if(r)return new e(r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3])}}}}]),e}();Ie.black=new Ie(0,0,0,1),Ie.white=new Ie(1,1,1,1),Ie.transparent=new Ie(0,0,0,0),Ie.red=new Ie(1,0,0,1),Ie.blue=new Ie(0,0,1,1);var Ae=function(){function e(t,r,n){P(this,e),this.sensitivity=t?r?"variant":"case":r?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}return R(e,[{key:"compare",value:function(e,t){return this.collator.compare(e,t)}},{key:"resolvedLocale",value:function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}]),e}(),Le=R((function e(t,r,n,i,o){P(this,e),this.text=t,this.image=r,this.scale=n,this.fontStack=i,this.textColor=o})),De=function(){function e(t){P(this,e),this.sections=t}return R(e,[{key:"isEmpty",value:function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))}},{key:"toString",value:function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")}},{key:"serialize",value:function(){var e,t=["format"],r=D(this.sections);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}}catch(e){r.e(e)}finally{r.f()}return t}}],[{key:"fromString",value:function(t){return new e([new Le(t,null,null,null,null)])}},{key:"factory",value:function(t){return t instanceof e?t:e.fromString(t)}}]),e}(),Ze=function(){function e(t){P(this,e),this.name=t.name,this.available=t.available}return R(e,[{key:"toString",value:function(){return this.name}},{key:"serialize",value:function(){return["image",this.name]}}],[{key:"fromString",value:function(t){return t?new e({name:t,available:!1}):null}}]),e}();function Fe(e,t,r,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value [".concat([e,t,r,n].join(", "),"]: 'a' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", "),"]: 'r', 'g', and 'b' must be between 0 and 255.")}function Ne(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Ie)return!0;if(e instanceof Ae)return!0;if(e instanceof De)return!0;if(e instanceof Ze)return!0;if(Array.isArray(e)){var t,r=D(e);try{for(r.s();!(t=r.n()).done;){if(!Ne(t.value))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}if("object"===N(e)){for(var n in e)if(!Ne(e[n]))return!1;return!0}return!1}function Ge(e){if(null===e)return ve;if("string"==typeof e)return ge;if("boolean"==typeof e)return be;if("number"==typeof e)return me;if(e instanceof Ie)return _e;if(e instanceof Ae)return ke;if(e instanceof De)return Oe;if(e instanceof Ze)return Se;if(Array.isArray(e)){var t,r,n=e.length,i=D(e);try{for(i.s();!(r=i.n()).done;){var o=Ge(r.value);if(t){if(t===o)continue;t=xe;break}t=o}}catch(e){i.e(e)}finally{i.f()}return Ee(t||xe,n)}return we}function Be(e){var t=N(e);return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Ie||e instanceof De||e instanceof Ze?e.toString():JSON.stringify(e)}var ze=function(){function e(t,r){P(this,e),this.type=t,this.value=r}return R(e,[{key:"evaluate",value:function(){return this.value}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Ie?["rgba"].concat(this.value.toArray()):this.value instanceof De?this.value.serialize():this.value}}],[{key:"parse",value:function(t,r){if(2!==t.length)return r.error("'literal' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(!Ne(t[1]))return r.error("invalid value");var n=t[1],i=Ge(n),o=r.expectedType;return"array"!==i.kind||0!==i.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(i=o),new e(i,n)}}]),e}(),Ue=function(){function e(t){P(this,e),this.name="ExpressionEvaluationError",this.message=t}return R(e,[{key:"toJSON",value:function(){return this.message}}]),e}(),qe={string:ge,number:me,boolean:be,object:we},Ve=function(){function e(t,r){P(this,e),this.type=t,this.args=r}return R(e,[{key:"evaluate",value:function(e){for(var t=0;t<this.args.length;t++){var r=this.args[t].evaluate(e);if(!Pe(this.type,Ge(r)))return r;if(t===this.args.length-1)throw new Ue("Expected value to be of type ".concat(Te(this.type),", but found ").concat(Te(Ge(r))," instead."))}return null}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e=this.type,t=[e.kind];if("array"===e.kind){var r=e.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){t.push(r.kind);var n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map((function(e){return e.serialize()})))}}],[{key:"parse",value:function(t,r){if(t.length<2)return r.error("Expected at least one argument.");var n,i=1,o=t[0];if("array"===o){var a,s;if(t.length>2){var u=t[1];if("string"!=typeof u||!(u in qe)||"object"===u)return r.error('The item type argument of "array" must be one of string, number, boolean',1);a=qe[u],i++}else a=xe;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);s=t[2],i++}n=Ee(a,s)}else n=qe[o];for(var l=[];i<t.length;i++){var c=r.parse(t[i],i,xe);if(!c)return null;l.push(c)}return new e(n,l)}}]),e}(),Xe=function(){function e(t){P(this,e),this.type=Oe,this.sections=t}return R(e,[{key:"evaluate",value:function(e){return new De(this.sections.map((function(t){var r=t.content.evaluate(e);return Ge(r)===Se?new Le("",r,null,null,null):new Le(Be(r),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}},{key:"eachChild",value:function(e){var t,r=D(this.sections);try{for(r.s();!(t=r.n()).done;){var n=t.value;e(n.content),n.scale&&e(n.scale),n.font&&e(n.font),n.textColor&&e(n.textColor)}}catch(e){r.e(e)}finally{r.f()}}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e,t=["format"],r=D(this.sections);try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push(n.content.serialize());var i={};n.scale&&(i["font-scale"]=n.scale.serialize()),n.font&&(i["text-font"]=n.font.serialize()),n.textColor&&(i["text-color"]=n.textColor.serialize()),t.push(i)}}catch(e){r.e(e)}finally{r.f()}return t}}],[{key:"parse",value:function(t,r){if(t.length<2)return r.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"===N(n))return r.error("First argument must be an image or text section.");for(var i=[],o=!1,a=1;a<=t.length-1;++a){var s=t[a];if(o&&"object"===N(s)&&!Array.isArray(s)){o=!1;var u=null;if(s["font-scale"]&&!(u=r.parse(s["font-scale"],1,me)))return null;var l=null;if(s["text-font"]&&!(l=r.parse(s["text-font"],1,Ee(ge))))return null;var c=null;if(s["text-color"]&&!(c=r.parse(s["text-color"],1,_e)))return null;var f=i[i.length-1];f.scale=u,f.font=l,f.textColor=c}else{var h=r.parse(t[a],1,xe);if(!h)return null;var p=h.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:h,scale:null,font:null,textColor:null})}}return new e(i)}}]),e}(),Ye=function(){function e(t){P(this,e),this.type=Se,this.input=t}return R(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e),r=Ze.fromString(t);return r&&e.availableImages&&(r.available=e.availableImages.indexOf(t)>-1),r}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["image",this.input.serialize()]}}],[{key:"parse",value:function(t,r){if(2!==t.length)return r.error("Expected two arguments.");var n=r.parse(t[1],1,ge);return n?new e(n):r.error("No image name provided.")}}]),e}(),We={"to-boolean":be,"to-color":_e,"to-number":me,"to-string":ge},Ke=function(){function e(t,r){P(this,e),this.type=t,this.args=r}return R(e,[{key:"evaluate",value:function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){var t,r,n,i=D(this.args);try{for(i.s();!(n=i.n()).done;){if(t=n.value.evaluate(e),r=null,t instanceof Ie)return t;if("string"==typeof t){var o=e.parseColor(t);if(o)return o}else if(Array.isArray(t)&&!(r=t.length<3||t.length>4?"Invalid rbga value ".concat(JSON.stringify(t),": expected an array containing either three or four numeric values."):Fe(t[0],t[1],t[2],t[3])))return new Ie(t[0]/255,t[1]/255,t[2]/255,t[3])}}catch(e){i.e(e)}finally{i.f()}throw new Ue(r||"Could not parse color from value '".concat("string"==typeof t?t:String(JSON.stringify(t)),"'"))}if("number"===this.type.kind){var a,s=null,u=D(this.args);try{for(u.s();!(a=u.n()).done;){if(null===(s=a.value.evaluate(e)))return 0;var l=Number(s);if(!isNaN(l))return l}}catch(e){u.e(e)}finally{u.f()}throw new Ue("Could not convert ".concat(JSON.stringify(s)," to number."))}return"formatted"===this.type.kind?De.fromString(Be(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Ze.fromString(Be(this.args[0].evaluate(e))):Be(this.args[0].evaluate(e))}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){if("formatted"===this.type.kind)return new Xe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ye(this.args[0]).serialize();var e=["to-".concat(this.type.kind)];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,r){if(t.length<2)return r.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return r.error("Expected one argument.");for(var i=We[n],o=[],a=1;a<t.length;a++){var s=r.parse(t[a],a,xe);if(!s)return null;o.push(s)}return new e(i,o)}}]),e}(),He=["Unknown","Point","LineString","Polygon"],$e=function(){function e(){P(this,e),this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}return R(e,[{key:"id",value:function(){return this.feature&&"id"in this.feature?this.feature.id:null}},{key:"geometryType",value:function(){return this.feature?"number"==typeof this.feature.type?He[this.feature.type]:this.feature.type:null}},{key:"geometry",value:function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}},{key:"canonicalID",value:function(){return this.canonical}},{key:"properties",value:function(){return this.feature&&this.feature.properties||{}}},{key:"parseColor",value:function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Ie.parse(e)),t}}]),e}(),Je=function(){function e(t,r,n,i){P(this,e),this.name=t,this.type=r,this._evaluate=n,this.args=i}return R(e,[{key:"evaluate",value:function(e){return this._evaluate(e,this.args)}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))}}],[{key:"parse",value:function(t,r){var n=t[0],i=e.definitions[n];if(!i)return r.error('Unknown expression "'.concat(n,'". If you wanted a literal array, use ["literal", [...]].'),0);var o,a=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,u=s.filter((function(e){var r=O(e,1)[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=D(u);try{for(c.s();!(o=c.n()).done;){var f=O(o.value,2),h=f[0],p=f[1];l=new wt(r.registry,r.path,null,r.scope);for(var d=[],y=!1,v=1;v<t.length;v++){var m=t[v],g=Array.isArray(h)?h[v-1]:h.type,b=l.parse(m,1+d.length,g);if(!b){y=!0;break}d.push(b)}if(!y)if(Array.isArray(h)&&h.length!==d.length)l.error("Expected ".concat(h.length," arguments, but found ").concat(d.length," instead."));else{for(var _=0;_<d.length;_++){var w=Array.isArray(h)?h[_]:h.type,k=d[_];l.concat(_+1).checkSubtype(w,k.type)}if(0===l.errors.length)return new e(n,a,p,d)}}}catch(e){c.e(e)}finally{c.f()}if(1===u.length){var S;(S=r.errors).push.apply(S,x(l.errors))}else{for(var E=(u.length?u:s).map((function(e){var t,r=O(e,1)[0];return t=r,Array.isArray(t)?"(".concat(t.map(Te).join(", "),")"):"(".concat(Te(t.type),"...)")})).join(" | "),T=[],R=1;R<t.length;R++){var P=r.parse(t[R],1+T.length);if(!P)return null;T.push(Te(P.type))}r.error("Expected arguments of type ".concat(E,", but found (").concat(T.join(", "),") instead."))}return null}},{key:"register",value:function(t,r){for(var n in e.definitions=r,r)t[n]=e}}]),e}();var Qe=function(){function e(t,r,n){P(this,e),this.type=ke,this.locale=n,this.caseSensitive=t,this.diacriticSensitive=r}return R(e,[{key:"evaluate",value:function(e){return new Ae(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}},{key:"eachChild",value:function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}],[{key:"parse",value:function(t,r){if(2!==t.length)return r.error("Expected one argument.");var n=t[1];if("object"!==N(n)||Array.isArray(n))return r.error("Collator options argument must be an object.");var i=r.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,be);if(!i)return null;var o=r.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,be);if(!o)return null;var a=null;return n.locale&&!(a=r.parse(n.locale,1,ge))?null:new e(i,o,a)}}]),e}(),et=8192;function tt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function rt(e,t){return!(e[0]<=t[0])&&(!(e[2]>=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function nt(e,t){var r,n=(180+e[0])/360,i=(r=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),o=Math.pow(2,t.z);return[Math.round(n*o*et),Math.round(i*o*et)]}function it(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function ot(e,t){for(var r,n,i,o,a,s,u,l=!1,c=0,f=t.length;c<f;c++)for(var h=t[c],p=0,d=h.length;p<d-1;p++){if(r=e,n=h[p],i=h[p+1],o=void 0,a=void 0,s=void 0,u=void 0,o=r[0]-n[0],a=r[1]-n[1],s=r[0]-i[0],u=r[1]-i[1],o*u-s*a==0&&o*s<=0&&a*u<=0)return!1;it(e,h[p],h[p+1])&&(l=!l)}return l}function at(e,t){for(var r=0;r<t.length;r++)if(ot(e,t[r]))return!0;return!1}function st(e,t,r,n){var i=e[0]-r[0],o=e[1]-r[1],a=t[0]-r[0],s=t[1]-r[1],u=n[0]-r[0],l=n[1]-r[1],c=i*l-u*o,f=a*l-u*s;return c>0&&f<0||c<0&&f>0}function ut(e,t,r){var n,i,o,a,s,u,l,c,f,h=D(r);try{for(h.s();!(n=h.n()).done;)for(var p=n.value,d=0;d<p.length-1;++d)if(i=e,o=t,a=p[d],s=p[d+1],u=void 0,l=void 0,c=void 0,f=void 0,c=[o[0]-i[0],o[1]-i[1]],f=[s[0]-a[0],s[1]-a[1]],0!=(u=f)[0]*(l=c)[1]-u[1]*l[0]&&st(i,o,a,s)&&st(a,s,i,o))return!0}catch(e){h.e(e)}finally{h.f()}return!1}function lt(e,t){for(var r=0;r<e.length;++r)if(!ot(e[r],t))return!1;for(var n=0;n<e.length-1;++n)if(ut(e[n],e[n+1],t))return!1;return!0}function ct(e,t){for(var r=0;r<t.length;r++)if(lt(e,t[r]))return!0;return!1}function ft(e,t,r){for(var n=[],i=0;i<e.length;i++){for(var o=[],a=0;a<e[i].length;a++){var s=nt(e[i][a],r);tt(t,s),o.push(s)}n.push(o)}return n}function ht(e,t,r){for(var n=[],i=0;i<e.length;i++){var o=ft(e[i],t,r);n.push(o)}return n}function pt(e,t,r,n){if(e[0]<r[0]||e[0]>r[2]){var i=.5*n,o=e[0]-r[0]>i?-n:r[0]-e[0]>i?n:0;0===o&&(o=e[0]-r[2]>i?-n:r[2]-e[0]>i?n:0),e[0]+=o}tt(t,e)}function dt(e,t,r,n){var i,o=Math.pow(2,n.z)*et,a=[n.x*et,n.y*et],s=[],u=D(e);try{for(u.s();!(i=u.n()).done;){var l,c=D(i.value);try{for(c.s();!(l=c.n()).done;){var f=l.value,h=[f.x+a[0],f.y+a[1]];pt(h,t,r,o),s.push(h)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){u.e(e)}finally{u.f()}return s}function yt(e,t,r,n){var i,o,a=Math.pow(2,n.z)*et,s=[n.x*et,n.y*et],u=[],l=D(e);try{for(l.s();!(i=l.n()).done;){var c,f=i.value,h=[],p=D(f);try{for(p.s();!(c=p.n()).done;){var d=c.value,y=[d.x+s[0],d.y+s[1]];tt(t,y),h.push(y)}}catch(e){p.e(e)}finally{p.f()}u.push(h)}}catch(e){l.e(e)}finally{l.f()}if(t[2]-t[0]<=a/2){(o=t)[0]=o[1]=1/0,o[2]=o[3]=-1/0;var v,m=D(u);try{for(m.s();!(v=m.n()).done;){var g,b=D(v.value);try{for(b.s();!(g=b.n()).done;){pt(g.value,t,r,a)}}catch(e){b.e(e)}finally{b.f()}}}catch(e){m.e(e)}finally{m.f()}}return u}var vt=function(){function e(t,r){P(this,e),this.type=be,this.geojson=t,this.geometries=r}return R(e,[{key:"evaluate",value:function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var o=ft(t.coordinates,n,i),a=dt(e.geometry(),r,n,i);if(!rt(r,n))return!1;var s,u=D(a);try{for(u.s();!(s=u.n()).done;)if(!ot(s.value,o))return!1}catch(e){u.e(e)}finally{u.f()}}if("MultiPolygon"===t.type){var l=ht(t.coordinates,n,i),c=dt(e.geometry(),r,n,i);if(!rt(r,n))return!1;var f,h=D(c);try{for(h.s();!(f=h.n()).done;)if(!at(f.value,l))return!1}catch(e){h.e(e)}finally{h.f()}}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var o=ft(t.coordinates,n,i),a=yt(e.geometry(),r,n,i);if(!rt(r,n))return!1;var s,u=D(a);try{for(u.s();!(s=u.n()).done;)if(!lt(s.value,o))return!1}catch(e){u.e(e)}finally{u.f()}}if("MultiPolygon"===t.type){var l=ht(t.coordinates,n,i),c=yt(e.geometry(),r,n,i);if(!rt(r,n))return!1;var f,h=D(c);try{for(h.s();!(f=h.n()).done;)if(!ct(f.value,l))return!1}catch(e){h.e(e)}finally{h.f()}}return!0}(e,this.geometries)}return!1}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["within",this.geojson]}}],[{key:"parse",value:function(t,r){if(2!==t.length)return r.error("'within' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(Ne(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var i=0;i<n.features.length;++i){var o=n.features[i].geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new e(n,n.features[i].geometry)}else if("Feature"===n.type){var a=n.geometry.type;if("Polygon"===a||"MultiPolygon"===a)return new e(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new e(n,n)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}}]),e}();function mt(e){if(e instanceof Je){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof vt)return!1;var t=!0;return e.eachChild((function(e){t&&!mt(e)&&(t=!1)})),t}function gt(e){if(e instanceof Je&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!gt(e)&&(t=!1)})),t}function bt(e,t){if(e instanceof Je&&t.indexOf(e.name)>=0)return!1;var r=!0;return e.eachChild((function(e){r&&!bt(e,t)&&(r=!1)})),r}var _t=function(){function e(t,r){P(this,e),this.type=r.type,this.name=t,this.boundExpression=r}return R(e,[{key:"evaluate",value:function(e){return this.boundExpression.evaluate(e)}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["var",this.name]}}],[{key:"parse",value:function(t,r){if(2!==t.length||"string"!=typeof t[1])return r.error("'var' expression requires exactly one string literal argument.");var n=t[1];return r.scope.has(n)?new e(n,r.scope.get(n)):r.error('Unknown variable "'.concat(n,'". Make sure "').concat(n,'" has been bound in an enclosing "let" expression before using it.'),1)}}]),e}(),wt=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ye,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];P(this,e),this.registry=t,this.path=r,this.key=r.map((function(e){return"[".concat(e,"]")})).join(""),this.scope=i,this.errors=o,this.expectedType=n}return R(e,[{key:"parse",value:function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return t?this.concat(t,r,n)._parse(e,i):this._parse(e,i)}},{key:"_parse",value:function(e,t){function r(e,t,r){return"assert"===r?new Ve(t,[e]):"coerce"===r?new Ke(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found ".concat(N(n),' instead. If you wanted a literal array, use ["literal", [...]].'),0),null;var i=this.registry[n];if(i){var o=i.parse(e,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,t.typeAnnotation||"coerce");else o=r(o,a,t.typeAnnotation||"assert")}if(!(o instanceof ze)&&"resolvedImage"!==o.type.kind&&xt(o)){var u=new $e;try{o=new ze(o.type,o.evaluate(u))}catch(e){return this.error(e.message),null}}return o}return this.error('Unknown expression "'.concat(n,'". If you wanted a literal array, use ["literal", [...]].'),0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"===N(e)?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found ".concat(N(e)," instead."))}},{key:"concat",value:function(t,r,n){var i="number"==typeof t?this.path.concat(t):this.path,o=n?this.scope.concat(n):this.scope;return new e(this.registry,i,r||null,o,this.errors)}},{key:"error",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i="".concat(this.key).concat(r.map((function(e){return"[".concat(e,"]")})).join(""));this.errors.push(new de(i,e))}},{key:"checkSubtype",value:function(e,t){var r=Pe(e,t);return r&&this.error(r),r}}]),e}();function xt(e){if(e instanceof _t)return xt(e.boundExpression);if(e instanceof Je&&"error"===e.name)return!1;if(e instanceof Qe)return!1;if(e instanceof vt)return!1;var t=e instanceof Ke||e instanceof Ve,r=!0;return e.eachChild((function(e){r=t?r&&xt(e):r&&e instanceof ze})),!!r&&(mt(e)&&bt(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"]))}function kt(e,t){for(var r,n,i=e.length-1,o=0,a=i,s=0;o<=a;)if(r=e[s=Math.floor((o+a)/2)],n=e[s+1],r<=t){if(s===i||t<n)return s;o=s+1}else{if(!(r>t))throw new Ue("Input is not a number.");a=s-1}return 0}var Ot=function(){function e(t,r,n){P(this,e),this.type=t,this.input=r,this.labels=[],this.outputs=[];var i,o=D(n);try{for(o.s();!(i=o.n()).done;){var a=O(i.value,2),s=a[0],u=a[1];this.labels.push(s),this.outputs.push(u)}}catch(e){o.e(e)}finally{o.f()}}return R(e,[{key:"evaluate",value:function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var i=t.length;return n>=t[i-1]?r[i-1].evaluate(e):r[kt(t,n)].evaluate(e)}},{key:"eachChild",value:function(e){e(this.input);var t,r=D(this.outputs);try{for(r.s();!(t=r.n()).done;){e(t.value)}}catch(e){r.e(e)}finally{r.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}],[{key:"parse",value:function(t,r){if(t.length-1<4)return r.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");var n=r.parse(t[1],1,me);if(!n)return null;var i=[],o=null;r.expectedType&&"value"!==r.expectedType.kind&&(o=r.expectedType);for(var a=1;a<t.length;a+=2){var s=1===a?-1/0:t[a],u=t[a+1],l=a,c=a+1;if("number"!=typeof s)return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(i.length&&i[i.length-1][0]>=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var f=r.parse(u,c,o);if(!f)return null;o=o||f.type,i.push([s,f])}return new e(o,n,i)}}]),e}(),St=Et;function Et(e,t,r,n){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=r,this.p2y=n}function Tt(e,t,r){return e*(1-r)+t*r}Et.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},Et.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},Et.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},Et.prototype.solveCurveX=function(e,t){var r,n,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(r=0))return r;if(i>(n=1))return n;for(;r<n;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?r=i:n=i,i=.5*(n-r)+r}return i},Et.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Rt=Object.freeze({__proto__:null,number:Tt,color:function(e,t,r){return new Ie(Tt(e.r,t.r,r),Tt(e.g,t.g,r),Tt(e.b,t.b,r),Tt(e.a,t.a,r))},array:function(e,t,r){return e.map((function(e,n){return Tt(e,t[n],r)}))}}),Pt=.95047,Ct=1.08883,Mt=4/29,jt=6/29,It=3*jt*jt,At=Math.PI/180,Lt=180/Math.PI;function Dt(e){return e>.008856451679035631?Math.pow(e,1/3):e/It+Mt}function Zt(e){return e>jt?e*e*e:It*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Gt(e){var t=Nt(e.r),r=Nt(e.g),n=Nt(e.b),i=Dt((.4124564*t+.3575761*r+.1804375*n)/Pt),o=Dt((.2126729*t+.7151522*r+.072175*n)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Dt((.0193339*t+.119192*r+.9503041*n)/Ct)),alpha:e.a}}function Bt(e){var t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*Zt(t),r=Pt*Zt(r),n=Ct*Zt(n),new Ie(Ft(3.2404542*r-1.5371385*t-.4985314*n),Ft(-.969266*r+1.8760108*t+.041556*n),Ft(.0556434*r-.2040259*t+1.0572252*n),e.alpha)}function zt(e,t,r){var n=t-e;return e+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var Ut={forward:Gt,reverse:Bt,interpolate:function(e,t,r){return{l:Tt(e.l,t.l,r),a:Tt(e.a,t.a,r),b:Tt(e.b,t.b,r),alpha:Tt(e.alpha,t.alpha,r)}}},qt={forward:function(e){var t=Gt(e),r=t.l,n=t.a,i=t.b,o=Math.atan2(i,n)*Lt;return{h:o<0?o+360:o,c:Math.sqrt(n*n+i*i),l:r,alpha:e.a}},reverse:function(e){var t=e.h*At,r=e.c;return Bt({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})},interpolate:function(e,t,r){return{h:zt(e.h,t.h,r),c:Tt(e.c,t.c,r),l:Tt(e.l,t.l,r),alpha:Tt(e.alpha,t.alpha,r)}}},Vt=function(){function e(t,r,n,i,o){P(this,e),this.type=t,this.operator=r,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];var a,s=D(o);try{for(s.s();!(a=s.n()).done;){var u=O(a.value,2),l=u[0],c=u[1];this.labels.push(l),this.outputs.push(c)}}catch(e){s.e(e)}finally{s.f()}}return R(e,[{key:"evaluate",value:function(t){var r=this.labels,n=this.outputs;if(1===r.length)return n[0].evaluate(t);var i=this.input.evaluate(t);if(i<=r[0])return n[0].evaluate(t);var o=r.length;if(i>=r[o-1])return n[o-1].evaluate(t);var a=kt(r,i),s=r[a],u=r[a+1],l=e.interpolationFactor(this.interpolation,i,s,u),c=n[a].evaluate(t),f=n[a+1].evaluate(t);return"interpolate"===this.operator?Rt[this.type.kind.toLowerCase()](c,f,l):"interpolate-hcl"===this.operator?qt.reverse(qt.interpolate(qt.forward(c),qt.forward(f),l)):Ut.reverse(Ut.interpolate(Ut.forward(c),Ut.forward(f),l))}},{key:"eachChild",value:function(e){e(this.input);var t,r=D(this.outputs);try{for(r.s();!(t=r.n()).done;){e(t.value)}}catch(e){r.e(e)}finally{r.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],r=0;r<this.labels.length;r++)t.push(this.labels[r],this.outputs[r].serialize());return t}}],[{key:"interpolationFactor",value:function(e,t,r,n){var i=0;if("exponential"===e.name)i=Xt(t,e.base,r,n);else if("linear"===e.name)i=Xt(t,1,r,n);else if("cubic-bezier"===e.name){var o=e.controlPoints;i=new St(o[0],o[1],o[2],o[3]).solve(Xt(t,1,r,n))}return i}},{key:"parse",value:function(t,r){var n,i=E(n=t)||k(n)||Z(n)||S(),o=i[0],a=i[1],s=i[2],u=i.slice(3);if(!Array.isArray(a)||0===a.length)return r.error("Expected an interpolation type expression.",1);if("linear"===a[0])a={name:"linear"};else if("exponential"===a[0]){var l=a[1];if("number"!=typeof l)return r.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:l}}else{if("cubic-bezier"!==a[0])return r.error("Unknown interpolation type ".concat(String(a[0])),1,0);var c=a.slice(1);if(4!==c.length||c.some((function(e){return"number"!=typeof e||e<0||e>1})))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:c}}if(t.length-1<4)return r.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(!(s=r.parse(s,2,me)))return null;var f=[],h=null;"interpolate-hcl"===o||"interpolate-lab"===o?h=_e:r.expectedType&&"value"!==r.expectedType.kind&&(h=r.expectedType);for(var p=0;p<u.length;p+=2){var d=u[p],y=u[p+1],v=p+3,m=p+4;if("number"!=typeof d)return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',v);if(f.length&&f[f.length-1][0]>=d)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',v);var g=r.parse(y,m,h);if(!g)return null;h=h||g.type,f.push([d,g])}return"number"===h.kind||"color"===h.kind||"array"===h.kind&&"number"===h.itemType.kind&&"number"==typeof h.N?new e(h,o,a,s,f):r.error("Type ".concat(Te(h)," is not interpolatable."))}}]),e}();function Xt(e,t,r,n){var i=n-r,o=e-r;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}var Yt=function(){function e(t,r){P(this,e),this.type=t,this.args=r}return R(e,[{key:"evaluate",value:function(e){var t,r,n=null,i=0,o=D(this.args);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(i++,(n=a.evaluate(e))&&n instanceof Ze&&!n.available&&(t||(t=n.name),n=null,i===this.args.length&&(n=t)),null!==n)break}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,r){if(t.length<2)return r.error("Expectected at least one argument.");var n=null,i=r.expectedType;i&&"value"!==i.kind&&(n=i);var o,a=[],s=D(t.slice(1));try{for(s.s();!(o=s.n()).done;){var u=o.value,l=r.parse(u,1+a.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,a.push(l)}}catch(e){s.e(e)}finally{s.f()}return new e(i&&a.some((function(e){return Pe(i,e.type)}))?xe:n,a)}}]),e}(),Wt=function(){function e(t,r){P(this,e),this.type=r.type,this.bindings=[].concat(t),this.result=r}return R(e,[{key:"evaluate",value:function(e){return this.result.evaluate(e)}},{key:"eachChild",value:function(e){var t,r=D(this.bindings);try{for(r.s();!(t=r.n()).done;){e(t.value[1])}}catch(e){r.e(e)}finally{r.f()}e(this.result)}},{key:"outputDefined",value:function(){return this.result.outputDefined()}},{key:"serialize",value:function(){var e,t=["let"],r=D(this.bindings);try{for(r.s();!(e=r.n()).done;){var n=O(e.value,2),i=n[0],o=n[1];t.push(i,o.serialize())}}catch(e){r.e(e)}finally{r.f()}return t.push(this.result.serialize()),t}}],[{key:"parse",value:function(t,r){if(t.length<4)return r.error("Expected at least 3 arguments, but found ".concat(t.length-1," instead."));for(var n=[],i=1;i<t.length-1;i+=2){var o=t[i];if("string"!=typeof o)return r.error("Expected string, but found ".concat(N(o)," instead."),i);if(/[^a-zA-Z0-9_]/.test(o))return r.error("Variable names must contain only alphanumeric characters or '_'.",i);var a=r.parse(t[i+1],i+1);if(!a)return null;n.push([o,a])}var s=r.parse(t[t.length-1],t.length-1,r.expectedType,n);return s?new e(n,s):null}}]),e}(),Kt=function(){function e(t,r,n){P(this,e),this.type=t,this.index=r,this.input=n}return R(e,[{key:"evaluate",value:function(e){var t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new Ue("Array index out of bounds: ".concat(t," < 0."));if(t>=r.length)throw new Ue("Array index out of bounds: ".concat(t," > ").concat(r.length-1,"."));if(t!==Math.floor(t))throw new Ue("Array index must be an integer, but found ".concat(t," instead."));return r[t]}},{key:"eachChild",value:function(e){e(this.index),e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["at",this.index.serialize(),this.input.serialize()]}}],[{key:"parse",value:function(t,r){if(3!==t.length)return r.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=r.parse(t[1],1,me),i=r.parse(t[2],2,Ee(r.expectedType||xe));return n&&i?new e(i.type.itemType,n,i):null}}]),e}(),Ht=function(){function e(t,r){P(this,e),this.type=be,this.needle=t,this.haystack=r}return R(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!r)return!1;if(!Me(t,["boolean","string","number","null"]))throw new Ue("Expected first argument to be of type boolean, string, number or null, but found ".concat(Te(Ge(t))," instead."));if(!Me(r,["string","array"]))throw new Ue("Expected second argument to be of type array or string, but found ".concat(Te(Ge(r))," instead."));return r.indexOf(t)>=0}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["in",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,r){if(3!==t.length)return r.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=r.parse(t[1],1,xe),i=r.parse(t[2],2,xe);return n&&i?Ce(n.type,[be,ge,me,ve,xe])?new e(n,i):r.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(Te(n.type)," instead")):null}}]),e}(),$t=function(){function e(t,r,n){P(this,e),this.type=me,this.needle=t,this.haystack=r,this.fromIndex=n}return R(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!Me(t,["boolean","string","number","null"]))throw new Ue("Expected first argument to be of type boolean, string, number or null, but found ".concat(Te(Ge(t))," instead."));if(!Me(r,["string","array"]))throw new Ue("Expected second argument to be of type array or string, but found ".concat(Te(Ge(r))," instead."));if(this.fromIndex){var n=this.fromIndex.evaluate(e);return r.indexOf(t,n)}return r.indexOf(t)}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,r){if(t.length<=2||t.length>=5)return r.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=r.parse(t[1],1,xe),i=r.parse(t[2],2,xe);if(!n||!i)return null;if(!Ce(n.type,[be,ge,me,ve,xe]))return r.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(Te(n.type)," instead"));if(4===t.length){var o=r.parse(t[3],3,me);return o?new e(n,i,o):null}return new e(n,i)}}]),e}(),Jt=function(){function e(t,r,n,i,o,a){P(this,e),this.inputType=t,this.type=r,this.input=n,this.cases=i,this.outputs=o,this.otherwise=a}return R(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);return(Ge(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}},{key:"eachChild",value:function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e,t=this,r=["match",this.input.serialize()],n=[],i={},o=D(Object.keys(this.cases).sort());try{for(o.s();!(e=o.n()).done;){var a=e.value,s=i[this.cases[a]];void 0===s?(i[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[s][1].push(a)}}catch(e){o.e(e)}finally{o.f()}for(var u=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,c=n;l<c.length;l++){var f=O(c[l],2),h=f[0],p=f[1];1===p.length?r.push(u(p[0])):r.push(p.map(u)),r.push(this.outputs[h].serialize())}return r.push(this.otherwise.serialize()),r}}],[{key:"parse",value:function(t,r){if(t.length<5)return r.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if(t.length%2!=1)return r.error("Expected an even number of arguments.");var n,i;r.expectedType&&"value"!==r.expectedType.kind&&(i=r.expectedType);for(var o={},a=[],s=2;s<t.length-1;s+=2){var u=t[s],l=t[s+1];Array.isArray(u)||(u=[u]);var c=r.concat(s);if(0===u.length)return c.error("Expected at least one branch label.");var f,h=D(u);try{for(h.s();!(f=h.n()).done;){var p=f.value;if("number"!=typeof p&&"string"!=typeof p)return c.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof p&&Math.floor(p)!==p)return c.error("Numeric branch labels must be integer values.");if(n){if(c.checkSubtype(n,Ge(p)))return null}else n=Ge(p);if(void 0!==o[String(p)])return c.error("Branch labels must be unique.");o[String(p)]=a.length}}catch(e){h.e(e)}finally{h.f()}var d=r.parse(l,s,i);if(!d)return null;i=i||d.type,a.push(d)}var y=r.parse(t[1],1,xe);if(!y)return null;var v=r.parse(t[t.length-1],t.length-1,i);return v?"value"!==y.type.kind&&r.concat(1).checkSubtype(n,y.type)?null:new e(n,i,y,o,a,v):null}}]),e}(),Qt=function(){function e(t,r,n){P(this,e),this.type=t,this.branches=r,this.otherwise=n}return R(e,[{key:"evaluate",value:function(e){var t,r=D(this.branches);try{for(r.s();!(t=r.n()).done;){var n=O(t.value,2),i=n[0],o=n[1];if(i.evaluate(e))return o.evaluate(e)}}catch(e){r.e(e)}finally{r.f()}return this.otherwise.evaluate(e)}},{key:"eachChild",value:function(e){var t,r=D(this.branches);try{for(r.s();!(t=r.n()).done;){var n=O(t.value,2),i=n[0],o=n[1];e(i),e(o)}}catch(e){r.e(e)}finally{r.f()}e(this.otherwise)}},{key:"outputDefined",value:function(){return this.branches.every((function(e){var t=O(e,2);t[0];return t[1].outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,r){if(t.length<4)return r.error("Expected at least 3 arguments, but found only ".concat(t.length-1,"."));if(t.length%2!=0)return r.error("Expected an odd number of arguments.");var n;r.expectedType&&"value"!==r.expectedType.kind&&(n=r.expectedType);for(var i=[],o=1;o<t.length-1;o+=2){var a=r.parse(t[o],o,be);if(!a)return null;var s=r.parse(t[o+1],o+1,n);if(!s)return null;i.push([a,s]),n=n||s.type}var u=r.parse(t[t.length-1],t.length-1,n);return u?new e(n,i,u):null}}]),e}(),er=function(){function e(t,r,n,i){P(this,e),this.type=t,this.input=r,this.beginIndex=n,this.endIndex=i}return R(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!Me(t,["string","array"]))throw new Ue("Expected first argument to be of type array or string, but found ".concat(Te(Ge(t))," instead."));if(this.endIndex){var n=this.endIndex.evaluate(e);return t.slice(r,n)}return t.slice(r)}},{key:"eachChild",value:function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}],[{key:"parse",value:function(t,r){if(t.length<=2||t.length>=5)return r.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=r.parse(t[1],1,xe),i=r.parse(t[2],2,me);if(!n||!i)return null;if(!Ce(n.type,[Ee(xe),ge,xe]))return r.error("Expected first argument to be of type array or string, but found ".concat(Te(n.type)," instead"));if(4===t.length){var o=r.parse(t[3],3,me);return o?new e(n.type,n,i,o):null}return new e(n.type,n,i)}}]),e}();function tr(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function rr(e,t,r,n){return 0===n.compare(t,r)}function nr(e,t,r){var n="=="!==e&&"!="!==e;return function(){function i(e,t,r){P(this,i),this.type=be,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return R(i,[{key:"evaluate",value:function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=Ge(o),u=Ge(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new Ue('Expected arguments for "'.concat(e,'" to be (string, string) or (number, number), but found (').concat(s.kind,", ").concat(u.kind,") instead."))}if(this.collator&&!n&&this.hasUntypedArgument){var l=Ge(o),c=Ge(a);if("string"!==l.kind||"string"!==c.kind)return t(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):t(i,o,a)}},{key:"eachChild",value:function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t}}],[{key:"parse",value:function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var r=e[0],o=t.parse(e[1],1,xe);if(!o)return null;if(!tr(r,o.type))return t.concat(1).error('"'.concat(r,"\" comparisons are not supported for type '").concat(Te(o.type),"'."));var a=t.parse(e[2],2,xe);if(!a)return null;if(!tr(r,a.type))return t.concat(2).error('"'.concat(r,"\" comparisons are not supported for type '").concat(Te(a.type),"'."));if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '".concat(Te(o.type),"' and '").concat(Te(a.type),"'."));n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Ve(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Ve(o.type,[a])));var s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,ke)))return null}return new i(o,a,s)}}]),i}()}var ir=nr("==",(function(e,t,r){return t===r}),rr),or=nr("!=",(function(e,t,r){return t!==r}),(function(e,t,r,n){return!rr(0,t,r,n)})),ar=nr("<",(function(e,t,r){return t<r}),(function(e,t,r,n){return n.compare(t,r)<0})),sr=nr(">",(function(e,t,r){return t>r}),(function(e,t,r,n){return n.compare(t,r)>0})),ur=nr("<=",(function(e,t,r){return t<=r}),(function(e,t,r,n){return n.compare(t,r)<=0})),lr=nr(">=",(function(e,t,r){return t>=r}),(function(e,t,r,n){return n.compare(t,r)>=0})),cr=function(){function e(t,r,n,i,o){P(this,e),this.type=ge,this.number=t,this.locale=r,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=o}return R(e,[{key:"evaluate",value:function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}},{key:"eachChild",value:function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}],[{key:"parse",value:function(t,r){if(3!==t.length)return r.error("Expected two arguments.");var n=r.parse(t[1],1,me);if(!n)return null;var i=t[2];if("object"!==N(i)||Array.isArray(i))return r.error("NumberFormat options argument must be an object.");var o=null;if(i.locale&&!(o=r.parse(i.locale,1,ge)))return null;var a=null;if(i.currency&&!(a=r.parse(i.currency,1,ge)))return null;var s=null;if(i["min-fraction-digits"]&&!(s=r.parse(i["min-fraction-digits"],1,me)))return null;var u=null;return i["max-fraction-digits"]&&!(u=r.parse(i["max-fraction-digits"],1,me))?null:new e(n,o,a,s,u)}}]),e}(),fr={"==":ir,"!=":or,">":sr,"<":ar,">=":lr,"<=":ur,array:Ve,at:Kt,boolean:Ve,case:Qt,coalesce:Yt,collator:Qe,format:Xe,image:Ye,in:Ht,"index-of":$t,interpolate:Vt,"interpolate-hcl":Vt,"interpolate-lab":Vt,length:function(){function e(t){P(this,e),this.type=me,this.input=t}return R(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ue("Expected value to be of type string or array, but found ".concat(Te(Ge(t))," instead."))}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,r){if(2!==t.length)return r.error("Expected 1 argument, but found ".concat(t.length-1," instead."));var n=r.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?r.error("Expected argument of type string or array, but found ".concat(Te(n.type)," instead.")):new e(n):null}}]),e}(),let:Wt,literal:ze,match:Jt,number:Ve,"number-format":cr,object:Ve,slice:er,step:Ot,string:Ve,"to-boolean":Ke,"to-color":Ke,"to-number":Ke,"to-string":Ke,var:_t,within:vt};function hr(e,t){var r=O(t,4),n=r[0],i=r[1],o=r[2],a=r[3];n=n.evaluate(e),i=i.evaluate(e),o=o.evaluate(e);var s=a?a.evaluate(e):1,u=Fe(n,i,o,s);if(u)throw new Ue(u);return new Ie(n/255*s,i/255*s,o/255*s,s)}function pr(e,t){return e in t}function dr(e,t){var r=t[e];return void 0===r?null:r}function yr(e){return{type:e}}function vr(e){return{result:"success",value:e}}function mr(e){return{result:"error",value:e}}function gr(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function br(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function _r(e){return!!e.expression&&e.expression.interpolated}function wr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":N(e)}function xr(e){return"object"===N(e)&&null!==e&&!Array.isArray(e)}Je.register(fr,{error:[{kind:"error"},[ge],function(e,t){var r=O(t,1)[0];throw new Ue(r.evaluate(e))}],typeof:[ge,[xe],function(e,t){return Te(Ge(O(t,1)[0].evaluate(e)))}],"to-rgba":[Ee(me,4),[_e],function(e,t){return O(t,1)[0].evaluate(e).toArray()}],rgb:[_e,[me,me,me],hr],rgba:[_e,[me,me,me,me],hr],has:{type:be,overloads:[[[ge],function(e,t){return pr(O(t,1)[0].evaluate(e),e.properties())}],[[ge,we],function(e,t){var r=O(t,2),n=r[0],i=r[1];return pr(n.evaluate(e),i.evaluate(e))}]]},get:{type:xe,overloads:[[[ge],function(e,t){return dr(O(t,1)[0].evaluate(e),e.properties())}],[[ge,we],function(e,t){var r=O(t,2),n=r[0],i=r[1];return dr(n.evaluate(e),i.evaluate(e))}]]},"feature-state":[xe,[ge],function(e,t){return dr(O(t,1)[0].evaluate(e),e.featureState||{})}],properties:[we,[],function(e){return e.properties()}],"geometry-type":[ge,[],function(e){return e.geometryType()}],id:[xe,[],function(e){return e.id()}],zoom:[me,[],function(e){return e.globals.zoom}],"heatmap-density":[me,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[me,[],function(e){return e.globals.lineProgress||0}],"sky-radial-progress":[me,[],function(e){return e.globals.skyRadialProgress||0}],accumulated:[xe,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[me,yr(me),function(e,t){var r,n=0,i=D(t);try{for(i.s();!(r=i.n()).done;){n+=r.value.evaluate(e)}}catch(e){i.e(e)}finally{i.f()}return n}],"*":[me,yr(me),function(e,t){var r,n=1,i=D(t);try{for(i.s();!(r=i.n()).done;){n*=r.value.evaluate(e)}}catch(e){i.e(e)}finally{i.f()}return n}],"-":{type:me,overloads:[[[me,me],function(e,t){var r=O(t,2),n=r[0],i=r[1];return n.evaluate(e)-i.evaluate(e)}],[[me],function(e,t){return-O(t,1)[0].evaluate(e)}]]},"/":[me,[me,me],function(e,t){var r=O(t,2),n=r[0],i=r[1];return n.evaluate(e)/i.evaluate(e)}],"%":[me,[me,me],function(e,t){var r=O(t,2),n=r[0],i=r[1];return n.evaluate(e)%i.evaluate(e)}],ln2:[me,[],function(){return Math.LN2}],pi:[me,[],function(){return Math.PI}],e:[me,[],function(){return Math.E}],"^":[me,[me,me],function(e,t){var r=O(t,2),n=r[0],i=r[1];return Math.pow(n.evaluate(e),i.evaluate(e))}],sqrt:[me,[me],function(e,t){var r=O(t,1)[0];return Math.sqrt(r.evaluate(e))}],log10:[me,[me],function(e,t){var r=O(t,1)[0];return Math.log(r.evaluate(e))/Math.LN10}],ln:[me,[me],function(e,t){var r=O(t,1)[0];return Math.log(r.evaluate(e))}],log2:[me,[me],function(e,t){var r=O(t,1)[0];return Math.log(r.evaluate(e))/Math.LN2}],sin:[me,[me],function(e,t){var r=O(t,1)[0];return Math.sin(r.evaluate(e))}],cos:[me,[me],function(e,t){var r=O(t,1)[0];return Math.cos(r.evaluate(e))}],tan:[me,[me],function(e,t){var r=O(t,1)[0];return Math.tan(r.evaluate(e))}],asin:[me,[me],function(e,t){var r=O(t,1)[0];return Math.asin(r.evaluate(e))}],acos:[me,[me],function(e,t){var r=O(t,1)[0];return Math.acos(r.evaluate(e))}],atan:[me,[me],function(e,t){var r=O(t,1)[0];return Math.atan(r.evaluate(e))}],min:[me,yr(me),function(e,t){return Math.min.apply(Math,x(t.map((function(t){return t.evaluate(e)}))))}],max:[me,yr(me),function(e,t){return Math.max.apply(Math,x(t.map((function(t){return t.evaluate(e)}))))}],abs:[me,[me],function(e,t){var r=O(t,1)[0];return Math.abs(r.evaluate(e))}],round:[me,[me],function(e,t){var r=O(t,1)[0].evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[me,[me],function(e,t){var r=O(t,1)[0];return Math.floor(r.evaluate(e))}],ceil:[me,[me],function(e,t){var r=O(t,1)[0];return Math.ceil(r.evaluate(e))}],"filter-==":[be,[ge,xe],function(e,t){var r=O(t,2),n=r[0],i=r[1];return e.properties()[n.value]===i.value}],"filter-id-==":[be,[xe],function(e,t){var r=O(t,1)[0];return e.id()===r.value}],"filter-type-==":[be,[ge],function(e,t){var r=O(t,1)[0];return e.geometryType()===r.value}],"filter-<":[be,[ge,xe],function(e,t){var r=O(t,2),n=r[0],i=r[1],o=e.properties()[n.value],a=i.value;return N(o)===N(a)&&o<a}],"filter-id-<":[be,[xe],function(e,t){var r=O(t,1)[0],n=e.id(),i=r.value;return N(n)===N(i)&&n<i}],"filter->":[be,[ge,xe],function(e,t){var r=O(t,2),n=r[0],i=r[1],o=e.properties()[n.value],a=i.value;return N(o)===N(a)&&o>a}],"filter-id->":[be,[xe],function(e,t){var r=O(t,1)[0],n=e.id(),i=r.value;return N(n)===N(i)&&n>i}],"filter-<=":[be,[ge,xe],function(e,t){var r=O(t,2),n=r[0],i=r[1],o=e.properties()[n.value],a=i.value;return N(o)===N(a)&&o<=a}],"filter-id-<=":[be,[xe],function(e,t){var r=O(t,1)[0],n=e.id(),i=r.value;return N(n)===N(i)&&n<=i}],"filter->=":[be,[ge,xe],function(e,t){var r=O(t,2),n=r[0],i=r[1],o=e.properties()[n.value],a=i.value;return N(o)===N(a)&&o>=a}],"filter-id->=":[be,[xe],function(e,t){var r=O(t,1)[0],n=e.id(),i=r.value;return N(n)===N(i)&&n>=i}],"filter-has":[be,[xe],function(e,t){return O(t,1)[0].value in e.properties()}],"filter-has-id":[be,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[be,[Ee(ge)],function(e,t){return O(t,1)[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[be,[Ee(xe)],function(e,t){return O(t,1)[0].value.indexOf(e.id())>=0}],"filter-in-small":[be,[ge,Ee(xe)],function(e,t){var r=O(t,2),n=r[0];return r[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[be,[ge,Ee(xe)],function(e,t){var r=O(t,2),n=r[0],i=r[1];return function(e,t,r,n){for(;r<=n;){var i=r+n>>1;if(t[i]===e)return!0;t[i]>e?n=i-1:r=i+1}return!1}(e.properties()[n.value],i.value,0,i.value.length-1)}],all:{type:be,overloads:[[[be,be],function(e,t){var r=O(t,2),n=r[0],i=r[1];return n.evaluate(e)&&i.evaluate(e)}],[yr(be),function(e,t){var r,n=D(t);try{for(n.s();!(r=n.n()).done;){if(!r.value.evaluate(e))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}]]},any:{type:be,overloads:[[[be,be],function(e,t){var r=O(t,2),n=r[0],i=r[1];return n.evaluate(e)||i.evaluate(e)}],[yr(be),function(e,t){var r,n=D(t);try{for(n.s();!(r=n.n()).done;){if(r.value.evaluate(e))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}]]},"!":[be,[be],function(e,t){return!O(t,1)[0].evaluate(e)}],"is-supported-script":[be,[ge],function(e,t){var r=O(t,1)[0],n=e.globals&&e.globals.isSupportedScript;return!n||n(r.evaluate(e))}],upcase:[ge,[ge],function(e,t){return O(t,1)[0].evaluate(e).toUpperCase()}],downcase:[ge,[ge],function(e,t){return O(t,1)[0].evaluate(e).toLowerCase()}],concat:[ge,yr(xe),function(e,t){return t.map((function(t){return Be(t.evaluate(e))})).join("")}],"resolved-locale":[ge,[ke],function(e,t){return O(t,1)[0].evaluate(e).resolvedLocale()}]});var kr=function(){function e(t,r){var n;P(this,e),this.expression=t,this._warningHistory={},this._evaluator=new $e,this._defaultValue=r?"color"===(n=r).type&&xr(n.default)?new Ie(0,0,0,0):"color"===n.type?Ie.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=r&&"enum"===r.type?r.values:null}return R(e,[{key:"evaluateWithoutErrorHandling",value:function(e,t,r,n,i,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}},{key:"evaluate",value:function(e,t,r,n,i,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new Ue("Expected value to be one of ".concat(Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", "),", but found ").concat(JSON.stringify(a)," instead."));return a}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}]),e}();function Or(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in fr}function Sr(e,t){var r=new wt(fr,[],t?function(e){var t={color:_e,string:ge,number:me,enum:ge,boolean:be,formatted:Oe,resolvedImage:Se};if("array"===e.type)return Ee(t[e.value]||xe,e.length);return t[e.type]}(t):void 0),n=r.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?vr(new kr(n,t)):mr(r.errors)}var Er=function(){function e(t,r){P(this,e),this.kind=t,this._styleExpression=r,this.isStateDependent="constant"!==t&&!gt(r.expression)}return R(e,[{key:"evaluateWithoutErrorHandling",value:function(e,t,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,o)}},{key:"evaluate",value:function(e,t,r,n,i,o){return this._styleExpression.evaluate(e,t,r,n,i,o)}}]),e}(),Tr=function(){function e(t,r,n,i){P(this,e),this.kind=t,this.zoomStops=n,this._styleExpression=r,this.isStateDependent="camera"!==t&&!gt(r.expression),this.interpolationType=i}return R(e,[{key:"evaluateWithoutErrorHandling",value:function(e,t,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,o)}},{key:"evaluate",value:function(e,t,r,n,i,o){return this._styleExpression.evaluate(e,t,r,n,i,o)}},{key:"interpolationFactor",value:function(e,t,r){return this.interpolationType?Vt.interpolationFactor(this.interpolationType,e,t,r):0}}]),e}();function Rr(e,t){if("error"===(e=Sr(e,t)).result)return e;var r=e.value.expression,n=mt(r);if(!n&&!gr(t))return mr([new de("","data expressions not supported")]);var i=bt(r,["zoom"]);if(!i&&!br(t))return mr([new de("","zoom expressions not supported")]);var o=Pr(r);if(!o&&!i)return mr([new de("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof de)return mr([o]);if(o instanceof Vt&&!_r(t))return mr([new de("",'"interpolate" expressions cannot be used with this property')]);if(!o)return vr(new Er(n?"constant":"source",e.value));var a=o instanceof Vt?o.interpolation:void 0;return vr(new Tr(n?"camera":"composite",e.value,o.labels,a))}function Pr(e){var t=null;if(e instanceof Wt)t=Pr(e.result);else if(e instanceof Yt){var r,n=D(e.args);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(t=Pr(i))break}}catch(e){n.e(e)}finally{n.f()}}else(e instanceof Ot||e instanceof Vt)&&e.input instanceof Je&&"zoom"===e.input.name&&(t=e);return t instanceof de||e.eachChild((function(e){var r=Pr(e);r instanceof de?t=r:!t&&r?t=new de("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&r&&t!==r&&(t=new de("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Cr(e){return"object"===N(e)?["literal",e]:e}function Mr(e,t){var r=e.stops;if(!r)return function(e,t){var r=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",r]:r;if("enum"===t.type)return["match",r,Object.keys(t.values),r,e.default];var n=["color"===t.type?"to-color":t.type,r,Cr(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}(e,t);var n=r&&"object"===N(r[0][0]),i=n||void 0!==e.property,o=n||!i;return r=r.map((function(e){return!i&&t.tokens&&"string"==typeof e[1]?[e[0],Fr(e[1])]:[e[0],Cr(e[1])]})),n?function(e,t,r){for(var n={},i={},o=[],a=0;a<r.length;a++){var s=r[a],u=s[0].zoom;void 0===n[u]&&(n[u]={zoom:u,type:e.type,property:e.property,default:e.default},i[u]=[],o.push(u)),i[u].push([s[0].value,s[1]])}if("exponential"===Zr({},t)){var l,c=[jr(e),["linear"],["zoom"]],f=D(o);try{for(f.s();!(l=f.n()).done;){var h=l.value;Dr(c,h,Ar(n[h],t,i[h]),!1)}}catch(e){f.e(e)}finally{f.f()}return c}var p,d=["step",["zoom"]],y=D(o);try{for(y.s();!(p=y.n()).done;){var v=p.value;Dr(d,v,Ar(n[v],t,i[v]),!0)}}catch(e){y.e(e)}finally{y.f()}return Lr(d),d}(e,t,r):o?function(e,t,r){var n,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["zoom"],o=Zr(e,t),a=!1;if("interval"===o)n=["step",i],a=!0;else{if("exponential"!==o)throw new Error('Unknown zoom function type "'.concat(o,'"'));var s=void 0!==e.base?e.base:1;n=[jr(e),1===s?["linear"]:["exponential",s],i]}var u,l=D(r);try{for(l.s();!(u=l.n()).done;){var c=u.value;Dr(n,c[0],c[1],a)}}catch(e){l.e(e)}finally{l.f()}return Lr(n),n}(e,t,r):Ar(e,t,r)}function jr(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Ir(e,t){var r,n,i=Cr((r=e.default,n=t.default,void 0!==r?r:void 0!==n?n:void 0));return void 0===i&&"resolvedImage"===t.type?"":i}function Ar(e,t,r){var n=Zr(e,t),i=["get",e.property];if("categorical"===n&&"boolean"==typeof r[0][0]){var o,a=["case"],s=D(r);try{for(s.s();!(o=s.n()).done;){var u=o.value;a.push(["==",i,u[0]],u[1])}}catch(e){s.e(e)}finally{s.f()}return a.push(Ir(e,t)),a}if("categorical"===n){var l,c=["match",i],f=D(r);try{for(f.s();!(l=f.n()).done;){var h=l.value;Dr(c,h[0],h[1],!1)}}catch(e){f.e(e)}finally{f.f()}return c.push(Ir(e,t)),c}if("interval"===n){var p,d=["step",["number",i]],y=D(r);try{for(y.s();!(p=y.n()).done;){var v=p.value;Dr(d,v[0],v[1],!0)}}catch(e){y.e(e)}finally{y.f()}return Lr(d),void 0===e.default?d:["case",["==",["typeof",i],"number"],d,Cr(e.default)]}if("exponential"===n){var m,g=void 0!==e.base?e.base:1,b=[jr(e),1===g?["linear"]:["exponential",g],["number",i]],_=D(r);try{for(_.s();!(m=_.n()).done;){var w=m.value;Dr(b,w[0],w[1],!1)}}catch(e){_.e(e)}finally{_.f()}return void 0===e.default?b:["case",["==",["typeof",i],"number"],b,Cr(e.default)]}throw new Error("Unknown property function type ".concat(n))}function Lr(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function Dr(e,t,r,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(r))}function Zr(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function Fr(e){for(var t=["concat"],r=/{([^{}]+)}/g,n=0,i=r.exec(e);null!==i;i=r.exec(e)){var o=e.slice(n,r.lastIndex-i[0].length);n=r.lastIndex,o.length>0&&t.push(o),t.push(["get",i[1]])}if(1===t.length)return e;if(n<e.length)t.push(e.slice(n));else if(2===t.length)return["to-string",t[1]];return t}function Nr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":var t,r=D(e.slice(1));try{for(r.s();!(t=r.n()).done;){var n=t.value;if(!Nr(n)&&"boolean"!=typeof n)return!1}}catch(e){r.e(e)}finally{r.f()}return!0;default:return!0}}var Gr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Br(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};Nr(e)||(e=qr(e));var t=Sr(e,Gr);if("error"===t.result)throw new Error(t.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return{filter:function(e,r,n){return t.value.evaluate(e,r,{},n)},needGeometry:Ur(e)}}function zr(e,t){return e<t?-1:e>t?1:0}function Ur(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(var t=1;t<e.length;t++)if(Ur(e[t]))return!0;return!1}function qr(e){if(!e)return!0;var t,r=e[0];return e.length<=1?"any"!==r:"=="===r?Vr(e[1],e[2],"=="):"!="===r?Wr(Vr(e[1],e[2],"==")):"<"===r||">"===r||"<="===r||">="===r?Vr(e[1],e[2],r):"any"===r?(t=e.slice(1),["any"].concat(t.map(qr))):"all"===r?["all"].concat(e.slice(1).map(qr)):"none"===r?["all"].concat(e.slice(1).map(qr).map(Wr)):"in"===r?Xr(e[1],e.slice(2)):"!in"===r?Wr(Xr(e[1],e.slice(2))):"has"===r?Yr(e[1]):"!has"===r?Wr(Yr(e[1])):"within"!==r||e}function Vr(e,t,r){switch(e){case"$type":return["filter-type-".concat(r),t];case"$id":return["filter-id-".concat(r),t];default:return["filter-".concat(r),e,t]}}function Xr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return N(e)!==N(t[0])}))?["filter-in-large",e,["literal",t.sort(zr)]]:["filter-in-small",e,["literal",t]]}}function Yr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Wr(e){return["!",e]}var Kr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Hr(e,t){var r={};for(var n in e)"ref"!==n&&(r[n]=e[n]);return Kr.forEach((function(e){e in t&&(r[e]=t[e])})),r}var $r=R((function e(t,r,n,i){P(this,e),this.message=(t?"".concat(t,": "):"")+n,i&&(this.identifier=i),null!=r&&r.__line__&&(this.line=r.__line__)})),Jr=R((function e(t){P(this,e),this.error=t,this.message=t.message;var r=t.message.match(/line (\d+)/);this.line=r?parseInt(r[1],10):0}));function Qr(e){var t=e.key,r=e.value;return r?[new $r(t,r,"constants have been deprecated as of v8")]:[]}function en(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function tn(e){if(Array.isArray(e))return e.map(tn);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var r in e)t[r]=tn(e[r]);return t}return en(e)}function rn(e){var t=e.key,r=e.value,n=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec,s=[],u=wr(r);if("object"!==u)return[new $r(t,r,"object expected, ".concat(u," found"))];for(var l in r){var c=l.split(".")[0],f=n[c]||n["*"],h=void 0;if(i[c])h=i[c];else if(n[c])h=xn;else if(i["*"])h=i["*"];else{if(!n["*"]){s.push(new $r(t,r[l],'unknown property "'.concat(l,'"')));continue}h=xn}s=s.concat(h({key:(t?"".concat(t,"."):t)+l,value:r[l],valueSpec:f,style:o,styleSpec:a,object:r,objectKey:l},r))}for(var p in n)i[p]||n[p].required&&void 0===n[p].default&&void 0===r[p]&&s.push(new $r(t,r,'missing required property "'.concat(p,'"')));return s}function nn(e){var t=e.value,r=e.valueSpec,n=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||xn;if("array"!==wr(t))return[new $r(o,t,"array expected, ".concat(wr(t)," found"))];if(r.length&&t.length!==r.length)return[new $r(o,t,"array length ".concat(r.length," expected, length ").concat(t.length," found"))];if(r["min-length"]&&t.length<r["min-length"])return[new $r(o,t,"array length at least ".concat(r["min-length"]," expected, length ").concat(t.length," found"))];var s={type:r.value,values:r.values,minimum:r.minimum,maximum:r.maximum};i.$version<7&&(s.function=r.function),"object"===wr(r.value)&&(s=r.value);for(var u=[],l=0;l<t.length;l++)u=u.concat(a({array:t,arrayIndex:l,value:t[l],valueSpec:s,style:n,styleSpec:i,key:"".concat(o,"[").concat(l,"]")}));return u}function on(e){var t=e.key,r=e.value,n=e.valueSpec,i=wr(r);if("number"===i&&r!=r&&(i="NaN"),"number"!==i)return[new $r(t,r,"number expected, ".concat(i," found"))];if("minimum"in n){var o=n.minimum;if("array"===wr(n.minimum)){var a=e.arrayIndex;o=n.minimum[a]}if(r<o)return[new $r(t,r,"".concat(r," is less than the minimum value ").concat(o))]}if("maximum"in n){var s=n.maximum;if("array"===wr(n.maximum)){var u=e.arrayIndex;s=n.maximum[u]}if(r>s)return[new $r(t,r,"".concat(r," is greater than the maximum value ").concat(s))]}return[]}function an(e){var t,r,n,i=e.valueSpec,o=en(e.value.type),a={},s="categorical"!==o&&void 0===e.value.property,u=!s,l="array"===wr(e.value.stops)&&"array"===wr(e.value.stops[0])&&"object"===wr(e.value.stops[0][0]),c=rn({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new $r(e.key,e.value,'identity function may not have a "stops" property')];var t=[],r=e.value;t=t.concat(nn({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:f})),"array"===wr(r)&&0===r.length&&t.push(new $r(e.key,r,"array must have at least one stop"));return t},default:function(e){return xn({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&s&&c.push(new $r(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new $r(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!_r(e.valueSpec)&&c.push(new $r(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!gr(e.valueSpec)?c.push(new $r(e.key,e.value,"property functions not supported")):s&&!br(e.valueSpec)&&c.push(new $r(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==e.value.property||c.push(new $r(e.key,e.value,'"property" property is required')),c;function f(e){var t=[],o=e.value,s=e.key;if("array"!==wr(o))return[new $r(s,o,"array expected, ".concat(wr(o)," found"))];if(2!==o.length)return[new $r(s,o,"array length 2 expected, length ".concat(o.length," found"))];if(l){if("object"!==wr(o[0]))return[new $r(s,o,"object expected, ".concat(wr(o[0])," found"))];if(void 0===o[0].zoom)return[new $r(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new $r(s,o,"object stop key must have value")];if(n&&n>en(o[0].zoom))return[new $r(s,o[0].zoom,"stop zoom values must appear in ascending order")];en(o[0].zoom)!==n&&(n=en(o[0].zoom),r=void 0,a={}),t=t.concat(rn({key:"".concat(s,"[0]"),value:o[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:on,value:h}}))}else t=t.concat(h({key:"".concat(s,"[0]"),value:o[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},o));return Or(tn(o[1]))?t.concat([new $r("".concat(s,"[1]"),o[1],"expressions are not allowed in function stops.")]):t.concat(xn({key:"".concat(s,"[1]"),value:o[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function h(e,n){var s=wr(e.value),u=en(e.value),l=null!==e.value?e.value:n;if(t){if(s!==t)return[new $r(e.key,l,"".concat(s," stop domain type must match previous stop domain type ").concat(t))]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new $r(e.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, ".concat(s," found");return gr(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new $r(e.key,l,c)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==r&&u<r?[new $r(e.key,l,"stop domain values must appear in ascending order")]:(r=u,"categorical"===o&&u in a?[new $r(e.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new $r(e.key,l,"integer expected, found ".concat(u))]}}function sn(e){var t=("property"===e.expressionContext?Rr:Sr)(tn(e.value),e.valueSpec);if("error"===t.result)return t.value.map((function(t){return new $r("".concat(e.key).concat(t.key),e.value,t.message)}));var r=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!r.outputDefined())return[new $r(e.key,e.value,'Invalid data expression for "'.concat(e.propertyKey,'". Output values must be contained as literals within the expression.'))];if("property"===e.expressionContext&&"layout"===e.propertyType&&!gt(r))return[new $r(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!gt(r))return[new $r(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!bt(r,["zoom","feature-state"]))return[new $r(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!mt(r))return[new $r(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function un(e){var t=e.key,r=e.value,n=e.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(en(r))&&i.push(new $r(t,r,"expected one of [".concat(n.values.join(", "),"], ").concat(JSON.stringify(r)," found"))):-1===Object.keys(n.values).indexOf(en(r))&&i.push(new $r(t,r,"expected one of [".concat(Object.keys(n.values).join(", "),"], ").concat(JSON.stringify(r)," found"))),i}function ln(e){return Nr(tn(e.value))?sn(pe({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):cn(e)}function cn(e){var t=e.value,r=e.key;if("array"!==wr(t))return[new $r(r,t,"array expected, ".concat(wr(t)," found"))];var n,i=e.styleSpec,o=[];if(t.length<1)return[new $r(r,t,"filter array must have at least 1 element")];switch(o=o.concat(un({key:"".concat(r,"[0]"),value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),en(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===en(t[1])&&o.push(new $r(r,t,'"$type" cannot be use with operator "'.concat(t[0],'"')));case"==":case"!=":3!==t.length&&o.push(new $r(r,t,'filter array for operator "'.concat(t[0],'" must have 3 elements')));case"in":case"!in":t.length>=2&&"string"!==(n=wr(t[1]))&&o.push(new $r("".concat(r,"[1]"),t[1],"string expected, ".concat(n," found")));for(var a=2;a<t.length;a++)n=wr(t[a]),"$type"===en(t[1])?o=o.concat(un({key:"".concat(r,"[").concat(a,"]"),value:t[a],valueSpec:i.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&o.push(new $r("".concat(r,"[").concat(a,"]"),t[a],"string, number, or boolean expected, ".concat(n," found")));break;case"any":case"all":case"none":for(var s=1;s<t.length;s++)o=o.concat(cn({key:"".concat(r,"[").concat(s,"]"),value:t[s],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=wr(t[1]),2!==t.length?o.push(new $r(r,t,'filter array for "'.concat(t[0],'" operator must have 2 elements'))):"string"!==n&&o.push(new $r("".concat(r,"[1]"),t[1],"string expected, ".concat(n," found")));break;case"within":n=wr(t[1]),2!==t.length?o.push(new $r(r,t,'filter array for "'.concat(t[0],'" operator must have 2 elements'))):"object"!==n&&o.push(new $r("".concat(r,"[1]"),t[1],"object expected, ".concat(n," found")))}return o}function fn(e,t){var r=e.key,n=e.style,i=e.styleSpec,o=e.value,a=e.objectKey,s=i["".concat(t,"_").concat(e.layerType)];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===t&&u&&s[u[1]]&&s[u[1]].transition)return xn({key:r,value:o,valueSpec:i.transition,style:n,styleSpec:i});var l,c=e.valueSpec||s[a];if(!c)return[new $r(r,o,'unknown property "'.concat(a,'"'))];if("string"===wr(o)&&gr(c)&&!c.tokens&&(l=/^{([^}]+)}$/.exec(o)))return[new $r(r,o,'"'.concat(a,'" does not support interpolation syntax\n')+'Use an identity property function instead: `{ "type": "identity", "property": '.concat(JSON.stringify(l[1])," }`."))];var f=[];return"symbol"===e.layerType&&("text-field"===a&&n&&!n.glyphs&&f.push(new $r(r,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&xr(tn(o))&&"identity"===en(o.type)&&f.push(new $r(r,o,'"text-font" does not support identity functions'))),f.concat(xn({key:e.key,value:o,valueSpec:c,style:n,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:a}))}function hn(e){return fn(e,"paint")}function pn(e){return fn(e,"layout")}function dn(e){var t=[],r=e.value,n=e.key,i=e.style,o=e.styleSpec;r.type||r.ref||t.push(new $r(n,r,'either "type" or "ref" is required'));var a,s=en(r.type),u=en(r.ref);if(r.id)for(var l=en(r.id),c=0;c<e.arrayIndex;c++){var f=i.layers[c];en(f.id)===l&&t.push(new $r(n,r.id,'duplicate layer id "'.concat(r.id,'", previously used at line ').concat(f.id.__line__)))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach((function(e){e in r&&t.push(new $r(n,r[e],'"'.concat(e,'" is prohibited for ref layers')))})),i.layers.forEach((function(e){en(e.id)===u&&(a=e)})),a?a.ref?t.push(new $r(n,r.ref,"ref cannot reference another ref layer")):s=en(a.type):t.push(new $r(n,r.ref,'ref layer "'.concat(u,'" not found')));else if("background"!==s&&"sky"!==s)if(r.source){var h=i.sources&&i.sources[r.source],p=h&&en(h.type);h?"vector"===p&&"raster"===s?t.push(new $r(n,r.source,'layer "'.concat(r.id,'" requires a raster source'))):"raster"===p&&"raster"!==s?t.push(new $r(n,r.source,'layer "'.concat(r.id,'" requires a vector source'))):"vector"!==p||r["source-layer"]?"raster-dem"===p&&"hillshade"!==s?t.push(new $r(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===p&&h.lineMetrics||t.push(new $r(n,r,'layer "'.concat(r.id,'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.'))):t.push(new $r(n,r,'layer "'.concat(r.id,'" must specify a "source-layer"'))):t.push(new $r(n,r.source,'source "'.concat(r.source,'" not found')))}else t.push(new $r(n,r,'missing required property "source"'));return t=t.concat(rn({key:n,value:r,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return xn({key:"".concat(n,".type"),value:r.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:r,objectKey:"type"})},filter:ln,layout:function(e){return rn({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return pn(pe({layerType:s},e))}}})},paint:function(e){return rn({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return hn(pe({layerType:s},e))}}})}}}))}function yn(e){var t=e.value,r=e.key,n=wr(t);return"string"!==n?[new $r(r,t,"string expected, ".concat(n," found"))]:[]}var vn={promoteId:function(e){var t=e.key,r=e.value;if("string"===wr(r))return yn({key:t,value:r});var n=[];for(var i in r)n.push.apply(n,x(yn({key:"".concat(t,".").concat(i),value:r[i]})));return n}};function mn(e){var t=e.value,r=e.key,n=e.styleSpec,i=e.style;if(!t.type)return[new $r(r,t,'"type" is required')];var o,a=en(t.type);switch(a){case"vector":case"raster":case"raster-dem":return o=rn({key:r,value:t,valueSpec:n["source_".concat(a.replace("-","_"))],style:e.style,styleSpec:n,objectElementValidators:vn});case"geojson":if(o=rn({key:r,value:t,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:vn}),t.cluster)for(var s in t.clusterProperties){var u,l,c=O(t.clusterProperties[s],2),f=c[0],h=c[1],p="string"==typeof f?[f,["accumulated"],["get",s]]:f;(u=o).push.apply(u,x(sn({key:"".concat(r,".").concat(s,".map"),value:h,expressionContext:"cluster-map"}))),(l=o).push.apply(l,x(sn({key:"".concat(r,".").concat(s,".reduce"),value:p,expressionContext:"cluster-reduce"})))}return o;case"video":return rn({key:r,value:t,valueSpec:n.source_video,style:i,styleSpec:n});case"image":return rn({key:r,value:t,valueSpec:n.source_image,style:i,styleSpec:n});case"canvas":return[new $r(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:"".concat(r,".type"),value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:n})}}function gn(e){var t=e.value,r=e.styleSpec,n=r.light,i=e.style,o=[],a=wr(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new $r("light",t,"object expected, ".concat(a," found"))]);for(var s in t){var u=s.match(/^(.*)-transition$/);o=u&&n[u[1]]&&n[u[1]].transition?o.concat(xn({key:s,value:t[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?o.concat(xn({key:s,value:t[s],valueSpec:n[s],style:i,styleSpec:r})):o.concat([new $r(s,t[s],'unknown property "'.concat(s,'"'))])}return o}function bn(e){var t=e.value,r=e.key,n=e.style,i=e.styleSpec,o=i.terrain,a=[],s=wr(t);if(void 0===t)return a;if("object"!==s)return a=a.concat([new $r("terrain",t,"object expected, ".concat(s," found"))]);for(var u in t){var l=u.match(/^(.*)-transition$/);a=l&&o[l[1]]&&o[l[1]].transition?a.concat(xn({key:u,value:t[u],valueSpec:i.transition,style:n,styleSpec:i})):o[u]?a.concat(xn({key:u,value:t[u],valueSpec:o[u],style:n,styleSpec:i})):a.concat([new $r(u,t[u],'unknown property "'.concat(u,'"'))])}if(t.source){var c=n.sources&&n.sources[t.source],f=c&&en(c.type);c?"raster-dem"!==f&&a.push(new $r(r,t.source,"terrain cannot be used with a source of type ".concat(f,', it only be used with a "raster-dem" source type'))):a.push(new $r(r,t.source,'source "'.concat(t.source,'" not found')))}else a.push(new $r(r,t,'terrain is missing required property "source"'));return a}function _n(e){var t=e.value,r=e.style,n=e.styleSpec,i=n.fog,o=[],a=wr(t);if(void 0===t)return o;if("object"!==a)return o=o.concat([new $r("fog",t,"object expected, ".concat(a," found"))]);for(var s in t){var u=s.match(/^(.*)-transition$/);o=u&&i[u[1]]&&i[u[1]].transition?o.concat(xn({key:s,value:t[s],valueSpec:n.transition,style:r,styleSpec:n})):i[s]?o.concat(xn({key:s,value:t[s],valueSpec:i[s],style:r,styleSpec:n})):o.concat([new $r(s,t[s],'unknown property "'.concat(s,'"'))])}return o}var wn={"*":function(){return[]},array:nn,boolean:function(e){var t=e.value,r=e.key,n=wr(t);return"boolean"!==n?[new $r(r,t,"boolean expected, ".concat(n," found"))]:[]},number:on,color:function(e){var t=e.key,r=e.value,n=wr(r);return"string"!==n?[new $r(t,r,"color expected, ".concat(n," found"))]:null===je.parseCSSColor(r)?[new $r(t,r,'color expected, "'.concat(r,'" found'))]:[]},constants:Qr,enum:un,filter:ln,function:an,layer:dn,object:rn,source:mn,light:gn,terrain:bn,fog:_n,string:yn,formatted:function(e){return 0===yn(e).length?[]:sn(e)},resolvedImage:function(e){return 0===yn(e).length?[]:sn(e)}};function xn(e){var t=e.value,r=e.valueSpec,n=e.styleSpec;return r.expression&&xr(en(t))?an(e):r.expression&&Or(tn(t))?sn(e):r.type&&wn[r.type]?wn[r.type](e):rn(pe({},e,{valueSpec:r.type?n[r.type]:r}))}function kn(e){var t=e.value,r=e.key,n=yn(e);return n.length||(-1===t.indexOf("{fontstack}")&&n.push(new $r(r,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&n.push(new $r(r,t,'"glyphs" url must include a "{range}" token'))),n}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,r=[];return r=r.concat(xn({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:kn,"*":function(){return[]}}})),e.constants&&(r=r.concat(Qr({key:"constants",value:e.constants,style:e,styleSpec:t}))),Sn(r)}function Sn(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function En(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Sn(e.apply(this,r))}}On.source=En(mn),On.light=En(gn),On.terrain=En(bn),On.fog=En(_n),On.layer=En(dn),On.filter=En(ln),On.paintProperty=En(hn),On.layoutProperty=En(pn);var Tn=z((function(e,t){var r=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,12],r=[1,13],n=[1,9],i=[1,10],o=[1,11],a=[1,14],s=[1,15],u=[14,18,22,24],l=[18,22],c=[22,24],f={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,r,n,i,o,a){var s=o.length-1;switch(i){case 1:this.$=new String(e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(e),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=o[s-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=o[s-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[o[s-2],o[s]];break;case 16:this.$={},this.$[o[s][0]]=o[s][1];break;case 17:this.$=o[s-2],o[s-2][o[s][0]]=o[s][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[o[s]];break;case 21:this.$=o[s-2],o[s-2].push(o[s])}},table:[{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:i,11:o,12:1,13:2,15:7,16:8,17:a,23:s},{1:[3]},{14:[1,16]},e(u,[2,7]),e(u,[2,8]),e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),e(u,[2,12]),e(u,[2,3]),e(u,[2,4]),e(u,[2,5]),e([14,18,21,22,24],[2,1]),e(u,[2,2]),{3:20,4:t,18:[1,17],19:18,20:19},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:i,11:o,13:23,15:7,16:8,17:a,23:s,24:[1,21],25:22},{1:[2,6]},e(u,[2,13]),{18:[1,24],22:[1,25]},e(l,[2,16]),{21:[1,26]},e(u,[2,18]),{22:[1,28],24:[1,27]},e(c,[2,20]),e(u,[2,14]),{3:20,4:t,20:29},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:i,11:o,13:30,15:7,16:8,17:a,23:s},e(u,[2,19]),{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:i,11:o,13:31,15:7,16:8,17:a,23:s},e(l,[2,17]),e(l,[2,15]),e(c,[2,21])],defaultActions:{16:[2,6]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],i=[],o=this.table,a="",s=0,u=0,l=2,c=1,f=i.slice.call(arguments,1),h=Object.create(this.lexer),p={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(p.yy[d]=this.yy[d]);h.setInput(e,p.yy),p.yy.lexer=h,p.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var y=h.yylloc;i.push(y);var v=h.options&&h.options.ranges;function m(){var e;return"number"!=typeof(e=h.lex()||c)&&(e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,b,_,w,x,k,O,S,E={};;){if(b=r[r.length-1],this.defaultActions[b]?_=this.defaultActions[b]:(null==g&&(g=m()),_=o[b]&&o[b][g]),void 0===_||!_.length||!_[0]){var T="";for(x in S=[],o[b])this.terminals_[x]&&x>l&&S.push("'"+this.terminals_[x]+"'");T=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(g==c?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(T,{text:h.match,token:this.terminals_[g]||g,line:h.yylineno,loc:y,expected:S})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g);switch(_[0]){case 1:r.push(g),n.push(h.yytext),i.push(h.yylloc),r.push(_[1]),g=null,u=h.yyleng,a=h.yytext,s=h.yylineno,y=h.yylloc;break;case 2:if(k=this.productions_[_[1]][1],E.$=n[n.length-k],E._$={first_line:i[i.length-(k||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(k||1)].first_column,last_column:i[i.length-1].last_column},v&&(E._$.range=[i[i.length-(k||1)].range[0],i[i.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[a,u,s,p.yy,_[1],n,i].concat(f))))return w;k&&(r=r.slice(0,-1*k*2),n=n.slice(0,-1*k),i=i.slice(0,-1*k)),r.push(this.productions_[_[1]][0]),n.push(E.$),i.push(E._$),O=o[r[r.length-2]][r[r.length-1]],r.push(O);break;case 3:return!0}}return!0}},h={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((r=this._input.match(this.rules[i[o]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function p(){this.yy={}}return f.lexer=h,p.prototype=f,f.Parser=p,new p}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}}));function Rn(e){if(e instanceof String||"string"==typeof e||e instanceof Buffer)try{return Tn.parse(e.toString())}catch(e){throw new Jr(e)}return e}function Pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,r=e;try{r=Rn(r)}catch(e){return[e]}return On(r,t)}new Set(["vector","raster","raster-dem"]);var Cn=Or,Mn=Rr,jn=Mr,In=xr;Pn.parsed=Pn,Pn.latest=Pn;var An,Ln,Dn=r(73081),Zn=In,Fn=jn,Nn=Cn,Gn=Mn,Bn={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},zn={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Un={},qn={zoom:0};function Vn(e,t,r,n,i,o){var a=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});var s=o[a];if(!s[r]){var u=(e[t]||Un)[r],l=G["".concat(t,"_").concat(e.type)][r];void 0===u&&(u=l.default);var c=Nn(u);if(!c&&Zn(u)&&(u=Fn(u,l),c=!0),c){var f=function(e,t){var r=Gn(e,t);if("error"===r.result)throw new Error(r.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return r.value}(u,l);s[r]=f.evaluate.bind(f)}else"color"==l.type&&(u=Ie.parse(u)),s[r]=function(){return u}}return qn.zoom=n,s[r](qn,i)}var Xn=!1;function Yn(e,t){if(e){if(!Xn&&(0===e.a||0===t))return;var r=e.a;return t=void 0===t?1:t,0===r?"transparent":"rgba("+Math.round(255*e.r/r)+","+Math.round(255*e.g/r)+","+Math.round(255*e.b/r)+","+r*t+")"}return e}var Wn=/^([^]*)\{(.*)\}([^]*)$/;function Kn(e,t){var r;do{if(r=e.match(Wn)){var n=t[r[2]]||"";e=r[1]+n+r[3]}}while(r);return e}var Hn=!1;function $n(e,t,r,n,i,o,a){if(void 0===n&&(n=Dn.H2),"string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var s,u;if(o)if("undefined"!=typeof Image){var l=new Image;l.crossOrigin="anonymous",l.onload=function(){s=l,u=[l.width,l.height],e.changed(),l.onload=null},l.src=o}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var c=self;c.postMessage({action:"loadImage",src:o}),c.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===o&&(s=e.data.image,u=[s.width,s.height])}))}for(var f,h=function(e){e=e.slice();for(var t=Object.create(null),r=0;r<e.length;r++)t[e[r].id]=e[r];for(var n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=Hr(e[n],t[e[n].ref]));return e}(t.layers),p={},x=[],k={},O={},S={},E={},T=0,R=h.length;T<R;++T){var P=h[T],C=P.id;if("string"==typeof r&&P.source==r||-1!==r.indexOf(C)){var M=P["source-layer"];if(!f){f=P.source;var j=t.sources[f];if(!j)throw new Error('Source "'.concat(f,'" is not defined'));var I=j.type;if("vector"!==I&&"geojson"!==I)throw new Error('Source "'.concat(f,'" is not of type "vector" or "geojson", but "').concat(I,'"'))}var A=p[M];A||(A=[],p[M]=A),A.push({layer:P,index:T}),x.push(C)}}var L=new g.Z,D=new y.Z,Z=[],F=function(e,t){var r=e.getProperties(),o=p[r.layer];if(o){var l=n.indexOf(t);-1==l&&(l=(0,Dn.h5)(t,n));for(var c,f=Bn[e.getGeometry().getType()],h={properties:r,type:f},x=-1,T=function(n,p){var T=o[n],R=T.layer,P=R.id,C=R.layout||Un,M=R.paint||Un;if("none"===C.visibility||"minzoom"in R&&l<R.minzoom||"maxzoom"in R&&l>=R.maxzoom)return"continue";var j=R.filter;if(!j||function(e,t,r,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Br(t).filter),qn.zoom=n,i[e](qn,r)}(P,j,h,l,E)){c=R;var I=void 0,A=void 0,F=void 0,N=void 0,G=void 0,B=void 0,z=T.index;if(3==f&&("fill"==R.type||"fill-extrusion"==R.type))if(A=Vn(R,"paint",R.type+"-opacity",l,h,S),R.type+"-pattern"in M){var U=Vn(R,"paint",R.type+"-pattern",l,h,S);if(U){var q="string"==typeof U?Kn(U,r):U.toString();if(s&&i&&i[q]){++x,(B=Z[x])&&B.getFill()&&!B.getStroke()&&!B.getText()||(B=new b.ZP({fill:new y.Z}),Z[x]=B),F=B.getFill(),B.setZIndex(z);var V=O[xe=q+"."+A];if(!V){var X=i[q],Y=(0,Dn.vL)(X.width,X.height),W=Y.getContext("2d");W.globalAlpha=A,W.drawImage(s,X.x,X.y,X.width,X.height,0,0,X.width,X.height),V=W.createPattern(Y,"repeat"),O[xe]=V}F.setColor(V)}}}else(I=Yn(Vn(R,"paint",R.type+"-color",l,h,S),A))&&(R.type+"-outline-color"in M&&(G=Yn(Vn(R,"paint",R.type+"-outline-color",l,h,S),A)),G||(G=I),++x,(B=Z[x])&&B.getFill()&&B.getStroke()&&!B.getText()||(B=new b.ZP({fill:new y.Z,stroke:new g.Z}),Z[x]=B),(F=B.getFill()).setColor(I),(N=B.getStroke()).setColor(G),N.setWidth(.5),B.setZIndex(z));if(1!=f&&"line"==R.type){I=!("line-pattern"in M)&&"line-color"in M?Yn(Vn(R,"paint","line-color",l,h,S),Vn(R,"paint","line-opacity",l,h,S)):void 0;var K=Vn(R,"paint","line-width",l,h,S);I&&K>0&&(++x,(B=Z[x])&&B.getStroke()&&!B.getFill()&&!B.getText()||(B=new b.ZP({stroke:new g.Z}),Z[x]=B),(N=B.getStroke()).setLineCap(Vn(R,"layout","line-cap",l,h,S)),N.setLineJoin(Vn(R,"layout","line-join",l,h,S)),N.setMiterLimit(Vn(R,"layout","line-miter-limit",l,h,S)),N.setColor(I),N.setWidth(K),N.setLineDash(M["line-dasharray"]?Vn(R,"paint","line-dasharray",l,h,S).map((function(e){return e*K})):null),B.setZIndex(z))}var H=!1,$=null,J=0,Q=void 0,ee=void 0,te=void 0;if((1==f||2==f)&&"icon-image"in C){var re=Vn(R,"layout","icon-image",l,h,S);if(re){Q="string"==typeof re?Kn(re,r):re.toString();var ne=void 0;if(s&&i&&i[Q]){var ie=Vn(R,"layout","icon-rotation-alignment",l,h,S);if(2==f){var oe=e.getGeometry();if(oe.getFlatMidpoint||oe.getFlatMidpoints){var ae=oe.getExtent();if(Math.sqrt(Math.max(Math.pow((ae[2]-ae[0])/t,2),Math.pow((ae[3]-ae[1])/t,2)))>150){var se="MultiLineString"===oe.getType()?oe.getFlatMidpoints():oe.getFlatMidpoint();if(Ln||(An=[NaN,NaN],Ln=new m.Z("Point",An,[],{},null)),ne=Ln,An[0]=se[0],An[1]=se[1],"line"===(Fe=Vn(R,"layout","symbol-placement",l,h,S))&&"map"===ie)for(var ue=oe.getStride(),le=oe.getFlatCoordinates(),ce=0,fe=le.length-ue;ce<fe;ce+=ue){var he=le[ce],pe=le[ce+1],de=le[ce+ue],ye=le[ce+ue+1],ve=Math.min(he,de),me=Math.min(pe,ye),ge=Math.max(he,de),be=Math.max(pe,ye);if(se[0]>=ve&&se[0]<=ge&&se[1]>=me&&se[1]<=be){J=Math.atan2(pe-ye,de-he);break}}}}}if(2!==f||ne){var _e=Vn(R,"layout","icon-size",l,h,S),we=void 0!==M["icon-color"]?Vn(R,"paint","icon-color",l,h,S):null;if(!we||0!==we.a){var xe=Q+"."+_e;if(null!==we&&(xe+="."+we),!(ee=k[xe])){X=i[Q];ee=new v.Z({color:we?[255*we.r,255*we.g,255*we.b,we.a]:void 0,img:s,imgSize:u,size:[X.width,X.height],offset:[X.x,X.y],rotateWithView:"map"===ie,scale:_e/X.pixelRatio}),k[xe]=ee}}ee&&(++x,(B=Z[x])&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new b.ZP,Z[x]=B),B.setGeometry(ne),ee.setRotation(J+(0,Dn.Vl)(Vn(R,"layout","icon-rotate",l,h,S))),ee.setOpacity(Vn(R,"paint","icon-opacity",l,h,S)),ee.setAnchor(zn[Vn(R,"layout","icon-anchor",l,h,S)]),B.setImage(ee),$=B.getText(),B.setText(void 0),B.setZIndex(z),H=!0,te=!1)}else te=!0}}}if(1==f&&"circle-radius"in M){++x,(B=Z[x])&&B.getImage()&&!B.getFill()&&!B.getStroke()||(B=new b.ZP,Z[x]=B);var ke=Vn(R,"paint","circle-radius",l,h,S),Oe=Yn(Vn(R,"paint","circle-stroke-color",l,h,S),Vn(R,"paint","circle-stroke-opacity",l,h,S)),Se=Yn(Vn(R,"paint","circle-color",l,h,S),Vn(R,"paint","circle-opacity",l,h,S)),Ee=Vn(R,"paint","circle-stroke-width",l,h,S),Te=ke+"."+Oe+"."+Se+"."+Ee;(ee=k[Te])||(ee=new d.Z({radius:ke,stroke:Oe&&Ee>0?new g.Z({width:Ee,color:Oe}):void 0,fill:Se?new y.Z({color:Se}):void 0}),k[Te]=ee),B.setImage(ee),$=B.getText(),B.setText(void 0),B.setGeometry(void 0),B.setZIndex(z),H=!0}var Re=void 0;if("text-field"in C)Re=Kn(Vn(R,"layout","text-field",l,h,S).toString(),r).trim(),A=Vn(R,"paint","text-opacity",l,h,S);if(Re&&A&&!te){H||(++x,(B=Z[x])&&B.getText()&&!B.getFill()&&!B.getStroke()||(B=new b.ZP,Z[x]=B),B.setImage(void 0),B.setGeometry(void 0)),B.getText()||B.setText($||new _.Z({padding:[2,2,2,2]})),$=B.getText();var Pe=Math.round(Vn(R,"layout","text-size",l,h,S)),Ce=Vn(R,"layout","text-font",l,h,S),Me=Vn(R,"layout","text-line-height",l,h,S),je=w(a?a(Ce):Ce,Pe,Me),Ie=C["text-transform"];"uppercase"==Ie?Re=Re.toUpperCase():"lowercase"==Ie&&(Re=Re.toLowerCase());var Ae=Vn(R,"layout","text-max-width",l,h,S),Le=Vn(R,"layout","text-letter-spacing",l,h,S),De=2==f?(0,Dn.tM)(Re,Le):(0,Dn.lD)(Re,je,Ae,Le);$.setText(De),$.setFont(je),$.setRotation((0,Dn.Vl)(Vn(R,"layout","text-rotate",l,h,S)));var Ze=Vn(R,"layout","text-anchor",l,h,S),Fe=H||1==f?"point":Vn(R,"layout","symbol-placement",l,h,S);$.setPlacement(Fe);var Ne=Vn(R,"paint","text-halo-width",l,h,S),Ge=Vn(R,"layout","text-offset",l,h,S),Be=Vn(R,"paint","text-translate",l,h,S),ze=0,Ue=0;if("point"==Fe){var qe="center";-1!==Ze.indexOf("left")?(qe="left",Ue=Ne):-1!==Ze.indexOf("right")&&(qe="right",Ue=-Ne),$.setTextAlign(qe);var Ve=Vn(R,"layout","text-rotation-alignment",l,h,S);$.setRotateWithView("map"==Ve)}else $.setMaxAngle((0,Dn.Vl)(Vn(R,"layout","text-max-angle",l,h,S))*Re.length/De.length),$.setTextAlign(),$.setRotateWithView(!1);var Xe="middle";0==Ze.indexOf("bottom")?(Xe="bottom",ze=-Ne-.5*(Me-1)*Pe):0==Ze.indexOf("top")&&(Xe="top",ze=Ne+.5*(Me-1)*Pe),$.setTextBaseline(Xe),$.setOffsetX(Ge[0]*Pe+Ue+Be[0]),$.setOffsetY(Ge[1]*Pe+ze+Be[1]),D.setColor(Yn(Vn(R,"paint","text-color",l,h,S),A)),$.setFill(D);var Ye=Yn(Vn(R,"paint","text-halo-color",l,h,S),A);if(Ye){L.setColor(Ye),Ne*=2;var We=.5*Pe;L.setWidth(Ne<=We?Ne:We),$.setStroke(L)}else $.setStroke(void 0);var Ke=Vn(R,"layout","text-padding",l,h,S),He=$.getPadding();Ke!==He[0]&&(He[0]=Ke,He[1]=Ke,He[2]=Ke,He[3]=Ke),B.setZIndex(z)}}},R=0,P=o.length;R<P;++R)T(R);return x>-1?(Z.length=x+1,Hn&&("function"==typeof e.set?e.set("mapbox-layer",c):e.getProperties()["mapbox-layer"]=c),Z):void 0}};return e.setStyle(F),e.set("mapbox-source",f),e.set("mapbox-layers",x),F}var Jn=r(19569),Qn=r(19352),ei=r(12810),ti=r(32275),ri=r(5403);function ni(e){return(ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ii,oi={},ai=/font-family: ?([^;]*);/,si=/("|')/g;function ui(e){if(!ii){ii={};for(var t=document.styleSheets,r=0,n=t.length;r<n;++r){var i=t[r];try{var o=i.rules||i.cssRules;if(o)for(var a=0,s=o.length;a<s;++a){var u=o[a];if(5==u.type){var l=u.cssText.match(ai);ii[l[1].replace(si,"")]=!0}}}catch(e){}}}return e in ii}var li={},ci=Jn.getNames();function fi(e){var t=e.toString();if(t in li)return e;for(var r=e.map((function(e){var t=w(e,1).split(" ");return[t.slice(3).join(" ").replace(/"/g,""),t[1]+t[0]]})),n=0,i=r.length;n<i;++n){var o=r[n],a=o[0];if(!ui(a)&&-1!==ci.indexOf(a)){var s="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+":"+o[1];if(!document.querySelector('link[href="'+s+'"]')){var u=document.createElement("link");u.href=s,u.rel="stylesheet",document.head.appendChild(u)}}}return li[t]=!0,e}var hi=/^(.*)(\?.*)$/;function pi(e,t){return t&&0===e.indexOf(".")&&(e=t+e),e}function di(e,t,r){var n=(e=pi(e,t)).match(hi);return n?n[1]+r+(n.length>2?n[2]:""):e+r}function yi(e,t,r,n,i){return new Promise((function(o,a){if("object"!=ni(t)&&(t=JSON.parse(t)),8!=t.version)return a(new Error("glStyle version 8 required."));if(!(e instanceof l.Z||e instanceof f.Z))return a(new Error("Can only apply to VectorLayer or VectorTileLayer"));var s,u,c;function h(){c||t.sprite&&!s?c?(e.setStyle(c),o()):a(new Error("Something went wrong trying to apply style.")):(c=$n(e,t,r,i,s,u,fi),e.getStyle()?o():a(new Error("Nothing to show for source [".concat(r,"]"))))}if(t.sprite){var p=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",d=di(t.sprite,n,p+".json");fetch(d,{credentials:"same-origin"}).then((function(e){return e.ok||""===p?e:(d=di(t.sprite,n,".json"),fetch(d,{credentials:"same-origin"}))})).then((function(e){if(e.ok)return e.json();a(new Error("Problem fetching sprite from ".concat(d,": ").concat(e.statusText)))})).then((function(e){if(void 0===e)return a(new Error("No sprites found."));s=e,u=di(t.sprite,n,p+".png"),h()})).catch((function(e){a(new Error("Sprites cannot be loaded: ".concat(d,": ").concat(e.message)))}))}else h()}))}var vi={};function mi(e,t){var r={id:t.id,type:t.type},n={};function i(i){var o=t.layout||{},a=t.paint||{};r.paint=a;var s,u,l="function"==typeof e.getSource?e.getSource().getTileGrid().getZForResolution(i):e.getView().getZoom(),c="function"==typeof e.getTargetElement?e.getTargetElement():void 0;if(void 0!==a["background-color"]&&(s=Vn(r,"paint","background-color",l,vi,n),c&&(c.style.background=Ie.parse(s).toString())),void 0!==a["background-opacity"]&&(u=Vn(r,"paint","background-opacity",l,vi,n),c&&(c.style.opacity=u)),"none"!=o.visibility)return Yn(s,u);c&&(c.style.backgroundColor="",c.style.opacity="")}if("function"==typeof e.getTargetElement)e.getTargetElement()&&i(),e.on(["change:resolution","change:target"],i);else{if("function"!=typeof e.setBackground)throw new Error("Unable to apply background.");e.setBackground(i)}}function gi(e,t){t.layers.some((function(t){if("background"==t.type)return mi(e,t),!0}))}function bi(e){var t=e.bounds;if(t){var r=(0,ei.mi)([t[0],t[1]]),n=(0,ei.mi)([t[2],t[3]]);return[r[0],r[1],n[0],n[1]]}}function _i(e,t){e=(0,Dn.f0)({},e);var r=[t,JSON.stringify(e)].toString(),n=oi[r];return n||(n=new s.Z({url:e.tiles?void 0:t,tileJSON:e.tiles?e:void 0}),oi[r]=n),new Promise((function(e){var r=n.on("change",(function(){var o=n.getState();if("ready"===o){var s=n.getTileJSON(),u=Array.isArray(s.tiles)?s.tiles:[s.tiles];if(t)for(var l=0,c=u.length;l<c;++l)u[l]=decodeURI(new URL(u[l],t).href);var f=n.getTileGrid(),p=bi(s),d=s.minzoom||0,y=s.maxzoom||22,v=n.get("ol-source");void 0===v&&(v=new h.Z({attributions:n.getAttributions(),format:new i.Z,tileGrid:new a.Z({origin:f.getOrigin(0),extent:p||f.getExtent(),minZoom:d,resolutions:Dn.H2.slice(0,y+1),tileSize:512}),urls:u}),n.set("ol-source",v)),(0,ri.B)(r),e(v)}else"error"===o&&(n.set("ol-source",null),(0,ri.B)(r),e(void 0))}));"ready"===n.getState()&&n.changed()}))}var wi=new n.Z;function xi(e,t,r,n){var i=Vn(e,"paint","raster-opacity",r.getZoom(),vi,n);t.setOpacity(i)}function ki(e,t,r,n,i,o){void 0===o&&(o="");var h=[],d=t.getView();("object"===ni(d.options_)?!(0,ti.xb)(d.options_):d.isDef()||d.getRotation()||d.getResolutions())||(d=new p.ZP((0,Dn.f0)(d.getProperties(),{maxResolution:Dn.H2[0]})),t.setView(d)),"center"in e&&!d.getCenter()&&d.setCenter((0,ei.mi)(e.center)),"zoom"in e&&void 0===d.getZoom()&&d.setResolution(Dn.H2[0]/Math.pow(2,e.zoom)),d.getCenter()&&void 0!==d.getZoom()||d.fit(d.getProjection().getExtent(),{nearest:!0,size:t.getSize()}),e.sprite&&(0==e.sprite.indexOf("mapbox://")?e.sprite=r+"/sprite"+o:0!=e.sprite.indexOf("http")&&(e.sprite=(n?n+i:"")+e.sprite+o));for(var y,v,m,g,b,_,w=e.layers,x=[],k=function(r,p){var k,S,E,T=(y=w[r]).type;if("heatmap"==T||"hillshade"==T);else if("background"==T)mi(t,y);else{if((g=y.source||(k=w,S=y.ref,k.some((function(e){if(e.id==S)return E=e.source,!0})),E))!=m){if(x.length&&(h.push(Si(b,x,e,i,t)),x=[]),v=e.sources[g],_=v.url)if(0==(_=pi(_,i)).indexOf("mapbox://")){var R=_.replace("mapbox://","");v.tiles=["a","b","c","d"].map((function(e){return"https://"+e+".tiles.mapbox.com/v4/"+R+"/{z}/{x}/{y}."+("vector"==v.type?"vector.pbf":"png")+o}))}else 0===_.indexOf("/")&&0===n.indexOf("http")&&(_=n+_);if(v.tiles&&(v.tiles=v.tiles.map((function(e){return pi(e,i)}))),"vector"==v.type)b=function(e,t){var r=new f.Z({declutter:!0,visible:!1});return _i(e,t).then((function(e){r.setSource(e)})),r}(v,_);else if("raster"==v.type){(b=function(e,t){var r=new u.Z,n=new s.Z({transition:0,url:e.tiles?void 0:t,tileJSON:e.tiles?e:void 0,crossOrigin:"anonymous"}),i=n.on("change",(function(){var t=n.getState();if("ready"===t){(0,ri.B)(i);var o=n.getTileJSON(),s=bi(o),u=n.getTileGrid(),l=e.tileSize||o.tileSize||512,c=o.minzoom||0,f=o.maxzoom||22;n.tileGrid=new a.Z({origin:u.getOrigin(0),extent:s||u.getExtent(),minZoom:c,resolutions:(0,Qn.dl)({maxZoom:f,tileSize:l}).getResolutions(),tileSize:l}),r.setSource(n)}else"error"===t&&((0,ri.B)(i),r.setSource(void 0))}));return n.setTileLoadFunction((function(e,t){if(-1!=t.indexOf("{bbox-epsg-3857}")){var r=n.getTileGrid().getTileCoordExtent(e.getTileCoord());t=t.replace("{bbox-epsg-3857}",r.toString())}e.getImage().src=t})),r}(v,_)).setVisible(!y.layout||"none"!==y.layout.visibility);var P={};d.on("change:resolution",xi.bind(O,y,b,d,P)),xi(y,b,d,P)}else"geojson"==v.type&&(b=function(e,t){var r,n,i=e.data;return"string"==typeof i?n=pi(i,t):r=wi.readFeatures(i,{featureProjection:"EPSG:3857"}),new l.Z({source:new c.Z({attributions:e.attribution,features:r,format:wi,url:n}),visible:!1})}(v,i));m=g,b&&b.set("mapbox-source",m)}x.push(y.id)}},O=this,S=0,E=w.length;S<E;++S)k(S);return h.push(Si(b,x,e,i,t)),t.set("mapbox-style",e),Promise.all(h)}function Oi(e,t){var r,n="",i="",a="",s="";if(("string"==typeof e||e instanceof HTMLElement)&&(e=new o.Z({target:e})),"string"==typeof t){var u=t.match(hi);u&&(i=u[1],n=u.length>2?u[2]:""),r=new Promise((function(r,o){fetch(t,{credentials:"same-origin"}).then((function(e){return e.json()})).then((function(u){var l=document.createElement("A");l.href=t;var c=l.href;s=l.pathname.split("/").slice(0,-1).join("/")+"/",a=c.substr(0,c.indexOf(s)),ki(u,e,i,a,s,n).then((function(){r(e)})).catch(o)})).catch((function(e){o(new Error("Could not load ".concat(t,": ").concat(e.message)))}))}))}else r=new Promise((function(r,n){ki(t,e).then((function(){r(e)})).catch(n)}));return r}function Si(e,t,r,n,i){for(var o=24,a=0,s=r.layers,u=0,l=s.length;u<l;++u){var f=s[u];-1!==t.indexOf(f.id)&&(o=Math.min("minzoom"in f?f.minzoom:0,o),a=Math.max("maxzoom"in f?f.maxzoom:24,a))}return new Promise((function(s,u){var l=function(){var i=e.getSource();if(i&&"error"!==i.getState()){if("function"==typeof i.getTileGrid){var l=i.getTileGrid();if(l){var f=l.getMinZoom();(o>0||f>0)&&e.setMaxResolution(Math.min(Dn.H2[o],l.getResolution(f))+1e-9),a<24&&e.setMinResolution(Dn.H2[a]+1e-9)}}i instanceof c.Z||i instanceof h.Z?yi(e,r,t,n).then((function(){e.setVisible(!0),s()}),(function(e){u(e)})):s()}else u(new Error("Error accessing data for source "+e.get("mapbox-source")))};e.set("mapbox-layers",t),-1===i.getLayers().getArray().indexOf(e)&&i.addLayer(e),e.getSource()?l():e.once("change:source",l)}))}},73081:function(e,t,r){"use strict";r.d(t,{f0:function(){return a},Vl:function(){return s},H2:function(){return u},vL:function(){return l},h5:function(){return c},tM:function(){return p},lD:function(){return m}});var n=r(6566),i=r(29852),o=r(12016),a="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function s(e){return e*Math.PI/180}var u=function(){for(var e=[],t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function l(e,t){if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,t);var r=document.createElement("canvas");return r.width=e,r.height=t,r}function c(e,t){for(var r=0,n=t.length;r<n;++r){if(t[r]<e&&r+1<n){var i=t[r]/t[r+1];return r+Math.log(t[r]/e)/Math.log(i)}}return n-1}var f,h=Array(256).join(" ");function p(e,t){if(t>=.05){for(var r="",n=e.split("\n"),i=h.slice(0,Math.round(t/.1)),o=0,a=n.length;o<a;++o)o>0&&(r+="\n"),r+=n[o].split("").join(i);return r}return e}function d(){return f||(f=l(1,1).getContext("2d")),f}function y(e,t){return d().measureText(e).width+(e.length-1)*t}var v={};function m(e,t,r,n){if(-1!==e.indexOf("\n")){for(var i=e.split("\n"),o=[],a=0,s=i.length;a<s;++a)o.push(m(i[a],t,r,n));return o.join("\n")}var u=r+","+t+","+e+","+n,l=v[u];if(!l){var c=e.split(" ");if(c.length>1){var f=d();f.font=t;var h=f.measureText("M").width*r,g="";for(o=[],a=0,s=c.length;a<s;++a){var b=c[a],_=g+(g?" ":"")+b;y(_,n)<=h?g=_:(g&&o.push(g),g=b)}g&&o.push(g);for(a=0,s=o.length;a<s&&s>1;++a){var w=o[a];if(y(w,n)<.35*h){var x=a>0?y(o[a-1],n):1/0,k=a<s-1?y(o[a+1],n):1/0;o.splice(a,1),s-=1,x<k?(o[a-1]+=" "+w,a-=1):o[a]=w+" "+o[a]}}for(a=0,s=o.length-1;a<s;++a){var O=o[a],S=o[a+1];if(y(O,n)>.7*h&&y(S,n)<.6*h){var E=O.split(" "),T=E.pop();y(T,n)<.2*h&&(o[a]=E.join(" "),o[a+1]=T+" "+S),s-=1}}l=o.join("\n")}else l=e;l=p(l,n),v[u]=l}return l}i.GK&&(0,o.oL)(i.GK,n.Z.CLEAR,(function(){v={}}))},7098:function(e,t,r){"use strict";var n=r(99382);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function u(e,t,r){return(u=l()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&c(i,r.prototype),i}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(p,e);var t,r,i,s,u,h=(t=p,r=l(),function(){var e,n=f(t);if(r){var i=f(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return a(this,e)});function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r="Assertion failed. See https://openlayers.org/en/"+("latest"===n.q4?n.q4:"v"+n.q4.split("-")[0])+"/doc/errors/#"+e+" for details.";return(t=h.call(this,r)).code=e,t.name="AssertionError",t.message=r,t}return i=p,s&&o(i.prototype,s),u&&o(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i}(s(Error));t.Z=h},25898:function(e,t,r){"use strict";var n=r(7098),i=r(80157),o=r(31879),a=r(21510);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v="length",m=function(e){f(r,e);var t=p(r);function r(e,n,i){var o;return c(this,r),(o=t.call(this,e)).element=n,o.index=i,o}return l(r)}(a.ZP),g=function(e){f(r,e);var t=p(r);function r(e,n){var i;c(this,r),(i=t.call(this)).on,i.once,i.un;var o=n||{};if(i.unique_=!!o.unique,i.array_=e||[],i.unique_)for(var a=0,s=i.array_.length;a<s;++a)i.assertUnique_(i.array_[a],a);return i.updateLength_(),i}return l(r,[{key:"clear",value:function(){for(;this.getLength()>0;)this.pop()}},{key:"extend",value:function(e){for(var t=0,r=e.length;t<r;++t)this.push(e[t]);return this}},{key:"forEach",value:function(e){for(var t=this.array_,r=0,n=t.length;r<n;++r)e(t[r],r,t)}},{key:"getArray",value:function(){return this.array_}},{key:"item",value:function(e){return this.array_[e]}},{key:"getLength",value:function(){return this.get(v)}},{key:"insertAt",value:function(e,t){this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new m(o.Z.ADD,t,e))}},{key:"pop",value:function(){return this.removeAt(this.getLength()-1)}},{key:"push",value:function(e){this.unique_&&this.assertUnique_(e);var t=this.getLength();return this.insertAt(t,e),this.getLength()}},{key:"remove",value:function(e){for(var t=this.array_,r=0,n=t.length;r<n;++r)if(t[r]===e)return this.removeAt(r)}},{key:"removeAt",value:function(e){var t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new m(o.Z.REMOVE,t,e)),t}},{key:"setAt",value:function(e,t){var r=this.getLength();if(e<r){this.unique_&&this.assertUnique_(t,e);var n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new m(o.Z.REMOVE,n,e)),this.dispatchEvent(new m(o.Z.ADD,t,e))}else{for(var i=r;i<e;++i)this.insertAt(i,void 0);this.insertAt(e,t)}}},{key:"updateLength_",value:function(){this.set(v,this.array_.length)}},{key:"assertUnique_",value:function(e,t){for(var r=0,i=this.array_.length;r<i;++r)if(this.array_[r]===e&&r!==t)throw new n.Z(58)}}]),r}(i.Z);t.Z=g},31879:function(e,t){"use strict";t.Z={ADD:"add",REMOVE:"remove"}},61637:function(e,t){"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disposed=!1}var t,n,i;return t=e,(n=[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,this.disposeInternal())}},{key:"disposeInternal",value:function(){}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=n},12739:function(e,t,r){"use strict";var n=r(80157),i=r(6566),o=r(90776),a=r(12016);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,r,n,s=c(f);function f(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this)).on,t.once,t.un,t.id_=void 0,t.geometryName_="geometry",t.style_=null,t.styleFunction_=void 0,t.geometryChangeKey_=null,t.addChangeListener(t.geometryName_,t.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var r=e;t.setGeometry(r)}else{var n=e;t.setProperties(n)}return t}return t=f,(r=[{key:"clone",value:function(){var e=new f(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());var t=this.getGeometry();t&&e.setGeometry(t.clone());var r=this.getStyle();return r&&e.setStyle(r),e}},{key:"getGeometry",value:function(){return this.get(this.geometryName_)}},{key:"getId",value:function(){return this.id_}},{key:"getGeometryName",value:function(){return this.geometryName_}},{key:"getStyle",value:function(){return this.style_}},{key:"getStyleFunction",value:function(){return this.styleFunction_}},{key:"handleGeometryChange_",value:function(){this.changed()}},{key:"handleGeometryChanged_",value:function(){this.geometryChangeKey_&&((0,a.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);var e=this.getGeometry();e&&(this.geometryChangeKey_=(0,a.oL)(e,i.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}},{key:"setGeometry",value:function(e){this.set(this.geometryName_,e)}},{key:"setStyle",value:function(e){var t,r;this.style_=e,this.styleFunction_=e?"function"==typeof(t=e)?t:(Array.isArray(t)?r=t:((0,o.h)("function"==typeof t.getZIndex,41),r=[t]),function(){return r}):void 0,this.changed()}},{key:"setId",value:function(e){this.id_=e,this.changed()}},{key:"setGeometryName",value:function(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);t.Z=p},78284:function(e,t,r){"use strict";var n=r(21510),i=r(80157),o=r(6566),a=r(85528),s=r(12810),u=r(62990);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=f(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _="accuracy",w="accuracyGeometry",x="altitude",k="altitudeAccuracy",O="heading",S="position",E="projection",T="speed",R="tracking",P="trackingOptions",C=function(e){y(r,e);var t=m(r);function r(e){var n;return d(this,r),(n=t.call(this,o.Z.ERROR)).code=e.code,n.message=e.message,n}return p(r)}(n.ZP),M=function(e){y(r,e);var t=m(r);function r(e){var n;d(this,r),(n=t.call(this)).on,n.once,n.un;var i=e||{};return n.position_=null,n.transform_=s.gD,n.watchId_=void 0,n.addChangeListener(E,n.handleProjectionChanged_),n.addChangeListener(R,n.handleTrackingChanged_),void 0!==i.projection&&n.setProjection(i.projection),void 0!==i.trackingOptions&&n.setTrackingOptions(i.trackingOptions),n.setTracking(void 0!==i.tracking&&i.tracking),n}return p(r,[{key:"disposeInternal",value:function(){this.setTracking(!1),c(b(r.prototype),"disposeInternal",this).call(this)}},{key:"handleProjectionChanged_",value:function(){var e=this.getProjection();e&&(this.transform_=(0,s.WO)((0,s.U2)("EPSG:4326"),e),this.position_&&this.set(S,this.transform_(this.position_)))}},{key:"handleTrackingChanged_",value:function(){if("geolocation"in navigator){var e=this.getTracking();e&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):e||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}},{key:"positionChange_",value:function(e){var t=e.coords;this.set(_,t.accuracy),this.set(x,null===t.altitude?void 0:t.altitude),this.set(k,null===t.altitudeAccuracy?void 0:t.altitudeAccuracy),this.set(O,null===t.heading?void 0:(0,u.Yr)(t.heading)),this.position_?(this.position_[0]=t.longitude,this.position_[1]=t.latitude):this.position_=[t.longitude,t.latitude];var r=this.transform_(this.position_);this.set(S,r),this.set(T,null===t.speed?void 0:t.speed);var n=(0,a.iu)(this.position_,t.accuracy);n.applyTransform(this.transform_),this.set(w,n),this.changed()}},{key:"positionError_",value:function(e){this.dispatchEvent(new C(e))}},{key:"getAccuracy",value:function(){return this.get(_)}},{key:"getAccuracyGeometry",value:function(){return this.get(w)||null}},{key:"getAltitude",value:function(){return this.get(x)}},{key:"getAltitudeAccuracy",value:function(){return this.get(k)}},{key:"getHeading",value:function(){return this.get(O)}},{key:"getPosition",value:function(){return this.get(S)}},{key:"getProjection",value:function(){return this.get(E)}},{key:"getSpeed",value:function(){return this.get(T)}},{key:"getTracking",value:function(){return this.get(R)}},{key:"getTrackingOptions",value:function(){return this.get(P)}},{key:"setProjection",value:function(e){this.set(E,(0,s.U2)(e))}},{key:"setTracking",value:function(e){this.set(R,e)}},{key:"setTrackingOptions",value:function(e){this.set(P,e)}}]),r}(i.Z);t.Z=M},49060:function(e,t,r){"use strict";r.d(t,{K:function(){return v}});var n=r(6566),i=r(25028),o=r(23333),a=r(25738),s=r(86923),u=r(12016);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(a,e);var t,r,n,i=h(a);function a(e,t,r,n,s,u){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(l=i.call(this,e,t,r,o.Z.IDLE)).src_=n,l.image_=new Image,null!==s&&(l.image_.crossOrigin=s),l.unlisten_=null,l.state=o.Z.IDLE,l.imageLoadFunction_=u,l}return t=a,(r=[{key:"getImage",value:function(){return this.image_}},{key:"handleImageError_",value:function(){this.state=o.Z.ERROR,this.unlistenImage_(),this.changed()}},{key:"handleImageLoad_",value:function(){void 0===this.resolution&&(this.resolution=(0,s.Cr)(this.extent)/this.image_.height),this.state=o.Z.LOADED,this.unlistenImage_(),this.changed()}},{key:"load",value:function(){this.state!=o.Z.IDLE&&this.state!=o.Z.ERROR||(this.state=o.Z.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=v(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}},{key:"setImage",value:function(e){this.image_=e,this.resolution=(0,s.Cr)(this.extent)/this.image_.height}},{key:"unlistenImage_",value:function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Z);function v(e,t,r){var i=e,o=!0,s=!1,l=!1,c=[(0,u.Vx)(i,n.Z.LOAD,(function(){l=!0,s||t()}))];return i.src&&a.Tp?(s=!0,i.decode().then((function(){o&&t()})).catch((function(e){o&&(l?t():r())}))):c.push((0,u.Vx)(i,n.Z.ERROR,r)),function(){o=!1,c.forEach(u.bN)}}t.Z=y},25028:function(e,t,r){"use strict";var n=r(44090),i=r(6566),o=r(99382);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(i=a.call(this)).extent=e,i.pixelRatio_=r,i.resolution=t,i.state=n,i}return t=c,(r=[{key:"changed",value:function(){this.dispatchEvent(i.Z.CHANGE)}},{key:"getExtent",value:function(){return this.extent}},{key:"getImage",value:function(){return(0,o.O3)()}},{key:"getPixelRatio",value:function(){return this.pixelRatio_}},{key:"getResolution",value:function(){return this.resolution}},{key:"getState",value:function(){return this.state}},{key:"load",value:function(){(0,o.O3)()}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=h},40661:function(e,t,r){"use strict";var n=r(25028),i=r(23333);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e,t,r,n,a){var s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var u=void 0!==a?i.Z.IDLE:i.Z.LOADED;return(s=o.call(this,e,t,r,u)).loader_=void 0!==a?a:null,s.canvas_=n,s.error_=null,s}return t=l,(r=[{key:"getError",value:function(){return this.error_}},{key:"handleLoad_",value:function(e){e?(this.error_=e,this.state=i.Z.ERROR):this.state=i.Z.LOADED,this.changed()}},{key:"load",value:function(){this.state==i.Z.IDLE&&(this.state=i.Z.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}},{key:"getImage",value:function(){return this.canvas_}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z);t.Z=f},23333:function(e,t){"use strict";t.Z={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},14652:function(e,t,r){"use strict";var n=r(99626),i=r(80542),o=r(33716),a=r(49060);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,r,n,s=c(f);function f(e,t,r,n,i,o){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(a=s.call(this,e,t,o)).crossOrigin_=n,a.src_=r,a.key=r,a.image_=new Image,null!==n&&(a.image_.crossOrigin=n),a.unlisten_=null,a.tileLoadFunction_=i,a}return t=f,(r=[{key:"getImage",value:function(){return this.image_}},{key:"setImage",value:function(e){this.image_=e,this.state=i.Z.LOADED,this.unlistenImage_(),this.changed()}},{key:"handleImageError_",value:function(){var e;this.state=i.Z.ERROR,this.unlistenImage_(),this.image_=((e=(0,o.E4)(1,1)).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas),this.changed()}},{key:"handleImageLoad_",value:function(){var e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=i.Z.LOADED:this.state=i.Z.EMPTY,this.unlistenImage_(),this.changed()}},{key:"load",value:function(){this.state==i.Z.ERROR&&(this.state=i.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==i.Z.IDLE&&(this.state=i.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,a.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}},{key:"unlistenImage_",value:function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);t.Z=p},41376:function(e,t,r){"use strict";var n=r(58265),i=r(40297),o=r(32275),a=r(45830),s=r(12174);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,i,u=f(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(e=(0,o.f0)({},e)).controls||(e.controls=(0,a.ce)()),e.interactions||(e.interactions=(0,s.ce)({onFocusOnly:!0})),u.call(this,e)}return t=h,(r=[{key:"createRenderer",value:function(){return new n.Z(this)}}])&&l(t.prototype,r),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Z);t.Z=d},53884:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=a(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,a=u(l);function l(e,t,r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(o=a.call(this,e,t,i)).originalEvent=r,o.pixel_=null,o.coordinate_=null,o.dragging=void 0!==n&&n,o}return t=l,(r=[{key:"pixel",get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(e){this.pixel_=e}},{key:"coordinate",get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(e){this.coordinate_=e}},{key:"preventDefault",value:function(){o(c(l.prototype),"preventDefault",this).call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){o(c(l.prototype),"stopPropagation",this).call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r(68012).Z);t.Z=f},81248:function(e,t,r){"use strict";var n=r(6566);t.Z={SINGLECLICK:"singleclick",CLICK:n.Z.CLICK,DBLCLICK:n.Z.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},68012:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(u,e);var t,r,n,s=a(u);function u(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,e)).map=t,n.frameState=void 0!==r?r:null,n}return t=u,r&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(r(21510).ZP);t.Z=l},5395:function(e,t){"use strict";t.Z={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},97014:function(e,t){"use strict";t.Z={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},80157:function(e,t,r){"use strict";var n=r(21510),i=r(79937),o=r(5403),a=r(32275),s=r(99382);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){h(r,e);var t=d(r);function r(e,n,i){var o;return f(this,r),(o=t.call(this,e)).key=n,o.oldValue=i,o}return c(r)}(n.ZP),b=function(e){h(r,e);var t=d(r);function r(e){var n;return f(this,r),(n=t.call(this)).on,n.once,n.un,(0,s.sq)(v(n)),n.values_=null,void 0!==e&&n.setProperties(e),n}return c(r,[{key:"get",value:function(e){var t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}},{key:"getKeys",value:function(){return this.values_&&Object.keys(this.values_)||[]}},{key:"getProperties",value:function(){return this.values_&&(0,a.f0)({},this.values_)||{}}},{key:"hasProperties",value:function(){return!!this.values_}},{key:"notify",value:function(e,t){var r;r="change:".concat(e),this.dispatchEvent(new g(r,e,t)),r=i.Z.PROPERTYCHANGE,this.dispatchEvent(new g(r,e,t))}},{key:"addChangeListener",value:function(e,t){this.addEventListener("change:".concat(e),t)}},{key:"removeChangeListener",value:function(e,t){this.removeEventListener("change:".concat(e),t)}},{key:"set",value:function(e,t,r){var n=this.values_||(this.values_={});if(r)n[e]=t;else{var i=n[e];n[e]=t,i!==t&&this.notify(e,i)}}},{key:"setProperties",value:function(e,t){for(var r in e)this.set(r,e[r],t)}},{key:"applyProperties",value:function(e){e.values_&&(0,a.f0)(this.values_||(this.values_={}),e.values_)}},{key:"unset",value:function(e,t){if(this.values_&&e in this.values_){var r=this.values_[e];delete this.values_[e],(0,a.xb)(this.values_)&&(this.values_=null),t||this.notify(e,r)}}}]),r}(o.Z);t.Z=b},79937:function(e,t){"use strict";t.Z={PROPERTYCHANGE:"propertychange"}},5403:function(e,t,r){"use strict";r.d(t,{B:function(){return p}});var n=r(44090),i=r(6566),o=r(12016);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this)).on=e.onInternal,e.once=e.onceInternal,e.un=e.unInternal,e.revision_=0,e}return t=c,(r=[{key:"changed",value:function(){++this.revision_,this.dispatchEvent(i.Z.CHANGE)}},{key:"getRevision",value:function(){return this.revision_}},{key:"onInternal",value:function(e,t){if(Array.isArray(e)){for(var r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=(0,o.oL)(this,e[i],t);return n}return(0,o.oL)(this,e,t)}},{key:"onceInternal",value:function(e,t){var r;if(Array.isArray(e)){var n=e.length;r=new Array(n);for(var i=0;i<n;++i)r[i]=(0,o.Vx)(this,e[i],t)}else r=(0,o.Vx)(this,e,t);return t.ol_key=r,r}},{key:"unInternal",value:function(e,t){var r=t.ol_key;if(r)p(r);else if(Array.isArray(e))for(var n=0,i=e.length;n<i;++n)this.removeEventListener(e[n],t);else this.removeEventListener(e,t)}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);function p(e){if(Array.isArray(e))for(var t=0,r=e.length;t<r;++t)(0,o.bN)(e[t]);else(0,o.bN)(e)}h.prototype.on,h.prototype.once,h.prototype.un,t.Z=h},70492:function(e,t,r){"use strict";var n=r(80157),i=r(5395),o=r(14681),a=r(48736),s=r(86923),u=r(12016),l=r(33716);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v="element",m="map",g="offset",b="position",_="positioning",w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var t,r,n,d=p(y);function y(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=d.call(this)).on,t.once,t.un,t.options=e,t.id=e.id,t.insertFirst=void 0===e.insertFirst||e.insertFirst,t.stopEvent=void 0===e.stopEvent||e.stopEvent,t.element=document.createElement("div"),t.element.className=void 0!==e.className?e.className:"ol-overlay-container "+a.$A,t.element.style.position="absolute",t.element.style.pointerEvents="auto";var r=e.autoPan;return r&&"object"!==c(r)&&(r={animation:e.autoPanAnimation,margin:e.autoPanMargin}),t.autoPan=r||!1,t.rendered={transform_:"",visible:!0},t.mapPostrenderListenerKey=null,t.addChangeListener(v,t.handleElementChanged),t.addChangeListener(m,t.handleMapChanged),t.addChangeListener(g,t.handleOffsetChanged),t.addChangeListener(b,t.handlePositionChanged),t.addChangeListener(_,t.handlePositioningChanged),void 0!==e.element&&t.setElement(e.element),t.setOffset(void 0!==e.offset?e.offset:[0,0]),t.setPositioning(void 0!==e.positioning?e.positioning:o.Z.TOP_LEFT),void 0!==e.position&&t.setPosition(e.position),t}return t=y,(r=[{key:"getElement",value:function(){return this.get(v)}},{key:"getId",value:function(){return this.id}},{key:"getMap",value:function(){return this.get(m)}},{key:"getOffset",value:function(){return this.get(g)}},{key:"getPosition",value:function(){return this.get(b)}},{key:"getPositioning",value:function(){return this.get(_)}},{key:"handleElementChanged",value:function(){(0,l.ep)(this.element);var e=this.getElement();e&&this.element.appendChild(e)}},{key:"handleMapChanged",value:function(){this.mapPostrenderListenerKey&&((0,l.ZF)(this.element),(0,u.bN)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var e=this.getMap();if(e){this.mapPostrenderListenerKey=(0,u.oL)(e,i.Z.POSTRENDER,this.render,this),this.updatePixelPosition();var t=this.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this.insertFirst?t.insertBefore(this.element,t.childNodes[0]||null):t.appendChild(this.element),this.performAutoPan()}}},{key:"render",value:function(){this.updatePixelPosition()}},{key:"handleOffsetChanged",value:function(){this.updatePixelPosition()}},{key:"handlePositionChanged",value:function(){this.updatePixelPosition(),this.performAutoPan()}},{key:"handlePositioningChanged",value:function(){this.updatePixelPosition()}},{key:"setElement",value:function(e){this.set(v,e)}},{key:"setMap",value:function(e){this.set(m,e)}},{key:"setOffset",value:function(e){this.set(g,e)}},{key:"setPosition",value:function(e){this.set(b,e)}},{key:"performAutoPan",value:function(){this.autoPan&&this.panIntoView(this.autoPan)}},{key:"panIntoView",value:function(e){var t=this.getMap();if(t&&t.getTargetElement()&&this.get(b)){var r=this.getRect(t.getTargetElement(),t.getSize()),n=this.getElement(),i=this.getRect(n,[(0,l.iO)(n),(0,l.Pb)(n)]),o=e||{},a=void 0===o.margin?20:o.margin;if(!(0,s.r4)(r,i)){var u=i[0]-r[0],c=r[2]-i[2],f=i[1]-r[1],h=r[3]-i[3],p=[0,0];if(u<0?p[0]=u-a:c<0&&(p[0]=Math.abs(c)+a),f<0?p[1]=f-a:h<0&&(p[1]=Math.abs(h)+a),0!==p[0]||0!==p[1]){var d=t.getView().getCenterInternal(),y=t.getPixelFromCoordinateInternal(d);if(!y)return;var v=[y[0]+p[0],y[1]+p[1]],m=o.animation||{};t.getView().animateInternal({center:t.getCoordinateFromPixelInternal(v),duration:m.duration,easing:m.easing})}}}}},{key:"getRect",value:function(e,t){var r=e.getBoundingClientRect(),n=r.left+window.pageXOffset,i=r.top+window.pageYOffset;return[n,i,n+t[0],i+t[1]]}},{key:"setPositioning",value:function(e){this.set(_,e)}},{key:"setVisible",value:function(e){this.rendered.visible!==e&&(this.element.style.display=e?"":"none",this.rendered.visible=e)}},{key:"updatePixelPosition",value:function(){var e=this.getMap(),t=this.getPosition();if(e&&e.isRendered()&&t){var r=e.getPixelFromCoordinate(t),n=e.getSize();this.updateRenderedPosition(r,n)}else this.setVisible(!1)}},{key:"updateRenderedPosition",value:function(e,t){var r=this.element.style,n=this.getOffset(),i=this.getPositioning();this.setVisible(!0);var a=Math.round(e[0]+n[0])+"px",s=Math.round(e[1]+n[1])+"px",u="0%",l="0%";i==o.Z.BOTTOM_RIGHT||i==o.Z.CENTER_RIGHT||i==o.Z.TOP_RIGHT?u="-100%":i!=o.Z.BOTTOM_CENTER&&i!=o.Z.CENTER_CENTER&&i!=o.Z.TOP_CENTER||(u="-50%"),i==o.Z.BOTTOM_LEFT||i==o.Z.BOTTOM_CENTER||i==o.Z.BOTTOM_RIGHT?l="-100%":i!=o.Z.CENTER_LEFT&&i!=o.Z.CENTER_CENTER&&i!=o.Z.CENTER_RIGHT||(l="-50%");var c="translate(".concat(u,", ").concat(l,") translate(").concat(a,", ").concat(s,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,r.transform=c,r.msTransform=c)}},{key:"getOptions",value:function(){return this.options}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);t.Z=w},14681:function(e,t){"use strict";t.Z={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"}},40297:function(e,t,r){"use strict";r.d(t,{Z:function(){return J}});var n=r(80157),i=r(25898),o=r(31879),a=r(6566),s=r(2320),u=r(27923),l=r(53884),c=r(81248),f=r(33515),h=r(44090),p=r(25738),d=r(13837),y=r(12016);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=b(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var i=O(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(o,e);var t,r,n,i=w(o);function o(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(r=i.call(this,e)).map_=e,r.clickTimeoutId_,r.emulateClicks_=!1,r.dragging_=!1,r.dragListenerKeys_=[],r.moveTolerance_=void 0===t?1:t,r.down_=null;var n=r.map_.getViewport();return r.activePointers_=0,r.trackedTouches_={},r.element_=n,r.pointerdownListenerKey_=(0,y.oL)(n,f.Z.POINTERDOWN,r.handlePointerDown_,k(r)),r.originalPointerMoveEvent_,r.relayedListenerKey_=(0,y.oL)(n,f.Z.POINTERMOVE,r.relayEvent_,k(r)),r.boundHandleTouchMove_=r.handleTouchMove_.bind(k(r)),r.element_.addEventListener(a.Z.TOUCHMOVE,r.boundHandleTouchMove_,!!p.bM&&{passive:!1}),r}return t=o,(r=[{key:"emulateClick_",value:function(e){var t=new l.Z(c.Z.CLICK,this.map_,e);this.dispatchEvent(t),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,t=new l.Z(c.Z.DBLCLICK,this.map_,e),this.dispatchEvent(t)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var t=new l.Z(c.Z.SINGLECLICK,this.map_,e);this.dispatchEvent(t)}.bind(this),250)}},{key:"updateActivePointers_",value:function(e){var t=e;t.type==c.Z.POINTERUP||t.type==c.Z.POINTERCANCEL?delete this.trackedTouches_[t.pointerId]:t.type==c.Z.POINTERDOWN&&(this.trackedTouches_[t.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length}},{key:"handlePointerUp_",value:function(e){this.updateActivePointers_(e);var t=new l.Z(c.Z.POINTERUP,this.map_,e);this.dispatchEvent(t),this.emulateClicks_&&!t.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(y.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}},{key:"isMouseActionButton_",value:function(e){return 0===e.button}},{key:"handlePointerDown_",value:function(e){this.emulateClicks_=0===this.activePointers_,this.updateActivePointers_(e);var t=new l.Z(c.Z.POINTERDOWN,this.map_,e);for(var r in this.dispatchEvent(t),this.down_={},e){var n=e[r];this.down_[r]="function"==typeof n?d.Zn:n}if(0===this.dragListenerKeys_.length){var i=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,y.oL)(i,c.Z.POINTERMOVE,this.handlePointerMove_,this),(0,y.oL)(i,c.Z.POINTERUP,this.handlePointerUp_,this),(0,y.oL)(this.element_,c.Z.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push((0,y.oL)(this.element_.getRootNode(),c.Z.POINTERUP,this.handlePointerUp_,this))}}},{key:"handlePointerMove_",value:function(e){if(this.isMoving_(e)){this.dragging_=!0;var t=new l.Z(c.Z.POINTERDRAG,this.map_,e,this.dragging_);this.dispatchEvent(t)}}},{key:"relayEvent_",value:function(e){this.originalPointerMoveEvent_=e;var t=!(!this.down_||!this.isMoving_(e));this.dispatchEvent(new l.Z(e.type,this.map_,e,t))}},{key:"handleTouchMove_",value:function(e){var t=this.originalPointerMoveEvent_;t&&!t.defaultPrevented||"boolean"==typeof e.cancelable&&!0!==e.cancelable||e.preventDefault()}},{key:"isMoving_",value:function(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}},{key:"disposeInternal",value:function(){this.relayedListenerKey_&&((0,y.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(a.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,y.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(y.bN),this.dragListenerKeys_.length=0,this.element_=null,g(O(o.prototype),"disposeInternal",this).call(this)}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(h.Z),E=r(68012),T=r(5395),R=r(97014),P=r(79937),C=r(37051),M=r(11196),j=r(54354),I=r(34642),A=r(19329),L=r(90776),D=r(86923),Z=r(12810),F=r(99382),N=r(7877),G=r(33716);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U(){return(U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=q(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function q(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=K(e)););return e}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=K(e);if(t){var i=K(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Y(this,r)}}function Y(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e){e instanceof s.Z?e.setMapInternal(null):e instanceof u.Z&&e.getLayers().forEach(H)}function $(e,t){if(e instanceof s.Z)e.setMapInternal(t);else if(e instanceof u.Z)for(var r=e.getLayers().getArray(),n=0,i=r.length;n<i;++n)$(r[n],t)}var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(h,e);var t,r,n,s=X(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=s.call(this)).on,t.once,t.un;var r=function(e){var t=null;void 0!==e.keyboardEventTarget&&(t="string"==typeof e.keyboardEventTarget?document.getElementById(e.keyboardEventTarget):e.keyboardEventTarget);var r,n,o,a={},s=e.layers&&"function"==typeof e.layers.getLayers?e.layers:new u.Z({layers:e.layers});a[R.Z.LAYERGROUP]=s,a[R.Z.TARGET]=e.target,a[R.Z.VIEW]=e.view instanceof j.ZP?e.view:new j.ZP,void 0!==e.controls&&(Array.isArray(e.controls)?r=new i.Z(e.controls.slice()):((0,L.h)("function"==typeof e.controls.getArray,47),r=e.controls));void 0!==e.interactions&&(Array.isArray(e.interactions)?n=new i.Z(e.interactions.slice()):((0,L.h)("function"==typeof e.interactions.getArray,48),n=e.interactions));void 0!==e.overlays?Array.isArray(e.overlays)?o=new i.Z(e.overlays.slice()):((0,L.h)("function"==typeof e.overlays.getArray,49),o=e.overlays):o=new i.Z;return{controls:r,interactions:n,keyboardEventTarget:t,overlays:o,values:a}}(e);t.renderComplete_,t.boundHandleBrowserEvent_=t.handleBrowserEvent.bind(W(t)),t.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,t.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:p.MP,t.postRenderTimeoutHandle_,t.animationDelayKey_,t.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(W(t)),t.coordinateToPixelTransform_=(0,A.Ue)(),t.pixelToCoordinateTransform_=(0,A.Ue)(),t.frameIndex_=0,t.frameState_=null,t.previousExtent_=null,t.viewPropertyListenerKey_=null,t.viewChangeListenerKey_=null,t.layerGroupPropertyListenerKeys_=null,t.viewport_=document.createElement("div"),t.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),t.viewport_.style.position="relative",t.viewport_.style.overflow="hidden",t.viewport_.style.width="100%",t.viewport_.style.height="100%",t.overlayContainer_=document.createElement("div"),t.overlayContainer_.style.position="absolute",t.overlayContainer_.style.zIndex="0",t.overlayContainer_.style.width="100%",t.overlayContainer_.style.height="100%",t.overlayContainer_.style.pointerEvents="none",t.overlayContainer_.className="ol-overlaycontainer",t.viewport_.appendChild(t.overlayContainer_),t.overlayContainerStopEvent_=document.createElement("div"),t.overlayContainerStopEvent_.style.position="absolute",t.overlayContainerStopEvent_.style.zIndex="0",t.overlayContainerStopEvent_.style.width="100%",t.overlayContainerStopEvent_.style.height="100%",t.overlayContainerStopEvent_.style.pointerEvents="none",t.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",t.viewport_.appendChild(t.overlayContainerStopEvent_),t.mapBrowserEventHandler_=null,t.moveTolerance_=e.moveTolerance,t.keyboardEventTarget_=r.keyboardEventTarget,t.targetChangeHandlerKeys_=null,t.controls=r.controls||new i.Z,t.interactions=r.interactions||new i.Z,t.overlays_=r.overlays,t.overlayIdIndex_={},t.renderer_=null,t.postRenderFunctions_=[],t.tileQueue_=new M.Z(t.getTilePriority.bind(W(t)),t.handleTileChange_.bind(W(t))),t.addChangeListener(R.Z.LAYERGROUP,t.handleLayerGroupChanged_),t.addChangeListener(R.Z.VIEW,t.handleViewChanged_),t.addChangeListener(R.Z.SIZE,t.handleSizeChanged_),t.addChangeListener(R.Z.TARGET,t.handleTargetChanged_),t.setProperties(r.values);var n=W(t);return!e.view||e.view instanceof j.ZP||e.view.then((function(e){n.setView(new j.ZP(e))})),t.controls.addEventListener(o.Z.ADD,function(e){e.element.setMap(this)}.bind(W(t))),t.controls.addEventListener(o.Z.REMOVE,function(e){e.element.setMap(null)}.bind(W(t))),t.interactions.addEventListener(o.Z.ADD,function(e){e.element.setMap(this)}.bind(W(t))),t.interactions.addEventListener(o.Z.REMOVE,function(e){e.element.setMap(null)}.bind(W(t))),t.overlays_.addEventListener(o.Z.ADD,function(e){this.addOverlayInternal_(e.element)}.bind(W(t))),t.overlays_.addEventListener(o.Z.REMOVE,function(e){var t=e.element.getId();void 0!==t&&delete this.overlayIdIndex_[t.toString()],e.element.setMap(null)}.bind(W(t))),t.controls.forEach(function(e){e.setMap(this)}.bind(W(t))),t.interactions.forEach(function(e){e.setMap(this)}.bind(W(t))),t.overlays_.forEach(t.addOverlayInternal_.bind(W(t))),t}return t=h,(r=[{key:"createRenderer",value:function(){throw new Error("Use a map type that has a createRenderer method")}},{key:"addControl",value:function(e){this.getControls().push(e)}},{key:"addInteraction",value:function(e){this.getInteractions().push(e)}},{key:"addLayer",value:function(e){this.getLayerGroup().getLayers().push(e)}},{key:"handleLayerAdd_",value:function(e){$(e.layer,this)}},{key:"addOverlay",value:function(e){this.getOverlays().push(e)}},{key:"addOverlayInternal_",value:function(e){var t=e.getId();void 0!==t&&(this.overlayIdIndex_[t.toString()]=e),e.setMap(this)}},{key:"disposeInternal",value:function(){this.setTarget(null),U(K(h.prototype),"disposeInternal",this).call(this)}},{key:"forEachFeatureAtPixel",value:function(e,t,r){if(this.frameState_){var n=this.getCoordinateFromPixelInternal(e),i=void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance:0,o=void 0!==r.layerFilter?r.layerFilter:d.uX,a=!1!==r.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,a,t,null,o,null)}}},{key:"getFeaturesAtPixel",value:function(e,t){var r=[];return this.forEachFeatureAtPixel(e,(function(e){r.push(e)}),t),r}},{key:"getAllLayers",value:function(){var e=[];return function t(r){r.forEach((function(r){r instanceof u.Z?t(r.getLayers()):e.push(r)}))}(this.getLayers()),e}},{key:"forEachLayerAtPixel",value:function(e,t,r){if(this.frameState_){var n=r||{},i=void 0!==n.hitTolerance?n.hitTolerance:0,o=n.layerFilter||d.uX;return this.renderer_.forEachLayerAtPixel(e,this.frameState_,i,t,o)}}},{key:"hasFeatureAtPixel",value:function(e,t){if(!this.frameState_)return!1;var r=this.getCoordinateFromPixelInternal(e),n=void 0!==(t=void 0!==t?t:{}).layerFilter?t.layerFilter:d.uX,i=void 0!==t.hitTolerance?t.hitTolerance:0,o=!1!==t.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,o,n,null)}},{key:"getEventCoordinate",value:function(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}},{key:"getEventCoordinateInternal",value:function(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}},{key:"getEventPixel",value:function(e){var t=this.viewport_.getBoundingClientRect(),r="changedTouches"in e?e.changedTouches[0]:e;return[r.clientX-t.left,r.clientY-t.top]}},{key:"getTarget",value:function(){return this.get(R.Z.TARGET)}},{key:"getTargetElement",value:function(){var e=this.getTarget();return void 0!==e?"string"==typeof e?document.getElementById(e):e:null}},{key:"getCoordinateFromPixel",value:function(e){return(0,Z.lO)(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}},{key:"getCoordinateFromPixelInternal",value:function(e){var t=this.frameState_;return t?(0,A.nn)(t.pixelToCoordinateTransform,e.slice()):null}},{key:"getControls",value:function(){return this.controls}},{key:"getOverlays",value:function(){return this.overlays_}},{key:"getOverlayById",value:function(e){var t=this.overlayIdIndex_[e.toString()];return void 0!==t?t:null}},{key:"getInteractions",value:function(){return this.interactions}},{key:"getLayerGroup",value:function(){return this.get(R.Z.LAYERGROUP)}},{key:"setLayers",value:function(e){var t=this.getLayerGroup();if(e instanceof i.Z)t.setLayers(e);else{var r=t.getLayers();r.clear(),r.extend(e)}}},{key:"getLayers",value:function(){return this.getLayerGroup().getLayers()}},{key:"getLoading",value:function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,r=e.length;t<r;++t){var n=e[t].layer.getSource();if(n&&n.loading)return!0}return!1}},{key:"getPixelFromCoordinate",value:function(e){var t=(0,Z.Vs)(e,this.getView().getProjection());return this.getPixelFromCoordinateInternal(t)}},{key:"getPixelFromCoordinateInternal",value:function(e){var t=this.frameState_;return t?(0,A.nn)(t.coordinateToPixelTransform,e.slice(0,2)):null}},{key:"getRenderer",value:function(){return this.renderer_}},{key:"getSize",value:function(){return this.get(R.Z.SIZE)}},{key:"getView",value:function(){return this.get(R.Z.VIEW)}},{key:"getViewport",value:function(){return this.viewport_}},{key:"getOverlayContainer",value:function(){return this.overlayContainer_}},{key:"getOverlayContainerStopEvent",value:function(){return this.overlayContainerStopEvent_}},{key:"getOwnerDocument",value:function(){var e=this.getTargetElement();return e?e.ownerDocument:document}},{key:"getTilePriority",value:function(e,t,r,n){return(0,M.R)(this.frameState_,e,t,r,n)}},{key:"handleBrowserEvent",value:function(e,t){var r=t||e.type,n=new l.Z(r,this,e);this.handleMapBrowserEvent(n)}},{key:"handleMapBrowserEvent",value:function(e){if(this.frameState_){var t=e.originalEvent,r=t.type;if(r===f.Z.POINTERDOWN||r===a.Z.WHEEL||r===a.Z.KEYDOWN){var n=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():n,o=t.target;if(this.overlayContainerStopEvent_.contains(o)||!(i===n?n.documentElement:i).contains(o))return}if(e.frameState=this.frameState_,!1!==this.dispatchEvent(e))for(var s=this.getInteractions().getArray().slice(),u=s.length-1;u>=0;u--){var l=s[u];if(l.getMap()===this&&l.getActive()&&this.getTargetElement()&&(!l.handleEvent(e)||e.propagationStopped))break}}}},{key:"handlePostRender",value:function(){var e=this.frameState_,t=this.tileQueue_;if(!t.isEmpty()){var r=this.maxTilesLoading_,n=r;if(e){var i=e.viewHints;if(i[I.Z.ANIMATING]||i[I.Z.INTERACTING]){var o=Date.now()-e.time>8;r=o?0:8,n=o?0:2}}t.getTilesLoading()<r&&(t.reprioritize(),t.loadMoreTiles(r,n))}e&&this.hasListener(C.Z.RENDERCOMPLETE)&&!e.animate&&this.renderComplete_&&this.renderer_.dispatchRenderEvent(C.Z.RENDERCOMPLETE,e);for(var a=this.postRenderFunctions_,s=0,u=a.length;s<u;++s)a[s](this,e);a.length=0}},{key:"handleSizeChanged_",value:function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}},{key:"handleTargetChanged_",value:function(){if(this.mapBrowserEventHandler_){for(var e=0,t=this.targetChangeHandlerKeys_.length;e<t;++e)(0,y.bN)(this.targetChangeHandlerKeys_[e]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(a.Z.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(a.Z.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,G.ZF)(this.viewport_)}var r=this.getTargetElement();if(r){for(var n in r.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new S(this,this.moveTolerance_),c.Z)this.mapBrowserEventHandler_.addEventListener(c.Z[n],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(a.Z.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(a.Z.WHEEL,this.boundHandleBrowserEvent_,!!p.bM&&{passive:!1});var i=this.getOwnerDocument().defaultView,o=this.keyboardEventTarget_?this.keyboardEventTarget_:r;this.targetChangeHandlerKeys_=[(0,y.oL)(o,a.Z.KEYDOWN,this.handleBrowserEvent,this),(0,y.oL)(o,a.Z.KEYPRESS,this.handleBrowserEvent,this),(0,y.oL)(i,a.Z.RESIZE,this.updateSize,this)]}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}},{key:"handleTileChange_",value:function(){this.render()}},{key:"handleViewPropertyChanged_",value:function(){this.render()}},{key:"handleViewChanged_",value:function(){this.viewPropertyListenerKey_&&((0,y.bN)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,y.bN)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var e=this.getView();e&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,y.oL)(e,P.Z.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,y.oL)(e,a.Z.CHANGE,this.handleViewPropertyChanged_,this),e.resolveConstraints(0)),this.render()}},{key:"handleLayerGroupChanged_",value:function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(y.bN),this.layerGroupPropertyListenerKeys_=null);var e=this.getLayerGroup();e&&(this.handleLayerAdd_(new u.V("addlayer",e)),this.layerGroupPropertyListenerKeys_=[(0,y.oL)(e,P.Z.PROPERTYCHANGE,this.render,this),(0,y.oL)(e,a.Z.CHANGE,this.render,this),(0,y.oL)(e,"addlayer",this.handleLayerAdd_,this),(0,y.oL)(e,"removelayer",this.handleLayerRemove_,this)]),this.render()}},{key:"isRendered",value:function(){return!!this.frameState_}},{key:"renderSync",value:function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}},{key:"redrawText",value:function(){for(var e=this.getLayerGroup().getLayerStatesArray(),t=0,r=e.length;t<r;++t){var n=e[t].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}},{key:"render",value:function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}},{key:"removeControl",value:function(e){return this.getControls().remove(e)}},{key:"removeInteraction",value:function(e){return this.getInteractions().remove(e)}},{key:"removeLayer",value:function(e){return this.getLayerGroup().getLayers().remove(e)}},{key:"handleLayerRemove_",value:function(e){H(e.layer)}},{key:"removeOverlay",value:function(e){return this.getOverlays().remove(e)}},{key:"renderFrame_",value:function(e){var t=this,r=this.getSize(),n=this.getView(),i=this.frameState_,o=null;if(void 0!==r&&(0,N.py)(r)&&n&&n.isDef()){var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=n.getState();if(o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,D.p8)(s.center,s.resolution,s.rotation,r),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,tileQueue:this.tileQueue_,time:e,usedTiles:{},viewState:s,viewHints:a,wantedTiles:{},mapId:(0,F.sq)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){var u=isNaN(s.nextRotation)?s.rotation:s.nextRotation;o.nextExtent=(0,D.p8)(s.nextCenter,s.nextResolution,u,r)}}this.frameState_=o,this.renderer_.renderFrame(o),o&&(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),i&&(!this.previousExtent_||!(0,D.xb)(this.previousExtent_)&&!(0,D.fS)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new E.Z(T.Z.MOVESTART,this,i)),this.previousExtent_=(0,D.YN)(this.previousExtent_)),this.previousExtent_&&!o.viewHints[I.Z.ANIMATING]&&!o.viewHints[I.Z.INTERACTING]&&!(0,D.fS)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new E.Z(T.Z.MOVEEND,this,o)),(0,D.d9)(o.extent,this.previousExtent_))),this.dispatchEvent(new E.Z(T.Z.POSTRENDER,this,o)),this.renderComplete_=!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoading(),this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((function(){t.postRenderTimeoutHandle_=void 0,t.handlePostRender()}),0))}},{key:"setLayerGroup",value:function(e){var t=this.getLayerGroup();t&&this.handleLayerRemove_(new u.V("removelayer",t)),this.set(R.Z.LAYERGROUP,e)}},{key:"setSize",value:function(e){this.set(R.Z.SIZE,e)}},{key:"setTarget",value:function(e){this.set(R.Z.TARGET,e)}},{key:"setView",value:function(e){if(!e||e instanceof j.ZP)this.set(R.Z.VIEW,e);else{this.set(R.Z.VIEW,new j.ZP);var t=this;e.then((function(e){t.setView(new j.ZP(e))}))}}},{key:"updateSize",value:function(){var e=this.getTargetElement(),t=void 0;if(e){var r=getComputedStyle(e),n=e.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),i=e.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);isNaN(n)||isNaN(i)||(t=[n,i],!(0,N.py)(t)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(t),this.updateViewportSize_()}},{key:"updateViewportSize_",value:function(){var e=this.getView();if(e){var t=void 0,r=getComputedStyle(this.viewport_);r.width&&r.height&&(t=[parseInt(r.width,10),parseInt(r.height,10)]),e.setViewportSize(t)}}}])&&z(t.prototype,r),n&&z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Z)},99626:function(e,t,r){"use strict";var n=r(44090),i=r(6566),o=r(80542),a=r(99382),s=r(13193);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,n,u=f(h);function h(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var i=r||{};return(n=u.call(this)).tileCoord=e,n.state=t,n.interimTile=null,n.key="",n.transition_=void 0===i.transition?250:i.transition,n.transitionStarts_={},n.interpolate=!!i.interpolate,n}return t=h,(r=[{key:"changed",value:function(){this.dispatchEvent(i.Z.CHANGE)}},{key:"release",value:function(){}},{key:"getKey",value:function(){return this.key+"/"+this.tileCoord}},{key:"getInterimTile",value:function(){if(!this.interimTile)return this;var e=this.interimTile;do{if(e.getState()==o.Z.LOADED)return this.transition_=0,e;e=e.interimTile}while(e);return this}},{key:"refreshInterimChain",value:function(){if(this.interimTile){var e=this.interimTile,t=this;do{if(e.getState()==o.Z.LOADED){e.interimTile=null;break}e.getState()==o.Z.LOADING?t=e:e.getState()==o.Z.IDLE?t.interimTile=e.interimTile:t=e,e=t.interimTile}while(e)}}},{key:"getTileCoord",value:function(){return this.tileCoord}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){if(this.state!==o.Z.ERROR&&this.state>e)throw new Error("Tile load sequence violation");this.state=e,this.changed()}},{key:"load",value:function(){(0,a.O3)()}},{key:"getAlpha",value:function(e,t){if(!this.transition_)return 1;var r=this.transitionStarts_[e];if(r){if(-1===r)return 1}else r=t,this.transitionStarts_[e]=r;var n=t-r+1e3/60;return n>=this.transition_?1:(0,s.YQ)(n/this.transition_)}},{key:"inTransition",value:function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]}},{key:"endTransition",value:function(e){this.transition_&&(this.transitionStarts_[e]=-1)}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Z);t.Z=d},82076:function(e,t,r){"use strict";var n=r(1870),i=r(5162);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,o=l(c);function c(){return a(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"expireCache",value:function(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}},{key:"pruneExceptNewestZ",value:function(){if(0!==this.getCount()){var e=this.peekFirstKey(),t=(0,i.Ul)(e)[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove((0,i.km)(e.tileCoord)),e.release())}.bind(this))}}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=h},11196:function(e,t,r){"use strict";r.d(t,{Z:function(){return b},R:function(){return _}});var n=r(6566),i=r(90776),o=r(32275);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=1/0,u=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.priorityFunction_=t,this.keyFunction_=r,this.elements_=[],this.priorities_=[],this.queuedElements_={}}var t,r,n;return t=e,(r=[{key:"clear",value:function(){this.elements_.length=0,this.priorities_.length=0,(0,o.ZH)(this.queuedElements_)}},{key:"dequeue",value:function(){var e=this.elements_,t=this.priorities_,r=e[0];1==e.length?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r}},{key:"enqueue",value:function(e){(0,i.h)(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=s&&(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}},{key:"getCount",value:function(){return this.elements_.length}},{key:"getLeftChildIndex_",value:function(e){return 2*e+1}},{key:"getRightChildIndex_",value:function(e){return 2*e+2}},{key:"getParentIndex_",value:function(e){return e-1>>1}},{key:"heapify_",value:function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}},{key:"isEmpty",value:function(){return 0===this.elements_.length}},{key:"isKeyQueued",value:function(e){return e in this.queuedElements_}},{key:"isQueued",value:function(e){return this.isKeyQueued(this.keyFunction_(e))}},{key:"siftUp_",value:function(e){for(var t=this.elements_,r=this.priorities_,n=t.length,i=t[e],o=r[e],a=e;e<n>>1;){var s=this.getLeftChildIndex_(e),u=this.getRightChildIndex_(e),l=u<n&&r[u]<r[s]?u:s;t[e]=t[l],r[e]=r[l],e=l}t[e]=i,r[e]=o,this.siftDown_(a,e)}},{key:"siftDown_",value:function(e,t){for(var r=this.elements_,n=this.priorities_,i=r[t],o=n[t];t>e;){var a=this.getParentIndex_(t);if(!(n[a]>o))break;r[t]=r[a],n[t]=n[a],t=a}r[t]=i,n[t]=o}},{key:"reprioritize",value:function(){var e,t,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,u=i.length;for(t=0;t<u;++t)(r=n(e=i[t]))==s?delete this.queuedElements_[this.keyFunction_(e)]:(o[a]=r,i[a++]=e);i.length=a,o.length=a,this.heapify_()}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=r(80542);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=p(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,r,i,o=y(a);function a(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=o.call(this,(function(t){return e.apply(null,t)}),(function(e){return e[0].getKey()}))).boundHandleTileChange_=r.handleTileChange.bind(m(r)),r.tileChangeCallback_=t,r.tilesLoading_=0,r.tilesLoadingKeys_={},r}return t=a,(r=[{key:"enqueue",value:function(e){var t=h(g(a.prototype),"enqueue",this).call(this,e);return t&&e[0].addEventListener(n.Z.CHANGE,this.boundHandleTileChange_),t}},{key:"getTilesLoading",value:function(){return this.tilesLoading_}},{key:"handleTileChange",value:function(e){var t=e.target,r=t.getState();if(r===l.Z.LOADED||r===l.Z.ERROR||r===l.Z.EMPTY){t.removeEventListener(n.Z.CHANGE,this.boundHandleTileChange_);var i=t.getKey();i in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[i],--this.tilesLoading_),this.tileChangeCallback_()}}},{key:"loadMoreTiles",value:function(e,t){for(var r,n,i=0;this.tilesLoading_<e&&i<t&&this.getCount()>0;)n=(r=this.dequeue()[0]).getKey(),r.getState()!==l.Z.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++i,r.load())}}])&&f(t.prototype,r),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(u);function _(e,t,r,n,i){if(!e||!(r in e.wantedTiles))return s;if(!e.wantedTiles[r][t.getKey()])return s;var o=e.viewState.center,a=n[0]-o[0],u=n[1]-o[1];return 65536*Math.log(i)+Math.sqrt(a*a+u*u)/i}},74233:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{T:function(){return o}});var i=function(){function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=t,this.maxX=r,this.minY=n,this.maxY=i}var t,r,i;return t=e,(r=[{key:"contains",value:function(e){return this.containsXY(e[1],e[2])}},{key:"containsTileRange",value:function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}},{key:"containsXY",value:function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}},{key:"equals",value:function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}},{key:"extend",value:function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)}},{key:"getHeight",value:function(){return this.maxY-this.minY+1}},{key:"getSize",value:function(){return[this.getWidth(),this.getHeight()]}},{key:"getWidth",value:function(){return this.maxX-this.minX+1}},{key:"intersects",value:function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function o(e,t,r,n,o){return void 0!==o?(o.minX=e,o.maxX=t,o.minY=r,o.maxY=n,o):new i(e,t,r,n)}t.Z=i},80542:function(e,t){"use strict";t.Z={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},54354:function(e,t,r){"use strict";r.d(t,{ZP:function(){return A}});var n=r(80157),i=r(10392),o=r(81834),a=r(34642),s=r(75695),u=r(95284),l=r(12810),c=r(13837),f=r(92932),h=r(90776),p=r(32275),d=r(62990);function y(e,t,r){return function(n,i,o,a,s){if(n){var u=t?0:o[0]*i,l=t?0:o[1]*i,c=s?s[0]:0,f=s?s[1]:0,h=e[0]+u/2+c,p=e[2]-u/2+c,y=e[1]+l/2+f,v=e[3]-l/2+f;h>p&&(p=h=(p+h)/2),y>v&&(v=y=(v+y)/2);var m=(0,d.uZ)(n[0],h,p),g=(0,d.uZ)(n[1],y,v),b=30*i;return a&&r&&(m+=-b*Math.log(1+Math.max(0,h-n[0])/b)+b*Math.log(1+Math.max(0,n[0]-p)/b),g+=-b*Math.log(1+Math.max(0,y-n[1])/b)+b*Math.log(1+Math.max(0,n[1]-v)/b)),[m,g]}}}function v(e){return e}var m=r(86923),g=r(17985);function b(e,t,r,n){var i=(0,m.dz)(t)/r[0],o=(0,m.Cr)(t)/r[1];return n?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function _(e,t,r){var n=Math.min(e,t);return n*=Math.log(1+50*Math.max(0,e/t-1))/50+1,r&&(n=Math.max(n,r),n/=Math.log(1+50*Math.max(0,r/e-1))/50+1),(0,d.uZ)(n,r/2,2*t)}function w(e,t,r,n,i){return function(o,a,s,u){if(void 0!==o){var l=n?b(e,n,s,i):e;return(void 0===r||r)&&u?_(o,l,t):(0,d.uZ)(o,t,l)}}}var x=r(33589),k=r(13193),O=r(85528);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){setTimeout((function(){e(t)}),0)}function j(e){return!(e.sourceCenter&&e.targetCenter&&!(0,f.fS)(e.sourceCenter,e.targetCenter))&&(e.sourceResolution===e.targetResolution&&e.sourceRotation===e.targetRotation)}function I(e,t,r,n,i){var o=Math.cos(-i),a=Math.sin(-i),s=e[0]*o-e[1]*a,u=e[1]*o+e[0]*a;return[(s+=(t[0]/2-r[0])*n)*o-(u+=(r[1]-t[1]/2)*n)*(a=-a),u*o+s*a]}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(P,e);var t,r,n,S=R(P);function P(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),(t=S.call(this)).on,t.once,t.un;var r=(0,p.f0)({},e);return t.hints_=[0,0],t.animations_=[],t.updateAnimationKey_,t.projection_=(0,l.UQ)(r.projection,"EPSG:3857"),t.viewportSize_=[100,100],t.targetCenter_=null,t.targetResolution_,t.targetRotation_,t.nextCenter_=null,t.nextResolution_,t.nextRotation_,t.cancelAnchor_=void 0,r.center&&(r.center=(0,l.Vs)(r.center,t.projection_)),r.extent&&(r.extent=(0,l.dY)(r.extent,t.projection_)),t.applyOptions_(r),t}return t=P,(r=[{key:"applyOptions_",value:function(e){var t=(0,p.f0)({},e);for(var r in s.Z)delete t[r];this.setProperties(t,!0);var n=function(e){var t,r,n,i=28,a=2,s=void 0!==e.minZoom?e.minZoom:0,c=void 0!==e.maxZoom?e.maxZoom:i,f=void 0!==e.zoomFactor?e.zoomFactor:a,h=void 0!==e.multiWorld&&e.multiWorld,p=void 0===e.smoothResolutionConstraint||e.smoothResolutionConstraint,y=void 0!==e.showFullExtent&&e.showFullExtent,v=(0,l.UQ)(e.projection,"EPSG:3857"),x=v.getExtent(),k=e.constrainOnlyCenter,O=e.extent;if(h||O||!v.isGlobal()||(k=!1,O=x),void 0!==e.resolutions){var S=e.resolutions;r=S[s],n=void 0!==S[c]?S[c]:S[S.length-1],t=e.constrainResolution?function(e,t,r,n){return function(i,o,a,s){if(void 0!==i){var u=e[0],l=e[e.length-1],c=r?b(u,r,a,n):u;if(s)return void 0===t||t?_(i,c,l):(0,d.uZ)(i,l,c);var f=Math.min(c,i),h=Math.floor((0,g.h7)(e,f,o));return e[h]>c&&h<e.length-1?e[h+1]:e[h]}}}(S,p,!k&&O,y):w(r,n,p,!k&&O,y)}else{var E=(x?Math.max((0,m.dz)(x),(0,m.Cr)(x)):360*l.Wm[o.ZP.DEGREES]/v.getMetersPerUnit())/u.S/Math.pow(a,0),T=E/Math.pow(a,i-0);void 0!==(r=e.maxResolution)?s=0:r=E/Math.pow(f,s),void 0===(n=e.minResolution)&&(n=void 0!==e.maxZoom?void 0!==e.maxResolution?r/Math.pow(f,c):E/Math.pow(f,c):T),c=s+Math.floor(Math.log(r/n)/Math.log(f)),n=r/Math.pow(f,c-s),t=e.constrainResolution?function(e,t,r,n,i,o){return function(a,s,u,l){if(void 0!==a){var c=i?b(t,i,u,o):t,f=void 0!==r?r:0;if(l)return void 0===n||n?_(a,c,f):(0,d.uZ)(a,f,c);var h=Math.ceil(Math.log(t/c)/Math.log(e)-1e-9),p=-s*(.5-1e-9)+.5,y=Math.min(c,a),v=Math.floor(Math.log(t/y)/Math.log(e)+p),m=Math.max(h,v),g=t/Math.pow(e,m);return(0,d.uZ)(g,f,c)}}}(f,r,n,p,!k&&O,y):w(r,n,p,!k&&O,y)}return{constraint:t,maxResolution:r,minResolution:n,minZoom:s,zoomFactor:f}}(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=n.minZoom;var i=function(e){if(void 0!==e.extent){var t=void 0===e.smoothExtentConstraint||e.smoothExtentConstraint;return y(e.extent,e.constrainOnlyCenter,t)}var r=(0,l.UQ)(e.projection,"EPSG:3857");if(!0!==e.multiWorld&&r.isGlobal()){var n=r.getExtent().slice();return n[0]=-1/0,n[2]=1/0,y(n,!1,!1)}return v}(e),a=n.constraint,c=function(e){if(void 0===e.enableRotation||e.enableRotation){var t=e.constrainRotation;return void 0===t||!0===t?(0,x.Gw)():!1===t?x.YP:"number"==typeof t?(0,x.gE)(t):x.YP}return x.h$}(e);this.constraints_={center:i,resolution:a,rotation:c},this.setRotation(void 0!==e.rotation?e.rotation:0),this.setCenterInternal(void 0!==e.center?e.center:null),void 0!==e.resolution?this.setResolution(e.resolution):void 0!==e.zoom&&this.setZoom(e.zoom)}},{key:"padding",get:function(){return this.padding_},set:function(e){var t=this.padding_;this.padding_=e;var r=this.getCenter();if(r){var n=e||[0,0,0,0];t=t||[0,0,0,0];var i=this.getResolution(),o=i/2*(n[3]-t[3]+t[1]-n[1]),a=i/2*(n[0]-t[0]+t[2]-n[2]);this.setCenterInternal([r[0]+o,r[1]-a])}}},{key:"getUpdatedOptions_",value:function(e){var t=this.getProperties();return void 0!==t.resolution?t.resolution=this.getResolution():t.zoom=this.getZoom(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),(0,p.f0)({},t,e)}},{key:"animate",value:function(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var t=new Array(arguments.length),r=0;r<t.length;++r){var n=arguments[r];n.center&&((n=(0,p.f0)({},n)).center=(0,l.Vs)(n.center,this.getProjection())),n.anchor&&((n=(0,p.f0)({},n)).anchor=(0,l.Vs)(n.anchor,this.getProjection())),t[r]=n}this.animateInternal.apply(this,t)}},{key:"animateInternal",value:function(e){var t,r=arguments.length;r>1&&"function"==typeof arguments[r-1]&&(t=arguments[r-1],--r);for(var n=0;n<r&&!this.isDef();++n){var i=arguments[n];i.center&&this.setCenterInternal(i.center),void 0!==i.zoom?this.setZoom(i.zoom):i.resolution&&this.setResolution(i.resolution),void 0!==i.rotation&&this.setRotation(i.rotation)}if(n!==r){for(var o=Date.now(),s=this.targetCenter_.slice(),u=this.targetResolution_,l=this.targetRotation_,c=[];n<r;++n){var f=arguments[n],h={start:o,complete:!1,anchor:f.anchor,duration:void 0!==f.duration?f.duration:1e3,easing:f.easing||k.rd,callback:t};if(f.center&&(h.sourceCenter=s,h.targetCenter=f.center.slice(),s=h.targetCenter),void 0!==f.zoom?(h.sourceResolution=u,h.targetResolution=this.getResolutionForZoom(f.zoom),u=h.targetResolution):f.resolution&&(h.sourceResolution=u,h.targetResolution=f.resolution,u=h.targetResolution),void 0!==f.rotation){h.sourceRotation=l;var p=(0,d.$W)(f.rotation-l+Math.PI,2*Math.PI)-Math.PI;h.targetRotation=l+p,l=h.targetRotation}j(h)?h.complete=!0:o+=h.duration,c.push(h)}this.animations_.push(c),this.setHint(a.Z.ANIMATING,1),this.updateAnimations_()}else t&&M(t,!0)}},{key:"getAnimating",value:function(){return this.hints_[a.Z.ANIMATING]>0}},{key:"getInteracting",value:function(){return this.hints_[a.Z.INTERACTING]>0}},{key:"cancelAnimations",value:function(){var e;this.setHint(a.Z.ANIMATING,-this.hints_[a.Z.ANIMATING]);for(var t=0,r=this.animations_.length;t<r;++t){var n=this.animations_[t];if(n[0].callback&&M(n[0].callback,!1),!e)for(var i=0,o=n.length;i<o;++i){var s=n[i];if(!s.complete){e=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}},{key:"updateAnimations_",value:function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var e=Date.now(),t=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,o=0,s=n.length;o<s;++o){var u=n[o];if(!u.complete){var l=e-u.start,c=u.duration>0?l/u.duration:1;c>=1?(u.complete=!0,c=1):i=!1;var f=u.easing(c);if(u.sourceCenter){var h=u.sourceCenter[0],p=u.sourceCenter[1],y=u.targetCenter[0],v=u.targetCenter[1];this.nextCenter_=u.targetCenter;var m=h+f*(y-h),g=p+f*(v-p);this.targetCenter_=[m,g]}if(u.sourceResolution&&u.targetResolution){var b=1===f?u.targetResolution:u.sourceResolution+f*(u.targetResolution-u.sourceResolution);if(u.anchor){var _=this.getViewportSize_(this.getRotation()),w=this.constraints_.resolution(b,0,_,!0);this.targetCenter_=this.calculateCenterZoom(w,u.anchor)}this.nextResolution_=u.targetResolution,this.targetResolution_=b,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var x=1===f?(0,d.$W)(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+f*(u.targetRotation-u.sourceRotation);if(u.anchor){var k=this.constraints_.rotation(x,!0);this.targetCenter_=this.calculateCenterRotate(k,u.anchor)}this.nextRotation_=u.targetRotation,this.targetRotation_=x}if(this.applyTargetState_(!0),t=!0,!u.complete)break}}if(i){this.animations_[r]=null,this.setHint(a.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var O=n[0].callback;O&&M(O,!0)}}this.animations_=this.animations_.filter(Boolean),t&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}}},{key:"calculateCenterRotate",value:function(e,t){var r,n=this.getCenterInternal();return void 0!==n&&(r=[n[0]-t[0],n[1]-t[1]],(0,f.U1)(r,e-this.getRotation()),(0,f.IH)(r,t)),r}},{key:"calculateCenterZoom",value:function(e,t){var r,n=this.getCenterInternal(),i=this.getResolution();return void 0!==n&&void 0!==i&&(r=[t[0]-e*(t[0]-n[0])/i,t[1]-e*(t[1]-n[1])/i]),r}},{key:"getViewportSize_",value:function(e){var t=this.viewportSize_;if(e){var r=t[0],n=t[1];return[Math.abs(r*Math.cos(e))+Math.abs(n*Math.sin(e)),Math.abs(r*Math.sin(e))+Math.abs(n*Math.cos(e))]}return t}},{key:"setViewportSize",value:function(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}},{key:"getCenter",value:function(){var e=this.getCenterInternal();return e?(0,l.lO)(e,this.getProjection()):e}},{key:"getCenterInternal",value:function(){return this.get(s.Z.CENTER)}},{key:"getConstraints",value:function(){return this.constraints_}},{key:"getConstrainResolution",value:function(){return this.get("constrainResolution")}},{key:"getHints",value:function(e){return void 0!==e?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}},{key:"calculateExtent",value:function(e){var t=this.calculateExtentInternal(e);return(0,l.Fj)(t,this.getProjection())}},{key:"calculateExtentInternal",value:function(e){var t=e||this.getViewportSizeMinusPadding_(),r=this.getCenterInternal();(0,h.h)(r,1);var n=this.getResolution();(0,h.h)(void 0!==n,2);var i=this.getRotation();return(0,h.h)(void 0!==i,3),(0,m.p8)(r,n,i,t)}},{key:"getMaxResolution",value:function(){return this.maxResolution_}},{key:"getMinResolution",value:function(){return this.minResolution_}},{key:"getMaxZoom",value:function(){return this.getZoomForResolution(this.minResolution_)}},{key:"setMaxZoom",value:function(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}},{key:"getMinZoom",value:function(){return this.getZoomForResolution(this.maxResolution_)}},{key:"setMinZoom",value:function(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}},{key:"setConstrainResolution",value:function(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}},{key:"getProjection",value:function(){return this.projection_}},{key:"getResolution",value:function(){return this.get(s.Z.RESOLUTION)}},{key:"getResolutions",value:function(){return this.resolutions_}},{key:"getResolutionForExtent",value:function(e,t){return this.getResolutionForExtentInternal((0,l.dY)(e,this.getProjection()),t)}},{key:"getResolutionForExtentInternal",value:function(e,t){var r=t||this.getViewportSizeMinusPadding_(),n=(0,m.dz)(e)/r[0],i=(0,m.Cr)(e)/r[1];return Math.max(n,i)}},{key:"getResolutionForValueFunction",value:function(e){var t=e||2,r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/Math.log(t);return function(e){return r/Math.pow(t,e*i)}}},{key:"getRotation",value:function(){return this.get(s.Z.ROTATION)}},{key:"getValueForResolutionFunction",value:function(e){var t=Math.log(e||2),r=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(r/n)/t;return function(e){return Math.log(r/e)/t/i}}},{key:"getViewportSizeMinusPadding_",value:function(e){var t=this.getViewportSize_(e),r=this.padding_;return r&&(t=[t[0]-r[1]-r[3],t[1]-r[0]-r[2]]),t}},{key:"getState",value:function(){var e=this.getProjection(),t=this.getResolution(),r=this.getRotation(),n=this.getCenterInternal(),i=this.padding_;if(i){var o=this.getViewportSizeMinusPadding_();n=I(n,this.getViewportSize_(),[o[0]/2+i[3],o[1]/2+i[0]],t,r)}return{center:n.slice(0),projection:void 0!==e?e:null,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}}},{key:"getZoom",value:function(){var e,t=this.getResolution();return void 0!==t&&(e=this.getZoomForResolution(t)),e}},{key:"getZoomForResolution",value:function(e){var t,r,n=this.minZoom_||0;if(this.resolutions_){var i=(0,g.h7)(this.resolutions_,e,1);n=i,t=this.resolutions_[i],r=i==this.resolutions_.length-1?2:t/this.resolutions_[i+1]}else t=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(t/e)/Math.log(r)}},{key:"getResolutionForZoom",value:function(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var t=(0,d.uZ)(Math.floor(e),0,this.resolutions_.length-2),r=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/Math.pow(r,(0,d.uZ)(e-t,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}},{key:"fit",value:function(e,t){var r;if((0,h.h)(Array.isArray(e)||"function"==typeof e.getSimplifiedGeometry,24),Array.isArray(e)){(0,h.h)(!(0,m.xb)(e),25);var n=(0,l.dY)(e,this.getProjection());r=(0,O.oJ)(n)}else if(e.getType()===i.Z.CIRCLE){var o=(0,l.dY)(e.getExtent(),this.getProjection());(r=(0,O.oJ)(o)).rotate(this.getRotation(),(0,m.qg)(o))}else{var a=(0,l.Cs)();r=a?e.clone().transform(a,this.getProjection()):e}this.fitInternal(r,t)}},{key:"rotatedExtentForGeometry",value:function(e){for(var t=this.getRotation(),r=Math.cos(t),n=Math.sin(-t),i=e.getFlatCoordinates(),o=e.getStride(),a=1/0,s=1/0,u=-1/0,l=-1/0,c=0,f=i.length;c<f;c+=o){var h=i[c]*r-i[c+1]*n,p=i[c]*n+i[c+1]*r;a=Math.min(a,h),s=Math.min(s,p),u=Math.max(u,h),l=Math.max(l,p)}return[a,s,u,l]}},{key:"fitInternal",value:function(e,t){var r=t||{},n=r.size;n||(n=this.getViewportSizeMinusPadding_());var i,o=void 0!==r.padding?r.padding:[0,0,0,0],a=void 0!==r.nearest&&r.nearest;i=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.getResolutionForZoom(r.maxZoom):0;var s=this.rotatedExtentForGeometry(e),u=this.getResolutionForExtentInternal(s,[n[0]-o[1]-o[3],n[1]-o[0]-o[2]]);u=isNaN(u)?i:Math.max(u,i),u=this.getConstrainedResolution(u,a?0:1);var l=this.getRotation(),f=Math.sin(l),h=Math.cos(l),p=(0,m.qg)(s);p[0]+=(o[1]-o[3])/2*u,p[1]+=(o[0]-o[2])/2*u;var d=p[0]*h-p[1]*f,y=p[1]*h+p[0]*f,v=this.getConstrainedCenter([d,y],u),g=r.callback?r.callback:c.Zn;void 0!==r.duration?this.animateInternal({resolution:u,center:v,duration:r.duration,easing:r.easing},g):(this.targetResolution_=u,this.targetCenter_=v,this.applyTargetState_(!1,!0),M(g,!0))}},{key:"centerOn",value:function(e,t,r){this.centerOnInternal((0,l.Vs)(e,this.getProjection()),t,r)}},{key:"centerOnInternal",value:function(e,t,r){this.setCenterInternal(I(e,t,r,this.getResolution(),this.getRotation()))}},{key:"calculateCenterShift",value:function(e,t,r,n){var i,o=this.padding_;if(o&&e){var a=this.getViewportSizeMinusPadding_(-r),s=I(e,n,[a[0]/2+o[3],a[1]/2+o[0]],t,r);i=[e[0]-s[0],e[1]-s[1]]}return i}},{key:"isDef",value:function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}},{key:"adjustCenter",value:function(e){var t=(0,l.lO)(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])}},{key:"adjustCenterInternal",value:function(e){var t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])}},{key:"adjustResolution",value:function(e,t){var r=t&&(0,l.Vs)(t,this.getProjection());this.adjustResolutionInternal(e,r)}},{key:"adjustResolutionInternal",value:function(e,t){var r=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,n,r);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()}},{key:"adjustZoom",value:function(e,t){this.adjustResolution(Math.pow(this.zoomFactor_,-e),t)}},{key:"adjustRotation",value:function(e,t){t&&(t=(0,l.Vs)(t,this.getProjection())),this.adjustRotationInternal(e,t)}},{key:"adjustRotationInternal",value:function(e,t){var r=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+e,r);t&&(this.targetCenter_=this.calculateCenterRotate(n,t)),this.targetRotation_+=e,this.applyTargetState_()}},{key:"setCenter",value:function(e){this.setCenterInternal((0,l.Vs)(e,this.getProjection()))}},{key:"setCenterInternal",value:function(e){this.targetCenter_=e,this.applyTargetState_()}},{key:"setHint",value:function(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]}},{key:"setResolution",value:function(e){this.targetResolution_=e,this.applyTargetState_()}},{key:"setRotation",value:function(e){this.targetRotation_=e,this.applyTargetState_()}},{key:"setZoom",value:function(e){this.setResolution(this.getResolutionForZoom(e))}},{key:"applyTargetState_",value:function(e,t){var r=this.getAnimating()||this.getInteracting()||t,n=this.constraints_.rotation(this.targetRotation_,r),i=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,i,r),a=this.constraints_.center(this.targetCenter_,o,i,r,this.calculateCenterShift(this.targetCenter_,o,n,i));this.get(s.Z.ROTATION)!==n&&this.set(s.Z.ROTATION,n),this.get(s.Z.RESOLUTION)!==o&&(this.set(s.Z.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.Z.CENTER)&&(0,f.fS)(this.get(s.Z.CENTER),a)||this.set(s.Z.CENTER,a),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}},{key:"resolveConstraints",value:function(e,t,r){var n=void 0!==e?e:200,i=t||0,o=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(o),s=this.constraints_.resolution(this.targetResolution_,i,a),u=this.constraints_.center(this.targetCenter_,s,a,!1,this.calculateCenterShift(this.targetCenter_,s,o,a));if(0===n&&!this.cancelAnchor_)return this.targetResolution_=s,this.targetRotation_=o,this.targetCenter_=u,void this.applyTargetState_();var l=r||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===s&&this.getRotation()===o&&this.getCenterInternal()&&(0,f.fS)(this.getCenterInternal(),u)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:o,center:u,resolution:s,duration:n,easing:k.Vv,anchor:l}))}},{key:"beginInteraction",value:function(){this.resolveConstraints(0),this.setHint(a.Z.INTERACTING,1)}},{key:"endInteraction",value:function(e,t,r){var n=r&&(0,l.Vs)(r,this.getProjection());this.endInteractionInternal(e,t,n)}},{key:"endInteractionInternal",value:function(e,t,r){this.setHint(a.Z.INTERACTING,-1),this.resolveConstraints(e,t,r)}},{key:"getConstrainedCenter",value:function(e,t){var r=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),r)}},{key:"getConstrainedZoom",value:function(e,t){var r=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(r,t))}},{key:"getConstrainedResolution",value:function(e,t){var r=t||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,r,n)}}])&&E(t.prototype,r),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),P}(n.Z)},34642:function(e,t){"use strict";t.Z={ANIMATING:0,INTERACTING:1}},75695:function(e,t){"use strict";t.Z={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},17985:function(e,t,r){"use strict";function n(e,t,r){for(var n,o,a=r||i,s=0,u=e.length,l=!1;s<u;)(o=+a(e[n=s+(u-s>>1)],t))<0?s=n+1:(u=n,l=!o);return l?s:~s}function i(e,t){return e>t?1:e<t?-1:0}function o(e,t){return e.indexOf(t)>=0}function a(e,t,r){var n,i=e.length;if(e[0]<=t)return 0;if(t<=e[i-1])return i-1;if(r>0){for(n=1;n<i;++n)if(e[n]<t)return n-1}else if(r<0){for(n=1;n<i;++n)if(e[n]<=t)return n}else for(n=1;n<i;++n){if(e[n]==t)return n;if(e[n]<t)return"function"==typeof r?r(t,e[n-1],e[n])>0?n-1:n:e[n-1]-t<t-e[n]?n-1:n}return i-1}function s(e,t,r){for(;t<r;){var n=e[t];e[t]=e[r],e[r]=n,++t,--r}}function u(e,t){for(var r=Array.isArray(t)?t:[t],n=r.length,i=0;i<n;i++)e[e.length]=r[i]}function l(e,t){for(var r,n=e.length>>>0,i=0;i<n;i++)if(t(r=e[i],i,e))return r;return null}function c(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function f(e,t){var r;return!e.every((function(n,i){return r=i,!t(n,i,e)}))?r:-1}function h(e,t,r){var n=t||i;return e.every((function(t,i){if(0===i)return!0;var o=n(e[i-1],t);return!(o>0||r&&0===o)}))}r.d(t,{ry:function(){return n},kK:function(){return i},q9:function(){return o},h7:function(){return a},FZ:function(){return s},l7:function(){return u},sE:function(){return l},fS:function(){return c},cx:function(){return f},pT:function(){return h}})},90776:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(7098);function i(e,t){if(!e)throw new n.Z(t)}},78699:function(e,t,r){"use strict";r.d(t,{XC:function(){return s},mL:function(){return f},_2:function(){return h},BB:function(){return d},e1:function(){return y}});var n=r(90776),i=r(62990),o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(e){return"string"==typeof e?e:d(e)}function u(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var r=getComputedStyle(t).color;return document.body.removeChild(t),r}return""}var l,c,f=(l={},c=0,function(e){var t;if(l.hasOwnProperty(e))t=l[e];else{if(c>=1024){var r=0;for(var i in l)0==(3&r++)&&(delete l[i],--c)}t=function(e){var t,r,i,s,l;if(a.exec(e)&&(e=u(e)),o.exec(e)){var c,f=e.length-1;c=f<=4?1:2;var h=4===f||8===f;t=parseInt(e.substr(1+0*c,c),16),r=parseInt(e.substr(1+1*c,c),16),i=parseInt(e.substr(1+2*c,c),16),s=h?parseInt(e.substr(1+3*c,c),16):255,1==c&&(t=(t<<4)+t,r=(r<<4)+r,i=(i<<4)+i,h&&(s=(s<<4)+s)),l=[t,r,i,s/255]}else 0==e.indexOf("rgba(")?p(l=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((l=e.slice(4,-1).split(",").map(Number)).push(1),p(l)):(0,n.h)(!1,14);return l}(e),l[e]=t,++c}return t});function h(e){return Array.isArray(e)?e:f(e)}function p(e){return e[0]=(0,i.uZ)(e[0]+.5|0,0,255),e[1]=(0,i.uZ)(e[1]+.5|0,0,255),e[2]=(0,i.uZ)(e[2]+.5|0,0,255),e[3]=(0,i.uZ)(e[3],0,1),e}function d(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var r=e[1];r!=(0|r)&&(r=r+.5|0);var n=e[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+r+","+n+","+(void 0===e[3]?1:Math.round(100*e[3])/100)+")"}function y(e){return a.test(e)&&(e=u(e)),o.test(e)||0===e.indexOf("rgba(")||0===e.indexOf("rgb(")}},65578:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});var n=r(78699);function i(e){return Array.isArray(e)?(0,n.BB)(e):e}},45830:function(e,t,r){"use strict";r.d(t,{ce:function(){return S}});var n=r(17574),i=r(25898),o=r(32685),a=r(6566),s=r(48736),u=r(13193);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(o,e);var t,r,n,i=h(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{};t=i.call(this,{element:document.createElement("div"),render:r.render,target:r.target});var n=void 0!==r.className?r.className:"ol-rotate",u=void 0!==r.label?r.label:"⇧",l=void 0!==r.compassClassName?r.compassClassName:"ol-compass";t.label_=null,"string"==typeof u?(t.label_=document.createElement("span"),t.label_.className=l,t.label_.textContent=u):(t.label_=u,t.label_.classList.add(l));var c=r.tipLabel?r.tipLabel:"Reset rotation",f=document.createElement("button");f.className=n+"-reset",f.setAttribute("type","button"),f.title=c,f.appendChild(t.label_),f.addEventListener(a.Z.CLICK,t.handleClick_.bind(d(t)),!1);var h=n+" "+s.XV+" "+s.hg,p=t.element;return p.className=h,p.appendChild(f),t.callResetNorth_=r.resetNorth?r.resetNorth:void 0,t.duration_=void 0!==r.duration?r.duration:250,t.autoHide_=void 0===r.autoHide||r.autoHide,t.rotation_=void 0,t.autoHide_&&t.element.classList.add(s.oj),t}return t=o,(r=[{key:"handleClick_",value:function(e){e.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}},{key:"resetNorth_",value:function(){var e=this.getMap().getView();if(e){var t=e.getRotation();void 0!==t&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:u.Vv}):e.setRotation(0))}}},{key:"render",value:function(e){var t=e.frameState;if(t){var r=t.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains(s.oj);i||0!==r?i&&0!==r&&this.element.classList.remove(s.oj):this.element.classList.add(s.oj)}this.label_.style.transform=n}this.rotation_=r}}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Z);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(o,e);var t,r,n,i=_(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{};t=i.call(this,{element:document.createElement("div"),target:r.target});var n=void 0!==r.className?r.className:"ol-zoom",u=void 0!==r.delta?r.delta:1,l=void 0!==r.zoomInClassName?r.zoomInClassName:n+"-in",c=void 0!==r.zoomOutClassName?r.zoomOutClassName:n+"-out",f=void 0!==r.zoomInLabel?r.zoomInLabel:"+",h=void 0!==r.zoomOutLabel?r.zoomOutLabel:"–",p=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",d=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",y=document.createElement("button");y.className=l,y.setAttribute("type","button"),y.title=p,y.appendChild("string"==typeof f?document.createTextNode(f):f),y.addEventListener(a.Z.CLICK,t.handleClick_.bind(x(t),u),!1);var v=document.createElement("button");v.className=c,v.setAttribute("type","button"),v.title=d,v.appendChild("string"==typeof h?document.createTextNode(h):h),v.addEventListener(a.Z.CLICK,t.handleClick_.bind(x(t),-u),!1);var m=n+" "+s.XV+" "+s.hg,g=t.element;return g.className=m,g.appendChild(y),g.appendChild(v),t.duration_=void 0!==r.duration?r.duration:250,t}return t=o,(r=[{key:"handleClick_",value:function(e,t){t.preventDefault(),this.zoomByDelta_(e)}},{key:"zoomByDelta_",value:function(e){var t=this.getMap().getView();if(t){var r=t.getZoom();if(void 0!==r){var n=t.getConstrainedZoom(r+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:n,duration:this.duration_,easing:u.Vv})):t.setZoom(n)}}}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Z);function S(e){var t=e||{},r=new i.Z;return(void 0===t.zoom||t.zoom)&&r.push(new O(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&r.push(new v(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&r.push(new n.Z(t.attributionOptions)),r}},17574:function(e,t,r){"use strict";var n=r(32685),i=r(6566),o=r(48736),a=r(17985),s=r(2320),u=r(33716);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(p,e);var t,r,n,l=h(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r=e||{};(t=l.call(this,{element:document.createElement("div"),render:r.render,target:r.target})).ulElement_=document.createElement("ul"),t.collapsed_=void 0===r.collapsed||r.collapsed,t.userCollapsed_=t.collapsed_,t.overrideCollapsible_=void 0!==r.collapsible,t.collapsible_=void 0===r.collapsible||r.collapsible,t.collapsible_||(t.collapsed_=!1);var n=void 0!==r.className?r.className:"ol-attribution",a=void 0!==r.tipLabel?r.tipLabel:"Attributions",s=void 0!==r.expandClassName?r.expandClassName:n+"-expand",u=void 0!==r.collapseLabel?r.collapseLabel:"›",c=void 0!==r.collapseClassName?r.collapseClassName:n+"-collpase";"string"==typeof u?(t.collapseLabel_=document.createElement("span"),t.collapseLabel_.textContent=u,t.collapseLabel_.className=c):t.collapseLabel_=u;var f=void 0!==r.label?r.label:"i";"string"==typeof f?(t.label_=document.createElement("span"),t.label_.textContent=f,t.label_.className=s):t.label_=f;var h=t.collapsible_&&!t.collapsed_?t.collapseLabel_:t.label_;t.toggleButton_=document.createElement("button"),t.toggleButton_.setAttribute("type","button"),t.toggleButton_.setAttribute("aria-expanded",String(!t.collapsed_)),t.toggleButton_.title=a,t.toggleButton_.appendChild(h),t.toggleButton_.addEventListener(i.Z.CLICK,t.handleClick_.bind(d(t)),!1);var y=n+" "+o.XV+" "+o.hg+(t.collapsed_&&t.collapsible_?" "+o.hN:"")+(t.collapsible_?"":" ol-uncollapsible"),v=t.element;return v.className=y,v.appendChild(t.toggleButton_),v.appendChild(t.ulElement_),t.renderedAttributions_=[],t.renderedVisible_=!0,t}return t=p,(r=[{key:"collectSourceAttributions_",value:function(e){for(var t={},r=[],n=!0,i=e.layerStatesArray,o=0,a=i.length;o<a;++o){var u=i[o];if((0,s.j)(u,e.viewState)){var l=u.layer.getSource();if(l){var c=l.getAttributions();if(c){var f=c(e);if(f)if(n=n&&!1!==l.getAttributionsCollapsible(),Array.isArray(f))for(var h=0,p=f.length;h<p;++h)f[h]in t||(r.push(f[h]),t[f[h]]=!0);else f in t||(r.push(f),t[f]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(n),r}},{key:"updateElement_",value:function(e){if(e){var t=this.collectSourceAttributions_(e),r=t.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!(0,a.fS)(t,this.renderedAttributions_)){(0,u.ep)(this.ulElement_);for(var n=0,i=t.length;n<i;++n){var o=document.createElement("li");o.innerHTML=t[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=t}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)}},{key:"handleClick_",value:function(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}},{key:"handleToggle_",value:function(){this.element.classList.toggle(o.hN),this.collapsed_?(0,u.$H)(this.collapseLabel_,this.label_):(0,u.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}},{key:"getCollapsible",value:function(){return this.collapsible_}},{key:"setCollapsible",value:function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}},{key:"setCollapsed",value:function(e){this.userCollapsed_=e,this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}},{key:"getCollapsed",value:function(){return this.collapsed_}},{key:"render",value:function(e){this.updateElement_(e.frameState)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(n.Z);t.Z=v},32685:function(e,t,r){"use strict";var n=r(80157),i=r(5395),o=r(13837),a=r(12016),s=r(33716);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=f(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(f,e);var t,r,n,u=p(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),t=u.call(this);var r=e.element;return!r||e.target||r.style.pointerEvents||(r.style.pointerEvents="auto"),t.element=r||null,t.target_=null,t.map_=null,t.listenerKeys=[],e.render&&(t.render=e.render),e.target&&t.setTarget(e.target),t}return t=f,(r=[{key:"disposeInternal",value:function(){(0,s.ZF)(this.element),c(y(f.prototype),"disposeInternal",this).call(this)}},{key:"getMap",value:function(){return this.map_}},{key:"setMap",value:function(e){this.map_&&(0,s.ZF)(this.element);for(var t=0,r=this.listenerKeys.length;t<r;++t)(0,a.bN)(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=e,this.map_&&((this.target_?this.target_:e.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==o.Zn&&this.listenerKeys.push((0,a.oL)(e,i.Z.POSTRENDER,this.render,this)),e.render())}},{key:"render",value:function(e){}},{key:"setTarget",value:function(e){this.target_="string"==typeof e?document.getElementById(e):e}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);t.Z=v},45486:function(e,t,r){"use strict";var n=r(32685),i=r(6566),o=r(97014),a=r(48736),s=r(12016),u=r(33716);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=d(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],w="enterfullscreen",x="leavefullscreen",k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(f,e);var t,r,n,l=v(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var r=e||{};(t=l.call(this,{element:document.createElement("div"),target:r.target})).on,t.once,t.un,t.cssClassName_=void 0!==r.className?r.className:"ol-full-screen",t.documentListeners_=[],t.activeClassName_=void 0!==r.activeClassName?r.activeClassName.split(" "):[t.cssClassName_+"-true"],t.inactiveClassName_=void 0!==r.inactiveClassName?r.inactiveClassName.split(" "):[t.cssClassName_+"-false"];var n=void 0!==r.label?r.label:"⤢";t.labelNode_="string"==typeof n?document.createTextNode(n):n;var o=void 0!==r.labelActive?r.labelActive:"×";t.labelActiveNode_="string"==typeof o?document.createTextNode(o):o,t.button_=document.createElement("button");var s=r.tipLabel?r.tipLabel:"Toggle full-screen";return t.button_.setAttribute("type","button"),t.button_.title=s,t.button_.appendChild(t.labelNode_),t.button_.addEventListener(i.Z.CLICK,t.handleClick_.bind(g(t)),!1),t.element.className="".concat(t.cssClassName_," ").concat(a.XV," ").concat(a.hg),t.element.appendChild(t.button_),t.keys_=void 0!==r.keys&&r.keys,t.source_=r.source,t.isInFullscreen_=!1,t.boundHandleMapTargetChange_=t.handleMapTargetChange_.bind(g(t)),t}return t=f,(r=[{key:"handleClick_",value:function(e){e.preventDefault(),this.handleFullScreen_()}},{key:"handleFullScreen_",value:function(){var e=this.getMap();if(e){var t,r=e.getOwnerDocument();O(r)&&(S(r)?function(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}(r):(t=this.source_?"string"==typeof this.source_?r.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?function(e){e.webkitRequestFullscreen?e.webkitRequestFullscreen():E(e)}(t):E(t)))}}},{key:"handleFullScreenChange_",value:function(){var e=this.getMap();if(e){var t=this.isInFullscreen_;this.isInFullscreen_=S(e.getOwnerDocument()),t!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?((0,u.$H)(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(w)):((0,u.$H)(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(x)),e.updateSize())}}},{key:"setClassName_",value:function(e,t){var r,n,i,o=this.activeClassName_,a=this.inactiveClassName_,s=t?o:a;(r=e.classList).remove.apply(r,c(o)),(n=e.classList).remove.apply(n,c(a)),(i=e.classList).add.apply(i,c(s))}},{key:"setMap",value:function(e){var t=this.getMap();t&&t.removeChangeListener(o.Z.TARGET,this.boundHandleMapTargetChange_),p(b(f.prototype),"setMap",this).call(this,e),this.handleMapTargetChange_(),e&&e.addChangeListener(o.Z.TARGET,this.boundHandleMapTargetChange_)}},{key:"handleMapTargetChange_",value:function(){for(var e=this.documentListeners_,t=0,r=e.length;t<r;++t)(0,s.bN)(e[t]);e.length=0;var n=this.getMap();if(n){var i=n.getOwnerDocument();O(i)?this.element.classList.remove(a.Qi):this.element.classList.add(a.Qi);for(var o=0,u=_.length;o<u;++o)e.push((0,s.oL)(i,_[o],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);function O(e){var t=e.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&e.msFullscreenEnabled||t.requestFullscreen&&e.fullscreenEnabled)}function S(e){return!!(e.webkitIsFullScreen||e.msFullscreenElement||e.fullscreenElement)}function E(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}t.Z=k},7145:function(e,t,r){"use strict";var n=r(32685),i=r(33515),o=r(12810),a=r(12016);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=c(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="projection",v="coordinateFormat",m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(c,e);var t,r,n,s=h(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{},n=document.createElement("div");n.className=void 0!==r.className?r.className:"ol-mouse-position",(t=s.call(this,{element:n,render:r.render,target:r.target})).on,t.once,t.un,t.addChangeListener(y,t.handleProjectionChanged_),r.coordinateFormat&&t.setCoordinateFormat(r.coordinateFormat),r.projection&&t.setProjection(r.projection);var i=!0,o=" ";return"undefinedHTML"in r?(void 0!==r.undefinedHTML&&(o=r.undefinedHTML),i=!!o):"placeholder"in r&&(!1===r.placeholder?i=!1:o=String(r.placeholder)),t.placeholder_=o,t.renderOnMouseOut_=i,t.renderedHTML_=n.innerHTML,t.mapProjection_=null,t.transform_=null,t}return t=c,(r=[{key:"handleProjectionChanged_",value:function(){this.transform_=null}},{key:"getCoordinateFormat",value:function(){return this.get(v)}},{key:"getProjection",value:function(){return this.get(y)}},{key:"handleMouseMove",value:function(e){var t=this.getMap();this.updateHTML_(t.getEventPixel(e))}},{key:"handleMouseOut",value:function(e){this.updateHTML_(null)}},{key:"setMap",value:function(e){if(l(d(c.prototype),"setMap",this).call(this,e),e){var t=e.getViewport();this.listenerKeys.push((0,a.oL)(t,i.Z.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push((0,a.oL)(t,i.Z.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}}},{key:"setCoordinateFormat",value:function(e){this.set(v,e)}},{key:"setProjection",value:function(e){this.set(y,(0,o.U2)(e))}},{key:"updateHTML_",value:function(e){var t=this.placeholder_;if(e&&this.mapProjection_){if(!this.transform_){var r=this.getProjection();this.transform_=r?(0,o.WO)(this.mapProjection_,r):o.gD}var n=this.getMap().getCoordinateFromPixelInternal(e);if(n){var i=(0,o.Cs)();i&&(this.transform_=(0,o.WO)(this.mapProjection_,i)),this.transform_(n,n);var a=this.getCoordinateFormat();t=a?a(n):n.toString()}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)}},{key:"render",value:function(e){var t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=m},52021:function(e,t,r){"use strict";var n=r(58265),i=r(32685),o=r(6566),a=r(5395),s=r(97014),u=r(79937),l=r(70492),c=r(14681),f=r(40297),h=r(54354),p=r(75695),d=r(48736),y=r(86923),v=r(12016),m=r(85528),g=r(33716);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=w(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t,r){return t&&k(e.prototype,t),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return R(this,r)}}function R(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=.75,j=.1,I=function(e){S(r,e);var t=T(r);function r(){return x(this,r),t.apply(this,arguments)}return O(r,[{key:"createRenderer",value:function(){return new n.Z(this)}}]),r}(f.Z),A=function(e){S(r,e);var t=T(r);function r(e){var n;x(this,r);var i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render,target:i.target})).boundHandleRotationChanged_=n.handleRotationChanged_.bind(P(n)),n.collapsed_=void 0===i.collapsed||i.collapsed,n.collapsible_=void 0===i.collapsible||i.collapsible,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=void 0!==i.rotateWithView&&i.rotateWithView,n.viewExtent_=void 0;var a=void 0!==i.className?i.className:"ol-overviewmap",s=void 0!==i.tipLabel?i.tipLabel:"Overview map",u=void 0!==i.collapseLabel?i.collapseLabel:"‹";"string"==typeof u?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=u):n.collapseLabel_=u;var f=void 0!==i.label?i.label:"›";"string"==typeof f?(n.label_=document.createElement("span"),n.label_.textContent=f):n.label_=f;var h=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,p=document.createElement("button");p.setAttribute("type","button"),p.title=s,p.appendChild(h),p.addEventListener(o.Z.CLICK,n.handleClick_.bind(P(n)),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.view_=i.view,n.ovmap_=new I({view:i.view});var y=n.ovmap_;i.layers&&i.layers.forEach((function(e){y.addLayer(e)}));var v=document.createElement("div");v.className="ol-overviewmap-box",v.style.boxSizing="border-box",n.boxOverlay_=new l.Z({position:[0,0],positioning:c.Z.CENTER_CENTER,element:v}),n.ovmap_.addOverlay(n.boxOverlay_);var m=a+" "+d.XV+" "+d.hg+(n.collapsed_&&n.collapsible_?" "+d.hN:"")+(n.collapsible_?"":" ol-uncollapsible"),g=n.element;g.className=m,g.appendChild(n.ovmapDiv_),g.appendChild(p);var b=P(n),_=n.boxOverlay_,w=n.boxOverlay_.getElement(),k=function(e){var t,r={clientX:(t=e).clientX,clientY:t.clientY},n=y.getEventCoordinateInternal(r);_.setPosition(n)},O=function e(t){var r=y.getEventCoordinateInternal(t);b.getMap().getView().setCenterInternal(r),window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",e)};return w.addEventListener("mousedown",(function(){window.addEventListener("mousemove",k),window.addEventListener("mouseup",O)})),n}return O(r,[{key:"setMap",value:function(e){var t=this.getMap();if(e!==t){if(t){var n=t.getView();n&&this.unbindView_(n),this.ovmap_.setTarget(null)}if(_(C(r.prototype),"setMap",this).call(this,e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push((0,v.oL)(e,u.Z.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var i=e.getView();i&&(this.bindView_(i),i.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}},{key:"handleMapPropertyChange_",value:function(e){if(e.key===s.Z.VIEW){var t=e.oldValue;t&&this.unbindView_(t);var r=this.getMap().getView();this.bindView_(r)}else this.ovmap_.isRendered()||e.key!==s.Z.TARGET&&e.key!==s.Z.SIZE||this.ovmap_.updateSize()}},{key:"bindView_",value:function(e){if(!this.view_){var t=new h.ZP({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(p.Z.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()}},{key:"unbindView_",value:function(e){e.removeChangeListener(p.Z.ROTATION,this.boundHandleRotationChanged_)}},{key:"handleRotationChanged_",value:function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}},{key:"validateExtent_",value:function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var r=e.getSize(),n=e.getView().calculateExtentInternal(r);if(!this.viewExtent_||!(0,y.fS)(n,this.viewExtent_)){this.viewExtent_=n;var i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal((0,y.rL)(n)),s=t.getPixelFromCoordinateInternal((0,y.w$)(n)),u=Math.abs(a[0]-s[0]),l=Math.abs(a[1]-s[1]),c=i[0],f=i[1];u<c*j||l<f*j||u>c*M||l>f*M?this.resetExtent_():(0,y.r4)(o,n)||this.recenter_()}}}},{key:"resetExtent_",value:function(){var e=this.getMap(),t=this.ovmap_,r=e.getSize(),n=e.getView().calculateExtentInternal(r),i=t.getView(),o=Math.log(7.5)/Math.LN2,a=1/(Math.pow(2,o/2)*j);(0,y.H9)(n,a),i.fitInternal((0,m.oJ)(n))}},{key:"recenter_",value:function(){var e=this.getMap(),t=this.ovmap_,r=e.getView();t.getView().setCenterInternal(r.getCenterInternal())}},{key:"updateBox_",value:function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var r=e.getSize(),n=e.getView(),i=t.getView(),o=this.rotateWithView_?0:-n.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),u=n.getCenterInternal(),l=n.getResolution(),c=i.getResolution(),f=r[0]*l/c,h=r[1]*l/c;if(a.setPosition(u),s){s.style.width=f+"px",s.style.height=h+"px";var p="rotate("+o+"rad)";s.style.transform=p}}}},{key:"updateBoxAfterOvmapIsRendered_",value:function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=(0,v.Vx)(this.ovmap_,a.Z.POSTRENDER,(function(e){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))}},{key:"handleClick_",value:function(e){e.preventDefault(),this.handleToggle_()}},{key:"handleToggle_",value:function(){this.element.classList.toggle(d.hN),this.collapsed_?(0,g.$H)(this.collapseLabel_,this.label_):(0,g.$H)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var e=this.ovmap_;if(!this.collapsed_){if(e.isRendered())return this.viewExtent_=void 0,void e.render();e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}},{key:"getCollapsible",value:function(){return this.collapsible_}},{key:"setCollapsible",value:function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())}},{key:"setCollapsed",value:function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()}},{key:"getCollapsed",value:function(){return this.collapsed_}},{key:"getRotateWithView",value:function(){return this.rotateWithView_}},{key:"setRotateWithView",value:function(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}},{key:"getOverviewMap",value:function(){return this.ovmap_}},{key:"render",value:function(e){this.validateExtent_(),this.updateBox_()}}]),r}(i.Z);t.Z=A},81769:function(e,t,r){"use strict";var n=r(32685),i=r(81834),o=r(48736),a=r(12810),s=r(90776);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d="units",y="degrees",v="imperial",m="nautical",g="metric",b="us",_=[1,2,5],w=25.4/.28,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,n,u=f(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var r=e||{},n=void 0!==r.className?r.className:r.bar?"ol-scale-bar":"ol-scale-line";return(t=u.call(this,{element:document.createElement("div"),render:r.render,target:r.target})).on,t.once,t.un,t.innerElement_=document.createElement("div"),t.innerElement_.className=n+"-inner",t.element.className=n+" "+o.XV,t.element.appendChild(t.innerElement_),t.viewState_=null,t.minWidth_=void 0!==r.minWidth?r.minWidth:64,t.renderedVisible_=!1,t.renderedWidth_=void 0,t.renderedHTML_="",t.addChangeListener(d,t.handleUnitsChanged_),t.setUnits(r.units||g),t.scaleBar_=r.bar||!1,t.scaleBarSteps_=r.steps||4,t.scaleBarText_=r.text||!1,t.dpi_=r.dpi||void 0,t}return t=h,(r=[{key:"getUnits",value:function(){return this.get(d)}},{key:"handleUnitsChanged_",value:function(){this.updateElement_()}},{key:"setUnits",value:function(e){this.set(d,e)}},{key:"setDpi",value:function(e){this.dpi_=e}},{key:"updateElement_",value:function(){var e=this.viewState_;if(e){var t=e.center,r=e.projection,n=this.getUnits(),o=n==y?i.ZP.DEGREES:i.ZP.METERS,u=(0,a._Q)(r,e.resolution,t,o),l=this.minWidth_*(this.dpi_||w)/w,c=l*u,f="";if(n==y){var h=a.Wm[i.ZP.DEGREES];(c*=h)<h/60?(f="″",u*=3600):c<h?(f="′",u*=60):f="°"}else n==v?c<.9144?(f="in",u/=.0254):c<1609.344?(f="ft",u/=.3048):(f="mi",u/=1609.344):n==m?(u/=1852,f="nm"):n==g?c<.001?(f="μm",u*=1e6):c<1?(f="mm",u*=1e3):c<1e3?f="m":(f="km",u/=1e3):n==b?c<.9144?(f="in",u*=39.37):c<1609.344?(f="ft",u/=.30480061):(f="mi",u/=1609.3472):(0,s.h)(!1,33);for(var p,d,x,k,O=3*Math.floor(Math.log(l*u)/Math.log(10));;){x=Math.floor(O/3);var S=Math.pow(10,x);if(p=_[(O%3+3)%3]*S,d=Math.round(p/u),isNaN(d))return this.element.style.display="none",void(this.renderedVisible_=!1);if(d>=l)break;++O}k=this.scaleBar_?this.createScaleBar(d,p,f):p.toFixed(x<0?-x:0)+" "+f,this.renderedHTML_!=k&&(this.innerElement_.innerHTML=k,this.renderedHTML_=k),this.renderedWidth_!=d&&(this.innerElement_.style.width=d+"px",this.renderedWidth_=d),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)}},{key:"createScaleBar",value:function(e,t,r){for(var n="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),i=[],o=e/this.scaleBarSteps_,a="#ffffff",s=0;s<this.scaleBarSteps_;s++)0===s&&i.push(this.createMarker("absolute",s)),i.push('<div><div class="ol-scale-singlebar" style="width: '+o+"px;background-color: "+a+';"></div>'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,e,!1,t,r):"")+"</div>"),s===this.scaleBarSteps_-1&&i.push(this.createStepText(s+1,e,!0,t,r)),a="#ffffff"===a?"#000000":"#ffffff";return'<div style="display: flex;">'+(this.scaleBarText_?'<div class="ol-scale-text" style="width: '+e+'px;">'+n+"</div>":"")+i.join("")+"</div>"}},{key:"createMarker",value:function(e,t){return'<div class="ol-scale-step-marker" style="position: '+e+";top: "+("absolute"===e?3:-10)+'px;"></div>'}},{key:"createStepText",value:function(e,t,r,n,i){var o=(0===e?0:Math.round(n/this.scaleBarSteps_*e*100)/100)+(0===e?"":" "+i);return'<div class="ol-scale-step-text" style="margin-left: '+(0===e?-3:t/this.scaleBarSteps_*-1)+"px;text-align: "+(0===e?"left":"center")+"; min-width: "+(0===e?0:t/this.scaleBarSteps_*2)+"px;left: "+(r?t+"px":"unset")+';">'+o+"</div>"}},{key:"getScaleForResolution",value:function(){var e=(0,a._Q)(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,i.ZP.METERS),t=this.dpi_||w;return parseFloat(e.toString())*(1e3/25.4)*t}},{key:"render",value:function(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Z);t.Z=x},6936:function(e,t,r){"use strict";var n=r(32685),i=r(6566),o=r(33515),a=r(48736),s=r(62990),u=r(13193),l=r(12016),c=r(21510);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=d(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=0,w=1,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(d,e);var t,r,n,f=v(d);function d(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var r=e||{};(t=f.call(this,{element:document.createElement("div"),render:r.render})).dragListenerKeys_=[],t.currentResolution_=void 0,t.direction_=_,t.dragging_,t.heightLimit_=0,t.widthLimit_=0,t.startX_,t.startY_,t.thumbSize_=null,t.sliderInitialized_=!1,t.duration_=void 0!==r.duration?r.duration:200;var n=void 0!==r.className?r.className:"ol-zoomslider",s=document.createElement("button");s.setAttribute("type","button"),s.className=n+"-thumb "+a.XV;var u=t.element;return u.className=n+" "+a.XV+" "+a.hg,u.appendChild(s),u.addEventListener(o.Z.POINTERDOWN,t.handleDraggerStart_.bind(g(t)),!1),u.addEventListener(o.Z.POINTERMOVE,t.handleDraggerDrag_.bind(g(t)),!1),u.addEventListener(o.Z.POINTERUP,t.handleDraggerEnd_.bind(g(t)),!1),u.addEventListener(i.Z.CLICK,t.handleContainerClick_.bind(g(t)),!1),s.addEventListener(i.Z.CLICK,c.UW,!1),t}return t=d,(r=[{key:"setMap",value:function(e){p(b(d.prototype),"setMap",this).call(this,e),e&&e.render()}},{key:"initSlider_",value:function(){var e=this.element,t=e.offsetWidth,r=e.offsetHeight;if(0===t&&0===r)return this.sliderInitialized_=!1;var n=getComputedStyle(e);t-=parseFloat(n.paddingRight)+parseFloat(n.paddingLeft),r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);var i=e.firstElementChild,o=getComputedStyle(i),a=i.offsetWidth+parseFloat(o.marginRight)+parseFloat(o.marginLeft),s=i.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom);return this.thumbSize_=[a,s],t>r?(this.direction_=w,this.widthLimit_=t-a):(this.direction_=_,this.heightLimit_=r-s),this.sliderInitialized_=!0}},{key:"handleContainerClick_",value:function(e){var t=this.getMap().getView(),r=this.getRelativePosition_(e.offsetX-this.thumbSize_[0]/2,e.offsetY-this.thumbSize_[1]/2),n=this.getResolutionForPosition_(r),i=t.getConstrainedZoom(t.getZoomForResolution(n));t.animateInternal({zoom:i,duration:this.duration_,easing:u.Vv})}},{key:"handleDraggerStart_",value:function(e){if(!this.dragging_&&e.target===this.element.firstElementChild){var t=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=e.clientX-parseFloat(t.style.left),this.startY_=e.clientY-parseFloat(t.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var r=this.handleDraggerDrag_,n=this.handleDraggerEnd_,i=this.getMap().getOwnerDocument();this.dragListenerKeys_.push((0,l.oL)(i,o.Z.POINTERMOVE,r,this),(0,l.oL)(i,o.Z.POINTERUP,n,this))}}}},{key:"handleDraggerDrag_",value:function(e){if(this.dragging_){var t=e.clientX-this.startX_,r=e.clientY-this.startY_,n=this.getRelativePosition_(t,r);this.currentResolution_=this.getResolutionForPosition_(n),this.getMap().getView().setResolution(this.currentResolution_)}}},{key:"handleDraggerEnd_",value:function(e){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(l.bN),this.dragListenerKeys_.length=0)}},{key:"setThumbPosition_",value:function(e){var t=this.getPositionForResolution_(e),r=this.element.firstElementChild;this.direction_==w?r.style.left=this.widthLimit_*t+"px":r.style.top=this.heightLimit_*t+"px"}},{key:"getRelativePosition_",value:function(e,t){var r;return r=this.direction_===w?e/this.widthLimit_:t/this.heightLimit_,(0,s.uZ)(r,0,1)}},{key:"getResolutionForPosition_",value:function(e){return this.getMap().getView().getResolutionForValueFunction()(1-e)}},{key:"getPositionForResolution_",value:function(e){var t=this.getMap().getView().getValueForResolutionFunction();return(0,s.uZ)(1-t(e),0,1)}},{key:"render",value:function(e){if(e.frameState&&(this.sliderInitialized_||this.initSlider_())){var t=e.frameState.viewState.resolution;this.currentResolution_=t,this.setThumbPosition_(t)}}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(n.Z);t.Z=x},92932:function(e,t,r){"use strict";r.d(t,{IH:function(){return a},Ed:function(){return s},oL:function(){return u},Fj:function(){return l},I8:function(){return c},fS:function(){return f},U1:function(){return h},bA:function(){return p},bI:function(){return d},TE:function(){return y},Bs:function(){return v},V7:function(){return m},Cf:function(){return g},jk:function(){return b}});var n=r(86923),i=r(62990),o=r(26094);function a(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function s(e,t){var r=t.getRadius(),n=t.getCenter(),i=n[0],o=n[1],a=e[0]-i,s=e[1]-o;0===a&&0===s&&(a=1);var u=Math.sqrt(a*a+s*s);return[i+r*a/u,o+r*s/u]}function u(e,t){var r,n,i=e[0],o=e[1],a=t[0],s=t[1],u=a[0],l=a[1],c=s[0],f=s[1],h=c-u,p=f-l,d=0===h&&0===p?0:(h*(i-u)+p*(o-l))/(h*h+p*p||0);return d<=0?(r=u,n=l):d>=1?(r=c,n=f):(r=u+d*h,n=l+d*p),[r,n]}function l(e){return function(t){return function(e,t){return function(e,t,r){return e?t.replace("{x}",e[0].toFixed(r)).replace("{y}",e[1].toFixed(r)):""}(e,"{x}, {y}",t)}(t,e)}}function c(e,t,r){var n=(0,i.$W)(t+180,360)-180,a=Math.abs(3600*n),s=r||0,u=Math.pow(10,s),l=Math.floor(a/3600),c=Math.floor((a-3600*l)/60),f=a-3600*l-60*c;return(f=Math.ceil(f*u)/u)>=60&&(f=0,c+=1),c>=60&&(c=0,l+=1),l+"° "+(0,o.v)(c,2)+"′ "+(0,o.v)(f,2,s)+"″"+(0==n?"":" "+e.charAt(n<0?1:0))}function f(e,t){for(var r=!0,n=e.length-1;n>=0;--n)if(e[n]!=t[n]){r=!1;break}return r}function h(e,t){var r=Math.cos(t),n=Math.sin(t),i=e[0]*r-e[1]*n,o=e[1]*r+e[0]*n;return e[0]=i,e[1]=o,e}function p(e,t){return e[0]*=t,e[1]*=t,e}function d(e,t){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function y(e,t){return Math.sqrt(d(e,t))}function v(e,t){return d(e,u(e,t))}function m(e,t){return e?c("NS",e[1],t)+" "+c("EW",e[0],t):""}function g(e,t){if(t.canWrapX()){var r=(0,n.dz)(t.getExtent()),i=b(e,t,r);i&&(e[0]-=i*r)}return e}function b(e,t,r){var i=t.getExtent(),o=0;if(t.canWrapX()&&(e[0]<i[0]||e[0]>i[2])){var a=r||(0,n.dz)(i);o=Math.floor((e[0]-i[0])/a)}return o}},48736:function(e,t,r){"use strict";r.d(t,{oj:function(){return n},$A:function(){return i},XV:function(){return o},Qi:function(){return a},hg:function(){return s},hN:function(){return u},p:function(){return f},Xy:function(){return h}});var n="ol-hidden",i="ol-selectable",o="ol-unselectable",a="ol-unsupported",s="ol-control",u="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),c=["style","variant","weight","size","lineHeight","family"],f=function(e){var t=e.match(l);if(!t)return null;for(var r={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=c.length;n<i;++n){var o=t[n+1];void 0!==o&&(r[c[n]]=o)}return r.families=r.family.split(/,\s?/),r};function h(e){return 1===e?"":String(Math.round(100*e)/100)}},33716:function(e,t,r){"use strict";r.d(t,{E4:function(){return i},iO:function(){return o},Pb:function(){return a},$H:function(){return s},ZF:function(){return u},ep:function(){return l},hF:function(){return c}});var n=r(25738);function i(e,t,r,i){var o;return o=r&&r.length?r.shift():n.Id?new OffscreenCanvas(e||300,t||300):document.createElement("canvas"),e&&(o.width=e),t&&(o.height=t),o.getContext("2d",i)}function o(e){var t=e.offsetWidth,r=getComputedStyle(e);return t+=parseInt(r.marginLeft,10)+parseInt(r.marginRight,10)}function a(e){var t=e.offsetHeight,r=getComputedStyle(e);return t+=parseInt(r.marginTop,10)+parseInt(r.marginBottom,10)}function s(e,t){var r=t.parentNode;r&&r.replaceChild(e,t)}function u(e){return e&&e.parentNode?e.parentNode.removeChild(e):null}function l(e){for(;e.lastChild;)e.removeChild(e.lastChild)}function c(e,t){for(var r=e.childNodes,n=0;;++n){var i=r[n],o=t[n];if(!i&&!o)break;i!==o&&(i?o?e.insertBefore(o,i):(e.removeChild(i),--n):e.appendChild(o))}}},13193:function(e,t,r){"use strict";function n(e){return Math.pow(e,3)}function i(e){return 1-n(1-e)}function o(e){return 3*e*e-2*e*e*e}function a(e){return e}function s(e){return e<.5?o(2*e):1-o(2*(e-.5))}r.d(t,{YQ:function(){return n},Vv:function(){return i},rd:function(){return o},GE:function(){return a},wu:function(){return s}})},12016:function(e,t,r){"use strict";r.d(t,{oL:function(){return i},Vx:function(){return o},bN:function(){return a}});var n=r(32275);function i(e,t,r,n,i){if(n&&n!==e&&(r=r.bind(n)),i){var o=r;r=function(){e.removeEventListener(t,r),o.apply(this,arguments)}}var a={target:e,type:t,listener:r};return e.addEventListener(t,r),a}function o(e,t,r,n){return i(e,t,r,n,!0)}function a(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),(0,n.ZH)(e))}},21510:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{UW:function(){return o}});var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}var t,r,i;return t=e,(r=[{key:"preventDefault",value:function(){this.defaultPrevented=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function o(e){e.stopPropagation()}t.ZP=i},6566:function(e,t){"use strict";t.Z={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},44090:function(e,t,r){"use strict";var n=r(61637),i=r(21510),o=r(13837),a=r(32275);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,r,n,s=c(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this)).eventTarget_=e,t.pendingRemovals_=null,t.dispatching_=null,t.listeners_=null,t}return t=f,(r=[{key:"addEventListener",value:function(e,t){if(e&&t){var r=this.listeners_||(this.listeners_={}),n=r[e]||(r[e]=[]);-1===n.indexOf(t)&&n.push(t)}}},{key:"dispatchEvent",value:function(e){var t="string"==typeof e?new i.ZP(e):e,r=t.type;t.target||(t.target=this.eventTarget_||this);var n,a=this.listeners_&&this.listeners_[r];if(a){var s=this.dispatching_||(this.dispatching_={}),u=this.pendingRemovals_||(this.pendingRemovals_={});r in s||(s[r]=0,u[r]=0),++s[r];for(var l=0,c=a.length;l<c;++l)if(!1===(n="handleEvent"in a[l]?a[l].handleEvent(t):a[l].call(this,t))||t.propagationStopped){n=!1;break}if(--s[r],0===s[r]){var f=u[r];for(delete u[r];f--;)this.removeEventListener(r,o.Zn);delete s[r]}return n}}},{key:"disposeInternal",value:function(){this.listeners_&&(0,a.ZH)(this.listeners_)}},{key:"getListeners",value:function(e){return this.listeners_&&this.listeners_[e]||void 0}},{key:"hasListener",value:function(e){return!!this.listeners_&&(e?e in this.listeners_:Object.keys(this.listeners_).length>0)}},{key:"removeEventListener",value:function(e,t){var r=this.listeners_&&this.listeners_[e];if(r){var n=r.indexOf(t);-1!==n&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[n]=o.Zn,++this.pendingRemovals_[e]):(r.splice(n,1),0===r.length&&delete this.listeners_[e]))}}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);t.Z=p},36104:function(e,t,r){"use strict";r.d(t,{$6:function(){return s},Ko:function(){return u},aj:function(){return l},yZ:function(){return c},Bx:function(){return f},V4:function(){return h},v8:function(){return p},Fi:function(){return d},MJ:function(){return y},Kf:function(){return v},rM:function(){return m},QC:function(){return g},vY:function(){return b},TN:function(){return _},QL:function(){return w},Xp:function(){return x}});var n=r(81248),i=r(13837),o=r(25738),a=r(90776);function s(e){var t=arguments;return function(e){for(var r=!0,n=0,i=t.length;n<i&&(r=r&&t[n](e));++n);return r}}var u=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},l=function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},c=function(e){return!e.map.getTargetElement().hasAttribute("tabindex")||function(e){var t=e.map.getTargetElement(),r=e.map.getOwnerDocument().activeElement;return t.contains(r)}(e)},f=i.uX,h=function(e){return e.type==n.Z.CLICK},p=function(e){var t=e.originalEvent;return 0==t.button&&!(o.G$&&o.tK&&t.ctrlKey)},d=i.Dv,y=function(e){return"pointermove"==e.type},v=function(e){return e.type==n.Z.SINGLECLICK},m=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},g=function(e){var t=e.originalEvent;return!t.altKey&&(o.tK?t.metaKey:t.ctrlKey)&&!t.shiftKey},b=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},_=function(e){var t=e.originalEvent.target.tagName;return"INPUT"!==t&&"SELECT"!==t&&"TEXTAREA"!==t},w=function(e){var t=e.originalEvent;return(0,a.h)(void 0!==t,56),"mouse"==t.pointerType},x=function(e){var t=e.originalEvent;return(0,a.h)(void 0!==t,56),t.isPrimary&&0===t.button}},86923:function(e,t,r){"use strict";r.d(t,{hI:function(){return a},f3:function(){return s},d9:function(){return u},qf:function(){return l},b8:function(){return c},r4:function(){return f},jE:function(){return h},pX:function(){return p},lJ:function(){return d},T9:function(){return y},YN:function(){return v},HK:function(){return m},GN:function(){return g},fS:function(){return b},iW:function(){return _},l7:function(){return w},Wj:function(){return x},qP:function(){return k},H6:function(){return S},bg:function(){return E},hC:function(){return T},w$:function(){return R},qg:function(){return P},g0:function(){return C},p8:function(){return M},Cr:function(){return j},Ed:function(){return I},rL:function(){return A},Xv:function(){return L},dz:function(){return D},kK:function(){return Z},xb:function(){return F},EO:function(){return N},H9:function(){return G},I7:function(){return B},Ne:function(){return z},Cf:function(){return U}});var n=r(1917),i=r(20118),o=r(90776);function a(e){for(var t=d(),r=0,n=e.length;r<n;++r)x(t,e[r]);return t}function s(e,t,r){return r?(r[0]=e[0]-t,r[1]=e[1]-t,r[2]=e[2]+t,r[3]=e[3]+t,r):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function u(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function l(e,t,r){var n,i;return(n=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0)*n+(i=r<e[1]?e[1]-r:e[3]<r?r-e[3]:0)*i}function c(e,t){return h(e,t[0],t[1])}function f(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function h(e,t,r){return e[0]<=t&&t<=e[2]&&e[1]<=r&&r<=e[3]}function p(e,t){var r=e[0],n=e[1],o=e[2],a=e[3],s=t[0],u=t[1],l=i.Z.UNKNOWN;return s<r?l|=i.Z.LEFT:s>o&&(l|=i.Z.RIGHT),u<n?l|=i.Z.BELOW:u>a&&(l|=i.Z.ABOVE),l===i.Z.UNKNOWN&&(l=i.Z.INTERSECTING),l}function d(){return[1/0,1/0,-1/0,-1/0]}function y(e,t,r,n,i){return i?(i[0]=e,i[1]=t,i[2]=r,i[3]=n,i):[e,t,r,n]}function v(e){return y(1/0,1/0,-1/0,-1/0,e)}function m(e,t){var r=e[0],n=e[1];return y(r,n,r,n,t)}function g(e,t,r,n,i){return k(v(i),e,t,r,n)}function b(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function _(e,t,r){return Math.abs(e[0]-t[0])<r&&Math.abs(e[2]-t[2])<r&&Math.abs(e[1]-t[1])<r&&Math.abs(e[3]-t[3])<r}function w(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function x(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function k(e,t,r,n,i){for(;r<n;r+=i)O(e,t[r],t[r+1]);return e}function O(e,t,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],r)}function S(e,t){var r;return(r=t(T(e)))||(r=t(R(e)))||(r=t(L(e)))?r:(r=t(A(e)))||!1}function E(e){var t=0;return F(e)||(t=D(e)*j(e)),t}function T(e){return[e[0],e[1]]}function R(e){return[e[2],e[1]]}function P(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function C(e,t){var r;return t===n.Z.BOTTOM_LEFT?r=T(e):t===n.Z.BOTTOM_RIGHT?r=R(e):t===n.Z.TOP_LEFT?r=A(e):t===n.Z.TOP_RIGHT?r=L(e):(0,o.h)(!1,13),r}function M(e,t,r,n,i){var o=t*n[0]/2,a=t*n[1]/2,s=Math.cos(r),u=Math.sin(r),l=o*s,c=o*u,f=a*s,h=a*u,p=e[0],d=e[1],v=p-l+h,m=p-l-h,g=p+l-h,b=p+l+h,_=d-c-f,w=d-c+f,x=d+c+f,k=d+c-f;return y(Math.min(v,m,g,b),Math.min(_,w,x,k),Math.max(v,m,g,b),Math.max(_,w,x,k),i)}function j(e){return e[3]-e[1]}function I(e,t,r){var n=r||[1/0,1/0,-1/0,-1/0];return Z(e,t)?(e[0]>t[0]?n[0]=e[0]:n[0]=t[0],e[1]>t[1]?n[1]=e[1]:n[1]=t[1],e[2]<t[2]?n[2]=e[2]:n[2]=t[2],e[3]<t[3]?n[3]=e[3]:n[3]=t[3]):v(n),n}function A(e){return[e[0],e[3]]}function L(e){return[e[2],e[3]]}function D(e){return e[2]-e[0]}function Z(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function F(e){return e[2]<e[0]||e[3]<e[1]}function N(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function G(e,t){var r=(e[2]-e[0])/2*(t-1),n=(e[3]-e[1])/2*(t-1);e[0]-=r,e[2]+=r,e[1]-=n,e[3]+=n}function B(e,t,r){var n=!1,o=p(e,t),a=p(e,r);if(o===i.Z.INTERSECTING||a===i.Z.INTERSECTING)n=!0;else{var s,u,l=e[0],c=e[1],f=e[2],h=e[3],d=t[0],y=t[1],v=r[0],m=r[1],g=(m-y)/(v-d);a&i.Z.ABOVE&&!(o&i.Z.ABOVE)&&(n=(s=v-(m-h)/g)>=l&&s<=f),n||!(a&i.Z.RIGHT)||o&i.Z.RIGHT||(n=(u=m-(v-f)*g)>=c&&u<=h),n||!(a&i.Z.BELOW)||o&i.Z.BELOW||(n=(s=v-(m-c)/g)>=l&&s<=f),n||!(a&i.Z.LEFT)||o&i.Z.LEFT||(n=(u=m-(v-l)*g)>=c&&u<=h)}return n}function z(e,t,r,n){var i=[];if(n>1)for(var o=e[2]-e[0],a=e[3]-e[1],s=0;s<n;++s)i.push(e[0]+o*s/n,e[1],e[2],e[1]+a*s/n,e[2]-o*s/n,e[3],e[0],e[3]-a*s/n);else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);for(var u=[],l=[],c=0,f=i.length;c<f;c+=2)u.push(i[c]),l.push(i[c+1]);return function(e,t,r){return y(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),r)}(u,l,r)}function U(e,t){var r=t.getExtent(),n=P(e);if(t.canWrapX()&&(n[0]<r[0]||n[0]>=r[2])){var i=D(r),o=Math.floor((n[0]-r[0])/i)*i;e[0]-=o,e[2]-=o}return e}},1917:function(e,t){"use strict";t.Z={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},20118:function(e,t){"use strict";t.Z={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},85554:function(e,t,r){"use strict";r.d(t,{ov:function(){return a},Be:function(){return s}});var n=r(22662),i=r(13837),o=!1;function a(e,t,r,i,a,s,u){var l=new XMLHttpRequest;l.open("GET","function"==typeof e?e(r,i,a):e,!0),t.getType()==n.Z.ARRAY_BUFFER&&(l.responseType="arraybuffer"),l.withCredentials=o,l.onload=function(e){if(!l.status||l.status>=200&&l.status<300){var i,o=t.getType();o==n.Z.JSON||o==n.Z.TEXT?i=l.responseText:o==n.Z.XML?(i=l.responseXML)||(i=(new DOMParser).parseFromString(l.responseText,"application/xml")):o==n.Z.ARRAY_BUFFER&&(i=l.response),i?s(t.readFeatures(i,{extent:r,featureProjection:a}),t.readProjection(i)):u()}else u()},l.onerror=u,l.send()}function s(e,t){return function(r,n,o,s,u){var l=this;a(e,t,r,n,o,(function(e,t){l.addFeatures(e),void 0!==s&&s(e)}),u||i.Zn)}}},40890:function(e,t,r){"use strict";var n=r(12739),i=r(25691),o=r(10392),a=r(64721),s=r(5265),u=r(48189),l=r(88460),c=r(3077),f=r(91988),h=r(75469),p=r(85528),d=r(90776),y=r(32275),v=r(86923),m=r(60217),g=r(12810),b=r(92621),_=r(32025);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var i=T(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R={};R[o.Z.POINT]=function(e){var t;t=void 0!==e.m&&void 0!==e.z?new h.Z([e.x,e.y,e.z,e.m],i.Z.XYZM):void 0!==e.z?new h.Z([e.x,e.y,e.z],i.Z.XYZ):void 0!==e.m?new h.Z([e.x,e.y,e.m],i.Z.XYM):new h.Z([e.x,e.y]);return t},R[o.Z.LINE_STRING]=function(e){var t=j(e);return new s.Z(e.paths[0],t)},R[o.Z.POLYGON]=function(e){var t=j(e);return new p.ZP(e.rings,t)},R[o.Z.MULTI_POINT]=function(e){var t=j(e);return new c.Z(e.points,t)},R[o.Z.MULTI_LINE_STRING]=function(e){var t=j(e);return new l.Z(e.paths,t)},R[o.Z.MULTI_POLYGON]=function(e){var t=j(e);return new f.Z(e.rings,t)};var P={};P[o.Z.POINT]=function(e,t){var r,n=e.getCoordinates(),o=e.getLayout();o===i.Z.XYZ?r={x:n[0],y:n[1],z:n[2]}:o===i.Z.XYM?r={x:n[0],y:n[1],m:n[2]}:o===i.Z.XYZM?r={x:n[0],y:n[1],z:n[2],m:n[3]}:o===i.Z.XY?r={x:n[0],y:n[1]}:(0,d.h)(!1,34);return r},P[o.Z.LINE_STRING]=function(e,t){var r=I(e);return{hasZ:r.hasZ,hasM:r.hasM,paths:[e.getCoordinates()]}},P[o.Z.POLYGON]=function(e,t){var r=I(e);return{hasZ:r.hasZ,hasM:r.hasM,rings:e.getCoordinates(!1)}},P[o.Z.MULTI_POINT]=function(e,t){var r=I(e);return{hasZ:r.hasZ,hasM:r.hasM,points:e.getCoordinates()}},P[o.Z.MULTI_LINE_STRING]=function(e,t){var r=I(e);return{hasZ:r.hasZ,hasM:r.hasM,paths:e.getCoordinates()}},P[o.Z.MULTI_POLYGON]=function(e,t){for(var r=I(e),n=e.getCoordinates(!1),i=[],o=0;o<n.length;o++)for(var a=n[o].length-1;a>=0;a--)i.push(n[o][a]);return{hasZ:r.hasZ,hasM:r.hasM,rings:i}};var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(a,e);var t,r,i,o=S(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=e||{};return(t=o.call(this)).geometryName_=r.geometryName,t}return t=a,(r=[{key:"readFeatureFromObject",value:function(e,t,r){var i=e,o=M(i.geometry,t),a=new n.Z;if(this.geometryName_&&a.setGeometryName(this.geometryName_),a.setGeometry(o),i.attributes){a.setProperties(i.attributes,!0);var s=i.attributes[r];void 0!==s&&a.setId(s)}return a}},{key:"readFeaturesFromObject",value:function(e,t){var r=t||{};if(e.features){for(var n=[],i=e.features,o=0,a=i.length;o<a;++o)n.push(this.readFeatureFromObject(i[o],r,e.objectIdFieldName));return n}return[this.readFeatureFromObject(e,r)]}},{key:"readGeometryFromObject",value:function(e,t){return M(e,t)}},{key:"readProjectionFromObject",value:function(e){if(e.spatialReference&&void 0!==e.spatialReference.wkid){var t=e.spatialReference.wkid;return(0,g.U2)("EPSG:"+t)}return null}},{key:"writeGeometryObject",value:function(e,t){return A(e,this.adaptOptions(t))}},{key:"writeFeatureObject",value:function(e,t){t=this.adaptOptions(t);var r={};if(!e.hasProperties())return r.attributes={},r;var n=e.getProperties(),i=e.getGeometry();if(i){r.geometry=A(i,t);var o=t&&(t.dataProjection||t.featureProjection);o&&(r.geometry.spatialReference={wkid:Number((0,g.U2)(o).getCode().split(":").pop())}),delete n[e.getGeometryName()]}return(0,y.xb)(n)?r.attributes={}:r.attributes=n,r}},{key:"writeFeaturesObject",value:function(e,t){t=this.adaptOptions(t);for(var r=[],n=0,i=e.length;n<i;++n)r.push(this.writeFeatureObject(e[n],t));return{features:r}}}])&&k(t.prototype,r),i&&k(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(a.Z);function M(e,t){if(!e)return null;var r;if("number"==typeof e.x&&"number"==typeof e.y)r=o.Z.POINT;else if(e.points)r=o.Z.MULTI_POINT;else if(e.paths){r=1===e.paths.length?o.Z.LINE_STRING:o.Z.MULTI_LINE_STRING}else if(e.rings){var n=e,i=j(n),a=function(e,t){var r,n,i=[],o=[],a=[];for(r=0,n=e.length;r<n;++r){i.length=0,(0,m.Sg)(i,0,e[r],t.length),(0,b.bt)(i,0,i.length,t.length)?o.push([e[r]]):a.push(e[r])}for(;a.length;){var s=a.shift(),l=!1;for(r=o.length-1;r>=0;r--){var c=o[r][0];if((0,v.r4)(new u.Z(c).getExtent(),new u.Z(s).getExtent())){o[r].push(s),l=!0;break}}l||o.push([s.reverse()])}return o}(n.rings,i);1===a.length?(r=o.Z.POLYGON,e=(0,y.f0)({},e,x({},"rings",a[0]))):(r=o.Z.MULTI_POLYGON,e=(0,y.f0)({},e,x({},"rings",a)))}var s=R[r];return(0,_.fI)(s(e),!1,t)}function j(e){var t=i.Z.XY;return!0===e.hasZ&&!0===e.hasM?t=i.Z.XYZM:!0===e.hasZ?t=i.Z.XYZ:!0===e.hasM&&(t=i.Z.XYM),t}function I(e){var t=e.getLayout();return{hasZ:t===i.Z.XYZ||t===i.Z.XYZM,hasM:t===i.Z.XYM||t===i.Z.XYZM}}function A(e,t){return(0,P[e.getType()])((0,_.fI)(e,!0,t),t)}t.Z=C},32025:function(e,t,r){"use strict";r.d(t,{fI:function(){return l},lj:function(){return c}});var n=r(81834),i=r(99382),o=r(32275),a=r(12810);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}var t,r,u;return t=e,(r=[{key:"getReadOptions",value:function(e,t){var r;if(t){var i=t.dataProjection?(0,a.U2)(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()===n.ZP.TILE_PIXELS&&(i=(0,a.U2)(i)).setWorldExtent(t.extent),r={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(r)}},{key:"adaptOptions",value:function(e){return(0,o.f0)({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)}},{key:"getType",value:function(){return(0,i.O3)()}},{key:"readFeature",value:function(e,t){return(0,i.O3)()}},{key:"readFeatures",value:function(e,t){return(0,i.O3)()}},{key:"readGeometry",value:function(e,t){return(0,i.O3)()}},{key:"readProjection",value:function(e){return(0,i.O3)()}},{key:"writeFeature",value:function(e,t){return(0,i.O3)()}},{key:"writeFeatures",value:function(e,t){return(0,i.O3)()}},{key:"writeGeometry",value:function(e,t){return(0,i.O3)()}}])&&s(t.prototype,r),u&&s(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}();function l(e,t,r){var n,i=r?(0,a.U2)(r.featureProjection):null,o=r?(0,a.U2)(r.dataProjection):null;if(n=i&&o&&!(0,a.OP)(i,o)?(t?e.clone():e).transform(t?i:o,t?o:i):e,t&&r&&void 0!==r.decimals){var s=Math.pow(10,r.decimals);n===e&&(n=e.clone()),n.applyTransform((function(e){for(var t=0,r=e.length;t<r;++t)e[t]=Math.round(e[t]*s)/s;return e}))}return n}function c(e,t){var r=t?(0,a.U2)(t.featureProjection):null,n=t?(0,a.U2)(t.dataProjection):null;return r&&n&&!(0,a.OP)(r,n)?(0,a.$A)(e,n,r):e}t.ZP=u},22662:function(e,t){"use strict";t.Z={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"}},56581:function(e,t,r){"use strict";var n=r(86384),i=r(28082),o=r(32275),a=r(86923),s=r(12810),u=r(32025),l=r(4750);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=n.J+" http://schemas.opengis.net/gml/2.1.2/feature.xsd",m={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var t,r,c,d=p(y);function y(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);var r=e||{};return(t=d.call(this,r)).FEATURE_COLLECTION_PARSERS[n.J].featureMember=(0,i.Ei)(t.readFeaturesInternal),t.schemaLocation=r.schemaLocation?r.schemaLocation:v,t}return t=y,(r=[{key:"readFlatCoordinates",value:function(e,t){var r=(0,i.Ve)(e,!1).replace(/^\s*|\s*$/g,""),n=t[0].srsName,o="enu";if(n){var a=(0,s.U2)(n);a&&(o=a.getAxisOrientation())}for(var u=r.trim().split(/\s+/),l=[],c=0,f=u.length;c<f;c++){var h=u[c].split(/,+/),p=parseFloat(h[0]),d=parseFloat(h[1]),y=3===h.length?parseFloat(h[2]):0;"en"===o.substr(0,2)?l.push(p,d,y):l.push(d,p,y)}return l}},{key:"readBox",value:function(e,t){var r=(0,i.O)([null],this.BOX_PARSERS_,e,t,this);return(0,a.T9)(r[1][0],r[1][1],r[1][3],r[1][4])}},{key:"innerBoundaryIsParser",value:function(e,t){var r=(0,i.O)(void 0,this.RING_PARSERS,e,t,this);r&&t[t.length-1].push(r)}},{key:"outerBoundaryIsParser",value:function(e,t){var r=(0,i.O)(void 0,this.RING_PARSERS,e,t,this);r&&(t[t.length-1][0]=r)}},{key:"GEOMETRY_NODE_FACTORY_",value:function(e,t,r){var n,o=t[t.length-1],a=o.multiSurface,s=o.surface,u=o.multiCurve;return Array.isArray(e)?n="Envelope":"MultiPolygon"===(n=e.getType())&&!0===a?n="MultiSurface":"Polygon"===n&&!0===s?n="Surface":"MultiLineString"===n&&!0===u&&(n="MultiCurve"),(0,i.c)("http://www.opengis.net/gml",n)}},{key:"writeFeatureElement",value:function(e,t,r){var n=t.getId();n&&e.setAttribute("fid",n);var a=r[r.length-1],s=a.featureNS,u=t.getGeometryName();a.serializers||(a.serializers={},a.serializers[s]={});var c=[],f=[];if(t.hasProperties()){var h=t.getProperties();for(var p in h){var d=h[p];null!==d&&(c.push(p),f.push(d),p==u||"function"==typeof d.getSimplifiedGeometry?p in a.serializers[s]||(a.serializers[s][p]=(0,i.A4)(this.writeGeometryElement,this)):p in a.serializers[s]||(a.serializers[s][p]=(0,i.A4)(l.bZ)))}}var y=(0,o.f0)({},a);y.node=e,(0,i.ZL)(y,a.serializers,(0,i.G3)(void 0,s),f,r,c)}},{key:"writeCurveOrLineString",value:function(e,t,r){var n=r[r.length-1].srsName;if("LineStringSegment"!==e.nodeName&&n&&e.setAttribute("srsName",n),"LineString"===e.nodeName||"LineStringSegment"===e.nodeName){var o=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(o),this.writeCoordinates_(o,t,r)}else if("Curve"===e.nodeName){var a=(0,i.c)(e.namespaceURI,"segments");e.appendChild(a),this.writeCurveSegments_(a,t,r)}}},{key:"writeLineStringOrCurveMember",value:function(e,t,r){var n=this.GEOMETRY_NODE_FACTORY_(t,r);n&&(e.appendChild(n),this.writeCurveOrLineString(n,t,r))}},{key:"writeMultiCurveOrLineString",value:function(e,t,r){var n=r[r.length-1],o=n.hasZ,a=n.srsName,s=n.curve;a&&e.setAttribute("srsName",a);var u=t.getLineStrings();(0,i.ZL)({node:e,hasZ:o,srsName:a,curve:s},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,u,r,void 0,this)}},{key:"writeGeometryElement",value:function(e,t,r){var n,a=r[r.length-1],s=(0,o.f0)({},a);s.node=e,n=Array.isArray(t)?(0,u.lj)(t,a):(0,u.fI)(t,!0,a),(0,i.ZL)(s,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[n],r,void 0,this)}},{key:"createCoordinatesNode_",value:function(e){var t=(0,i.c)(e,"coordinates");return t.setAttribute("decimal","."),t.setAttribute("cs",","),t.setAttribute("ts"," "),t}},{key:"writeCoordinates_",value:function(e,t,r){for(var n=r[r.length-1],i=n.hasZ,o=n.srsName,a=t.getCoordinates(),s=a.length,u=new Array(s),c=0;c<s;++c){var f=a[c];u[c]=this.getCoords_(f,o,i)}(0,l.bZ)(e,u.join(" "))}},{key:"writeCurveSegments_",value:function(e,t,r){var n=(0,i.c)(e.namespaceURI,"LineStringSegment");e.appendChild(n),this.writeCurveOrLineString(n,t,r)}},{key:"writeSurfaceOrPolygon",value:function(e,t,r){var n=r[r.length-1],o=n.hasZ,a=n.srsName;if("PolygonPatch"!==e.nodeName&&a&&e.setAttribute("srsName",a),"Polygon"===e.nodeName||"PolygonPatch"===e.nodeName){var s=t.getLinearRings();(0,i.ZL)({node:e,hasZ:o,srsName:a},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,s,r,void 0,this)}else if("Surface"===e.nodeName){var u=(0,i.c)(e.namespaceURI,"patches");e.appendChild(u),this.writeSurfacePatches_(u,t,r)}}},{key:"RING_NODE_FACTORY_",value:function(e,t,r){var n=t[t.length-1],o=n.node,a=n.exteriorWritten;return void 0===a&&(n.exteriorWritten=!0),(0,i.c)(o.namespaceURI,void 0!==a?"innerBoundaryIs":"outerBoundaryIs")}},{key:"writeSurfacePatches_",value:function(e,t,r){var n=(0,i.c)(e.namespaceURI,"PolygonPatch");e.appendChild(n),this.writeSurfaceOrPolygon(n,t,r)}},{key:"writeRing",value:function(e,t,r){var n=(0,i.c)(e.namespaceURI,"LinearRing");e.appendChild(n),this.writeLinearRing(n,t,r)}},{key:"getCoords_",value:function(e,t,r){var n="enu";t&&(n=(0,s.U2)(t).getAxisOrientation());var i="en"===n.substr(0,2)?e[0]+","+e[1]:e[1]+","+e[0];return r&&(i+=","+(e[2]||0)),i}},{key:"writePoint",value:function(e,t,r){var n=r[r.length-1],i=n.hasZ,o=n.srsName;o&&e.setAttribute("srsName",o);var a=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(a);var s=t.getCoordinates(),u=this.getCoords_(s,o,i);(0,l.bZ)(a,u)}},{key:"writeMultiPoint",value:function(e,t,r){var n=r[r.length-1],o=n.hasZ,a=n.srsName;a&&e.setAttribute("srsName",a);var s=t.getPoints();(0,i.ZL)({node:e,hasZ:o,srsName:a},this.POINTMEMBER_SERIALIZERS,(0,i.G3)("pointMember"),s,r,void 0,this)}},{key:"writePointMember",value:function(e,t,r){var n=(0,i.c)(e.namespaceURI,"Point");e.appendChild(n),this.writePoint(n,t,r)}},{key:"writeLinearRing",value:function(e,t,r){var n=r[r.length-1].srsName;n&&e.setAttribute("srsName",n);var i=this.createCoordinatesNode_(e.namespaceURI);e.appendChild(i),this.writeCoordinates_(i,t,r)}},{key:"writeMultiSurfaceOrPolygon",value:function(e,t,r){var n=r[r.length-1],o=n.hasZ,a=n.srsName,s=n.surface;a&&e.setAttribute("srsName",a);var u=t.getPolygons();(0,i.ZL)({node:e,hasZ:o,srsName:a,surface:s},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,u,r,void 0,this)}},{key:"writeSurfaceOrPolygonMember",value:function(e,t,r){var n=this.GEOMETRY_NODE_FACTORY_(t,r);n&&(e.appendChild(n),this.writeSurfaceOrPolygon(n,t,r))}},{key:"writeEnvelope",value:function(e,t,r){var n=r[r.length-1].srsName;n&&e.setAttribute("srsName",n);var o=[t[0]+" "+t[1],t[2]+" "+t[3]];(0,i.ZL)({node:e},this.ENVELOPE_SERIALIZERS,i.hg,o,r,["lowerCorner","upperCorner"],this)}},{key:"MULTIGEOMETRY_MEMBER_NODE_FACTORY_",value:function(e,t,r){var n=t[t.length-1].node;return(0,i.c)("http://www.opengis.net/gml",m[n.nodeName])}}])&&f(t.prototype,r),c&&f(t,c),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);g.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:(0,i.z)(g.prototype.readFlatCoordinates)}},g.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:g.prototype.innerBoundaryIsParser,outerBoundaryIs:g.prototype.outerBoundaryIsParser}},g.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:(0,i.Ei)(g.prototype.readFlatCoordinates)}},g.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:(0,i.z)(n.Z.prototype.readPoint),MultiPoint:(0,i.z)(n.Z.prototype.readMultiPoint),LineString:(0,i.z)(n.Z.prototype.readLineString),MultiLineString:(0,i.z)(n.Z.prototype.readMultiLineString),LinearRing:(0,i.z)(n.Z.prototype.readLinearRing),Polygon:(0,i.z)(n.Z.prototype.readPolygon),MultiPolygon:(0,i.z)(n.Z.prototype.readMultiPolygon),Box:(0,i.z)(g.prototype.readBox)}},g.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:(0,i.A4)(g.prototype.writeCurveOrLineString),MultiCurve:(0,i.A4)(g.prototype.writeMultiCurveOrLineString),Point:(0,i.A4)(g.prototype.writePoint),MultiPoint:(0,i.A4)(g.prototype.writeMultiPoint),LineString:(0,i.A4)(g.prototype.writeCurveOrLineString),MultiLineString:(0,i.A4)(g.prototype.writeMultiCurveOrLineString),LinearRing:(0,i.A4)(g.prototype.writeLinearRing),Polygon:(0,i.A4)(g.prototype.writeSurfaceOrPolygon),MultiPolygon:(0,i.A4)(g.prototype.writeMultiSurfaceOrPolygon),Surface:(0,i.A4)(g.prototype.writeSurfaceOrPolygon),MultiSurface:(0,i.A4)(g.prototype.writeMultiSurfaceOrPolygon),Envelope:(0,i.A4)(g.prototype.writeEnvelope)}},g.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:(0,i.A4)(g.prototype.writeLineStringOrCurveMember),curveMember:(0,i.A4)(g.prototype.writeLineStringOrCurveMember)}},g.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:(0,i.A4)(g.prototype.writeRing),innerBoundaryIs:(0,i.A4)(g.prototype.writeRing)}},g.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:(0,i.A4)(g.prototype.writePointMember)}},g.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:(0,i.A4)(g.prototype.writeSurfaceOrPolygonMember),polygonMember:(0,i.A4)(g.prototype.writeSurfaceOrPolygonMember)}},g.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:(0,i.A4)(l.bZ),upperCorner:(0,i.A4)(l.bZ)}},t.Z=g},86384:function(e,t,r){"use strict";r.d(t,{J:function(){return O}});var n=r(12739),i=r(25691),o=r(5265),a=r(48189),s=r(88460),u=r(3077),l=r(91988),c=r(75469),f=r(85528),h=r(42865),p=r(32275),d=r(17985),y=r(28082),v=r(12810),m=r(32025);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O="http://www.opengis.net/gml",S=/^[\s\xa0]*$/,E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(x,e);var t,r,h,g=w(x);function x(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x);var r=e||{};return(t=g.call(this)).featureType=r.featureType,t.featureNS=r.featureNS,t.srsName=r.srsName,t.schemaLocation="",t.FEATURE_COLLECTION_PARSERS={},t.FEATURE_COLLECTION_PARSERS[t.namespace]={featureMember:(0,y.Ei)(t.readFeaturesInternal),featureMembers:(0,y.z)(t.readFeaturesInternal)},t.supportedMediaTypes=["application/gml+xml"],t}return t=x,(r=[{key:"readFeaturesInternal",value:function(e,t){var r=e.localName,n=null;if("FeatureCollection"==r)n=(0,y.O)([],this.FEATURE_COLLECTION_PARSERS,e,t,this);else if("featureMembers"==r||"featureMember"==r||"member"==r){var i=t[0],o=i.featureType,a=i.featureNS;if(!o&&e.childNodes){o=[],a={};for(var s=0,u=e.childNodes.length;s<u;++s){var l=e.childNodes[s];if(1===l.nodeType){var c=l.nodeName.split(":").pop();if(-1===o.indexOf(c)){var f="",h=0,p=l.namespaceURI;for(var d in a){if(a[d]===p){f=d;break}++h}f||(a[f="p"+h]=p),o.push(f+":"+c)}}}"featureMember"!=r&&(i.featureType=o,i.featureNS=a)}if("string"==typeof a){var v=a;(a={}).p0=v}var m={},g=Array.isArray(o)?o:[o];for(var b in a){for(var _={},w=0,x=g.length;w<x;++w)(-1===g[w].indexOf(":")?"p0":g[w].split(":")[0])===b&&(_[g[w].split(":").pop()]="featureMembers"==r?(0,y.Ei)(this.readFeatureElement,this):(0,y.z)(this.readFeatureElement,this));m[a[b]]=_}n="featureMember"==r||"member"==r?(0,y.O)(void 0,m,e,t):(0,y.O)([],m,e,t)}return null===n&&(n=[]),n}},{key:"readGeometryElement",value:function(e,t){var r=t[0];r.srsName=e.firstElementChild.getAttribute("srsName"),r.srsDimension=e.firstElementChild.getAttribute("srsDimension");var n=(0,y.O)(null,this.GEOMETRY_PARSERS,e,t,this);return n?Array.isArray(n)?(0,m.lj)(n,r):(0,m.fI)(n,!1,r):void 0}},{key:"readFeatureElementInternal",value:function(e,t,r){for(var i,o={},a=e.firstElementChild;a;a=a.nextElementSibling){var s=void 0,u=a.localName;0===a.childNodes.length||1===a.childNodes.length&&(3===a.firstChild.nodeType||4===a.firstChild.nodeType)?(s=(0,y.Ve)(a,!1),S.test(s)&&(s=void 0)):(r&&(s=this.readGeometryElement(a,t)),s?"boundedBy"!==u&&(i=u):s=this.readFeatureElementInternal(a,t,!1)),o[u]?(o[u]instanceof Array||(o[u]=[o[u]]),o[u].push(s)):o[u]=s;var l=a.attributes.length;if(l>0){o[u]={_content_:o[u]};for(var c=0;c<l;c++){var f=a.attributes[c].name;o[u][f]=a.attributes[c].value}}}if(r){var h=new n.Z(o);i&&h.setGeometryName(i);var p=e.getAttribute("fid")||(0,y.As)(e,this.namespace,"id");return p&&h.setId(p),h}return o}},{key:"readFeatureElement",value:function(e,t){return this.readFeatureElementInternal(e,t,!0)}},{key:"readPoint",value:function(e,t){var r=this.readFlatCoordinatesFromNode(e,t);if(r)return new c.Z(r,i.Z.XYZ)}},{key:"readMultiPoint",value:function(e,t){var r=(0,y.O)([],this.MULTIPOINT_PARSERS,e,t,this);return r?new u.Z(r):void 0}},{key:"readMultiLineString",value:function(e,t){var r=(0,y.O)([],this.MULTILINESTRING_PARSERS,e,t,this);if(r)return new s.Z(r)}},{key:"readMultiPolygon",value:function(e,t){var r=(0,y.O)([],this.MULTIPOLYGON_PARSERS,e,t,this);if(r)return new l.Z(r)}},{key:"pointMemberParser",value:function(e,t){(0,y.T3)(this.POINTMEMBER_PARSERS,e,t,this)}},{key:"lineStringMemberParser",value:function(e,t){(0,y.T3)(this.LINESTRINGMEMBER_PARSERS,e,t,this)}},{key:"polygonMemberParser",value:function(e,t){(0,y.T3)(this.POLYGONMEMBER_PARSERS,e,t,this)}},{key:"readLineString",value:function(e,t){var r=this.readFlatCoordinatesFromNode(e,t);return r?new o.Z(r,i.Z.XYZ):void 0}},{key:"readFlatLinearRing",value:function(e,t){var r=(0,y.O)(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this);return r||void 0}},{key:"readLinearRing",value:function(e,t){var r=this.readFlatCoordinatesFromNode(e,t);if(r)return new a.Z(r,i.Z.XYZ)}},{key:"readPolygon",value:function(e,t){var r=(0,y.O)([null],this.FLAT_LINEAR_RINGS_PARSERS,e,t,this);if(r&&r[0]){var n,o,a=r[0],s=[a.length];for(n=1,o=r.length;n<o;++n)(0,d.l7)(a,r[n]),s.push(a.length);return new f.ZP(a,i.Z.XYZ,s)}}},{key:"readFlatCoordinatesFromNode",value:function(e,t){return(0,y.O)(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,e,t,this)}},{key:"readGeometryFromNode",value:function(e,t){var r=this.readGeometryElement(e,[this.getReadOptions(e,t||{})]);return r||null}},{key:"readFeaturesFromNode",value:function(e,t){var r={featureType:this.featureType,featureNS:this.featureNS};return t&&(0,p.f0)(r,this.getReadOptions(e,t)),this.readFeaturesInternal(e,[r])||[]}},{key:"readProjectionFromNode",value:function(e){return(0,v.U2)(this.srsName?this.srsName:e.firstElementChild.getAttribute("srsName"))}}])&&b(t.prototype,r),h&&b(t,h),Object.defineProperty(t,"prototype",{writable:!1}),x}(h.Z);E.prototype.namespace=O,E.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}},E.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}},E.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}},E.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:(0,y.Ei)(E.prototype.pointMemberParser),pointMembers:(0,y.Ei)(E.prototype.pointMemberParser)}},E.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:(0,y.Ei)(E.prototype.lineStringMemberParser),lineStringMembers:(0,y.Ei)(E.prototype.lineStringMemberParser)}},E.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:(0,y.Ei)(E.prototype.polygonMemberParser),polygonMembers:(0,y.Ei)(E.prototype.polygonMemberParser)}},E.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:(0,y.Ei)(E.prototype.readFlatCoordinatesFromNode)}},E.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:(0,y.Ei)(E.prototype.readLineString)}},E.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:(0,y.Ei)(E.prototype.readPolygon)}},E.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:(0,y.z)(E.prototype.readFlatLinearRing)}},t.Z=E},91712:function(e,t,r){"use strict";var n=r(12739),i=r(25691),o=r(10392),a=r(5265),s=r(88460),u=r(75469),l=r(42865),c=r(28082),f=r(12810),h=r(17985),p=r(4750),d=r(32025);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],x={rte:H,trk:$,wpt:J},k=(0,c.C5)(w,{rte:(0,c.Ei)(H),trk:(0,c.Ei)($),wpt:(0,c.Ei)(J)}),O=(0,c.C5)(w,{text:(0,c.Pr)(p.s2,"linkText"),type:(0,c.Pr)(p.s2,"linkType")}),S=(0,c.C5)(w,{rte:(0,c.A4)((function(e,t,r){var n=r[0],i=t.getProperties(),a={node:e};a.properties=i;var s=t.getGeometry();if(s.getType()==o.Z.LINE_STRING){var u=(0,d.fI)(s,!0,n);a.geometryLayout=u.getLayout(),i.rtept=u.getCoordinates()}var l=r[r.length-1].node,f=L[l.namespaceURI],h=(0,c.RA)(i,f);(0,c.ZL)(a,D,c.hg,h,r,f)})),trk:(0,c.A4)((function(e,t,r){var n=r[0],i=t.getProperties(),a={node:e};a.properties=i;var s=t.getGeometry();if(s.getType()==o.Z.MULTI_LINE_STRING){var u=(0,d.fI)(s,!0,n);i.trkseg=u.getLineStrings()}var l=r[r.length-1].node,f=F[l.namespaceURI],h=(0,c.RA)(i,f);(0,c.ZL)(a,N,c.hg,h,r,f)})),wpt:(0,c.A4)((function(e,t,r){var n=r[0],i=r[r.length-1];i.properties=t.getProperties();var a=t.getGeometry();if(a.getType()==o.Z.POINT){var s=(0,d.fI)(a,!0,n);i.geometryLayout=s.getLayout(),ee(e,s.getCoordinates(),r)}}))}),E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(o,e);var t,r,n,i=g(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{};return(t=i.call(this)).dataProjection=(0,f.U2)("EPSG:4326"),t.readExtensions_=r.readExtensions,t}return t=o,(r=[{key:"handleReadExtensions_",value:function(e){e||(e=[]);for(var t=0,r=e.length;t<r;++t){var n=e[t];if(this.readExtensions_){var i=n.get("extensionsNode_")||null;this.readExtensions_(n,i)}n.set("extensionsNode_",void 0)}}},{key:"readFeatureFromNode",value:function(e,t){if(!(0,h.q9)(w,e.namespaceURI))return null;var r=x[e.localName];if(!r)return null;var n=r(e,[this.getReadOptions(e,t)]);return n?(this.handleReadExtensions_([n]),n):null}},{key:"readFeaturesFromNode",value:function(e,t){if(!(0,h.q9)(w,e.namespaceURI))return[];if("gpx"==e.localName){var r=(0,c.O)([],k,e,[this.getReadOptions(e,t)]);return r?(this.handleReadExtensions_(r),r):[]}return[]}},{key:"writeFeaturesNode",value:function(e,t){t=this.adaptOptions(t);var r=(0,c.c)("http://www.topografix.com/GPX/1/1","gpx");return r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi",c.fJ),r.setAttributeNS(c.fJ,"xsi:schemaLocation","http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"),r.setAttribute("version","1.1"),r.setAttribute("creator","OpenLayers"),(0,c.ZL)({node:r},S,V,e,[t]),r}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(l.Z),T=(0,c.C5)(w,{name:(0,c.Pr)(p.s2),cmt:(0,c.Pr)(p.s2),desc:(0,c.Pr)(p.s2),src:(0,c.Pr)(p.s2),link:W,number:(0,c.Pr)(p.$L),extensions:K,type:(0,c.Pr)(p.s2),rtept:function(e,t){var r=(0,c.O)({},R,e,t);if(r){var n=t[t.length-1],i=n.flatCoordinates,o=n.layoutOptions;X(i,o,e,r)}}}),R=(0,c.C5)(w,{ele:(0,c.Pr)(p.fy),time:(0,c.Pr)(p.x7)}),P=(0,c.C5)(w,{name:(0,c.Pr)(p.s2),cmt:(0,c.Pr)(p.s2),desc:(0,c.Pr)(p.s2),src:(0,c.Pr)(p.s2),link:W,number:(0,c.Pr)(p.$L),type:(0,c.Pr)(p.s2),extensions:K,trkseg:function(e,t){var r=t[t.length-1];(0,c.T3)(C,e,t);var n=r.flatCoordinates;r.ends.push(n.length)}}),C=(0,c.C5)(w,{trkpt:function(e,t){var r=(0,c.O)({},M,e,t);if(r){var n=t[t.length-1],i=n.flatCoordinates,o=n.layoutOptions;X(i,o,e,r)}}}),M=(0,c.C5)(w,{ele:(0,c.Pr)(p.fy),time:(0,c.Pr)(p.x7)}),j=(0,c.C5)(w,{ele:(0,c.Pr)(p.fy),time:(0,c.Pr)(p.x7),magvar:(0,c.Pr)(p.fy),geoidheight:(0,c.Pr)(p.fy),name:(0,c.Pr)(p.s2),cmt:(0,c.Pr)(p.s2),desc:(0,c.Pr)(p.s2),src:(0,c.Pr)(p.s2),link:W,sym:(0,c.Pr)(p.s2),type:(0,c.Pr)(p.s2),fix:(0,c.Pr)(p.s2),sat:(0,c.Pr)(p.$L),hdop:(0,c.Pr)(p.fy),vdop:(0,c.Pr)(p.fy),pdop:(0,c.Pr)(p.fy),ageofdgpsdata:(0,c.Pr)(p.fy),dgpsid:(0,c.Pr)(p.$L),extensions:K}),I=["text","type"],A=(0,c.C5)(w,{text:(0,c.A4)(p.bZ),type:(0,c.A4)(p.bZ)}),L=(0,c.C5)(w,["name","cmt","desc","src","link","number","type","rtept"]),D=(0,c.C5)(w,{name:(0,c.A4)(p.bZ),cmt:(0,c.A4)(p.bZ),desc:(0,c.A4)(p.bZ),src:(0,c.A4)(p.bZ),link:(0,c.A4)(Q),number:(0,c.A4)(p.JD),type:(0,c.A4)(p.bZ),rtept:(0,c.JO)((0,c.A4)(ee))}),Z=(0,c.C5)(w,["ele","time"]),F=(0,c.C5)(w,["name","cmt","desc","src","link","number","type","trkseg"]),N=(0,c.C5)(w,{name:(0,c.A4)(p.bZ),cmt:(0,c.A4)(p.bZ),desc:(0,c.A4)(p.bZ),src:(0,c.A4)(p.bZ),link:(0,c.A4)(Q),number:(0,c.A4)(p.JD),type:(0,c.A4)(p.bZ),trkseg:(0,c.JO)((0,c.A4)((function(e,t,r){var n={node:e};n.geometryLayout=t.getLayout(),n.properties={},(0,c.ZL)(n,B,G,t.getCoordinates(),r)})))}),G=(0,c.G3)("trkpt"),B=(0,c.C5)(w,{trkpt:(0,c.A4)(ee)}),z=(0,c.C5)(w,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),U=(0,c.C5)(w,{ele:(0,c.A4)(p.f3),time:(0,c.A4)(p.hv),magvar:(0,c.A4)(p.f3),geoidheight:(0,c.A4)(p.f3),name:(0,c.A4)(p.bZ),cmt:(0,c.A4)(p.bZ),desc:(0,c.A4)(p.bZ),src:(0,c.A4)(p.bZ),link:(0,c.A4)(Q),sym:(0,c.A4)(p.bZ),type:(0,c.A4)(p.bZ),fix:(0,c.A4)(p.bZ),sat:(0,c.A4)(p.JD),hdop:(0,c.A4)(p.f3),vdop:(0,c.A4)(p.f3),pdop:(0,c.A4)(p.f3),ageofdgpsdata:(0,c.A4)(p.f3),dgpsid:(0,c.A4)(p.JD)}),q={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function V(e,t,r){var n=e.getGeometry();if(n){var i=q[n.getType()];if(i){var o=t[t.length-1].node;return(0,c.c)(o.namespaceURI,i)}}}function X(e,t,r,n){return e.push(parseFloat(r.getAttribute("lon")),parseFloat(r.getAttribute("lat"))),"ele"in n?(e.push(n.ele),delete n.ele,t.hasZ=!0):e.push(0),"time"in n?(e.push(n.time),delete n.time,t.hasM=!0):e.push(0),e}function Y(e,t,r){var n=i.Z.XY,o=2;if(e.hasZ&&e.hasM?(n=i.Z.XYZM,o=4):e.hasZ?(n=i.Z.XYZ,o=3):e.hasM&&(n=i.Z.XYM,o=3),4!==o){for(var a=0,s=t.length/4;a<s;a++)t[a*o]=t[4*a],t[a*o+1]=t[4*a+1],e.hasZ&&(t[a*o+2]=t[4*a+2]),e.hasM&&(t[a*o+2]=t[4*a+3]);if(t.length=t.length/4*o,r)for(var u=0,l=r.length;u<l;u++)r[u]=r[u]/4*o}return n}function W(e,t){var r=t[t.length-1],n=e.getAttribute("href");null!==n&&(r.link=n),(0,c.T3)(O,e,t)}function K(e,t){t[t.length-1].extensionsNode_=e}function H(e,t){var r=t[0],i=(0,c.O)({flatCoordinates:[],layoutOptions:{}},T,e,t);if(i){var o=i.flatCoordinates;delete i.flatCoordinates;var s=i.layoutOptions;delete i.layoutOptions;var u=Y(s,o),l=new a.Z(o,u);(0,d.fI)(l,!1,r);var f=new n.Z(l);return f.setProperties(i,!0),f}}function $(e,t){var r=t[0],i=(0,c.O)({flatCoordinates:[],ends:[],layoutOptions:{}},P,e,t);if(i){var o=i.flatCoordinates;delete i.flatCoordinates;var a=i.ends;delete i.ends;var u=i.layoutOptions;delete i.layoutOptions;var l=Y(u,o,a),f=new s.Z(o,l,a);(0,d.fI)(f,!1,r);var h=new n.Z(f);return h.setProperties(i,!0),h}}function J(e,t){var r=t[0],i=(0,c.O)({},j,e,t);if(i){var o={},a=X([],o,e,i),s=Y(o,a),l=new u.Z(a,s);(0,d.fI)(l,!1,r);var f=new n.Z(l);return f.setProperties(i,!0),f}}function Q(e,t,r){e.setAttribute("href",t);var n=r[r.length-1].properties,i=[n.linkText,n.linkType];(0,c.ZL)({node:e},A,c.hg,i,r,I)}function ee(e,t,r){var n=r[r.length-1],o=n.node.namespaceURI,a=n.properties;switch(e.setAttributeNS(null,"lat",String(t[1])),e.setAttributeNS(null,"lon",String(t[0])),n.geometryLayout){case i.Z.XYZM:0!==t[3]&&(a.time=t[3]);case i.Z.XYZ:0!==t[2]&&(a.ele=t[2]);break;case i.Z.XYM:0!==t[2]&&(a.time=t[2])}var s="rtept"==e.nodeName?Z[o]:z[o],u=(0,c.RA)(a,s);(0,c.ZL)({node:e,properties:a},U,c.hg,u,r,s)}t.Z=E},91118:function(e,t,r){"use strict";var n=r(12739),i=r(68675),o=r(10392),a=r(64721),s=r(5265),u=r(88460),l=r(3077),c=r(91988),f=r(75469),h=r(85528),p=r(90776),d=r(32275),y=r(12810),v=r(32025);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(a,e);var t,r,i,o=_(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=e||{};return(t=o.call(this)).dataProjection=(0,y.U2)(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(t.defaultFeatureProjection=(0,y.U2)(r.featureProjection)),t.geometryName_=r.geometryName,t.extractGeometryName_=r.extractGeometryName,t.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],t}return t=a,(r=[{key:"readFeatureFromObject",value:function(e,t){var r=null,i=O((r="Feature"===e.type?e:{type:"Feature",geometry:e,properties:null}).geometry,t),o=new n.Z;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&o.setGeometryName(r.geometry_name),o.setGeometry(i),"id"in r&&o.setId(r.id),r.properties&&o.setProperties(r.properties,!0),o}},{key:"readFeaturesFromObject",value:function(e,t){var r=null;if("FeatureCollection"===e.type){r=[];for(var n=e.features,i=0,o=n.length;i<o;++i)r.push(this.readFeatureFromObject(n[i],t))}else r=[this.readFeatureFromObject(e,t)];return r}},{key:"readGeometryFromObject",value:function(e,t){return O(e,t)}},{key:"readProjectionFromObject",value:function(e){var t,r=e.crs;return r?"name"==r.type?t=(0,y.U2)(r.properties.name):"EPSG"===r.type?t=(0,y.U2)("EPSG:"+r.properties.code):(0,p.h)(!1,36):t=this.dataProjection,t}},{key:"writeFeatureObject",value:function(e,t){t=this.adaptOptions(t);var r={type:"Feature",geometry:null,properties:null},n=e.getId();if(void 0!==n&&(r.id=n),!e.hasProperties())return r;var i=e.getProperties(),o=e.getGeometry();return o&&(r.geometry=S(o,t),delete i[e.getGeometryName()]),(0,d.xb)(i)||(r.properties=i),r}},{key:"writeFeaturesObject",value:function(e,t){t=this.adaptOptions(t);for(var r=[],n=0,i=e.length;n<i;++n)r.push(this.writeFeatureObject(e[n],t));return{type:"FeatureCollection",features:r}}},{key:"writeGeometryObject",value:function(e,t){return S(e,this.adaptOptions(t))}}])&&g(t.prototype,r),i&&g(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(a.Z);function O(e,t){if(!e)return null;var r;switch(e.type){case o.Z.POINT:r=function(e){return new f.Z(e.coordinates)}(e);break;case o.Z.LINE_STRING:r=function(e){return new s.Z(e.coordinates)}(e);break;case o.Z.POLYGON:r=function(e){return new h.ZP(e.coordinates)}(e);break;case o.Z.MULTI_POINT:r=function(e){return new l.Z(e.coordinates)}(e);break;case o.Z.MULTI_LINE_STRING:r=function(e){return new u.Z(e.coordinates)}(e);break;case o.Z.MULTI_POLYGON:r=function(e){return new c.Z(e.coordinates)}(e);break;case o.Z.GEOMETRY_COLLECTION:r=function(e,t){var r=e.geometries.map((function(e){return O(e,t)}));return new i.Z(r)}(e);break;default:throw new Error("Unsupported GeoJSON type: "+e.type)}return(0,v.fI)(r,!1,t)}function S(e,t){var r,n=(e=(0,v.fI)(e,!0,t)).getType();switch(n){case o.Z.POINT:r=function(e,t){return{type:"Point",coordinates:e.getCoordinates()}}(e);break;case o.Z.LINE_STRING:r=function(e,t){return{type:"LineString",coordinates:e.getCoordinates()}}(e);break;case o.Z.POLYGON:r=function(e,t){var r;t&&(r=t.rightHanded);return{type:"Polygon",coordinates:e.getCoordinates(r)}}(e,t);break;case o.Z.MULTI_POINT:r=function(e,t){return{type:"MultiPoint",coordinates:e.getCoordinates()}}(e);break;case o.Z.MULTI_LINE_STRING:r=function(e,t){return{type:"MultiLineString",coordinates:e.getCoordinates()}}(e);break;case o.Z.MULTI_POLYGON:r=function(e,t){var r;t&&(r=t.rightHanded);return{type:"MultiPolygon",coordinates:e.getCoordinates(r)}}(e,t);break;case o.Z.GEOMETRY_COLLECTION:r=function(e,t){return{type:"GeometryCollection",geometries:e.getGeometriesArray().map((function(e){var r=(0,d.f0)({},t);return delete r.featureProjection,S(e,r)}))}}(e,t);break;case o.Z.CIRCLE:r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}t.Z=k},70277:function(e,t,r){"use strict";var n=r(12739),i=r(25691),o=r(5265),a=r(59193),s=r(12810),u=r(32025);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="barometric",v="gps",m="none",g=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,b=/^H.([A-Z]{3}).*?:(.*)/,_=/^HFDTE(\d{2})(\d{2})(\d{2})/,w=/\r\n|\r|\n/,x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(p,e);var t,r,a,l=h(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r=e||{};return(t=l.call(this)).dataProjection=(0,s.U2)("EPSG:4326"),t.altitudeMode_=r.altitudeMode?r.altitudeMode:m,t}return t=p,(r=[{key:"readFeatureFromText",value:function(e,t){var r,a,s=this.altitudeMode_,l=e.split(w),c={},f=[],h=2e3,p=0,d=1,x=-1;for(r=0,a=l.length;r<a;++r){var k=l[r],O=void 0;if("B"==k.charAt(0)){if(O=g.exec(k)){var S=parseInt(O[1],10),E=parseInt(O[2],10),T=parseInt(O[3],10),R=parseInt(O[4],10)+parseInt(O[5],10)/6e4;"S"==O[6]&&(R=-R);var P=parseInt(O[7],10)+parseInt(O[8],10)/6e4;if("W"==O[9]&&(P=-P),f.push(P,R),s!=m){var C=void 0;C=s==v?parseInt(O[11],10):s==y?parseInt(O[12],10):0,f.push(C)}var M=Date.UTC(h,p,d,S,E,T);M<x&&(M=Date.UTC(h,p,d+1,S,E,T)),f.push(M/1e3),x=M}}else"H"==k.charAt(0)&&((O=_.exec(k))?(d=parseInt(O[1],10),p=parseInt(O[2],10)-1,h=2e3+parseInt(O[3],10)):(O=b.exec(k))&&(c[O[1]]=O[2].trim()))}if(0===f.length)return null;var j=s==m?i.Z.XYM:i.Z.XYZM,I=new o.Z(f,j),A=new n.Z((0,u.fI)(I,!1,t));return A.setProperties(c,!0),A}},{key:"readFeaturesFromText",value:function(e,t){var r=this.readFeatureFromText(e,t);return r?[r]:[]}}])&&c(t.prototype,r),a&&c(t,a),Object.defineProperty(t,"prototype",{writable:!1}),p}(a.Z);t.Z=x},64721:function(e,t,r){"use strict";var n=r(32025),i=r(22662),o=r(99382);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this)}return t=c,(r=[{key:"getType",value:function(){return i.Z.JSON}},{key:"readFeature",value:function(e,t){return this.readFeatureFromObject(p(e),this.getReadOptions(e,t))}},{key:"readFeatures",value:function(e,t){return this.readFeaturesFromObject(p(e),this.getReadOptions(e,t))}},{key:"readFeatureFromObject",value:function(e,t){return(0,o.O3)()}},{key:"readFeaturesFromObject",value:function(e,t){return(0,o.O3)()}},{key:"readGeometry",value:function(e,t){return this.readGeometryFromObject(p(e),this.getReadOptions(e,t))}},{key:"readGeometryFromObject",value:function(e,t){return(0,o.O3)()}},{key:"readProjection",value:function(e){return this.readProjectionFromObject(p(e))}},{key:"readProjectionFromObject",value:function(e){return(0,o.O3)()}},{key:"writeFeature",value:function(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}},{key:"writeFeatureObject",value:function(e,t){return(0,o.O3)()}},{key:"writeFeatures",value:function(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}},{key:"writeFeaturesObject",value:function(e,t){return(0,o.O3)()}},{key:"writeGeometry",value:function(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}},{key:"writeGeometryObject",value:function(e,t){return(0,o.O3)()}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.ZP);function p(e){if("string"==typeof e){var t=JSON.parse(e);return t||null}return null!==e?e:null}t.Z=h},87103:function(e,t,r){"use strict";var n=r(12739),i=r(77975),o=r(68675),a=r(25691),s=r(10392),u=r(24598),l=r(34156),c=r(23734),f=r(23333),h=r(5265),p=r(88460),d=r(3077),y=r(91988),v=r(75469),m=r(85528),g=r(720),b=r(69039),_=r(40729),w=r(42865),x=r(28082),k=r(78699),O=r(90776),S=r(17985),E=r(12810),T=r(4750),R=r(62990),P=r(32025);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Z(e);if(t){var i=Z(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F,N,G,B,z,U,q=["http://www.google.com/kml/ext/2.2"],V=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],X={fraction:l.Z.FRACTION,pixels:l.Z.PIXELS,insetPixels:l.Z.PIXELS},Y=(0,x.C5)(V,{ExtendedData:qe,Region:Ve,MultiGeometry:(0,x.Pr)(Le,"geometry"),LineString:(0,x.Pr)(je,"geometry"),LinearRing:(0,x.Pr)(Ie,"geometry"),Point:(0,x.Pr)(De,"geometry"),Polygon:(0,x.Pr)(Fe,"geometry"),Style:(0,x.Pr)(Ge),StyleMap:function(e,t){var r=ge.call(this,e,t);if(!r)return;var n=t[t.length-1];Array.isArray(r)?n.Style=r:"string"==typeof r?n.styleUrl=r:(0,O.h)(!1,38)},address:(0,x.Pr)(T.s2),description:(0,x.Pr)(T.s2),name:(0,x.Pr)(T.s2),open:(0,x.Pr)(T.ud),phoneNumber:(0,x.Pr)(T.s2),styleUrl:(0,x.Pr)(ye),visibility:(0,x.Pr)(T.ud)},(0,x.C5)(q,{MultiTrack:(0,x.Pr)((function(e,t){var r=(0,x.O)([],Se,e,t);if(!r)return;return new p.Z(r)}),"geometry"),Track:(0,x.Pr)(Te,"geometry")})),W=(0,x.C5)(V,{ExtendedData:qe,Region:Ve,Link:function(e,t){(0,x.T3)(K,e,t)},address:(0,x.Pr)(T.s2),description:(0,x.Pr)(T.s2),name:(0,x.Pr)(T.s2),open:(0,x.Pr)(T.ud),phoneNumber:(0,x.Pr)(T.s2),visibility:(0,x.Pr)(T.ud)}),K=(0,x.C5)(V,{href:(0,x.Pr)(de)}),H=(0,x.C5)(V,{LatLonAltBox:function(e,t){var r=(0,x.O)({},We,e,t);if(!r)return;var n=t[t.length-1],i=[parseFloat(r.west),parseFloat(r.south),parseFloat(r.east),parseFloat(r.north)];n.extent=i,n.altitudeMode=r.altitudeMode,n.minAltitude=parseFloat(r.minAltitude),n.maxAltitude=parseFloat(r.maxAltitude)},Lod:function(e,t){var r=(0,x.O)({},Ke,e,t);if(!r)return;var n=t[t.length-1];n.minLodPixels=parseFloat(r.minLodPixels),n.maxLodPixels=parseFloat(r.maxLodPixels),n.minFadeExtent=parseFloat(r.minFadeExtent),n.maxFadeExtent=parseFloat(r.maxFadeExtent)}}),$=(0,x.C5)(V,["Document","Placemark"]),J=(0,x.C5)(V,{Document:(0,x.A4)((function(e,t,r){var n={node:e};(0,x.ZL)(n,et,tt,t,r,void 0,this)})),Placemark:(0,x.A4)(St)}),Q=null;var ee,te=null;var re,ne=null;var ie=null;var oe=null;var ae,se=null;function ue(e){return 32/Math.min(e[0],e[1])}function le(e){return e}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(h,e);var t,r,a,f=L(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=f.call(this);var r=e||{};return se||(F=[255,255,255,1],Q=new i.Z({color:F}),N=[20,2],G=l.Z.PIXELS,B=l.Z.PIXELS,z=[64,64],U="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",te=new u.Z({anchor:N,anchorOrigin:c.Z.BOTTOM_LEFT,anchorXUnits:G,anchorYUnits:B,crossOrigin:"anonymous",rotation:0,scale:ue(z),size:z,src:U}),ee="NO_IMAGE",ne=new g.Z({color:F,width:1}),re=new g.Z({color:[51,51,51,1],width:2}),ie=new _.Z({font:"bold 16px Helvetica",fill:Q,stroke:re,scale:.8}),oe=new b.ZP({fill:Q,image:te,text:ie,stroke:ne,zIndex:0}),se=[oe]),t.dataProjection=(0,E.U2)("EPSG:4326"),t.defaultStyle_=r.defaultStyle?r.defaultStyle:se,t.extractStyles_=void 0===r.extractStyles||r.extractStyles,t.writeStyles_=void 0===r.writeStyles||r.writeStyles,t.sharedStyles_={},t.showPointNames_=void 0===r.showPointNames||r.showPointNames,t.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",t.iconUrlFunction_=r.iconUrlFunction?r.iconUrlFunction:le,t.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],t}return t=h,(r=[{key:"readDocumentOrFolder_",value:function(e,t){var r=(0,x.C5)(V,{Document:(0,x.pc)(this.readDocumentOrFolder_,this),Folder:(0,x.pc)(this.readDocumentOrFolder_,this),Placemark:(0,x.Ei)(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),n=(0,x.O)([],r,e,t,this);return n||void 0}},{key:"readPlacemark_",value:function(e,t){var r=(0,x.O)({geometry:null},Y,e,t,this);if(r){var i=new n.Z,a=e.getAttribute("id");null!==a&&i.setId(a);var u=t[0],l=r.geometry;if(l&&(0,P.fI)(l,!1,u),i.setGeometry(l),delete r.geometry,this.extractStyles_){var c=function(e,t,r,n,i){return function(a,u){var l=i,c="",f=[];if(l){var h=a.getGeometry();if(h){var p=h.getType();l=p===s.Z.GEOMETRY_COLLECTION?(f=h.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t===s.Z.POINT||t===s.Z.MULTI_POINT}))).length>0:p===s.Z.POINT||p===s.Z.MULTI_POINT}}l&&(c=a.get("name"),(l=l&&!!c)&&c.search(/&[^&]+;/)>-1&&(ae||(ae=document.createElement("textarea")),ae.innerHTML=c,c=ae.value));var d=r;if(e?d=e:t&&(d=fe(t,r,n)),l){var y=function(e,t){var r=[0,0],n="start",i=e.getImage();if(i){var o=i.getSize();if(o&&2==o.length){var a=i.getScaleArray(),s=i.getAnchor();r[0]=a[0]*(o[0]-s[0]),r[1]=a[1]*(o[1]/2-s[1]),n="left"}}var u=e.getText();return u?((u=u.clone()).setFont(u.getFont()||ie.getFont()),u.setScale(u.getScale()||ie.getScale()),u.setFill(u.getFill()||ie.getFill()),u.setStroke(u.getStroke()||re)):u=ie.clone(),u.setText(t),u.setOffsetX(r[0]),u.setOffsetY(r[1]),u.setTextAlign(n),new b.ZP({image:i,text:u})}(d[0],c);return f.length>0?(y.setGeometry(new o.Z(f)),[y,new b.ZP({geometry:d[0].getGeometry(),image:null,fill:d[0].getFill(),stroke:d[0].getStroke(),text:null})].concat(d.slice(1))):y}return d}}(r.Style,r.styleUrl,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);i.setStyle(c)}return delete r.Style,i.setProperties(r,!0),i}}},{key:"readSharedStyle_",value:function(e,t){var r=e.getAttribute("id");if(null!==r){var n=Ge.call(this,e,t);if(n){var i,o=e.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+r,o).href:"#"+r,this.sharedStyles_[i]=n}}}},{key:"readSharedStyleMap_",value:function(e,t){var r=e.getAttribute("id");if(null!==r){var n=ge.call(this,e,t);if(n){var i,o=e.baseURI;o&&"about:blank"!=o||(o=window.location.href),i=o?new URL("#"+r,o).href:"#"+r,this.sharedStyles_[i]=n}}}},{key:"readFeatureFromNode",value:function(e,t){if(!(0,S.q9)(V,e.namespaceURI))return null;var r=this.readPlacemark_(e,[this.getReadOptions(e,t)]);return r||null}},{key:"readFeaturesFromNode",value:function(e,t){if(!(0,S.q9)(V,e.namespaceURI))return[];var r,n=e.localName;if("Document"==n||"Folder"==n)return(r=this.readDocumentOrFolder_(e,[this.getReadOptions(e,t)]))||[];if("Placemark"==n){var i=this.readPlacemark_(e,[this.getReadOptions(e,t)]);return i?[i]:[]}if("kml"==n){r=[];for(var o=e.firstElementChild;o;o=o.nextElementSibling){var a=this.readFeaturesFromNode(o,t);a&&(0,S.l7)(r,a)}return r}return[]}},{key:"readName",value:function(e){if(e){if("string"==typeof e){var t=(0,x.Qc)(e);return this.readNameFromDocument(t)}return(0,x.qk)(e)?this.readNameFromDocument(e):this.readNameFromNode(e)}}},{key:"readNameFromDocument",value:function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE){var r=this.readNameFromNode(t);if(r)return r}}},{key:"readNameFromNode",value:function(e){for(var t=e.firstElementChild;t;t=t.nextElementSibling)if((0,S.q9)(V,t.namespaceURI)&&"name"==t.localName)return(0,T.s2)(t);for(var r=e.firstElementChild;r;r=r.nextElementSibling){var n=r.localName;if((0,S.q9)(V,r.namespaceURI)&&("Document"==n||"Folder"==n||"Placemark"==n||"kml"==n)){var i=this.readNameFromNode(r);if(i)return i}}}},{key:"readNetworkLinks",value:function(e){var t=[];if("string"==typeof e){var r=(0,x.Qc)(e);(0,S.l7)(t,this.readNetworkLinksFromDocument(r))}else(0,x.qk)(e)?(0,S.l7)(t,this.readNetworkLinksFromDocument(e)):(0,S.l7)(t,this.readNetworkLinksFromNode(e));return t}},{key:"readNetworkLinksFromDocument",value:function(e){for(var t=[],r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,S.l7)(t,this.readNetworkLinksFromNode(r));return t}},{key:"readNetworkLinksFromNode",value:function(e){for(var t=[],r=e.firstElementChild;r;r=r.nextElementSibling)if((0,S.q9)(V,r.namespaceURI)&&"NetworkLink"==r.localName){var n=(0,x.O)({},W,r,[]);t.push(n)}for(var i=e.firstElementChild;i;i=i.nextElementSibling){var o=i.localName;!(0,S.q9)(V,i.namespaceURI)||"Document"!=o&&"Folder"!=o&&"kml"!=o||(0,S.l7)(t,this.readNetworkLinksFromNode(i))}return t}},{key:"readRegion",value:function(e){var t=[];if("string"==typeof e){var r=(0,x.Qc)(e);(0,S.l7)(t,this.readRegionFromDocument(r))}else(0,x.qk)(e)?(0,S.l7)(t,this.readRegionFromDocument(e)):(0,S.l7)(t,this.readRegionFromNode(e));return t}},{key:"readRegionFromDocument",value:function(e){for(var t=[],r=e.firstChild;r;r=r.nextSibling)r.nodeType==Node.ELEMENT_NODE&&(0,S.l7)(t,this.readRegionFromNode(r));return t}},{key:"readRegionFromNode",value:function(e){for(var t=[],r=e.firstElementChild;r;r=r.nextElementSibling)if((0,S.q9)(V,r.namespaceURI)&&"Region"==r.localName){var n=(0,x.O)({},H,r,[]);t.push(n)}for(var i=e.firstElementChild;i;i=i.nextElementSibling){var o=i.localName;!(0,S.q9)(V,i.namespaceURI)||"Document"!=o&&"Folder"!=o&&"kml"!=o||(0,S.l7)(t,this.readRegionFromNode(i))}return t}},{key:"writeFeaturesNode",value:function(e,t){t=this.adaptOptions(t);var r=(0,x.c)(V[4],"kml"),n="http://www.w3.org/2000/xmlns/";r.setAttributeNS(n,"xmlns:gx",q[0]),r.setAttributeNS(n,"xmlns:xsi",x.fJ),r.setAttributeNS(x.fJ,"xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var i={node:r},o={};e.length>1?o.Document=e:1==e.length&&(o.Placemark=e[0]);var a=$[r.namespaceURI],s=(0,x.RA)(o,a);return(0,x.ZL)(i,J,x.hg,s,[t],a,this),r}}])&&I(t.prototype,r),a&&I(t,a),Object.defineProperty(t,"prototype",{writable:!1}),h}(w.Z);function fe(e,t,r){return Array.isArray(e)?e:"string"==typeof e?fe(r[e],t,r):t}function he(e){var t=(0,x.Ve)(e,!1),r=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(t);if(r){var n=r[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}}function pe(e){var t=(0,x.Ve)(e,!1),r=[];t=t.replace(/\s*,\s*/g,",");for(var n,i=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i;n=i.exec(t);){var o=parseFloat(n[1]),a=parseFloat(n[2]),s=n[3]?parseFloat(n[3]):0;r.push(o,a,s),t=t.substr(n[0].length)}if(""===t)return r}function de(e){var t=(0,x.Ve)(e,!1).trim(),r=e.baseURI;return r&&"about:blank"!=r||(r=window.location.href),r?new URL(t,r).href:t}function ye(e){var t=(0,x.Ve)(e,!1).trim().replace(/^(?!.*#)/,"#"),r=e.baseURI;return r&&"about:blank"!=r||(r=window.location.href),r?new URL(t,r).href:t}function ve(e){return(0,T.fy)(e)}var me=(0,x.C5)(V,{Pair:function(e,t){var r=(0,x.O)({},Xe,e,t,this);if(!r)return;var n=r.key;if(n&&"normal"==n){var i=r.styleUrl;i&&(t[t.length-1]=i);var o=r.Style;o&&(t[t.length-1]=o)}}});function ge(e,t){return(0,x.O)(void 0,me,e,t,this)}var be=(0,x.C5)(V,{Icon:(0,x.Pr)((function(e,t){var r=(0,x.O)({},Re,e,t);return r||null})),color:(0,x.Pr)(he),heading:(0,x.Pr)(T.fy),hotSpot:(0,x.Pr)((function(e){var t,r=e.getAttribute("xunits"),n=e.getAttribute("yunits");return t="insetPixels"!==r?"insetPixels"!==n?c.Z.BOTTOM_LEFT:c.Z.TOP_LEFT:"insetPixels"!==n?c.Z.BOTTOM_RIGHT:c.Z.TOP_RIGHT,{x:parseFloat(e.getAttribute("x")),xunits:X[r],y:parseFloat(e.getAttribute("y")),yunits:X[n],origin:t}})),scale:(0,x.Pr)(ve)});var _e=(0,x.C5)(V,{color:(0,x.Pr)(he),scale:(0,x.Pr)(ve)});var we=(0,x.C5)(V,{color:(0,x.Pr)(he),width:(0,x.Pr)(T.fy)});var xe=(0,x.C5)(V,{color:(0,x.Pr)(he),fill:(0,x.Pr)(T.ud),outline:(0,x.Pr)(T.ud)});var ke=(0,x.C5)(V,{coordinates:(0,x.z)(pe)});function Oe(e,t){return(0,x.O)(null,ke,e,t)}var Se=(0,x.C5)(q,{Track:(0,x.Ei)(Te)});var Ee=(0,x.C5)(V,{when:function(e,t){var r=t[t.length-1].whens,n=(0,x.Ve)(e,!1),i=Date.parse(n);r.push(isNaN(i)?0:i)}},(0,x.C5)(q,{coord:function(e,t){var r=t[t.length-1].coordinates,n=(0,x.Ve)(e,!1),i=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(n);if(i){var o=parseFloat(i[1]),a=parseFloat(i[2]),s=parseFloat(i[3]);r.push([o,a,s])}else r.push([])}}));function Te(e,t){var r=(0,x.O)({coordinates:[],whens:[]},Ee,e,t);if(r){for(var n=[],i=r.coordinates,o=r.whens,s=0,u=Math.min(i.length,o.length);s<u;++s)3==i[s].length&&n.push(i[s][0],i[s][1],i[s][2],o[s]);return new h.Z(n,a.Z.XYZM)}}var Re=(0,x.C5)(V,{href:(0,x.Pr)(de)},(0,x.C5)(q,{x:(0,x.Pr)(T.fy),y:(0,x.Pr)(T.fy),w:(0,x.Pr)(T.fy),h:(0,x.Pr)(T.fy)}));var Pe=(0,x.C5)(V,{coordinates:(0,x.z)(pe)});function Ce(e,t){return(0,x.O)(null,Pe,e,t)}var Me=(0,x.C5)(V,{extrude:(0,x.Pr)(T.ud),tessellate:(0,x.Pr)(T.ud),altitudeMode:(0,x.Pr)(T.s2)});function je(e,t){var r=(0,x.O)({},Me,e,t),n=Ce(e,t);if(n){var i=new h.Z(n,a.Z.XYZ);return i.setProperties(r,!0),i}}function Ie(e,t){var r=(0,x.O)({},Me,e,t),n=Ce(e,t);if(n){var i=new m.ZP(n,a.Z.XYZ,[n.length]);return i.setProperties(r,!0),i}}var Ae=(0,x.C5)(V,{LineString:(0,x.Ei)(je),LinearRing:(0,x.Ei)(Ie),MultiGeometry:(0,x.Ei)(Le),Point:(0,x.Ei)(De),Polygon:(0,x.Ei)(Fe)});function Le(e,t){var r,n=(0,x.O)([],Ae,e,t);if(!n)return null;if(0===n.length)return new o.Z(n);for(var i,a,u,l=!0,c=n[0].getType(),f=1,h=n.length;f<h;++f)if((i=n[f]).getType()!=c){l=!1;break}if(l)if(c==s.Z.POINT){var v=n[0];a=v.getLayout(),u=v.getFlatCoordinates();for(var m=1,g=n.length;m<g;++m)i=n[m],(0,S.l7)(u,i.getFlatCoordinates());Be(r=new d.Z(u,a),n)}else c==s.Z.LINE_STRING?Be(r=new p.Z(n),n):c==s.Z.POLYGON?Be(r=new y.Z(n),n):c==s.Z.GEOMETRY_COLLECTION?r=new o.Z(n):(0,O.h)(!1,37);else r=new o.Z(n);return r}function De(e,t){var r=(0,x.O)({},Me,e,t),n=Ce(e,t);if(n){var i=new v.Z(n,a.Z.XYZ);return i.setProperties(r,!0),i}}var Ze=(0,x.C5)(V,{innerBoundaryIs:function(e,t){var r=(0,x.O)([],He,e,t);if(r.length>0){var n=t[t.length-1];n.push.apply(n,M(r))}},outerBoundaryIs:function(e,t){var r=(0,x.O)(void 0,$e,e,t);if(r){t[t.length-1][0]=r}}});function Fe(e,t){var r=(0,x.O)({},Me,e,t),n=(0,x.O)([null],Ze,e,t);if(n&&n[0]){for(var i=n[0],o=[i.length],s=1,u=n.length;s<u;++s)(0,S.l7)(i,n[s]),o.push(i.length);var l=new m.ZP(i,a.Z.XYZ,o);return l.setProperties(r,!0),l}}var Ne=(0,x.C5)(V,{IconStyle:function(e,t){var r=(0,x.O)({},be,e,t);if(r){var n,i,o,a,s=t[t.length-1],l="Icon"in r?r.Icon:{},h=!("Icon"in r)||Object.keys(l).length>0,p=l.href;p?n=p:h&&(n=U);var d,y=c.Z.BOTTOM_LEFT,v=r.hotSpot;v?(i=[v.x,v.y],o=v.xunits,a=v.yunits,y=v.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(n)&&(/pushpin/.test(n)?(i=N,o=G,a=B):/arrow-reverse/.test(n)?(i=[54,42],o=G,a=B):/paddle/.test(n)&&(i=[32,1],o=G,a=B));var m,g=l.x,b=l.y;void 0!==g&&void 0!==b&&(d=[g,b]);var _,w=l.w,k=l.h;void 0!==w&&void 0!==k&&(m=[w,k]);var O=r.heading;void 0!==O&&(_=(0,R.Yr)(O));var S=r.scale,E=r.color;if(h){n==U&&(m=z);var T=new u.Z({anchor:i,anchorOrigin:y,anchorXUnits:o,anchorYUnits:a,crossOrigin:this.crossOrigin_,offset:d,offsetOrigin:c.Z.BOTTOM_LEFT,rotation:_,scale:S,size:m,src:this.iconUrlFunction_(n),color:E}),P=T.getScaleArray()[0],C=T.getSize();if(null===C){var M=T.getImageState();if(M===f.Z.IDLE||M===f.Z.LOADING){T.listenImageChange((function e(){var t=T.getImageState();if(t!==f.Z.IDLE&&t!==f.Z.LOADING){var r=T.getSize();if(r&&2==r.length){var n=ue(r);T.setScale(P*n)}T.unlistenImageChange(e)}})),M===f.Z.IDLE&&T.load()}}else if(2==C.length){var j=ue(C);T.setScale(P*j)}s.imageStyle=T}else s.imageStyle=ee}},LabelStyle:function(e,t){var r=(0,x.O)({},_e,e,t);if(r){var n=t[t.length-1],o=new _.Z({fill:new i.Z({color:"color"in r?r.color:F}),scale:r.scale});n.textStyle=o}},LineStyle:function(e,t){var r=(0,x.O)({},we,e,t);if(r){var n=t[t.length-1],i=new g.Z({color:"color"in r?r.color:F,width:"width"in r?r.width:1});n.strokeStyle=i}},PolyStyle:function(e,t){var r=(0,x.O)({},xe,e,t);if(r){var n=t[t.length-1],o=new i.Z({color:"color"in r?r.color:F});n.fillStyle=o;var a=r.fill;void 0!==a&&(n.fill=a);var s=r.outline;void 0!==s&&(n.outline=s)}}});function Ge(e,t){var r=(0,x.O)({},Ne,e,t,this);if(!r)return null;var n,i="fillStyle"in r?r.fillStyle:Q,a=r.fill;void 0===a||a||(i=null),"imageStyle"in r?r.imageStyle!=ee&&(n=r.imageStyle):n=te;var u="textStyle"in r?r.textStyle:ie,l="strokeStyle"in r?r.strokeStyle:ne,c=r.outline;return void 0===c||c?[new b.ZP({fill:i,image:n,stroke:l,text:u,zIndex:void 0})]:[new b.ZP({geometry:function(e){var t=e.getGeometry(),r=t.getType();if(r===s.Z.GEOMETRY_COLLECTION){var n=t;return new o.Z(n.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t!==s.Z.POLYGON&&t!==s.Z.MULTI_POLYGON})))}if(r!==s.Z.POLYGON&&r!==s.Z.MULTI_POLYGON)return t},fill:i,image:n,stroke:l,text:u,zIndex:void 0}),new b.ZP({geometry:function(e){var t=e.getGeometry(),r=t.getType();if(r===s.Z.GEOMETRY_COLLECTION){var n=t;return new o.Z(n.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t===s.Z.POLYGON||t===s.Z.MULTI_POLYGON})))}if(r===s.Z.POLYGON||r===s.Z.MULTI_POLYGON)return t},fill:i,stroke:null,zIndex:void 0})]}function Be(e,t){var r,n,i,o=t.length,a=new Array(t.length),s=new Array(t.length),u=new Array(t.length);r=!1,n=!1,i=!1;for(var l=0;l<o;++l){var c=t[l];a[l]=c.get("extrude"),s[l]=c.get("tessellate"),u[l]=c.get("altitudeMode"),r=r||void 0!==a[l],n=n||void 0!==s[l],i=i||u[l]}r&&e.set("extrude",a),n&&e.set("tessellate",s),i&&e.set("altitudeMode",u)}var ze=(0,x.C5)(V,{displayName:(0,x.Pr)(T.s2),value:(0,x.Pr)(T.s2)});var Ue=(0,x.C5)(V,{Data:function(e,t){var r=e.getAttribute("name");(0,x.T3)(ze,e,t);var n=t[t.length-1];r&&n.displayName?n[r]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:null!==r?n[r]=n.value:null!==n.displayName&&(n[n.displayName]=n.value),delete n.value},SchemaData:function(e,t){(0,x.T3)(Ye,e,t)}});function qe(e,t){(0,x.T3)(Ue,e,t)}function Ve(e,t){(0,x.T3)(H,e,t)}var Xe=(0,x.C5)(V,{Style:(0,x.Pr)(Ge),key:(0,x.Pr)(T.s2),styleUrl:(0,x.Pr)(ye)});var Ye=(0,x.C5)(V,{SimpleData:function(e,t){var r=e.getAttribute("name");if(null!==r){var n=(0,T.s2)(e);t[t.length-1][r]=n}}});var We=(0,x.C5)(V,{altitudeMode:(0,x.Pr)(T.s2),minAltitude:(0,x.Pr)(T.fy),maxAltitude:(0,x.Pr)(T.fy),north:(0,x.Pr)(T.fy),south:(0,x.Pr)(T.fy),east:(0,x.Pr)(T.fy),west:(0,x.Pr)(T.fy)});var Ke=(0,x.C5)(V,{minLodPixels:(0,x.Pr)(T.fy),maxLodPixels:(0,x.Pr)(T.fy),minFadeExtent:(0,x.Pr)(T.fy),maxFadeExtent:(0,x.Pr)(T.fy)});var He=(0,x.C5)(V,{LinearRing:(0,x.Ei)(Oe)});var $e=(0,x.C5)(V,{LinearRing:(0,x.z)(Oe)});function Je(e,t){for(var r=(0,k._2)(t),n=[255*(4==r.length?r[3]:1),r[2],r[1],r[0]],i=0;i<4;++i){var o=Math.floor(n[i]).toString(16);n[i]=1==o.length?"0"+o:o}(0,T.bZ)(e,n.join(""))}var Qe=(0,x.C5)(V,{Data:(0,x.A4)((function(e,t,r){e.setAttribute("name",t.name);var n={node:e},i=t.value;"object"==C(i)?(null!==i&&i.displayName&&(0,x.ZL)(n,Qe,x.hg,[i.displayName],r,["displayName"]),null!==i&&i.value&&(0,x.ZL)(n,Qe,x.hg,[i.value],r,["value"])):(0,x.ZL)(n,Qe,x.hg,[i],r,["value"])})),value:(0,x.A4)((function(e,t){(0,T.bZ)(e,t)})),displayName:(0,x.A4)((function(e,t){(0,T.xO)(e,t)}))});var et=(0,x.C5)(V,{Placemark:(0,x.A4)(St)}),tt=function(e,t,r){var n=t[t.length-1].node;return(0,x.c)(n.namespaceURI,"Placemark")};var rt=(0,x.G3)("Data");var nt=(0,x.C5)(V,["href"],(0,x.C5)(q,["x","y","w","h"])),it=(0,x.C5)(V,{href:(0,x.A4)(T.bZ)},(0,x.C5)(q,{x:(0,x.A4)(T.f3),y:(0,x.A4)(T.f3),w:(0,x.A4)(T.f3),h:(0,x.A4)(T.f3)})),ot=function(e,t,r){return(0,x.c)(q[0],"gx:"+r)};var at=(0,x.C5)(V,["scale","heading","Icon","color","hotSpot"]),st=(0,x.C5)(V,{Icon:(0,x.A4)((function(e,t,r){var n={node:e},i=r[r.length-1].node,o=nt[i.namespaceURI],a=(0,x.RA)(t,o);(0,x.ZL)(n,it,x.hg,a,r,o),o=nt[q[0]],a=(0,x.RA)(t,o),(0,x.ZL)(n,it,ot,a,r,o)})),color:(0,x.A4)(Je),heading:(0,x.A4)(T.f3),hotSpot:(0,x.A4)((function(e,t){e.setAttribute("x",String(t.x)),e.setAttribute("y",String(t.y)),e.setAttribute("xunits",t.xunits),e.setAttribute("yunits",t.yunits)})),scale:(0,x.A4)(Lt)});var ut=(0,x.C5)(V,["color","scale"]),lt=(0,x.C5)(V,{color:(0,x.A4)(Je),scale:(0,x.A4)(Lt)});var ct=(0,x.C5)(V,["color","width"]),ft=(0,x.C5)(V,{color:(0,x.A4)(Je),width:(0,x.A4)(T.f3)});var ht={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},pt=function(e,t,r){if(e){var n=t[t.length-1].node;return(0,x.c)(n.namespaceURI,ht[e.getType()])}},dt=(0,x.G3)("Point"),yt=(0,x.G3)("LineString"),vt=(0,x.G3)("LinearRing"),mt=(0,x.G3)("Polygon"),gt=(0,x.C5)(V,{LineString:(0,x.A4)(Rt),Point:(0,x.A4)(Rt),Polygon:(0,x.A4)(It),GeometryCollection:(0,x.A4)(bt)});function bt(e,t,r){var n,i={node:e},o=t.getType(),a=[];o===s.Z.GEOMETRY_COLLECTION?(t.getGeometriesArrayRecursive().forEach((function(e){var t=e.getType();t===s.Z.MULTI_POINT?a=a.concat(e.getPoints()):t===s.Z.MULTI_LINE_STRING?a=a.concat(e.getLineStrings()):t===s.Z.MULTI_POLYGON?a=a.concat(e.getPolygons()):t===s.Z.POINT||t===s.Z.LINE_STRING||t===s.Z.POLYGON?a.push(e):(0,O.h)(!1,39)})),n=pt):o===s.Z.MULTI_POINT?(a=t.getPoints(),n=dt):o===s.Z.MULTI_LINE_STRING?(a=t.getLineStrings(),n=yt):o===s.Z.MULTI_POLYGON?(a=t.getPolygons(),n=mt):(0,O.h)(!1,39),(0,x.ZL)(i,gt,n,a,r)}var _t=(0,x.C5)(V,{LinearRing:(0,x.A4)(Rt)});function wt(e,t,r){var n={node:e};(0,x.ZL)(n,_t,vt,[t],r)}var xt=(0,x.C5)(V,{ExtendedData:(0,x.A4)((function(e,t,r){for(var n={node:e},i=t.names,o=t.values,a=i.length,s=0;s<a;s++)(0,x.ZL)(n,Qe,rt,[{name:i[s],value:o[s]}],r)})),MultiGeometry:(0,x.A4)(bt),LineString:(0,x.A4)(Rt),LinearRing:(0,x.A4)(Rt),Point:(0,x.A4)(Rt),Polygon:(0,x.A4)(It),Style:(0,x.A4)((function(e,t,r){var n={node:e},i={};if(t.pointStyles.length){var o=t.pointStyles[0].getText();o&&(i.LabelStyle=o);var a=t.pointStyles[0].getImage();a&&"function"==typeof a.getSrc&&(i.IconStyle=a)}if(t.lineStyles.length){var s=t.lineStyles[0].getStroke();s&&(i.LineStyle=s)}if(t.polyStyles.length){var u=t.polyStyles[0].getStroke();u&&!i.LineStyle&&(i.LineStyle=u),i.PolyStyle=t.polyStyles[0]}var l=r[r.length-1].node,c=Dt[l.namespaceURI],f=(0,x.RA)(i,c);(0,x.ZL)(n,Zt,x.hg,f,r,c)})),address:(0,x.A4)(T.bZ),description:(0,x.A4)(T.bZ),name:(0,x.A4)(T.bZ),open:(0,x.A4)(T.Vi),phoneNumber:(0,x.A4)(T.bZ),styleUrl:(0,x.A4)(T.bZ),visibility:(0,x.A4)(T.Vi)}),kt=(0,x.C5)(V,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Ot=(0,x.G3)("ExtendedData");function St(e,t,r){var n={node:e};t.getId()&&e.setAttribute("id",t.getId());var i=t.getProperties(),o={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};o[t.getGeometryName()]=1;var a=Object.keys(i||{}).sort().filter((function(e){return!o[e]})),u=t.getStyleFunction();if(u){var l=u(t,0);if(l){var c=Array.isArray(l)?l:[l],f=c;if(t.getGeometry()&&(f=c.filter((function(e){var r=e.getGeometryFunction()(t);if(r){var n=r.getType();return n===s.Z.GEOMETRY_COLLECTION?r.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t===s.Z.POINT||t===s.Z.MULTI_POINT})).length:n===s.Z.POINT||n===s.Z.MULTI_POINT}}))),this.writeStyles_){var h=c,p=c;t.getGeometry()&&(h=c.filter((function(e){var r=e.getGeometryFunction()(t);if(r){var n=r.getType();return n===s.Z.GEOMETRY_COLLECTION?r.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t===s.Z.LINE_STRING||t===s.Z.MULTI_LINE_STRING})).length:n===s.Z.LINE_STRING||n===s.Z.MULTI_LINE_STRING}})),p=c.filter((function(e){var r=e.getGeometryFunction()(t);if(r){var n=r.getType();return n===s.Z.GEOMETRY_COLLECTION?r.getGeometriesArrayRecursive().filter((function(e){var t=e.getType();return t===s.Z.POLYGON||t===s.Z.MULTI_POLYGON})).length:n===s.Z.POLYGON||n===s.Z.MULTI_POLYGON}}))),i.Style={pointStyles:f,lineStyles:h,polyStyles:p}}if(f.length&&void 0===i.name){var d=f[0].getText();d&&(i.name=d.getText())}}}var y=r[r.length-1].node,v=kt[y.namespaceURI],m=(0,x.RA)(i,v);if((0,x.ZL)(n,xt,x.hg,m,r,v),a.length>0){var g={names:a,values:(0,x.RA)(i,a)};(0,x.ZL)(n,xt,Ot,[g],r)}var b=r[0],_=t.getGeometry();_&&(_=(0,P.fI)(_,!0,b)),(0,x.ZL)(n,xt,pt,[_],r)}var Et=(0,x.C5)(V,["extrude","tessellate","altitudeMode","coordinates"]),Tt=(0,x.C5)(V,{extrude:(0,x.A4)(T.Vi),tessellate:(0,x.A4)(T.Vi),altitudeMode:(0,x.A4)(T.bZ),coordinates:(0,x.A4)((function(e,t,r){var n,i=r[r.length-1],o=i.layout,s=i.stride;o==a.Z.XY||o==a.Z.XYM?n=2:o==a.Z.XYZ||o==a.Z.XYZM?n=3:(0,O.h)(!1,34);var u=t.length,l="";if(u>0){l+=t[0];for(var c=1;c<n;++c)l+=","+t[c];for(var f=s;f<u;f+=s){l+=" "+t[f];for(var h=1;h<n;++h)l+=","+t[f+h]}}(0,T.bZ)(e,l)}))});function Rt(e,t,r){var n=t.getFlatCoordinates(),i={node:e};i.layout=t.getLayout(),i.stride=t.getStride();var o=t.getProperties();o.coordinates=n;var a=r[r.length-1].node,s=Et[a.namespaceURI],u=(0,x.RA)(o,s);(0,x.ZL)(i,Tt,x.hg,u,r,s)}var Pt=(0,x.C5)(V,["color","fill","outline"]),Ct=(0,x.C5)(V,{outerBoundaryIs:(0,x.A4)(wt),innerBoundaryIs:(0,x.A4)(wt)}),Mt=(0,x.G3)("innerBoundaryIs"),jt=(0,x.G3)("outerBoundaryIs");function It(e,t,r){var n=t.getLinearRings(),i=n.shift(),o={node:e};(0,x.ZL)(o,Ct,Mt,n,r),(0,x.ZL)(o,Ct,jt,[i],r)}var At=(0,x.C5)(V,{color:(0,x.A4)(Je),fill:(0,x.A4)(T.Vi),outline:(0,x.A4)(T.Vi)});function Lt(e,t){(0,T.f3)(e,Math.round(1e6*t)/1e6)}var Dt=(0,x.C5)(V,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Zt=(0,x.C5)(V,{IconStyle:(0,x.A4)((function(e,t,r){var n={node:e},i={},o=t.getSrc(),a=t.getSize(),s=t.getImageSize(),u={href:o};if(a){u.w=a[0],u.h=a[1];var c=t.getAnchor(),f=t.getOrigin();if(f&&s&&0!==f[0]&&f[1]!==a[1]&&(u.x=f[0],u.y=s[1]-(f[1]+a[1])),c&&(c[0]!==a[0]/2||c[1]!==a[1]/2)){var h={x:c[0],xunits:l.Z.PIXELS,y:a[1]-c[1],yunits:l.Z.PIXELS};i.hotSpot=h}}i.Icon=u;var p=t.getScaleArray()[0],d=a;null===d&&(d=z),2==d.length&&(p/=ue(d)),1!==p&&(i.scale=p);var y=t.getRotation();0!==y&&(i.heading=y);var v=t.getColor();v&&(i.color=v);var m=r[r.length-1].node,g=at[m.namespaceURI],b=(0,x.RA)(i,g);(0,x.ZL)(n,st,x.hg,b,r,g)})),LabelStyle:(0,x.A4)((function(e,t,r){var n={node:e},i={},o=t.getFill();o&&(i.color=o.getColor());var a=t.getScale();a&&1!==a&&(i.scale=a);var s=r[r.length-1].node,u=ut[s.namespaceURI],l=(0,x.RA)(i,u);(0,x.ZL)(n,lt,x.hg,l,r,u)})),LineStyle:(0,x.A4)((function(e,t,r){var n={node:e},i={color:t.getColor(),width:Number(t.getWidth())||1},o=r[r.length-1].node,a=ct[o.namespaceURI],s=(0,x.RA)(i,a);(0,x.ZL)(n,ft,x.hg,s,r,a)})),PolyStyle:(0,x.A4)((function(e,t,r){var n={node:e},i=t.getFill(),o=t.getStroke(),a={color:i?i.getColor():void 0,fill:!!i&&void 0,outline:!!o&&void 0},s=r[r.length-1].node,u=Pt[s.namespaceURI],l=(0,x.RA)(a,u);(0,x.ZL)(n,At,x.hg,l,r,u)}))});t.ZP=ce},8768:function(e,t,r){"use strict";var n=r(32025),i=r(22662),o=r(25691),a=r(10392),s=r(5265),u=r(88460),l=r(3077),c=r(91988),f=r(72443),h=r(75469),p=r(85528),d=r(62314),y=r(10925),v=r(81834),m=r(90776),g=r(12810),b=r(92621);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(S,e);var t,r,_,O=k(S);function S(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S);var r=e||{};return(t=O.call(this)).dataProjection=new d.Z({code:"",units:v.ZP.TILE_PIXELS}),t.featureClass_=r.featureClass?r.featureClass:y.Z,t.geometryName_=r.geometryName,t.layerName_=r.layerName?r.layerName:"layer",t.layers_=r.layers?r.layers:null,t.idProperty_=r.idProperty,t.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],t}return t=S,(r=[{key:"readRawGeometry_",value:function(e,t,r,n){e.pos=t.geometry;for(var i=e.readVarint()+e.pos,o=1,a=0,s=0,u=0,l=0,c=0;e.pos<i;){if(!a){var f=e.readVarint();o=7&f,a=f>>3}a--,1===o||2===o?(s+=e.readSVarint(),u+=e.readSVarint(),1===o&&l>c&&(n.push(l),c=l),r.push(s,u),l+=2):7===o?l>c&&(r.push(r[c],r[c+1]),l+=2):(0,m.h)(!1,59)}l>c&&(n.push(l),c=l)}},{key:"createFeature_",value:function(e,t,r){var i,f=t.type;if(0===f)return null;var d,v=t.properties;this.idProperty_?(d=v[this.idProperty_],delete v[this.idProperty_]):d=t.id,v[this.layerName_]=t.layer.name;var m=[],g=[];this.readRawGeometry_(e,t,m,g);var _=function(e,t){var r;return 1===e?r=1===t?a.Z.POINT:a.Z.MULTI_POINT:2===e?r=1===t?a.Z.LINE_STRING:a.Z.MULTI_LINE_STRING:3===e&&(r=a.Z.POLYGON),r}(f,g.length);if(this.featureClass_===y.Z)(i=new this.featureClass_(_,m,g,v,d)).transform(r.dataProjection);else{var w;if(_==a.Z.POLYGON){for(var x=[],k=0,O=0,S=0,E=g.length;S<E;++S){var T=g[S];if((0,b.bt)(m,k,T,2)){if(0===x.length)continue;x[x.length-1].push(g[O])}else x.push(g.slice(O,S+1));O=S+1,k=T}w=x.length>1?new c.Z(m,o.Z.XY,x):new p.ZP(m,o.Z.XY,g)}else w=_===a.Z.POINT?new h.Z(m,o.Z.XY):_===a.Z.LINE_STRING?new s.Z(m,o.Z.XY):_===a.Z.POLYGON?new p.ZP(m,o.Z.XY,g):_===a.Z.MULTI_POINT?new l.Z(m,o.Z.XY):_===a.Z.MULTI_LINE_STRING?new u.Z(m,o.Z.XY,g):null;i=new(0,this.featureClass_),this.geometryName_&&i.setGeometryName(this.geometryName_);var R=(0,n.fI)(w,!1,r);i.setGeometry(R),i.setId(d),i.setProperties(v,!0)}return i}},{key:"getType",value:function(){return i.Z.ARRAY_BUFFER}},{key:"readFeatures",value:function(e,t){var r=this.layers_,n=this.adaptOptions(t),i=(0,g.U2)(n.dataProjection);i.setWorldExtent(n.extent),n.dataProjection=i;var o=new f(e),a=o.readFields(T,{}),s=[];for(var u in a)if(!r||-1!=r.indexOf(u)){var l=a[u],c=l?[0,0,l.extent,l.extent]:null;i.setExtent(c);for(var h=0,p=l.length;h<p;++h){var d=C(o,l,h),y=this.createFeature_(o,d,n);null!==y&&s.push(y)}}return s}},{key:"readProjection",value:function(e){return this.dataProjection}},{key:"setLayers",value:function(e){this.layers_=e}}])&&w(t.prototype,r),_&&w(t,_),Object.defineProperty(t,"prototype",{writable:!1}),S}(n.ZP);function T(e,t,r){if(3===e){var n={keys:[],values:[],features:[]},i=r.readVarint()+r.pos;r.readFields(R,n,i),n.length=n.features.length,n.length&&(t[n.name]=n)}}function R(e,t,r){if(15===e)t.version=r.readVarint();else if(1===e)t.name=r.readString();else if(5===e)t.extent=r.readVarint();else if(2===e)t.features.push(r.pos);else if(3===e)t.keys.push(r.readString());else if(4===e){for(var n=null,i=r.readVarint()+r.pos;r.pos<i;)n=1===(e=r.readVarint()>>3)?r.readString():2===e?r.readFloat():3===e?r.readDouble():4===e?r.readVarint64():5===e?r.readVarint():6===e?r.readSVarint():7===e?r.readBoolean():null;t.values.push(n)}}function P(e,t,r){if(1==e)t.id=r.readVarint();else if(2==e)for(var n=r.readVarint()+r.pos;r.pos<n;){var i=t.layer.keys[r.readVarint()],o=t.layer.values[r.readVarint()];t.properties[i]=o}else 3==e?t.type=r.readVarint():4==e&&(t.geometry=r.pos)}function C(e,t,r){e.pos=t.features[r];var n=e.readVarint()+e.pos,i={layer:t,type:0,properties:{}};return e.readFields(P,i,n),i}t.Z=E},59193:function(e,t,r){"use strict";var n=r(32025),i=r(22662),o=r(99382);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this)}return t=c,(r=[{key:"getType",value:function(){return i.Z.TEXT}},{key:"readFeature",value:function(e,t){return this.readFeatureFromText(p(e),this.adaptOptions(t))}},{key:"readFeatureFromText",value:function(e,t){return(0,o.O3)()}},{key:"readFeatures",value:function(e,t){return this.readFeaturesFromText(p(e),this.adaptOptions(t))}},{key:"readFeaturesFromText",value:function(e,t){return(0,o.O3)()}},{key:"readGeometry",value:function(e,t){return this.readGeometryFromText(p(e),this.adaptOptions(t))}},{key:"readGeometryFromText",value:function(e,t){return(0,o.O3)()}},{key:"readProjection",value:function(e){return this.readProjectionFromText(p(e))}},{key:"readProjectionFromText",value:function(e){return this.dataProjection}},{key:"writeFeature",value:function(e,t){return this.writeFeatureText(e,this.adaptOptions(t))}},{key:"writeFeatureText",value:function(e,t){return(0,o.O3)()}},{key:"writeFeatures",value:function(e,t){return this.writeFeaturesText(e,this.adaptOptions(t))}},{key:"writeFeaturesText",value:function(e,t){return(0,o.O3)()}},{key:"writeGeometry",value:function(e,t){return this.writeGeometryText(e,this.adaptOptions(t))}},{key:"writeGeometryText",value:function(e,t){return(0,o.O3)()}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.ZP);function p(e){return"string"==typeof e?e:""}t.Z=h},40985:function(e,t,r){"use strict";var n=r(12739),i=r(64721),o=r(5265),a=r(88460),s=r(3077),u=r(91988),l=r(75469),c=r(85528),f=r(12810),h=r(32025);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,r,n,i=v(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{};return(t=i.call(this)).layerName_=r.layerName,t.layers_=r.layers?r.layers:null,t.dataProjection=(0,f.U2)(r.dataProjection?r.dataProjection:"EPSG:4326"),t}return t=o,(r=[{key:"readFeaturesFromObject",value:function(e,t){if("Topology"==e.type){var r,n=e,i=null,o=null;n.transform&&(i=(r=n.transform).scale,o=r.translate);var a=n.arcs;r&&function(e,t,r){for(var n=0,i=e.length;n<i;++n)O(e[n],t,r)}(a,i,o);var s,u=[],l=n.objects,c=this.layerName_;for(var f in l)this.layers_&&-1==this.layers_.indexOf(f)||("GeometryCollection"===l[f].type?(s=l[f],u.push.apply(u,x(s,a,i,o,c,f,t))):(s=l[f],u.push(k(s,a,i,o,c,f,t))));return u}return[]}},{key:"readProjectionFromObject",value:function(e){return this.dataProjection}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.Z),_={Point:function(e,t,r){var n=e.coordinates;t&&r&&S(n,t,r);return new l.Z(n)},LineString:function(e,t){var r=w(e.arcs,t);return new o.Z(r)},Polygon:function(e,t){for(var r=[],n=0,i=e.arcs.length;n<i;++n)r[n]=w(e.arcs[n],t);return new c.ZP(r)},MultiPoint:function(e,t,r){var n=e.coordinates;if(t&&r)for(var i=0,o=n.length;i<o;++i)S(n[i],t,r);return new s.Z(n)},MultiLineString:function(e,t){for(var r=[],n=0,i=e.arcs.length;n<i;++n)r[n]=w(e.arcs[n],t);return new a.Z(r)},MultiPolygon:function(e,t){for(var r=[],n=0,i=e.arcs.length;n<i;++n){for(var o=e.arcs[n],a=[],s=0,l=o.length;s<l;++s)a[s]=w(o[s],t);r[n]=a}return new u.Z(r)}};function w(e,t){for(var r,n=[],i=0,o=e.length;i<o;++i)if(r=e[i],i>0&&n.pop(),r>=0)for(var a=t[r],s=0,u=a.length;s<u;++s)n.push(a[s].slice(0));else for(var l=t[~r],c=l.length-1;c>=0;--c)n.push(l[c].slice(0));return n}function x(e,t,r,n,i,o,a){for(var s=e.geometries,u=[],l=0,c=s.length;l<c;++l)u[l]=k(s[l],t,r,n,i,o,a);return u}function k(e,t,r,i,o,a,s){var u=null,l=e.type;if(l){var c=_[l];u="Point"===l||"MultiPoint"===l?c(e,r,i):c(e,t),u=(0,h.fI)(u,!1,s)}var f=new n.Z({geometry:u});void 0!==e.id&&f.setId(e.id);var p=e.properties;return o&&(p||(p={}),p[o]=a),p&&f.setProperties(p,!0),f}function O(e,t,r){for(var n=0,i=0,o=0,a=e.length;o<a;++o){var s=e[o];n+=s[0],i+=s[1],s[0]=n,s[1]=i,S(s,t,r)}}function S(e,t,r){e[0]=e[0]*t[0]+r[0],e[1]=e[1]*t[1]+r[1]}t.Z=b},90634:function(e,t,r){"use strict";var n=r(12739),i=r(68675),o=r(25691),a=r(10392),s=r(5265),u=r(88460),l=r(3077),c=r(91988),f=r(75469),h=r(85528),p=r(59193),d=r(32025);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var k={POINT:f.Z,LINESTRING:s.Z,POLYGON:h.ZP,MULTIPOINT:l.Z,MULTILINESTRING:u.Z,MULTIPOLYGON:c.Z},O="EMPTY",S=0,E=1,T=2,R=3,P=4,C=5,M=6,j={};for(var I in a.Z)j[I]=a.Z[I].toUpperCase();var A=function(){function e(t){_(this,e),this.wkt=t,this.index_=-1}return x(e,[{key:"isAlpha_",value:function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}},{key:"isNumeric_",value:function(e,t){return e>="0"&&e<="9"||"."==e&&!(void 0!==t&&t)}},{key:"isWhiteSpace_",value:function(e){return" "==e||"\t"==e||"\r"==e||"\n"==e}},{key:"nextChar_",value:function(){return this.wkt.charAt(++this.index_)}},{key:"nextToken",value:function(){var e,t=this.nextChar_(),r=this.index_,n=t;if("("==t)e=T;else if(","==t)e=C;else if(")"==t)e=R;else if(this.isNumeric_(t)||"-"==t)e=P,n=this.readNumber_();else if(this.isAlpha_(t))e=E,n=this.readText_();else{if(this.isWhiteSpace_(t))return this.nextToken();if(""!==t)throw new Error("Unexpected character: "+t);e=M}return{position:r,value:n,type:e}}},{key:"readNumber_",value:function(){var e,t=this.index_,r=!1,n=!1;do{"."==e?r=!0:"e"!=e&&"E"!=e||(n=!0),e=this.nextChar_()}while(this.isNumeric_(e,r)||!n&&("e"==e||"E"==e)||n&&("-"==e||"+"==e));return parseFloat(this.wkt.substring(t,this.index_--))}},{key:"readText_",value:function(){var e,t=this.index_;do{e=this.nextChar_()}while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()}}]),e}(),L=function(){function e(t){_(this,e),this.lexer_=t,this.token_={position:0,type:S},this.layout_=o.Z.XY}return x(e,[{key:"consume_",value:function(){this.token_=this.lexer_.nextToken()}},{key:"isTokenType",value:function(e){return this.token_.type==e}},{key:"match",value:function(e){var t=this.isTokenType(e);return t&&this.consume_(),t}},{key:"parse",value:function(){return this.consume_(),this.parseGeometry_()}},{key:"parseGeometryLayout_",value:function(){var e=o.Z.XY,t=this.token_;if(this.isTokenType(E)){var r=t.value;"Z"===r?e=o.Z.XYZ:"M"===r?e=o.Z.XYM:"ZM"===r&&(e=o.Z.XYZM),e!==o.Z.XY&&this.consume_()}return e}},{key:"parseGeometryCollectionText_",value:function(){if(this.match(T)){var e=[];do{e.push(this.parseGeometry_())}while(this.match(C));if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parsePointText_",value:function(){if(this.match(T)){var e=this.parsePoint_();if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parseLineStringText_",value:function(){if(this.match(T)){var e=this.parsePointList_();if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parsePolygonText_",value:function(){if(this.match(T)){var e=this.parseLineStringTextList_();if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPointText_",value:function(){var e;if(this.match(T)&&(e=this.token_.type==T?this.parsePointTextList_():this.parsePointList_(),this.match(R)))return e;throw new Error(this.formatErrorMessage_())}},{key:"parseMultiLineStringText_",value:function(){if(this.match(T)){var e=this.parseLineStringTextList_();if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPolygonText_",value:function(){if(this.match(T)){var e=this.parsePolygonTextList_();if(this.match(R))return e}throw new Error(this.formatErrorMessage_())}},{key:"parsePoint_",value:function(){for(var e=[],t=this.layout_.length,r=0;r<t;++r){var n=this.token_;if(!this.match(P))break;e.push(n.value)}if(e.length==t)return e;throw new Error(this.formatErrorMessage_())}},{key:"parsePointList_",value:function(){for(var e=[this.parsePoint_()];this.match(C);)e.push(this.parsePoint_());return e}},{key:"parsePointTextList_",value:function(){for(var e=[this.parsePointText_()];this.match(C);)e.push(this.parsePointText_());return e}},{key:"parseLineStringTextList_",value:function(){for(var e=[this.parseLineStringText_()];this.match(C);)e.push(this.parseLineStringText_());return e}},{key:"parsePolygonTextList_",value:function(){for(var e=[this.parsePolygonText_()];this.match(C);)e.push(this.parsePolygonText_());return e}},{key:"isEmptyGeometry_",value:function(){var e=this.isTokenType(E)&&this.token_.value==O;return e&&this.consume_(),e}},{key:"formatErrorMessage_",value:function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}},{key:"parseGeometry_",value:function(){var e=this.token_;if(this.match(E)){var t=e.value;this.layout_=this.parseGeometryLayout_();var r=this.isEmptyGeometry_();if("GEOMETRYCOLLECTION"==t){if(r)return new i.Z([]);var n=this.parseGeometryCollectionText_();return new i.Z(n)}var o,a=k[t];if(!a)throw new Error("Invalid geometry type: "+t);if(r)o="POINT"==t?[NaN,NaN]:[];else switch(t){case"POINT":o=this.parsePointText_();break;case"LINESTRING":o=this.parseLineStringText_();break;case"POLYGON":o=this.parsePolygonText_();break;case"MULTIPOINT":o=this.parseMultiPointText_();break;case"MULTILINESTRING":o=this.parseMultiLineStringText_();break;case"MULTIPOLYGON":o=this.parseMultiPolygonText_()}return new a(o,this.layout_)}throw new Error(this.formatErrorMessage_())}}]),e}(),D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(r,e);var t=m(r);function r(e){var n;_(this,r);var i=e||{};return(n=t.call(this)).splitCollection_=void 0!==i.splitCollection&&i.splitCollection,n}return x(r,[{key:"parse_",value:function(e){var t=new A(e);return new L(t).parse()}},{key:"readFeatureFromText",value:function(e,t){var r=this.readGeometryFromText(e,t),i=new n.Z;return i.setGeometry(r),i}},{key:"readFeaturesFromText",value:function(e,t){for(var r=[],i=this.readGeometryFromText(e,t),o=[],s=0,u=(r=this.splitCollection_&&i.getType()==a.Z.GEOMETRY_COLLECTION?i.getGeometriesArray():[i]).length;s<u;++s){var l=new n.Z;l.setGeometry(r[s]),o.push(l)}return o}},{key:"readGeometryFromText",value:function(e,t){var r=this.parse_(e);return(0,d.fI)(r,!1,t)}},{key:"writeFeatureText",value:function(e,t){var r=e.getGeometry();return r?this.writeGeometryText(r,t):""}},{key:"writeFeaturesText",value:function(e,t){if(1==e.length)return this.writeFeatureText(e[0],t);for(var r=[],n=0,o=e.length;n<o;++n)r.push(e[n].getGeometry());var a=new i.Z(r);return this.writeGeometryText(a,t)}},{key:"writeGeometryText",value:function(e,t){return B((0,d.fI)(e,!0,t))}}]),r}(p.Z);function Z(e){var t=e.getCoordinates();return 0===t.length?"":t.join(" ")}function F(e){for(var t=e.getCoordinates(),r=[],n=0,i=t.length;n<i;++n)r.push(t[n].join(" "));return r.join(",")}function N(e){for(var t=[],r=e.getLinearRings(),n=0,i=r.length;n<i;++n)t.push("("+F(r[n])+")");return t.join(",")}var G={Point:Z,LineString:F,Polygon:N,MultiPoint:function(e){for(var t=[],r=e.getPoints(),n=0,i=r.length;n<i;++n)t.push("("+Z(r[n])+")");return t.join(",")},MultiLineString:function(e){for(var t=[],r=e.getLineStrings(),n=0,i=r.length;n<i;++n)t.push("("+F(r[n])+")");return t.join(",")},MultiPolygon:function(e){for(var t=[],r=e.getPolygons(),n=0,i=r.length;n<i;++n)t.push("("+N(r[n])+")");return t.join(",")},GeometryCollection:function(e){for(var t=[],r=e.getGeometries(),n=0,i=r.length;n<i;++n)t.push(B(r[n]));return t.join(",")}};function B(e){var t=e.getType(),r=(0,G[t])(e);if(t=t.toUpperCase(),"function"==typeof e.getFlatCoordinates){var n=function(e){var t=e.getLayout(),r="";return t!==o.Z.XYZ&&t!==o.Z.XYZM||(r+="Z"),t!==o.Z.XYM&&t!==o.Z.XYZM||(r+="M"),r}(e);n.length>0&&(t+=" "+n)}return 0===r.length?t+" "+O:t+"("+r+")"}t.Z=D},49912:function(e,t,r){"use strict";r.d(t,{Z:function(){return Q}});var n=r(3949),i=r(28082),o=r(65617),a=r(4750);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=[null,"http://www.opengis.net/ows/1.1"],d=(0,i.C5)(p,{ServiceIdentification:(0,i.Pr)((function(e,t){return(0,i.O)({},T,e,t)})),ServiceProvider:(0,i.Pr)((function(e,t){return(0,i.O)({},R,e,t)})),OperationsMetadata:(0,i.Pr)((function(e,t){return(0,i.O)({},k,e,t)}))}),y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(a,e);var t,r,n,o=c(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this)}return t=a,(r=[{key:"readFromNode",value:function(e){var t=(0,i.O)({},d,e,[]);return t||null}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Z),v=(0,i.C5)(p,{DeliveryPoint:(0,i.Pr)(a.s2),City:(0,i.Pr)(a.s2),AdministrativeArea:(0,i.Pr)(a.s2),PostalCode:(0,i.Pr)(a.s2),Country:(0,i.Pr)(a.s2),ElectronicMailAddress:(0,i.Pr)(a.s2)}),m=(0,i.C5)(p,{Value:(0,i.ke)((function(e,t){return(0,a.s2)(e)}))}),g=(0,i.C5)(p,{AllowedValues:(0,i.Pr)((function(e,t){return(0,i.O)({},m,e,t)}))}),b=(0,i.C5)(p,{Phone:(0,i.Pr)((function(e,t){return(0,i.O)({},O,e,t)})),Address:(0,i.Pr)((function(e,t){return(0,i.O)({},v,e,t)}))}),_=(0,i.C5)(p,{HTTP:(0,i.Pr)((function(e,t){return(0,i.O)({},w,e,t)}))}),w=(0,i.C5)(p,{Get:(0,i.ke)((function(e,t){var r=(0,o.Q)(e);if(!r)return;return(0,i.O)({href:r},S,e,t)})),Post:void 0}),x=(0,i.C5)(p,{DCP:(0,i.Pr)((function(e,t){return(0,i.O)({},_,e,t)}))}),k=(0,i.C5)(p,{Operation:function(e,t){var r=e.getAttribute("name"),n=(0,i.O)({},x,e,t);if(!n)return;t[t.length-1][r]=n}}),O=(0,i.C5)(p,{Voice:(0,i.Pr)(a.s2),Facsimile:(0,i.Pr)(a.s2)}),S=(0,i.C5)(p,{Constraint:(0,i.ke)((function(e,t){var r=e.getAttribute("name");if(!r)return;return(0,i.O)({name:r},g,e,t)}))}),E=(0,i.C5)(p,{IndividualName:(0,i.Pr)(a.s2),PositionName:(0,i.Pr)(a.s2),ContactInfo:(0,i.Pr)((function(e,t){return(0,i.O)({},b,e,t)}))}),T=(0,i.C5)(p,{Abstract:(0,i.Pr)(a.s2),AccessConstraints:(0,i.Pr)(a.s2),Fees:(0,i.Pr)(a.s2),Title:(0,i.Pr)(a.s2),ServiceTypeVersion:(0,i.Pr)(a.s2),ServiceType:(0,i.Pr)(a.s2)}),R=(0,i.C5)(p,{ProviderName:(0,i.Pr)(a.s2),ProviderSite:(0,i.Pr)(o.Q),ServiceContact:(0,i.Pr)((function(e,t){return(0,i.O)({},E,e,t)}))});var P=y,C=r(86923);function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return L(this,r)}}function L(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=[null,"http://www.opengis.net/wmts/1.0"],F=[null,"http://www.opengis.net/ows/1.1"],N=(0,i.C5)(Z,{Contents:(0,i.Pr)((function(e,t){return(0,i.O)({},B,e,t)}))}),G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(a,e);var t,r,n,o=A(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).owsParser_=new P,e}return t=a,(r=[{key:"readFromNode",value:function(e){var t=e.getAttribute("version");t&&(t=t.trim());var r=this.owsParser_.readFromNode(e);return r?(r.version=t,(r=(0,i.O)(r,N,e,[]))||null):null}}])&&j(t.prototype,r),n&&j(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Z),B=(0,i.C5)(Z,{Layer:(0,i.ke)((function(e,t){return(0,i.O)({},z,e,t)})),TileMatrixSet:(0,i.ke)((function(e,t){return(0,i.O)({},K,e,t)}))}),z=(0,i.C5)(Z,{Style:(0,i.ke)((function(e,t){var r=(0,i.O)({},U,e,t);if(!r)return;var n="true"===e.getAttribute("isDefault");return r.isDefault=n,r})),Format:(0,i.ke)(a.s2),TileMatrixSetLink:(0,i.ke)((function(e,t){return(0,i.O)({},q,e,t)})),Dimension:(0,i.ke)((function(e,t){return(0,i.O)({},Y,e,t)})),ResourceURL:(0,i.ke)((function(e,t){var r=e.getAttribute("format"),n=e.getAttribute("template"),i=e.getAttribute("resourceType"),o={};r&&(o.format=r);n&&(o.template=n);i&&(o.resourceType=i);return o}))},(0,i.C5)(F,{Title:(0,i.Pr)(a.s2),Abstract:(0,i.Pr)(a.s2),WGS84BoundingBox:(0,i.Pr)($),Identifier:(0,i.Pr)(a.s2)})),U=(0,i.C5)(Z,{LegendURL:(0,i.ke)((function(e,t){var r={};return r.format=e.getAttribute("format"),r.href=(0,o.Q)(e),r}))},(0,i.C5)(F,{Title:(0,i.Pr)(a.s2),Identifier:(0,i.Pr)(a.s2)})),q=(0,i.C5)(Z,{TileMatrixSet:(0,i.Pr)(a.s2),TileMatrixSetLimits:(0,i.Pr)((function(e,t){return(0,i.O)([],V,e,t)}))}),V=(0,i.C5)(Z,{TileMatrixLimits:(0,i.Ei)((function(e,t){return(0,i.O)({},X,e,t)}))}),X=(0,i.C5)(Z,{TileMatrix:(0,i.Pr)(a.s2),MinTileRow:(0,i.Pr)(a.$L),MaxTileRow:(0,i.Pr)(a.$L),MinTileCol:(0,i.Pr)(a.$L),MaxTileCol:(0,i.Pr)(a.$L)}),Y=(0,i.C5)(Z,{Default:(0,i.Pr)(a.s2),Value:(0,i.ke)(a.s2)},(0,i.C5)(F,{Identifier:(0,i.Pr)(a.s2)})),W=(0,i.C5)(F,{LowerCorner:(0,i.Ei)(J),UpperCorner:(0,i.Ei)(J)}),K=(0,i.C5)(Z,{WellKnownScaleSet:(0,i.Pr)(a.s2),TileMatrix:(0,i.ke)((function(e,t){return(0,i.O)({},H,e,t)}))},(0,i.C5)(F,{SupportedCRS:(0,i.Pr)(a.s2),Identifier:(0,i.Pr)(a.s2),BoundingBox:(0,i.Pr)($)})),H=(0,i.C5)(Z,{TopLeftCorner:(0,i.Pr)(J),ScaleDenominator:(0,i.Pr)(a.fy),TileWidth:(0,i.Pr)(a.$L),TileHeight:(0,i.Pr)(a.$L),MatrixWidth:(0,i.Pr)(a.$L),MatrixHeight:(0,i.Pr)(a.$L)},(0,i.C5)(F,{Identifier:(0,i.Pr)(a.s2)}));function $(e,t){var r=(0,i.O)([],W,e,t);if(2==r.length)return(0,C.hI)(r)}function J(e,t){var r=(0,a.s2)(e).split(/\s+/);if(r&&2==r.length){var n=+r[0],i=+r[1];if(!isNaN(n)&&!isNaN(i))return[n,i]}}var Q=G},3949:function(e,t,r){"use strict";var n=r(28082);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"read",value:function(e){if(e){if("string"==typeof e){var t=(0,n.Qc)(e);return this.readFromDocument(t)}return(0,n.qk)(e)?this.readFromDocument(e):this.readFromNode(e)}return null}},{key:"readFromDocument",value:function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFromNode(t);return null}},{key:"readFromNode",value:function(e){}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=o},42865:function(e,t,r){"use strict";var n=r(32025),i=r(22662),o=r(99382),a=r(17985),s=r(28082);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,n,u=f(h);function h(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(e=u.call(this)).xmlSerializer_=(0,s.xc)(),e}return t=h,(r=[{key:"getType",value:function(){return i.Z.XML}},{key:"readFeature",value:function(e,t){if(e){if("string"==typeof e){var r=(0,s.Qc)(e);return this.readFeatureFromDocument(r,t)}return(0,s.qk)(e)?this.readFeatureFromDocument(e,t):this.readFeatureFromNode(e,t)}return null}},{key:"readFeatureFromDocument",value:function(e,t){var r=this.readFeaturesFromDocument(e,t);return r.length>0?r[0]:null}},{key:"readFeatureFromNode",value:function(e,t){return null}},{key:"readFeatures",value:function(e,t){if(e){if("string"==typeof e){var r=(0,s.Qc)(e);return this.readFeaturesFromDocument(r,t)}return(0,s.qk)(e)?this.readFeaturesFromDocument(e,t):this.readFeaturesFromNode(e,t)}return[]}},{key:"readFeaturesFromDocument",value:function(e,t){for(var r=[],n=e.firstChild;n;n=n.nextSibling)n.nodeType==Node.ELEMENT_NODE&&(0,a.l7)(r,this.readFeaturesFromNode(n,t));return r}},{key:"readFeaturesFromNode",value:function(e,t){return(0,o.O3)()}},{key:"readGeometry",value:function(e,t){if(e){if("string"==typeof e){var r=(0,s.Qc)(e);return this.readGeometryFromDocument(r,t)}return(0,s.qk)(e)?this.readGeometryFromDocument(e,t):this.readGeometryFromNode(e,t)}return null}},{key:"readGeometryFromDocument",value:function(e,t){return null}},{key:"readGeometryFromNode",value:function(e,t){return null}},{key:"readProjection",value:function(e){if(e){if("string"==typeof e){var t=(0,s.Qc)(e);return this.readProjectionFromDocument(t)}return(0,s.qk)(e)?this.readProjectionFromDocument(e):this.readProjectionFromNode(e)}return null}},{key:"readProjectionFromDocument",value:function(e){return this.dataProjection}},{key:"readProjectionFromNode",value:function(e){return this.dataProjection}},{key:"writeFeature",value:function(e,t){var r=this.writeFeatureNode(e,t);return this.xmlSerializer_.serializeToString(r)}},{key:"writeFeatureNode",value:function(e,t){return null}},{key:"writeFeatures",value:function(e,t){var r=this.writeFeaturesNode(e,t);return this.xmlSerializer_.serializeToString(r)}},{key:"writeFeaturesNode",value:function(e,t){return null}},{key:"writeGeometry",value:function(e,t){var r=this.writeGeometryNode(e,t);return this.xmlSerializer_.serializeToString(r)}},{key:"writeGeometryNode",value:function(e,t){return null}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.ZP);t.Z=d},65617:function(e,t,r){"use strict";r.d(t,{Q:function(){return n}});function n(e){return e.getAttributeNS("http://www.w3.org/1999/xlink","href")}},4750:function(e,t,r){"use strict";r.d(t,{ud:function(){return o},v$:function(){return a},x7:function(){return s},fy:function(){return u},ej:function(){return l},$L:function(){return c},_E:function(){return f},s2:function(){return h},Vi:function(){return p},xO:function(){return d},hv:function(){return y},f3:function(){return v},JD:function(){return m},bZ:function(){return g}});var n=r(28082),i=r(26094);function o(e){return a((0,n.Ve)(e,!1))}function a(e){var t=/^\s*(true|1)|(false|0)\s*$/.exec(e);return t?void 0!==t[1]||!1:void 0}function s(e){var t=(0,n.Ve)(e,!1),r=Date.parse(t);return isNaN(r)?void 0:r/1e3}function u(e){return l((0,n.Ve)(e,!1))}function l(e){var t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(e);return t?parseFloat(t[1]):void 0}function c(e){return f((0,n.Ve)(e,!1))}function f(e){var t=/^\s*(\d+)\s*$/.exec(e);return t?parseInt(t[1],10):void 0}function h(e){return(0,n.Ve)(e,!1).trim()}function p(e,t){g(e,t?"1":"0")}function d(e,t){e.appendChild((0,n.Me)().createCDATASection(t))}function y(e,t){var r=new Date(1e3*t),o=r.getUTCFullYear()+"-"+(0,i.v)(r.getUTCMonth()+1,2)+"-"+(0,i.v)(r.getUTCDate(),2)+"T"+(0,i.v)(r.getUTCHours(),2)+":"+(0,i.v)(r.getUTCMinutes(),2)+":"+(0,i.v)(r.getUTCSeconds(),2)+"Z";e.appendChild((0,n.Me)().createTextNode(o))}function v(e,t){var r=t.toPrecision();e.appendChild((0,n.Me)().createTextNode(r))}function m(e,t){var r=t.toString();e.appendChild((0,n.Me)().createTextNode(r))}function g(e,t){e.appendChild((0,n.Me)().createTextNode(t))}},13837:function(e,t,r){"use strict";r.d(t,{uX:function(){return i},Dv:function(){return o},Zn:function(){return a},qe:function(){return s},Vi:function(){return u}});var n=r(17985);function i(){return!0}function o(){return!1}function a(){}function s(e){var t,r,i,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===i&&(0,n.fS)(a,r)||(o=!0,i=this,r=a,t=e.apply(this,arguments)),t}}function u(e){return function(){var t;try{t=e()}catch(e){return Promise.reject(e)}return t instanceof Promise?t:Promise.resolve(t)}()}},64132:function(e,t,r){"use strict";var n=r(10392),i=r(86877),o=r(86923),a=r(60217),s=r(13698);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,i,u=f(h);function h(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),n=u.call(this),void 0!==r&&void 0===t)n.setFlatCoordinates(r,e);else{var i=t||0;n.setCenterAndRadius(e,i,r)}return n}return t=h,(r=[{key:"clone",value:function(){var e=new h(this.flatCoordinates.slice(),void 0,this.layout);return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){var i=this.flatCoordinates,o=e-i[0],a=t-i[1],s=o*o+a*a;if(s<n){if(0===s)for(var u=0;u<this.stride;++u)r[u]=i[u];else{var l=this.getRadius()/Math.sqrt(s);r[0]=i[0]+l*o,r[1]=i[1]+l*a;for(var c=2;c<this.stride;++c)r[c]=i[c]}return r.length=this.stride,s}return n}},{key:"containsXY",value:function(e,t){var r=this.flatCoordinates,n=e-r[0],i=t-r[1];return n*n+i*i<=this.getRadiusSquared_()}},{key:"getCenter",value:function(){return this.flatCoordinates.slice(0,this.stride)}},{key:"computeExtent",value:function(e){var t=this.flatCoordinates,r=t[this.stride]-t[0];return(0,o.T9)(t[0]-r,t[1]-r,t[0]+r,t[1]+r,e)}},{key:"getRadius",value:function(){return Math.sqrt(this.getRadiusSquared_())}},{key:"getRadiusSquared_",value:function(){var e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t}},{key:"getType",value:function(){return n.Z.CIRCLE}},{key:"intersectsExtent",value:function(e){var t=this.getExtent();if((0,o.kK)(e,t)){var r=this.getCenter();return e[0]<=r[0]&&e[2]>=r[0]||e[1]<=r[1]&&e[3]>=r[1]||(0,o.H6)(e,this.intersectsCoordinate.bind(this))}return!1}},{key:"setCenter",value:function(e){var t=this.stride,r=this.flatCoordinates[t]-this.flatCoordinates[0],n=e.slice();n[t]=n[0]+r;for(var i=1;i<t;++i)n[t+i]=e[i];this.setFlatCoordinates(this.layout,n),this.changed()}},{key:"setCenterAndRadius",value:function(e,t,r){this.setLayout(r,e,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,i=(0,a.IG)(n,0,e,this.stride);n[i++]=n[0]+t;for(var o=1,s=this.stride;o<s;++o)n[i++]=n[o];n.length=i,this.changed()}},{key:"getCoordinates",value:function(){return null}},{key:"setCoordinates",value:function(e,t){}},{key:"setRadius",value:function(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()}},{key:"rotate",value:function(e,t){var r=this.getCenter(),n=this.getStride();this.setCenter((0,s.U1)(r,0,r.length,n,e,t,r)),this.changed()}},{key:"translate",value:function(e,t){var r=this.getCenter(),n=this.getStride();this.setCenter((0,s.Iu)(r,0,r.length,n,e,t,r)),this.changed()}}])&&l(t.prototype,r),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.ZP);d.prototype.transform,t.Z=d},43189:function(e,t,r){"use strict";var n=r(80157),i=r(81834),o=r(99382),a=r(19329),s=r(86923),u=r(12810),l=r(13837),c=r(13698);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=(0,a.Ue)(),g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,n,f=d(y);function y(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(e=f.call(this)).extent_=(0,s.lJ)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=(0,l.qe)((function(e,t,r){if(!r)return this.getSimplifiedGeometry(t);var n=this.clone();return n.applyTransform(r),n.getSimplifiedGeometry(t)})),e}return t=y,(r=[{key:"simplifyTransformed",value:function(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}},{key:"clone",value:function(){return(0,o.O3)()}},{key:"closestPointXY",value:function(e,t,r,n){return(0,o.O3)()}},{key:"containsXY",value:function(e,t){var r=this.getClosestPoint([e,t]);return r[0]===e&&r[1]===t}},{key:"getClosestPoint",value:function(e,t){var r=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],r,1/0),r}},{key:"intersectsCoordinate",value:function(e){return this.containsXY(e[0],e[1])}},{key:"computeExtent",value:function(e){return(0,o.O3)()}},{key:"getExtent",value:function(e){if(this.extentRevision_!=this.getRevision()){var t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,s.YN)(t),this.extentRevision_=this.getRevision()}return(0,s.EO)(this.extent_,e)}},{key:"rotate",value:function(e,t){(0,o.O3)()}},{key:"scale",value:function(e,t,r){(0,o.O3)()}},{key:"simplify",value:function(e){return this.getSimplifiedGeometry(e*e)}},{key:"getSimplifiedGeometry",value:function(e){return(0,o.O3)()}},{key:"getType",value:function(){return(0,o.O3)()}},{key:"applyTransform",value:function(e){(0,o.O3)()}},{key:"intersectsExtent",value:function(e){return(0,o.O3)()}},{key:"translate",value:function(e,t){(0,o.O3)()}},{key:"transform",value:function(e,t){var r=(0,u.U2)(e),n=r.getUnits()==i.ZP.TILE_PIXELS?function(e,n,i){var o=r.getExtent(),l=r.getWorldExtent(),f=(0,s.Cr)(l)/(0,s.Cr)(o);return(0,a.qC)(m,l[0],l[3],f,-f,0,0,0),(0,c.vT)(e,0,e.length,i,m,n),(0,u.Ck)(r,t)(e,n,i)}:(0,u.Ck)(r,t);return this.applyTransform(n),this}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);t.Z=g},68675:function(e,t,r){"use strict";var n=r(6566),i=r(43189),o=r(10392),a=r(86923),s=r(12016);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=f(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(f,e);var t,r,i,u=p(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this)).geometries_=e||null,t.changeEventsKeys_=[],t.listenGeometriesChange_(),t}return t=f,(r=[{key:"unlistenGeometriesChange_",value:function(){this.changeEventsKeys_.forEach(s.bN),this.changeEventsKeys_.length=0}},{key:"listenGeometriesChange_",value:function(){if(this.geometries_)for(var e=0,t=this.geometries_.length;e<t;++e)this.changeEventsKeys_.push((0,s.oL)(this.geometries_[e],n.Z.CHANGE,this.changed,this))}},{key:"clone",value:function(){var e=new f(null);return e.setGeometries(this.geometries_),e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){if(n<(0,a.qf)(this.getExtent(),e,t))return n;for(var i=this.geometries_,o=0,s=i.length;o<s;++o)n=i[o].closestPointXY(e,t,r,n);return n}},{key:"containsXY",value:function(e,t){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(e,t))return!0;return!1}},{key:"computeExtent",value:function(e){(0,a.YN)(e);for(var t=this.geometries_,r=0,n=t.length;r<n;++r)(0,a.l7)(e,t[r].getExtent());return e}},{key:"getGeometries",value:function(){return m(this.geometries_)}},{key:"getGeometriesArray",value:function(){return this.geometries_}},{key:"getGeometriesArrayRecursive",value:function(){for(var e=[],t=this.geometries_,r=0,n=t.length;r<n;++r)t[r].getType()===this.getType()?e=e.concat(t[r].getGeometriesArrayRecursive()):e.push(t[r]);return e}},{key:"getSimplifiedGeometry",value:function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var t=[],r=this.geometries_,n=!1,i=0,o=r.length;i<o;++i){var a=r[i],s=a.getSimplifiedGeometry(e);t.push(s),s!==a&&(n=!0)}if(n){var u=new f(null);return u.setGeometriesArray(t),u}return this.simplifiedGeometryMaxMinSquaredTolerance=e,this}},{key:"getType",value:function(){return o.Z.GEOMETRY_COLLECTION}},{key:"intersectsExtent",value:function(e){for(var t=this.geometries_,r=0,n=t.length;r<n;++r)if(t[r].intersectsExtent(e))return!0;return!1}},{key:"isEmpty",value:function(){return 0===this.geometries_.length}},{key:"rotate",value:function(e,t){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(e,t);this.changed()}},{key:"scale",value:function(e,t,r){var n=r;n||(n=(0,a.qg)(this.getExtent()));for(var i=this.geometries_,o=0,s=i.length;o<s;++o)i[o].scale(e,t,n);this.changed()}},{key:"setGeometries",value:function(e){this.setGeometriesArray(m(e))}},{key:"setGeometriesArray",value:function(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}},{key:"applyTransform",value:function(e){for(var t=this.geometries_,r=0,n=t.length;r<n;++r)t[r].applyTransform(e);this.changed()}},{key:"translate",value:function(e,t){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(e,t);this.changed()}},{key:"disposeInternal",value:function(){this.unlistenGeometriesChange_(),c(y(f.prototype),"disposeInternal",this).call(this)}}])&&l(t.prototype,r),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Z);function m(e){for(var t=[],r=0,n=e.length;r<n;++r)t.push(e[r].clone());return t}t.Z=v},25691:function(e,t){"use strict";t.Z={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},10392:function(e,t){"use strict";t.Z={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},5265:function(e,t,r){"use strict";var n=r(25691),i=r(10392),o=r(86877),a=r(33323),s=r(86923),u=r(60217),l=r(90615),c=r(17985),f=r(2387),h=r(55721),p=r(51585),d=r(98184),y=r(7807);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(_,e);var t,r,o,v=b(_);function _(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(r=v.call(this)).flatMidpoint_=null,r.flatMidpointRevision_=-1,r.maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?r.setCoordinates(e,t):r.setFlatCoordinates(t,e),r}return t=_,(r=[{key:"appendCoordinate",value:function(e){this.flatCoordinates?(0,c.l7)(this.flatCoordinates,e):this.flatCoordinates=e.slice(),this.changed()}},{key:"clone",value:function(){var e=new _(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){return n<(0,s.qf)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,r,n))}},{key:"forEachSegment",value:function(e){return(0,f.E)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}},{key:"getCoordinateAtM",value:function(e,t){if(this.layout!=n.Z.XYM&&this.layout!=n.Z.XYZM)return null;var r=void 0!==t&&t;return(0,p.iJ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,r)}},{key:"getCoordinates",value:function(){return(0,h.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}},{key:"getCoordinateAt",value:function(e,t){return(0,p.WW)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}},{key:"getLength",value:function(){return(0,y.W)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}},{key:"getFlatMidpoint",value:function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}},{key:"getSimplifiedGeometryInternal",value:function(e){var t=[];return t.length=(0,l.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new _(t,n.Z.XY)}},{key:"getType",value:function(){return i.Z.LINE_STRING}},{key:"intersectsExtent",value:function(e){return(0,d.Kz)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,u.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()}}])&&m(t.prototype,r),o&&m(t,o),Object.defineProperty(t,"prototype",{writable:!1}),_}(o.ZP);t.Z=x},48189:function(e,t,r){"use strict";var n=r(25691),i=r(10392),o=r(86877),a=r(33323),s=r(86923),u=r(60217),l=r(90615),c=r(55721),f=r(96221);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(v,e);var t,r,o,h=y(v);function v(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(r=h.call(this)).maxDelta_=-1,r.maxDeltaRevision_=-1,void 0===t||Array.isArray(e[0])?r.setCoordinates(e,t):r.setFlatCoordinates(t,e),r}return t=v,(r=[{key:"clone",value:function(){return new v(this.flatCoordinates.slice(),this.layout)}},{key:"closestPointXY",value:function(e,t,r,n){return n<(0,s.qf)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,a.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,a.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,r,n))}},{key:"getArea",value:function(){return(0,f.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}},{key:"getCoordinates",value:function(){return(0,c.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}},{key:"getSimplifiedGeometryInternal",value:function(e){var t=[];return t.length=(0,l.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,0),new v(t,n.Z.XY)}},{key:"getType",value:function(){return i.Z.LINEAR_RING}},{key:"intersectsExtent",value:function(e){return!1}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,u.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()}}])&&p(t.prototype,r),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.ZP);t.Z=g},88460:function(e,t,r){"use strict";var n=r(25691),i=r(10392),o=r(5265),a=r(86877),s=r(33323),u=r(86923),l=r(60217),c=r(90615),f=r(17985),h=r(55721),p=r(51585),d=r(98184);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(b,e);var t,r,a,y=g(b);function b(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(n=y.call(this)).ends_=[],n.maxDelta_=-1,n.maxDeltaRevision_=-1,Array.isArray(e[0]))n.setCoordinates(e,t);else if(void 0!==t&&r)n.setFlatCoordinates(t,e),n.ends_=r;else{for(var i=n.getLayout(),o=e,a=[],s=[],u=0,l=o.length;u<l;++u){var c=o[u];0===u&&(i=c.getLayout()),(0,f.l7)(a,c.getFlatCoordinates()),s.push(a.length)}n.setFlatCoordinates(i,a),n.ends_=s}return n}return t=b,(r=[{key:"appendLineString",value:function(e){this.flatCoordinates?(0,f.l7)(this.flatCoordinates,e.getFlatCoordinates().slice()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}},{key:"clone",value:function(){var e=new b(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){return n<(0,u.qf)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,s.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,s.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,e,t,r,n))}},{key:"getCoordinateAtM",value:function(e,t,r){if(this.layout!=n.Z.XYM&&this.layout!=n.Z.XYZM||0===this.flatCoordinates.length)return null;var i=void 0!==t&&t,o=void 0!==r&&r;return(0,p.dG)(this.flatCoordinates,0,this.ends_,this.stride,e,i,o)}},{key:"getCoordinates",value:function(){return(0,h.o1)(this.flatCoordinates,0,this.ends_,this.stride)}},{key:"getEnds",value:function(){return this.ends_}},{key:"getLineString",value:function(e){return e<0||this.ends_.length<=e?null:new o.Z(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}},{key:"getLineStrings",value:function(){for(var e=this.flatCoordinates,t=this.ends_,r=this.layout,n=[],i=0,a=0,s=t.length;a<s;++a){var u=t[a],l=new o.Z(e.slice(i,u),r);n.push(l),i=u}return n}},{key:"getFlatMidpoints",value:function(){for(var e=[],t=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o],u=(0,p.WW)(t,r,s,i,.5);(0,f.l7)(e,u),r=s}return e}},{key:"getSimplifiedGeometryInternal",value:function(e){var t=[],r=[];return t.length=(0,c.UJ)(this.flatCoordinates,0,this.ends_,this.stride,e,t,0,r),new b(t,n.Z.XY,r)}},{key:"getType",value:function(){return i.Z.MULTI_LINE_STRING}},{key:"intersectsExtent",value:function(e){return(0,d.AW)(this.flatCoordinates,0,this.ends_,this.stride,e)}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,l._5)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()}}])&&v(t.prototype,r),a&&v(t,a),Object.defineProperty(t,"prototype",{writable:!1}),b}(a.ZP);t.Z=w},3077:function(e,t,r){"use strict";var n=r(10392),i=r(75469),o=r(86877),a=r(86923),s=r(60217),u=r(17985),l=r(55721),c=r(62990);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,o,f=d(y);function y(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),r=f.call(this),t&&!Array.isArray(e[0])?r.setFlatCoordinates(t,e):r.setCoordinates(e,t),r}return t=y,(r=[{key:"appendPoint",value:function(e){this.flatCoordinates?(0,u.l7)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.changed()}},{key:"clone",value:function(){var e=new y(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){if(n<(0,a.qf)(this.getExtent(),e,t))return n;for(var i=this.flatCoordinates,o=this.stride,s=0,u=i.length;s<u;s+=o){var l=(0,c.bI)(e,t,i[s],i[s+1]);if(l<n){n=l;for(var f=0;f<o;++f)r[f]=i[s+f];r.length=o}}return n}},{key:"getCoordinates",value:function(){return(0,l.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}},{key:"getPoint",value:function(e){var t=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return e<0||t<=e?null:new i.Z(this.flatCoordinates.slice(e*this.stride,(e+1)*this.stride),this.layout)}},{key:"getPoints",value:function(){for(var e=this.flatCoordinates,t=this.layout,r=this.stride,n=[],o=0,a=e.length;o<a;o+=r){var s=new i.Z(e.slice(o,o+r),t);n.push(s)}return n}},{key:"getType",value:function(){return n.Z.MULTI_POINT}},{key:"intersectsExtent",value:function(e){for(var t=this.flatCoordinates,r=this.stride,n=0,i=t.length;n<i;n+=r){var o=t[n],s=t[n+1];if((0,a.jE)(e,o,s))return!0}return!1}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s.Sg)(this.flatCoordinates,0,e,this.stride),this.changed()}}])&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.ZP);t.Z=m},91988:function(e,t,r){"use strict";var n=r(25691),i=r(10392),o=r(3077),a=r(85528),s=r(86877),u=r(33323),l=r(86923),c=r(60217),f=r(17985),h=r(96632),p=r(55721),d=r(98184),y=r(92621),v=r(96221),m=r(56562),g=r(82626),b=r(90615);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(O,e);var t,r,s,_=k(O);function O(e,t,r){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),(n=_.call(this)).endss_=[],n.flatInteriorPointsRevision_=-1,n.flatInteriorPoints_=null,n.maxDelta_=-1,n.maxDeltaRevision_=-1,n.orientedRevision_=-1,n.orientedFlatCoordinates_=null,!r&&!Array.isArray(e[0])){for(var i=n.getLayout(),o=e,a=[],s=[],u=0,l=o.length;u<l;++u){var c=o[u];0===u&&(i=c.getLayout());for(var h=a.length,p=c.getEnds(),d=0,y=p.length;d<y;++d)p[d]+=h;(0,f.l7)(a,c.getFlatCoordinates()),s.push(p)}t=i,e=a,r=s}return void 0!==t&&r?(n.setFlatCoordinates(t,e),n.endss_=r):n.setCoordinates(e,t),n}return t=O,(r=[{key:"appendPolygon",value:function(e){var t;if(this.flatCoordinates){var r=this.flatCoordinates.length;(0,f.l7)(this.flatCoordinates,e.getFlatCoordinates());for(var n=0,i=(t=e.getEnds().slice()).length;n<i;++n)t[n]+=r}else this.flatCoordinates=e.getFlatCoordinates().slice(),t=e.getEnds().slice(),this.endss_.push();this.endss_.push(t),this.changed()}},{key:"clone",value:function(){for(var e=this.endss_.length,t=new Array(e),r=0;r<e;++r)t[r]=this.endss_[r].slice();var n=new O(this.flatCoordinates.slice(),this.layout,t);return n.applyProperties(this),n}},{key:"closestPointXY",value:function(e,t,r,n){return n<(0,l.qf)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.sD)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.gI)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,e,t,r,n))}},{key:"containsXY",value:function(e,t){return(0,g.Zl)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e,t)}},{key:"getArea",value:function(){return(0,v.Eu)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}},{key:"getCoordinates",value:function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,y.dL)(t,0,this.endss_,this.stride,e)):t=this.flatCoordinates,(0,p.ug)(t,0,this.endss_,this.stride)}},{key:"getEndss",value:function(){return this.endss_}},{key:"getFlatInteriorPoints",value:function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var e=(0,m.E)(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,h.U)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}},{key:"getInteriorPoints",value:function(){return new o.Z(this.getFlatInteriorPoints().slice(),n.Z.XYM)}},{key:"getOrientedFlatCoordinates",value:function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;(0,y.Oj)(e,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,y.dL)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}},{key:"getSimplifiedGeometryInternal",value:function(e){var t=[],r=[];return t.length=(0,b.Pp)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(e),t,0,r),new O(t,n.Z.XY,r)}},{key:"getPolygon",value:function(e){if(e<0||this.endss_.length<=e)return null;var t;if(0===e)t=0;else{var r=this.endss_[e-1];t=r[r.length-1]}var n=this.endss_[e].slice(),i=n[n.length-1];if(0!==t)for(var o=0,s=n.length;o<s;++o)n[o]-=t;return new a.ZP(this.flatCoordinates.slice(t,i),this.layout,n)}},{key:"getPolygons",value:function(){for(var e=this.layout,t=this.flatCoordinates,r=this.endss_,n=[],i=0,o=0,s=r.length;o<s;++o){var u=r[o].slice(),l=u[u.length-1];if(0!==i)for(var c=0,f=u.length;c<f;++c)u[c]-=i;var h=new a.ZP(t.slice(i,l),e,u);n.push(h),i=l}return n}},{key:"getType",value:function(){return i.Z.MULTI_POLYGON}},{key:"intersectsExtent",value:function(e){return(0,d.oW)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,e)}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,c.QT)(this.flatCoordinates,0,e,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()}}])&&w(t.prototype,r),s&&w(t,s),Object.defineProperty(t,"prototype",{writable:!1}),O}(s.ZP);t.Z=E},75469:function(e,t,r){"use strict";var n=r(10392),i=r(86877),o=r(86923),a=r(60217),s=r(62990);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,i,u=f(h);function h(e,t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(r=u.call(this)).setCoordinates(e,t),r}return t=h,(r=[{key:"clone",value:function(){var e=new h(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){var i=this.flatCoordinates,o=(0,s.bI)(e,t,i[0],i[1]);if(o<n){for(var a=this.stride,u=0;u<a;++u)r[u]=i[u];return r.length=a,o}return n}},{key:"getCoordinates",value:function(){return this.flatCoordinates?this.flatCoordinates.slice():[]}},{key:"computeExtent",value:function(e){return(0,o.HK)(this.flatCoordinates,e)}},{key:"getType",value:function(){return n.Z.POINT}},{key:"intersectsExtent",value:function(e){return(0,o.jE)(e,this.flatCoordinates[0],this.flatCoordinates[1])}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.IG)(this.flatCoordinates,0,e,this.stride),this.changed()}}])&&l(t.prototype,r),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.ZP);t.Z=d},85528:function(e,t,r){"use strict";r.d(t,{iu:function(){return R},oJ:function(){return P},Bb:function(){return C},Ej:function(){return M}});var n=r(25691),i=r(10392),o=r(48189),a=r(75469),s=r(86877),u=r(33323),l=r(86923),c=r(60217),f=r(17985),h=r(96632),p=r(55721),d=r(98184),y=r(92621),v=r(96221),m=r(82626),g=r(62990),b=r(90615),_=r(51318);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(_,e);var t,r,s,g=O(_);function _(e,t,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(n=g.call(this)).ends_=[],n.flatInteriorPointRevision_=-1,n.flatInteriorPoint_=null,n.maxDelta_=-1,n.maxDeltaRevision_=-1,n.orientedRevision_=-1,n.orientedFlatCoordinates_=null,void 0!==t&&r?(n.setFlatCoordinates(t,e),n.ends_=r):n.setCoordinates(e,t),n}return t=_,(r=[{key:"appendLinearRing",value:function(e){this.flatCoordinates?(0,f.l7)(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}},{key:"clone",value:function(){var e=new _(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}},{key:"closestPointXY",value:function(e,t,r,n){return n<(0,l.qf)(this.getExtent(),e,t)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,u.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,u.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,r,n))}},{key:"containsXY",value:function(e,t){return(0,m.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}},{key:"getArea",value:function(){return(0,v.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}},{key:"getCoordinates",value:function(e){var t;return void 0!==e?(t=this.getOrientedFlatCoordinates().slice(),(0,y.zX)(t,0,this.ends_,this.stride,e)):t=this.flatCoordinates,(0,p.o1)(t,0,this.ends_,this.stride)}},{key:"getEnds",value:function(){return this.ends_}},{key:"getFlatInteriorPoint",value:function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var e=(0,l.qg)(this.getExtent());this.flatInteriorPoint_=(0,h.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}},{key:"getInteriorPoint",value:function(){return new a.Z(this.getFlatInteriorPoint(),n.Z.XYM)}},{key:"getLinearRingCount",value:function(){return this.ends_.length}},{key:"getLinearRing",value:function(e){return e<0||this.ends_.length<=e?null:new o.Z(this.flatCoordinates.slice(0===e?0:this.ends_[e-1],this.ends_[e]),this.layout)}},{key:"getLinearRings",value:function(){for(var e=this.layout,t=this.flatCoordinates,r=this.ends_,n=[],i=0,a=0,s=r.length;a<s;++a){var u=r[a],l=new o.Z(t.slice(i,u),e);n.push(l),i=u}return n}},{key:"getOrientedFlatCoordinates",value:function(){if(this.orientedRevision_!=this.getRevision()){var e=this.flatCoordinates;(0,y.$v)(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=(0,y.zX)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}},{key:"getSimplifiedGeometryInternal",value:function(e){var t=[],r=[];return t.length=(0,b.Zh)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),t,0,r),new _(t,n.Z.XY,r)}},{key:"getType",value:function(){return i.Z.POLYGON}},{key:"intersectsExtent",value:function(e){return(0,d.ac)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}},{key:"setCoordinates",value:function(e,t){this.setLayout(t,e,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=(0,c._5)(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()}}])&&x(t.prototype,r),s&&x(t,s),Object.defineProperty(t,"prototype",{writable:!1}),_}(s.ZP);function R(e,t,r,i){for(var o=r||32,a=[],s=0;s<o;++s)(0,f.l7)(a,(0,_.cv)(e,t,2*Math.PI*s/o,i));return a.push(a[0],a[1]),new T(a,n.Z.XY,[a.length])}function P(e){var t=e[0],r=e[1],i=e[2],o=e[3],a=[t,r,t,o,i,o,i,r,t,r];return new T(a,n.Z.XY,[a.length])}function C(e,t,r){for(var n=t||32,i=e.getStride(),o=e.getLayout(),a=e.getCenter(),s=i*(n+1),u=new Array(s),l=0;l<s;l+=i){u[l]=0,u[l+1]=0;for(var c=2;c<i;c++)u[l+c]=a[c]}var f=[u.length],h=new T(u,o,f);return M(h,a,e.getRadius(),r),h}function M(e,t,r,n){for(var i=e.getFlatCoordinates(),o=e.getStride(),a=i.length/o-1,s=n||0,u=0;u<=a;++u){var l=u*o,c=s+2*(0,g.$W)(u,a)*Math.PI/a;i[l]=t[0]+r*Math.cos(c),i[l+1]=t[1]+r*Math.sin(c)}e.changed()}t.ZP=T},86877:function(e,t,r){"use strict";r.d(t,{tP:function(){return y},Kr:function(){return v}});var n=r(43189),i=r(25691),o=r(99382),a=r(86923),s=r(13698);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,n,u=f(h);function h(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(e=u.call(this)).layout=i.Z.XY,e.stride=2,e.flatCoordinates=null,e}return t=h,(r=[{key:"computeExtent",value:function(e){return(0,a.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}},{key:"getCoordinates",value:function(){return(0,o.O3)()}},{key:"getFirstCoordinate",value:function(){return this.flatCoordinates.slice(0,this.stride)}},{key:"getFlatCoordinates",value:function(){return this.flatCoordinates}},{key:"getLastCoordinate",value:function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}},{key:"getLayout",value:function(){return this.layout}},{key:"getSimplifiedGeometry",value:function(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}},{key:"getSimplifiedGeometryInternal",value:function(e){return this}},{key:"getStride",value:function(){return this.stride}},{key:"setFlatCoordinates",value:function(e,t){this.stride=y(e),this.layout=e,this.flatCoordinates=t}},{key:"setCoordinates",value:function(e,t){(0,o.O3)()}},{key:"setLayout",value:function(e,t,r){var n;if(e)n=y(e);else{for(var o=0;o<r;++o){if(0===t.length)return this.layout=i.Z.XY,void(this.stride=2);t=t[0]}e=function(e){var t;return 2==e?t=i.Z.XY:3==e?t=i.Z.XYZ:4==e&&(t=i.Z.XYZM),t}(n=t.length)}this.layout=e,this.stride=n}},{key:"applyTransform",value:function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}},{key:"rotate",value:function(e,t){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,s.U1)(r,0,r.length,n,e,t,r),this.changed()}}},{key:"scale",value:function(e,t,r){var n=t;void 0===n&&(n=e);var i=r;i||(i=(0,a.qg)(this.getExtent()));var o=this.getFlatCoordinates();if(o){var u=this.getStride();(0,s.bA)(o,0,o.length,u,e,n,i,o),this.changed()}}},{key:"translate",value:function(e,t){var r=this.getFlatCoordinates();if(r){var n=this.getStride();(0,s.Iu)(r,0,r.length,n,e,t,r),this.changed()}}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Z);function y(e){var t;return e==i.Z.XY?t=2:e==i.Z.XYZ||e==i.Z.XYM?t=3:e==i.Z.XYZM&&(t=4),t}function v(e,t,r){var n=e.getFlatCoordinates();if(n){var i=e.getStride();return(0,s.vT)(n,0,n.length,i,t,r)}return null}t.ZP=d},96221:function(e,t,r){"use strict";function n(e,t,r,n){for(var i=0,o=e[r-n],a=e[r-n+1];t<r;t+=n){var s=e[t],u=e[t+1];i+=a*s-o*u,o=s,a=u}return i/2}function i(e,t,r,i){for(var o=0,a=0,s=r.length;a<s;++a){var u=r[a];o+=n(e,t,u,i),t=u}return o}function o(e,t,r,n){for(var o=0,a=0,s=r.length;a<s;++a){var u=r[a];o+=i(e,t,u,n),t=u[u.length-1]}return o}r.d(t,{QQ:function(){return n},KP:function(){return i},Eu:function(){return o}})},56562:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(86923);function i(e,t,r,i){for(var o=[],a=(0,n.lJ)(),s=0,u=r.length;s<u;++s){var l=r[s];a=(0,n.GN)(e,t,l[0],i),o.push((a[0]+a[2])/2,(a[1]+a[3])/2),t=l[l.length-1]}return o}},33323:function(e,t,r){"use strict";r.d(t,{Bv:function(){return o},Af:function(){return a},sD:function(){return s},H$:function(){return u},Xl:function(){return l},gI:function(){return c}});var n=r(62990);function i(e,t,r,i,o,a,s){var u,l=e[t],c=e[t+1],f=e[r]-l,h=e[r+1]-c;if(0===f&&0===h)u=t;else{var p=((o-l)*f+(a-c)*h)/(f*f+h*h);if(p>1)u=r;else{if(p>0){for(var d=0;d<i;++d)s[d]=(0,n.t7)(e[t+d],e[r+d],p);return void(s.length=i)}u=t}}for(var y=0;y<i;++y)s[y]=e[u+y];s.length=i}function o(e,t,r,i,o){var a=e[t],s=e[t+1];for(t+=i;t<r;t+=i){var u=e[t],l=e[t+1],c=(0,n.bI)(a,s,u,l);c>o&&(o=c),a=u,s=l}return o}function a(e,t,r,n,i){for(var a=0,s=r.length;a<s;++a){var u=r[a];i=o(e,t,u,n,i),t=u}return i}function s(e,t,r,n,i){for(var o=0,s=r.length;o<s;++o){var u=r[o];i=a(e,t,u,n,i),t=u[u.length-1]}return i}function u(e,t,r,o,a,s,u,l,c,f,h){if(t==r)return f;var p,d;if(0===a){if((d=(0,n.bI)(u,l,e[t],e[t+1]))<f){for(p=0;p<o;++p)c[p]=e[t+p];return c.length=o,d}return f}for(var y=h||[NaN,NaN],v=t+o;v<r;)if(i(e,v-o,v,o,u,l,y),(d=(0,n.bI)(u,l,y[0],y[1]))<f){for(f=d,p=0;p<o;++p)c[p]=y[p];c.length=o,v+=o}else v+=o*Math.max((Math.sqrt(d)-Math.sqrt(f))/a|0,1);if(s&&(i(e,r-o,t,o,u,l,y),(d=(0,n.bI)(u,l,y[0],y[1]))<f)){for(f=d,p=0;p<o;++p)c[p]=y[p];c.length=o}return f}function l(e,t,r,n,i,o,a,s,l,c,f){for(var h=f||[NaN,NaN],p=0,d=r.length;p<d;++p){var y=r[p];c=u(e,t,y,n,i,o,a,s,l,c,h),t=y}return c}function c(e,t,r,n,i,o,a,s,u,c,f){for(var h=f||[NaN,NaN],p=0,d=r.length;p<d;++p){var y=r[p];c=l(e,t,y,n,i,o,a,s,u,c,h),t=y[y.length-1]}return c}},82626:function(e,t,r){"use strict";r.d(t,{uG:function(){return i},TG:function(){return o},wY:function(){return a},Zl:function(){return s}});var n=r(86923);function i(e,t,r,i,a){return!(0,n.H6)(a,(function(n){return!o(e,t,r,i,n[0],n[1])}))}function o(e,t,r,n,i,o){for(var a=0,s=e[r-n],u=e[r-n+1];t<r;t+=n){var l=e[t],c=e[t+1];u<=o?c>o&&(l-s)*(o-u)-(i-s)*(c-u)>0&&a++:c<=o&&(l-s)*(o-u)-(i-s)*(c-u)<0&&a--,s=l,u=c}return 0!==a}function a(e,t,r,n,i,a){if(0===r.length)return!1;if(!o(e,t,r[0],n,i,a))return!1;for(var s=1,u=r.length;s<u;++s)if(o(e,r[s-1],r[s],n,i,a))return!1;return!0}function s(e,t,r,n,i,o){if(0===r.length)return!1;for(var s=0,u=r.length;s<u;++s){var l=r[s];if(a(e,t,l,n,i,o))return!0;t=l[l.length-1]}return!1}},60217:function(e,t,r){"use strict";function n(e,t,r,n){for(var i=0,o=r.length;i<o;++i)e[t++]=r[i];return t}function i(e,t,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)e[t++]=a[s];return t}function o(e,t,r,n,o){for(var a=o||[],s=0,u=0,l=r.length;u<l;++u){var c=i(e,t,r[u],n);a[s++]=c,t=c}return a.length=s,a}function a(e,t,r,n,i){for(var a=i||[],s=0,u=0,l=r.length;u<l;++u){var c=o(e,t,r[u],n,a[s]);a[s++]=c,t=c[c.length-1]}return a.length=s,a}r.d(t,{IG:function(){return n},Sg:function(){return i},_5:function(){return o},QT:function(){return a}})},55721:function(e,t,r){"use strict";function n(e,t,r,n,i){for(var o=void 0!==i?i:[],a=0,s=t;s<r;s+=n)o[a++]=e.slice(s,s+n);return o.length=a,o}function i(e,t,r,i,o){for(var a=void 0!==o?o:[],s=0,u=0,l=r.length;u<l;++u){var c=r[u];a[s++]=n(e,t,c,i,a[s]),t=c}return a.length=s,a}function o(e,t,r,n,o){for(var a=void 0!==o?o:[],s=0,u=0,l=r.length;u<l;++u){var c=r[u];a[s++]=i(e,t,c,n,a[s]),t=c[c.length-1]}return a.length=s,a}r.d(t,{Ml:function(){return n},o1:function(){return i},ug:function(){return o}})},96632:function(e,t,r){"use strict";r.d(t,{X:function(){return o},U:function(){return a}});var n=r(82626),i=r(17985);function o(e,t,r,o,a,s,u){for(var l,c,f,h,p,d,y,v=a[s+1],m=[],g=0,b=r.length;g<b;++g){var _=r[g];for(h=e[_-o],d=e[_-o+1],l=t;l<_;l+=o)p=e[l],y=e[l+1],(v<=d&&y<=v||d<=v&&v<=y)&&(f=(v-d)/(y-d)*(p-h)+h,m.push(f)),h=p,d=y}var w=NaN,x=-1/0;for(m.sort(i.kK),h=m[0],l=1,c=m.length;l<c;++l){p=m[l];var k=Math.abs(p-h);k>x&&(f=(h+p)/2,(0,n.wY)(e,t,r,o,f,v)&&(w=f,x=k)),h=p}return isNaN(w)&&(w=a[s]),u?(u.push(w,v,x),u):[w,v,x]}function a(e,t,r,n,i){for(var a=[],s=0,u=r.length;s<u;++s){var l=r[s];a=o(e,t,l,n,i,2*s,a),t=l[l.length-1]}return a}},51585:function(e,t,r){"use strict";r.d(t,{WW:function(){return o},iJ:function(){return a},dG:function(){return s}});var n=r(17985),i=r(62990);function o(e,t,r,o,a,s,u){var l,c,f=(r-t)/o;if(1===f)l=t;else if(2===f)l=t,c=a;else if(0!==f){for(var h=e[t],p=e[t+1],d=0,y=[0],v=t+o;v<r;v+=o){var m=e[v],g=e[v+1];d+=Math.sqrt((m-h)*(m-h)+(g-p)*(g-p)),y.push(d),h=m,p=g}var b=a*d,_=(0,n.ry)(y,b);_<0?(c=(b-y[-_-2])/(y[-_-1]-y[-_-2]),l=t+(-_-2)*o):l=t+_*o}for(var w=u>1?u:2,x=s||new Array(w),k=0;k<w;++k)x[k]=void 0===l?NaN:void 0===c?e[l+k]:(0,i.t7)(e[l+k],e[l+o+k],c);return x}function a(e,t,r,n,o,a){if(r==t)return null;var s;if(o<e[t+n-1])return a?((s=e.slice(t,t+n))[n-1]=o,s):null;if(e[r-1]<o)return a?((s=e.slice(r-n,r))[n-1]=o,s):null;if(o==e[t+n-1])return e.slice(t,t+n);for(var u=t/n,l=r/n;u<l;){var c=u+l>>1;o<e[(c+1)*n-1]?l=c:u=c+1}var f=e[u*n-1];if(o==f)return e.slice((u-1)*n,(u-1)*n+n);var h=(o-f)/(e[(u+1)*n-1]-f);s=[];for(var p=0;p<n-1;++p)s.push((0,i.t7)(e[(u-1)*n+p],e[u*n+p],h));return s.push(o),s}function s(e,t,r,n,i,o,s){if(s)return a(e,t,r[r.length-1],n,i,o);var u;if(i<e[n-1])return o?((u=e.slice(0,n))[n-1]=i,u):null;if(e[e.length-1]<i)return o?((u=e.slice(e.length-n))[n-1]=i,u):null;for(var l=0,c=r.length;l<c;++l){var f=r[l];if(t!=f){if(i<e[t+n-1])return null;if(i<=e[f-1])return a(e,t,f,n,i,!1);t=f}}return null}},98184:function(e,t,r){"use strict";r.d(t,{Kz:function(){return a},AW:function(){return s},ac:function(){return u},oW:function(){return l}});var n=r(86923),i=r(2387),o=r(82626);function a(e,t,r,o,a){var s=(0,n.qP)((0,n.lJ)(),e,t,r,o);return!!(0,n.kK)(a,s)&&(!!(0,n.r4)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||(0,i.E)(e,t,r,o,(function(e,t){return(0,n.I7)(a,e,t)})))))}function s(e,t,r,n,i){for(var o=0,s=r.length;o<s;++o){if(a(e,t,r[o],n,i))return!0;t=r[o]}return!1}function u(e,t,r,n,i){if(!function(e,t,r,n,i){return!!(a(e,t,r,n,i)||(0,o.TG)(e,t,r,n,i[0],i[1])||(0,o.TG)(e,t,r,n,i[0],i[3])||(0,o.TG)(e,t,r,n,i[2],i[1])||(0,o.TG)(e,t,r,n,i[2],i[3]))}(e,t,r[0],n,i))return!1;if(1===r.length)return!0;for(var s=1,u=r.length;s<u;++s)if((0,o.uG)(e,r[s-1],r[s],n,i)&&!a(e,r[s-1],r[s],n,i))return!1;return!0}function l(e,t,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if(u(e,t,s,n,i))return!0;t=s[s.length-1]}return!1}},7807:function(e,t,r){"use strict";function n(e,t,r,n){for(var i=e[t],o=e[t+1],a=0,s=t+n;s<r;s+=n){var u=e[s],l=e[s+1];a+=Math.sqrt((u-i)*(u-i)+(l-o)*(l-o)),i=u,o=l}return a}r.d(t,{W:function(){return n}})},92621:function(e,t,r){"use strict";function n(e,t,r,n){for(;t<r-n;){for(var i=0;i<n;++i){var o=e[t+i];e[t+i]=e[r-n+i],e[r-n+i]=o}t+=n,r-=n}}function i(e,t,r,n){for(var i=0,o=e[r-n],a=e[r-n+1];t<r;t+=n){var s=e[t],u=e[t+1];i+=(s-o)*(u+a),o=s,a=u}return 0===i?void 0:i>0}function o(e,t,r,n,o){for(var a=void 0!==o&&o,s=0,u=r.length;s<u;++s){var l=r[s],c=i(e,t,l,n);if(0===s){if(a&&c||!a&&!c)return!1}else if(a&&!c||!a&&c)return!1;t=l}return!0}function a(e,t,r,n,i){for(var a=0,s=r.length;a<s;++a){var u=r[a];if(!o(e,t,u,n,i))return!1;u.length&&(t=u[u.length-1])}return!0}function s(e,t,r,o,a){for(var s=void 0!==a&&a,u=0,l=r.length;u<l;++u){var c=r[u],f=i(e,t,c,o);(0===u?s&&f||!s&&!f:s&&!f||!s&&f)&&n(e,t,c,o),t=c}return t}function u(e,t,r,n,i){for(var o=0,a=r.length;o<a;++o)t=s(e,t,r[o],n,i);return t}r.d(t,{bt:function(){return i},$v:function(){return o},Oj:function(){return a},zX:function(){return s},dL:function(){return u}})},2387:function(e,t,r){"use strict";function n(e,t,r,n,i){var o;for(t+=n;t<r;t+=n)if(o=i(e.slice(t-n,t),e.slice(t,t+n)))return o;return!1}r.d(t,{E:function(){return n}})},90615:function(e,t,r){"use strict";r.d(t,{dt:function(){return i},UJ:function(){return o},uZ:function(){return a},Zh:function(){return u},Pp:function(){return l}});var n=r(62990);function i(e,t,r,i,o,a,s){var u=(r-t)/i;if(u<3){for(;t<r;t+=i)a[s++]=e[t],a[s++]=e[t+1];return s}var l=new Array(u);l[0]=1,l[u-1]=1;for(var c=[t,r-i],f=0;c.length>0;){for(var h=c.pop(),p=c.pop(),d=0,y=e[p],v=e[p+1],m=e[h],g=e[h+1],b=p+i;b<h;b+=i){var _=e[b],w=e[b+1],x=(0,n.rU)(_,w,y,v,m,g);x>d&&(f=b,d=x)}d>o&&(l[(f-t)/i]=1,p+i<f&&c.push(p,f),f+i<h&&c.push(f,h))}for(var k=0;k<u;++k)l[k]&&(a[s++]=e[t+k*i],a[s++]=e[t+k*i+1]);return s}function o(e,t,r,n,o,a,s,u){for(var l=0,c=r.length;l<c;++l){var f=r[l];s=i(e,t,f,n,o,a,s),u.push(s),t=f}return s}function a(e,t){return t*Math.round(e/t)}function s(e,t,r,n,i,o,s){if(t==r)return s;var u,l,c=a(e[t],i),f=a(e[t+1],i);t+=n,o[s++]=c,o[s++]=f;do{if(u=a(e[t],i),l=a(e[t+1],i),(t+=n)==r)return o[s++]=u,o[s++]=l,s}while(u==c&&l==f);for(;t<r;){var h=a(e[t],i),p=a(e[t+1],i);if(t+=n,h!=u||p!=l){var d=u-c,y=l-f,v=h-c,m=p-f;d*m==y*v&&(d<0&&v<d||d==v||d>0&&v>d)&&(y<0&&m<y||y==m||y>0&&m>y)?(u=h,l=p):(o[s++]=u,o[s++]=l,c=u,f=l,u=h,l=p)}}return o[s++]=u,o[s++]=l,s}function u(e,t,r,n,i,o,a,u){for(var l=0,c=r.length;l<c;++l){var f=r[l];a=s(e,t,f,n,i,o,a),u.push(a),t=f}return a}function l(e,t,r,n,i,o,a,s){for(var l=0,c=r.length;l<c;++l){var f=r[l],h=[];a=u(e,t,f,n,i,o,a,h),s.push(h),t=f[f.length-1]}return a}},13698:function(e,t,r){"use strict";function n(e,t,r,n,i,o){for(var a=o||[],s=0,u=t;u<r;u+=n){var l=e[u],c=e[u+1];a[s++]=i[0]*l+i[2]*c+i[4],a[s++]=i[1]*l+i[3]*c+i[5]}return o&&a.length!=s&&(a.length=s),a}function i(e,t,r,n,i,o,a){for(var s=a||[],u=Math.cos(i),l=Math.sin(i),c=o[0],f=o[1],h=0,p=t;p<r;p+=n){var d=e[p]-c,y=e[p+1]-f;s[h++]=c+d*u-y*l,s[h++]=f+d*l+y*u;for(var v=p+2;v<p+n;++v)s[h++]=e[v]}return a&&s.length!=h&&(s.length=h),s}function o(e,t,r,n,i,o,a,s){for(var u=s||[],l=a[0],c=a[1],f=0,h=t;h<r;h+=n){var p=e[h]-l,d=e[h+1]-c;u[f++]=l+i*p,u[f++]=c+o*d;for(var y=h+2;y<h+n;++y)u[f++]=e[y]}return s&&u.length!=f&&(u.length=f),u}function a(e,t,r,n,i,o,a){for(var s=a||[],u=0,l=t;l<r;l+=n){s[u++]=e[l]+i,s[u++]=e[l+1]+o;for(var c=l+2;c<l+n;++c)s[u++]=e[c]}return a&&s.length!=u&&(s.length=u),s}r.d(t,{vT:function(){return n},U1:function(){return i},bA:function(){return o},Iu:function(){return a}})},25738:function(e,t,r){"use strict";r.d(t,{V:function(){return i},G$:function(){return o},tK:function(){return a},MP:function(){return s},Id:function(){return u},Tp:function(){return l},bM:function(){return c}});var n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",i=-1!==n.indexOf("firefox"),o=(-1!==n.indexOf("safari")&&n.indexOf("chrom"),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),a=-1!==n.indexOf("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,u="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch(e){}return e}()},12174:function(e,t,r){"use strict";r.d(t,{ce:function(){return fe}});var n=r(25898),i=r(84975),o=r(81248);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{};return(t=a.call(this)).delta_=r.delta?r.delta:1,t.duration_=void 0!==r.duration?r.duration:250,t}return t=c,(r=[{key:"handleEvent",value:function(e){var t=!1;if(e.type==o.Z.DBLCLICK){var r=e.originalEvent,n=e.map,a=e.coordinate,s=r.shiftKey?-this.delta_:this.delta_,u=n.getView();(0,i.FW)(u,s,a,this.duration_),r.preventDefault(),t=!0}return!t}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.ZP),p=r(15841),d=r(51291),y=r(13837),v=r(36104),m=r(33589);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(o,e);var t,r,n,i=w(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{};return(t=i.call(this,{stopDown:y.Dv})).condition_=r.condition?r.condition:v.aj,t.lastAngle_=void 0,t.duration_=void 0!==r.duration?r.duration:250,t}return t=o,(r=[{key:"handleDragEvent",value:function(e){if((0,v.QL)(e)){var t=e.map,r=t.getView();if(r.getConstraints().rotation!==m.h$){var n=t.getSize(),i=e.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=o}}}},{key:"handleUpEvent",value:function(e){return!(0,v.QL)(e)||(e.map.getView().endInteraction(this.duration_),!1)}},{key:"handleDownEvent",value:function(e){return!(!(0,v.QL)(e)||!(0,v.v8)(e)||!this.condition_(e)||(e.map.getView().beginInteraction(),this.lastAngle_=void 0,0))}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Z),S=r(67005),E=r(13193);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var i=j(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return M(this,r)}}function M(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(o,e);var t,r,n,i=C(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{},n=r.condition?r.condition:v.vY;return(t=i.call(this,{condition:n,className:r.className||"ol-dragzoom",minArea:r.minArea})).duration_=void 0!==r.duration?r.duration:200,t.out_=void 0!==r.out&&r.out,t}return t=o,(r=[{key:"onBoxEnd",value:function(e){var t=this.getMap().getView(),r=this.getGeometry();if(this.out_){var n=t.rotatedExtentForGeometry(r),i=t.getResolutionForExtentInternal(n),o=t.getResolution()/i;(r=r.clone()).scale(o*o)}t.fitInternal(r,{duration:this.duration_,easing:E.Vv})}}])&&R(t.prototype,r),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(S.Z),A=r(6566),L=37,D=38,Z=39,F=40,N=r(92932);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=V(e);if(t){var i=V(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return q(this,r)}}function q(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}(a,e);var t,r,n,o=U(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=e||{};return(t=o.call(this)).defaultCondition_=function(e){return(0,v.rM)(e)&&(0,v.TN)(e)},t.condition_=void 0!==r.condition?r.condition:t.defaultCondition_,t.duration_=void 0!==r.duration?r.duration:100,t.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128,t}return t=a,(r=[{key:"handleEvent",value:function(e){var t=!1;if(e.type==A.Z.KEYDOWN){var r=e.originalEvent,n=r.keyCode;if(this.condition_(e)&&(n==F||n==L||n==Z||n==D)){var o=e.map.getView(),a=o.getResolution()*this.pixelDelta_,s=0,u=0;n==F?u=-a:n==L?s=-a:n==Z?s=a:u=a;var l=[s,u];(0,N.U1)(l,o.getRotation()),(0,i.Cv)(o,l,this.duration_),r.preventDefault(),t=!0}}return!t}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.ZP);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=J(e);if(t){var i=J(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $(this,r)}}function $(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(a,e);var t,r,n,o=H(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=e||{};return(t=o.call(this)).condition_=r.condition?r.condition:v.TN,t.delta_=r.delta?r.delta:1,t.duration_=void 0!==r.duration?r.duration:100,t}return t=a,(r=[{key:"handleEvent",value:function(e){var t=!1;if(e.type==A.Z.KEYDOWN||e.type==A.Z.KEYPRESS){var r=e.originalEvent,n=r.charCode;if(this.condition_(e)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var o=e.map,a=n=="+".charCodeAt(0)?this.delta_:-this.delta_,s=o.getView();(0,i.FW)(s,a,void 0,this.duration_),r.preventDefault(),t=!0}}return!t}}])&&W(t.prototype,r),n&&W(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.ZP);function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var te=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.decay_=t,this.minVelocity_=r,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}var t,r,n;return t=e,(r=[{key:"begin",value:function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}},{key:"update",value:function(e,t){this.points_.push(e,t,Date.now())}},{key:"end",value:function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var r=t-3;r>0&&this.points_[r+2]>e;)r-=3;var n=this.points_[t+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[t]-this.points_[r],o=this.points_[t+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_}},{key:"getDistance",value:function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}},{key:"getAngle",value:function(){return this.angle_}}])&&ee(t.prototype,r),n&&ee(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),re=r(16783);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ue(e);if(t){var i=ue(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return se(this,r)}}function se(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(o,e);var t,r,n,i=ae(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{},n=r;return n.stopDown||(n.stopDown=y.Dv),(t=i.call(this,n)).anchor_=null,t.lastAngle_=void 0,t.rotating_=!1,t.rotationDelta_=0,t.threshold_=void 0!==r.threshold?r.threshold:.3,t.duration_=void 0!==r.duration?r.duration:250,t}return t=o,(r=[{key:"handleDragEvent",value:function(e){var t=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),t=o}this.lastAngle_=i;var a=e.map,s=a.getView();if(s.getConstraints().rotation!==m.h$){var u=a.getViewport().getBoundingClientRect(),l=(0,d.S)(this.targetPointers);l[0]-=u.left,l[1]-=u.top,this.anchor_=a.getCoordinateFromPixelInternal(l),this.rotating_&&(a.render(),s.adjustRotationInternal(t,this.anchor_))}}},{key:"handleUpEvent",value:function(e){return!(this.targetPointers.length<2&&(e.map.getView().endInteraction(this.duration_),1))}},{key:"handleDownEvent",value:function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}}])&&ie(t.prototype,r),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(d.Z),ce=r(23917);function fe(e){var t=e||{},r=new n.Z,i=new te(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&r.push(new O),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&r.push(new h({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&r.push(new p.Z({onFocusOnly:t.onFocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&r.push(new le),(void 0===t.pinchZoom||t.pinchZoom)&&r.push(new ce.Z({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(r.push(new X),r.push(new Q({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&r.push(new re.Z({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&r.push(new I({duration:t.zoomDuration})),r}},40349:function(e,t,r){"use strict";var n=r(21510),i=r(6566),o=r(22662),a=r(84975),s=r(13837),u=r(12810),l=r(12016);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=h(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w="addfeatures",x=function(e){v(r,e);var t=g(r);function r(e,n,i,o){var a;return y(this,r),(a=t.call(this,e)).features=i,a.file=n,a.projection=o,a}return d(r)}(n.ZP),k=function(e){v(r,e);var t=g(r);function r(e){var n;y(this,r);var i=e||{};(n=t.call(this,{handleEvent:s.uX})).on,n.once,n.un,n.readAsBuffer_=!1,n.formats_=[];for(var a=i.formatConstructors?i.formatConstructors:[],l=0,c=a.length;l<c;++l){var f=a[l];"function"==typeof f&&(f=new f),n.formats_.push(f),n.readAsBuffer_=n.readAsBuffer_||f.getType()===o.Z.ARRAY_BUFFER}return n.projection_=i.projection?(0,u.U2)(i.projection):null,n.dropListenKeys_=null,n.source_=i.source||null,n.target=i.target?i.target:null,n}return d(r,[{key:"handleResult_",value:function(e,t){var r,n=t.target.result,i=this.getMap(),a=this.projection_;a||(a=i.getView().getProjection());for(var s=this.formats_,u=0,l=s.length;u<l;++u){var c=s[u],f=n;this.readAsBuffer_&&c.getType()!==o.Z.ARRAY_BUFFER&&(void 0===r&&(r=(new TextDecoder).decode(n)),f=r);var h=this.tryReadFeatures_(c,f,{featureProjection:a});if(h&&h.length>0){this.source_&&(this.source_.clear(),this.source_.addFeatures(h)),this.dispatchEvent(new x(w,e,h,a));break}}}},{key:"registerListeners_",value:function(){var e=this.getMap();if(e){var t=this.target?this.target:e.getViewport();this.dropListenKeys_=[(0,l.oL)(t,i.Z.DROP,this.handleDrop,this),(0,l.oL)(t,i.Z.DRAGENTER,this.handleStop,this),(0,l.oL)(t,i.Z.DRAGOVER,this.handleStop,this),(0,l.oL)(t,i.Z.DROP,this.handleStop,this)]}}},{key:"setActive",value:function(e){!this.getActive()&&e&&this.registerListeners_(),this.getActive()&&!e&&this.unregisterListeners_(),f(_(r.prototype),"setActive",this).call(this,e)}},{key:"setMap",value:function(e){this.unregisterListeners_(),f(_(r.prototype),"setMap",this).call(this,e),this.getActive()&&this.registerListeners_()}},{key:"tryReadFeatures_",value:function(e,t,r){try{return e.readFeatures(t,r)}catch(e){return null}}},{key:"unregisterListeners_",value:function(){this.dropListenKeys_&&(this.dropListenKeys_.forEach(l.bN),this.dropListenKeys_=null)}},{key:"handleDrop",value:function(e){for(var t=e.dataTransfer.files,r=0,n=t.length;r<n;++r){var o=t.item(r),a=new FileReader;a.addEventListener(i.Z.LOAD,this.handleResult_.bind(this,o)),this.readAsBuffer_?a.readAsArrayBuffer(o):a.readAsText(o)}}},{key:"handleStop",value:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"}}]),r}(a.ZP);t.Z=k},67005:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(21510),i=r(51291),o=r(61637),a=r(85528);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(o,e);var t,r,n,i=c(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).geometry_=null,t.element_=document.createElement("div"),t.element_.style.position="absolute",t.element_.style.pointerEvents="auto",t.element_.className="ol-box "+e,t.map_=null,t.startPixel_=null,t.endPixel_=null,t}return t=o,(r=[{key:"disposeInternal",value:function(){this.setMap(null)}},{key:"render_",value:function(){var e=this.startPixel_,t=this.endPixel_,r="px",n=this.element_.style;n.left=Math.min(e[0],t[0])+r,n.top=Math.min(e[1],t[1])+r,n.width=Math.abs(t[0]-e[0])+r,n.height=Math.abs(t[1]-e[1])+r}},{key:"setMap",value:function(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}},{key:"setPixels",value:function(e,t){this.startPixel_=e,this.endPixel_=t,this.createOrUpdateGeometry(),this.render_()}},{key:"createOrUpdateGeometry",value:function(){var e=this.startPixel_,t=this.endPixel_,r=[e,[e[0],t[1]],t,[t[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new a.ZP([r])}},{key:"getGeometry",value:function(){return this.geometry_}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Z),d=r(36104);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O="boxstart",S="boxdrag",E="boxend",T="boxcancel",R=function(e){b(r,e);var t=w(r);function r(e,n,i){var o;return g(this,r),(o=t.call(this,e)).coordinate=n,o.mapBrowserEvent=i,o}return m(r)}(n.ZP),P=function(e){b(r,e);var t=w(r);function r(e){var n;g(this,r),(n=t.call(this)).on,n.once,n.un;var i=e||{};return n.box_=new p(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:d.v8,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return m(r,[{key:"defaultBoxEndCondition",value:function(e,t,r){var n=r[0]-t[0],i=r[1]-t[1];return n*n+i*i>=this.minArea_}},{key:"getGeometry",value:function(){return this.box_.getGeometry()}},{key:"handleDragEvent",value:function(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new R(S,e.coordinate,e))}},{key:"handleUpEvent",value:function(e){this.box_.setMap(null);var t=this.boxEndCondition_(e,this.startPixel_,e.pixel);return t&&this.onBoxEnd(e),this.dispatchEvent(new R(t?E:T,e.coordinate,e)),!1}},{key:"handleDownEvent",value:function(e){return!!this.condition_(e)&&(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new R(O,e.coordinate,e)),!0)}},{key:"onBoxEnd",value:function(e){}}]),r}(i.Z)},15841:function(e,t,r){"use strict";var n=r(51291),i=r(13837),o=r(36104),a=r(13193),s=r(92932);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(p,e);var t,r,u,h=f(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r=e||{};(t=h.call(this,{stopDown:i.Dv})).kinetic_=r.kinetic,t.lastCentroid=null,t.lastPointersCount_,t.panning_=!1;var n=r.condition?r.condition:(0,o.$6)(o.rM,o.Xp);return t.condition_=r.onFocusOnly?(0,o.$6)(o.yZ,n):n,t.noKinetic_=!1,t}return t=p,(r=[{key:"handleDragEvent",value:function(e){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var t=this.targetPointers,r=(0,n.S)(t);if(t.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var i=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],o=e.map.getView();(0,s.bA)(i,o.getResolution()),(0,s.U1)(i,o.getRotation()),o.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=t.length,e.originalEvent.preventDefault()}},{key:"handleUpEvent",value:function(e){var t=e.map,r=t.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenterInternal(),s=t.getPixelFromCoordinateInternal(o),u=t.getCoordinateFromPixelInternal([s[0]-n*Math.cos(i),s[1]-n*Math.sin(i)]);r.animateInternal({center:r.getConstrainedCenter(u),duration:500,easing:a.Vv})}return this.panning_&&(this.panning_=!1,r.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}},{key:"handleDownEvent",value:function(e){if(this.targetPointers.length>0&&this.condition_(e)){var t=e.map.getView();return this.lastCentroid=null,t.getAnimating()&&t.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}])&&l(t.prototype,r),u&&l(t,u),Object.defineProperty(t,"prototype",{writable:!1}),p}(n.Z);t.Z=d},96505:function(e,t,r){"use strict";var n=r(51291),i=r(36104);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=e||{};return(t=o.call(this,r)).condition_=r.condition?r.condition:i.vY,t.lastAngle_=void 0,t.lastMagnitude_=void 0,t.lastScaleDelta_=0,t.duration_=void 0!==r.duration?r.duration:400,t}return t=l,(r=[{key:"handleDragEvent",value:function(e){if((0,i.QL)(e)){var t=e.map,r=t.getSize(),n=e.pixel,o=n[0]-r[0]/2,a=r[1]/2-n[1],s=Math.atan2(a,o),u=Math.sqrt(o*o+a*a),l=t.getView();if(void 0!==this.lastAngle_){var c=this.lastAngle_-s;l.adjustRotationInternal(c)}this.lastAngle_=s,void 0!==this.lastMagnitude_&&l.adjustResolutionInternal(this.lastMagnitude_/u),void 0!==this.lastMagnitude_&&(this.lastScaleDelta_=this.lastMagnitude_/u),this.lastMagnitude_=u}}},{key:"handleUpEvent",value:function(e){if(!(0,i.QL)(e))return!0;var t=e.map.getView(),r=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,r),this.lastScaleDelta_=0,!1}},{key:"handleDownEvent",value:function(e){return!!(0,i.QL)(e)&&!!this.condition_(e)&&(e.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0)}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z);t.Z=f},61038:function(e,t,r){"use strict";r.d(t,{N_:function(){return X},dO:function(){return Y}});var n=r(64132),i=r(21510),o=r(6566),a=r(12739),s=r(10392),u=r(92164),l=r(5265),c=r(53884),f=r(81248),h=r(88460),p=r(3077),d=r(91988),y=r(75469),v=r(51291),m=r(85528),g=r(41372),b=r(95783),_=r(13837),w=r(36104),x=r(86923),k=r(69039),O=r(12810),S=r(92932);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(){return(T="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=R(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function R(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=D(e)););return e}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var i=D(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return L(this,r)}}function L(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z="Point",F="LineString",N="Polygon",G="Circle",B="drawstart",z="drawend",U="drawabort",q=function(e){j(r,e);var t=A(r);function r(e,n){var i;return M(this,r),(i=t.call(this,e)).feature=n,i}return C(r)}(i.ZP),V=function(e){j(r,e);var t=A(r);function r(e){var i;M(this,r);var o=e;o.stopDown||(o.stopDown=_.Dv),(i=t.call(this,o)).on,i.once,i.un,i.shouldHandle_=!1,i.downPx_=null,i.downTimeout_,i.lastDragTime_,i.pointerType_,i.freehand_=!1,i.source_=e.source?e.source:null,i.features_=e.features?e.features:null,i.snapTolerance_=e.snapTolerance?e.snapTolerance:12,i.type_=e.type,i.mode_=function(e){switch(e){case s.Z.POINT:case s.Z.MULTI_POINT:return Z;case s.Z.LINE_STRING:case s.Z.MULTI_LINE_STRING:return F;case s.Z.POLYGON:case s.Z.MULTI_POLYGON:return N;case s.Z.CIRCLE:return G;default:throw new Error("Invalid type: "+e)}}(i.type_),i.stopClick_=!!e.stopClick,i.minPoints_=e.minPoints?e.minPoints:i.mode_===N?3:2,i.maxPoints_=i.mode_===G?2:e.maxPoints?e.maxPoints:1/0,i.finishCondition_=e.finishCondition?e.finishCondition:_.uX;var a,c=e.geometryFunction;if(!c){var f,h=i.mode_;if(h===G)c=function(e,t,r){var i=t||new n.Z([NaN,NaN]),o=(0,O.Vs)(e[0],r),a=(0,S.bI)(o,(0,O.Vs)(e[e.length-1],r));i.setCenterAndRadius(o,Math.sqrt(a));var s=(0,O.Cs)();return s&&i.transform(r,s),i};else h===Z?f=y.Z:h===F?f=l.Z:h===N&&(f=m.ZP),c=function(e,t,r){return t?h===N?e[0].length?t.setCoordinates([e[0].concat([e[0][0]])]):t.setCoordinates([]):t.setCoordinates(e):t=new f(e),t}}return i.geometryFunction_=c,i.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,i.finishCoordinate_=null,i.sketchFeature_=null,i.sketchPoint_=null,i.sketchCoords_=null,i.sketchLine_=null,i.sketchLineCoords_=null,i.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,i.overlay_=new g.Z({source:new b.Z({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:(a=(0,k.Ly)(),function(e,t){return a[e.getGeometry().getType()]}),updateWhileInteracting:!0}),i.geometryName_=e.geometryName,i.condition_=e.condition?e.condition:w.rM,i.freehandCondition_,e.freehand?i.freehandCondition_=w.Bx:i.freehandCondition_=e.freehandCondition?e.freehandCondition:w.vY,i.addChangeListener(u.Z.ACTIVE,i.updateState_),i}return C(r,[{key:"setMap",value:function(e){T(D(r.prototype),"setMap",this).call(this,e),this.updateState_()}},{key:"getOverlay",value:function(){return this.overlay_}},{key:"handleEvent",value:function(e){e.originalEvent.type===o.Z.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==Z&&this.freehandCondition_(e);var t=e.type===f.Z.POINTERMOVE,n=!0;!this.freehand_&&this.lastDragTime_&&e.type===f.Z.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&e.type===f.Z.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===f.Z.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===f.Z.POINTERMOVE)&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):("mouse"===e.originalEvent.pointerType||e.type===f.Z.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===f.Z.DBLCLICK&&(n=!1),T(D(r.prototype),"handleEvent",this).call(this,e)&&n}},{key:"handleDownEvent",value:function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new c.Z(f.Z.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}},{key:"handleUpEvent",value:function(e){var t=!0;if(0===this.getPointerCount())if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e),this.shouldHandle_){var r=!this.finishCoordinate_;r&&this.startDrawing_(e.coordinate),!r&&this.freehand_?this.finishDrawing():this.freehand_||r&&this.mode_!==Z||(this.atFinish_(e.pixel)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing();return!t&&this.stopClick_&&e.preventDefault(),t}},{key:"handlePointerMove_",value:function(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,r=e.pixel,n=t[0]-r[0],i=t[1]-r[1],o=n*n+i*i;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(e.coordinate):this.createOrUpdateSketchPoint_(e.coordinate.slice())}},{key:"atFinish_",value:function(e){var t=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_],i=this.mode_;if(i===Z)t=!0;else if(i===G)t=2===this.sketchCoords_.length;else if(i===F)r=this.sketchCoords_.length>this.minPoints_;else if(i===N){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var a=this.getMap(),s=0,u=n.length;s<u;s++){var l=n[s],c=a.getPixelFromCoordinate(l),f=e[0]-c[0],h=e[1]-c[1],p=this.freehand_?1:this.snapTolerance_;if(t=Math.sqrt(f*f+h*h)<=p){this.finishCoordinate_=l;break}}}return t}},{key:"createOrUpdateSketchPoint_",value:function(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new a.Z(new y.Z(e)),this.updateSketchFeatures_())}},{key:"createOrUpdateCustomSketchLine_",value:function(e){this.sketchLine_||(this.sketchLine_=new a.Z);var t=e.getLinearRing(0),r=this.sketchLine_.getGeometry();r?(r.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),r.changed()):(r=new l.Z(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(r))}},{key:"startDrawing_",value:function(e){var t=this.getMap().getView().getProjection();this.finishCoordinate_=e,this.mode_===Z?this.sketchCoords_=e.slice():this.mode_===N?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new a.Z(new l.Z(this.sketchLineCoords_)));var r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new a.Z,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new q(B,this.sketchFeature_))}},{key:"modifyDrawing_",value:function(e){var t,r,n=this.getMap(),i=this.sketchFeature_.getGeometry(),o=n.getView().getProjection();(this.mode_===Z?r=this.sketchCoords_:this.mode_===N?(r=(t=this.sketchCoords_[0])[t.length-1],this.atFinish_(n.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):r=(t=this.sketchCoords_)[t.length-1],r[0]=e[0],r[1]=e[1],this.geometryFunction_(this.sketchCoords_,i,o),this.sketchPoint_)&&this.sketchPoint_.getGeometry().setCoordinates(e);if(i.getType()===s.Z.POLYGON&&this.mode_!==N)this.createOrUpdateCustomSketchLine_(i);else if(this.sketchLineCoords_){this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()}},{key:"addToDrawing_",value:function(e){var t,r,n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),o=this.mode_;o===F||o===G?(this.finishCoordinate_=e.slice(),(r=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?r.pop():t=!0),r.push(e.slice()),this.geometryFunction_(r,n,i)):o===N&&((r=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?r.pop():t=!0),r.push(e.slice()),t&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),t&&this.finishDrawing()}},{key:"removeLastPoint",value:function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry(),r=this.getMap().getView().getProjection(),n=this.mode_;if(n===F||n===G){if((e=this.sketchCoords_).splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();var i=this.finishCoordinate_.slice();e[e.length-1]=i,this.createOrUpdateSketchPoint_(i)}this.geometryFunction_(e,t,r),t.getType()===s.Z.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(n===N){(e=this.sketchCoords_[0]).splice(-2,1);var o=this.sketchLine_.getGeometry();if(e.length>=2){var a=e[e.length-2].slice();e[e.length-1]=a,this.createOrUpdateSketchPoint_(a)}o.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,r)}1===e.length&&this.abortDrawing(),this.updateSketchFeatures_()}}},{key:"finishDrawing",value:function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,r=e.getGeometry(),n=this.getMap().getView().getProjection();this.mode_===F?(t.pop(),this.geometryFunction_(t,r,n)):this.mode_===N&&(t[0].pop(),this.geometryFunction_(t,r,n),t=r.getCoordinates()),this.type_===s.Z.MULTI_POINT?e.setGeometry(new p.Z([t])):this.type_===s.Z.MULTI_LINE_STRING?e.setGeometry(new h.Z([t])):this.type_===s.Z.MULTI_POLYGON&&e.setGeometry(new d.Z([t])),this.dispatchEvent(new q(z,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}}},{key:"abortDrawing_",value:function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),e}},{key:"abortDrawing",value:function(){var e=this.abortDrawing_();e&&this.dispatchEvent(new q(U,e))}},{key:"appendCoordinates",value:function(e){var t,r=this.mode_,n=!this.sketchFeature_;if(n&&this.startDrawing_(e[0]),r===F||r===G)t=this.sketchCoords_;else{if(r!==N)return;t=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[]}n&&t.shift(),t.pop();for(var i=0;i<e.length;i++)this.addToDrawing_(e[i]);var o=e[e.length-1];this.addToDrawing_(o),this.modifyDrawing_(o)}},{key:"extend",value:function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.sketchPoint_=new a.Z(new y.Z(r)),this.updateSketchFeatures_(),this.dispatchEvent(new q(B,this.sketchFeature_))}},{key:"updateSketchFeatures_",value:function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)}},{key:"updateState_",value:function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing(),this.overlay_.setMap(t?e:null)}}]),r}(v.Z);function X(e,t){return function(r,i,o){var a=(0,O.Vs)(r[0],o),s=(0,O.Vs)(r[r.length-1],o),u=Math.sqrt((0,S.bI)(a,s)),l=i||(0,m.Bb)(new n.Z(a),e),c=t;if(!t&&0!==t){var f=s[0]-a[0],h=s[1]-a[1];c=Math.atan2(h,f)}(0,m.Ej)(l,a,u,c);var p=(0,O.Cs)();return p&&l.transform(o,p),l}}function Y(){return function(e,t,r){var n=(0,x.hI)([e[0],e[e.length-1]].map((function(e){return(0,O.Vs)(e,r)}))),i=[[(0,x.hC)(n),(0,x.w$)(n),(0,x.Xv)(n),(0,x.rL)(n),(0,x.hC)(n)]],o=t;o?o.setCoordinates(i):o=new m.ZP(i);var a=(0,O.Cs)();return a&&o.transform(r,a),o}}t.ZP=V},84975:function(e,t,r){"use strict";r.d(t,{Cv:function(){return p},FW:function(){return d}});var n=r(80157),i=r(92164),o=r(13193);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,r,n,o=l(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).on,t.once,t.un,e&&e.handleEvent&&(t.handleEvent=e.handleEvent),t.map_=null,t.setActive(!0),t}return t=a,(r=[{key:"getActive",value:function(){return this.get(i.Z.ACTIVE)}},{key:"getMap",value:function(){return this.map_}},{key:"handleEvent",value:function(e){return!0}},{key:"setActive",value:function(e){this.set(i.Z.ACTIVE,e)}},{key:"setMap",value:function(e){this.map_=e}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Z);function p(e,t,r){var n=e.getCenterInternal();if(n){var i=[n[0]+t[0],n[1]+t[1]];e.animateInternal({duration:void 0!==r?r:250,easing:o.GE,center:e.getConstrainedCenter(i)})}}function d(e,t,r,n){var i=e.getZoom();if(void 0!==i){var a=e.getConstrainedZoom(i+t),s=e.getResolutionForZoom(a);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:r,duration:void 0!==n?n:250,easing:o.Vv})}}t.ZP=h},64498:function(e,t,r){"use strict";var n=r(25898),i=r(31879),o=r(21510),a=r(6566),s=r(12739),u=r(10392),l=r(81248),c=r(75469),f=r(51291),h=r(20375),p=r(48201),d=r(41372),y=r(95783),v=r(36104),m=r(86923),g=r(92932),b=r(69039),_=r(17985),w=r(85528),x=r(12810),k=r(99382);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=E(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function E(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t&&T(e.prototype,t),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=L(e);if(t){var i=L(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return I(this,r)}}function I(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=[0,0,0,0],Z=[],F="modifystart",N="modifyend",G=function(e){C(r,e);var t=j(r);function r(e,n,i){var o;return P(this,r),(o=t.call(this,e)).features=n,o.mapBrowserEvent=i,o}return R(r)}(o.ZP),B=function(e){C(r,e);var t=j(r);function r(e){var o,a,s;if(P(this,r),(o=t.call(this,e)).on,o.once,o.un,o.boundHandleFeatureChange_=o.handleFeatureChange_.bind(A(o)),o.condition_=e.condition?e.condition:v.Xp,o.defaultDeleteCondition_=function(e){return(0,v.Ko)(e)&&(0,v.Kf)(e)},o.deleteCondition_=e.deleteCondition?e.deleteCondition:o.defaultDeleteCondition_,o.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:v.Bx,o.vertexFeature_=null,o.vertexSegments_=null,o.lastPixel_=[0,0],o.ignoreNextSingleClick_=!1,o.featuresBeingModified_=null,o.rBush_=new h.Z,o.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,o.snappedToVertex_=!1,o.changingFeature_=!1,o.dragSegments_=[],o.overlay_=new d.Z({source:new y.Z({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:(a=(0,b.Ly)(),function(e,t){return a[u.Z.POINT]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),o.SEGMENT_WRITERS_={Point:o.writePointGeometry_.bind(A(o)),LineString:o.writeLineStringGeometry_.bind(A(o)),LinearRing:o.writeLineStringGeometry_.bind(A(o)),Polygon:o.writePolygonGeometry_.bind(A(o)),MultiPoint:o.writeMultiPointGeometry_.bind(A(o)),MultiLineString:o.writeMultiLineStringGeometry_.bind(A(o)),MultiPolygon:o.writeMultiPolygonGeometry_.bind(A(o)),Circle:o.writeCircleGeometry_.bind(A(o)),GeometryCollection:o.writeGeometryCollectionGeometry_.bind(A(o))},o.source_=null,o.hitDetection_=null,e.features?s=e.features:e.source&&(o.source_=e.source,s=new n.Z(o.source_.getFeatures()),o.source_.addEventListener(p.Z.ADDFEATURE,o.handleSourceAdd_.bind(A(o))),o.source_.addEventListener(p.Z.REMOVEFEATURE,o.handleSourceRemove_.bind(A(o)))),!s)throw new Error("The modify interaction requires features, a source or a layer");return e.hitDetection&&(o.hitDetection_=e.hitDetection),o.features_=s,o.features_.forEach(o.addFeature_.bind(A(o))),o.features_.addEventListener(i.Z.ADD,o.handleFeatureAdd_.bind(A(o))),o.features_.addEventListener(i.Z.REMOVE,o.handleFeatureRemove_.bind(A(o))),o.lastPointerEvent_=null,o.delta_=[0,0],o.snapToPointer_=void 0===e.snapToPointer?!o.hitDetection_:e.snapToPointer,o}return R(r,[{key:"addFeature_",value:function(e){var t=e.getGeometry();if(t){var r=this.SEGMENT_WRITERS_[t.getType()];r&&r(e,t)}var n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,n),e.addEventListener(a.Z.CHANGE,this.boundHandleFeatureChange_)}},{key:"willModifyFeatures_",value:function(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new n.Z;for(var r=this.featuresBeingModified_.getArray(),i=0,o=t.length;i<o;++i)for(var a=t[i],s=0,u=a.length;s<u;++s){var l=a[s].feature;l&&-1===r.indexOf(l)&&this.featuresBeingModified_.push(l)}0===this.featuresBeingModified_.getLength()?this.featuresBeingModified_=null:this.dispatchEvent(new G(F,this.featuresBeingModified_,e))}}},{key:"removeFeature_",value:function(e){this.removeFeatureSegmentData_(e),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),e.removeEventListener(a.Z.CHANGE,this.boundHandleFeatureChange_)}},{key:"removeFeatureSegmentData_",value:function(e){var t=this.rBush_,r=[];t.forEach((function(t){e===t.feature&&r.push(t)}));for(var n=r.length-1;n>=0;--n){for(var i=r[n],o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===i&&this.dragSegments_.splice(o,1);t.remove(i)}}},{key:"setActive",value:function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),S(L(r.prototype),"setActive",this).call(this,e)}},{key:"setMap",value:function(e){this.overlay_.setMap(e),S(L(r.prototype),"setMap",this).call(this,e)}},{key:"getOverlay",value:function(){return this.overlay_}},{key:"handleSourceAdd_",value:function(e){e.feature&&this.features_.push(e.feature)}},{key:"handleSourceRemove_",value:function(e){e.feature&&this.features_.remove(e.feature)}},{key:"handleFeatureAdd_",value:function(e){this.addFeature_(e.element)}},{key:"handleFeatureChange_",value:function(e){if(!this.changingFeature_){var t=e.target;this.removeFeature_(t),this.addFeature_(t)}}},{key:"handleFeatureRemove_",value:function(e){var t=e.element;this.removeFeature_(t)}},{key:"writePointGeometry_",value:function(e,t){var r=t.getCoordinates(),n={feature:e,geometry:t,segment:[r,r]};this.rBush_.insert(t.getExtent(),n)}},{key:"writeMultiPointGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n){var o=r[n],a={feature:e,geometry:t,depth:[n],index:n,segment:[o,o]};this.rBush_.insert(t.getExtent(),a)}}},{key:"writeLineStringGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length-1;n<i;++n){var o=r.slice(n,n+2),a={feature:e,geometry:t,index:n,segment:o};this.rBush_.insert((0,m.hI)(o),a)}}},{key:"writeMultiLineStringGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var u=o.slice(a,a+2),l={feature:e,geometry:t,depth:[n],index:a,segment:u};this.rBush_.insert((0,m.hI)(u),l)}}},{key:"writePolygonGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var u=o.slice(a,a+2),l={feature:e,geometry:t,depth:[n],index:a,segment:u};this.rBush_.insert((0,m.hI)(u),l)}}},{key:"writeMultiPolygonGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var u=o[a],l=0,c=u.length-1;l<c;++l){var f=u.slice(l,l+2),h={feature:e,geometry:t,depth:[a,n],index:l,segment:f};this.rBush_.insert((0,m.hI)(f),h)}}},{key:"writeCircleGeometry_",value:function(e,t){var r=t.getCenter(),n={feature:e,geometry:t,index:0,segment:[r,r]},i={feature:e,geometry:t,index:1,segment:[r,r]},o=[n,i];n.featureSegments=o,i.featureSegments=o,this.rBush_.insert((0,m.HK)(r),n);var a=t,s=(0,x.Cs)();if(s&&this.getMap()){var u=this.getMap().getView().getProjection();a=a.clone().transform(s,u),a=(0,w.Bb)(a).transform(u,s)}this.rBush_.insert(a.getExtent(),i)}},{key:"writeGeometryCollectionGeometry_",value:function(e,t){for(var r=t.getGeometriesArray(),n=0;n<r.length;++n){var i=r[n];(0,this.SEGMENT_WRITERS_[i.getType()])(e,i)}}},{key:"createOrUpdateVertexFeature_",value:function(e,t,r){var n=this.vertexFeature_;n?n.getGeometry().setCoordinates(e):(n=new s.Z(new c.Z(e)),this.vertexFeature_=n,this.overlay_.getSource().addFeature(n));return n.set("features",t),n.set("geometries",r),n}},{key:"handleEvent",value:function(e){return!e.originalEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=l.Z.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(t=!(e.type!=l.Z.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==l.Z.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),S(L(r.prototype),"handleEvent",this).call(this,e)&&!t);var t}},{key:"handleDragEvent",value:function(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_);for(var t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],r=[],n=[],i=0,o=this.dragSegments_.length;i<o;++i){var a=this.dragSegments_[i],s=a[0],l=s.feature;-1===r.indexOf(l)&&r.push(l);var c=s.geometry;-1===n.indexOf(c)&&n.push(c);for(var f=s.depth,h=void 0,p=s.segment,d=a[1];t.length<c.getStride();)t.push(p[d][t.length]);switch(c.getType()){case u.Z.POINT:h=t,p[0]=t,p[1]=t;break;case u.Z.MULTI_POINT:(h=c.getCoordinates())[s.index]=t,p[0]=t,p[1]=t;break;case u.Z.LINE_STRING:(h=c.getCoordinates())[s.index+d]=t,p[d]=t;break;case u.Z.MULTI_LINE_STRING:case u.Z.POLYGON:(h=c.getCoordinates())[f[0]][s.index+d]=t,p[d]=t;break;case u.Z.MULTI_POLYGON:(h=c.getCoordinates())[f[1]][f[0]][s.index+d]=t,p[d]=t;break;case u.Z.CIRCLE:if(p[0]=t,p[1]=t,0===s.index)this.changingFeature_=!0,c.setCenter(t),this.changingFeature_=!1;else{this.changingFeature_=!0;var y=e.map.getView().getProjection(),v=(0,g.TE)((0,x.Vs)(c.getCenter(),y),(0,x.Vs)(t,y)),m=(0,x.Cs)();if(m){var b=c.clone().transform(m,y);b.setRadius(v),v=b.transform(y,m).getRadius()}c.setRadius(v),this.changingFeature_=!1}}h&&this.setGeometryCoordinates_(c,h)}this.createOrUpdateVertexFeature_(t,r,n)}},{key:"handleDownEvent",value:function(e){if(!this.condition_(e))return!1;var t=e.coordinate;this.handlePointerAtPixel_(e.pixel,e.map,t),this.dragSegments_.length=0,this.featuresBeingModified_=null;var r=this.vertexFeature_;if(r){var n=e.map.getView().getProjection(),i=[],o=r.getGeometry().getCoordinates(),a=(0,m.hI)([o]),s=this.rBush_.getInExtent(a),l={};s.sort(z);for(var c=0,f=s.length;c<f;++c){var h=s[c],p=h.segment,d=(0,k.sq)(h.geometry),y=h.depth;if(y&&(d+="-"+y.join("-")),l[d]||(l[d]=new Array(2)),h.geometry.getType()!==u.Z.CIRCLE||1!==h.index)if(!(0,g.fS)(p[0],o)||l[d][0])if(!(0,g.fS)(p[1],o)||l[d][1])(0,k.sq)(p)in this.vertexSegments_&&!l[d][0]&&!l[d][1]&&this.insertVertexCondition_(e)&&i.push(h);else{if((h.geometry.getType()===u.Z.LINE_STRING||h.geometry.getType()===u.Z.MULTI_LINE_STRING)&&l[d][0]&&0===l[d][0].index)continue;this.dragSegments_.push([h,1]),l[d][1]=h}else this.dragSegments_.push([h,0]),l[d][0]=h;else{var v=q(t,h,n);(0,g.fS)(v,o)&&!l[d][0]&&(this.dragSegments_.push([h,0]),l[d][0]=h)}}i.length&&this.willModifyFeatures_(e,[i]);for(var b=i.length-1;b>=0;--b)this.insertVertex_(i[b],o)}return!!this.vertexFeature_}},{key:"handleUpEvent",value:function(e){for(var t=this.dragSegments_.length-1;t>=0;--t){var r=this.dragSegments_[t][0],n=r.geometry;if(n.getType()===u.Z.CIRCLE){var i=n.getCenter(),o=r.featureSegments[0],a=r.featureSegments[1];o.segment[0]=i,o.segment[1]=i,a.segment[0]=i,a.segment[1]=i,this.rBush_.update((0,m.HK)(i),o);var s=n,l=(0,x.Cs)();if(l){var c=e.map.getView().getProjection();s=s.clone().transform(l,c),s=(0,w.Bb)(s).transform(c,l)}this.rBush_.update(s.getExtent(),a)}else this.rBush_.update((0,m.hI)(r.segment),r)}return this.featuresBeingModified_&&(this.dispatchEvent(new G(N,this.featuresBeingModified_,e)),this.featuresBeingModified_=null),!1}},{key:"handlePointerMove_",value:function(e){this.lastPixel_=e.pixel,this.handlePointerAtPixel_(e.pixel,e.map,e.coordinate)}},{key:"handlePointerAtPixel_",value:function(e,t,r){var n,i,o=this,a=r||t.getCoordinateFromPixel(e),s=t.getView().getProjection();if(this.hitDetection_){var l="object"===O(this.hitDetection_)?function(e){return e===o.hitDetection_}:void 0;t.forEachFeatureAtPixel(e,(function(e,t,r){if((r=r||e.getGeometry()).getType()===u.Z.POINT&&(0,_.q9)(o.features_.getArray(),e)){i=r;var a=r.getFlatCoordinates().slice(0,2);n=[{feature:e,geometry:r,segment:[a,a]}]}return!0}),{layerFilter:l})}if(!n){var c=(0,x.dY)((0,m.HK)(a,D),s),f=t.getView().getResolution()*this.pixelTolerance_,h=(0,x.Fj)((0,m.f3)(c,f,D),s);n=this.rBush_.getInExtent(h)}if(n&&n.length>0){var p=n.sort((function(e,t){return U(a,e,s)-U(a,t,s)}))[0],d=p.segment,y=q(a,p,s),v=t.getPixelFromCoordinate(y),b=(0,g.TE)(e,v);if(i||b<=this.pixelTolerance_){var w={};if(w[(0,k.sq)(d)]=!0,this.snapToPointer_||(this.delta_[0]=y[0]-a[0],this.delta_[1]=y[1]-a[1]),p.geometry.getType()===u.Z.CIRCLE&&1===p.index)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(y,[p.feature],[p.geometry]);else{var S=t.getPixelFromCoordinate(d[0]),E=t.getPixelFromCoordinate(d[1]),T=(0,g.bI)(v,S),R=(0,g.bI)(v,E);b=Math.sqrt(Math.min(T,R)),this.snappedToVertex_=b<=this.pixelTolerance_,this.snappedToVertex_&&(y=T>R?d[1]:d[0]),this.createOrUpdateVertexFeature_(y,[p.feature],[p.geometry]);var P={};P[(0,k.sq)(p.geometry)]=!0;for(var C=1,M=n.length;C<M;++C){var j=n[C].segment;if(!((0,g.fS)(d[0],j[0])&&(0,g.fS)(d[1],j[1])||(0,g.fS)(d[0],j[1])&&(0,g.fS)(d[1],j[0])))break;var I=(0,k.sq)(n[C].geometry);I in P||(P[I]=!0,w[(0,k.sq)(j)]=!0)}}return void(this.vertexSegments_=w)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)}},{key:"insertVertex_",value:function(e,t){for(var r,n=e.segment,i=e.feature,o=e.geometry,a=e.depth,s=e.index;t.length<o.getStride();)t.push(0);switch(o.getType()){case u.Z.MULTI_LINE_STRING:case u.Z.POLYGON:(r=o.getCoordinates())[a[0]].splice(s+1,0,t);break;case u.Z.MULTI_POLYGON:(r=o.getCoordinates())[a[1]][a[0]].splice(s+1,0,t);break;case u.Z.LINE_STRING:(r=o.getCoordinates()).splice(s+1,0,t);break;default:return}this.setGeometryCoordinates_(o,r);var l=this.rBush_;l.remove(e),this.updateSegmentIndices_(o,s,a,1);var c={segment:[n[0],t],feature:i,geometry:o,depth:a,index:s};l.insert((0,m.hI)(c.segment),c),this.dragSegments_.push([c,1]);var f={segment:[t,n[1]],feature:i,geometry:o,depth:a,index:s+1};l.insert((0,m.hI)(f.segment),f),this.dragSegments_.push([f,0]),this.ignoreNextSingleClick_=!0}},{key:"removePoint",value:function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=l.Z.POINTERDRAG){var e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_);var t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new G(N,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1}},{key:"removeVertex_",value:function(){var e,t,r,n,i,o,a,s,l,c,f,h=this.dragSegments_,p={},d=!1;for(i=h.length-1;i>=0;--i)c=(r=h[i])[0],f=(0,k.sq)(c.feature),c.depth&&(f+="-"+c.depth.join("-")),f in p||(p[f]={}),0===r[1]?(p[f].right=c,p[f].index=c.index):1==r[1]&&(p[f].left=c,p[f].index=c.index+1);for(f in p){switch(l=p[f].right,a=p[f].left,(s=(o=p[f].index)-1)<0&&(s=0),e=t=(n=(c=void 0!==a?a:l).geometry).getCoordinates(),d=!1,n.getType()){case u.Z.MULTI_LINE_STRING:t[c.depth[0]].length>2&&(t[c.depth[0]].splice(o,1),d=!0);break;case u.Z.LINE_STRING:t.length>2&&(t.splice(o,1),d=!0);break;case u.Z.MULTI_POLYGON:e=e[c.depth[1]];case u.Z.POLYGON:(e=e[c.depth[0]]).length>4&&(o==e.length-1&&(o=0),e.splice(o,1),d=!0,0===o&&(e.pop(),e.push(e[0]),s=e.length-1))}if(d){this.setGeometryCoordinates_(n,t);var y=[];if(void 0!==a&&(this.rBush_.remove(a),y.push(a.segment[0])),void 0!==l&&(this.rBush_.remove(l),y.push(l.segment[1])),void 0!==a&&void 0!==l){var v={depth:c.depth,feature:c.feature,geometry:c.geometry,index:s,segment:y};this.rBush_.insert((0,m.hI)(v.segment),v)}this.updateSegmentIndices_(n,o,c.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return d}},{key:"setGeometryCoordinates_",value:function(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}},{key:"updateSegmentIndices_",value:function(e,t,r,n){this.rBush_.forEachInExtent(e.getExtent(),(function(i){i.geometry===e&&(void 0===r||void 0===i.depth||(0,_.fS)(i.depth,r))&&i.index>t&&(i.index+=n)}))}}]),r}(f.Z);function z(e,t){return e.index-t.index}function U(e,t,r){var n=t.geometry;if(n.getType()===u.Z.CIRCLE){var i=n;if(1===t.index){var o=(0,x.Cs)();o&&(i=i.clone().transform(o,r));var a=(0,g.bI)(i.getCenter(),(0,x.Vs)(e,r)),s=Math.sqrt(a)-i.getRadius();return s*s}}var l=(0,x.Vs)(e,r);return Z[0]=(0,x.Vs)(t.segment[0],r),Z[1]=(0,x.Vs)(t.segment[1],r),(0,g.Bs)(l,Z)}function q(e,t,r){var n=t.geometry;if(n.getType()===u.Z.CIRCLE&&1===t.index){var i=n,o=(0,x.Cs)();return o&&(i=i.clone().transform(o,r)),(0,x.lO)(i.getClosestPoint((0,x.Vs)(e,r)),r)}var a=(0,x.Vs)(e,r);return Z[0]=(0,x.Vs)(t.segment[0],r),Z[1]=(0,x.Vs)(t.segment[1],r),(0,x.lO)((0,g.oL)(a,Z),r)}t.Z=B},16783:function(e,t,r){"use strict";var n=r(6566),i=r(84975),o=r(25738),a=r(36104),s=r(62990);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d="trackpad",y="wheel",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(p,e);var t,r,u,h=f(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r=e||{};(t=h.call(this,r)).totalDelta_=0,t.lastDelta_=0,t.maxDelta_=void 0!==r.maxDelta?r.maxDelta:1,t.duration_=void 0!==r.duration?r.duration:250,t.timeout_=void 0!==r.timeout?r.timeout:80,t.useAnchor_=void 0===r.useAnchor||r.useAnchor,t.constrainResolution_=void 0!==r.constrainResolution&&r.constrainResolution;var n=r.condition?r.condition:a.Bx;return t.condition_=r.onFocusOnly?(0,a.$6)(a.yZ,n):n,t.lastAnchor_=null,t.startTime_=void 0,t.timeoutId_,t.mode_=void 0,t.trackpadEventGap_=400,t.trackpadTimeoutId_,t.deltaPerZoom_=300,t}return t=p,(r=[{key:"endInteraction_",value:function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}},{key:"handleEvent",value:function(e){if(!this.condition_(e))return!0;if(e.type!==n.Z.WHEEL)return!0;var t,r=e.map,i=e.originalEvent;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate),e.type==n.Z.WHEEL&&(t=i.deltaY,o.V&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(t/=o.MP),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(t*=40)),0===t)return!1;this.lastDelta_=t;var a=Date.now();void 0===this.startTime_&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(t)<4?d:y);var s=r.getView();if(this.mode_===d&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-t/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=t;var u=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),u),!1}},{key:"handleWheelZoom_",value:function(e){var t=e.getView();t.getAnimating()&&t.cancelAnimations();var r=-(0,s.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(t.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),(0,i.FW)(t,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}},{key:"setMouseAnchor",value:function(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}])&&l(t.prototype,r),u&&l(t,u),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.ZP);t.Z=v},23917:function(e,t,r){"use strict";var n=r(51291),i=r(13837);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(c,e);var t,r,o,l=u(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{},n=r;return n.stopDown||(n.stopDown=i.Dv),(t=l.call(this,n)).anchor_=null,t.duration_=void 0!==r.duration?r.duration:400,t.lastDistance_=void 0,t.lastScaleDelta_=1,t}return t=c,(r=[{key:"handleDragEvent",value:function(e){var t=1,r=this.targetPointers[0],i=this.targetPointers[1],o=r.clientX-i.clientX,a=r.clientY-i.clientY,s=Math.sqrt(o*o+a*a);void 0!==this.lastDistance_&&(t=this.lastDistance_/s),this.lastDistance_=s;var u=e.map,l=u.getView();1!=t&&(this.lastScaleDelta_=t);var c=u.getViewport().getBoundingClientRect(),f=(0,n.S)(this.targetPointers);f[0]-=c.left,f[1]-=c.top,this.anchor_=u.getCoordinateFromPixelInternal(f),u.render(),l.adjustResolutionInternal(t,this.anchor_)}},{key:"handleUpEvent",value:function(e){if(this.targetPointers.length<2){var t=e.map.getView(),r=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,r),!1}return!0}},{key:"handleDownEvent",value:function(e){if(this.targetPointers.length>=2){var t=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||t.getView().beginInteraction(),!0}return!1}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=f},51291:function(e,t,r){"use strict";r.d(t,{S:function(){return p}});var n=r(84975),i=r(81248),o=r(32275);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{};return t=a.call(this,r),r.handleDownEvent&&(t.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(t.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(t.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(t.handleUpEvent=r.handleUpEvent),r.stopDown&&(t.stopDown=r.stopDown),t.handlingDownUpSequence=!1,t.trackedPointers_={},t.targetPointers=[],t}return t=c,(r=[{key:"getPointerCount",value:function(){return this.targetPointers.length}},{key:"handleDownEvent",value:function(e){return!1}},{key:"handleDragEvent",value:function(e){}},{key:"handleEvent",value:function(e){if(!e.originalEvent)return!0;var t=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==i.Z.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==i.Z.POINTERUP){var r=this.handleUpEvent(e);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(e.type==i.Z.POINTERDOWN){var n=this.handleDownEvent(e);this.handlingDownUpSequence=n,t=this.stopDown(n)}else e.type==i.Z.POINTERMOVE&&this.handleMoveEvent(e);return!t}},{key:"handleMoveEvent",value:function(e){}},{key:"handleUpEvent",value:function(e){return!1}},{key:"stopDown",value:function(e){return e}},{key:"updateTrackedPointers_",value:function(e){if(function(e){var t=e.type;return t===i.Z.POINTERDOWN||t===i.Z.POINTERDRAG||t===i.Z.POINTERUP}(e)){var t=e.originalEvent,r=t.pointerId.toString();e.type==i.Z.POINTERUP?delete this.trackedPointers_[r]:(e.type==i.Z.POINTERDOWN||r in this.trackedPointers_)&&(this.trackedPointers_[r]=t),this.targetPointers=(0,o.KX)(this.trackedPointers_)}}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.ZP);function p(e){for(var t=e.length,r=0,n=0,i=0;i<t;i++)r+=e[i].clientX,n+=e[i].clientY;return[r/t,n/t]}t.Z=h},92164:function(e,t){"use strict";t.Z={ACTIVE:"active"}},52110:function(e,t,r){"use strict";var n=r(25898),i=r(31879),o=r(21510),a=r(10392),s=r(84975),u=r(41372),l=r(13837),c=r(32275),f=r(69039),h=r(17985),p=r(99382),d=r(36104);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=m(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T="select",R=function(e){w(r,e);var t=k(r);function r(e,n,i,o){var a;return _(this,r),(a=t.call(this,e)).selected=n,a.deselected=i,a.mapBrowserEvent=o,a}return b(r)}(o.ZP),P={},C=function(e){w(r,e);var t=k(r);function r(e){var i;_(this,r),(i=t.call(this)).on,i.once,i.un;var o,s,u=e||{};if(i.boundAddFeature_=i.addFeature_.bind(S(i)),i.boundRemoveFeature_=i.removeFeature_.bind(S(i)),i.condition_=u.condition?u.condition:d.Kf,i.addCondition_=u.addCondition?u.addCondition:d.Fi,i.removeCondition_=u.removeCondition?u.removeCondition:d.Fi,i.toggleCondition_=u.toggleCondition?u.toggleCondition:d.vY,i.multi_=!!u.multi&&u.multi,i.filter_=u.filter?u.filter:l.uX,i.hitTolerance_=u.hitTolerance?u.hitTolerance:0,i.style_=void 0!==u.style?u.style:(o=(0,f.Ly)(),(0,h.l7)(o[a.Z.POLYGON],o[a.Z.LINE_STRING]),(0,h.l7)(o[a.Z.GEOMETRY_COLLECTION],o[a.Z.LINE_STRING]),function(e){return e.getGeometry()?o[e.getGeometry().getType()]:null}),i.features_=u.features||new n.Z,u.layers)if("function"==typeof u.layers)s=u.layers;else{var c=u.layers;s=function(e){return(0,h.q9)(c,e)}}else s=l.uX;return i.layerFilter_=s,i.featureLayerAssociation_={},i}return b(r,[{key:"addFeatureLayerAssociation_",value:function(e,t){this.featureLayerAssociation_[(0,p.sq)(e)]=t}},{key:"getFeatures",value:function(){return this.features_}},{key:"getHitTolerance",value:function(){return this.hitTolerance_}},{key:"getLayer",value:function(e){return this.featureLayerAssociation_[(0,p.sq)(e)]}},{key:"setHitTolerance",value:function(e){this.hitTolerance_=e}},{key:"setMap",value:function(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),v(E(r.prototype),"setMap",this).call(this,e),e?(this.features_.addEventListener(i.Z.ADD,this.boundAddFeature_),this.features_.addEventListener(i.Z.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(i.Z.ADD,this.boundAddFeature_),this.features_.removeEventListener(i.Z.REMOVE,this.boundRemoveFeature_))}},{key:"addFeature_",value:function(e){var t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){var r=this.getMap().getAllLayers().find((function(e){if(e instanceof u.Z&&e.getSource()&&e.getSource().hasFeature(t))return e}));r&&this.addFeatureLayerAssociation_(t,r)}}},{key:"removeFeature_",value:function(e){var t=e.element;this.style_&&this.restorePreviousStyle_(t)}},{key:"getStyle",value:function(){return this.style_}},{key:"applySelectedStyle_",value:function(e){var t=(0,p.sq)(e);t in P||(P[t]=e.getStyle()),e.setStyle(this.style_)}},{key:"restorePreviousStyle_",value:function(e){for(var t=this.getMap().getInteractions().getArray(),n=t.length-1;n>=0;--n){var i=t[n];if(i!==this&&i instanceof r&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(i.getStyle())}var o=(0,p.sq)(e);e.setStyle(P[o]),delete P[o]}},{key:"removeFeatureLayerAssociation_",value:function(e){delete this.featureLayerAssociation_[(0,p.sq)(e)]}},{key:"handleEvent",value:function(e){if(!this.condition_(e))return!0;var t=this.addCondition_(e),r=this.removeCondition_(e),n=this.toggleCondition_(e),i=!t&&!r&&!n,o=e.map,a=this.getFeatures(),s=[],u=[];if(i){(0,c.ZH)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,function(e,t){if(this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),u.push(e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var l=a.getLength()-1;l>=0;--l){var f=a.item(l),p=u.indexOf(f);p>-1?u.splice(p,1):(a.remove(f),s.push(f))}0!==u.length&&a.extend(u)}else{o.forEachFeatureAtPixel(e.pixel,function(e,i){if(this.filter_(e,i))return!t&&!n||(0,h.q9)(a.getArray(),e)?(r||n)&&(0,h.q9)(a.getArray(),e)&&(s.push(e),this.removeFeatureLayerAssociation_(e)):(this.addFeatureLayerAssociation_(e,i),u.push(e)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var d=s.length-1;d>=0;--d)a.remove(s[d]);a.extend(u)}return(u.length>0||s.length>0)&&this.dispatchEvent(new R(T,u,s,e)),!0}}]),r}(s.ZP);t.Z=C},99247:function(e,t,r){"use strict";var n=r(31879),i=r(6566),o=r(10392),a=r(51291),s=r(20375),u=r(48201),l=r(13837),c=r(86923),f=r(92932),h=r(85528),p=r(12810),d=r(99382),y=r(32275),v=r(12016);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=_(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e){return e.feature?e.feature:e.element?e.element:void 0}var T=[],R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(_,e);var t,r,a,m=x(_);function _(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var r=e||{},n=r;return n.handleDownEvent||(n.handleDownEvent=l.uX),n.stopDown||(n.stopDown=l.Dv),(t=m.call(this,n)).source_=r.source?r.source:null,t.vertex_=void 0===r.vertex||r.vertex,t.edge_=void 0===r.edge||r.edge,t.features_=r.features?r.features:null,t.featuresListenerKeys_=[],t.featureChangeListenerKeys_={},t.indexedFeaturesExtents_={},t.pendingFeatures_={},t.pixelTolerance_=void 0!==r.pixelTolerance?r.pixelTolerance:10,t.rBush_=new s.Z,t.SEGMENT_WRITERS_={Point:t.writePointGeometry_.bind(O(t)),LineString:t.writeLineStringGeometry_.bind(O(t)),LinearRing:t.writeLineStringGeometry_.bind(O(t)),Polygon:t.writePolygonGeometry_.bind(O(t)),MultiPoint:t.writeMultiPointGeometry_.bind(O(t)),MultiLineString:t.writeMultiLineStringGeometry_.bind(O(t)),MultiPolygon:t.writeMultiPolygonGeometry_.bind(O(t)),GeometryCollection:t.writeGeometryCollectionGeometry_.bind(O(t)),Circle:t.writeCircleGeometry_.bind(O(t))},t}return t=_,(r=[{key:"addFeature",value:function(e,t){var r=void 0===t||t,n=(0,d.sq)(e),o=e.getGeometry();if(o){var a=this.SEGMENT_WRITERS_[o.getType()];a&&(this.indexedFeaturesExtents_[n]=o.getExtent((0,c.lJ)()),a(e,o))}r&&(this.featureChangeListenerKeys_[n]=(0,v.oL)(e,i.Z.CHANGE,this.handleFeatureChange_,this))}},{key:"forEachFeatureAdd_",value:function(e){this.addFeature(e)}},{key:"forEachFeatureRemove_",value:function(e){this.removeFeature(e)}},{key:"getFeatures_",value:function(){var e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}},{key:"handleEvent",value:function(e){var t=this.snapTo(e.pixel,e.coordinate,e.map);return t.snapped&&(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel),b(S(_.prototype),"handleEvent",this).call(this,e)}},{key:"handleFeatureAdd_",value:function(e){var t=E(e);this.addFeature(t)}},{key:"handleFeatureRemove_",value:function(e){var t=E(e);this.removeFeature(t)}},{key:"handleFeatureChange_",value:function(e){var t=e.target;if(this.handlingDownUpSequence){var r=(0,d.sq)(t);r in this.pendingFeatures_||(this.pendingFeatures_[r]=t)}else this.updateFeature_(t)}},{key:"handleUpEvent",value:function(e){var t=(0,y.KX)(this.pendingFeatures_);return t.length&&(t.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1}},{key:"removeFeature",value:function(e,t){var r=void 0===t||t,n=(0,d.sq)(e),i=this.indexedFeaturesExtents_[n];if(i){var o=this.rBush_,a=[];o.forEachInExtent(i,(function(t){e===t.feature&&a.push(t)}));for(var s=a.length-1;s>=0;--s)o.remove(a[s])}r&&((0,v.bN)(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])}},{key:"setMap",value:function(e){var t=this.getMap(),r=this.featuresListenerKeys_,i=this.getFeatures_();t&&(r.forEach(v.bN),r.length=0,i.forEach(this.forEachFeatureRemove_.bind(this))),b(S(_.prototype),"setMap",this).call(this,e),e&&(this.features_?r.push((0,v.oL)(this.features_,n.Z.ADD,this.handleFeatureAdd_,this),(0,v.oL)(this.features_,n.Z.REMOVE,this.handleFeatureRemove_,this)):this.source_&&r.push((0,v.oL)(this.source_,u.Z.ADDFEATURE,this.handleFeatureAdd_,this),(0,v.oL)(this.source_,u.Z.REMOVEFEATURE,this.handleFeatureRemove_,this)),i.forEach(this.forEachFeatureAdd_.bind(this)))}},{key:"snapTo",value:function(e,t,r){var n=r.getCoordinateFromPixel([e[0]-this.pixelTolerance_,e[1]+this.pixelTolerance_]),i=r.getCoordinateFromPixel([e[0]+this.pixelTolerance_,e[1]-this.pixelTolerance_]),a=(0,c.hI)([n,i]),s=this.rBush_.getInExtent(a);this.vertex_&&!this.edge_&&(s=s.filter((function(e){return e.feature.getGeometry().getType()!==o.Z.CIRCLE})));var u=!1,l=null,h=null;if(0===s.length)return{snapped:u,vertex:l,vertexPixel:h};for(var d,y=r.getView().getProjection(),v=(0,p.Vs)(t,y),m=1/0,g=0;g<s.length;++g){var b=s[g];T[0]=(0,p.Vs)(b.segment[0],y),T[1]=(0,p.Vs)(b.segment[1],y);var _=(0,f.Bs)(v,T);_<m&&(d=b,m=_)}var w=d.segment;if(this.vertex_&&!this.edge_){var x=r.getPixelFromCoordinate(w[0]),k=r.getPixelFromCoordinate(w[1]),O=(0,f.bI)(e,x),S=(0,f.bI)(e,k);Math.sqrt(Math.min(O,S))<=this.pixelTolerance_&&(u=!0,l=O>S?w[1]:w[0],h=r.getPixelFromCoordinate(l))}else if(this.edge_){var E=d.feature.getGeometry().getType()===o.Z.CIRCLE;if(E){var R=d.feature.getGeometry(),P=(0,p.Cs)();P&&(R=R.clone().transform(P,y)),l=(0,p.lO)((0,f.Ed)(v,R),y)}else T[0]=(0,p.Vs)(w[0],y),T[1]=(0,p.Vs)(w[1],y),l=(0,p.lO)((0,f.oL)(v,T),y);if(h=r.getPixelFromCoordinate(l),(0,f.TE)(e,h)<=this.pixelTolerance_&&(u=!0,this.vertex_&&!E)){var C=r.getPixelFromCoordinate(w[0]),M=r.getPixelFromCoordinate(w[1]),j=(0,f.bI)(h,C),I=(0,f.bI)(h,M);Math.sqrt(Math.min(j,I))<=this.pixelTolerance_&&(l=j>I?w[1]:w[0],h=r.getPixelFromCoordinate(l))}}return u&&(h=[Math.round(h[0]),Math.round(h[1])]),{snapped:u,vertex:l,vertexPixel:h}}},{key:"updateFeature_",value:function(e){this.removeFeature(e,!1),this.addFeature(e,!1)}},{key:"writeCircleGeometry_",value:function(e,t){var r=this.getMap().getView().getProjection(),n=t,i=(0,p.Cs)();i&&(n=n.clone().transform(i,r));var o=(0,h.Bb)(n);i&&o.transform(r,i);for(var a=o.getCoordinates()[0],s=0,u=a.length-1;s<u;++s){var l=a.slice(s,s+2),f={feature:e,segment:l};this.rBush_.insert((0,c.hI)(l),f)}}},{key:"writeGeometryCollectionGeometry_",value:function(e,t){for(var r=t.getGeometriesArray(),n=0;n<r.length;++n){var i=this.SEGMENT_WRITERS_[r[n].getType()];i&&i(e,r[n])}}},{key:"writeLineStringGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length-1;n<i;++n){var o=r.slice(n,n+2),a={feature:e,segment:o};this.rBush_.insert((0,c.hI)(o),a)}}},{key:"writeMultiLineStringGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var u=o.slice(a,a+2),l={feature:e,segment:u};this.rBush_.insert((0,c.hI)(u),l)}}},{key:"writeMultiPointGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n){var o=r[n],a={feature:e,segment:[o,o]};this.rBush_.insert(t.getExtent(),a)}}},{key:"writeMultiPolygonGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length;a<s;++a)for(var u=o[a],l=0,f=u.length-1;l<f;++l){var h=u.slice(l,l+2),p={feature:e,segment:h};this.rBush_.insert((0,c.hI)(h),p)}}},{key:"writePointGeometry_",value:function(e,t){var r=t.getCoordinates(),n={feature:e,segment:[r,r]};this.rBush_.insert(t.getExtent(),n)}},{key:"writePolygonGeometry_",value:function(e,t){for(var r=t.getCoordinates(),n=0,i=r.length;n<i;++n)for(var o=r[n],a=0,s=o.length-1;a<s;++a){var u=o.slice(a,a+2),l={feature:e,segment:u};this.rBush_.insert((0,c.hI)(u),l)}}}])&&g(t.prototype,r),a&&g(t,a),Object.defineProperty(t,"prototype",{writable:!1}),_}(a.Z);t.Z=R},42365:function(e,t,r){"use strict";var n=r(25898),i=r(21510),o=r(92164),a=r(51291),s=r(13837),u=r(36104),l=r(17985);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=h(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w="translatestart",x="translating",k="translateend",O=function(e){v(r,e);var t=g(r);function r(e,n,i,o,a){var s;return y(this,r),(s=t.call(this,e)).features=n,s.coordinate=i,s.startCoordinate=o,s.mapBrowserEvent=a,s}return d(r)}(i.ZP),S=function(e){v(r,e);var t=g(r);function r(e){var n;y(this,r);var i,a=e||{};if((n=t.call(this,a)).on,n.once,n.un,n.lastCoordinate_=null,n.startCoordinate_=null,n.features_=void 0!==a.features?a.features:null,a.layers&&!n.features_)if("function"==typeof a.layers)i=a.layers;else{var c=a.layers;i=function(e){return(0,l.q9)(c,e)}}else i=s.uX;return n.layerFilter_=i,n.filter_=a.filter&&!n.features_?a.filter:s.uX,n.hitTolerance_=a.hitTolerance?a.hitTolerance:0,n.condition_=a.condition?a.condition:u.Bx,n.lastFeature_=null,n.addChangeListener(o.Z.ACTIVE,n.handleActiveChanged_),n}return d(r,[{key:"handleDownEvent",value:function(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);var t=this.features_||new n.Z([this.lastFeature_]);return this.dispatchEvent(new O(w,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}},{key:"handleUpEvent",value:function(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);var t=this.features_||new n.Z([this.lastFeature_]);return this.dispatchEvent(new O(k,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}},{key:"handleDragEvent",value:function(e){if(this.lastCoordinate_){var t=e.coordinate,r=t[0]-this.lastCoordinate_[0],i=t[1]-this.lastCoordinate_[1],o=this.features_||new n.Z([this.lastFeature_]);o.forEach((function(e){var t=e.getGeometry();t.translate(r,i),e.setGeometry(t)})),this.lastCoordinate_=t,this.dispatchEvent(new O(x,o,t,this.startCoordinate_,e))}}},{key:"handleMoveEvent",value:function(e){var t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?"ol-grab":"ol-grabbing"),t.classList.add(this.lastCoordinate_?"ol-grabbing":"ol-grab")):t.classList.remove("ol-grab","ol-grabbing")}},{key:"featuresAtPixel_",value:function(e,t){return t.forEachFeatureAtPixel(e,function(e,t){if(this.filter_(e,t)&&(!this.features_||(0,l.q9)(this.features_.getArray(),e)))return e}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}},{key:"getHitTolerance",value:function(){return this.hitTolerance_}},{key:"setHitTolerance",value:function(e){this.hitTolerance_=e}},{key:"setMap",value:function(e){var t=this.getMap();f(_(r.prototype),"setMap",this).call(this,e),this.updateState_(t)}},{key:"handleActiveChanged_",value:function(){this.updateState_(null)}},{key:"updateState_",value:function(e){var t=this.getMap(),r=this.getActive();t&&r||(t=t||e)&&t.getViewport().classList.remove("ol-grab","ol-grabbing")}}]),r}(a.Z);t.Z=S},93409:function(e,t,r){"use strict";var n=r(80157),i=r(38400),o=r(99382),a=r(90776),s=r(32275),u=r(62990);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=h(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,n,h=d(y);function y(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=h.call(this)).on,t.once,t.un,t.background_=e.background;var r=(0,s.f0)({},e);return"object"===l(e.properties)&&(delete r.properties,(0,s.f0)(r,e.properties)),r[i.Z.OPACITY]=void 0!==e.opacity?e.opacity:1,(0,a.h)("number"==typeof r[i.Z.OPACITY],64),r[i.Z.VISIBLE]=void 0===e.visible||e.visible,r[i.Z.Z_INDEX]=e.zIndex,r[i.Z.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,r[i.Z.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,r[i.Z.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,r[i.Z.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,t.className_=void 0!==r.className?e.className:"ol-layer",delete r.className,t.setProperties(r),t.state_=null,t}return t=y,(r=[{key:"getBackground",value:function(){return this.background_}},{key:"getClassName",value:function(){return this.className_}},{key:"getLayerState",value:function(e){var t=this.state_||{layer:this,managed:void 0===e||e},r=this.getZIndex();return t.opacity=(0,u.uZ)(Math.round(100*this.getOpacity())/100,0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=void 0!==r||t.managed?r:1/0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}},{key:"getLayersArray",value:function(e){return(0,o.O3)()}},{key:"getLayerStatesArray",value:function(e){return(0,o.O3)()}},{key:"getExtent",value:function(){return this.get(i.Z.EXTENT)}},{key:"getMaxResolution",value:function(){return this.get(i.Z.MAX_RESOLUTION)}},{key:"getMinResolution",value:function(){return this.get(i.Z.MIN_RESOLUTION)}},{key:"getMinZoom",value:function(){return this.get(i.Z.MIN_ZOOM)}},{key:"getMaxZoom",value:function(){return this.get(i.Z.MAX_ZOOM)}},{key:"getOpacity",value:function(){return this.get(i.Z.OPACITY)}},{key:"getSourceState",value:function(){return(0,o.O3)()}},{key:"getVisible",value:function(){return this.get(i.Z.VISIBLE)}},{key:"getZIndex",value:function(){return this.get(i.Z.Z_INDEX)}},{key:"setBackground",value:function(e){this.background_=e,this.changed()}},{key:"setExtent",value:function(e){this.set(i.Z.EXTENT,e)}},{key:"setMaxResolution",value:function(e){this.set(i.Z.MAX_RESOLUTION,e)}},{key:"setMinResolution",value:function(e){this.set(i.Z.MIN_RESOLUTION,e)}},{key:"setMaxZoom",value:function(e){this.set(i.Z.MAX_ZOOM,e)}},{key:"setMinZoom",value:function(e){this.set(i.Z.MIN_ZOOM,e)}},{key:"setOpacity",value:function(e){(0,a.h)("number"==typeof e,64),this.set(i.Z.OPACITY,e)}},{key:"setVisible",value:function(e){this.set(i.Z.VISIBLE,e)}},{key:"setZIndex",value:function(e){this.set(i.Z.Z_INDEX,e)}},{key:"disposeInternal",value:function(){this.state_&&(this.state_.layer=null,this.state_=null),f(v(y.prototype),"disposeInternal",this).call(this)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);t.Z=m},39626:function(e,t,r){"use strict";var n=r(2320),i=r(85498),o=r(32275);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{},n=(0,o.f0)({},r);return delete n.preload,delete n.useInterimTilesOnError,(t=a.call(this,n)).on,t.once,t.un,t.setPreload(void 0!==r.preload?r.preload:0),t.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),t}return t=c,(r=[{key:"getPreload",value:function(){return this.get(i.Z.PRELOAD)}},{key:"setPreload",value:function(e){this.set(i.Z.PRELOAD,e)}},{key:"getUseInterimTilesOnError",value:function(){return this.get(i.Z.USE_INTERIM_TILES_ON_ERROR)}},{key:"setUseInterimTilesOnError",value:function(e){this.set(i.Z.USE_INTERIM_TILES_ON_ERROR,e)}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=h},96421:function(e,t,r){"use strict";var n=r(2320),i=r(53925),o=r(32275),a=r(69039);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=c(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="renderOrder",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(c,e);var t,r,n,s=h(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{},n=(0,o.f0)({},r);return delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,(t=s.call(this,n)).declutter_=void 0!==r.declutter&&r.declutter,t.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,t.style_=null,t.styleFunction_=void 0,t.setStyle(r.style),t.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,t.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,t}return t=c,(r=[{key:"getDeclutter",value:function(){return this.declutter_}},{key:"getFeatures",value:function(e){return l(d(c.prototype),"getFeatures",this).call(this,e)}},{key:"getRenderBuffer",value:function(){return this.renderBuffer_}},{key:"getRenderOrder",value:function(){return this.get(y)}},{key:"getStyle",value:function(){return this.style_}},{key:"getStyleFunction",value:function(){return this.styleFunction_}},{key:"getUpdateWhileAnimating",value:function(){return this.updateWhileAnimating_}},{key:"getUpdateWhileInteracting",value:function(){return this.updateWhileInteracting_}},{key:"renderDeclutter",value:function(e){e.declutterTree||(e.declutterTree=new i(9)),this.getRenderer().renderDeclutter(e)}},{key:"setRenderOrder",value:function(e){this.set(y,e)}},{key:"setStyle",value:function(e){this.style_=void 0!==e?e:a.yF,this.styleFunction_=null===e?void 0:(0,a.J$)(this.style_),this.changed()}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(n.Z);t.Z=v},25649:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(25898),i=r(37051),o=r(12739),a=r(77975),s=r(25691),u=r(5265),l=r(75469),c=r(720),f=r(69039),h=r(40729),p=r(41372),d=r(95783),y=r(86923),v=r(32275),m=r(62990),g=r(92932),b=r(12810),_=r(31250);function w(e,t,r){for(var n,i,o,a,s,u,l=[],c=e(0),f=e(1),h=t(c),p=t(f),d=[f,c],y=[p,h],v=[1,0],g={},b=1e5;--b>0&&v.length>0;)o=v.pop(),c=d.pop(),h=y.pop(),(u=o.toString())in g||(l.push(h[0],h[1]),g[u]=!0),a=v.pop(),f=d.pop(),p=y.pop(),i=t(n=e(s=(o+a)/2)),(0,m.rU)(i[0],i[1],h[0],h[1],p[0],p[1])<r?(l.push(p[0],p[1]),g[u=a.toString()]=!0):(v.push(a,s,s,o),y.push(p,i,i,h),d.push(f,n,n,c));return l}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=new c.Z({color:"rgba(0,0,0,0.2)"}),C=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(E,e);var t,r,p,x=S(E);function E(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E);var r=e||{},o=(0,v.f0)({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},r);return delete o.maxLines,delete o.strokeStyle,delete o.targetSize,delete o.showLabels,delete o.lonLabelFormatter,delete o.latLabelFormatter,delete o.lonLabelPosition,delete o.latLabelPosition,delete o.lonLabelStyle,delete o.latLabelStyle,delete o.intervals,(t=x.call(this,o)).projection_=null,t.maxLat_=1/0,t.maxLon_=1/0,t.minLat_=-1/0,t.minLon_=-1/0,t.maxX_=1/0,t.maxY_=1/0,t.minX_=-1/0,t.minY_=-1/0,t.targetSize_=void 0!==r.targetSize?r.targetSize:100,t.maxLines_=void 0!==r.maxLines?r.maxLines:100,t.meridians_=[],t.parallels_=[],t.strokeStyle_=void 0!==r.strokeStyle?r.strokeStyle:P,t.fromLonLatTransform_=void 0,t.toLonLatTransform_=void 0,t.projectionCenterLonLat_=null,t.bottomLeft_=null,t.bottomRight_=null,t.topLeft_=null,t.topRight_=null,t.meridiansLabels_=null,t.parallelsLabels_=null,r.showLabels&&(t.lonLabelFormatter_=null==r.lonLabelFormatter?g.I8.bind(T(t),"EW"):r.lonLabelFormatter,t.latLabelFormatter_=null==r.latLabelFormatter?g.I8.bind(T(t),"NS"):r.latLabelFormatter,t.lonLabelPosition_=null==r.lonLabelPosition?0:r.lonLabelPosition,t.latLabelPosition_=null==r.latLabelPosition?1:r.latLabelPosition,t.lonLabelStyleBase_=new f.ZP({text:void 0!==r.lonLabelStyle?r.lonLabelStyle.clone():new h.Z({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new a.Z({color:"rgba(0,0,0,1)"}),stroke:new c.Z({color:"rgba(255,255,255,1)",width:3})})}),t.lonLabelStyle_=function(e){var t=e.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(t),this.lonLabelStyleBase_}.bind(T(t)),t.latLabelStyleBase_=new f.ZP({text:void 0!==r.latLabelStyle?r.latLabelStyle.clone():new h.Z({font:"12px Calibri,sans-serif",textAlign:"right",fill:new a.Z({color:"rgba(0,0,0,1)"}),stroke:new c.Z({color:"rgba(255,255,255,1)",width:3})})}),t.latLabelStyle_=function(e){var t=e.get("graticule_label");return this.latLabelStyleBase_.getText().setText(t),this.latLabelStyleBase_}.bind(T(t)),t.meridiansLabels_=[],t.parallelsLabels_=[],t.addEventListener(i.Z.POSTRENDER,t.drawLabels_.bind(T(t)))),t.intervals_=void 0!==r.intervals?r.intervals:C,t.setSource(new d.Z({loader:t.loaderFunction.bind(T(t)),strategy:t.strategyFunction.bind(T(t)),features:new n.Z,overlaps:!1,useSpatialIndex:!1,wrapX:r.wrapX})),t.featurePool_=[],t.lineStyle_=new f.ZP({stroke:t.strokeStyle_}),t.loadedExtent_=null,t.renderedExtent_=null,t.setRenderOrder(null),t}return t=E,(r=[{key:"strategyFunction",value:function(e,t){var r=e.slice();return this.projection_&&this.getSource().getWrapX()&&(0,y.Cf)(r,this.projection_),this.loadedExtent_&&((0,y.iW)(this.loadedExtent_,r,t)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]}},{key:"loaderFunction",value:function(e,t,r){this.loadedExtent_=e;var n=this.getSource(),i=this.getExtent()||[-1/0,-1/0,1/0,1/0],a=(0,y.Ed)(i,e);if(!(this.renderedExtent_&&(0,y.fS)(this.renderedExtent_,a)||(this.renderedExtent_=a,(0,y.xb)(a)))){var s=(0,y.qg)(a),u=t*t/4;(!this.projection_||!(0,b.OP)(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(a,s,t,u);var l,c=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(c+=this.meridians_.length),this.parallelsLabels_&&(c+=this.parallels_.length);c>this.featurePool_.length;)l=new o.Z,this.featurePool_.push(l);var f=n.getFeaturesCollection();f.clear();var h,p,d=0;for(h=0,p=this.meridians_.length;h<p;++h)(l=this.featurePool_[d++]).setGeometry(this.meridians_[h]),l.setStyle(this.lineStyle_),f.push(l);for(h=0,p=this.parallels_.length;h<p;++h)(l=this.featurePool_[d++]).setGeometry(this.parallels_[h]),l.setStyle(this.lineStyle_),f.push(l)}}},{key:"addMeridian_",value:function(e,t,r,n,i,o){var a=this.getMeridian_(e,t,r,n,o);if((0,y.kK)(a.getExtent(),i)){if(this.meridiansLabels_){var s=this.lonLabelFormatter_(e);o in this.meridiansLabels_?this.meridiansLabels_[o].text=s:this.meridiansLabels_[o]={geom:new l.Z([]),text:s}}this.meridians_[o++]=a}return o}},{key:"addParallel_",value:function(e,t,r,n,i,o){var a=this.getParallel_(e,t,r,n,o);if((0,y.kK)(a.getExtent(),i)){if(this.parallelsLabels_){var s=this.latLabelFormatter_(e);o in this.parallelsLabels_?this.parallelsLabels_[o].text=s:this.parallelsLabels_[o]={geom:new l.Z([]),text:s}}this.parallels_[o++]=a}return o}},{key:"drawLabels_",value:function(e){var t=e.frameState.viewState.rotation,r=e.frameState.extent,n=(0,y.qg)(r),i=r;if(t){var o=(0,y.dz)(r),a=(0,y.Cr)(r),s=Math.abs(Math.cos(t)),u=Math.abs(Math.sin(t)),l=(u*a-s*o)/(u*u-s*s),c=(u*o-s*a)/(u*u-s*s);i=[n[0]-l/2,n[1]-c/2,n[0]+l/2,n[1]+c/2]}var f=0,h=0,p=this.latLabelPosition_<.5,d=this.projection_.getExtent(),v=(0,y.dz)(d);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,y.r4)(d,r)&&(f=Math.floor((r[0]-d[0])/v),h=Math.ceil((r[2]-d[2])/v),p=p!==Math.abs(t)>Math.PI/2);for(var m=(0,_.u3)(e),g=f;g<=h;++g){var b=this.meridians_.length+this.parallels_.length,w=void 0,x=void 0,k=void 0,O=void 0;if(this.meridiansLabels_)for(x=0,k=this.meridiansLabels_.length;x<k;++x){var S=this.meridians_[x];if(t||0!==g){var E=S.clone();E.translate(g*v,0),E.rotate(-t,n),(O=this.getMeridianPoint_(E,i,x)).rotate(t,n)}else O=this.getMeridianPoint_(S,r,x);(w=this.featurePool_[b++]).setGeometry(O),w.set("graticule_label",this.meridiansLabels_[x].text),m.drawFeature(w,this.lonLabelStyle_(w))}if(this.parallelsLabels_&&(g===f&&p||g===h&&!p))for(x=0,k=this.parallels_.length;x<k;++x){var T=this.parallels_[x];if(t||0!==g){var R=T.clone();R.translate(g*v,0),R.rotate(-t,n),(O=this.getParallelPoint_(R,i,x)).rotate(t,n)}else O=this.getParallelPoint_(T,r,x);(w=this.featurePool_[b++]).setGeometry(O),w.set("graticule_label",this.parallelsLabels_[x].text),m.drawFeature(w,this.latLabelStyle_(w))}}}},{key:"createGraticule_",value:function(e,t,r,n){var i=this.getInterval_(r);if(-1==i)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o=!1,a=this.projection_.getExtent(),s=(0,y.dz)(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,y.r4)(a,e)&&((0,y.dz)(e)>=s?(e[0]=a[0],e[2]=a[2]):o=!0);var u=[(0,m.uZ)(t[0],this.minX_,this.maxX_),(0,m.uZ)(t[1],this.minY_,this.maxY_)],l=this.toLonLatTransform_(u);isNaN(l[1])&&(l[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);var c,f,h,p,d=(0,m.uZ)(l[0],this.minLon_,this.maxLon_),v=(0,m.uZ)(l[1],this.minLat_,this.maxLat_),g=this.maxLines_,b=e;o||(b=[(0,m.uZ)(e[0],this.minX_,this.maxX_),(0,m.uZ)(e[1],this.minY_,this.maxY_),(0,m.uZ)(e[2],this.minX_,this.maxX_),(0,m.uZ)(e[3],this.minY_,this.maxY_)]);var _=(0,y.Ne)(b,this.toLonLatTransform_,void 0,8),w=_[3],x=_[2],k=_[1],O=_[0];if(o||((0,y.b8)(b,this.bottomLeft_)&&(O=this.minLon_,k=this.minLat_),(0,y.b8)(b,this.bottomRight_)&&(x=this.maxLon_,k=this.minLat_),(0,y.b8)(b,this.topLeft_)&&(O=this.minLon_,w=this.maxLat_),(0,y.b8)(b,this.topRight_)&&(x=this.maxLon_,w=this.maxLat_),w=(0,m.uZ)(w,v,this.maxLat_),x=(0,m.uZ)(x,d,this.maxLon_),k=(0,m.uZ)(k,this.minLat_,v),O=(0,m.uZ)(O,this.minLon_,d)),d=Math.floor(d/i)*i,p=(0,m.uZ)(d,this.minLon_,this.maxLon_),f=this.addMeridian_(p,k,w,n,e,0),c=0,o)for(;(p-=i)>=O&&c++<g;)f=this.addMeridian_(p,k,w,n,e,f);else for(;p!=this.minLon_&&c++<g;)p=Math.max(p-i,this.minLon_),f=this.addMeridian_(p,k,w,n,e,f);if(p=(0,m.uZ)(d,this.minLon_,this.maxLon_),c=0,o)for(;(p+=i)<=x&&c++<g;)f=this.addMeridian_(p,k,w,n,e,f);else for(;p!=this.maxLon_&&c++<g;)p=Math.min(p+i,this.maxLon_),f=this.addMeridian_(p,k,w,n,e,f);for(this.meridians_.length=f,this.meridiansLabels_&&(this.meridiansLabels_.length=f),v=Math.floor(v/i)*i,h=(0,m.uZ)(v,this.minLat_,this.maxLat_),f=this.addParallel_(h,O,x,n,e,0),c=0;h!=this.minLat_&&c++<g;)h=Math.max(h-i,this.minLat_),f=this.addParallel_(h,O,x,n,e,f);for(h=(0,m.uZ)(v,this.minLat_,this.maxLat_),c=0;h!=this.maxLat_&&c++<g;)h=Math.min(h+i,this.maxLat_),f=this.addParallel_(h,O,x,n,e,f);this.parallels_.length=f,this.parallelsLabels_&&(this.parallelsLabels_.length=f)}},{key:"getInterval_",value:function(e){for(var t=this.projectionCenterLonLat_[0],r=this.projectionCenterLonLat_[1],n=-1,i=Math.pow(this.targetSize_*e,2),o=[],a=[],s=0,u=this.intervals_.length;s<u;++s){var l=(0,m.uZ)(this.intervals_[s]/2,0,90),c=(0,m.uZ)(r,-90+l,90-l);if(o[0]=t-l,o[1]=c-l,a[0]=t+l,a[1]=c+l,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a),Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=i)break;n=this.intervals_[s]}return n}},{key:"getMeridian_",value:function(e,t,r,n,i){var o=function(e,t,r,n,i){var o=(0,b.U2)("EPSG:4326");return w((function(n){return[e,t+(r-t)*n]}),(0,b.Ck)(o,n),i)}(e,t,r,this.projection_,n),a=this.meridians_[i];return a?(a.setFlatCoordinates(s.Z.XY,o),a.changed()):(a=new u.Z(o,s.Z.XY),this.meridians_[i]=a),a}},{key:"getMeridianPoint_",value:function(e,t,r){var n=e.getFlatCoordinates(),i=1,o=n.length-1;n[i]>n[o]&&(i=o,o=1);var a=Math.max(t[1],n[i]),s=Math.min(t[3],n[o]),u=(0,m.uZ)(t[1]+Math.abs(t[1]-t[3])*this.lonLabelPosition_,a,s),l=[n[i-1]+(n[o-1]-n[i-1])*(u-n[i])/(n[o]-n[i]),u],c=this.meridiansLabels_[r].geom;return c.setCoordinates(l),c}},{key:"getMeridians",value:function(){return this.meridians_}},{key:"getParallel_",value:function(e,t,r,n,i){var o=function(e,t,r,n,i){var o=(0,b.U2)("EPSG:4326");return w((function(n){return[t+(r-t)*n,e]}),(0,b.Ck)(o,n),i)}(e,t,r,this.projection_,n),a=this.parallels_[i];return a?(a.setFlatCoordinates(s.Z.XY,o),a.changed()):a=new u.Z(o,s.Z.XY),a}},{key:"getParallelPoint_",value:function(e,t,r){var n=e.getFlatCoordinates(),i=0,o=n.length-2;n[i]>n[o]&&(i=o,o=0);var a=Math.max(t[0],n[i]),s=Math.min(t[2],n[o]),u=(0,m.uZ)(t[0]+Math.abs(t[0]-t[2])*this.latLabelPosition_,a,s),l=[u,n[i+1]+(n[o+1]-n[i+1])*(u-n[i])/(n[o]-n[i])],c=this.parallelsLabels_[r].geom;return c.setCoordinates(l),c}},{key:"getParallels",value:function(){return this.parallels_}},{key:"updateProjectionInfo_",value:function(e){var t=(0,b.U2)("EPSG:4326"),r=e.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];var n=(0,b.Ck)(e,t);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=n;else{var i=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(e,t,r){for(var o=r||2,a=n(e,t,o),s=0,u=a.length;s<u;s+=o)a[s]<i&&(a[s]+=360);return a}}this.fromLonLatTransform_=(0,b.Ck)(t,e);var o=(0,y.Ne)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=o[0],this.maxX_=o[2],this.minY_=o[1],this.maxY_=o[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_((0,y.qg)(e.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=e}}])&&k(t.prototype,r),p&&k(t,p),Object.defineProperty(t,"prototype",{writable:!1}),E}(p.Z)},27923:function(e,t,r){"use strict";r.d(t,{V:function(){return O}});var n=r(93409),i=r(25898),o=r(31879),a=r(21510),s=r(6566),u=r(79937),l=r(46583),c=r(90776),f=r(32275),h=r(86923),p=r(99382),d=r(12016);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){b(r,e);var t=w(r);function r(e,n){var i;return g(this,r),(i=t.call(this,e)).layer=n,i}return m(r)}(a.ZP),S="layers",E=function(e){b(r,e);var t=w(r);function r(e){var n;g(this,r);var o=e||{},a=(0,f.f0)({},o);delete a.layers;var s=o.layers;return(n=t.call(this,a)).on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(S,n.handleLayersChanged_),s?Array.isArray(s)?s=new i.Z(s.slice(),{unique:!0}):(0,c.h)("function"==typeof s.getArray,43):s=new i.Z(void 0,{unique:!0}),n.setLayers(s),n}return m(r,[{key:"handleLayerChange_",value:function(){this.changed()}},{key:"handleLayersChanged_",value:function(){this.layersListenerKeys_.forEach(d.bN),this.layersListenerKeys_.length=0;var e=this.getLayers();for(var t in this.layersListenerKeys_.push((0,d.oL)(e,o.Z.ADD,this.handleLayersAdd_,this),(0,d.oL)(e,o.Z.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[t].forEach(d.bN);(0,f.ZH)(this.listenerKeys_);for(var r=e.getArray(),n=0,i=r.length;n<i;n++){var a=r[n];this.registerLayerListeners_(a),this.dispatchEvent(new O("addlayer",a))}this.changed()}},{key:"registerLayerListeners_",value:function(e){var t=[(0,d.oL)(e,u.Z.PROPERTYCHANGE,this.handleLayerChange_,this),(0,d.oL)(e,s.Z.CHANGE,this.handleLayerChange_,this)];e instanceof r&&t.push((0,d.oL)(e,"addlayer",this.handleLayerGroupAdd_,this),(0,d.oL)(e,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,p.sq)(e)]=t}},{key:"handleLayerGroupAdd_",value:function(e){this.dispatchEvent(new O("addlayer",e.layer))}},{key:"handleLayerGroupRemove_",value:function(e){this.dispatchEvent(new O("removelayer",e.layer))}},{key:"handleLayersAdd_",value:function(e){var t=e.element;this.registerLayerListeners_(t),this.dispatchEvent(new O("addlayer",t)),this.changed()}},{key:"handleLayersRemove_",value:function(e){var t=e.element,r=(0,p.sq)(t);this.listenerKeys_[r].forEach(d.bN),delete this.listenerKeys_[r],this.dispatchEvent(new O("removelayer",t)),this.changed()}},{key:"getLayers",value:function(){return this.get(S)}},{key:"setLayers",value:function(e){var t=this.getLayers();if(t)for(var r=t.getArray(),n=0,i=r.length;n<i;++n)this.dispatchEvent(new O("removelayer",r[n]));this.set(S,e)}},{key:"getLayersArray",value:function(e){var t=void 0!==e?e:[];return this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}},{key:"getLayerStatesArray",value:function(e){var t=void 0!==e?e:[],r=t.length;this.getLayers().forEach((function(e){e.getLayerStatesArray(t)}));var n=this.getLayerState(),i=n.zIndex;e||void 0!==n.zIndex||(i=0);for(var o=r,a=t.length;o<a;o++){var s=t[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=(0,h.Ed)(s.extent,n.extent):s.extent=n.extent),void 0===s.zIndex&&(s.zIndex=i)}return t}},{key:"getSourceState",value:function(){return l.Z.READY}}]),r}(n.Z);t.Z=E},98394:function(e,t,r){"use strict";var n=r(96421),i=r(54240),o=r(32275),a=r(62990),s=r(33716);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d="blur",y="gradient",v="radius",m=["#00f","#0ff","#0f0","#ff0","#f00"],g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,n,u=f(h);function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var r=e||{},n=(0,o.f0)({},r);delete n.gradient,delete n.radius,delete n.blur,delete n.weight,(t=u.call(this,n)).gradient_=null,t.addChangeListener(y,t.handleGradientChanged_),t.setGradient(r.gradient?r.gradient:m),t.setBlur(void 0!==r.blur?r.blur:15),t.setRadius(void 0!==r.radius?r.radius:8);var i=r.weight?r.weight:"weight";return t.weightFunction_="string"==typeof i?function(e){return e.get(i)}:i,t.setRenderOrder(null),t}return t=h,(r=[{key:"getBlur",value:function(){return this.get(d)}},{key:"getGradient",value:function(){return this.get(y)}},{key:"getRadius",value:function(){return this.get(v)}},{key:"handleGradientChanged_",value:function(){this.gradient_=function(e){for(var t=1,r=256,n=(0,s.E4)(t,r),i=n.createLinearGradient(0,0,t,r),o=1/(e.length-1),a=0,u=e.length;a<u;++a)i.addColorStop(a*o,e[a]);return n.fillStyle=i,n.fillRect(0,0,t,r),n.canvas}(this.getGradient())}},{key:"setBlur",value:function(e){this.set(d,e)}},{key:"setGradient",value:function(e){this.set(y,e)}},{key:"setRadius",value:function(e){this.set(v,e)}},{key:"createRenderer",value:function(){return new i.Z(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(e){var t=this.weightFunction_(e);return void 0!==t?(0,a.uZ)(t,0,1):1}.bind(this)}],vertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_weight = a_weight;\n }",fragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n gl_FragColor = vec4(alpha, alpha, alpha, alpha);\n }",hitVertexShader:"\n precision mediump float;\n uniform mat4 u_projectionMatrix;\n uniform mat4 u_offsetScaleMatrix;\n uniform float u_size;\n attribute vec2 a_position;\n attribute float a_index;\n attribute float a_weight;\n attribute vec4 a_hitColor;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n mat4 offsetMatrix = u_offsetScaleMatrix;\n float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;\n float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;\n v_texCoord = vec2(u, v);\n v_hitColor = a_hitColor;\n v_weight = a_weight;\n }",hitFragmentShader:"\n precision mediump float;\n uniform float u_blurSlope;\n\n varying vec2 v_texCoord;\n varying float v_weight;\n varying vec4 v_hitColor;\n\n void main(void) {\n vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);\n float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;\n float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;\n float alpha = smoothstep(0.0, 1.0, value) * v_weight;\n if (alpha < 0.05) {\n discard;\n }\n\n gl_FragColor = v_hitColor;\n }",uniforms:{u_size:function(){return 2*(this.get(v)+this.get(d))}.bind(this),u_blurSlope:function(){return this.get(v)/Math.max(1,this.get(d))}.bind(this)},postProcesses:[{fragmentShader:"\n precision mediump float;\n\n uniform sampler2D u_image;\n uniform sampler2D u_gradientTexture;\n uniform float u_opacity;\n\n varying vec2 v_texCoord;\n\n void main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor.a = color.a * u_opacity;\n gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;\n gl_FragColor.rgb *= gl_FragColor.a;\n }",uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})}},{key:"renderDeclutter",value:function(){}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(n.Z);t.Z=g},86291:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,{Z:function(){return m}});var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(u,e);var t,r,n,s=a(u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=e||{};return s.call(this,t)}return t=u,r&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(r(2320).Z),c=r(70470);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(o,e);var t,r,n,i=d(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(r=[{key:"createRenderer",value:function(){return new c.Z(this)}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(l)},2320:function(e,t,r){"use strict";r.d(t,{j:function(){return _}});var n=r(93409),i=r(6566),o=r(38400),a=r(37051),s=r(46583),u=r(90776),l=r(32275),c=r(12016);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=d(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(d,e);var t,r,n,f=v(d);function d(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var r=(0,l.f0)({},e);delete r.source,(t=f.call(this,r)).on,t.once,t.un,t.mapPrecomposeKey_=null,t.mapRenderKey_=null,t.sourceChangeKey_=null,t.renderer_=null,e.render&&(t.render=e.render),e.map&&t.setMap(e.map),t.addChangeListener(o.Z.SOURCE,t.handleSourcePropertyChange_);var n=e.source?e.source:null;return t.setSource(n),t}return t=d,(r=[{key:"getLayersArray",value:function(e){var t=e||[];return t.push(this),t}},{key:"getLayerStatesArray",value:function(e){var t=e||[];return t.push(this.getLayerState()),t}},{key:"getSource",value:function(){return this.get(o.Z.SOURCE)||null}},{key:"getSourceState",value:function(){var e=this.getSource();return e?e.getState():s.Z.UNDEFINED}},{key:"handleSourceChange_",value:function(){this.changed()}},{key:"handleSourcePropertyChange_",value:function(){this.sourceChangeKey_&&((0,c.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null);var e=this.getSource();e&&(this.sourceChangeKey_=(0,c.oL)(e,i.Z.CHANGE,this.handleSourceChange_,this)),this.changed()}},{key:"getFeatures",value:function(e){return this.renderer_?this.renderer_.getFeatures(e):new Promise((function(e){return e([])}))}},{key:"render",value:function(e,t){var r=this.getRenderer();if(r.prepareFrame(e))return r.renderFrame(e,t)}},{key:"setMapInternal",value:function(e){this.set(o.Z.MAP,e)}},{key:"getMapInternal",value:function(){return this.get(o.Z.MAP)}},{key:"setMap",value:function(e){this.mapPrecomposeKey_&&((0,c.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&((0,c.bN)(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=(0,c.oL)(e,a.Z.PRECOMPOSE,(function(e){var t=e.frameState.layerStatesArray,r=this.getLayerState(!1);(0,u.h)(!t.some((function(e){return e.layer===r.layer})),67),t.push(r)}),this),this.mapRenderKey_=(0,c.oL)(this,i.Z.CHANGE,e.render,e),this.changed())}},{key:"setSource",value:function(e){this.set(o.Z.SOURCE,e)}},{key:"getRenderer",value:function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}},{key:"hasRenderer",value:function(){return!!this.renderer_}},{key:"createRenderer",value:function(){return null}},{key:"disposeInternal",value:function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),p(g(d.prototype),"disposeInternal",this).call(this)}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(n.Z);function _(e,t){if(!e.visible)return!1;var r=t.resolution;if(r<e.minResolution||r>=e.maxResolution)return!1;var n=t.zoom;return n>e.minZoom&&n<=e.maxZoom}t.Z=b},38400:function(e,t){"use strict";t.Z={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},42010:function(e,t,r){"use strict";var n=r(39626),i=r(82173);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,(r=[{key:"createRenderer",value:function(){return new i.Z(this)}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z);t.Z=f},85498:function(e,t){"use strict";t.Z={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"}},41372:function(e,t,r){"use strict";var n=r(96421),i=r(99214);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,(r=[{key:"createRenderer",value:function(){return new i.Z(this)}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z);t.Z=f},58758:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(96421),i=r(70470),o=r(99214),a=r(6566),s=r(40661),u=r(23333),l=r(53925),c=r(34642),f=r(19329),h=r(32275),p=r(86923);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=m(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(d,e);var t,r,n,i=b(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=i.call(this,e)).vectorRenderer_=new o.Z(e),t.layerImageRatio_=e.getImageRatio(),t.coordinateToVectorPixelTransform_=(0,f.Ue)(),t.renderedPixelToCoordinateTransform_=null,t}return t=d,(r=[{key:"disposeInternal",value:function(){this.vectorRenderer_.dispose(),v(w(d.prototype),"disposeInternal",this).call(this)}},{key:"getFeatures",value:function(e){if(!this.vectorRenderer_)return new Promise((function(e){return e([])}));var t=(0,f.nn)(this.coordinateToVectorPixelTransform_,(0,f.nn)(this.renderedPixelToCoordinateTransform_,e.slice()));return this.vectorRenderer_.getFeatures(t)}},{key:"handleFontsChanged",value:function(){this.vectorRenderer_.handleFontsChanged()}},{key:"prepareFrame",value:function(e){var t=e.pixelRatio,r=e.viewState,n=r.resolution,i=e.viewHints,o=this.vectorRenderer_,d=e.extent;1!==this.layerImageRatio_&&(d=d.slice(0),(0,p.H9)(d,this.layerImageRatio_));var y=(0,p.dz)(d)/n,v=(0,p.Cr)(d)/n;if(!i[c.Z.ANIMATING]&&!i[c.Z.INTERACTING]&&!(0,p.xb)(d)){o.useContainer(null,null,1);var m=o.context,g=(0,h.f0)({},e,{declutterTree:new l(9),extent:d,size:[y,v],viewState:(0,h.f0)({},e.viewState,{rotation:0})}),b=!0,_=new s.Z(d,n,t,m.canvas,(function(e){o.prepareFrame(g)&&o.replayGroupChanged&&(o.clipping=!1,o.renderFrame(g,null)&&(o.renderDeclutter(g),b=!1),e())}));_.addEventListener(a.Z.CHANGE,function(){if(_.getState()===u.Z.LOADED){this.image_=b?null:_;var e=_.getResolution(),n=_.getPixelRatio(),i=e*t/n;this.renderedResolution=i,this.coordinateToVectorPixelTransform_=(0,f.qC)(this.coordinateToVectorPixelTransform_,y/2,v/2,1/i,-1/i,0,-r.center[0],-r.center[1])}}.bind(this)),_.load()}return this.image_&&(this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice()),!!this.image_}},{key:"preRender",value:function(){}},{key:"postRender",value:function(){}},{key:"renderDeclutter",value:function(){}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,t,r,n,i):v(w(d.prototype),"forEachFeatureAtCoordinate",this).call(this,e,t,r,n,i)}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.Z);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(o,e);var t,r,n,i=E(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{},n=(0,h.f0)({},r);return delete n.imageRatio,(t=i.call(this,n)).imageRatio_=void 0!==r.imageRatio?r.imageRatio:1,t}return t=o,(r=[{key:"getImageRatio",value:function(){return this.imageRatio_}},{key:"createRenderer",value:function(){return new x(this)}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(n.Z)},14197:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=r(96421),i=r(44620),o=r(25618),a=r(82173),s=r(42238),u=r(80542),l="image",c="hybrid",f="vector",h=r(34642),p=r(56086),d=r(19329),y=r(86923),v=r(41250),m=r(99382),g=r(7877),b=r(92932);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=k(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P={image:[s.Z.POLYGON,s.Z.CIRCLE,s.Z.LINE_STRING,s.Z.IMAGE,s.Z.TEXT],hybrid:[s.Z.POLYGON,s.Z.LINE_STRING],vector:[]},C={hybrid:[s.Z.IMAGE,s.Z.TEXT,s.Z.DEFAULT],vector:[s.Z.POLYGON,s.Z.CIRCLE,s.Z.LINE_STRING,s.Z.IMAGE,s.Z.TEXT,s.Z.DEFAULT]},M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(s,e);var t,r,n,a=S(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).boundHandleStyleImageChange_=t.handleStyleImageChange_.bind(T(t)),t.dirty_=!1,t.renderedLayerRevision_,t.renderedPixelToCoordinateTransform_=null,t.renderedRotation_,t.tmpTransform_=(0,d.Ue)(),t}return t=s,(r=[{key:"prepareTile",value:function(e,t,r){var n,i=e.getState();return i!==u.Z.LOADED&&i!==u.Z.ERROR||(this.updateExecutorGroup_(e,t,r),this.tileImageNeedsRender_(e)&&(n=!0)),n}},{key:"getTile",value:function(e,t,r,n){var i=n.pixelRatio,o=n.viewState,a=o.resolution,u=o.projection,l=this.getLayer(),c=l.getSource().getTile(e,t,r,i,u),p=n.viewHints,d=!(p[h.Z.ANIMATING]||p[h.Z.INTERACTING]);return!d&&c.wantedResolution||(c.wantedResolution=a),this.prepareTile(c,i,u)&&(d||Date.now()-n.time<8)&&l.getRenderMode()!==f&&this.renderTileImage_(c,n),x(R(s.prototype),"getTile",this).call(this,e,t,r,n)}},{key:"isDrawableTile",value:function(e){var t=this.getLayer();return x(R(s.prototype),"isDrawableTile",this).call(this,e)&&(t.getRenderMode()===f?(0,m.sq)(t)in e.executorGroups:e.hasContext(t))}},{key:"getTileImage",value:function(e){return e.getImage(this.getLayer())}},{key:"prepareFrame",value:function(e){var t=this.getLayer().getRevision();return this.renderedLayerRevision_!=t&&(this.renderedTiles.length=0),this.renderedLayerRevision_=t,x(R(s.prototype),"prepareFrame",this).call(this,e)}},{key:"updateExecutorGroup_",value:function(e,t,r){var n=this,a=this.getLayer(),s=a.getRevision(),l=a.getRenderOrder()||null,c=e.wantedResolution,h=e.getReplayState(a);if(h.dirty||h.renderedResolution!==c||h.renderedRevision!=s||h.renderedRenderOrder!=l){var p=a.getSource(),d=a.getDeclutter(),g=p.getTileGrid(),b=p.getTileGridForProjection(r).getTileCoordExtent(e.wrappedTileCoord),_=p.getSourceTiles(t,r,e),w=(0,m.sq)(a);delete e.hitDetectionImageData[w],e.executorGroups[w]=[],d&&(e.declutterExecutorGroups[w]=[]);for(var x=function(r,s){var m=_[r];if(m.getState()!=u.Z.LOADED)return"continue";var x=m.tileCoord,k=g.getTileCoordExtent(x),O=(0,y.Ed)(b,k),S=(0,y.f3)(O,a.getRenderBuffer()*c,n.tmpExtent),E=(0,y.fS)(k,O)?null:S;h.dirty=!1;var T=new i.Z(0,S,c,t),R=d?new i.Z(0,O,c,t):void 0,P=(0,v.se)(c,t),C=function(e){var t,r=e.getStyleFunction()||a.getStyleFunction();if(r&&(t=r(e,c)),t){var n=this.renderFeature(e,P,t,T,R);this.dirty_=this.dirty_||n,h.dirty=h.dirty||n}},M=m.getFeatures();l&&l!==h.renderedRenderOrder&&M.sort(l);for(var j=0,I=M.length;j<I;++j){var A=M[j];E&&!(0,y.kK)(E,A.getGeometry().getExtent())||C.call(n,A)}var L=T.finish(),D=a.getRenderMode()!==f&&d&&1===_.length?null:O,Z=new o.Z(D,c,t,p.getOverlaps(),L,a.getRenderBuffer());if(e.executorGroups[w].push(Z),R){var F=new o.Z(null,c,t,p.getOverlaps(),R.finish(),a.getRenderBuffer());e.declutterExecutorGroups[w].push(F)}},k=0,O=_.length;k<O;++k)x(k);h.renderedRevision=s,h.renderedRenderOrder=l,h.renderedResolution=c}}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i){var o=t.viewState.resolution,a=t.viewState.rotation;r=null==r?0:r;var s=this.getLayer(),u=s.getSource().getTileGridForProjection(t.viewState.projection),l=(0,y.hI)([e]);(0,y.f3)(l,o*r,l);for(var c,f={},h=function(e,t,r){var o=e.getId();void 0===o&&(o=(0,m.sq)(e));var a=f[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return f[o]=!0,i.splice(i.lastIndexOf(a),1),n(e,s,t);a.geometry=t,a.distanceSq=r}}else{if(0===r)return f[o]=!0,n(e,s,t);i.push(f[o]={feature:e,layer:s,geometry:t,distanceSq:r,callback:n})}},p=this.renderedTiles,d=function(n,i){var f=p[n],d=u.getTileCoordExtent(f.wrappedTileCoord);if(!(0,y.kK)(d,l))return"continue";var v=(0,m.sq)(s),g=[f.executorGroups[v]],b=f.declutterExecutorGroups[v];b&&g.push(b),g.some((function(n){for(var i=n===b?t.declutterTree.all().map((function(e){return e.value})):null,s=0,u=n.length;s<u;++s){var l=n[s];if(c=l.forEachFeatureAtCoordinate(e,o,a,r,h,i))return!0}}))},v=0,g=p.length;!c&&v<g;++v)d(v);return c}},{key:"getFeatures",value:function(e){return new Promise(function(t,r){for(var n,i=this.getLayer(),o=(0,m.sq)(i),a=i.getSource(),s=this.renderedProjection,l=s.getExtent(),c=this.renderedResolution,f=a.getTileGridForProjection(s),h=(0,d.nn)(this.renderedPixelToCoordinateTransform_,e.slice()),v=f.getTileCoordForCoordAndResolution(h,c),_=0,w=this.renderedTiles.length;_<w;++_)if(v.toString()===this.renderedTiles[_].tileCoord.toString()){if((n=this.renderedTiles[_]).getState()===u.Z.LOADED){var x=f.getTileCoordExtent(n.tileCoord);a.getWrapX()&&s.canWrapX()&&!(0,y.r4)(l,x)&&(0,b.Cf)(h,s);break}n=void 0}if(!n||n.loadingSourceTiles>0)t([]);else{var k=f.getTileCoordExtent(n.wrappedTileCoord),O=(0,y.rL)(k),S=[(h[0]-O[0])/c,(O[1]-h[1])/c],E=n.getSourceTiles().reduce((function(e,t){return e.concat(t.getFeatures())}),[]),T=n.hitDetectionImageData[o];if(!T&&!this.animatingOrInteracting_){var R=(0,g.Pq)(f.getTileSize(f.getZForResolution(c))),P=this.renderedRotation_,C=[this.getRenderTransform(f.getTileCoordCenter(n.wrappedTileCoord),c,0,p.UN,R[0]*p.UN,R[1]*p.UN,0)];T=(0,p.TU)(R,C,E,i.getStyleFunction(),f.getTileCoordExtent(n.wrappedTileCoord),n.getReplayState(i).renderedResolution,P),n.hitDetectionImageData[o]=T}t((0,p.ix)(S,E,T))}}.bind(this))}},{key:"handleFontsChanged",value:function(){var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()}},{key:"handleStyleImageChange_",value:function(e){this.renderIfReadyAndVisible()}},{key:"renderDeclutter",value:function(e){var t=this.context,r=t.globalAlpha;t.globalAlpha=this.getLayer().getOpacity();for(var n=e.viewHints,i=!(n[h.Z.ANIMATING]||n[h.Z.INTERACTING]),o=this.renderedTiles,a=0,s=o.length;a<s;++a){var u=o[a],l=u.declutterExecutorGroups[(0,m.sq)(this.getLayer())];if(l)for(var c=l.length-1;c>=0;--c)l[c].execute(this.context,1,this.getTileRenderTransform(u,e),e.viewState.rotation,i,void 0,e.declutterTree)}t.globalAlpha=r}},{key:"getTileRenderTransform",value:function(e,t){var r=t.pixelRatio,n=t.viewState,i=n.center,o=n.resolution,a=n.rotation,s=t.size,u=Math.round(s[0]*r),l=Math.round(s[1]*r),c=this.getLayer().getSource().getTileGridForProjection(t.viewState.projection),f=e.tileCoord,h=c.getTileCoordExtent(e.wrappedTileCoord),p=c.getTileCoordExtent(f,this.tmpExtent)[0]-h[0];return(0,d.Jp)((0,d.bA)(this.inversePixelTransform.slice(),1/r,1/r),this.getRenderTransform(i,o,a,r,u,l,p))}},{key:"renderFrame",value:function(e,t){var r=e.viewHints,n=!(r[h.Z.ANIMATING]||r[h.Z.INTERACTING]);x(R(s.prototype),"renderFrame",this).call(this,e,t),this.renderedPixelToCoordinateTransform_=e.pixelToCoordinateTransform.slice(),this.renderedRotation_=e.viewState.rotation;var i=this.getLayer(),o=i.getRenderMode(),a=this.context,u=a.globalAlpha;a.globalAlpha=i.getOpacity();for(var l=C[o],c=e.viewState.rotation,f=this.renderedTiles,p=[],d=[],y=f.length-1;y>=0;--y)for(var v=f[y],g=this.getTileRenderTransform(v,e),b=v.executorGroups[(0,m.sq)(i)],_=!1,w=0,k=b.length;w<k;++w){var O=b[w];if(O.hasExecutors(l)){var S=v.tileCoord[0],E=void 0;if(!_&&(E=O.getClipCoords(g))){a.save();for(var T=0,P=p.length;T<P;++T){var M=p[T];S<d[T]&&(a.beginPath(),a.moveTo(E[0],E[1]),a.lineTo(E[2],E[3]),a.lineTo(E[4],E[5]),a.lineTo(E[6],E[7]),a.moveTo(M[6],M[7]),a.lineTo(M[4],M[5]),a.lineTo(M[2],M[3]),a.lineTo(M[0],M[1]),a.clip())}}O.execute(a,1,g,c,n,l),!_&&E&&(a.restore(),p.push(E),d.push(S),_=!0)}}return a.globalAlpha=u,this.container}},{key:"renderFeature",value:function(e,t,r,n,i){if(!r)return!1;var o=!1;if(Array.isArray(r))for(var a=0,s=r.length;a<s;++a)o=(0,v.Pn)(n,e,r[a],t,this.boundHandleStyleImageChange_,void 0,i)||o;else o=(0,v.Pn)(n,e,r,t,this.boundHandleStyleImageChange_,void 0,i);return o}},{key:"tileImageNeedsRender_",value:function(e){var t=this.getLayer();if(t.getRenderMode()===f)return!1;var r=e.getReplayState(t),n=t.getRevision(),i=e.wantedResolution;return r.renderedTileResolution!==i||r.renderedTileRevision!==n}},{key:"renderTileImage_",value:function(e,t){var r=this.getLayer(),n=e.getReplayState(r),i=r.getRevision(),o=e.executorGroups[(0,m.sq)(r)];n.renderedTileRevision=i;var a=e.wrappedTileCoord,s=a[0],u=r.getSource(),l=t.pixelRatio,c=t.viewState.projection,f=u.getTileGridForProjection(c),h=f.getResolution(e.tileCoord[0]),p=t.pixelRatio/e.wantedResolution*h,y=f.getResolution(s),v=e.getContext(r);l=Math.round(Math.max(l,p/l));var g=u.getTilePixelSize(s,l,c);v.canvas.width=g[0],v.canvas.height=g[1];var b=l/p;if(1!==b){var _=(0,d.mc)(this.tmpTransform_);(0,d.bA)(_,b,b),v.setTransform.apply(v,_)}var w=f.getTileCoordExtent(a,this.tmpExtent),x=p/y,k=(0,d.mc)(this.tmpTransform_);(0,d.bA)(k,x,-x),(0,d.Iu)(k,-w[0],-w[3]);for(var O=0,S=o.length;O<S;++O)o[O].execute(v,b,k,0,!0,P[r.getRenderMode()]);n.renderedTileResolution=e.wantedResolution}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(a.Z),j=r(85498),I=r(90776),A=r(32275);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z(){return(Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=F(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function F(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=z(e);if(t){var i=z(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return B(this,r)}}function B(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(o,e);var t,r,n,i=G(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=e||{},n=(0,A.f0)({},r);delete n.preload,delete n.useInterimTilesOnError,(t=i.call(this,n)).on,t.once,t.un,r.renderMode===l&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),r.renderMode=void 0);var a=r.renderMode||c;return(0,I.h)(a==c||a==f,28),t.renderMode_=a,t.setPreload(r.preload?r.preload:0),t.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),t.getBackground,t.setBackground,t}return t=o,(r=[{key:"createRenderer",value:function(){return new M(this)}},{key:"getFeatures",value:function(e){return Z(z(o.prototype),"getFeatures",this).call(this,e)}},{key:"getRenderMode",value:function(){return this.renderMode_}},{key:"getPreload",value:function(){return this.get(j.Z.PRELOAD)}},{key:"getUseInterimTilesOnError",value:function(){return this.get(j.Z.USE_INTERIM_TILES_ON_ERROR)}},{key:"setPreload",value:function(e){this.set(j.Z.PRELOAD,e)}},{key:"setUseInterimTilesOnError",value:function(e){this.set(j.Z.USE_INTERIM_TILES_ON_ERROR,e)}}])&&D(t.prototype,r),n&&D(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(n.Z)},65322:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(2320),i=r(54240),o=r(32275),a=r(49800);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}var t,r,n;return t=e,(r=[{key:"addUniform",value:function(e){return this.uniforms.push(e),this}},{key:"addAttribute",value:function(e){return this.attributes.push(e),this}},{key:"addVarying",value:function(e,t,r){return this.varyings.push({name:e,type:t,expression:r}),this}},{key:"setSizeExpression",value:function(e){return this.sizeExpression=e,this}},{key:"setRotationExpression",value:function(e){return this.rotationExpression=e,this}},{key:"setSymbolOffsetExpression",value:function(e){return this.offsetExpression=e,this}},{key:"setColorExpression",value:function(e){return this.colorExpression=e,this}},{key:"setTextureCoordinateExpression",value:function(e){return this.texCoordExpression=e,this}},{key:"setFragmentDiscardExpression",value:function(e){return this.discardExpression=e,this}},{key:"setSymbolRotateWithView",value:function(e){return this.rotateWithView=e,this}},{key:"getSizeExpression",value:function(){return this.sizeExpression}},{key:"getOffsetExpression",value:function(){return this.offsetExpression}},{key:"getColorExpression",value:function(){return this.colorExpression}},{key:"getTextureCoordinateExpression",value:function(){return this.texCoordExpression}},{key:"getFragmentDiscardExpression",value:function(){return this.discardExpression}},{key:"getSymbolVertexShader",value:function(e){var t=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",r=this.attributes,n=this.varyings;return e&&(r=r.concat("vec4 a_hitColor"),n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(e){return"uniform "+e+";"})).join("\n"),"\nattribute vec2 a_position;\nattribute float a_index;\n").concat(r.map((function(e){return"attribute "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(n.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\nvoid main(void) {\n mat4 offsetMatrix = ").concat(t,";\n vec2 halfSize = ").concat(this.sizeExpression," * 0.5;\n vec2 offset = ").concat(this.offsetExpression,";\n float angle = ").concat(this.rotationExpression,";\n float offsetX;\n float offsetY;\n if (a_index == 0.0) {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n } else if (a_index == 1.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);\n offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else if (a_index == 2.0) {\n offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);\n } else {\n offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);\n offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);\n }\n vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);\n gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n vec4 texCoord = ").concat(this.texCoordExpression,";\n float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;\n float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;\n v_texCoord = vec2(u, v);\n u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;\n v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;\n v_quadCoord = vec2(u, v);\n").concat(n.map((function(e){return" "+e.name+" = "+e.expression+";"})).join("\n"),"\n}")}},{key:"getSymbolFragmentShader",value:function(e){var t=e?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",r=this.varyings;return e&&(r=r.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),"precision mediump float;\nuniform float u_time;\nuniform float u_zoom;\nuniform float u_resolution;\n".concat(this.uniforms.map((function(e){return"uniform "+e+";"})).join("\n"),"\nvarying vec2 v_texCoord;\nvarying vec2 v_quadCoord;\n").concat(r.map((function(e){return"varying "+e.type+" "+e.name+";"})).join("\n"),"\nvoid main(void) {\n if (").concat(this.discardExpression,") { discard; }\n gl_FragColor = ").concat(this.colorExpression,";\n gl_FragColor.rgb *= gl_FragColor.a;\n").concat(t,"\n}")}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(l,e);var t,r,n,s=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=(0,o.f0)({},e);return(t=s.call(this,r)).parseResult_=function(e){var t=e.symbol,r=void 0!==t.size?t.size:1,n=t.color||"white",i=t.textureCoord||[0,0,1,1],o=t.offset||[0,0],s=void 0!==t.opacity?t.opacity:1,l=void 0!==t.rotation?t.rotation:0,c={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},f=(0,a.CL)(c,r,a.$h.NUMBER_ARRAY|a.$h.NUMBER),h=(0,a.CL)(c,o,a.$h.NUMBER_ARRAY),p=(0,a.CL)(c,i,a.$h.NUMBER_ARRAY),d=(0,a.CL)(c,l,a.$h.NUMBER),y={inFragmentShader:!0,variables:c.variables,attributes:[],stringLiteralsMap:c.stringLiteralsMap,functions:{}},v=(0,a.CL)(y,n,a.$h.COLOR),m=(0,a.CL)(y,s,a.$h.NUMBER),g="1.0",b="vec2(".concat((0,a.CL)(y,r,a.$h.NUMBER_ARRAY|a.$h.NUMBER),").x");switch(t.symbolType){case"square":case"image":break;case"circle":g="(1.0-smoothstep(1.-4./".concat(b,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var _="(v_quadCoord*2.-1.)",w="(atan(".concat(_,".x,").concat(_,".y))");g="(1.0-smoothstep(.5-3./".concat(b,",.5,cos(floor(.5+").concat(w,"/2.094395102)*2.094395102-").concat(w,")*length(").concat(_,")))");break;default:throw new Error("Unexpected symbol type: "+t.symbolType)}var x=(new u).setSizeExpression("vec2(".concat(f,")")).setRotationExpression(d).setSymbolOffsetExpression(h).setTextureCoordinateExpression(p).setSymbolRotateWithView(!!t.rotateWithView).setColorExpression("vec4(".concat(v,".rgb, ").concat(v,".a * ").concat(m," * ").concat(g,")"));if(e.filter){var k=(0,a.CL)(y,e.filter,a.$h.BOOLEAN);x.setFragmentDiscardExpression("!".concat(k))}var O={};if(y.variables.forEach((function(t){var r=(0,a.aT)(t);x.addUniform("float ".concat(r)),O[r]=function(){if(!e.variables||void 0===e.variables[t])throw new Error("The following variable is missing from the style: ".concat(t));var r=e.variables[t];return"string"==typeof r&&(r=(0,a.Ce)(c,r)),void 0!==r?r:-9999999}})),"image"===t.symbolType&&t.src){var S=new Image;S.src=t.src,x.addUniform("sampler2D u_texture").setColorExpression(x.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),O.u_texture=S}return y.attributes.forEach((function(e){-1===c.attributes.indexOf(e)&&c.attributes.push(e),x.addVarying("v_".concat(e),"float","a_".concat(e))})),c.attributes.forEach((function(e){x.addAttribute("float a_".concat(e))})),{builder:x,attributes:c.attributes.map((function(e){return{name:e,callback:function(t,r){var n=r[e];return"string"==typeof n&&(n=(0,a.Ce)(c,n)),void 0!==n?n:-9999999}}})),uniforms:O}}(e.style),t.hitDetectionDisabled_=!!e.disableHitDetection,t}return t=l,(r=[{key:"createRenderer",value:function(){return new i.Z(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z)},52139:function(e,t,r){"use strict";var n=r(39626),i=r(38400),o=r(94233),a=r(49800),s=r(32275);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){var r="\n attribute vec2 ".concat(o.zj.TEXTURE_COORD,";\n uniform mat4 ").concat(o.XE.TILE_TRANSFORM,";\n uniform float ").concat(o.XE.DEPTH,";\n\n varying vec2 v_textureCoord;\n\n void main() {\n v_textureCoord = ").concat(o.zj.TEXTURE_COORD,";\n gl_Position = ").concat(o.XE.TILE_TRANSFORM," * vec4(").concat(o.zj.TEXTURE_COORD,", ").concat(o.XE.DEPTH,", 1.0);\n }\n "),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:t},i=[];if(void 0!==e.color){var s=(0,a.CL)(n,e.color,a.$h.COLOR);i.push("color = ".concat(s,";"))}if(void 0!==e.contrast){var u=(0,a.CL)(n,e.contrast,a.$h.NUMBER);i.push("color.rgb = clamp((".concat(u," + 1.0) * color.rgb - (").concat(u," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.exposure){var l=(0,a.CL)(n,e.exposure,a.$h.NUMBER);i.push("color.rgb = clamp((".concat(l," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(void 0!==e.saturation){var c=(0,a.CL)(n,e.saturation,a.$h.NUMBER);i.push("\n float saturation = ".concat(c," + 1.0;\n float sr = (1.0 - saturation) * 0.2126;\n float sg = (1.0 - saturation) * 0.7152;\n float sb = (1.0 - saturation) * 0.0722;\n mat3 saturationMatrix = mat3(\n sr + saturation, sr, sr,\n sg, sg + saturation, sg,\n sb, sb, sb + saturation\n );\n color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));\n "))}if(void 0!==e.gamma){var f=(0,a.CL)(n,e.gamma,a.$h.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(f,"));"))}if(void 0!==e.brightness){var h=(0,a.CL)(n,e.brightness,a.$h.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(h,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var p={},d=n.variables.length;if(d>1&&!e.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var y=function(t){var r=n.variables[t];if(!(r in e.variables))throw new Error("Missing '".concat(r,"' in style variables"));var i=(0,a.aT)(r);p[i]=function(){var t=e.variables[r];return"string"==typeof t&&(t=(0,a.Ce)(n,t)),void 0!==t?t:-9999999}},v=0;v<d;++v)y(v);var m=Object.keys(p).map((function(e){return"uniform float ".concat(e,";")})),g=Math.ceil(t/4);m.push("uniform sampler2D ".concat(o.XE.TILE_TEXTURE_ARRAY,"[").concat(g,"];")),n.paletteTextures&&m.push("uniform sampler2D ".concat(a.gM,"[").concat(n.paletteTextures.length,"];"));var b=Object.keys(n.functions).map((function(e){return n.functions[e]}));return{vertexShader:r,fragmentShader:"\n #ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n #else\n precision mediump float;\n #endif\n\n varying vec2 v_textureCoord;\n uniform float ".concat(o.XE.TRANSITION_ALPHA,";\n uniform float ").concat(o.XE.TEXTURE_PIXEL_WIDTH,";\n uniform float ").concat(o.XE.TEXTURE_PIXEL_HEIGHT,";\n uniform float ").concat(o.XE.RESOLUTION,";\n uniform float ").concat(o.XE.ZOOM,";\n\n ").concat(m.join("\n"),"\n\n ").concat(b.join("\n"),"\n\n void main() {\n vec4 color = texture2D(").concat(o.XE.TILE_TEXTURE_ARRAY,"[0], v_textureCoord);\n\n ").concat(i.join("\n"),"\n\n if (color.a == 0.0) {\n discard;\n }\n\n gl_FragColor = color;\n gl_FragColor.rgb *= gl_FragColor.a;\n gl_FragColor *= ").concat(o.XE.TRANSITION_ALPHA,";\n }"),uniforms:p,paletteTextures:n.paletteTextures}}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(u,e);var t,r,n,a=f(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var r=e?(0,s.f0)({},e):{},n=r.style||{};delete r.style;var o=r.cacheSize;return delete r.cacheSize,(t=a.call(this,r)).style_=n,t.cacheSize_=o,t.styleVariables_=t.style_.variables||{},t.addChangeListener(i.Z.SOURCE,t.handleSourceUpdate_),t}return t=u,(r=[{key:"handleSourceUpdate_",value:function(){this.setStyle(this.style_)}},{key:"getSourceBandCount_",value:function(){var e=this.getSource();return e&&"bandCount"in e?e.bandCount:4}},{key:"createRenderer",value:function(){var e=d(this.style_,this.getSourceBandCount_());return new o.ZP(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.cacheSize_,paletteTextures:e.paletteTextures})}},{key:"setStyle",value:function(e){this.style_=e;var t=d(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures}),this.changed()}},{key:"updateStyleVariables",value:function(e){(0,s.f0)(this.styleVariables_,e),this.changed()}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Z);y.prototype.dispose,t.Z=y},2383:function(e,t,r){"use strict";r.d(t,{$6:function(){return i},VW:function(){return o},Gg:function(){return a}});var n=r(12810);function i(e,t){return[[-1/0,-1/0,1/0,1/0]]}function o(e,t){return[e]}function a(e){return function(t,r,i){var o=e.getZForResolution((0,n.oK)(r,i)),a=e.getTileRangeForExtentAndZ((0,n.dY)(t,i),o),s=[],u=[o,0,0];for(u[1]=a.minX;u[1]<=a.maxX;++u[1])for(u[2]=a.minY;u[2]<=a.maxY;++u[2])s.push((0,n.Fj)(e.getTileCoordExtent(u),i));return s}}},62990:function(e,t,r){"use strict";function n(e,t,r){return Math.min(Math.max(e,t),r)}r.d(t,{uZ:function(){return n},f9:function(){return i},k3:function(){return o},rU:function(){return a},bI:function(){return s},SV:function(){return u},Ux:function(){return l},Yr:function(){return c},$W:function(){return f},t7:function(){return h},NM:function(){return d},GW:function(){return y},mD:function(){return v}});var i="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},o="log2"in Math?Math.log2:function(e){return Math.log(e)*Math.LOG2E};function a(e,t,r,n,i,o){var a=i-r,u=o-n;if(0!==a||0!==u){var l=((e-r)*a+(t-n)*u)/(a*a+u*u);l>1?(r=i,n=o):l>0&&(r+=a*l,n+=u*l)}return s(e,t,r,n)}function s(e,t,r,n){var i=r-e,o=n-t;return i*i+o*o}function u(e){for(var t=e.length,r=0;r<t;r++){for(var n=r,i=Math.abs(e[r][r]),o=r+1;o<t;o++){var a=Math.abs(e[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=e[n];e[n]=e[r],e[r]=s;for(var u=r+1;u<t;u++)for(var l=-e[u][r]/e[r][r],c=r;c<t+1;c++)r==c?e[u][c]=0:e[u][c]+=l*e[r][c]}for(var f=new Array(t),h=t-1;h>=0;h--){f[h]=e[h][t]/e[h][h];for(var p=h-1;p>=0;p--)e[p][t]-=e[p][h]*f[h]}return f}function l(e){return 180*e/Math.PI}function c(e){return e*Math.PI/180}function f(e,t){var r=e%t;return r*t<0?r+t:r}function h(e,t,r){return e+r*(t-e)}function p(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}function d(e,t){return Math.round(p(e,t))}function y(e,t){return Math.floor(p(e,t))}function v(e,t){return Math.ceil(p(e,t))}},40574:function(e,t,r){"use strict";r.d(t,{R6:function(){return v},xA:function(){return b},Kk:function(){return _}});var n=r(99382);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function l(e){var t=p();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return h(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function h(e,t,r){return(h=p()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&d(i,r.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,r,i){var o=document.createElement("script"),a="olc_"+(0,n.sq)(t);function s(){delete window[a],o.parentNode.removeChild(o)}o.async=!0,o.src=e+(-1==e.indexOf("?")?"?":"&")+(i||"callback")+"="+a;var u=setTimeout((function(){s(),r&&r()}),1e4);window[a]=function(e){clearTimeout(u),s(),t(e)},document.getElementsByTagName("head")[0].appendChild(o)}var m=function(e){u(r,e);var t=l(r);function r(e){var n;s(this,r);var i="Unexpected response status: "+e.status;return(n=t.call(this,i)).name="ResponseError",n.response=e,n}return a(r)}(f(Error)),g=function(e){u(r,e);var t=l(r);function r(e){var n;return s(this,r),(n=t.call(this,"Failed to issue request")).name="ClientError",n.client=e,n}return a(r)}(f(Error));function b(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.addEventListener("load",(function(e){var n=e.target;if(!n.status||n.status>=200&&n.status<300){var i;try{i=JSON.parse(n.responseText)}catch(e){var o="Error parsing response text as JSON: "+e.message;return void r(new Error(o))}t(i)}else r(new m(n))})),n.addEventListener("error",(function(e){r(new g(e.target))})),n.open("GET",e),n.setRequestHeader("Accept","application/json"),n.send()}))}function _(e,t){return t.indexOf("://")>=0?t:new URL(t,e).href}},32275:function(e,t,r){"use strict";r.d(t,{f0:function(){return n},ZH:function(){return i},KX:function(){return o},xb:function(){return a}});var n="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1,i=arguments.length;n<i;++n){var o=arguments[n];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(r[a]=o[a])}return r};function i(e){for(var t in e)delete e[t]}var o="function"==typeof Object.values?Object.values:function(e){var t=[];for(var r in e)t.push(e[r]);return t};function a(e){var t;for(t in e)return!1;return!t}},33515:function(e,t){"use strict";t.Z={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},12810:function(e,t,r){"use strict";r.d(t,{Wm:function(){return i.Wm},kv:function(){return n.Z},zY:function(){return q},rM:function(){return B},Sx:function(){return F},UQ:function(){return z},uA:function(){return ce},OP:function(){return Y},mi:function(){return V},Vs:function(){return oe},dY:function(){return se},oK:function(){return le},U2:function(){return N},_Q:function(){return G},Ck:function(){return K},WO:function(){return W},Cs:function(){return re},gD:function(){return Z},bU:function(){return X},lO:function(){return ie},Fj:function(){return ae},on:function(){return ue},vs:function(){return H},$A:function(){return $},eL:function(){return ne}});var n=r(62314),i=r(81834),o=r(62990);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=6378137,p=Math.PI*h,d=[-p,-p,p,p],y=[-180,-85,180,85],v=h*Math.log(Math.tan(Math.PI/2)),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,{code:e,units:i.ZP.METERS,extent:d,global:!0,worldExtent:y,getPointResolution:function(e,t){return e/(0,o.f9)(t[1]/h)}})}return t=c,r&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z),g=[new m("EPSG:3857"),new m("EPSG:102100"),new m("EPSG:102113"),new m("EPSG:900913"),new m("http://www.opengis.net/def/crs/EPSG/0/3857"),new m("http://www.opengis.net/gml/srs/epsg.xml#3857")];function b(e,t,r){var n=e.length,i=r>1?r:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(n));for(var a=0;a<n;a+=i){o[a]=p*e[a]/180;var s=h*Math.log(Math.tan(Math.PI*(+e[a+1]+90)/360));s>v?s=v:s<-v&&(s=-v),o[a+1]=s}return o}function _(e,t,r){var n=e.length,i=r>1?r:2,o=t;void 0===o&&(o=i>2?e.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*e[a]/p,o[a+1]=360*Math.atan(Math.exp(e[a+1]/h))/Math.PI-90;return o}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=[-180,-90,180,90],R=6378137*Math.PI/180,P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(a,e);var t,r,n,o=O(a);function a(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,{code:e,units:i.ZP.DEGREES,extent:T,axisOrientation:t,global:!0,metersPerUnit:R,worldExtent:T})}return t=a,r&&x(t.prototype,r),n&&x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z),C=[new P("CRS:84"),new P("EPSG:4326","neu"),new P("urn:ogc:def:crs:OGC:1.3:CRS84"),new P("urn:ogc:def:crs:OGC:2:84"),new P("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new P("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new P("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],M={};var j=r(42346),I=r(86923),A=r(51318),L=r(92932);function D(e,t,r){var n;if(void 0!==t){for(var i=0,o=e.length;i<o;++i)t[i]=e[i];n=t}else n=e.slice();return n}function Z(e,t,r){if(void 0!==t&&e!==t){for(var n=0,i=e.length;n<i;++n)t[n]=e[n];e=t}return e}function F(e){!function(e,t){M[e]=t}(e.getCode(),e),(0,j.IH)(e,e,D)}function N(e){return"string"==typeof e?M[t=e]||M[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:e||null;var t}function G(e,t,r,n){var o,a=(e=N(e)).getPointResolutionFunc();if(a){if(o=a(t,r),n&&n!==e.getUnits()){var s=e.getMetersPerUnit();s&&(o=o*s/i.Wm[n])}}else{var u=e.getUnits();if(u==i.ZP.DEGREES&&!n||n==i.ZP.DEGREES)o=t;else{var l=W(e,N("EPSG:4326"));if(l===Z&&u!==i.ZP.DEGREES)o=t*e.getMetersPerUnit();else{var c=[r[0]-t/2,r[1],r[0]+t/2,r[1],r[0],r[1]-t/2,r[0],r[1]+t/2];c=l(c,c,2),o=((0,A.Sp)(c.slice(0,2),c.slice(2,4))+(0,A.Sp)(c.slice(4,6),c.slice(6,8)))/2}var f=n?i.Wm[n]:e.getMetersPerUnit();void 0!==f&&(o/=f)}}return o}function B(e){!function(e){e.forEach(F)}(e),e.forEach((function(t){e.forEach((function(e){t!==e&&(0,j.IH)(t,e,D)}))}))}function z(e,t){return e?"string"==typeof e?N(e):e:N(t)}function U(e){return function(t,r,n){for(var i=t.length,o=void 0!==n?n:2,a=void 0!==r?r:new Array(i),s=0;s<i;s+=o){var u=e([t[s],t[s+1]]);a[s]=u[0],a[s+1]=u[1];for(var l=o-1;l>=2;--l)a[s+l]=t[s+l]}return a}}function q(e,t,r,n){var i=N(e),o=N(t);(0,j.IH)(i,o,U(r)),(0,j.IH)(o,i,U(n))}function V(e,t){return H(e,"EPSG:4326",void 0!==t?t:"EPSG:3857")}function X(e,t){var r=H(e,void 0!==t?t:"EPSG:3857","EPSG:4326"),n=r[0];return(n<-180||n>180)&&(r[0]=(0,o.$W)(n+180,360)-180),r}function Y(e,t){if(e===t)return!0;var r=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||W(e,t)===D)&&r}function W(e,t){var r=e.getCode(),n=t.getCode(),i=(0,j.U2)(r,n);return i||(i=Z),i}function K(e,t){return W(N(e),N(t))}function H(e,t,r){return K(t,r)(e,void 0,e.length)}function $(e,t,r,n){var i=K(t,r);return(0,I.Ne)(e,i,void 0,n)}var J,Q,ee,te=null;function re(){return te}function ne(){te=N("EPSG:4326")}function ie(e,t){return te?H(e,t,te):e}function oe(e,t){return te?H(e,te,t):e}function ae(e,t){return te?$(e,t,te):e}function se(e,t){return te?$(e,te,t):e}function ue(e,t){if(!te)return e;var r=N(t).getUnits(),n=te.getUnits();return r&&n?e*i.Wm[r]/i.Wm[n]:e}function le(e,t){if(!te)return e;var r=N(t).getUnits(),n=te.getUnits();return r&&n?e*i.Wm[n]/i.Wm[r]:e}function ce(e,t,r){return function(n){var i,a,s=n[0],u=n[1];if(e.canWrapX()){var l=e.getExtent(),c=(0,I.dz)(l);(a=(0,L.jk)(n,e,c))&&(s-=a*c),s=(0,o.uZ)(s,l[0],l[2]),u=(0,o.uZ)(u,l[1],l[3]),i=r([s,u])}else i=r(n);return a&&t.canWrapX()&&(i[0]+=a*(0,I.dz)(t.getExtent())),i}}B(g),B(C),J=g,Q=b,ee=_,C.forEach((function(e){J.forEach((function(t){(0,j.IH)(e,t,Q),(0,j.IH)(t,e,ee)}))}))},62314:function(e,t,r){"use strict";var n=r(81834);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}var t,r,o;return t=e,(r=[{key:"canWrapX",value:function(){return this.canWrapX_}},{key:"getCode",value:function(){return this.code_}},{key:"getExtent",value:function(){return this.extent_}},{key:"getUnits",value:function(){return this.units_}},{key:"getMetersPerUnit",value:function(){return this.metersPerUnit_||n.Wm[this.units_]}},{key:"getWorldExtent",value:function(){return this.worldExtent_}},{key:"getAxisOrientation",value:function(){return this.axisOrientation_}},{key:"isGlobal",value:function(){return this.global_}},{key:"setGlobal",value:function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)}},{key:"getDefaultTileGrid",value:function(){return this.defaultTileGrid_}},{key:"setDefaultTileGrid",value:function(e){this.defaultTileGrid_=e}},{key:"setExtent",value:function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)}},{key:"setWorldExtent",value:function(e){this.worldExtent_=e}},{key:"setGetPointResolution",value:function(e){this.getPointResolutionFunc_=e}},{key:"getPointResolutionFunc",value:function(){return this.getPointResolutionFunc_}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=o},81834:function(e,t,r){"use strict";r.d(t,{Ne:function(){return o},Wm:function(){return a}});var n={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},i={9001:n.METERS,9002:n.FEET,9003:n.USFEET,9101:n.RADIANS,9102:n.DEGREES};function o(e){return i[e]}var a={};a[n.RADIANS]=6370997/(2*Math.PI),a[n.DEGREES]=2*Math.PI*6370997/360,a[n.FEET]=.3048,a[n.METERS]=1,a[n.USFEET]=1200/3937,t.ZP=n},15421:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(62314),i=r(81834),o=r(12810),a=r(42346);function s(e){var t,r,s=Object.keys(e.defs),u=s.length;for(t=0;t<u;++t){var l=s[t];if(!(0,o.U2)(l)){var c=e.defs(l),f=c.units;f||"longlat"!==c.projName||(f=i.ZP.DEGREES),(0,o.Sx)(new n.Z({code:l,axisOrientation:c.axis,metersPerUnit:c.to_meter,units:f}))}}for(t=0;t<u;++t){var h=s[t],p=(0,o.U2)(h);for(r=0;r<u;++r){var d=s[r],y=(0,o.U2)(d);if(!(0,a.U2)(h,d))if(e.defs[h]===e.defs[d])(0,o.rM)([p,y]);else{var v=e(h,d);(0,o.zY)(p,y,(0,o.uA)(p,y,v.forward),(0,o.uA)(y,p,v.inverse))}}}}},42346:function(e,t,r){"use strict";r.d(t,{IH:function(){return i},U2:function(){return o}});var n={};function i(e,t,r){var i=e.getCode(),o=t.getCode();i in n||(n[i]={}),n[i][o]=r}function o(e,t){var r;return e in n&&t in n[e]&&(r=n[e][t]),r}},31250:function(e,t,r){"use strict";r.d(t,{Pt:function(){return u},u3:function(){return l},CR:function(){return c}});var n=r(16263),i=r(25738),o=r(19329),a=r(41250),s=r(12810);function u(e,t){var r=e.canvas,a=t||{},s=a.pixelRatio||i.MP,u=a.size;u&&(r.width=u[0]*s,r.height=u[1]*s,r.style.width=u[0]+"px",r.style.height=u[1]+"px");var l=[0,0,r.width,r.height],c=(0,o.bA)((0,o.Ue)(),s,s);return new n.Z(e,s,l,c,0)}function l(e){if(!(e.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");var t,r=e.inversePixelTransform[0],i=e.frameState,u=(0,o.Jp)(e.inversePixelTransform.slice(),i.coordinateToPixelTransform),l=(0,a.se)(i.viewState.resolution,r),c=(0,s.Cs)();return c&&(t=(0,s.WO)(c,i.viewState.projection)),new n.Z(e.context,r,i.extent,u,i.viewState.rotation,l,t)}function c(e,t){return(0,o.nn)(e.inversePixelTransform,t.slice(0))}},98825:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(u,e);var t,r,n,s=a(u);function u(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(i=s.call(this,e)).inversePixelTransform=t,i.frameState=r,i.context=n,i}return t=u,r&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(r(21510).ZP);t.Z=l},37051:function(e,t){"use strict";t.Z={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},10925:function(e,t,r){"use strict";var n=r(10392),i=r(19329),o=r(86923),a=r(17985),s=r(96632),u=r(12810),l=r(51585),c=r(56562),f=r(13698);function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var p=(0,i.Ue)(),d=function(){function e(t,r,n,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.styleFunction,this.extent_,this.id_=o,this.type_=t,this.flatCoordinates_=r,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}var t,r,d;return t=e,(r=[{key:"get",value:function(e){return this.properties_[e]}},{key:"getExtent",value:function(){return this.extent_||(this.extent_=this.type_===n.Z.POINT?(0,o.HK)(this.flatCoordinates_):(0,o.GN)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}},{key:"getFlatInteriorPoint",value:function(){if(!this.flatInteriorPoints_){var e=(0,o.qg)(this.getExtent());this.flatInteriorPoints_=(0,s.X)(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_}},{key:"getFlatInteriorPoints",value:function(){if(!this.flatInteriorPoints_){var e=(0,c.E)(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=(0,s.U)(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_}},{key:"getFlatMidpoint",value:function(){return this.flatMidpoints_||(this.flatMidpoints_=(0,l.WW)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}},{key:"getFlatMidpoints",value:function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,r=this.ends_,n=0,i=r.length;n<i;++n){var o=r[n],s=(0,l.WW)(e,t,o,2,.5);(0,a.l7)(this.flatMidpoints_,s),t=o}}return this.flatMidpoints_}},{key:"getId",value:function(){return this.id_}},{key:"getOrientedFlatCoordinates",value:function(){return this.flatCoordinates_}},{key:"getGeometry",value:function(){return this}},{key:"getSimplifiedGeometry",value:function(e){return this}},{key:"simplifyTransformed",value:function(e,t){return this}},{key:"getProperties",value:function(){return this.properties_}},{key:"getStride",value:function(){return 2}},{key:"getStyleFunction",value:function(){return this.styleFunction}},{key:"getType",value:function(){return this.type_}},{key:"transform",value:function(e){var t=(e=(0,u.U2)(e)).getExtent(),r=e.getWorldExtent();if(t&&r){var n=(0,o.Cr)(r)/(0,o.Cr)(t);(0,i.qC)(p,r[0],r[3],n,-n,0,0,0),(0,f.vT)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,p,this.flatCoordinates_)}}},{key:"getEnds",value:function(){return this.ends_}}])&&h(t.prototype,r),d&&h(t,d),Object.defineProperty(t,"prototype",{writable:!1}),e}();d.prototype.getEndss=d.prototype.getEnds,d.prototype.getFlatCoordinates=d.prototype.getOrientedFlatCoordinates,t.Z=d},15002:function(e,t){"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"drawCustom",value:function(e,t,r,n){}},{key:"drawGeometry",value:function(e){}},{key:"setStyle",value:function(e){}},{key:"drawCircle",value:function(e,t){}},{key:"drawFeature",value:function(e,t){}},{key:"drawGeometryCollection",value:function(e,t){}},{key:"drawLineString",value:function(e,t){}},{key:"drawMultiLineString",value:function(e,t){}},{key:"drawMultiPoint",value:function(e,t){}},{key:"drawMultiPolygon",value:function(e,t){}},{key:"drawPoint",value:function(e,t){}},{key:"drawPolygon",value:function(e,t){}},{key:"drawText",value:function(e,t){}},{key:"setFillStrokeStyle",value:function(e,t){}},{key:"setImageStyle",value:function(e,t){}},{key:"setTextStyle",value:function(e,t){}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=n},29852:function(e,t,r){"use strict";r.d(t,{Df:function(){return l},bL:function(){return c},mb:function(){return f},X9:function(){return h},He:function(){return p},rc:function(){return d},V4:function(){return y},Tx:function(){return v},PH:function(){return m},ru:function(){return g},oB:function(){return b},yC:function(){return _},sG:function(){return w},GK:function(){return x},Qx:function(){return T},fk:function(){return R},Kd:function(){return M},gs:function(){return j},_f:function(){return I}});var n=r(80157),i=r(44090),o=r(25738),a=r(32275),s=r(33716),u=r(48736),l="10px sans-serif",c="#000",f="round",h=[],p=0,d="round",y=10,v="#000",m="center",g="middle",b=[0,0,0,0],_=1,w=new n.Z,x=new i.Z;x.setSize=function(){console.warn("labelCache is deprecated.")};var k,O,S=null,E={},T=function(){var e,t,r="32px ",n=["monospace","serif"],i=n.length,o="wmytzilWMYTZIL@#/&?$%10";function s(e,a,s){for(var u=!0,l=0;l<i;++l){var c=n[l];if(t=C(e+" "+a+" "+r+c,o),s!=c){var f=C(e+" "+a+" "+r+s+","+c,o);u=u&&f!=t}}return!!u}function l(){for(var t=!0,r=w.getKeys(),n=0,i=r.length;n<i;++n){var o=r[n];w.get(o)<100&&(s.apply(this,o.split("\n"))?((0,a.ZH)(E),S=null,k=void 0,w.set(o,100)):(w.set(o,w.get(o)+1,!0),t=!1))}t&&(clearInterval(e),e=void 0)}return function(t){var r=(0,u.p)(t);if(r)for(var n=r.families,i=0,o=n.length;i<o;++i){var a=n[i],c=r.style+"\n"+r.weight+"\n"+a;void 0===w.get(c)&&(w.set(c,100,!0),s(r.style,r.weight,a)||(w.set(c,0,!0),void 0===e&&(e=setInterval(l,32))))}}}(),R=function(e){var t=E[e];if(null==t){if(o.Id){var r=(0,u.p)(e),n=P(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else O||((O=document.createElement("div")).innerHTML="M",O.style.minHeight="0",O.style.maxHeight="none",O.style.height="auto",O.style.padding="0",O.style.border="none",O.style.position="absolute",O.style.display="block",O.style.left="-99999px"),O.style.font=e,document.body.appendChild(O),t=O.offsetHeight,document.body.removeChild(O);E[e]=t}return t};function P(e,t){return S||(S=(0,s.E4)(1,1)),e!=k&&(S.font=e,k=S.font),S.measureText(t)}function C(e,t){return P(e,t).width}function M(e,t,r){if(t in r)return r[t];var n=C(e,t);return r[t]=n,n}function j(e,t,r){for(var n=t.length,i=0,o=0;o<n;++o){var a=C(e,t[o]);i=Math.max(i,a),r.push(a)}return i}function I(e,t,r,n,i,o,a,s,u,l,c){e.save(),1!==r&&(e.globalAlpha*=r),t&&e.setTransform.apply(e,t),n.contextInstructions?(e.translate(u,l),e.scale(c[0],c[1]),function(e,t){for(var r=e.contextInstructions,n=0,i=r.length;n<i;n+=2)Array.isArray(r[n+1])?t[r[n]].apply(t,r[n+1]):t[r[n]]=r[n+1]}(n,e)):c[0]<0||c[1]<0?(e.translate(u,l),e.scale(c[0],c[1]),e.drawImage(n,i,o,a,s,0,0,a,s)):e.drawImage(n,i,o,a,s,u,l,a*c[0],s*c[1]),e.restore()}},62356:function(e,t,r){"use strict";var n=r(36299),i=r(10392),o=r(20118),a=r(15002),s=r(65578),u=r(86923),l=r(29852),c=r(17985),f=r(55721);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(v,e);var t,r,a,h=y(v);function v(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(i=h.call(this)).tolerance=e,i.maxExtent=t,i.pixelRatio=n,i.maxLineWidth=0,i.resolution=r,i.beginGeometryInstruction1_=null,i.beginGeometryInstruction2_=null,i.bufferedMaxExtent_=null,i.instructions=[],i.coordinates=[],i.tmpCoordinate_=[],i.hitDetectionInstructions=[],i.state={},i}return t=v,(r=[{key:"applyPixelRatio",value:function(e){var t=this.pixelRatio;return 1==t?e:e.map((function(e){return e*t}))}},{key:"appendFlatPointCoordinates",value:function(e,t){for(var r=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,i=this.coordinates,o=i.length,a=0,s=e.length;a<s;a+=t)n[0]=e[a],n[1]=e[a+1],(0,u.b8)(r,n)&&(i[o++]=n[0],i[o++]=n[1]);return o}},{key:"appendFlatLineCoordinates",value:function(e,t,r,n,i,a){var s=this.coordinates,l=s.length,c=this.getBufferedMaxExtent();a&&(t+=n);var f,h,p,d=e[t],y=e[t+1],v=this.tmpCoordinate_,m=!0;for(f=t+n;f<r;f+=n)v[0]=e[f],v[1]=e[f+1],(p=(0,u.pX)(c,v))!==h?(m&&(s[l++]=d,s[l++]=y,m=!1),s[l++]=v[0],s[l++]=v[1]):p===o.Z.INTERSECTING?(s[l++]=v[0],s[l++]=v[1],m=!1):m=!0,d=v[0],y=v[1],h=p;return(i&&m||f===t+n)&&(s[l++]=d,s[l++]=y),l}},{key:"drawCustomCoordinates_",value:function(e,t,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],u=this.appendFlatLineCoordinates(e,t,s,n,!1,!1);i.push(u),t=s}return t}},{key:"drawCustom",value:function(e,t,r,o){this.beginGeometry(e,t);var a,s,u,l,c,h=e.getType(),p=e.getStride(),d=this.coordinates.length;switch(h){case i.Z.MULTI_POLYGON:a=e.getOrientedFlatCoordinates(),l=[];var y=e.getEndss();c=0;for(var v=0,m=y.length;v<m;++v){var g=[];c=this.drawCustomCoordinates_(a,c,y[v],p,g),l.push(g)}this.instructions.push([n.ZP.CUSTOM,d,l,e,r,f.ug]),this.hitDetectionInstructions.push([n.ZP.CUSTOM,d,l,e,o||r,f.ug]);break;case i.Z.POLYGON:case i.Z.MULTI_LINE_STRING:u=[],a=h==i.Z.POLYGON?e.getOrientedFlatCoordinates():e.getFlatCoordinates(),c=this.drawCustomCoordinates_(a,0,e.getEnds(),p,u),this.instructions.push([n.ZP.CUSTOM,d,u,e,r,f.o1]),this.hitDetectionInstructions.push([n.ZP.CUSTOM,d,u,e,o||r,f.o1]);break;case i.Z.LINE_STRING:case i.Z.CIRCLE:a=e.getFlatCoordinates(),s=this.appendFlatLineCoordinates(a,0,a.length,p,!1,!1),this.instructions.push([n.ZP.CUSTOM,d,s,e,r,f.Ml]),this.hitDetectionInstructions.push([n.ZP.CUSTOM,d,s,e,o||r,f.Ml]);break;case i.Z.MULTI_POINT:a=e.getFlatCoordinates(),(s=this.appendFlatPointCoordinates(a,p))>d&&(this.instructions.push([n.ZP.CUSTOM,d,s,e,r,f.Ml]),this.hitDetectionInstructions.push([n.ZP.CUSTOM,d,s,e,o||r,f.Ml]));break;case i.Z.POINT:a=e.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),s=this.coordinates.length,this.instructions.push([n.ZP.CUSTOM,d,s,e,r]),this.hitDetectionInstructions.push([n.ZP.CUSTOM,d,s,e,o||r])}this.endGeometry(t)}},{key:"beginGeometry",value:function(e,t){this.beginGeometryInstruction1_=[n.ZP.BEGIN_GEOMETRY,t,0,e],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[n.ZP.BEGIN_GEOMETRY,t,0,e],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}},{key:"finish",value:function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}},{key:"reverseHitDetectionInstructions",value:function(){var e,t=this.hitDetectionInstructions;t.reverse();var r,i,o=t.length,a=-1;for(e=0;e<o;++e)(i=(r=t[e])[0])==n.ZP.END_GEOMETRY?a=e:i==n.ZP.BEGIN_GEOMETRY&&(r[2]=e,(0,c.FZ)(this.hitDetectionInstructions,a,e),a=-1)}},{key:"setFillStrokeStyle",value:function(e,t){var r=this.state;if(e){var n=e.getColor();r.fillStyle=(0,s.y)(n||l.bL)}else r.fillStyle=void 0;if(t){var i=t.getColor();r.strokeStyle=(0,s.y)(i||l.Tx);var o=t.getLineCap();r.lineCap=void 0!==o?o:l.mb;var a=t.getLineDash();r.lineDash=a?a.slice():l.X9;var u=t.getLineDashOffset();r.lineDashOffset=u||l.He;var c=t.getLineJoin();r.lineJoin=void 0!==c?c:l.rc;var f=t.getWidth();r.lineWidth=void 0!==f?f:l.yC;var h=t.getMiterLimit();r.miterLimit=void 0!==h?h:l.V4,r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0}},{key:"createFill",value:function(e){var t=e.fillStyle,r=[n.ZP.SET_FILL_STYLE,t];return"string"!=typeof t&&r.push(!0),r}},{key:"applyStroke",value:function(e){this.instructions.push(this.createStroke(e))}},{key:"createStroke",value:function(e){return[n.ZP.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio]}},{key:"updateFillStyle",value:function(e,t){var r=e.fillStyle;"string"==typeof r&&e.currentFillStyle==r||(void 0!==r&&this.instructions.push(t.call(this,e)),e.currentFillStyle=r)}},{key:"updateStrokeStyle",value:function(e,t){var r=e.strokeStyle,n=e.lineCap,i=e.lineDash,o=e.lineDashOffset,a=e.lineJoin,s=e.lineWidth,u=e.miterLimit;(e.currentStrokeStyle!=r||e.currentLineCap!=n||i!=e.currentLineDash&&!(0,c.fS)(e.currentLineDash,i)||e.currentLineDashOffset!=o||e.currentLineJoin!=a||e.currentLineWidth!=s||e.currentMiterLimit!=u)&&(void 0!==r&&t.call(this,e),e.currentStrokeStyle=r,e.currentLineCap=n,e.currentLineDash=i,e.currentLineDashOffset=o,e.currentLineJoin=a,e.currentLineWidth=s,e.currentMiterLimit=u)}},{key:"endGeometry",value:function(e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var t=[n.ZP.END_GEOMETRY,e];this.instructions.push(t),this.hitDetectionInstructions.push(t)}},{key:"getBufferedMaxExtent",value:function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,u.d9)(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;(0,u.f3)(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}])&&p(t.prototype,r),a&&p(t,a),Object.defineProperty(t,"prototype",{writable:!1}),v}(a.Z);t.Z=g},44620:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(62356),i=r(36299);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=u(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,r,n,o=c(u);function u(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(i=o.call(this,e,t,r,n)).hitDetectionImage_=null,i.image_=null,i.imagePixelRatio_=void 0,i.anchorX_=void 0,i.anchorY_=void 0,i.height_=void 0,i.opacity_=void 0,i.originX_=void 0,i.originY_=void 0,i.rotateWithView_=void 0,i.rotation_=void 0,i.scale_=void 0,i.width_=void 0,i.declutterImageWithText_=void 0,i}return t=u,(r=[{key:"drawPoint",value:function(e,t){if(this.image_){this.beginGeometry(e,t);var r=e.getFlatCoordinates(),n=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i.ZP.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([i.ZP.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}}},{key:"drawMultiPoint",value:function(e,t){if(this.image_){this.beginGeometry(e,t);var r=e.getFlatCoordinates(),n=e.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(r,n);this.instructions.push([i.ZP.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([i.ZP.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(t)}}},{key:"finish",value:function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,s(h(u.prototype),"finish",this).call(this)}},{key:"setImageStyle",value:function(e,t){var r=e.getAnchor(),n=e.getSize(),i=e.getHitDetectionImage(),o=e.getImage(this.pixelRatio),a=e.getOrigin();this.imagePixelRatio_=e.getPixelRatio(this.pixelRatio),this.anchorX_=r[0],this.anchorY_=r[1],this.hitDetectionImage_=i,this.image_=o,this.height_=n[1],this.opacity_=e.getOpacity(),this.originX_=a[0]*this.imagePixelRatio_,this.originY_=a[1]*this.imagePixelRatio_,this.rotateWithView_=e.getRotateWithView(),this.rotation_=e.getRotation(),this.scale_=e.getScaleArray(),this.width_=n[0],this.declutterImageWithText_=t}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Z),d=r(29852);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=g(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(a,e);var t,r,n,o=_(a);function a(e,t,r,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,t,r,n)}return t=a,(r=[{key:"drawFlatCoordinates_",value:function(e,t,r,n){var o=this.coordinates.length,a=this.appendFlatLineCoordinates(e,t,r,n,!1,!1),s=[i.ZP.MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),r}},{key:"drawLineString",value:function(e,t){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([i.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,d.X9,d.He],i.$O);var a=e.getFlatCoordinates(),s=e.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(i.Yc),this.endGeometry(t)}}},{key:"drawMultiLineString",value:function(e,t){var r=this.state,n=r.strokeStyle,o=r.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(e,t),this.hitDetectionInstructions.push([i.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],i.$O);for(var a=e.getEnds(),s=e.getFlatCoordinates(),u=e.getStride(),l=0,c=0,f=a.length;c<f;++c)l=this.drawFlatCoordinates_(s,l,a[c],u);this.hitDetectionInstructions.push(i.Yc),this.endGeometry(t)}}},{key:"finish",value:function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(i.Yc),this.reverseHitDetectionInstructions(),this.state=null,m(x(a.prototype),"finish",this).call(this)}},{key:"applyStroke",value:function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(i.Yc),e.lastStroke=this.coordinates.length),e.lastStroke=0,m(x(a.prototype),"applyStroke",this).call(this,e),this.instructions.push(i.$O)}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Z),O=r(90615);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(){return(T="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=R(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function R(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var i=j(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return M(this,r)}}function M(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(a,e);var t,r,n,o=C(a);function a(e,t,r,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,t,r,n)}return t=a,(r=[{key:"drawFlatCoordinatess_",value:function(e,t,r,n){var o=this.state,a=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,u=r.length;this.instructions.push(i.$O),this.hitDetectionInstructions.push(i.$O);for(var l=0;l<u;++l){var c=r[l],f=this.coordinates.length,h=this.appendFlatLineCoordinates(e,t,c,n,!0,!s),p=[i.ZP.MOVE_TO_LINE_TO,f,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),s&&(this.instructions.push(i.s3),this.hitDetectionInstructions.push(i.s3)),t=c}return a&&(this.instructions.push(i.gO),this.hitDetectionInstructions.push(i.gO)),s&&(this.instructions.push(i.Yc),this.hitDetectionInstructions.push(i.Yc)),t}},{key:"drawCircle",value:function(e,t){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i.ZP.SET_FILL_STYLE,d.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=e.getFlatCoordinates(),s=e.getStride(),u=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,s,!1,!1);var l=[i.ZP.CIRCLE,u];this.instructions.push(i.$O,l),this.hitDetectionInstructions.push(i.$O,l),void 0!==r.fillStyle&&(this.instructions.push(i.gO),this.hitDetectionInstructions.push(i.gO)),void 0!==r.strokeStyle&&(this.instructions.push(i.Yc),this.hitDetectionInstructions.push(i.Yc)),this.endGeometry(t)}}},{key:"drawPolygon",value:function(e,t){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i.ZP.SET_FILL_STYLE,d.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var a=e.getEnds(),s=e.getOrientedFlatCoordinates(),u=e.getStride();this.drawFlatCoordinatess_(s,0,a,u),this.endGeometry(t)}}},{key:"drawMultiPolygon",value:function(e,t){var r=this.state,n=r.fillStyle,o=r.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(e,t),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([i.ZP.SET_FILL_STYLE,d.bL]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([i.ZP.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var a=e.getEndss(),s=e.getOrientedFlatCoordinates(),u=e.getStride(),l=0,c=0,f=a.length;c<f;++c)l=this.drawFlatCoordinatess_(s,l,a[c],u);this.endGeometry(t)}}},{key:"finish",value:function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var t=this.coordinates,r=0,n=t.length;r<n;++r)t[r]=(0,O.uZ)(t[r],e);return T(j(a.prototype),"finish",this).call(this)}},{key:"setFillStrokeStyles_",value:function(){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)}}])&&E(t.prototype,r),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Z),A=r(77034);function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var D={Circle:I,Default:n.Z,Image:p,LineString:k,Polygon:I,Text:A.Z},Z=function(){function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tolerance_=t,this.maxExtent_=r,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}var t,r,n;return t=e,(r=[{key:"finish",value:function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var r=this.buildersByZIndex_[t];for(var n in r){var i=r[n].finish();e[t][n]=i}}return e}},{key:"getBuilder",value:function(e,t){var r=void 0!==e?e.toString():"0",n=this.buildersByZIndex_[r];void 0===n&&(n={},this.buildersByZIndex_[r]=n);var i=n[t];return void 0===i&&(i=new(0,D[t])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[t]=i),i}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},42238:function(e,t){"use strict";t.Z={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},25618:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(42238),i=r(36299),o=r(77034),a=r(25738),s=r(19329),u=r(86923),l=r(29852),c=r(62990),f=r(13698);function h(e,t,r,n,i,o,a,s,u,l,h,p){var d=e[t],y=e[t+1],v=0,m=0,g=0,b=0;function _(){v=d,m=y,d=e[t+=n],y=e[t+1],b+=g,g=Math.sqrt((d-v)*(d-v)+(y-m)*(y-m))}do{_()}while(t<r-n&&b+g<o);for(var w=0===g?0:(o-b)/g,x=(0,c.t7)(v,d,w),k=(0,c.t7)(m,y,w),O=t-n,S=b,E=o+s*u(l,i,h);t<r-n&&b+g<E;)_();w=0===g?0:(E-b)/g;var T,R=(0,c.t7)(v,d,w),P=(0,c.t7)(m,y,w);if(p){var C=[x,k,R,P];(0,f.U1)(C,0,4,2,p,C,C),T=C[0]>C[2]}else T=x>R;var M,j=Math.PI,I=[],A=O+n===t;if(g=0,b=S,d=e[t=O],y=e[t+1],A){_(),M=Math.atan2(y-m,d-v),T&&(M+=M>0?-j:j);var L=(R+x)/2,D=(P+k)/2;return I[0]=[L,D,(E-o)/2,M,i],I}for(var Z=0,F=i.length;Z<F;){_();var N=Math.atan2(y-m,d-v);if(T&&(N+=N>0?-j:j),void 0!==M){var G=N-M;if(G+=G>j?-2*j:G<-j?2*j:0,Math.abs(G)>a)return null}M=N;for(var B=Z,z=0;Z<F;++Z){var U=s*u(l,i[T?F-Z-1:Z],h);if(t+n<r&&b+g<o+z+U/2)break;z+=U}if(Z!==B){var q=T?i.substring(F-B,F-Z):i.substring(B,Z);w=0===g?0:(o+z/2-b)/g;var V=(0,c.t7)(v,d,w),X=(0,c.t7)(m,y,w);I.push([V,X,z/2,N,q]),o+=z}}return I}var p=r(17985),d=r(7807);function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var v=(0,u.lJ)(),m=[],g=[],b=[],_=[];function w(e){return e[3].declutterBox}var x=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function k(e,t){return"start"!==t&&"end"!==t||x.test(e)||(t="start"===t?"left":"right"),o.I[t]}var O=function(){function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.overlaps=n,this.pixelRatio=r,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,s.Ue)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}var t,r,n;return t=e,(r=[{key:"createLabel",value:function(e,t,r,n){var i=e+t+r+n;if(this.labels_[i])return this.labels_[i];var o=n?this.strokeStates[n]:null,s=r?this.fillStates[r]:null,u=this.textStates[t],c=this.pixelRatio,f=[u.scale[0]*c,u.scale[1]*c],h=k(e,u.textAlign||l.PH),p=n&&o.lineWidth?o.lineWidth:0,d=e.split("\n"),y=d.length,v=[],m=(0,l.gs)(u.font,d,v),g=(0,l.fk)(u.font),b=m+p,_=[],w=(b+2)*f[0],x=(g*y+p)*f[1],O={width:w<0?Math.floor(w):Math.ceil(w),height:x<0?Math.floor(x):Math.ceil(x),contextInstructions:_};1==f[0]&&1==f[1]||_.push("scale",f),_.push("font",u.font),n&&(_.push("strokeStyle",o.strokeStyle),_.push("lineWidth",p),_.push("lineCap",o.lineCap),_.push("lineJoin",o.lineJoin),_.push("miterLimit",o.miterLimit),(a.Id?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(_.push("setLineDash",[o.lineDash]),_.push("lineDashOffset",o.lineDashOffset))),r&&_.push("fillStyle",s.fillStyle),_.push("textBaseline","middle"),_.push("textAlign","center");var S,E=.5-h,T=h*b+E*p;if(n)for(S=0;S<y;++S)_.push("strokeText",[d[S],T+E*v[S],.5*(p+g)+S*g]);if(r)for(S=0;S<y;++S)_.push("fillText",[d[S],T+E*v[S],.5*(p+g)+S*g]);return this.labels_[i]=O,O}},{key:"replayTextBackground_",value:function(e,t,r,n,i,o,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}},{key:"calculateImageOrLabelDimensions_",value:function(e,t,r,n,i,o,a,l,c,f,h,p,d,y,w,x){var k,O=r-(a*=p[0]),S=n-(l*=p[1]),E=i+c>e?e-c:i,T=o+f>t?t-f:o,R=y[3]+E*p[0]+y[1],P=y[0]+T*p[1]+y[2],C=O-y[3],M=S-y[0];return(w||0!==h)&&(m[0]=C,_[0]=C,m[1]=M,g[1]=M,g[0]=C+R,b[0]=g[0],b[1]=M+P,_[1]=b[1]),0!==h?(k=(0,s.qC)((0,s.Ue)(),r,n,1,1,h,-r,-n),(0,s.nn)(k,m),(0,s.nn)(k,g),(0,s.nn)(k,b),(0,s.nn)(k,_),(0,u.T9)(Math.min(m[0],g[0],b[0],_[0]),Math.min(m[1],g[1],b[1],_[1]),Math.max(m[0],g[0],b[0],_[0]),Math.max(m[1],g[1],b[1],_[1]),v)):(0,u.T9)(Math.min(C,C+R),Math.min(M,M+P),Math.max(C,C+R),Math.max(M,M+P),v),d&&(O=Math.round(O),S=Math.round(S)),{drawImageX:O,drawImageY:S,drawImageW:E,drawImageH:T,originX:c,originY:f,declutterBox:{minX:v[0],minY:v[1],maxX:v[2],maxY:v[3],value:x},canvasTransform:k,scale:p}}},{key:"replayImageOrLabel_",value:function(e,t,r,n,i,o,a){var s=!(!o&&!a),u=n.declutterBox,c=e.canvas,f=a?a[2]*n.scale[0]/2:0;return u.minX-f<=c.width/t&&u.maxX+f>=0&&u.minY-f<=c.height/t&&u.maxY+f>=0&&(s&&this.replayTextBackground_(e,m,g,b,_,o,a),(0,l._f)(e,n.canvasTransform,i,r,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}},{key:"fill_",value:function(e){if(this.alignFill_){var t=(0,s.nn)(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(t[0]%r,t[1]%r),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()}},{key:"setStrokeStyle_",value:function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))}},{key:"drawLabelWithPointPlacement_",value:function(e,t,r,n){var i=this.textStates[t],a=this.createLabel(e,t,n,r),s=this.strokeStates[r],u=this.pixelRatio,c=k(e,i.textAlign||l.PH),f=o.I[i.textBaseline||l.ru],h=s&&s.lineWidth?s.lineWidth:0;return{label:a,anchorX:c*(a.width/u-2*i.scale[0])+2*(.5-c)*h,anchorY:f*a.height/u+2*(.5-f)*h}}},{key:"execute_",value:function(e,t,r,n,a,c,y,v){var m;this.pixelCoordinates_&&(0,p.fS)(r,this.renderedTransform_)?m=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),m=(0,f.vT)(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),(0,s.lk)(this.renderedTransform_,r));for(var g,b,_,x,k,O,S,E,T,R,P,C,M,j,I,A,L=0,D=n.length,Z=0,F=0,N=0,G=null,B=null,z=this.coordinateCache_,U=this.viewRotation_,q=Math.round(1e12*Math.atan2(-r[1],r[0]))/1e12,V={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:U},X=this.instructions!=n||this.overlaps?0:200;L<D;){var Y=n[L];switch(Y[0]){case i.ZP.BEGIN_GEOMETRY:M=Y[1],A=Y[3],M.getGeometry()?void 0===y||(0,u.kK)(y,A.getExtent())?++L:L=Y[2]+1:L=Y[2];break;case i.ZP.BEGIN_PATH:F>X&&(this.fill_(e),F=0),N>X&&(e.stroke(),N=0),F||N||(e.beginPath(),x=NaN,k=NaN),++L;break;case i.ZP.CIRCLE:var W=m[Z=Y[1]],K=m[Z+1],H=m[Z+2]-W,$=m[Z+3]-K,J=Math.sqrt(H*H+$*$);e.moveTo(W+J,K),e.arc(W,K,J,0,2*Math.PI,!0),++L;break;case i.ZP.CLOSE_PATH:e.closePath(),++L;break;case i.ZP.CUSTOM:Z=Y[1],g=Y[2];var Q=Y[3],ee=Y[4],te=6==Y.length?Y[5]:void 0;V.geometry=Q,V.feature=M,L in z||(z[L]=[]);var re=z[L];te?te(m,Z,g,2,re):(re[0]=m[Z],re[1]=m[Z+1],re.length=2),ee(re,V),++L;break;case i.ZP.DRAW_IMAGE:Z=Y[1],g=Y[2],E=Y[3],b=Y[4],_=Y[5];var ne=Y[6],ie=Y[7],oe=Y[8],ae=Y[9],se=Y[10],ue=Y[11],le=Y[12],ce=Y[13],fe=Y[14];if(!E&&Y.length>=19){T=Y[18],R=Y[19],P=Y[20],C=Y[21];var he=this.drawLabelWithPointPlacement_(T,R,P,C);E=he.label,Y[3]=E;var pe=Y[22];b=(he.anchorX-pe)*this.pixelRatio,Y[4]=b;var de=Y[23];_=(he.anchorY-de)*this.pixelRatio,Y[5]=_,ne=E.height,Y[6]=ne,ce=E.width,Y[13]=ce}var ye=void 0;Y.length>24&&(ye=Y[24]);var ve=void 0,me=void 0,ge=void 0;Y.length>16?(ve=Y[15],me=Y[16],ge=Y[17]):(ve=l.oB,me=!1,ge=!1),se&&q?ue+=U:se||q||(ue-=U);for(var be=0;Z<g;Z+=2)if(!(ye&&ye[be++]<ce/this.pixelRatio)){var _e=this.calculateImageOrLabelDimensions_(E.width,E.height,m[Z],m[Z+1],ce,ne,b,_,oe,ae,ue,le,a,ve,me||ge,M),we=[e,t,E,_e,ie,me?G:null,ge?B:null],xe=void 0,ke=void 0;if(v&&fe){var Oe=g-Z;if(!fe[Oe]){fe[Oe]=we;continue}if(xe=fe[Oe],delete fe[Oe],ke=w(xe),v.collides(ke))continue}v&&v.collides(_e.declutterBox)||(xe&&(v&&v.insert(ke),this.replayImageOrLabel_.apply(this,xe)),v&&v.insert(_e.declutterBox),this.replayImageOrLabel_.apply(this,we))}++L;break;case i.ZP.DRAW_CHARS:var Se=Y[1],Ee=Y[2],Te=Y[3],Re=Y[4];C=Y[5];var Pe=Y[6],Ce=Y[7],Me=Y[8];P=Y[9];var je=Y[10];T=Y[11],R=Y[12];var Ie=[Y[13],Y[13]],Ae=this.textStates[R],Le=Ae.font,De=[Ae.scale[0]*Ce,Ae.scale[1]*Ce],Ze=void 0;Le in this.widths_?Ze=this.widths_[Le]:(Ze={},this.widths_[Le]=Ze);var Fe=(0,d.W)(m,Se,Ee,2),Ne=Math.abs(De[0])*(0,l.Kd)(Le,T,Ze);if(Re||Ne<=Fe){var Ge=this.textStates[R].textAlign,Be=h(m,Se,Ee,2,T,(Fe-Ne)*o.I[Ge],Pe,Math.abs(De[0]),l.Kd,Le,Ze,q?0:this.viewRotation_);e:if(Be){var ze=[],Ue=void 0,qe=void 0,Ve=void 0,Xe=void 0,Ye=void 0;if(P)for(Ue=0,qe=Be.length;Ue<qe;++Ue){Ve=(Ye=Be[Ue])[4],Xe=this.createLabel(Ve,R,"",P),b=Ye[2]+(De[0]<0?-je:je),_=Te*Xe.height+2*(.5-Te)*je*De[1]/De[0]-Me;var We=this.calculateImageOrLabelDimensions_(Xe.width,Xe.height,Ye[0],Ye[1],Xe.width,Xe.height,b,_,0,0,Ye[3],Ie,!1,l.oB,!1,M);if(v&&v.collides(We.declutterBox))break e;ze.push([e,t,Xe,We,1,null,null])}if(C)for(Ue=0,qe=Be.length;Ue<qe;++Ue){Ve=(Ye=Be[Ue])[4],Xe=this.createLabel(Ve,R,C,""),b=Ye[2],_=Te*Xe.height-Me;var Ke=this.calculateImageOrLabelDimensions_(Xe.width,Xe.height,Ye[0],Ye[1],Xe.width,Xe.height,b,_,0,0,Ye[3],Ie,!1,l.oB,!1,M);if(v&&v.collides(Ke.declutterBox))break e;ze.push([e,t,Xe,Ke,1,null,null])}v&&v.load(ze.map(w));for(var He=0,$e=ze.length;He<$e;++He)this.replayImageOrLabel_.apply(this,ze[He])}}++L;break;case i.ZP.END_GEOMETRY:if(void 0!==c){var Je=c(M=Y[1],A);if(Je)return Je}++L;break;case i.ZP.FILL:X?F++:this.fill_(e),++L;break;case i.ZP.MOVE_TO_LINE_TO:for(Z=Y[1],g=Y[2],j=m[Z],S=(I=m[Z+1])+.5|0,(O=j+.5|0)===x&&S===k||(e.moveTo(j,I),x=O,k=S),Z+=2;Z<g;Z+=2)O=(j=m[Z])+.5|0,S=(I=m[Z+1])+.5|0,Z!=g-2&&O===x&&S===k||(e.lineTo(j,I),x=O,k=S);++L;break;case i.ZP.SET_FILL_STYLE:G=Y,this.alignFill_=Y[2],F&&(this.fill_(e),F=0,N&&(e.stroke(),N=0)),e.fillStyle=Y[1],++L;break;case i.ZP.SET_STROKE_STYLE:B=Y,N&&(e.stroke(),N=0),this.setStrokeStyle_(e,Y),++L;break;case i.ZP.STROKE:X?N++:e.stroke(),++L;break;default:++L}}F&&this.fill_(e),N&&e.stroke()}},{key:"execute",value:function(e,t,r,n,i,o){this.viewRotation_=n,this.execute_(e,t,r,this.instructions,i,void 0,void 0,o)}},{key:"executeHitDetection",value:function(e,t,r,n,i){return this.viewRotation_=r,this.execute_(e,1,t,this.hitDetectionInstructions,!0,n,i)}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),S=r(33716),E=r(32275);function T(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var C=[n.Z.POLYGON,n.Z.CIRCLE,n.Z.LINE_STRING,n.Z.IMAGE,n.Z.TEXT,n.Z.DEFAULT],M=function(){function e(t,r,n,i,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=r,this.renderBuffer_=a,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,s.Ue)(),this.createExecutors_(o)}var t,r,i;return t=e,(r=[{key:"clip",value:function(e,t){var r=this.getClipCoords(t);e.beginPath(),e.moveTo(r[0],r[1]),e.lineTo(r[2],r[3]),e.lineTo(r[4],r[5]),e.lineTo(r[6],r[7]),e.clip()}},{key:"createExecutors_",value:function(e){for(var t in e){var r=this.executorsByZIndex_[t];void 0===r&&(r={},this.executorsByZIndex_[t]=r);var n=e[t];for(var i in n){var o=n[i];r[i]=new O(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}}},{key:"hasExecutors",value:function(e){for(var t in this.executorsByZIndex_)for(var r=this.executorsByZIndex_[t],n=0,i=e.length;n<i;++n)if(e[n]in r)return!0;return!1}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,i,o,a){var l=2*(i=Math.round(i))+1,c=(0,s.qC)(this.hitDetectionTransform_,i+.5,i+.5,1/t,-1/t,-r,-e[0],-e[1]),f=!this.hitDetectionContext_;f&&(this.hitDetectionContext_=(0,S.E4)(l,l));var h,d=this.hitDetectionContext_;d.canvas.width!==l||d.canvas.height!==l?(d.canvas.width=l,d.canvas.height=l):f||d.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(h=(0,u.lJ)(),(0,u.Wj)(h,e),(0,u.f3)(h,t*(this.renderBuffer_+i),h));var y,v=function(e){if(void 0!==j[e])return j[e];for(var t=2*e+1,r=e*e,n=new Array(r+1),i=0;i<=e;++i)for(var o=0;o<=e;++o){var a=i*i+o*o;if(a>r)break;var s=n[a];s||(s=[],n[a]=s),s.push(4*((e+i)*t+(e+o))+3),i>0&&s.push(4*((e-i)*t+(e+o))+3),o>0&&(s.push(4*((e+i)*t+(e-o))+3),i>0&&s.push(4*((e-i)*t+(e-o))+3))}for(var u=[],l=0,c=n.length;l<c;++l)n[l]&&u.push.apply(u,T(n[l]));return j[e]=u,u}(i);function m(e,t){for(var r=d.getImageData(0,0,l,l).data,s=0,u=v.length;s<u;s++)if(r[v[s]]>0){if(!a||y!==n.Z.IMAGE&&y!==n.Z.TEXT||-1!==a.indexOf(e)){var c=(v[s]-3)/4,f=i-c%l,h=i-(c/l|0),p=o(e,t,f*f+h*h);if(p)return p}d.clearRect(0,0,l,l);break}}var g,b,_,w,x,k=Object.keys(this.executorsByZIndex_).map(Number);for(k.sort(p.kK),g=k.length-1;g>=0;--g){var O=k[g].toString();for(_=this.executorsByZIndex_[O],b=C.length-1;b>=0;--b)if(void 0!==(w=_[y=C[b]])&&(x=w.executeHitDetection(d,c,r,m,h)))return x}}},{key:"getClipCoords",value:function(e){var t=this.maxExtent_;if(!t)return null;var r=t[0],n=t[1],i=t[2],o=t[3],a=[r,n,r,o,i,o,i,n];return(0,f.vT)(a,0,8,2,e,a),a}},{key:"isEmpty",value:function(){return(0,E.xb)(this.executorsByZIndex_)}},{key:"execute",value:function(e,t,r,n,i,o,a){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(p.kK),this.maxExtent_&&(e.save(),this.clip(e,r));var u,l,c,f,h,d,y=o||C;for(a&&s.reverse(),u=0,l=s.length;u<l;++u){var v=s[u].toString();for(h=this.executorsByZIndex_[v],c=0,f=y.length;c<f;++c)void 0!==(d=h[y[c]])&&d.execute(e,t,r,n,i,a)}this.maxExtent_&&e.restore()}}])&&P(t.prototype,r),i&&P(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),j={};var I=M},16263:function(e,t,r){"use strict";var n=r(10392),i=r(15002),o=r(65578),a=r(19329),s=r(29852),u=r(17985),l=r(86923),c=r(13698),f=r(86877);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(v,e);var t,r,i,h=y(v);function v(e,t,r,n,i,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(u=h.call(this)).context_=e,u.pixelRatio_=t,u.extent_=r,u.transform_=n,u.viewRotation_=i,u.squaredTolerance_=o,u.userTransform_=s,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=[0,0],u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=[0,0],u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=(0,a.Ue)(),u}return t=v,(r=[{key:"drawImages_",value:function(e,t,r,n){if(this.image_){var i=(0,c.vT)(e,t,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,u=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=u*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var f=0,h=i.length;f<h;f+=2){var p=i[f]-this.imageAnchorX_,d=i[f+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_[0]||1!=this.imageScale_[1]){var y=p+this.imageAnchorX_,v=d+this.imageAnchorY_;(0,a.qC)(s,y,v,1,1,l,-y,-v),o.setTransform.apply(o,s),o.translate(y,v),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.setTransform(1,0,0,1,0,0)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,p,d,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=u)}}},{key:"drawText_",value:function(e,t,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=(0,c.vT)(e,t,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);t<r;t+=n){var u=i[t]+this.textOffsetX_,l=i[t+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_[0]||1!=this.textScale_[1]){var f=(0,a.qC)(this.tmpLocalTransform_,u,l,1,1,s,-u,-l);o.setTransform.apply(o,f),o.translate(u,l),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&o.strokeText(this.text_,u,l),this.textFillState_&&o.fillText(this.text_,u,l)}}}},{key:"moveToLineTo_",value:function(e,t,r,n,i){var o=this.context_,a=(0,c.vT)(e,t,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var u=2;u<s;u+=2)o.lineTo(a[u],a[u+1]);return i&&o.closePath(),r}},{key:"drawRings_",value:function(e,t,r,n){for(var i=0,o=r.length;i<o;++i)t=this.moveToLineTo_(e,t,r[i],n,!0);return t}},{key:"drawCircle",value:function(e){if((0,l.kK)(this.extent_,e.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=(0,f.Kr)(e,this.transform_,this.pixelCoordinates_),r=t[2]-t[0],n=t[3]-t[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(t[0],t[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(e.getCenter(),0,2,2)}}},{key:"setStyle",value:function(e){this.setFillStrokeStyle(e.getFill(),e.getStroke()),this.setImageStyle(e.getImage()),this.setTextStyle(e.getText())}},{key:"setTransform",value:function(e){this.transform_=e}},{key:"drawGeometry",value:function(e){switch(e.getType()){case n.Z.POINT:this.drawPoint(e);break;case n.Z.LINE_STRING:this.drawLineString(e);break;case n.Z.POLYGON:this.drawPolygon(e);break;case n.Z.MULTI_POINT:this.drawMultiPoint(e);break;case n.Z.MULTI_LINE_STRING:this.drawMultiLineString(e);break;case n.Z.MULTI_POLYGON:this.drawMultiPolygon(e);break;case n.Z.GEOMETRY_COLLECTION:this.drawGeometryCollection(e);break;case n.Z.CIRCLE:this.drawCircle(e)}}},{key:"drawFeature",value:function(e,t){var r=t.getGeometryFunction()(e);r&&(0,l.kK)(this.extent_,r.getExtent())&&(this.setStyle(t),this.drawGeometry(r))}},{key:"drawGeometryCollection",value:function(e){for(var t=e.getGeometriesArray(),r=0,n=t.length;r<n;++r)this.drawGeometry(t[r])}},{key:"drawPoint",value:function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),r=e.getStride();this.image_&&this.drawImages_(t,0,t.length,r),""!==this.text_&&this.drawText_(t,0,t.length,r)}},{key:"drawMultiPoint",value:function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getFlatCoordinates(),r=e.getStride();this.image_&&this.drawImages_(t,0,t.length,r),""!==this.text_&&this.drawText_(t,0,t.length,r)}},{key:"drawLineString",value:function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.kK)(this.extent_,e.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var t=this.context_,r=e.getFlatCoordinates();t.beginPath(),this.moveToLineTo_(r,0,r.length,e.getStride(),!1),t.stroke()}if(""!==this.text_){var n=e.getFlatMidpoint();this.drawText_(n,0,2,2)}}}},{key:"drawMultiLineString",value:function(e){this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var t=e.getExtent();if((0,l.kK)(this.extent_,t)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=e.getFlatCoordinates(),i=0,o=e.getEnds(),a=e.getStride();r.beginPath();for(var s=0,u=o.length;s<u;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var c=e.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}}},{key:"drawPolygon",value:function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.kK)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_;t.beginPath(),this.drawRings_(e.getOrientedFlatCoordinates(),0,e.getEnds(),e.getStride()),this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var r=e.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}}},{key:"drawMultiPolygon",value:function(e){if(this.squaredTolerance_&&(e=e.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.kK)(this.extent_,e.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var t=this.context_,r=e.getOrientedFlatCoordinates(),n=0,i=e.getEndss(),o=e.getStride();t.beginPath();for(var a=0,s=i.length;a<s;++a){var u=i[a];n=this.drawRings_(r,n,u,o)}this.fillState_&&t.fill(),this.strokeState_&&t.stroke()}if(""!==this.text_){var c=e.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}}},{key:"setContextFillState_",value:function(e){var t=this.context_,r=this.contextFillState_;r?r.fillStyle!=e.fillStyle&&(r.fillStyle=e.fillStyle,t.fillStyle=e.fillStyle):(t.fillStyle=e.fillStyle,this.contextFillState_={fillStyle:e.fillStyle})}},{key:"setContextStrokeState_",value:function(e){var t=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=e.lineCap&&(r.lineCap=e.lineCap,t.lineCap=e.lineCap),t.setLineDash&&((0,u.fS)(r.lineDash,e.lineDash)||t.setLineDash(r.lineDash=e.lineDash),r.lineDashOffset!=e.lineDashOffset&&(r.lineDashOffset=e.lineDashOffset,t.lineDashOffset=e.lineDashOffset)),r.lineJoin!=e.lineJoin&&(r.lineJoin=e.lineJoin,t.lineJoin=e.lineJoin),r.lineWidth!=e.lineWidth&&(r.lineWidth=e.lineWidth,t.lineWidth=e.lineWidth),r.miterLimit!=e.miterLimit&&(r.miterLimit=e.miterLimit,t.miterLimit=e.miterLimit),r.strokeStyle!=e.strokeStyle&&(r.strokeStyle=e.strokeStyle,t.strokeStyle=e.strokeStyle)):(t.lineCap=e.lineCap,t.setLineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.strokeStyle=e.strokeStyle,this.contextStrokeState_={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle})}},{key:"setContextTextState_",value:function(e){var t=this.context_,r=this.contextTextState_,n=e.textAlign?e.textAlign:s.PH;r?(r.font!=e.font&&(r.font=e.font,t.font=e.font),r.textAlign!=n&&(r.textAlign=n,t.textAlign=n),r.textBaseline!=e.textBaseline&&(r.textBaseline=e.textBaseline,t.textBaseline=e.textBaseline)):(t.font=e.font,t.textAlign=n,t.textBaseline=e.textBaseline,this.contextTextState_={font:e.font,textAlign:n,textBaseline:e.textBaseline})}},{key:"setFillStrokeStyle",value:function(e,t){var r=this;if(e){var n=e.getColor();this.fillState_={fillStyle:(0,o.y)(n||s.bL)}}else this.fillState_=null;if(t){var i=t.getColor(),a=t.getLineCap(),u=t.getLineDash(),l=t.getLineDashOffset(),c=t.getLineJoin(),f=t.getWidth(),h=t.getMiterLimit(),p=u||s.X9;this.strokeState_={lineCap:void 0!==a?a:s.mb,lineDash:1===this.pixelRatio_?p:p.map((function(e){return e*r.pixelRatio_})),lineDashOffset:(l||s.He)*this.pixelRatio_,lineJoin:void 0!==c?c:s.rc,lineWidth:(void 0!==f?f:s.yC)*this.pixelRatio_,miterLimit:void 0!==h?h:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.strokeState_=null}},{key:"setImageStyle",value:function(e){var t;if(e&&(t=e.getSize())){var r=e.getAnchor(),n=e.getOrigin();this.image_=e.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*this.pixelRatio_,this.imageAnchorY_=r[1]*this.pixelRatio_,this.imageHeight_=t[1]*this.pixelRatio_,this.imageOpacity_=e.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=e.getRotateWithView(),this.imageRotation_=e.getRotation(),this.imageScale_=e.getScaleArray(),this.imageWidth_=t[0]*this.pixelRatio_}else this.image_=null}},{key:"setTextStyle",value:function(e){if(e){var t=e.getFill();if(t){var r=t.getColor();this.textFillState_={fillStyle:(0,o.y)(r||s.bL)}}else this.textFillState_=null;var n=e.getStroke();if(n){var i=n.getColor(),a=n.getLineCap(),u=n.getLineDash(),l=n.getLineDashOffset(),c=n.getLineJoin(),f=n.getWidth(),h=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==a?a:s.mb,lineDash:u||s.X9,lineDashOffset:l||s.He,lineJoin:void 0!==c?c:s.rc,lineWidth:void 0!==f?f:s.yC,miterLimit:void 0!==h?h:s.V4,strokeStyle:(0,o.y)(i||s.Tx)}}else this.textStrokeState_=null;var p=e.getFont(),d=e.getOffsetX(),y=e.getOffsetY(),v=e.getRotateWithView(),m=e.getRotation(),g=e.getScaleArray(),b=e.getText(),_=e.getTextAlign(),w=e.getTextBaseline();this.textState_={font:void 0!==p?p:s.Df,textAlign:void 0!==_?_:s.PH,textBaseline:void 0!==w?w:s.ru},this.text_=void 0!==b?b:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==y?this.pixelRatio_*y:0,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0!==m?m:0,this.textScale_=[this.pixelRatio_*g[0],this.pixelRatio_*g[1]]}else this.text_=""}}])&&p(t.prototype,r),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),v}(i.Z);t.Z=g},36299:function(e,t,r){"use strict";r.d(t,{gO:function(){return i},Yc:function(){return o},$O:function(){return a},s3:function(){return s}});var n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},i=[n.FILL],o=[n.STROKE],a=[n.BEGIN_PATH],s=[n.CLOSE_PATH];t.ZP=n},77034:function(e,t,r){"use strict";r.d(t,{I:function(){return _},Z:function(){return w}});var n=r(62356),i=r(36299),o=r(10392),a=r(7357),s=r(65578),u=r(29852),l=r(99382),c=r(86923);function f(e,t,r,n,i){var o,a,s,u,l,c,f,h,p,d=r,y=r,v=0,m=0,g=r;for(o=r;o<n;o+=i){var b=t[o],_=t[o+1];void 0!==u&&(h=b-u,p=_-l,s=Math.sqrt(h*h+p*p),void 0!==c&&(m+=a,Math.acos((c*h+f*p)/(a*s))>e&&(m>v&&(v=m,d=g,y=o),m=0,g=o-i)),a=s,c=h,f=p),u=b,l=_}return(m+=s)>v?[g,o]:[d,y]}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=y(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(y,e);var t,r,n,h=m(y);function y(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(i=h.call(this,e,t,r,n)).labels_=null,i.text_="",i.textOffsetX_=0,i.textOffsetY_=0,i.textRotateWithView_=void 0,i.textRotation_=0,i.textFillState_=null,i.fillStates={},i.textStrokeState_=null,i.strokeStates={},i.textState_={},i.textStates={},i.textKey_="",i.fillKey_="",i.strokeKey_="",i.declutterImageWithText_=void 0,i}return t=y,(r=[{key:"finish",value:function(){var e=d(b(y.prototype),"finish",this).call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e}},{key:"drawText",value:function(e,t){var r=this.textFillState_,n=this.textStrokeState_,s=this.textState_;if(""!==this.text_&&s&&(r||n)){var l=this.coordinates,h=l.length,p=e.getType(),d=null,y=e.getStride();if(s.placement!==a.Z.LINE||p!=o.Z.LINE_STRING&&p!=o.Z.MULTI_LINE_STRING&&p!=o.Z.POLYGON&&p!=o.Z.MULTI_POLYGON){var v=s.overflow?null:[];switch(p){case o.Z.POINT:case o.Z.MULTI_POINT:d=e.getFlatCoordinates();break;case o.Z.LINE_STRING:d=e.getFlatMidpoint();break;case o.Z.CIRCLE:d=e.getCenter();break;case o.Z.MULTI_LINE_STRING:d=e.getFlatMidpoints(),y=2;break;case o.Z.POLYGON:d=e.getFlatInteriorPoint(),s.overflow||v.push(d[2]/this.resolution),y=3;break;case o.Z.MULTI_POLYGON:var m=e.getFlatInteriorPoints();d=[];for(var g=0,b=m.length;g<b;g+=3)s.overflow||v.push(m[g+2]/this.resolution),d.push(m[g],m[g+1]);if(0===d.length)return;y=2}var _=this.appendFlatPointCoordinates(d,y);if(_===h)return;if(v&&(_-h)/2!=d.length/y){var w=h/2;v=v.filter((function(e,t){var r=l[2*(w+t)]===d[t*y]&&l[2*(w+t)+1]===d[t*y+1];return r||--w,r}))}this.saveTextStates_(),(s.backgroundFill||s.backgroundStroke)&&(this.setFillStrokeStyle(s.backgroundFill,s.backgroundStroke),s.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),s.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(e,t);var x=s.padding;if(x!=u.oB&&(s.scale[0]<0||s.scale[1]<0)){var k=s.padding[0],O=s.padding[1],S=s.padding[2],E=s.padding[3];s.scale[0]<0&&(O=-O,E=-E),s.scale[1]<0&&(k=-k,S=-S),x=[k,O,S,E]}var T=this.pixelRatio;this.instructions.push([i.ZP.DRAW_IMAGE,h,_,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,x==u.oB?u.oB:x.map((function(e){return e*T})),!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,v]);var R=1/T;this.hitDetectionInstructions.push([i.ZP.DRAW_IMAGE,h,_,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[R,R],NaN,this.declutterImageWithText_,x,!!s.backgroundFill,!!s.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,v]),this.endGeometry(t)}else{if(!(0,c.kK)(this.getBufferedMaxExtent(),e.getExtent()))return;var P;if(d=e.getFlatCoordinates(),p==o.Z.LINE_STRING)P=[d.length];else if(p==o.Z.MULTI_LINE_STRING)P=e.getEnds();else if(p==o.Z.POLYGON)P=e.getEnds().slice(0,1);else if(p==o.Z.MULTI_POLYGON){var C=e.getEndss();P=[];for(var M=0,j=C.length;M<j;++M)P.push(C[M][0])}this.beginGeometry(e,t);for(var I,A=s.textAlign,L=0,D=0,Z=P.length;D<Z;++D){if(null==A){var F=f(s.maxAngle,d,L,P[D],y);L=F[0],I=F[1]}else I=P[D];for(var N=L;N<I;N+=y)l.push(d[N],d[N+1]);var G=l.length;L=P[D],this.drawChars_(h,G),h=G}this.endGeometry(t)}}}},{key:"saveTextStates_",value:function(){var e=this.textStrokeState_,t=this.textState_,r=this.textFillState_,n=this.strokeKey_;e&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:e.strokeStyle,lineCap:e.lineCap,lineDashOffset:e.lineDashOffset,lineWidth:e.lineWidth,lineJoin:e.lineJoin,miterLimit:e.miterLimit,lineDash:e.lineDash}));var i=this.textKey_;i in this.textStates||(this.textStates[i]={font:t.font,textAlign:t.textAlign||u.PH,textBaseline:t.textBaseline||u.ru,scale:t.scale});var o=this.fillKey_;r&&(o in this.fillStates||(this.fillStates[o]={fillStyle:r.fillStyle}))}},{key:"drawChars_",value:function(e,t){var r=this.textStrokeState_,n=this.textState_,o=this.strokeKey_,a=this.textKey_,s=this.fillKey_;this.saveTextStates_();var u=this.pixelRatio,l=_[n.textBaseline],c=this.textOffsetY_*u,f=this.text_,h=r?r.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([i.ZP.DRAW_CHARS,e,t,l,n.overflow,s,n.maxAngle,u,c,o,h*u,f,a,1]),this.hitDetectionInstructions.push([i.ZP.DRAW_CHARS,e,t,l,n.overflow,s,n.maxAngle,1,c,o,h,f,a,1/u])}},{key:"setTextStyle",value:function(e,t){var r,n,i;if(e){var o=e.getFill();o?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=(0,s.y)(o.getColor()||u.bL)):(n=null,this.textFillState_=n);var a=e.getStroke();if(a){(i=this.textStrokeState_)||(i={},this.textStrokeState_=i);var c=a.getLineDash(),f=a.getLineDashOffset(),h=a.getWidth(),p=a.getMiterLimit();i.lineCap=a.getLineCap()||u.mb,i.lineDash=c?c.slice():u.X9,i.lineDashOffset=void 0===f?u.He:f,i.lineJoin=a.getLineJoin()||u.rc,i.lineWidth=void 0===h?u.yC:h,i.miterLimit=void 0===p?u.V4:p,i.strokeStyle=(0,s.y)(a.getColor()||u.Tx)}else i=null,this.textStrokeState_=i;r=this.textState_;var d=e.getFont()||u.Df;(0,u.Qx)(d);var y=e.getScaleArray();r.overflow=e.getOverflow(),r.font=d,r.maxAngle=e.getMaxAngle(),r.placement=e.getPlacement(),r.textAlign=e.getTextAlign(),r.textBaseline=e.getTextBaseline()||u.ru,r.backgroundFill=e.getBackgroundFill(),r.backgroundStroke=e.getBackgroundStroke(),r.padding=e.getPadding()||u.oB,r.scale=void 0===y?[1,1]:y;var v=e.getOffsetX(),m=e.getOffsetY(),g=e.getRotateWithView(),b=e.getRotation();this.text_=e.getText()||"",this.textOffsetX_=void 0===v?0:v,this.textOffsetY_=void 0===m?0:m,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===b?0:b,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:(0,l.sq)(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?")+(r.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,l.sq)(n.fillStyle):""}else this.text_="";this.declutterImageWithText_=t}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z)},56086:function(e,t,r){"use strict";r.d(t,{UN:function(){return f},TU:function(){return h},ix:function(){return p}});var n=r(16263),i=r(10392),o=r(34156),a=r(24598),s=r(62990),u=r(33716),l=r(86923),c=r(17985),f=.5;function h(e,t,r,s,h,p,d){var y=e[0]*f,v=e[1]*f,m=(0,u.E4)(y,v);m.imageSmoothingEnabled=!1;for(var g=m.canvas,b=new n.Z(m,f,h,null,d),_=r.length,w=Math.floor(16777215/_),x={},k=1;k<=_;++k){var O=r[k-1],S=O.getStyleFunction()||s;if(s){var E=S(O,p);if(E){Array.isArray(E)||(E=[E]);for(var T="#"+("000000"+(k*w).toString(16)).slice(-6),R=0,P=E.length;R<P;++R){var C=E[R],M=C.getGeometryFunction()(O);if(M&&(0,l.kK)(h,M.getExtent())){var j=C.clone(),I=j.getFill();I&&I.setColor(T);var A=j.getStroke();A&&(A.setColor(T),A.setLineDash(null)),j.setText(void 0);var L=C.getImage();if(L&&0!==L.getOpacity()){var D=L.getImageSize();if(!D)continue;var Z=(0,u.E4)(D[0],D[1],void 0,{alpha:!1}),F=Z.canvas;Z.fillStyle=T,Z.fillRect(0,0,F.width,F.height),j.setImage(new a.Z({img:F,imgSize:D,anchor:L.getAnchor(),anchorXUnits:o.Z.PIXELS,anchorYUnits:o.Z.PIXELS,offset:L.getOrigin(),opacity:1,size:L.getSize(),scale:L.getScale(),rotation:L.getRotation(),rotateWithView:L.getRotateWithView()}))}var N=j.getZIndex()||0,G=x[N];G||(G={},x[N]=G,G[i.Z.POLYGON]=[],G[i.Z.CIRCLE]=[],G[i.Z.LINE_STRING]=[],G[i.Z.POINT]=[]),G[M.getType().replace("Multi","")].push(M,j)}}}}}for(var B=Object.keys(x).map(Number).sort(c.kK),z=0,U=B.length;z<U;++z){var q=x[B[z]];for(var V in q)for(var X=q[V],Y=0,W=X.length;Y<W;Y+=2){b.setStyle(X[Y+1]);for(var K=0,H=t.length;K<H;++K)b.setTransform(t[K]),b.drawGeometry(X[Y])}}return m.getImageData(0,0,g.width,g.height)}function p(e,t,r){var n=[];if(r){var i=Math.floor(Math.round(e[0])*f),o=Math.floor(Math.round(e[1])*f),a=4*((0,s.uZ)(i,0,r.width-1)+(0,s.uZ)(o,0,r.height-1)*r.width),u=r.data[a],l=r.data[a+1],c=r.data[a+2]+256*(l+256*u),h=Math.floor(16777215/t.length);c&&c%h==0&&n.push(t[c/h-1])}return n}},58265:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var n=r(61637),i=r(13837),o=r(99382),a=r(19329),s=r(86923),u=r(88819),l=r(2320),c=r(92932);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){u.c.expire()}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,n,f=d(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=f.call(this)).map_=e,t}return t=y,(r=[{key:"dispatchRenderEvent",value:function(e,t){(0,o.O3)()}},{key:"calculateMatrices2D",value:function(e){var t=e.viewState,r=e.coordinateToPixelTransform,n=e.pixelToCoordinateTransform;(0,a.qC)(r,e.size[0]/2,e.size[1]/2,1/t.resolution,-1/t.resolution,-t.rotation,-t.center[0],-t.center[1]),(0,a.nb)(n,r)}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i,o,a,u){var f,h=t.viewState;function p(e,t,r,n){return i.call(o,t,e?r:null,n)}var d=h.projection,y=(0,c.Cf)(e.slice(),d),v=[[0,0]];if(d.canWrapX()&&n){var m=d.getExtent(),g=(0,s.dz)(m);v.push([-g,0],[g,0])}for(var b=t.layerStatesArray,_=b.length,w=[],x=[],k=0;k<v.length;k++)for(var O=_-1;O>=0;--O){var S=b[O],E=S.layer;if(E.hasRenderer()&&(0,l.j)(S,h)&&a.call(u,E)){var T=E.getRenderer(),R=E.getSource();if(T&&R){var P=R.getWrapX()?y:e,C=p.bind(null,S.managed);x[0]=P[0]+v[k][0],x[1]=P[1]+v[k][1],f=T.forEachFeatureAtCoordinate(x,t,r,C,w)}if(f)return f}}if(0!==w.length){var M=1/w.length;return w.forEach((function(e,t){return e.distanceSq+=t*M})),w.sort((function(e,t){return e.distanceSq-t.distanceSq})),w.some((function(e){return f=e.callback(e.feature,e.layer,e.geometry)})),f}}},{key:"forEachLayerAtPixel",value:function(e,t,r,n,i){return(0,o.O3)()}},{key:"hasFeatureAtCoordinate",value:function(e,t,r,n,o,a){return void 0!==this.forEachFeatureAtCoordinate(e,t,r,n,i.uX,this,o,a)}},{key:"getMap",value:function(){return this.map_}},{key:"renderFrame",value:function(e){(0,o.O3)()}},{key:"scheduleExpireIconCache",value:function(e){u.c.canExpireCache()&&e.postRenderFunctions.push(m)}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z),b=r(79937),_=r(98825),w=r(37051),x=r(46583),k=r(48736),O=r(29852),S=r(12016),E=r(33716);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(){return(P="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=C(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function C(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=A(e)););return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=A(e);if(t){var i=A(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return I(this,r)}}function I(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(o,e);var t,r,n,i=j(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).fontChangeListenerKey_=(0,S.oL)(O.sG,b.Z.PROPERTYCHANGE,e.redrawText.bind(e)),t.element_=document.createElement("div");var r=t.element_.style;r.position="absolute",r.width="100%",r.height="100%",r.zIndex="0",t.element_.className=k.XV+" ol-layers";var n=e.getViewport();return n.insertBefore(t.element_,n.firstChild||null),t.children_=[],t.renderedVisible_=!0,t}return t=o,(r=[{key:"dispatchRenderEvent",value:function(e,t){var r=this.getMap();if(r.hasListener(e)){var n=new _.Z(e,void 0,t);r.dispatchEvent(n)}}},{key:"disposeInternal",value:function(){(0,S.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),P(A(o.prototype),"disposeInternal",this).call(this)}},{key:"renderFrame",value:function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(w.Z.PRECOMPOSE,e);var t=e.layerStatesArray.sort((function(e,t){return e.zIndex-t.zIndex})),r=e.viewState;this.children_.length=0;for(var n=[],i=null,o=0,a=t.length;o<a;++o){var s=t[o];if(e.layerIndex=o,(0,l.j)(s,r)&&(s.sourceState==x.Z.READY||s.sourceState==x.Z.UNDEFINED)){var u=s.layer,c=u.render(e,i);c&&(c!==i&&(this.children_.push(c),i=c),"getDeclutter"in u&&n.push(u))}}for(var f=n.length-1;f>=0;--f)n[f].renderDeclutter(e);(0,E.hF)(this.element_,this.children_),this.dispatchRenderEvent(w.Z.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)}},{key:"forEachLayerAtPixel",value:function(e,t,r,n,i){for(var o=t.viewState,a=t.layerStatesArray,s=a.length-1;s>=0;--s){var u=a[s],c=u.layer;if(c.hasRenderer()&&(0,l.j)(u,o)&&i(c)){var f=c.getRenderer().getDataAtPixel(e,t,r);if(f){var h=n(c,f);if(h)return h}}}}}])&&R(t.prototype,r),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(g)},50875:function(e,t,r){"use strict";var n=r(6566),i=r(23333),o=r(5403),a=r(46583),s=r(99382);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(h,e);var t,r,o,u=f(h);function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(t=u.call(this)).boundHandleImageChange_=t.handleImageChange_.bind(p(t)),t.layer_=e,t.declutterExecutorGroup=null,t}return t=h,(r=[{key:"getFeatures",value:function(e){return(0,s.O3)()}},{key:"prepareFrame",value:function(e){return(0,s.O3)()}},{key:"renderFrame",value:function(e,t){return(0,s.O3)()}},{key:"loadedTileCallback",value:function(e,t,r){e[t]||(e[t]={}),e[t][r.tileCoord.toString()]=r}},{key:"createLoadedTileFinder",value:function(e,t,r){return function(n,i){var o=this.loadedTileCallback.bind(this,r,n);return e.forEachLoadedTile(t,n,i,o)}.bind(this)}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i){}},{key:"getDataAtPixel",value:function(e,t,r){return null}},{key:"getLayer",value:function(){return this.layer_}},{key:"handleFontsChanged",value:function(){}},{key:"handleImageChange_",value:function(e){e.target.getState()===i.Z.LOADED&&this.renderIfReadyAndVisible()}},{key:"loadImage",value:function(e){var t=e.getState();return t!=i.Z.LOADED&&t!=i.Z.ERROR&&e.addEventListener(n.Z.CHANGE,this.boundHandleImageChange_),t==i.Z.IDLE&&(e.load(),t=e.getState()),t==i.Z.LOADED}},{key:"renderIfReadyAndVisible",value:function(){var e=this.getLayer();e.getVisible()&&e.getSourceState()==a.Z.READY&&e.changed()}}])&&l(t.prototype,r),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.Z);t.Z=y},70470:function(e,t,r){"use strict";var n=r(52665),i=r(34642),o=r(38312),a=r(87187),s=r(32275),u=r(19329),l=r(86923),c=r(12810);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,n,f=d(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=f.call(this,e)).image_=null,t}return t=y,(r=[{key:"getImage",value:function(){return this.image_?this.image_.getImage():null}},{key:"prepareFrame",value:function(e){var t=e.layerStatesArray[e.layerIndex],r=e.pixelRatio,n=e.viewState,a=n.resolution,s=this.getLayer().getSource(),u=e.viewHints,f=e.extent;if(void 0!==t.extent&&(f=(0,l.Ed)(f,(0,c.dY)(t.extent,n.projection))),!u[i.Z.ANIMATING]&&!u[i.Z.INTERACTING]&&!(0,l.xb)(f))if(s){var h=n.projection;if(!o.j){var p=s.getProjection();p&&(h=p)}var d=s.getImage(f,a,r,h);d&&this.loadImage(d)&&(this.image_=d)}else this.image_=null;return!!this.image_}},{key:"renderFrame",value:function(e,t){var r=this.image_,n=r.getExtent(),i=r.getResolution(),o=r.getPixelRatio(),f=e.layerStatesArray[e.layerIndex],h=e.pixelRatio,p=e.viewState,d=p.center,y=p.resolution,v=e.size,m=h*i/(y*o),g=Math.round(v[0]*h),b=Math.round(v[1]*h),_=p.rotation;if(_){var w=Math.round(Math.sqrt(g*g+b*b));g=w,b=w}(0,u.qC)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/h,1/h,_,-g/2,-b/2),(0,u.nb)(this.inversePixelTransform,this.pixelTransform);var x=(0,u.BB)(this.pixelTransform);this.useContainer(t,x,f.opacity,this.getBackground(e));var k=this.context,O=k.canvas;O.width!=g||O.height!=b?(O.width=g,O.height=b):this.containerReused||k.clearRect(0,0,g,b);var S=!1,E=!0;if(f.extent){var T=(0,c.dY)(f.extent,p.projection);(S=(E=(0,l.kK)(T,e.extent))&&!(0,l.r4)(T,e.extent))&&this.clipUnrotated(k,e,T)}var R=r.getImage(),P=(0,u.qC)(this.tempTransform,g/2,b/2,m,m,0,o*(n[0]-d[0])/i,o*(d[1]-n[3])/i);this.renderedResolution=i*h/o;var C=R.width*P[0],M=R.height*P[3];if(this.getLayer().getSource().getInterpolate()||(0,s.f0)(k,a.$),this.preRender(k,e),E&&C>=.5&&M>=.5){var j,I=P[4],A=P[5],L=f.opacity;1!==L&&(j=k.globalAlpha,k.globalAlpha=L),k.drawImage(R,0,0,+R.width,+R.height,Math.round(I),Math.round(A),Math.round(C),Math.round(M)),1!==L&&(k.globalAlpha=j)}return this.postRender(k,e),S&&k.restore(),(0,s.f0)(k,a.s),x!==O.style.transform&&(O.style.transform=x),this.container}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);t.Z=m},52665:function(e,t,r){"use strict";var n=r(50875),i=r(98825),o=r(37051),a=r(19329),s=r(78699),u=r(86923),l=r(33716),c=r(17985);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,n,f=d(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=f.call(this,e)).container=null,t.renderedResolution,t.tempTransform=(0,a.Ue)(),t.pixelTransform=(0,a.Ue)(),t.inversePixelTransform=(0,a.Ue)(),t.context=null,t.containerReused=!1,t.pixelContext_=null,t}return t=y,(r=[{key:"getBackground",value:function(e){var t=this.getLayer().getBackground();return"function"==typeof t&&(t=t(e.viewState.resolution)),t||void 0}},{key:"useContainer",value:function(e,t,r,n){var i,o,a=this.getLayer().getClassName();if(e&&e.className===a&&""===e.style.opacity&&1===r&&(!n||e.style.backgroundColor&&(0,c.fS)((0,s._2)(e.style.backgroundColor),(0,s._2)(n)))){var u=e.firstElementChild;u instanceof HTMLCanvasElement&&(o=u.getContext("2d"))}if(o&&o.canvas.style.transform===t?(this.container=e,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(i=document.createElement("div")).className=a;var f=i.style;f.position="absolute",f.width="100%",f.height="100%",n&&(f.backgroundColor=n);var h=(o=(0,l.E4)()).canvas;i.appendChild(h),(f=h.style).position="absolute",f.left="0",f.transformOrigin="top left",this.container=i,this.context=o}}},{key:"clipUnrotated",value:function(e,t,r){var n=(0,u.rL)(r),i=(0,u.Xv)(r),o=(0,u.w$)(r),s=(0,u.hC)(r);(0,a.nn)(t.coordinateToPixelTransform,n),(0,a.nn)(t.coordinateToPixelTransform,i),(0,a.nn)(t.coordinateToPixelTransform,o),(0,a.nn)(t.coordinateToPixelTransform,s);var l=this.inversePixelTransform;(0,a.nn)(l,n),(0,a.nn)(l,i),(0,a.nn)(l,o),(0,a.nn)(l,s),e.save(),e.beginPath(),e.moveTo(Math.round(n[0]),Math.round(n[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.clip()}},{key:"dispatchRenderEvent_",value:function(e,t,r){var n=this.getLayer();if(n.hasListener(e)){var o=new i.Z(e,this.inversePixelTransform,r,t);n.dispatchEvent(o)}}},{key:"preRender",value:function(e,t){this.dispatchRenderEvent_(o.Z.PRERENDER,e,t)}},{key:"postRender",value:function(e,t){this.dispatchRenderEvent_(o.Z.POSTRENDER,e,t)}},{key:"getRenderTransform",value:function(e,t,r,n,i,o,s){var u=i/2,l=o/2,c=n/t,f=-c,h=-e[0]+s,p=-e[1];return(0,a.qC)(this.tempTransform,u,l,c,f,-r,h,p)}},{key:"getDataAtPixel",value:function(e,t,r){var n=(0,a.nn)(this.inversePixelTransform,e.slice()),i=this.context,o=this.getLayer().getExtent();if(o){var s=(0,a.nn)(t.pixelToCoordinateTransform,e.slice());if(!(0,u.b8)(o,s))return null}var l,c=Math.round(n[0]),f=Math.round(n[1]),h=this.pixelContext_;if(!h){var p=document.createElement("canvas");p.width=1,p.height=1,h=p.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);try{h.drawImage(i.canvas,c,f,1,1,0,0,1,1),l=h.getImageData(0,0,1,1).data}catch(e){return"SecurityError"===e.name?(this.pixelContext_=null,new Uint8Array):l}return 0===l[3]?null:l}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Z);t.Z=m},82173:function(e,t,r){"use strict";var n=r(52665),i=r(74233),o=r(80542),a=r(87187),s=r(19329),u=r(32275),l=r(86923),c=r(48736),f=r(12810),h=r(99382),p=r(17985);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=m(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(m,e);var t,r,n,d=b(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=d.call(this,e)).extentChanged=!0,t.renderedExtent_=null,t.renderedPixelRatio,t.renderedProjection=null,t.renderedRevision,t.renderedTiles=[],t.newTiles_=!1,t.tmpExtent=(0,l.lJ)(),t.tmpTileRange_=new i.Z(0,0,0,0),t}return t=m,(r=[{key:"isDrawableTile",value:function(e){var t=this.getLayer(),r=e.getState(),n=t.getUseInterimTilesOnError();return r==o.Z.LOADED||r==o.Z.EMPTY||r==o.Z.ERROR&&!n}},{key:"getTile",value:function(e,t,r,n){var i=n.pixelRatio,a=n.viewState.projection,s=this.getLayer(),u=s.getSource().getTile(e,t,r,i,a);return u.getState()==o.Z.ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):u.setState(o.Z.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u}},{key:"loadedTileCallback",value:function(e,t,r){return!!this.isDrawableTile(r)&&v(w(m.prototype),"loadedTileCallback",this).call(this,e,t,r)}},{key:"prepareFrame",value:function(e){return!!this.getLayer().getSource()}},{key:"renderFrame",value:function(e,t){var r=e.layerStatesArray[e.layerIndex],n=e.viewState,i=n.projection,d=n.resolution,y=n.center,v=n.rotation,m=e.pixelRatio,g=this.getLayer(),b=g.getSource(),_=b.getRevision(),w=b.getTileGridForProjection(i),x=w.getZForResolution(d,b.zDirection),k=w.getResolution(x),O=e.extent,S=r.extent&&(0,f.dY)(r.extent,i);S&&(O=(0,l.Ed)(O,(0,f.dY)(r.extent,i)));var E=b.getTilePixelRatio(m),T=Math.round(e.size[0]*E),R=Math.round(e.size[1]*E);if(v){var P=Math.round(Math.sqrt(T*T+R*R));T=P,R=P}var C=k*T/2/E,M=k*R/2/E,j=[y[0]-C,y[1]-M,y[0]+C,y[1]+M],I=w.getTileRangeForExtentAndZ(O,x),A={};A[x]={};var L=this.createLoadedTileFinder(b,i,A),D=this.tmpExtent,Z=this.tmpTileRange_;this.newTiles_=!1;for(var F=I.minX;F<=I.maxX;++F)for(var N=I.minY;N<=I.maxY;++N){var G=this.getTile(x,F,N,e);if(this.isDrawableTile(G)){var B=(0,h.sq)(this);if(G.getState()==o.Z.LOADED){A[x][G.tileCoord.toString()]=G;var z=G.inTransition(B);this.newTiles_||!z&&-1!==this.renderedTiles.indexOf(G)||(this.newTiles_=!0)}if(1===G.getAlpha(B,e.time))continue}var U=w.getTileCoordChildTileRange(G.tileCoord,Z,D),q=!1;U&&(q=L(x+1,U)),q||w.forEachTileCoordParentTileRange(G.tileCoord,L,Z,D)}var V=k/d;(0,s.qC)(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/E,1/E,v,-T/2,-R/2);var X=(0,s.BB)(this.pixelTransform);this.useContainer(t,X,r.opacity,this.getBackground(e));var Y=this.context,W=Y.canvas;(0,s.nb)(this.inversePixelTransform,this.pixelTransform),(0,s.qC)(this.tempTransform,T/2,R/2,V,V,0,-T/2,-R/2),W.width!=T||W.height!=R?(W.width=T,W.height=R):this.containerReused||Y.clearRect(0,0,T,R),S&&this.clipUnrotated(Y,e,S),b.getInterpolate()||(0,u.f0)(Y,a.$),this.preRender(Y,e),this.renderedTiles.length=0;var K,H,$,J=Object.keys(A).map(Number);J.sort(p.kK),1!==r.opacity||this.containerReused&&!b.getOpaque(e.viewState.projection)?(K=[],H=[]):J=J.reverse();for(var Q=J.length-1;Q>=0;--Q){var ee=J[Q],te=b.getTilePixelSize(ee,m,i),re=w.getResolution(ee)/k,ne=te[0]*re*V,ie=te[1]*re*V,oe=w.getTileCoordForCoordAndZ((0,l.rL)(j),ee),ae=w.getTileCoordExtent(oe),se=(0,s.nn)(this.tempTransform,[E*(ae[0]-j[0])/k,E*(j[3]-ae[3])/k]),ue=E*b.getGutterForProjection(i),le=A[ee];for(var ce in le){var fe=le[ce],he=fe.tileCoord,pe=oe[1]-he[1],de=Math.round(se[0]-(pe-1)*ne),ye=oe[2]-he[2],ve=Math.round(se[1]-(ye-1)*ie),me=Math.round(se[0]-pe*ne),ge=Math.round(se[1]-ye*ie),be=de-me,_e=ve-ge,we=x===ee,xe=we&&1!==fe.getAlpha((0,h.sq)(this),e.time);if(!xe)if(K){Y.save(),$=[me,ge,me+be,ge,me+be,ge+_e,me,ge+_e];for(var ke=0,Oe=K.length;ke<Oe;++ke)if(x!==ee&&ee<H[ke]){var Se=K[ke];Y.beginPath(),Y.moveTo($[0],$[1]),Y.lineTo($[2],$[3]),Y.lineTo($[4],$[5]),Y.lineTo($[6],$[7]),Y.moveTo(Se[6],Se[7]),Y.lineTo(Se[4],Se[5]),Y.lineTo(Se[2],Se[3]),Y.lineTo(Se[0],Se[1]),Y.clip()}K.push($),H.push(ee)}else Y.clearRect(me,ge,be,_e);this.drawTileImage(fe,e,me,ge,be,_e,ue,we),K&&!xe?(Y.restore(),this.renderedTiles.unshift(fe)):this.renderedTiles.push(fe),this.updateUsedTiles(e.usedTiles,b,fe)}}this.renderedRevision=_,this.renderedResolution=k,this.extentChanged=!this.renderedExtent_||!(0,l.fS)(this.renderedExtent_,j),this.renderedExtent_=j,this.renderedPixelRatio=m,this.renderedProjection=i,this.manageTilePyramid(e,b,w,m,i,O,x,g.getPreload()),this.scheduleExpireCache(e,b),this.postRender(Y,e),r.extent&&Y.restore(),(0,u.f0)(Y,a.s),X!==W.style.transform&&(W.style.transform=X);var Ee=(0,c.Xy)(r.opacity),Te=this.container;return Ee!==Te.style.opacity&&(Te.style.opacity=Ee),this.container}},{key:"drawTileImage",value:function(e,t,r,n,i,o,a,s){var u=this.getTileImage(e);if(u){var l=(0,h.sq)(this),c=s?e.getAlpha(l,t.time):1,f=c!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=c),this.context.drawImage(u,a,a,u.width-2*a,u.height-2*a,r,n,i,o),f&&this.context.restore(),1!==c?t.animate=!0:s&&e.endTransition(l)}}},{key:"getImage",value:function(){var e=this.context;return e?e.canvas:null}},{key:"getTileImage",value:function(e){return e.getImage()}},{key:"scheduleExpireCache",value:function(e,t){if(t.canExpireCache()){var r=function(e,t,r){var n=(0,h.sq)(e);n in r.usedTiles&&e.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,t);e.postRenderFunctions.push(r)}}},{key:"updateUsedTiles",value:function(e,t,r){var n=(0,h.sq)(t);n in e||(e[n]={}),e[n][r.getKey()]=!0}},{key:"manageTilePyramid",value:function(e,t,r,n,i,a,s,u,l){var c=(0,h.sq)(t);c in e.wantedTiles||(e.wantedTiles[c]={});var f,p,d,y,v,m,g=e.wantedTiles[c],b=e.tileQueue,_=0;for(m=r.getMinZoom();m<=s;++m)for(p=r.getTileRangeForExtentAndZ(a,m,p),d=r.getResolution(m),y=p.minX;y<=p.maxX;++y)for(v=p.minY;v<=p.maxY;++v)s-m<=u?(++_,(f=t.getTile(m,y,v,n,i)).getState()==o.Z.IDLE&&(g[f.getKey()]=!0,b.isKeyQueued(f.getKey())||b.enqueue([f,c,r.getTileCoordCenter(f.tileCoord),d])),void 0!==l&&l(f)):t.useTile(m,y,v,i);t.updateCacheSize(_,i)}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(n.Z);x.prototype.getLayer,t.Z=x},99214:function(e,t,r){"use strict";var n=r(44620),i=r(52665),o=r(25618),a=r(34642),s=r(56086),u=r(19329),l=r(86923),c=r(48736),f=r(41250),h=r(17985),p=r(12810),d=r(99382),y=r(92932);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(_,e);var t,r,i,v=b(_);function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(t=v.call(this,e)).boundHandleStyleImageChange_=t.handleStyleImageChange_.bind(w(t)),t.animatingOrInteracting_,t.dirty_=!1,t.hitDetectionImageData_=null,t.renderedFeatures_=null,t.renderedRevision_=-1,t.renderedResolution_=NaN,t.renderedExtent_=(0,l.lJ)(),t.wrappedRenderedExtent_=(0,l.lJ)(),t.renderedRotation_,t.renderedCenter_=null,t.renderedProjection_=null,t.renderedRenderOrder_=null,t.replayGroup_=null,t.replayGroupChanged=!0,t.declutterExecutorGroup=null,t.clipping=!0,t}return t=_,(r=[{key:"renderWorlds",value:function(e,t,r){var n=t.extent,i=t.viewState,o=i.center,s=i.resolution,u=i.projection,c=i.rotation,f=u.getExtent(),h=this.getLayer().getSource(),p=t.pixelRatio,d=t.viewHints,y=!(d[a.Z.ANIMATING]||d[a.Z.INTERACTING]),v=this.context,m=Math.round(t.size[0]*p),g=Math.round(t.size[1]*p),b=h.getWrapX()&&u.canWrapX(),_=b?(0,l.dz)(f):null,w=b?Math.ceil((n[2]-f[2])/_)+1:1,x=b?Math.floor((n[0]-f[0])/_):0;do{var k=this.getRenderTransform(o,s,c,p,m,g,x*_);e.execute(v,1,k,c,y,void 0,r)}while(++x<w)}},{key:"renderDeclutter",value:function(e){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,e,e.declutterTree)}},{key:"renderFrame",value:function(e,t){var r=e.pixelRatio,n=e.layerStatesArray[e.layerIndex];(0,u.n3)(this.pixelTransform,1/r,1/r),(0,u.nb)(this.inversePixelTransform,this.pixelTransform);var i=(0,u.BB)(this.pixelTransform);this.useContainer(t,i,n.opacity,this.getBackground(e));var o=this.context,a=o.canvas,s=this.replayGroup_,f=this.declutterExecutorGroup;if((!s||s.isEmpty())&&(!f||f.isEmpty()))return null;var h=Math.round(e.size[0]*r),d=Math.round(e.size[1]*r);a.width!=h||a.height!=d?(a.width=h,a.height=d,a.style.transform!==i&&(a.style.transform=i)):this.containerReused||o.clearRect(0,0,h,d),this.preRender(o,e);var y=e.viewState,v=y.projection,m=!1,g=!0;if(n.extent&&this.clipping){var b=(0,p.dY)(n.extent,v);(m=(g=(0,l.kK)(b,e.extent))&&!(0,l.r4)(b,e.extent))&&this.clipUnrotated(o,e,b)}g&&this.renderWorlds(s,e),m&&o.restore(),this.postRender(o,e);var _=(0,c.Xy)(n.opacity),w=this.container;return _!==w.style.opacity&&(w.style.opacity=_),this.renderedRotation_!==y.rotation&&(this.renderedRotation_=y.rotation,this.hitDetectionImageData_=null),this.container}},{key:"getFeatures",value:function(e){return new Promise(function(t){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var r=[this.context.canvas.width,this.context.canvas.height];(0,u.nn)(this.pixelTransform,r);var n=this.renderedCenter_,i=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,c=this.wrappedRenderedExtent_,f=this.getLayer(),h=[],p=r[0]*s.UN,d=r[1]*s.UN;h.push(this.getRenderTransform(n,i,o,s.UN,p,d,0).slice());var y=f.getSource(),v=a.getExtent();if(y.getWrapX()&&a.canWrapX()&&!(0,l.r4)(v,c)){for(var m,g=c[0],b=(0,l.dz)(v),_=0;g<v[0];)m=b*--_,h.push(this.getRenderTransform(n,i,o,s.UN,p,d,m).slice()),g+=b;for(_=0,g=c[2];g>v[2];)m=b*++_,h.push(this.getRenderTransform(n,i,o,s.UN,p,d,m).slice()),g-=b}this.hitDetectionImageData_=(0,s.TU)(r,h,this.renderedFeatures_,f.getStyleFunction(),c,i,o)}t((0,s.ix)(e,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i){var o=this;if(this.replayGroup_){var a,s=t.viewState.resolution,u=t.viewState.rotation,l=this.getLayer(),c={},f=function(e,t,r){var o=(0,d.sq)(e),a=c[o];if(a){if(!0!==a&&r<a.distanceSq){if(0===r)return c[o]=!0,i.splice(i.lastIndexOf(a),1),n(e,l,t);a.geometry=t,a.distanceSq=r}}else{if(0===r)return c[o]=!0,n(e,l,t);i.push(c[o]={feature:e,layer:l,geometry:t,distanceSq:r,callback:n})}},h=[this.replayGroup_];return this.declutterExecutorGroup&&h.push(this.declutterExecutorGroup),h.some((function(n){return a=n.forEachFeatureAtCoordinate(e,s,u,r,f,n===o.declutterExecutorGroup&&t.declutterTree?t.declutterTree.all().map((function(e){return e.value})):null)})),a}}},{key:"handleFontsChanged",value:function(){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()}},{key:"handleStyleImageChange_",value:function(e){this.renderIfReadyAndVisible()}},{key:"prepareFrame",value:function(e){var t=this.getLayer(),r=t.getSource();if(!r)return!1;var i=e.viewHints[a.Z.ANIMATING],s=e.viewHints[a.Z.INTERACTING],u=t.getUpdateWhileAnimating(),c=t.getUpdateWhileInteracting();if(!this.dirty_&&!u&&i||!c&&s)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var d=e.extent,v=e.viewState,m=v.projection,g=v.resolution,b=e.pixelRatio,_=t.getRevision(),w=t.getRenderBuffer(),x=t.getRenderOrder();void 0===x&&(x=f.eR);var k=v.center.slice(),O=(0,l.f3)(d,w*g),S=O.slice(),E=[O.slice()],T=m.getExtent();if(r.getWrapX()&&m.canWrapX()&&!(0,l.r4)(T,e.extent)){var R=(0,l.dz)(T),P=Math.max((0,l.dz)(O)/2,R);O[0]=T[0]-P,O[2]=T[2]+P,(0,y.Cf)(k,m);var C=(0,l.Cf)(E[0],m);C[0]<T[0]&&C[2]<T[2]?E.push([C[0]+R,C[1],C[2]+R,C[3]]):C[0]>T[0]&&C[2]>T[2]&&E.push([C[0]-R,C[1],C[2]-R,C[3]])}if(!this.dirty_&&this.renderedResolution_==g&&this.renderedRevision_==_&&this.renderedRenderOrder_==x&&(0,l.r4)(this.wrappedRenderedExtent_,O))return(0,h.fS)(this.renderedExtent_,S)||(this.hitDetectionImageData_=null,this.renderedExtent_=S),this.renderedCenter_=k,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var M,j=new n.Z((0,f.Qz)(g,b),O,g,b);this.getLayer().getDeclutter()&&(M=new n.Z((0,f.Qz)(g,b),O,g,b));var I,A=(0,p.Cs)();if(A){for(var L=0,D=E.length;L<D;++L){var Z=E[L],F=(0,p.Fj)(Z,m);r.loadFeatures(F,(0,p.on)(g,m),A)}I=(0,p.WO)(A,m)}else for(var N=0,G=E.length;N<G;++N)r.loadFeatures(E[N],g,m);var B=(0,f.se)(g,b),z=function(e){var r,n=e.getStyleFunction()||t.getStyleFunction();if(n&&(r=n(e,g)),r){var i=this.renderFeature(e,B,r,j,I,M);this.dirty_=this.dirty_||i}}.bind(this),U=(0,p.Fj)(O,m),q=r.getFeaturesInExtent(U);x&&q.sort(x);for(var V=0,X=q.length;V<X;++V)z(q[V]);this.renderedFeatures_=q;var Y=j.finish(),W=new o.Z(O,g,b,r.getOverlaps(),Y,t.getRenderBuffer());return M&&(this.declutterExecutorGroup=new o.Z(O,g,b,r.getOverlaps(),M.finish(),t.getRenderBuffer())),this.renderedResolution_=g,this.renderedRevision_=_,this.renderedRenderOrder_=x,this.renderedExtent_=S,this.wrappedRenderedExtent_=O,this.renderedCenter_=k,this.renderedProjection_=m,this.replayGroup_=W,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}},{key:"renderFeature",value:function(e,t,r,n,i,o){if(!r)return!1;var a=!1;if(Array.isArray(r))for(var s=0,u=r.length;s<u;++s)a=(0,f.Pn)(n,e,r[s],t,this.boundHandleStyleImageChange_,i,o)||a;else a=(0,f.Pn)(n,e,r,t,this.boundHandleStyleImageChange_,i,o);return a}}])&&m(t.prototype,r),i&&m(t,i),Object.defineProperty(t,"prototype",{writable:!1}),_}(i.Z);t.Z=k},87187:function(e,t,r){"use strict";r.d(t,{$:function(){return n},s:function(){return i}});var n={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},i={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0}},41250:function(e,t,r){"use strict";r.d(t,{eR:function(){return u},se:function(){return l},Qz:function(){return c},Pn:function(){return f}});var n=r(42238),i=r(10392),o=r(23333),a=r(99382),s={Point:function(e,t,r,i,a){var s,u=r.getImage(),l=r.getText();a&&(e=a,s=u&&l&&l.getText()?{}:void 0);if(u){if(u.getImageState()!=o.Z.LOADED)return;var c=e.getBuilder(r.getZIndex(),n.Z.IMAGE);c.setImageStyle(u,s),c.drawPoint(t,i)}if(l&&l.getText()){var f=e.getBuilder(r.getZIndex(),n.Z.TEXT);f.setTextStyle(l,s),f.drawText(t,i)}},LineString:function(e,t,r,i,o){var a=r.getStroke();if(a){var s=e.getBuilder(r.getZIndex(),n.Z.LINE_STRING);s.setFillStrokeStyle(null,a),s.drawLineString(t,i)}var u=r.getText();if(u&&u.getText()){var l=(o||e).getBuilder(r.getZIndex(),n.Z.TEXT);l.setTextStyle(u),l.drawText(t,i)}},Polygon:function(e,t,r,i,o){var a=r.getFill(),s=r.getStroke();if(a||s){var u=e.getBuilder(r.getZIndex(),n.Z.POLYGON);u.setFillStrokeStyle(a,s),u.drawPolygon(t,i)}var l=r.getText();if(l&&l.getText()){var c=(o||e).getBuilder(r.getZIndex(),n.Z.TEXT);c.setTextStyle(l),c.drawText(t,i)}},MultiPoint:function(e,t,r,i,a){var s,u=r.getImage(),l=r.getText();a&&(e=a,s=u&&l&&l.getText()?{}:void 0);if(u){if(u.getImageState()!=o.Z.LOADED)return;var c=e.getBuilder(r.getZIndex(),n.Z.IMAGE);c.setImageStyle(u,s),c.drawMultiPoint(t,i)}if(l&&l.getText()){var f=(a||e).getBuilder(r.getZIndex(),n.Z.TEXT);f.setTextStyle(l,s),f.drawText(t,i)}},MultiLineString:function(e,t,r,i,o){var a=r.getStroke();if(a){var s=e.getBuilder(r.getZIndex(),n.Z.LINE_STRING);s.setFillStrokeStyle(null,a),s.drawMultiLineString(t,i)}var u=r.getText();if(u&&u.getText()){var l=(o||e).getBuilder(r.getZIndex(),n.Z.TEXT);l.setTextStyle(u),l.drawText(t,i)}},MultiPolygon:function(e,t,r,i,o){var a=r.getFill(),s=r.getStroke();if(s||a){var u=e.getBuilder(r.getZIndex(),n.Z.POLYGON);u.setFillStrokeStyle(a,s),u.drawMultiPolygon(t,i)}var l=r.getText();if(l&&l.getText()){var c=(o||e).getBuilder(r.getZIndex(),n.Z.TEXT);c.setTextStyle(l),c.drawText(t,i)}},GeometryCollection:function(e,t,r,n,i){var o,a,u=t.getGeometriesArray();for(o=0,a=u.length;o<a;++o){(0,s[u[o].getType()])(e,u[o],r,n,i)}},Circle:function(e,t,r,i,o){var a=r.getFill(),s=r.getStroke();if(a||s){var u=e.getBuilder(r.getZIndex(),n.Z.CIRCLE);u.setFillStrokeStyle(a,s),u.drawCircle(t,i)}var l=r.getText();if(l&&l.getText()){var c=(o||e).getBuilder(r.getZIndex(),n.Z.TEXT);c.setTextStyle(l),c.drawText(t,i)}}};function u(e,t){return parseInt((0,a.sq)(e),10)-parseInt((0,a.sq)(t),10)}function l(e,t){var r=c(e,t);return r*r}function c(e,t){return.5*e/t}function f(e,t,r,n,i,a,u){var l=!1,c=r.getImage();if(c){var f=c.getImageState();f==o.Z.LOADED||f==o.Z.ERROR?c.unlistenImageChange(i):(f==o.Z.IDLE&&c.load(),f=c.getImageState(),c.listenImageChange(i),l=!0)}return function(e,t,r,n,i,o){var a=r.getGeometryFunction()(t);if(!a)return;var u=a.simplifyTransformed(n,i);if(r.getRenderer())h(e,u,r,t);else{(0,s[u.getType()])(e,u,r,t,o)}}(e,t,r,n,a,u),l}function h(e,t,r,o){if(t.getType()!=i.Z.GEOMETRY_COLLECTION)e.getBuilder(r.getZIndex(),n.Z.DEFAULT).drawCustom(t,o,r.getRenderer(),r.getHitDetectionRenderer());else for(var a=t.getGeometries(),s=0,u=a.length;s<u;++s)h(e,a[s],r,o)}},19754:function(e,t,r){"use strict";r.d(t,{S$:function(){return b},O$:function(){return w},il:function(){return x}});var n=r(38400),i=r(50875),o=r(98825),a=r(37051),s=r(16910),u=r(19329),l=r(86923);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=p(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b={GENERATE_BUFFERS:"GENERATE_BUFFERS"},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(p,e);var t,r,i,c=y(p);function p(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var i=t||{};return(r=c.call(this,e)).inversePixelTransform_=(0,u.Ue)(),r.pixelContext_=null,r.postProcesses_=i.postProcesses,r.uniforms_=i.uniforms,r.helper,e.addChangeListener(n.Z.MAP,r.removeHelper_.bind(m(r))),r.dispatchPreComposeEvent=r.dispatchPreComposeEvent.bind(m(r)),r.dispatchPostComposeEvent=r.dispatchPostComposeEvent.bind(m(r)),r}return t=p,(r=[{key:"dispatchPreComposeEvent",value:function(e,t){var r=this.getLayer();if(r.hasListener(a.Z.PRECOMPOSE)){var n=new o.Z(a.Z.PRECOMPOSE,void 0,t,e);r.dispatchEvent(n)}}},{key:"dispatchPostComposeEvent",value:function(e,t){var r=this.getLayer();if(r.hasListener(a.Z.POSTCOMPOSE)){var n=new o.Z(a.Z.POSTCOMPOSE,void 0,t,e);r.dispatchEvent(n)}}},{key:"reset",value:function(e){this.uniforms_=e.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)}},{key:"removeHelper_",value:function(){this.helper&&(this.helper.dispose(),delete this.helper)}},{key:"prepareFrame",value:function(e){if(this.getLayer().getSource()){for(var t,r=!0,n=-1,i=0,o=e.layerStatesArray.length;i<o;i++){var a=e.layerStatesArray[i].layer,u=a.getRenderer();if(u instanceof p){var l=a.getClassName();if((r||l!==t)&&(n+=1,r=!1),t=l,u===this)break}else r=!0}var c="map/"+e.mapId+"/group/"+n;this.helper&&this.helper.canvasCacheKeyMatches(c)||(this.helper&&this.helper.dispose(),this.helper=new s.ZP({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:c}),t&&(this.helper.getCanvas().className=t),this.afterHelperCreated())}return this.prepareFrameInternal(e)}},{key:"afterHelperCreated",value:function(){}},{key:"prepareFrameInternal",value:function(e){return!0}},{key:"disposeInternal",value:function(){this.removeHelper_(),h(g(p.prototype),"disposeInternal",this).call(this)}},{key:"dispatchRenderEvent_",value:function(e,t,r){var n=this.getLayer();if(n.hasListener(e)){(0,u.qC)(this.inversePixelTransform_,0,0,r.pixelRatio,-r.pixelRatio,0,0,-r.size[1]);var i=new o.Z(e,this.inversePixelTransform_,r,t);n.dispatchEvent(i)}}},{key:"preRender",value:function(e,t){this.dispatchRenderEvent_(a.Z.PRERENDER,e,t)}},{key:"postRender",value:function(e,t){this.dispatchRenderEvent_(a.Z.POSTRENDER,e,t)}},{key:"getDataAtPixel",value:function(e,t,r){var n=(0,u.nn)([t.pixelRatio,0,0,t.pixelRatio,0,0],e.slice()),i=this.helper.getGL();if(!i)return null;var o=this.getLayer().getExtent();if(o){var a=(0,u.nn)(t.pixelToCoordinateTransform,e.slice());if(!(0,l.b8)(o,a))return null}var s=i.getContextAttributes();if(!s||!s.preserveDrawingBuffer)return new Uint8Array;var c,f=Math.round(n[0]),h=Math.round(n[1]),p=this.pixelContext_;if(!p){var d=document.createElement("canvas");d.width=1,d.height=1,p=d.getContext("2d"),this.pixelContext_=p}p.clearRect(0,0,1,1);try{p.drawImage(i.canvas,f,h,1,1,0,0,1,1),c=p.getImageData(0,0,1,1).data}catch(e){return c}return 0===c[3]?null:c}}])&&f(t.prototype,r),i&&f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.Z);function w(e,t){var r=t||[],n=256,i=255;return r[0]=Math.floor(e/n/n/n)/i,r[1]=Math.floor(e/n/n)%n/i,r[2]=Math.floor(e/n)%n/i,r[3]=e%n/i,r}function x(e){var t=0,r=256,n=255;return t+=Math.round(e[0]*r*r*r*n),t+=Math.round(e[1]*r*r*n),t+=Math.round(e[2]*r*n),t+=Math.round(e[3]*n)}t.ZP=_},54240:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(96421),i=r(10392),o=r(48201),a=r(34642),s=r(94067),u=r(19754),l=r(17985);function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=new Uint8Array(4),h=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.helper_=t;var n=t.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=r||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}var t,r,n;return t=e,(r=[{key:"setSize",value:function(e){(0,l.fS)(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())}},{key:"getSize",value:function(){return this.size_}},{key:"clearCachedData",value:function(){this.dataCacheDirty_=!0}},{key:"readAll",value:function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_}},{key:"readPixel",value:function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return f[0]=0,f[1]=0,f[2]=0,f[3]=0,f;this.readAll();var r=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return f[0]=this.data_[4*r],f[1]=this.data_[4*r+1],f[2]=this.data_[4*r+2],f[3]=this.data_[4*r+3],f}},{key:"getTexture",value:function(){return this.texture_}},{key:"getFramebuffer",value:function(){return this.framebuffer_}},{key:"updateSize_",value:function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),p=r(27868),d=r(16910),y=r(19329),v=r(90776),m=r(86923);var g=r(99382),b=r(12016);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=k(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(f,e);var t,r,l,c=S(f);function f(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var n=t.uniforms||{},i=(0,y.Ue)();n[d.ZC.PROJECTION_MATRIX]=i,(r=c.call(this,e,{uniforms:n,postProcesses:t.postProcesses})).sourceRevision_=-1,r.verticesBuffer_=new s.ZP(p.qO,p.kd),r.hitVerticesBuffer_=new s.ZP(p.qO,p.kd),r.indicesBuffer_=new s.ZP(p.cX,p.kd),r.vertexShader_=t.vertexShader,r.fragmentShader_=t.fragmentShader,r.program_,r.hitDetectionEnabled_=!(!t.hitFragmentShader||!t.hitVertexShader),r.hitVertexShader_=t.hitVertexShader,r.hitFragmentShader_=t.hitFragmentShader,r.hitProgram_;var a=t.attributes?t.attributes.map((function(e){return{name:"a_"+e.name,size:1,type:d.GC.FLOAT}})):[];r.attributes=[{name:"a_position",size:2,type:d.GC.FLOAT},{name:"a_index",size:1,type:d.GC.FLOAT}].concat(a),r.hitDetectionAttributes=[{name:"a_position",size:2,type:d.GC.FLOAT},{name:"a_index",size:1,type:d.GC.FLOAT},{name:"a_hitColor",size:4,type:d.GC.FLOAT},{name:"a_featureUid",size:1,type:d.GC.FLOAT}].concat(a),r.customAttributes=t.attributes?t.attributes:[],r.previousExtent_=(0,m.lJ)(),r.currentTransform_=i,r.renderTransform_=(0,y.Ue)(),r.invertRenderTransform_=(0,y.Ue)(),r.renderInstructions_=new Float32Array(0),r.hitRenderInstructions_=new Float32Array(0),r.hitRenderTarget_,r.worker_=function(){var e='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r<o;++r){var i=arguments[r];if(null!=i)for(var f in i)i.hasOwnProperty(f)&&(t[f]=i[f])}return t},n="GENERATE_BUFFERS",t=[],r={vertexPosition:0,indexPosition:0};function o(e,n,t,r,o){e[n+0]=t,e[n+1]=r,e[n+2]=o}function i(e,n,i,f,s,u){var a=3+s,l=e[n+0],v=e[n+1],c=t;c.length=s;for(var g=0;g<c.length;g++)c[g]=e[n+2+g];var b=u?u.vertexPosition:0,h=u?u.indexPosition:0,d=b/a;return o(i,b,l,v,0),c.length&&i.set(c,b+3),o(i,b+=a,l,v,1),c.length&&i.set(c,b+3),o(i,b+=a,l,v,2),c.length&&i.set(c,b+3),o(i,b+=a,l,v,3),c.length&&i.set(c,b+3),b+=a,f[h++]=d,f[h++]=d+1,f[h++]=d+3,f[h++]=d+1,f[h++]=d+2,f[h++]=d+3,r.vertexPosition=b,r.indexPosition=h,r}var f=self;f.onmessage=function(t){var r=t.data;if(r.type===n){for(var o=r.customAttributesCount,s=2+o,u=new Float32Array(r.renderInstructions),a=u.length/s,l=4*a*(o+3),v=new Uint32Array(6*a),c=new Float32Array(l),g=null,b=0;b<u.length;b+=s)g=i(u,b,c,v,o,g);var h=e({vertexBuffer:c.buffer,indexBuffer:v.buffer,renderInstructions:u.buffer},r);f.postMessage(h,[c.buffer,v.buffer,u.buffer])}};';return new Worker("undefined"==typeof Blob?"data:application/javascript;base64,"+Buffer.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))}(),r.worker_.addEventListener("message",function(e){var t=e.data;if(t.type===u.S$.GENERATE_BUFFERS){var r=t.projectionTransform;t.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(t.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(t.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=r,(0,y.nb)(this.invertRenderTransform_,this.renderTransform_),t.hitDetection?this.hitRenderInstructions_=new Float32Array(e.data.renderInstructions):this.renderInstructions_=new Float32Array(e.data.renderInstructions),this.getLayer().changed()}}.bind(T(r))),r.featureCache_={},r.featureCount_=0;var l=r.getLayer().getSource();return r.sourceListenKeys_=[(0,b.oL)(l,o.Z.ADDFEATURE,r.handleSourceFeatureAdded_,T(r)),(0,b.oL)(l,o.Z.CHANGEFEATURE,r.handleSourceFeatureChanged_,T(r)),(0,b.oL)(l,o.Z.REMOVEFEATURE,r.handleSourceFeatureDelete_,T(r)),(0,b.oL)(l,o.Z.CLEAR,r.handleSourceFeatureClear_,T(r))],l.forEachFeature(function(e){this.featureCache_[(0,g.sq)(e)]={feature:e,properties:e.getProperties(),geometry:e.getGeometry()},this.featureCount_++}.bind(T(r))),r}return t=f,(r=[{key:"afterHelperCreated",value:function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new h(this.helper))}},{key:"handleSourceFeatureAdded_",value:function(e){var t=e.feature;this.featureCache_[(0,g.sq)(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()},this.featureCount_++}},{key:"handleSourceFeatureChanged_",value:function(e){var t=e.feature;this.featureCache_[(0,g.sq)(t)]={feature:t,properties:t.getProperties(),geometry:t.getGeometry()}}},{key:"handleSourceFeatureDelete_",value:function(e){var t=e.feature;delete this.featureCache_[(0,g.sq)(t)],this.featureCount_--}},{key:"handleSourceFeatureClear_",value:function(){this.featureCache_={},this.featureCount_=0}},{key:"renderFrame",value:function(e){var t=this.helper.getGL();this.preRender(t,e);var r=this.indicesBuffer_.getSize();this.helper.drawElements(0,r),this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var n=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(e),this.hitRenderTarget_.clearCachedData()),this.postRender(t,e),n}},{key:"prepareFrameInternal",value:function(e){var t=this.getLayer(),r=t.getSource(),i=e.viewState,o=!e.viewHints[a.Z.ANIMATING]&&!e.viewHints[a.Z.INTERACTING],s=!(0,m.fS)(this.previousExtent_,e.extent),u=this.sourceRevision_<r.getRevision();if(u&&(this.sourceRevision_=r.getRevision()),o&&(s||u)){var l=i.projection,c=i.resolution,f=t instanceof n.Z?t.getRenderBuffer():0,h=(0,m.f3)(e.extent,f*c);r.loadFeatures(h,c,l),this.rebuildBuffers_(e),this.previousExtent_=e.extent.slice()}return this.helper.makeProjectionTransform(e,this.currentTransform_),(0,y.Jp)(this.currentTransform_,this.invertRenderTransform_),this.helper.useProgram(this.program_),this.helper.prepareDraw(e),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0}},{key:"rebuildBuffers_",value:function(e){var t=(0,y.Ue)();this.helper.makeProjectionTransform(e,t);var r,n,o=(2+this.customAttributes.length)*this.featureCount_;if(this.renderInstructions_&&this.renderInstructions_.length===o||(this.renderInstructions_=new Float32Array(o)),this.hitDetectionEnabled_){var a=(7+this.customAttributes.length)*this.featureCount_;this.hitRenderInstructions_&&this.hitRenderInstructions_.length===a||(this.hitRenderInstructions_=new Float32Array(a))}var s,l=[],c=[],f=0,h=0;for(var p in this.featureCache_)if((n=(r=this.featureCache_[p]).geometry)&&n.getType()===i.Z.POINT){l[0]=n.getFlatCoordinates()[0],l[1]=n.getFlatCoordinates()[1],(0,y.nn)(t,l),s=(0,u.O$)(h+6,c),this.renderInstructions_[f++]=l[0],this.renderInstructions_[f++]=l[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=l[0],this.hitRenderInstructions_[h++]=l[1],this.hitRenderInstructions_[h++]=s[0],this.hitRenderInstructions_[h++]=s[1],this.hitRenderInstructions_[h++]=s[2],this.hitRenderInstructions_[h++]=s[3],this.hitRenderInstructions_[h++]=Number(p));for(var d=void 0,v=0;v<this.customAttributes.length;v++)d=this.customAttributes[v].callback(r.feature,r.properties),this.renderInstructions_[f++]=d,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[h++]=d)}var m={type:u.S$.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(m.projectionTransform=t,this.worker_.postMessage(m,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:u.S$.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g.projectionTransform=t,g.hitDetection=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}}},{key:"forEachFeatureAtCoordinate",value:function(e,t,r,n,i){if((0,v.h)(this.hitDetectionEnabled_,66),this.hitRenderInstructions_){var o=(0,y.nn)(t.coordinateToPixelTransform,e.slice()),a=this.hitRenderTarget_.readPixel(o[0]/2,o[1]/2),s=[a[0]/255,a[1]/255,a[2]/255,a[3]/255],l=(0,u.il)(s),c=this.hitRenderInstructions_[l],f=Math.floor(c).toString(),h=this.getLayer().getSource().getFeatureByUid(f);return h?n(h,this.getLayer(),null):void 0}}},{key:"renderHitDetection",value:function(e){if(this.hitVerticesBuffer_.getSize()){this.hitRenderTarget_.setSize([Math.floor(e.size[0]/2),Math.floor(e.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(e,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);var t=this.indicesBuffer_.getSize();this.helper.drawElements(0,t)}}},{key:"disposeInternal",value:function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach((function(e){(0,b.bN)(e)})),this.sourceListenKeys_=null,x(R(f.prototype),"disposeInternal",this).call(this)}}])&&w(t.prototype,r),l&&w(t,l),Object.defineProperty(t,"prototype",{writable:!1}),f}(u.ZP)},94233:function(e,t,r){"use strict";r.d(t,{zj:function(){return z},XE:function(){return B},ZP:function(){return K}});var n=r(1870),i=r(46583),o=r(74233),a=r(80542),s=r(44090),u=r(6566),l=r(14652),c=r(1368),f=r(94067),h=r(27868),p=r(7877);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t,r){var n=r?e.LINEAR:e.NEAREST;e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,n)}function x(e,t,r,n,i,o){var a=e.getGL();w(a,t,o);var s,u,l=r.byteLength/n[1],c=1;switch(l%8==0?c=8:l%4==0?c=4:l%2==0&&(c=2),i){case 1:s=a.LUMINANCE;break;case 2:s=a.LUMINANCE_ALPHA;break;case 3:s=a.RGB;break;case 4:s=a.RGBA;break;default:throw new Error("Unsupported number of bands: ".concat(i))}r instanceof Float32Array?(u=a.FLOAT,e.getExtension("OES_texture_float"),e.getExtension("OES_texture_float_linear")):u=a.UNSIGNED_BYTE;var f=a.getParameter(a.UNPACK_ALIGNMENT);a.pixelStorei(a.UNPACK_ALIGNMENT,c),a.texImage2D(a.TEXTURE_2D,0,s,n[0],n[1],0,s,u,r),a.pixelStorei(a.UNPACK_ALIGNMENT,f)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(o,e);var t,r,n,i=m(o);function o(e,t,r){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=i.call(this)).tile,n.textures=[],n.handleTileChange_=n.handleTileChange_.bind(b(n)),n.size=(0,p.Pq)(t.getTileSize(e.tileCoord[0])),n.bandCount=NaN,n.helper_=r;var a=new f.ZP(h.qO,h.MB);return a.fromArray([0,1,1,1,1,0,0,0]),r.flushBufferData(a),n.coords=a,n.setTile(e),n}return t=o,(r=[{key:"setTile",value:function(e){if(e!==this.tile)if(this.tile&&this.tile.removeEventListener(u.Z.CHANGE,this.handleTileChange_),this.tile=e,this.textures.length=0,this.loaded=e.getState()===a.Z.LOADED,this.loaded)this.uploadTile_();else{if(e instanceof l.Z){var t=e.getImage();t instanceof Image&&!t.crossOrigin&&(t.crossOrigin="anonymous")}e.addEventListener(u.Z.CHANGE,this.handleTileChange_)}}},{key:"uploadTile_",value:function(){var e=this.helper_,t=e.getGL(),r=this.tile;if(r instanceof l.Z||r instanceof c.Z){var n=t.createTexture();return this.textures.push(n),this.bandCount=4,void function(e,t,r,n){w(e,t,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r)}(t,n,r.getImage(),r.interpolate)}var i=r.getData(),o=i instanceof Float32Array,a=this.size[0]*this.size[1],s=o?Float32Array:Uint8Array,u=s.BYTES_PER_ELEMENT,f=i.byteLength/this.size[1];this.bandCount=Math.floor(f/u/this.size[0]);var h=Math.ceil(this.bandCount/4);if(1===h){var p=t.createTexture();return this.textures.push(p),void x(e,p,i,this.size,this.bandCount,r.interpolate)}for(var d=new Array(h),y=0;y<h;++y){var v=t.createTexture();this.textures.push(v);var m=y<h-1?4:this.bandCount%4;d[y]=new s(a*m)}for(var g=0,b=0,_=this.size[0]*this.bandCount,k=0;k<this.size[1];++k){for(var O=0;O<_;++O){var S=i[b+O],E=Math.floor(g/this.bandCount),T=O%this.bandCount,R=d[Math.floor(T/4)];R[E*(R.length/a)+T%4]=S,++g}b+=f/u}for(var P=0;P<h;++P){var C=this.textures[P],M=d[P],j=M.length/a;x(e,C,M,this.size,j,r.interpolate)}}},{key:"handleTileChange_",value:function(){this.tile.getState()===a.Z.LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(u.Z.CHANGE))}},{key:"disposeInternal",value:function(){var e=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var t=0;t<this.textures.length;++t)e.deleteTexture(this.textures[t]);this.tile.removeEventListener(u.Z.CHANGE,this.handleTileChange_)}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.Z),O=r(19754),S=r(16910),E=r(19329),T=r(6890),R=r(5162),P=r(12810),C=r(86923),M=r(99382),j=r(17985);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function L(){return(L="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=D(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function D(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=G(e)););return e}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var i=G(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return N(this,r)}}function N(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},z={TEXTURE_COORD:"a_textureCoord"},U=[{name:z.TEXTURE_COORD,size:2,type:S.GC.FLOAT}],q={};function V(e){return 2*(1-1/(e+1))-1}function X(e,t,r){r in e||(e[r]=[]),e[r].push(t)}function Y(e,t){var r=e.layerStatesArray[e.layerIndex];r.extent&&(t=(0,C.Ed)(t,(0,P.dY)(r.extent,e.viewState.projection)));var n=r.layer.getSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(e.viewState.projection).getExtent();i&&(t=(0,C.Ed)(t,i))}return t}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(l,e);var t,r,s,u=F(l);function l(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(r=u.call(this,e,{uniforms:t.uniforms})).tileTransform_=(0,E.Ue)(),r.tempMat4_=(0,T.U)(),r.tempTileRange_=new o.Z(0,0,0,0),r.tempTileCoord_=(0,R.T9)(0,0,0),r.tempSize_=[0,0],r.program_,r.vertexShader_=t.vertexShader,r.fragmentShader_=t.fragmentShader,r.indices_=new f.ZP(h.cX,h.MB),r.indices_.fromArray([0,1,3,1,2,3]);var i=void 0!==t.cacheSize?t.cacheSize:512;return r.tileTextureCache_=new n.Z(i),r.paletteTextures_=t.paletteTextures||[],r}return t=l,(r=[{key:"reset",value:function(e){L(G(l.prototype),"reset",this).call(this,{uniforms:e.uniforms}),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))}},{key:"afterHelperCreated",value:function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}},{key:"isDrawableTile_",value:function(e){var t=this.getLayer(),r=e.getState(),n=t.getUseInterimTilesOnError();return r==a.Z.LOADED||r==a.Z.EMPTY||r==a.Z.ERROR&&!n}},{key:"prepareFrameInternal",value:function(e){var t=this.getLayer().getSource();return!!t&&!(0,C.xb)(Y(e,e.extent))&&t.getState()===i.Z.READY}},{key:"enqueueTiles",value:function(e,t,r,n){var i=e.viewState,o=this.getLayer().getSource(),s=o.getTileGridForProjection(i.projection),u=this.tileTextureCache_,l=s.getTileRangeForExtentAndZ(t,r,this.tempTileRange_),c=(0,M.sq)(o);c in e.wantedTiles||(e.wantedTiles[c]={});for(var f=e.wantedTiles[c],h=s.getResolution(r),p=l.minX;p<=l.maxX;++p)for(var d=l.minY;d<=l.maxY;++d){var y=(0,R.T9)(r,p,d,this.tempTileCoord_),v=(0,R.km)(y),m=void 0,g=void 0;if(u.containsKey(v)&&(g=(m=u.get(v)).tile),!m||m.tile.key!==o.getKey())if(g=o.getTile(r,p,d,e.pixelRatio,i.projection),m)if(this.isDrawableTile_(g))m.setTile(g);else{var b=g.getInterimTile();m.setTile(b)}else m=new k(g,s,this.helper),u.set(v,m);X(n,m,r);var _=g.getKey();f[_]=!0,g.getState()===a.Z.IDLE&&(e.tileQueue.isKeyQueued(_)||e.tileQueue.enqueue([g,c,s.getTileCoordCenter(y),h]))}}},{key:"renderFrame",value:function(e){var t=this.helper.getGL();this.preRender(t,e);var r=e.viewState,n=this.getLayer().getSource(),i=n.getTileGridForProjection(r.projection),o=Y(e,e.extent),a=i.getZForResolution(r.resolution,n.zDirection),s={};if(e.nextExtent){var u=i.getZForResolution(r.nextResolution,n.zDirection),l=Y(e,e.nextExtent);this.enqueueTiles(e,l,u,s)}this.enqueueTiles(e,o,a,s);for(var c={},f=(0,M.sq)(this),h=e.time,d=!1,y=s[a],v=0,m=y.length;v<m;++v){var g=y[v],b=g.tile,_=b.tileCoord;if(g.loaded){var w=b.getAlpha(f,h);if(1===w){b.endTransition(f);continue}d=!0,c[(0,R.km)(_)]=w}if(!this.findAltTiles_(i,_,a+1,s))for(var x=i.getMinZoom(),k=a-1;k>=x&&!this.findAltTiles_(i,_,k,s);--k);}this.helper.useProgram(this.program_),this.helper.prepareDraw(e,!d);for(var O=Object.keys(s).map(Number).sort(j.kK),S=r.center[0],P=r.center[1],C=0,I=O.length;C<I;++C)for(var A=O[C],L=i.getResolution(A),D=(0,p.Pq)(i.getTileSize(A),this.tempSize_),Z=i.getOrigin(A),F=(S-Z[0])/(D[0]*L),N=(Z[1]-P)/(D[1]*L),G=r.resolution/L,z=V(A),X=s[A],W=0,K=X.length;W<K;++W){var H=X[W];if(H.loaded){var $=H.tile.tileCoord,J=(0,R.km)($),Q=$[1],ee=$[2];(0,E.qC)(this.tileTransform_,0,0,2/(e.size[0]*G/D[0]),-2/(e.size[1]*G/D[1]),r.rotation,-(F-Q),-(N-ee)),this.helper.setUniformMatrixValue(B.TILE_TRANSFORM,(0,T.u)(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(H.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(U);for(var te=0;te<H.textures.length;){var re="TEXTURE"+te,ne="".concat(B.TILE_TEXTURE_ARRAY,"[").concat(te,"]");t.activeTexture(t[re]),t.bindTexture(t.TEXTURE_2D,H.textures[te]),t.uniform1i(this.helper.getUniformLocation(ne),te),++te}for(var ie=0;ie<this.paletteTextures_.length;++ie){var oe=this.paletteTextures_[ie];t.activeTexture(t["TEXTURE"+te]);var ae=oe.getTexture(t);t.bindTexture(t.TEXTURE_2D,ae),t.uniform1i(this.helper.getUniformLocation(oe.name),te),++te}var se=J in c?c[J]:1;se<1&&(e.animate=!0),this.helper.setUniformFloatValue(B.TRANSITION_ALPHA,se),this.helper.setUniformFloatValue(B.DEPTH,z),this.helper.setUniformFloatValue(B.TEXTURE_PIXEL_WIDTH,D[0]),this.helper.setUniformFloatValue(B.TEXTURE_PIXEL_HEIGHT,D[1]),this.helper.setUniformFloatValue(B.RESOLUTION,r.resolution),this.helper.setUniformFloatValue(B.ZOOM,r.zoom),this.helper.drawElements(0,this.indices_.getSize())}}this.helper.finalizeDraw(e,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);for(var ue=this.helper.getCanvas(),le=this.tileTextureCache_;le.canExpireCache();)le.pop().dispose();return e.postRenderFunctions.push((function(e,t){n.expireCache(t.viewState.projection,q)})),this.postRender(t,e),ue}},{key:"findAltTiles_",value:function(e,t,r,n){var i=e.getTileRangeForTileCoordAndZ(t,r,this.tempTileRange_);if(!i)return!1;for(var o=!0,a=this.tileTextureCache_,s=i.minX;s<=i.maxX;++s)for(var u=i.minY;u<=i.maxY;++u){var l=(0,R.lg)(r,s,u),c=!1;if(a.containsKey(l)){var f=a.get(l);f.loaded&&(X(n,f,r),c=!0)}c||(o=!1)}return o}},{key:"disposeInternal",value:function(){var e=this.helper,t=e.getGL();e.deleteBuffer(this.indices_),delete this.indices_,t.deleteProgram(this.program_),delete this.program_;var r=this.tileTextureCache_;r.forEach((function(e){e.dispose()})),r.clear(),delete this.tileTextureCache_,L(G(l.prototype),"disposeInternal",this).call(this)}}])&&A(t.prototype,r),s&&A(t,s),Object.defineProperty(t,"prototype",{writable:!1}),l}(O.ZP);W.prototype.getLayer;var K=W},53040:function(e,t,r){"use strict";r.d(t,{aA:function(){return h},Co:function(){return p},sY:function(){return d}});var n,i=r(87187),o=r(32275),a=r(86923),s=r(33716),u=r(12810),l=r(62990);function c(e,t,r,n,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,r),e.lineTo(n,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,n)+1,Math.max(r,i)),e.restore()}function f(e,t){return Math.abs(e[4*t]-210)>2||Math.abs(e[4*t+3]-191.25)>2}function h(e,t,r,n){var i=(0,u.vs)(r,t,e),o=(0,u._Q)(t,n,r),s=t.getMetersPerUnit();void 0!==s&&(o*=s);var l=e.getMetersPerUnit();void 0!==l&&(o/=l);var c=e.getExtent();if(!c||(0,a.b8)(c,i)){var f=(0,u._Q)(e,o,i)/o;isFinite(f)&&f>0&&(o/=f)}return o}function p(e,t,r,n){var i=(0,a.qg)(r),o=h(e,t,i,n);return(!isFinite(o)||o<=0)&&(0,a.H6)(r,(function(r){return o=h(e,t,r,n),isFinite(o)&&o>0})),o}function d(e,t,r,u,h,p,d,y,v,m,g,b){var _=(0,s.E4)(Math.round(r*e),Math.round(r*t));if(b||(0,o.f0)(_,i.$),0===v.length)return _.canvas;function w(e){return Math.round(e*r)/r}_.scale(r,r),_.globalCompositeOperation="lighter";var x=(0,a.lJ)();v.forEach((function(e,t,r){(0,a.l7)(x,e.extent)}));var k=(0,a.dz)(x),O=(0,a.Cr)(x),S=(0,s.E4)(Math.round(r*k/u),Math.round(r*O/u));b||(0,o.f0)(S,i.$);var E=r/u;v.forEach((function(e,t,r){var n=e.extent[0]-x[0],i=-(e.extent[3]-x[3]),o=(0,a.dz)(e.extent),s=(0,a.Cr)(e.extent);e.image.width>0&&e.image.height>0&&S.drawImage(e.image,m,m,e.image.width-2*m,e.image.height-2*m,n*E,i*E,o*E,s*E)}));var T=(0,a.rL)(d);return y.getTriangles().forEach((function(e,t,i){var o=e.source,a=e.target,s=o[0][0],h=o[0][1],d=o[1][0],y=o[1][1],v=o[2][0],m=o[2][1],g=w((a[0][0]-T[0])/p),k=w(-(a[0][1]-T[1])/p),O=w((a[1][0]-T[0])/p),E=w(-(a[1][1]-T[1])/p),R=w((a[2][0]-T[0])/p),P=w(-(a[2][1]-T[1])/p),C=s,M=h;s=0,h=0;var j=[[d-=C,y-=M,0,0,O-g],[v-=C,m-=M,0,0,R-g],[0,0,d,y,E-k],[0,0,v,m,P-k]],I=(0,l.SV)(j);if(I){if(_.save(),_.beginPath(),function(){if(void 0===n){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",c(e,4,5,4,0),c(e,4,5,0,5);var t=e.getImageData(0,0,3,3).data;n=f(t,0)||f(t,4)||f(t,8)}return n}()||!b){_.moveTo(O,E);for(var A=g-O,L=k-E,D=0;D<4;D++)_.lineTo(O+w((D+1)*A/4),E+w(D*L/3)),3!=D&&_.lineTo(O+w((D+1)*A/4),E+w((D+1)*L/3));_.lineTo(R,P)}else _.moveTo(O,E),_.lineTo(g,k),_.lineTo(R,P);_.clip(),_.transform(I[0],I[2],I[1],I[3],g,k),_.translate(x[0]-C,x[3]-M),_.scale(u/r,-u/r),_.drawImage(S.canvas,0,0),_.restore()}})),g&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,y.getTriangles().forEach((function(e,t,r){var n=e.target,i=(n[0][0]-T[0])/p,o=-(n[0][1]-T[1])/p,a=(n[1][0]-T[0])/p,s=-(n[1][1]-T[1])/p,u=(n[2][0]-T[0])/p,l=-(n[2][1]-T[1])/p;_.beginPath(),_.moveTo(a,s),_.lineTo(i,o),_.lineTo(u,l),_.closePath(),_.stroke()})),_.restore()),_.canvas}},1368:function(e,t,r){"use strict";var n=r(38312),i=r(6566),o=r(99626),a=r(80542),s=r(1103),u=r(53040),l=r(62990),c=r(86923),f=r(12016);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,r,o,h=y(m);function m(e,t,r,i,o,f,p,d,y,g,b,_){var w;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(w=h.call(this,o,a.Z.IDLE,{interpolate:!!_})).renderEdges_=void 0!==b&&b,w.pixelRatio_=p,w.gutter_=d,w.canvas_=null,w.sourceTileGrid_=t,w.targetTileGrid_=i,w.wrappedTileCoord_=f||o,w.sourceTiles_=[],w.sourcesListenerKeys_=null,w.sourceZ_=0;var x=i.getTileCoordExtent(w.wrappedTileCoord_),k=w.targetTileGrid_.getExtent(),O=w.sourceTileGrid_.getExtent(),S=k?(0,c.Ed)(x,k):x;if(0===(0,c.bg)(S))return w.state=a.Z.EMPTY,v(w);var E=e.getExtent();E&&(O=O?(0,c.Ed)(O,E):E);var T=i.getResolution(w.wrappedTileCoord_[0]),R=(0,u.Co)(e,r,S,T);if(!isFinite(R)||R<=0)return w.state=a.Z.EMPTY,v(w);var P=void 0!==g?g:n.m;if(w.triangulation_=new s.Z(e,r,S,O,R*P,T),0===w.triangulation_.getTriangles().length)return w.state=a.Z.EMPTY,v(w);w.sourceZ_=t.getZForResolution(R);var C=w.triangulation_.calculateSourceExtent();if(O&&(e.canWrapX()?(C[1]=(0,l.uZ)(C[1],O[1],O[3]),C[3]=(0,l.uZ)(C[3],O[1],O[3])):C=(0,c.Ed)(C,O)),(0,c.bg)(C)){for(var M=t.getTileRangeForExtentAndZ(C,w.sourceZ_),j=M.minX;j<=M.maxX;j++)for(var I=M.minY;I<=M.maxY;I++){var A=y(w.sourceZ_,j,I,p);A&&w.sourceTiles_.push(A)}0===w.sourceTiles_.length&&(w.state=a.Z.EMPTY)}else w.state=a.Z.EMPTY;return w}return t=m,(r=[{key:"getImage",value:function(){return this.canvas_}},{key:"reproject_",value:function(){var e=[];if(this.sourceTiles_.forEach(function(t,r,n){t&&t.getState()==a.Z.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(t.tileCoord),image:t.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===e.length)this.state=a.Z.ERROR;else{var t=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(t),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(t),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=(0,u.sY)(n,i,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=a.Z.LOADED}this.changed()}},{key:"load",value:function(){if(this.state==a.Z.IDLE){this.state=a.Z.LOADING,this.changed();var e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(t,r,n){var o=t.getState();if(o==a.Z.IDLE||o==a.Z.LOADING){e++;var s=(0,f.oL)(t,i.Z.CHANGE,(function(r){var n=t.getState();n!=a.Z.LOADED&&n!=a.Z.ERROR&&n!=a.Z.EMPTY||((0,f.bN)(s),0==--e&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(s)}}.bind(this)),0===e?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(e,t,r){e.getState()==a.Z.IDLE&&e.load()}))}}},{key:"unlistenSources_",value:function(){this.sourcesListenerKeys_.forEach(f.bN),this.sourcesListenerKeys_=null}}])&&p(t.prototype,r),o&&p(t,o),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.Z);t.Z=g},1103:function(e,t,r){"use strict";var n=r(86923),i=r(12810),o=r(62990);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t,r,a,s,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceProj_=t,this.targetProj_=r;var c={},f=(0,i.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){var t=e[0]+"/"+e[1];return c[t]||(c[t]=f(e)),c[t]},this.maxSourceExtent_=s,this.errorThresholdSquared_=u*u,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&(0,n.dz)(s)==(0,n.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,n.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,n.dz)(this.targetProj_.getExtent()):null;var h=(0,n.rL)(a),p=(0,n.Xv)(a),d=(0,n.w$)(a),y=(0,n.hC)(a),v=this.transformInv_(h),m=this.transformInv_(p),g=this.transformInv_(d),b=this.transformInv_(y),_=10+(l?Math.max(0,Math.ceil((0,o.k3)((0,n.bg)(a)/(l*l*256*256)))):0);if(this.addQuad_(h,p,d,y,v,m,g,b,_),this.wrapsXInSource_){var w=1/0;this.triangles_.forEach((function(e,t,r){w=Math.min(w,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach(function(e){if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-w>this.sourceWorldWidth_/2){var t=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];t[0][0]-w>this.sourceWorldWidth_/2&&(t[0][0]-=this.sourceWorldWidth_),t[1][0]-w>this.sourceWorldWidth_/2&&(t[1][0]-=this.sourceWorldWidth_),t[2][0]-w>this.sourceWorldWidth_/2&&(t[2][0]-=this.sourceWorldWidth_);var r=Math.min(t[0][0],t[1][0],t[2][0]);Math.max(t[0][0],t[1][0],t[2][0])-r<this.sourceWorldWidth_/2&&(e.source=t)}}.bind(this))}c={}}var t,r,s;return t=e,(r=[{key:"addTriangle_",value:function(e,t,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[e,t,r]})}},{key:"addQuad_",value:function(e,t,r,i,a,s,u,l,c){var f=(0,n.hI)([a,s,u,l]),h=this.sourceWorldWidth_?(0,n.dz)(f)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&h>.5&&h<1,y=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=(0,n.hI)([e,t,r,i]);y=(0,n.dz)(v)/this.targetWorldWidth_>.25||y}!d&&this.sourceProj_.isGlobal()&&h&&(y=h>.25||y)}if(!(!y&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3]))||(0,n.kK)(f,this.maxSourceExtent_)){var m=0;if(!(y||isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(u[0])&&isFinite(u[1])&&isFinite(l[0])&&isFinite(l[1])))if(c>0)y=!0;else if(1!=(m=(isFinite(a[0])&&isFinite(a[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(u[0])&&isFinite(u[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1))&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!y){var g,b=[(e[0]+r[0])/2,(e[1]+r[1])/2],_=this.transformInv_(b);g=d?((0,o.$W)(a[0],p)+(0,o.$W)(u[0],p))/2-(0,o.$W)(_[0],p):(a[0]+u[0])/2-_[0];var w=(a[1]+u[1])/2-_[1];y=g*g+w*w>this.errorThresholdSquared_}if(y){if(Math.abs(e[0]-r[0])<=Math.abs(e[1]-r[1])){var x=[(t[0]+r[0])/2,(t[1]+r[1])/2],k=this.transformInv_(x),O=[(i[0]+e[0])/2,(i[1]+e[1])/2],S=this.transformInv_(O);this.addQuad_(e,t,x,O,a,s,k,S,c-1),this.addQuad_(O,x,r,i,S,k,u,l,c-1)}else{var E=[(e[0]+t[0])/2,(e[1]+t[1])/2],T=this.transformInv_(E),R=[(r[0]+i[0])/2,(r[1]+i[1])/2],P=this.transformInv_(R);this.addQuad_(e,E,R,i,a,T,P,l,c-1),this.addQuad_(E,t,r,R,T,s,u,P,c-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&m)&&this.addTriangle_(e,r,i,a,u,l),0==(14&m)&&this.addTriangle_(e,r,t,a,u,s),m&&(0==(13&m)&&this.addTriangle_(t,i,e,s,l,a),0==(7&m)&&this.addTriangle_(t,i,r,s,l,u))}}},{key:"calculateSourceExtent",value:function(){var e=(0,n.lJ)();return this.triangles_.forEach((function(t,r,i){var o=t.source;(0,n.Wj)(e,o[0]),(0,n.Wj)(e,o[1]),(0,n.Wj)(e,o[2])})),e}},{key:"getTriangles",value:function(){return this.triangles_}}])&&a(t.prototype,r),s&&a(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=s},38312:function(e,t,r){"use strict";r.d(t,{m:function(){return n},j:function(){return i}});var n=.5,i=!0},33589:function(e,t,r){"use strict";r.d(t,{h$:function(){return i},YP:function(){return o},gE:function(){return a},Gw:function(){return s}});var n=r(62990);function i(e){return void 0!==e?0:void 0}function o(e){return void 0!==e?e:void 0}function a(e){var t=2*Math.PI/e;return function(e,r){return r?e:void 0!==e?e=Math.floor(e/t+.5)*t:void 0}}function s(e){var t=e||(0,n.Yr)(5);return function(e,r){return r?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},7877:function(e,t,r){"use strict";function n(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]+2*t,r[1]=e[1]+2*t,r}function i(e){return e[0]>0&&e[1]>0}function o(e,t,r){return void 0===r&&(r=[0,0]),r[0]=e[0]*t+.5|0,r[1]=e[1]*t+.5|0,r}function a(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:(t[0]=e,t[1]=e),t)}r.d(t,{f3:function(){return n},py:function(){return i},bA:function(){return o},Pq:function(){return a}})},16930:function(e,t,r){"use strict";var n=r(46583),i=r(22954),o=r(86923),a=r(75059),s=r(5162),u=r(19352),l=r(12810),c=r(40574);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,i,f=d(y);function y(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);var r=void 0!==e.hidpi&&e.hidpi,i=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(i=e.interpolate),(t=f.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:i,opaque:!0,projection:(0,l.U2)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:n.Z.LOADING,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:r?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})).hidpi_=r,t.culture_=void 0!==e.culture?e.culture:"en-us",t.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,t.apiKey_=e.key,t.imagerySet_=e.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+t.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+t.apiKey_+"&c="+t.culture_;return(0,c.R6)(o,t.handleImageryMetadataResponse.bind(v(t)),void 0,"jsonp"),t}return t=y,(r=[{key:"getApiKey",value:function(){return this.apiKey_}},{key:"getImagerySet",value:function(){return this.imagerySet_}},{key:"handleImageryMetadataResponse",value:function(e){if(200==e.statusCode&&"OK"==e.statusDescription&&"ValidCredentials"==e.authenticationResultCode&&1==e.resourceSets.length&&1==e.resourceSets[0].resources.length){var t=e.resourceSets[0].resources[0],r=-1==this.maxZoom_?t.zoomMax:this.maxZoom_,i=this.getProjection(),c=(0,u.Tl)(i),f=this.hidpi_?2:1,h=t.imageWidth==t.imageHeight?t.imageWidth/f:[t.imageWidth/f,t.imageHeight/f],p=(0,u.dl)({extent:c,minZoom:t.zoomMin,maxZoom:r,tileSize:h});this.tileGrid=p;var d=this.culture_,y=this.hidpi_;if(this.tileUrlFunction=(0,a.Un)(t.imageUrlSubdomains.map((function(e){var r=[0,0,0],n=t.imageUrl.replace("{subdomain}",e).replace("{culture}",d);return function(e,t,i){if(e){(0,s.T9)(e[0],e[1],e[2],r);var o=n;return y&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",function(e){var t,r,n=e[0],i=new Array(n),o=1<<n-1;for(t=0;t<n;++t)r=48,e[1]&o&&(r+=1),e[2]&o&&(r+=2),i[t]=String.fromCharCode(r),o>>=1;return i.join("")}(r))}}}))),t.imageryProviders){var v=(0,l.WO)((0,l.U2)("EPSG:4326"),this.getProjection());this.setAttributions(function(e){var r=[],n=e.viewState,i=this.getTileGrid(),a=i.getZForResolution(n.resolution,this.zDirection),s=i.getTileCoordForCoordAndZ(n.center,a)[0];return t.imageryProviders.map((function(t){for(var n=!1,i=t.coverageAreas,a=0,u=i.length;a<u;++a){var l=i[a];if(s>=l.zoomMin&&s<=l.zoomMax){var c=l.bbox,f=[c[1],c[0],c[3],c[2]],h=(0,o.Ne)(f,v);if((0,o.kK)(h,e.extent)){n=!0;break}}}n&&r.push(t.attribution)})),r.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>'),r}.bind(this))}this.setState(n.Z.READY)}else this.setState(n.Z.ERROR)}}])&&h(t.prototype,r),i&&h(t,i),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.Z);t.Z=g},58685:function(e,t,r){"use strict";var n=r(6566),i=r(12739),o=r(10392),a=r(75469),s=r(95783),u=r(92932),l=r(90776),c=r(86923),f=r(99382);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=y(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(y,e);var t,r,s,h=m(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=h.call(this,{attributions:e.attributions,wrapX:e.wrapX})).resolution=void 0,t.distance=void 0!==e.distance?e.distance:20,t.minDistance=e.minDistance||0,t.interpolationRatio=0,t.features=[],t.geometryFunction=e.geometryFunction||function(e){var t=e.getGeometry();return(0,l.h)(t.getType()==o.Z.POINT,10),t},t.createCustomCluster_=e.createCluster,t.source=null,t.boundRefresh_=t.refresh.bind(b(t)),t.updateDistance(t.distance,t.minDistance),t.setSource(e.source||null),t}return t=y,(r=[{key:"clear",value:function(e){this.features.length=0,d(_(y.prototype),"clear",this).call(this,e)}},{key:"getDistance",value:function(){return this.distance}},{key:"getSource",value:function(){return this.source}},{key:"loadFeatures",value:function(e,t,r){this.source.loadFeatures(e,t,r),t!==this.resolution&&(this.resolution=t,this.refresh())}},{key:"setDistance",value:function(e){this.updateDistance(e,this.minDistance)}},{key:"setMinDistance",value:function(e){this.updateDistance(this.distance,e)}},{key:"getMinDistance",value:function(){return this.minDistance}},{key:"setSource",value:function(e){this.source&&this.source.removeEventListener(n.Z.CHANGE,this.boundRefresh_),this.source=e,e&&e.addEventListener(n.Z.CHANGE,this.boundRefresh_),this.refresh()}},{key:"refresh",value:function(){this.clear(),this.cluster(),this.addFeatures(this.features)}},{key:"updateDistance",value:function(e,t){var r=0===e?0:Math.min(t,e)/e,n=e!==this.distance||this.interpolationRatio!==r;this.distance=e,this.minDistance=t,this.interpolationRatio=r,n&&this.refresh()}},{key:"cluster",value:function(){if(void 0!==this.resolution&&this.source)for(var e=(0,c.lJ)(),t=this.distance*this.resolution,r=this.source.getFeatures(),n={},i=0,o=r.length;i<o;i++){var a=r[i];if(!((0,f.sq)(a)in n)){var s=this.geometryFunction(a);if(s){var u=s.getCoordinates();(0,c.HK)(u,e),(0,c.f3)(e,t,e);var l=this.source.getFeaturesInExtent(e).filter((function(e){var t=(0,f.sq)(e);return!(t in n)&&(n[t]=!0,!0)}));this.features.push(this.createCluster(l,e))}}}}},{key:"createCluster",value:function(e,t){for(var r=[0,0],n=e.length-1;n>=0;--n){var o=this.geometryFunction(e[n]);o?(0,u.IH)(r,o.getCoordinates()):e.splice(n,1)}(0,u.bA)(r,1/e.length);var s=(0,c.qg)(t),l=this.interpolationRatio,f=new a.Z([r[0]*(1-l)+s[0]*l,r[1]*(1-l)+s[1]*l]);return this.createCustomCluster_?this.createCustomCluster_(f,e):new i.Z({geometry:f,features:e})}}])&&p(t.prototype,r),s&&p(t,s),Object.defineProperty(t,"prototype",{writable:!1}),y}(s.Z);t.Z=w},37695:function(e,t,r){"use strict";r.d(t,{Z:function(){return T}});var n=r(99626),i=r(80542);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=i.Z.IDLE;return(t=o.call(this,e.tileCoord,r,{transition:e.transition,interpolate:e.interpolate})).loader_=e.loader,t.data_=null,t.error_=null,t}return t=l,(r=[{key:"getData",value:function(){return this.data_}},{key:"getError",value:function(){return this.error_}},{key:"load",value:function(){this.state=i.Z.LOADING,this.changed();var e=this;this.loader_().then((function(t){e.data_=t,e.state=i.Z.LOADED,e.changed()})).catch((function(t){e.error_=t,e.state=i.Z.ERROR,e.changed()}))}}])&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.Z),h=r(6566),p=r(87426),d=r(33248),y=r(32275),v=r(19352),m=r(5162),g=r(99382),b=r(13837);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(a,e);var t,r,n,o=k(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=void 0===e.projection?"EPSG:3857":e.projection,n=e.tileGrid;return void 0===n&&r&&(n=(0,v.dl)({extent:(0,v.Tl)(r),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),(t=o.call(this,{cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:r,tileGrid:n,opaque:e.opaque,state:e.state,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate})).tileLoadingKeys_={},t.loader_=e.loader,t.handleTileChange_=t.handleTileChange_.bind(S(t)),t.bandCount=void 0===e.bandCount?4:e.bandCount,t}return t=a,(r=[{key:"setLoader",value:function(e){this.loader_=e}},{key:"getTile",value:function(e,t,r,n,i){var o=(0,m.lg)(e,t,r);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var a=this.loader_,s=new f((0,y.f0)({tileCoord:[e,t,r],loader:function(){return(0,b.Vi)((function(){return a(e,t,r)}))}},this.tileOptions));return s.key=this.getKey(),s.addEventListener(h.Z.CHANGE,this.handleTileChange_),this.tileCache.set(o,s),s}},{key:"handleTileChange_",value:function(e){var t,r=e.target,n=(0,g.sq)(r),o=r.getState();o==i.Z.LOADING?(this.tileLoadingKeys_[n]=!0,t=p.Z.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],t=o==i.Z.ERROR?p.Z.TILELOADERROR:o==i.Z.LOADED?p.Z.TILELOADEND:void 0),t&&this.dispatchEvent(new d.s(t,r))}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.Z)},63421:function(e,t,r){"use strict";r.d(t,{Z:function(){return Jn}});for(var n=r(37695),i=r(46583),o=r(15492),a=new ArrayBuffer(4),s=new Float32Array(a),u=new Uint32Array(a),l=new Uint32Array(512),c=new Uint32Array(512),f=0;f<256;++f){var h=f-127;h<-27?(l[f]=0,l[256|f]=32768,c[f]=24,c[256|f]=24):h<-14?(l[f]=1024>>-h-14,l[256|f]=1024>>-h-14|32768,c[f]=-h-1,c[256|f]=-h-1):h<=15?(l[f]=h+15<<10,l[256|f]=h+15<<10|32768,c[f]=13,c[256|f]=13):h<128?(l[f]=31744,l[256|f]=64512,c[f]=24,c[256|f]=24):(l[f]=31744,l[256|f]=64512,c[f]=13,c[256|f]=13)}var p=new Uint32Array(2048),d=new Uint32Array(64),y=new Uint32Array(64);p[0]=0;for(var v=1;v<1024;++v){for(var m=v<<13,g=0;0==(8388608&m);)g-=8388608,m<<=1;m&=-8388609,g+=947912704,p[v]=m|g}for(var b=1024;b<2048;++b)p[b]=939524096+(b-1024<<13);d[0]=0;for(var _=1;_<31;++_)d[_]=_<<23;d[31]=1199570944,d[32]=2147483648;for(var w=33;w<63;++w)d[w]=2147483648+(w-32<<23);d[63]=3347054592,y[0]=0;for(var x=1;x<64;++x)y[x]=32===x?0:1024;function k(e){var t=e>>10;return u[0]=p[y[t]+(1023&e)]+d[t],s[0]}var O=Reflect.getPrototypeOf(Uint8Array).prototype,S=Reflect.getOwnPropertyDescriptor(O,Symbol.toStringTag).get;function E(e){return void 0!==S.call(e)}var T=Object.prototype.toString;function R(e){return!!ArrayBuffer.isView(e)&&(!E(e)&&"[object DataView]"===T.call(e))}function P(e,t){if(!R(e))throw new TypeError("First argument to getFloat16 function must be a DataView");for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return k(e.getUint16.apply(e,[t].concat(n)))}var C=r(58287),M=r.n(C),j=r(70686),I=r.n(j),A=r(90535);function L(e,t){for(var r,n=e.width,i=e.height,o=new Uint8Array(n*i*3),a=0,s=0;a<e.length;++a,s+=3)r=256-e[a]/t*256,o[s]=r,o[s+1]=r,o[s+2]=r;return o}function D(e,t){for(var r,n=e.width,i=e.height,o=new Uint8Array(n*i*3),a=0,s=0;a<e.length;++a,s+=3)r=e[a]/t*256,o[s]=r,o[s+1]=r,o[s+2]=r;return o}function Z(e,t){for(var r=e.width,n=e.height,i=new Uint8Array(r*n*3),o=t.length/3,a=t.length/3*2,s=0,u=0;s<e.length;++s,u+=3){var l=e[s];i[u]=t[l]/65536*256,i[u+1]=t[l+o]/65536*256,i[u+2]=t[l+a]/65536*256}return i}function F(e){for(var t=e.width,r=e.height,n=new Uint8Array(t*r*3),i=0,o=0;i<e.length;i+=4,o+=3){var a=e[i],s=e[i+1],u=e[i+2],l=e[i+3];n[o]=(255-a)/256*255*((255-l)/256),n[o+1]=(255-s)/256*255*((255-l)/256),n[o+2]=(255-u)/256*255*((255-l)/256)}return n}function N(e){for(var t=e.width,r=e.height,n=new Uint8ClampedArray(t*r*3),i=0,o=0;i<e.length;i+=3,o+=3){var a=e[i],s=e[i+1],u=e[i+2];n[o]=a+1.402*(u-128),n[o+1]=a-.34414*(s-128)-.71414*(u-128),n[o+2]=a+1.772*(s-128)}return n}function G(e){for(var t=e.width,r=e.height,n=new Uint8Array(t*r*3),i=0,o=0;i<e.length;i+=3,o+=3){var a=(e[i+0]+16)/116,s=(e[i+1]<<24>>24)/500+a,u=a-(e[i+2]<<24>>24)/200,l=void 0,c=void 0,f=void 0;c=-.9689*(s=.95047*(s*s*s>.008856?s*s*s:(s-16/116)/7.787))+1.8758*(a=1*(a*a*a>.008856?a*a*a:(a-16/116)/7.787))+.0415*(u=1.08883*(u*u*u>.008856?u*u*u:(u-16/116)/7.787)),f=.0557*s+-.204*a+1.057*u,l=(l=3.2406*s+-1.5372*a+-.4986*u)>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l,c=c>.0031308?1.055*Math.pow(c,1/2.4)-.055:12.92*c,f=f>.0031308?1.055*Math.pow(f,1/2.4)-.055:12.92*f,n[o]=255*Math.max(0,Math.min(1,l)),n[o+1]=255*Math.max(0,Math.min(1,c)),n[o+2]=255*Math.max(0,Math.min(1,f))}return n}function B(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function z(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){B(o,n,i,a,s,"next",e)}function s(e){B(o,n,i,a,s,"throw",e)}a(void 0)}))}}var U=new Map;function q(e,t){Array.isArray(e)||(e=[e]),e.forEach((function(e){return U.set(e,t)}))}function V(e){return X.apply(this,arguments)}function X(){return(X=z(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=U.get(t.Compression)){e.next=3;break}throw new Error("Unknown compression method identifier: ".concat(t.Compression));case 3:return e.next=5,r();case 5:return n=e.sent,e.abrupt("return",new n(t));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return new(Object.getPrototypeOf(e).constructor)(t*r*n)}function W(e,t,r,n,i){var o=t/n,a=r/i;return e.map((function(e){for(var s=Y(e,n,i),u=0;u<i;++u)for(var l=Math.min(Math.round(a*u),r-1),c=0;c<n;++c){var f=Math.min(Math.round(o*c),t-1),h=e[l*t+f];s[u*n+c]=h}return s}))}function K(e,t,r){return(1-r)*e+r*t}function H(e,t,r,n,i){var o=t/n,a=r/i;return e.map((function(e){for(var s=Y(e,n,i),u=0;u<i;++u)for(var l=a*u,c=Math.floor(l),f=Math.min(Math.ceil(l),r-1),h=0;h<n;++h){var p=o*h,d=p%1,y=Math.floor(p),v=Math.min(Math.ceil(p),t-1),m=e[c*t+y],g=e[c*t+v],b=e[f*t+y],_=e[f*t+v],w=K(K(m,g,d),K(b,_,d),l%1);s[u*n+h]=w}return s}))}function $(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"nearest";switch(o.toLowerCase()){case"nearest":return W(e,t,r,n,i);case"bilinear":case"linear":return H(e,t,r,n,i);default:throw new Error("Unsupported resampling method: '".concat(o,"'"))}}function J(e,t,r,n,i,o){for(var a=t/n,s=r/i,u=Y(e,n,i,o),l=0;l<i;++l)for(var c=Math.min(Math.round(s*l),r-1),f=0;f<n;++f)for(var h=Math.min(Math.round(a*f),t-1),p=0;p<o;++p){var d=e[c*t*o+h*o+p];u[l*n*o+f*o+p]=d}return u}function Q(e,t,r,n,i,o){for(var a=t/n,s=r/i,u=Y(e,n,i,o),l=0;l<i;++l)for(var c=s*l,f=Math.floor(c),h=Math.min(Math.ceil(c),r-1),p=0;p<n;++p)for(var d=a*p,y=d%1,v=Math.floor(d),m=Math.min(Math.ceil(d),t-1),g=0;g<o;++g){var b=e[f*t*o+v*o+g],_=e[f*t*o+m*o+g],w=e[h*t*o+v*o+g],x=e[h*t*o+m*o+g],k=K(K(b,_,y),K(w,x,y),c%1);u[l*n*o+p*o+g]=k}return u}function ee(e,t,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"nearest";switch(a.toLowerCase()){case"nearest":return J(e,t,r,n,i,o);case"bilinear":case"linear":return Q(e,t,r,n,i,o);default:throw new Error("Unsupported resampling method: '".concat(a,"'"))}}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ne(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function ie(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ne(o,n,i,a,s,"next",e)}function s(e){ne(o,n,i,a,s,"throw",e)}a(void 0)}))}}function oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ae(e,t,r){for(var n=0,i=t;i<r;++i)n+=e[i];return n}function se(e,t,r){switch(e){case 1:if(t<=8)return new Uint8Array(r);if(t<=16)return new Uint16Array(r);if(t<=32)return new Uint32Array(r);break;case 2:if(8===t)return new Int8Array(r);if(16===t)return new Int16Array(r);if(32===t)return new Int32Array(r);break;case 3:switch(t){case 16:case 32:return new Float32Array(r);case 64:return new Float64Array(r)}}throw Error("Unsupported data format/bitsPerSample")}function ue(e,t){return(1!==e&&2!==e||!(t<=32)||t%8!=0)&&(3!==e||16!==t&&32!==t&&64!==t)}function le(e,t,r,n,i,o,a){var s=new DataView(e),u=2===r?1:n,l=se(t,i,2===r?a*o:a*o*n),c=parseInt("1".repeat(i),2);if(1===t){var f=o*(1===r?n*i:i);0!=(7&f)&&(f=f+7&-8);for(var h=0;h<a;++h)for(var p=h*f,d=0;d<o;++d)for(var y=p+d*u*i,v=0;v<u;++v){var m=y+v*i,g=(h*o+d)*u+v,b=Math.floor(m/8),_=m%8;if(_+i<=8)l[g]=s.getUint8(b)>>8-i-_&c;else if(_+i<=16)l[g]=s.getUint16(b)>>16-i-_&c;else if(_+i<=24){var w=s.getUint16(b)<<8|s.getUint8(b+2);l[g]=w>>24-i-_&c}else l[g]=s.getUint32(b)>>32-i-_&c}}return l.buffer}q([void 0,1],(function(){return r.e(5458).then(r.bind(r,75458)).then((function(e){return e.default}))})),q(5,(function(){return r.e(9137).then(r.bind(r,89137)).then((function(e){return e.default}))})),q(6,(function(){throw new Error("old style JPEG compression is not supported.")})),q(7,(function(){return r.e(4763).then(r.bind(r,94763)).then((function(e){return e.default}))})),q([8,32946],(function(){return r.e(4332).then(r.bind(r,64332)).then((function(e){return e.default}))})),q(32773,(function(){return r.e(617).then(r.bind(r,50617)).then((function(e){return e.default}))})),q(34887,(function(){return r.e(3696).then(r.bind(r,73696)).then((function(e){return e.default}))}));var ce=function(){function e(t,r,n,i,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fileDirectory=t,this.geoKeys=r,this.dataView=n,this.littleEndian=i,this.tiles=o?{}:null,this.isTiled=!t.StripOffsets;var s=t.PlanarConfiguration;if(this.planarConfiguration=void 0===s?1:s,1!==this.planarConfiguration&&2!==this.planarConfiguration)throw new Error("Invalid planar configuration.");this.source=a}var t,r,n,i,o,a,s;return t=e,(r=[{key:"getFileDirectory",value:function(){return this.fileDirectory}},{key:"getGeoKeys",value:function(){return this.geoKeys}},{key:"getWidth",value:function(){return this.fileDirectory.ImageWidth}},{key:"getHeight",value:function(){return this.fileDirectory.ImageLength}},{key:"getSamplesPerPixel",value:function(){return void 0!==this.fileDirectory.SamplesPerPixel?this.fileDirectory.SamplesPerPixel:1}},{key:"getTileWidth",value:function(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}},{key:"getTileHeight",value:function(){return this.isTiled?this.fileDirectory.TileLength:void 0!==this.fileDirectory.RowsPerStrip?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}},{key:"getBlockWidth",value:function(){return this.getTileWidth()}},{key:"getBlockHeight",value:function(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}},{key:"getBytesPerPixel",value:function(){for(var e=0,t=0;t<this.fileDirectory.BitsPerSample.length;++t)e+=this.getSampleByteSize(t);return e}},{key:"getSampleByteSize",value:function(e){if(e>=this.fileDirectory.BitsPerSample.length)throw new RangeError("Sample index ".concat(e," is out of range."));return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}},{key:"getReaderForSample",value:function(e){var t=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,r=this.fileDirectory.BitsPerSample[e];switch(t){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(e,t){return P(this,e,t)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}}throw Error("Unsupported data format/bitsPerSample")}},{key:"getSampleFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}},{key:"getBitsPerSample",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.fileDirectory.BitsPerSample[e]}},{key:"getArrayForSample",value:function(e,t){return se(this.getSampleFormat(e),this.getBitsPerSample(e),t)}},{key:"getTileOrStrip",value:(s=ie(regeneratorRuntime.mark((function e(t,r,n,i,o){var a,s,u,l,c,f,h,p,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Math.ceil(this.getWidth()/this.getTileWidth()),s=Math.ceil(this.getHeight()/this.getTileHeight()),l=this.tiles,1===this.planarConfiguration?u=r*a+t:2===this.planarConfiguration&&(u=n*a*s+r*a+t),this.isTiled?(c=this.fileDirectory.TileOffsets[u],f=this.fileDirectory.TileByteCounts[u]):(c=this.fileDirectory.StripOffsets[u],f=this.fileDirectory.StripByteCounts[u]),e.next=7,this.source.fetch([{offset:c,length:f}],o);case 7:return h=e.sent[0],null!==l&&l[u]?p=l[u]:(p=ie(regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.decode(d.fileDirectory,h);case 2:return t=e.sent,n=d.getSampleFormat(),o=d.getBitsPerSample(),ue(n,o)&&(t=le(t,n,d.planarConfiguration,d.getSamplesPerPixel(),o,d.getTileWidth(),d.getBlockHeight(r))),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})))(),null!==l&&(l[u]=p)),e.t0=t,e.t1=r,e.t2=n,e.next=14,p;case 14:return e.t3=e.sent,e.abrupt("return",{x:e.t0,y:e.t1,sample:e.t2,data:e.t3});case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,i){return s.apply(this,arguments)})},{key:"_readRaster",value:(a=ie(regeneratorRuntime.mark((function e(t,r,n,i,o,a,s,u,l){var c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S,E,T,R,P,C=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(c=this.getTileWidth(),f=this.getTileHeight(),h=this.getWidth(),p=this.getHeight(),d=Math.max(Math.floor(t[0]/c),0),y=Math.min(Math.ceil(t[2]/c),Math.ceil(h/c)),v=Math.max(Math.floor(t[1]/f),0),m=Math.min(Math.ceil(t[3]/f),Math.ceil(p/f)),g=t[2]-t[0],b=this.getBytesPerPixel(),_=[],w=[],x=0;x<r.length;++x)1===this.planarConfiguration?_.push(ae(this.fileDirectory.BitsPerSample,0,r[x])/8):_.push(0),w.push(this.getReaderForSample(r[x]));for(k=[],O=this.littleEndian,S=v;S<m;++S)for(E=d;E<y;++E)for(T=function(e){var a=e,s=r[e];2===C.planarConfiguration&&(b=C.getSampleByteSize(e));var u=C.getTileOrStrip(E,S,s,o,l);k.push(u),u.then((function(e){for(var o=e.data,s=new DataView(o),u=C.getBlockHeight(e.y),l=e.y*f,d=e.x*c,y=l+u,v=(e.x+1)*c,m=w[a],x=Math.min(u,u-(y-t[3]),p-l),k=Math.min(c,c-(v-t[2]),h-d),S=Math.max(0,t[1]-l);S<x;++S)for(var E=Math.max(0,t[0]-d);E<k;++E){var T=(S*c+E)*b,R=m.call(s,T+_[a],O),P=void 0;i?(P=(S+l-t[1])*g*r.length+(E+d-t[0])*r.length+a,n[P]=R):(P=(S+l-t[1])*g+E+d-t[0],n[a][P]=R)}}))},R=0;R<r.length;++R)T(R);return e.next=18,Promise.all(k);case 18:if(!(a&&t[2]-t[0]!==a||s&&t[3]-t[1]!==s)){e.next=23;break}return(P=i?ee(n,t[2]-t[0],t[3]-t[1],a,s,r.length,u):$(n,t[2]-t[0],t[3]-t[1],a,s,u)).width=a,P.height=s,e.abrupt("return",P);case 23:return n.width=a||t[2]-t[0],n.height=s||t[3]-t[1],e.abrupt("return",n);case 26:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n,i,o,s,u,l){return a.apply(this,arguments)})},{key:"readRasters",value:(o=ie(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S,E,T=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.length>0&&void 0!==T[0]?T[0]:{},r=t.window,n=t.samples,i=void 0===n?[]:n,o=t.interleave,a=t.pool,s=void 0===a?null:a,u=t.width,l=t.height,c=t.resampleMethod,f=t.fillValue,h=t.signal,!((p=r||[0,0,this.getWidth(),this.getHeight()])[0]>p[2]||p[1]>p[3])){e.next=4;break}throw new Error("Invalid subsets");case 4:if(d=p[2]-p[0],y=p[3]-p[1],v=d*y,m=this.getSamplesPerPixel(),i&&i.length){e.next=12;break}for(g=0;g<m;++g)i.push(g);e.next=19;break;case 12:b=0;case 13:if(!(b<i.length)){e.next=19;break}if(!(i[b]>=m)){e.next=16;break}return e.abrupt("return",Promise.reject(new RangeError("Invalid sample index '".concat(i[b],"'."))));case 16:++b,e.next=13;break;case 19:if(o)w=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,x=Math.max.apply(null,this.fileDirectory.BitsPerSample),_=se(w,x,v*i.length),f&&_.fill(f);else for(_=[],k=0;k<i.length;++k)O=this.getArrayForSample(i[k],v),Array.isArray(f)&&k<f.length?O.fill(f[k]):f&&!Array.isArray(f)&&O.fill(f),_.push(O);if(e.t0=s,e.t0){e.next=25;break}return e.next=24,V(this.fileDirectory);case 24:e.t0=e.sent;case 25:return S=e.t0,e.next=28,this._readRaster(p,i,_,o,S,u,l,c,h);case 28:return E=e.sent,e.abrupt("return",E);case 30:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"readRGB",value:(i=ie(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S,E,T,R=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=R.length>0&&void 0!==R[0]?R[0]:{},r=t.window,n=t.interleave,i=void 0===n||n,o=t.pool,a=void 0===o?null:o,s=t.width,u=t.height,l=t.resampleMethod,c=t.enableAlpha,f=void 0!==c&&c,h=t.signal,!((p=r||[0,0,this.getWidth(),this.getHeight()])[0]>p[2]||p[1]>p[3])){e.next=4;break}throw new Error("Invalid subsets");case 4:if((d=this.fileDirectory.PhotometricInterpretation)!==A.Ie.RGB){e.next=9;break}if(y=[0,1,2],this.fileDirectory.ExtraSamples!==A.pd.Unspecified&&f)for(y=[],v=0;v<this.fileDirectory.BitsPerSample.length;v+=1)y.push(v);return e.abrupt("return",this.readRasters({window:r,interleave:i,samples:y,pool:a,width:s,height:u,resampleMethod:l,signal:h}));case 9:e.t0=d,e.next=e.t0===A.Ie.WhiteIsZero||e.t0===A.Ie.BlackIsZero||e.t0===A.Ie.Palette?12:e.t0===A.Ie.CMYK?14:e.t0===A.Ie.YCbCr||e.t0===A.Ie.CIELab?16:18;break;case 12:return m=[0],e.abrupt("break",19);case 14:return m=[0,1,2,3],e.abrupt("break",19);case 16:return m=[0,1,2],e.abrupt("break",19);case 18:throw new Error("Invalid or unsupported photometric interpretation.");case 19:return g={window:p,interleave:!0,samples:m,pool:a,width:s,height:u,resampleMethod:l,signal:h},b=this.fileDirectory,e.next=23,this.readRasters(g);case 23:_=e.sent,w=Math.pow(2,this.fileDirectory.BitsPerSample[0]),e.t1=d,e.next=e.t1===A.Ie.WhiteIsZero?28:e.t1===A.Ie.BlackIsZero?30:e.t1===A.Ie.Palette?32:e.t1===A.Ie.CMYK?34:e.t1===A.Ie.YCbCr?36:e.t1===A.Ie.CIELab?38:40;break;case 28:return x=L(_,w),e.abrupt("break",41);case 30:return x=D(_,w),e.abrupt("break",41);case 32:return x=Z(_,b.ColorMap),e.abrupt("break",41);case 34:return x=F(_),e.abrupt("break",41);case 36:return x=N(_),e.abrupt("break",41);case 38:return x=G(_),e.abrupt("break",41);case 40:throw new Error("Unsupported photometric interpretation.");case 41:if(!i){for(k=new Uint8Array(x.length/3),O=new Uint8Array(x.length/3),S=new Uint8Array(x.length/3),E=0,T=0;E<x.length;E+=3,++T)k[T]=x[E],O[T]=x[E+1],S[T]=x[E+2];x=[k,O,S]}return x.width=_.width,x.height=_.height,e.abrupt("return",x);case 45:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getTiePoints",value:function(){if(!this.fileDirectory.ModelTiepoint)return[];for(var e=[],t=0;t<this.fileDirectory.ModelTiepoint.length;t+=6)e.push({i:this.fileDirectory.ModelTiepoint[t],j:this.fileDirectory.ModelTiepoint[t+1],k:this.fileDirectory.ModelTiepoint[t+2],x:this.fileDirectory.ModelTiepoint[t+3],y:this.fileDirectory.ModelTiepoint[t+4],z:this.fileDirectory.ModelTiepoint[t+5]});return e}},{key:"getGDALMetadata",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={};if(!this.fileDirectory.GDAL_METADATA)return null;var r=this.fileDirectory.GDAL_METADATA,n=I()(r,"Item");null!==e&&(n=n.filter((function(t){return Number(M()(t,"sample"))===e})));for(var i=0;i<n.length;++i){var o=n[i];t[M()(o,"name")]=o.inner}return t}},{key:"getGDALNoData",value:function(){if(!this.fileDirectory.GDAL_NODATA)return null;var e=this.fileDirectory.GDAL_NODATA;return Number(e.substring(0,e.length-1))}},{key:"getOrigin",value:function(){var e=this.fileDirectory.ModelTiepoint,t=this.fileDirectory.ModelTransformation;if(e&&6===e.length)return[e[3],e[4],e[5]];if(t)return[t[3],t[7],t[11]];throw new Error("The image does not have an affine transformation.")}},{key:"getResolution",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.fileDirectory.ModelPixelScale,r=this.fileDirectory.ModelTransformation;if(t)return[t[0],-t[1],t[2]];if(r)return[r[0],r[5],r[10]];if(e){var n=e.getResolution(),i=te(n,3),o=i[0],a=i[1],s=i[2];return[o*e.getWidth()/this.getWidth(),a*e.getHeight()/this.getHeight(),s*e.getWidth()/this.getWidth()]}throw new Error("The image does not have an affine transformation.")}},{key:"pixelIsArea",value:function(){return 1===this.geoKeys.GTRasterTypeGeoKey}},{key:"getBoundingBox",value:function(){var e=this.getOrigin(),t=this.getResolution(),r=e[0],n=e[1],i=r+t[0]*this.getWidth(),o=n+t[1]*this.getHeight();return[Math.min(r,i),Math.min(n,o),Math.max(r,i),Math.max(n,o)]}}])&&oe(t.prototype,r),n&&oe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var he=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dataView=new DataView(t)}var t,r,n;return t=e,(r=[{key:"buffer",get:function(){return this._dataView.buffer}},{key:"getUint64",value:function(e,t){var r,n=this.getUint32(e,t),i=this.getUint32(e+4,t);if(t){if(r=n+Math.pow(2,32)*i,!Number.isSafeInteger(r))throw new Error("".concat(r," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}if(r=Math.pow(2,32)*n+i,!Number.isSafeInteger(r))throw new Error("".concat(r," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return r}},{key:"getInt64",value:function(e,t){for(var r=0,n=(128&this._dataView.getUint8(e+(t?7:0)))>0,i=!0,o=0;o<8;o++){var a=this._dataView.getUint8(e+(t?o:7-o));n&&(i?0!==a&&(a=255&~(a-1),i=!1):a=255&~a),r+=a*Math.pow(256,o)}return n&&(r=-r),r}},{key:"getUint8",value:function(e,t){return this._dataView.getUint8(e,t)}},{key:"getInt8",value:function(e,t){return this._dataView.getInt8(e,t)}},{key:"getUint16",value:function(e,t){return this._dataView.getUint16(e,t)}},{key:"getInt16",value:function(e,t){return this._dataView.getInt16(e,t)}},{key:"getUint32",value:function(e,t){return this._dataView.getUint32(e,t)}},{key:"getInt32",value:function(e,t){return this._dataView.getInt32(e,t)}},{key:"getFloat16",value:function(e,t){return P(this._dataView,e,t)}},{key:"getFloat32",value:function(e,t){return this._dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e,t){return this._dataView.getFloat64(e,t)}}])&&fe(t.prototype,r),n&&fe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var de=function(){function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dataView=new DataView(t),this._sliceOffset=r,this._littleEndian=n,this._bigTiff=i}var t,r,n;return t=e,(r=[{key:"sliceOffset",get:function(){return this._sliceOffset}},{key:"sliceTop",get:function(){return this._sliceOffset+this.buffer.byteLength}},{key:"littleEndian",get:function(){return this._littleEndian}},{key:"bigTiff",get:function(){return this._bigTiff}},{key:"buffer",get:function(){return this._dataView.buffer}},{key:"covers",value:function(e,t){return this.sliceOffset<=e&&this.sliceTop>=e+t}},{key:"readUint8",value:function(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}},{key:"readInt8",value:function(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}},{key:"readUint16",value:function(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}},{key:"readInt16",value:function(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}},{key:"readUint32",value:function(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}},{key:"readInt32",value:function(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}},{key:"readFloat32",value:function(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}},{key:"readFloat64",value:function(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}},{key:"readUint64",value:function(e){var t,r=this.readUint32(e),n=this.readUint32(e+4);if(this._littleEndian){if(t=r+Math.pow(2,32)*n,!Number.isSafeInteger(t))throw new Error("".concat(t," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return t}if(t=Math.pow(2,32)*r+n,!Number.isSafeInteger(t))throw new Error("".concat(t," exceeds MAX_SAFE_INTEGER. ")+"Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues");return t}},{key:"readInt64",value:function(e){for(var t=0,r=(128&this._dataView.getUint8(e+(this._littleEndian?7:0)))>0,n=!0,i=0;i<8;i++){var o=this._dataView.getUint8(e+(this._littleEndian?i:7-i));r&&(n?0!==o&&(o=255&~(o-1),n=!1):o=255&~o),t+=o*Math.pow(256,i)}return r&&(t=-t),t}},{key:"readOffset",value:function(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}])&&pe(t.prototype,r),n&&pe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ye(e){return ge(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(e)||me()}function ve(e,t){return ge(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||be(e,t)||me()}function me(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ge(e){if(Array.isArray(e))return e}function be(e,t){if(e){if("string"==typeof e)return _e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(e,t):void 0}}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var we="\r\n\r\n";function xe(e){if(void 0!==Object.fromEntries)return Object.fromEntries(e);var t,r={},n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=be(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(n.s();!(t=n.n()).done;){var i=ve(t.value,2),o=i[0],a=i[1];r[o.toLowerCase()]=a}}catch(e){n.e(e)}finally{n.f()}return r}function ke(e){return xe(e.split("\r\n").map((function(e){var t=e.split(":").map((function(e){return e.trim()}));return t[0]=t[0].toLowerCase(),t})))}function Oe(e){var t,r,n;if(e){var i=ve(e.match(/bytes (\d+)-(\d+)\/(\d+)/),4);t=i[1],r=i[2],n=i[3],t=parseInt(t,10),r=parseInt(r,10),n=parseInt(n,10)}return{start:t,end:r,total:n}}function Se(e,t){for(var r=null,n=new TextDecoder("ascii"),i=[],o="--".concat(t),a="".concat(o,"--"),s=0;s<10;++s){n.decode(new Uint8Array(e,s,o.length))===o&&(r=s)}if(null===r)throw new Error("Could not find initial boundary");for(;r<e.byteLength;){var u=n.decode(new Uint8Array(e,r,Math.min(o.length+1024,e.byteLength-r)));if(0===u.length||u.startsWith(a))break;if(!u.startsWith(o))throw new Error("Part does not start with boundary");var l=u.substr(o.length+2);if(0===l.length)break;var c=l.indexOf(we),f=ke(l.substr(0,c)),h=Oe(f["content-range"]),p=h.start,d=h.end,y=h.total,v=r+o.length+c+we.length,m=parseInt(d,10)+1-parseInt(p,10);i.push({headers:f,data:e.slice(v,v+m),offset:p,length:m,fileSize:y}),r=v+m+4}return i}function Ee(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Te(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ee(o,n,i,a,s,"next",e)}function s(e){Ee(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Pe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,i,o,a;return t=e,(r=[{key:"fetch",value:(a=Te(regeneratorRuntime.mark((function e(t){var r,n=this,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:void 0,e.abrupt("return",Promise.all(t.map((function(e){return n.fetchSlice(e,r)}))));case 2:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"fetchSlice",value:(o=Te(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("fetching of slice ".concat(t," not possible, not implemented"));case 1:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"fileSize",get:function(){return null}},{key:"close",value:(i=Te(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})}])&&Re(t.prototype,r),n&&Re(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ce=r(11354),Me=r.n(Ce);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ae(e,t,r){return t&&Ie(e.prototype,t),r&&Ie(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ue(e,t)}function Ze(e){var t=ze();return function(){var r,n=qe(e);if(t){var i=qe(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ge(e){var t="function"==typeof Map?new Map:void 0;return(Ge=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Be(e,arguments,qe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ue(n,e)})(e)}function Be(e,t,r){return(Be=ze()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&Ue(i,r.prototype),i}).apply(null,arguments)}function ze(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ue(e,t){return(Ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ve(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Xe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ve(o,n,i,a,s,"next",e)}function s(e){Ve(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Ye(e){return We.apply(this,arguments)}function We(){return(We=Xe(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ke(e,t){var r=Array.isArray(e)?e:Array.from(e),n=Array.isArray(t)?t:Array.from(t);return r.map((function(e,t){return[e,n[t]]}))}var He=function(e){De(r,e);var t=Ze(r);function r(e){var n;return Le(this,r),n=t.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(Ne(n),r),n.name="AbortError",n}return Ae(r)}(Ge(Error)),$e=function(e){De(r,e);var t=Ze(r);function r(e,n){var i;return Le(this,r),(i=t.call(this,n)).errors=e,i.message=n,i.name="AggregateError",i}return Ae(r)}(Ge(Error));function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||tt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function tt(e,t){if(e){if("string"==typeof e)return rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rt(e,t):void 0}}function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nt(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function it(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){nt(o,n,i,a,s,"next",e)}function s(e){nt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ut(e);if(t){var i=ut(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return st(this,r)}}function st(e,t){if(t&&("object"===Je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ut(e){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ft(e,t,r){return t&&ct(e.prototype,t),r&&ct(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var ht=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;lt(this,e),this.offset=t,this.length=r,this.data=n}return ft(e,[{key:"top",get:function(){return this.offset+this.length}}]),e}(),pt=ft((function e(t,r,n){lt(this,e),this.offset=t,this.length=r,this.blockIds=n})),dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(n,e);var t,r=at(n);function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.blockSize,a=void 0===o?65536:o,s=i.cacheSize,u=void 0===s?100:s;return lt(this,n),(t=r.call(this)).source=e,t.blockSize=a,t.blockCache=new(Me())({max:u}),t.blockRequests=new Map,t.blockIdsToFetch=new Set,t}return ft(n,[{key:"fileSize",get:function(){return this.source.fileSize}},{key:"fetch",value:(t=it(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S,E,T,R,P,C,M,j,I,A,L,D,Z,F,N,G;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Map,i=new Map,o=new Set,a=et(t);try{for(a.s();!(s=a.n()).done;)for(u=s.value,l=u.offset,c=u.length,f=l+c,null!==(h=this.fileSize)&&(f=Math.min(f,h)),p=Math.floor(l/this.blockSize)*this.blockSize,d=p;d<f;d+=this.blockSize)y=Math.floor(d/this.blockSize),this.blockCache.has(y)?n.set(y,this.blockCache.get(y)):this.blockRequests.has(y)?i.set(y,this.blockRequests.get(y)):(this.blockIdsToFetch.has(y)||this.blockIdsToFetch.add(y),o.add(y))}catch(e){a.e(e)}finally{a.f()}return e.next=7,Ye();case 7:this.fetchBlocks(r),v=et(o),e.prev=9,v.s();case 11:if((m=v.n()).done){e.next=26;break}if(g=m.value,b=this.blockRequests.get(g),_=this.blockCache.get(g),!b){e.next=19;break}i.set(g,b),e.next=24;break;case 19:if(!_){e.next=23;break}n.set(g,_),e.next=24;break;case 23:throw new Error("Block ".concat(g," is not in the block requests"));case 24:e.next=11;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(9),v.e(e.t0);case 31:return e.prev=31,v.f(),e.finish(31);case 34:return e.next=36,Promise.allSettled(Array.from(i.values()));case 36:if(!(w=e.sent).some((function(e){return"rejected"===e.status}))){e.next=65;break}x=new Set,k=et(Ke(i.keys(),w));try{for(k.s();!(O=k.n()).done;)S=Qe(O.value,2),E=S[0],T=S[1],R=T.rejected,P=T.reason,R&&"AbortError"===P.name&&P.signal!==r&&(this.blockIdsToFetch.add(E),x.add(E))}catch(e){k.e(e)}finally{k.f()}if(!(this.blockIdsToFetch.length>0)){e.next=65;break}this.fetchBlocks(r),C=et(x),e.prev=44,C.s();case 46:if((M=C.n()).done){e.next=54;break}if(j=M.value,I=this.blockRequests.get(j)){e.next=51;break}throw new Error("Block ".concat(j," is not in the block requests"));case 51:i.set(j,I);case 52:e.next=46;break;case 54:e.next=59;break;case 56:e.prev=56,e.t1=e.catch(44),C.e(e.t1);case 59:return e.prev=59,C.f(),e.finish(59);case 62:return e.next=64,Promise.allSettled(Array.from(i.values()));case 64:w=e.sent;case 65:if(!w.some((function(e){return"rejected"===e.status}))){e.next=69;break}if(!r||!r.aborted){e.next=68;break}throw new He("Request was aborted");case 68:throw new $e(w.filter((function(e){return"rejected"===e.status})).map((function(e){return e.reason})),"Request failed");case 69:A=w.map((function(e){return e.value})),L=new Map(Ke(Array.from(i.keys()),A)),D=et(n);try{for(D.s();!(Z=D.n()).done;)F=Qe(Z.value,2),N=F[0],G=F[1],L.set(N,G)}catch(e){D.e(e)}finally{D.f()}return e.abrupt("return",this.readSliceData(t,L));case 74:case"end":return e.stop()}}),e,this,[[9,28,31,34],[44,56,59,62]])}))),function(e,r){return t.apply(this,arguments)})},{key:"fetchBlocks",value:function(e){var t=this;this.blockIdsToFetch.size>0&&function(){for(var r=t.groupBlocks(t.blockIdsToFetch),n=t.source.fetch(r,e),i=function(i){var o,a=et(r[i].blockIds);try{var s=function(){var r=o.value,a=it(regeneratorRuntime.mark((function o(){var a,s,u,l,c,f;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,n;case 3:return o.t0=i,a=o.sent[o.t0],s=r*t.blockSize,u=s-a.offset,l=Math.min(u+t.blockSize,a.data.byteLength),c=a.data.slice(u,l),f=new ht(s,c.byteLength,c),t.blockCache.set(r,f),o.abrupt("return",f);case 14:throw o.prev=14,o.t1=o.catch(0),"AbortError"===o.t1.name&&(o.t1.signal=e),o.t1;case 18:return o.prev=18,t.blockRequests.delete(r),o.finish(18);case 21:case"end":return o.stop()}}),o,null,[[0,14,18,21]])})))();t.blockRequests.set(r,a)};for(a.s();!(o=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}},o=0;o<r.length;++o)i(o);t.blockIdsToFetch.clear()}()}},{key:"groupBlocks",value:function(e){var t=Array.from(e).sort((function(e,t){return e-t}));if(0===t.length)return[];var r,n=[],i=null,o=[],a=et(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;null===i||i+1===s?(n.push(s),i=s):(o.push(new pt(n[0]*this.blockSize,n.length*this.blockSize,n)),n=[s],i=s)}}catch(e){a.e(e)}finally{a.f()}return o.push(new pt(n[0]*this.blockSize,n.length*this.blockSize,n)),o}},{key:"readSliceData",value:function(e,t){var r=this;return e.map((function(e){for(var n=e.offset+e.length,i=Math.floor(e.offset/r.blockSize),o=Math.floor((e.offset+e.length)/r.blockSize),a=new ArrayBuffer(e.length),s=new Uint8Array(a),u=i;u<=o;++u){var l=t.get(u),c=l.offset-e.offset,f=0,h=0,p=void 0;c<0?f=-c:c>0&&(h=c),p=l.top-n<0?l.length-f:n-l.offset-f;var d=new Uint8Array(l.data,f,p);s.set(d,h)}return a}))}}]),n}(Pe);function yt(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function vt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){yt(o,n,i,a,s,"next",e)}function s(e){yt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bt(e,t,r){return t&>(e.prototype,t),r&>(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var _t=function(){function e(){mt(this,e)}var t;return bt(e,[{key:"ok",get:function(){return this.status>=200&&this.status<=299}},{key:"status",get:function(){throw new Error("not implemented")}},{key:"getHeader",value:function(e){throw new Error("not implemented")}},{key:"getData",value:(t=vt(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("not implemented");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),wt=function(){function e(t){mt(this,e),this.url=t}var t;return bt(e,[{key:"request",value:(t=vt(regeneratorRuntime.mark((function e(){var t,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw(t=r.length>0&&void 0!==r[0]?r[0]:{}).headers,t.credentials,t.signal,new Error("request is not implemented");case 2:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}();function xt(e){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Ot(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){kt(o,n,i,a,s,"next",e)}function s(e){kt(o,n,i,a,s,"throw",e)}a(void 0)}))}}function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tt(e,t,r){return t&&Et(e.prototype,t),r&&Et(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pt(e,t)}function Pt(e,t){return(Pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jt(e);if(t){var i=jt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mt(this,r)}}function Mt(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){Rt(n,e);var t,r=Ct(n);function n(e){var t;return St(this,n),(t=r.call(this)).response=e,t}return Tt(n,[{key:"status",get:function(){return this.response.status}},{key:"getHeader",value:function(e){return this.response.headers.get(e)}},{key:"getData",value:(t=Ot(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.response.arrayBuffer){e.next=6;break}return e.next=3,this.response.arrayBuffer();case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,this.response.buffer();case 8:e.t0=e.sent.buffer;case 9:return t=e.t0,e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(_t),At=function(e){Rt(n,e);var t,r=Ct(n);function n(e,t){var i;return St(this,n),(i=r.call(this,e)).credentials=t,i}return Tt(n,[{key:"request",value:(t=Ot(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},r=t.headers,n=t.credentials,i=t.signal,e.next=3,fetch(this.url,{headers:r,credentials:n,signal:i});case 3:return o=e.sent,e.abrupt("return",new It(o));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(wt);function Lt(e){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Zt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ft(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Nt(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ft(o,n,i,a,s,"next",e)}function s(e){Ft(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zt(e,t,r){return t&&Bt(e.prototype,t),r&&Bt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ut(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Yt(e);if(t){var i=Yt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Xt(this,r)}}function Xt(e,t){if(t&&("object"===Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yt(e){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=function(e){Ut(n,e);var t,r=Vt(n);function n(e,t){var i;return Gt(this,n),(i=r.call(this)).xhr=e,i.data=t,i}return zt(n,[{key:"status",get:function(){return this.xhr.status}},{key:"getHeader",value:function(e){return this.xhr.getResponseHeader(e)}},{key:"getData",value:(t=Nt(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.data);case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(_t),Kt=function(e){Ut(n,e);var t,r=Vt(n);function n(){return Gt(this,n),r.apply(this,arguments)}return zt(n,[{key:"constructRequest",value:function(e,t){var r=this;return new Promise((function(n,i){var o=new XMLHttpRequest;o.open("GET",r.url),o.responseType="arraybuffer";for(var a=0,s=Object.entries(e);a<s.length;a++){var u=Dt(s[a],2),l=u[0],c=u[1];o.setRequestHeader(l,c)}o.onload=function(){var e=o.response;n(new Wt(o,e))},o.onerror=i,o.onabort=function(){return i(new He("Request aborted"))},o.send(),t&&(t.aborted&&o.abort(),t.addEventListener("abort",(function(){return o.abort()})))}))}},{key:"request",value:(t=Nt(regeneratorRuntime.mark((function e(){var t,r,n,i,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.headers,n=t.signal,e.next=3,this.constructRequest(r,n);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(wt),Ht=r(20901),$t=r.n(Ht),Jt=r(2300),Qt=r.n(Jt),er=r(25473),tr=r.n(er);function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){or(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function sr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ar(o,n,i,a,s,"next",e)}function s(e){ar(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cr(e,t,r){return t&&lr(e.prototype,t),r&&lr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hr(e,t)}function hr(e,t){return(hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yr(e);if(t){var i=yr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return dr(this,r)}}function dr(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yr(e){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vr=function(e){fr(n,e);var t,r=pr(n);function n(e,t){var i;return ur(this,n),(i=r.call(this)).response=e,i.dataPromise=t,i}return cr(n,[{key:"status",get:function(){return this.response.statusCode}},{key:"getHeader",value:function(e){return this.response.headers[e]}},{key:"getData",value:(t=sr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.dataPromise;case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(_t),mr=function(e){fr(n,e);var t,r=pr(n);function n(e){var t;return ur(this,n),(t=r.call(this,e)).parsedUrl=tr().parse(t.url),t.httpApi="http:"===t.parsedUrl.protocol?$t():Qt(),t}return cr(n,[{key:"constructRequest",value:function(e,t){var r=this;return new Promise((function(n,i){var o=r.httpApi.get(ir(ir({},r.parsedUrl),{},{headers:e}),(function(e){var t=new Promise((function(t){var r=[];e.on("data",(function(e){r.push(e)})),e.on("end",(function(){var e=Buffer.concat(r).buffer;t(e)})),e.on("error",i)}));n(new vr(e,t))}));o.on("error",i),t&&(t.aborted&&o.destroy(new He("Request aborted")),t.addEventListener("abort",(function(){return o.destroy(new He("Request aborted"))})))}))}},{key:"request",value:(t=sr(regeneratorRuntime.mark((function e(){var t,r,n,i,o=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.headers,n=t.signal,e.next=3,this.constructRequest(r,n);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),n}(wt);function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var br=["headers","credentials","maxRanges","allowFullFile"],_r=["headers","maxRanges","allowFullFile"],wr=["headers","maxRanges","allowFullFile"],xr=["forceXHR"];function kr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Rr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Tr(o,n,i,a,s,"next",e)}function s(e){Tr(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Pr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Cr(e,t){return(Cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ir(e);if(t){var i=Ir(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return jr(this,r)}}function jr(e,t){if(t&&("object"===gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ar=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cr(e,t)}(u,e);var t,r,n,i,o,a,s=Mr(u);function u(e,t,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(i=s.call(this)).client=e,i.headers=t,i.maxRanges=r,i.allowFullFile=n,i._fileSize=null,i}return t=u,(r=[{key:"fetch",value:(a=Rr(regeneratorRuntime.mark((function e(t,r){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.maxRanges>=t.length)){e.next=4;break}return e.abrupt("return",this.fetchSlices(t,r));case 4:this.maxRanges>0&&t.length;case 5:return e.abrupt("return",Promise.all(t.map((function(e){return n.fetchSlice(e,r)}))));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"fetchSlices",value:(o=Rr(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s,u,l,c,f,h,p,d,y=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.request({headers:Sr(Sr({},this.headers),{},{Range:"bytes=".concat(t.map((function(e){var t=e.offset,r=e.length;return"".concat(t,"-").concat(t+r)})).join(","))}),signal:r});case 2:if((n=e.sent).ok){e.next=7;break}throw new Error("Error fetching data.");case 7:if(206!==n.status){e.next=32;break}if(v=n.getHeader("content-type"),m=void 0,m=ye(v.split(";").map((function(e){return e.trim()}))),i={type:m[0],params:xe(m.slice(1).map((function(e){return e.split("=")})))},o=i.params,"multipart/byteranges"!==i.type){e.next=18;break}return e.t0=Se,e.next=13,n.getData();case 13:return e.t1=e.sent,e.t2=o.boundary,a=(0,e.t0)(e.t1,e.t2),this._fileSize=a[0].fileSize||null,e.abrupt("return",a);case 18:return e.next=20,n.getData();case 20:if(s=e.sent,u=Oe(n.getHeader("content-range")),l=u.start,c=u.end,f=u.total,this._fileSize=f||null,h=[{data:s,offset:l,length:c-l}],!(t.length>1)){e.next=29;break}return e.next=27,Promise.all(t.slice(1).map((function(e){return y.fetchSlice(e,r)})));case 27:return p=e.sent,e.abrupt("return",h.concat(p));case 29:return e.abrupt("return",h);case 32:if(this.allowFullFile){e.next=34;break}throw new Error("Server responded with full file");case 34:return e.next=36,n.getData();case 36:return d=e.sent,this._fileSize=d.byteLength,e.abrupt("return",[{data:d,offset:0,length:d.byteLength}]);case 39:case"end":return e.stop()}var v,m}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"fetchSlice",value:(i=Rr(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.offset,i=t.length,e.next=3,this.client.request({headers:Sr(Sr({},this.headers),{},{Range:"bytes=".concat(n,"-").concat(n+i)}),signal:r});case 3:if((o=e.sent).ok){e.next=8;break}throw new Error("Error fetching data.");case 8:if(206!==o.status){e.next=17;break}return e.next=11,o.getData();case 11:return a=e.sent,s=Oe(o.getHeader("content-range")),u=s.total,this._fileSize=u||null,e.abrupt("return",{data:a,offset:n,length:i});case 17:if(this.allowFullFile){e.next=19;break}throw new Error("Server responded with full file");case 19:return e.next=21,o.getData();case 21:return l=e.sent,this._fileSize=l.byteLength,e.abrupt("return",{data:l,offset:0,length:l.byteLength});case 24:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"fileSize",get:function(){return this._fileSize}}])&&Pr(t.prototype,r),n&&Pr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(Pe);function Lr(e,t){var r=t.blockSize,n=t.cacheSize;return null===r?e:new dt(e,r,n)}function Dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.headers,n=void 0===r?{}:r,i=t.credentials,o=t.maxRanges,a=void 0===o?0:o,s=t.allowFullFile,u=void 0!==s&&s,l=kr(t,br),c=new At(e,i),f=new Ar(c,n,a,u);return Lr(f,l)}function Zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.headers,n=void 0===r?{}:r,i=t.maxRanges,o=void 0===i?0:i,a=t.allowFullFile,s=void 0!==a&&a,u=kr(t,_r),l=new Kt(e),c=new Ar(l,n,o,s);return Lr(c,u)}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.headers,n=void 0===r?{}:r,i=t.maxRanges,o=void 0===i?0:i,a=t.allowFullFile,s=void 0!==a&&a,u=kr(t,wr),l=new mr(e),c=new Ar(l,n,o,s);return Lr(c,u)}function Nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.forceXHR,n=void 0!==r&&r,i=kr(t,xr);return"function"!=typeof fetch||n?"undefined"!=typeof XMLHttpRequest?Zr(e,i):Fr(e,i):Dr(e,i)}function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(r),!0).forEach((function(t){Ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xr(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function Yr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Xr(o,n,i,a,s,"next",e)}function s(e){Xr(o,n,i,a,s,"throw",e)}a(void 0)}))}}function Wr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}function Kr(e){var t=Qr();return function(){var r,n=tn(e);if(t){var i=tn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Hr(this,r)}}function Hr(e,t){if(t&&("object"===Gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $r(e){var t="function"==typeof Map?new Map:void 0;return($r=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Jr(e,arguments,tn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),en(n,e)})(e)}function Jr(e,t,r){return(Jr=Qr()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&en(i,r.prototype),i}).apply(null,arguments)}function Qr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function en(e,t){return(en=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nn(e,t,r){return t&&rn(e.prototype,t),r&&rn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e){switch(e){case A.sf.BYTE:case A.sf.ASCII:case A.sf.SBYTE:case A.sf.UNDEFINED:return 1;case A.sf.SHORT:case A.sf.SSHORT:return 2;case A.sf.LONG:case A.sf.SLONG:case A.sf.FLOAT:case A.sf.IFD:return 4;case A.sf.RATIONAL:case A.sf.SRATIONAL:case A.sf.DOUBLE:case A.sf.LONG8:case A.sf.SLONG8:case A.sf.IFD8:return 8;default:throw new RangeError("Invalid field type: ".concat(e))}}function sn(e){var t=e.GeoKeyDirectory;if(!t)return null;for(var r={},n=4;n<=4*t[3];n+=4){var i=A.P1[t[n]],o=t[n+1]?A.L[t[n+1]]:null,a=t[n+2],s=t[n+3],u=null;if(o){if(null==(u=e[o]))throw new Error("Could not get value of geoKey '".concat(i,"'."));"string"==typeof u?u=u.substring(s,s+a-1):u.subarray&&(u=u.subarray(s,s+a),1===a&&(u=u[0]))}else u=s;r[i]=u}return r}function un(e,t,r,n){var i=null,o=null,a=an(t);switch(t){case A.sf.BYTE:case A.sf.ASCII:case A.sf.UNDEFINED:i=new Uint8Array(r),o=e.readUint8;break;case A.sf.SBYTE:i=new Int8Array(r),o=e.readInt8;break;case A.sf.SHORT:i=new Uint16Array(r),o=e.readUint16;break;case A.sf.SSHORT:i=new Int16Array(r),o=e.readInt16;break;case A.sf.LONG:case A.sf.IFD:i=new Uint32Array(r),o=e.readUint32;break;case A.sf.SLONG:i=new Int32Array(r),o=e.readInt32;break;case A.sf.LONG8:case A.sf.IFD8:i=new Array(r),o=e.readUint64;break;case A.sf.SLONG8:i=new Array(r),o=e.readInt64;break;case A.sf.RATIONAL:i=new Uint32Array(2*r),o=e.readUint32;break;case A.sf.SRATIONAL:i=new Int32Array(2*r),o=e.readInt32;break;case A.sf.FLOAT:i=new Float32Array(r),o=e.readFloat32;break;case A.sf.DOUBLE:i=new Float64Array(r),o=e.readFloat64;break;default:throw new RangeError("Invalid field type: ".concat(t))}if(t!==A.sf.RATIONAL&&t!==A.sf.SRATIONAL)for(var s=0;s<r;++s)i[s]=o.call(e,n+s*a);else for(var u=0;u<r;u+=2)i[u]=o.call(e,n+u*a),i[u+1]=o.call(e,n+(u*a+4));return t===A.sf.ASCII?new TextDecoder("utf-8").decode(i):i}var ln=nn((function e(t,r,n){on(this,e),this.fileDirectory=t,this.geoKeyDirectory=r,this.nextIFDByteOffset=n})),cn=function(e){Wr(r,e);var t=Kr(r);function r(e){var n;return on(this,r),(n=t.call(this,"No image at index ".concat(e))).index=e,n}return nn(r)}($r(Error)),fn=function(){function e(){on(this,e)}var t;return nn(e,[{key:"readRasters",value:(t=Yr(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,c,f,h,p,d,y,v,m,g,b,_,w,x,k,O,S,E,T,R,P,C,M,j,I,A,L,D,Z,F,N,G=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=G.length>0&&void 0!==G[0]?G[0]:{},r=t.window,n=t.width,i=t.height,o=t.resX,a=t.resY,s=t.bbox,e.next=5,this.getImage();case 5:return u=e.sent,l=u,e.next=9,this.getImageCount();case 9:if(c=e.sent,f=u.getBoundingBox(),!r||!s){e.next=13;break}throw new Error('Both "bbox" and "window" passed.');case 13:if(!n&&!i){e.next=24;break}if(r&&(h=u.getOrigin(),p=qr(h,2),d=p[0],y=p[1],v=u.getResolution(),m=qr(v,2),g=m[0],b=m[1],s=[d+r[0]*g,y+r[1]*b,d+r[2]*g,y+r[3]*b]),_=s||f,!n){e.next=20;break}if(!o){e.next=19;break}throw new Error("Both width and resX passed");case 19:o=(_[2]-_[0])/n;case 20:if(!i){e.next=24;break}if(!a){e.next=23;break}throw new Error("Both width and resY passed");case 23:a=(_[3]-_[1])/i;case 24:if(!o&&!a){e.next=48;break}w=[],x=0;case 27:if(!(x<c)){e.next=36;break}return e.next=30,this.getImage(x);case 30:k=e.sent,O=k.fileDirectory,S=O.SubfileType,E=O.NewSubfileType,(0===x||2===S||1&E)&&w.push(k);case 33:++x,e.next=27;break;case 36:w.sort((function(e,t){return e.getWidth()-t.getWidth()})),T=0;case 38:if(!(T<w.length)){e.next=48;break}if(R=w[T],P=(f[2]-f[0])/R.getWidth(),C=(f[3]-f[1])/R.getHeight(),l=R,!(o&&o>P||a&&a>C)){e.next=45;break}return e.abrupt("break",48);case 45:++T,e.next=38;break;case 48:return M=r,s&&(j=u.getOrigin(),I=qr(j,2),A=I[0],L=I[1],D=l.getResolution(u),Z=qr(D,2),F=Z[0],N=Z[1],M=[Math.round((s[0]-A)/F),Math.round((s[1]-L)/N),Math.round((s[2]-A)/F),Math.round((s[3]-L)/N)],M=[Math.min(M[0],M[2]),Math.min(M[1],M[3]),Math.max(M[0],M[2]),Math.max(M[1],M[3])]),e.abrupt("return",l.readRasters(zr(zr({},t),{},{window:M})));case 51:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),hn=function(e){Wr(l,e);var t,r,n,i,o,a,s,u=Kr(l);function l(e,t,r,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return on(this,l),(i=u.call(this)).source=e,i.littleEndian=t,i.bigTiff=r,i.firstIFDOffset=n,i.cache=o.cache||!1,i.ifdRequests=[],i.ghostValues=null,i}return nn(l,[{key:"getSlice",value:(s=Yr(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.bigTiff?4048:1024,e.t0=de,e.next=4,this.source.fetch([{offset:t,length:void 0!==r?r:n}]);case 4:return e.t1=e.sent[0],e.t2=t,e.t3=this.littleEndian,e.t4=this.bigTiff,e.abrupt("return",new e.t0(e.t1,e.t2,e.t3,e.t4));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"parseFileDirectoryAt",value:(a=Yr(regeneratorRuntime.mark((function e(t){var r,n,i,o,a,s,u,l,c,f,h,p,d,y,v,m,g,b,_,w;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.bigTiff?20:12,n=this.bigTiff?8:2,e.next=4,this.getSlice(t);case 4:if(i=e.sent,o=this.bigTiff?i.readUint64(t):i.readUint16(t),a=o*r+(this.bigTiff?16:6),i.covers(t,a)){e.next=11;break}return e.next=10,this.getSlice(t,a);case 10:i=e.sent;case 11:s={},u=t+(this.bigTiff?8:2),l=0;case 14:if(!(l<o)){e.next=41;break}if(c=i.readUint16(u),f=i.readUint16(u+2),h=this.bigTiff?i.readUint64(u+4):i.readUint32(u+4),p=void 0,d=void 0,y=an(f),v=u+(this.bigTiff?12:8),!(y*h<=(this.bigTiff?8:4))){e.next=26;break}p=un(i,f,h,v),e.next=36;break;case 26:if(m=i.readOffset(v),g=an(f)*h,!i.covers(m,g)){e.next=32;break}p=un(i,f,h,m),e.next=36;break;case 32:return e.next=34,this.getSlice(m,g);case 34:b=e.sent,p=un(b,f,h,m);case 36:d=1===h&&-1===A.It.indexOf(c)&&f!==A.sf.RATIONAL&&f!==A.sf.SRATIONAL?p[0]:p,s[A.L[c]]=d;case 38:u+=r,++l,e.next=14;break;case 41:return _=sn(s),w=i.readOffset(t+n+r*o),e.abrupt("return",new ln(s,_,w));case 44:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"requestIFD",value:(o=Yr(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.ifdRequests[t]){e.next=4;break}return e.abrupt("return",this.ifdRequests[t]);case 4:if(0!==t){e.next=9;break}return this.ifdRequests[t]=this.parseFileDirectoryAt(this.firstIFDOffset),e.abrupt("return",this.ifdRequests[t]);case 9:if(this.ifdRequests[t-1]){e.next=19;break}e.prev=10,this.ifdRequests[t-1]=this.requestIFD(t-1),e.next=19;break;case 14:if(e.prev=14,e.t0=e.catch(10),!(e.t0 instanceof cn)){e.next=18;break}throw new cn(t);case 18:throw e.t0;case 19:return this.ifdRequests[t]=Yr(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.ifdRequests[t-1];case 2:if(0!==(n=e.sent).nextIFDByteOffset){e.next=5;break}throw new cn(t);case 5:return e.abrupt("return",r.parseFileDirectoryAt(n.nextIFDByteOffset));case 6:case"end":return e.stop()}}),e)})))(),e.abrupt("return",this.ifdRequests[t]);case 21:case"end":return e.stop()}}),e,this,[[10,14]])}))),function(e){return o.apply(this,arguments)})},{key:"getImage",value:(i=Yr(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:0,e.next=3,this.requestIFD(t);case 3:return r=e.sent,e.abrupt("return",new ce(r.fileDirectory,r.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source));case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"getImageCount",value:(n=Yr(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=!0;case 2:if(!r){e.next=18;break}return e.prev=3,e.next=6,this.requestIFD(t);case 6:++t,e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof cn)){e.next=15;break}r=!1,e.next=16;break;case 15:throw e.t0;case 16:e.next=2;break;case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(){return n.apply(this,arguments)})},{key:"getGhostValues",value:(r=Yr(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.bigTiff?16:8,!this.ghostValues){e.next=3;break}return e.abrupt("return",this.ghostValues);case 3:return n=(r="GDAL_STRUCTURAL_METADATA_SIZE=").length+100,e.next=7,this.getSlice(t,n);case 7:if(i=e.sent,r!==un(i,A.sf.ASCII,r.length,t)){e.next=19;break}if(o=un(i,A.sf.ASCII,n,t),a=o.split("\n")[0],!((s=Number(a.split("=")[1].split(" ")[0])+a.length)>n)){e.next=16;break}return e.next=15,this.getSlice(t,s);case 15:i=e.sent;case 16:u=un(i,A.sf.ASCII,s,t),this.ghostValues={},u.split("\n").filter((function(e){return e.length>0})).map((function(e){return e.split("=")})).forEach((function(e){var t=qr(e,2),r=t[0],n=t[1];l.ghostValues[r]=n}));case 19:return e.abrupt("return",this.ghostValues);case 20:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){return"function"==typeof this.source.close&&this.source.close()}}],[{key:"fromSource",value:(t=Yr(regeneratorRuntime.mark((function e(t,r,n){var i,o,a,s,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetch([{offset:0,length:1024}],n);case 2:if(i=e.sent[0],o=new he(i),18761!==(a=o.getUint16(0,0))){e.next=9;break}s=!0,e.next=14;break;case 9:if(19789!==a){e.next=13;break}s=!1,e.next=14;break;case 13:throw new TypeError("Invalid byte order value.");case 14:if(42!==(u=o.getUint16(2,s))){e.next=19;break}c=!1,e.next=27;break;case 19:if(43!==u){e.next=26;break}if(c=!0,8===o.getUint16(4,s)){e.next=24;break}throw new Error("Unsupported offset byte-size.");case 24:e.next=27;break;case 26:throw new TypeError("Invalid magic number.");case 27:return f=c?o.getUint64(8,s):o.getUint32(4,s),e.abrupt("return",new l(t,s,c,f,r));case 29:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})}]),l}(fn),pn=function(e){Wr(o,e);var t,r,n,i=Kr(o);function o(e,t){var r;return on(this,o),(r=i.call(this)).mainFile=e,r.overviewFiles=t,r.imageFiles=[e].concat(t),r.fileDirectoriesPerFile=null,r.fileDirectoriesPerFileParsing=null,r.imageCount=null,r}return nn(o,[{key:"parseFileDirectoriesPerFile",value:(n=Yr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map((function(e){return e.parseFileDirectoryAt(e.firstIFDOffset)}))),e.next=3,Promise.all(t);case 3:return this.fileDirectoriesPerFile=e.sent,e.abrupt("return",this.fileDirectoriesPerFile);case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getImage",value:(r=Yr(regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:0,e.next=3,this.getImageCount();case 3:return e.next=5,this.parseFileDirectoriesPerFile();case 5:r=0,n=0,i=0;case 8:if(!(i<this.imageFiles.length)){e.next=26;break}o=this.imageFiles[i],a=0;case 11:if(!(a<this.imageCounts[i])){e.next=22;break}if(t!==r){e.next=17;break}return e.next=15,o.requestIFD(n);case 15:return s=e.sent,e.abrupt("return",new ce(s.fileDirectory,s.geoKeyDirectory,o.dataView,o.littleEndian,o.cache,o.source));case 17:r++,n++;case 19:a++,e.next=11;break;case 22:n=0;case 23:i++,e.next=8;break;case 26:throw new RangeError("Invalid image index");case 27:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getImageCount",value:(t=Yr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this.imageCount){e.next=2;break}return e.abrupt("return",this.imageCount);case 2:return t=[this.mainFile.getImageCount()].concat(this.overviewFiles.map((function(e){return e.getImageCount()}))),e.next=5,Promise.all(t);case 5:return this.imageCounts=e.sent,this.imageCount=this.imageCounts.reduce((function(e,t){return e+t}),0),e.abrupt("return",this.imageCount);case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),o}(fn);function dn(){return(dn=Yr(regeneratorRuntime.mark((function e(t){var r,n,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},n=i.length>2?i[2]:void 0,e.abrupt("return",hn.fromSource(Nr(t,r),n));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yn(){return(yn=Yr(regeneratorRuntime.mark((function e(t){var r,n,i,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2&&void 0!==s[2]?s[2]:{},i=s.length>3?s[3]:void 0,e.next=5,hn.fromSource(Nr(t,n),i);case 5:return o=e.sent,e.next=8,Promise.all(r.map((function(e){return hn.fromSource(Nr(e,n))})));case 8:return a=e.sent,e.abrupt("return",new pn(o,a));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vn=r(85094),mn=(vn.registerSerializer,vn.spawn),gn=(vn.BlobWorker,vn.DefaultSerializer,vn.Pool),bn=(vn.Thread,vn.Transfer),_n=vn.Worker;function wn(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function xn(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){wn(o,n,i,a,s,"next",e)}function s(e){wn(o,n,i,a,s,"throw",e)}a(void 0)}))}}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function On(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Sn="undefined"!=typeof navigator?navigator.hardwareConcurrency:null,En=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sn,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new _n("./decoder.worker.js");kn(this,e),this.pool=gn((function(){return mn(r)}),t)}var t,r,n,i;return t=e,(r=[{key:"decode",value:(i=xn(regeneratorRuntime.mark((function e(t,r){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){n.pool.queue(function(){var n=xn(regeneratorRuntime.mark((function n(o){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,o(t,bn(r));case 3:a=n.sent,e(a),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),i(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e){return n.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})},{key:"destroy",value:function(){this.pool.terminate(!0)}}])&&On(t.prototype,r),n&&On(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Tn=r(12810),Rn=r(62990);var Pn=r(86923),Cn=r(7877),Mn=r(81834);function jn(e){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function In(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fn(e);if(t){var i=Fn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Dn(this,r)}}function Dn(e,t){if(t&&("object"===jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zn(e)}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nn,Gn="STATISTICS_MAXIMUM",Bn="STATISTICS_MINIMUM";function zn(){var e;return Nn||(Nn=new En(void 0,(e='function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function asyncGeneratorStep(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){asyncGeneratorStep(i,n,a,o,s,"next",e)}function s(e){asyncGeneratorStep(i,n,a,o,s,"throw",e)}o(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var a=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var runtime={exports:{}};!function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),o=new A(n||[]);return i._invoke=function(e,t,r){var n=u;return function(a,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return I()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=x(o,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var l=c(e,t,r);if("normal"===l.type){if(n=r.done?p:d,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=p,r.method="throw",r.arg=l.arg)}}}(e,r,o),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var u="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function g(){}function y(){}function _(){}var b={};l(b,i,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(M([])));w&&w!==r&&n.call(w,i)&&(b=w);var k=_.prototype=g.prototype=Object.create(b);function T(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(a,i,o,s){var l=c(e[a],e,i);if("throw"!==l.type){var f=l.arg,u=f.value;return u&&"object"===_typeof(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(u).then((function(e){f.value=e,o(f)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function x(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a \'throw\' method")}return m}var a=c(n,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function r(){for(;++a<e.length;)if(n.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=_,l(k,"constructor",_),l(_,"constructor",y),y.displayName=l(_,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},T(E.prototype),l(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var o=new E(f(t,r,n,a),i);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(k),l(k,s,"Generator"),l(k,i,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=M,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),f=n.call(o,"finallyLoc");if(l&&f){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(runtime);var worker={},isObservable=function(e){return!!e&&("symbol"===_typeof(Symbol.observable)&&"function"==typeof e[Symbol.observable]?e===e[Symbol.observable]():"function"==typeof e["@@observable"]&&e===e["@@observable"]())},common$1={},serializers={};function extendSerializer(e,t){var r=e.deserialize.bind(e),n=e.serialize.bind(e);return{deserialize:function(e){return t.deserialize(e,r)},serialize:function(e){return t.serialize(e,n)}}}Object.defineProperty(serializers,"__esModule",{value:!0}),serializers.DefaultSerializer=serializers.extendSerializer=void 0,serializers.extendSerializer=extendSerializer;var DefaultErrorSerializer={deserialize:function(e){return Object.assign(Error(e.message),{name:e.name,stack:e.stack})},serialize:function(e){return{__error_marker:"$$error",message:e.message,name:e.name,stack:e.stack}}},isSerializedError=function(e){return e&&"object"===_typeof(e)&&"__error_marker"in e&&"$$error"===e.__error_marker};serializers.DefaultSerializer={deserialize:function(e){return isSerializedError(e)?DefaultErrorSerializer.deserialize(e):e},serialize:function(e){return e instanceof Error?DefaultErrorSerializer.serialize(e):e}},Object.defineProperty(common$1,"__esModule",{value:!0}),common$1.serialize=common$1.deserialize=common$1.registerSerializer=void 0;var serializers_1=serializers,registeredSerializer=serializers_1.DefaultSerializer;function registerSerializer(e){registeredSerializer=serializers_1.extendSerializer(registeredSerializer,e)}function deserialize(e){return registeredSerializer.deserialize(e)}function serialize(e){return registeredSerializer.serialize(e)}common$1.registerSerializer=registerSerializer,common$1.deserialize=deserialize,common$1.serialize=serialize;var transferable={},symbols={};Object.defineProperty(symbols,"__esModule",{value:!0}),symbols.$worker=symbols.$transferable=symbols.$terminate=symbols.$events=symbols.$errors=void 0,symbols.$errors=Symbol("thread.errors"),symbols.$events=Symbol("thread.events"),symbols.$terminate=Symbol("thread.terminate"),symbols.$transferable=Symbol("thread.transferable"),symbols.$worker=Symbol("thread.worker"),Object.defineProperty(transferable,"__esModule",{value:!0}),transferable.Transfer=transferable.isTransferDescriptor=void 0;var symbols_1=symbols;function isTransferable(e){return!(!e||"object"!==_typeof(e))}function isTransferDescriptor(e){return e&&"object"===_typeof(e)&&e[symbols_1.$transferable]}function Transfer$1(e,t){var r;if(!t){if(!isTransferable(e))throw Error();t=[e]}return _defineProperty(r={},symbols_1.$transferable,!0),_defineProperty(r,"send",e),_defineProperty(r,"transferables",t),r}transferable.isTransferDescriptor=isTransferDescriptor,transferable.Transfer=Transfer$1;var messages$1={},exports,MasterMessageType,WorkerMessageType;exports=messages$1,Object.defineProperty(exports,"__esModule",{value:!0}),exports.WorkerMessageType=exports.MasterMessageType=void 0,(MasterMessageType=exports.MasterMessageType||(exports.MasterMessageType={})).cancel="cancel",MasterMessageType.run="run",(WorkerMessageType=exports.WorkerMessageType||(exports.WorkerMessageType={})).error="error",WorkerMessageType.init="init",WorkerMessageType.result="result",WorkerMessageType.running="running",WorkerMessageType.uncaughtError="uncaughtError";var implementation$1={},implementation_browser={};Object.defineProperty(implementation_browser,"__esModule",{value:!0});var isWorkerRuntime$2=function(){var e="undefined"!=typeof self&&"undefined"!=typeof Window&&self instanceof Window;return!("undefined"==typeof self||!self.postMessage||e)},postMessageToMaster$2=function(e,t){self.postMessage(e,t)},subscribeToMasterMessages$2=function(e){var t=function(t){e(t.data)};return self.addEventListener("message",t),function(){self.removeEventListener("message",t)}};implementation_browser.default={isWorkerRuntime:isWorkerRuntime$2,postMessageToMaster:postMessageToMaster$2,subscribeToMasterMessages:subscribeToMasterMessages$2};var implementation_tinyWorker={};Object.defineProperty(implementation_tinyWorker,"__esModule",{value:!0}),"undefined"==typeof self&&(commonjsGlobal.self=commonjsGlobal);var isWorkerRuntime$1=function(){return!("undefined"==typeof self||!self.postMessage)},postMessageToMaster$1=function(e){self.postMessage(e)},muxingHandlerSetUp=!1,messageHandlers=new Set,subscribeToMasterMessages$1=function(e){muxingHandlerSetUp||(self.addEventListener("message",(function(e){messageHandlers.forEach((function(t){return t(e.data)}))})),muxingHandlerSetUp=!0),messageHandlers.add(e);return function(){return messageHandlers.delete(e)}};implementation_tinyWorker.default={isWorkerRuntime:isWorkerRuntime$1,postMessageToMaster:postMessageToMaster$1,subscribeToMasterMessages:subscribeToMasterMessages$1};var implementation_worker_threads={},worker_threads={},implementation;function selectImplementation(){return"function"==typeof __non_webpack_require__?__non_webpack_require__("worker_threads"):eval("require")("worker_threads")}function getImplementation(){return implementation||(implementation=selectImplementation()),implementation}Object.defineProperty(worker_threads,"__esModule",{value:!0}),worker_threads.default=getImplementation;var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(implementation_worker_threads,"__esModule",{value:!0});var worker_threads_1=__importDefault$1(worker_threads);function assertMessagePort(e){if(!e)throw Error("Invariant violation: MessagePort to parent is not available.");return e}var isWorkerRuntime=function(){return!worker_threads_1.default().isMainThread},postMessageToMaster=function(e,t){assertMessagePort(worker_threads_1.default().parentPort).postMessage(e,t)},subscribeToMasterMessages=function(e){var t=worker_threads_1.default().parentPort;if(!t)throw Error("Invariant violation: MessagePort to parent is not available.");var r=function(t){e(t)};return assertMessagePort(t).on("message",r),function(){assertMessagePort(t).off("message",r)}};function testImplementation(){worker_threads_1.default()}implementation_worker_threads.default={isWorkerRuntime:isWorkerRuntime,postMessageToMaster:postMessageToMaster,subscribeToMasterMessages:subscribeToMasterMessages,testImplementation:testImplementation};var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(implementation$1,"__esModule",{value:!0});var implementation_browser_1=__importDefault(implementation_browser),implementation_tiny_worker_1=__importDefault(implementation_tinyWorker),implementation_worker_threads_1=__importDefault(implementation_worker_threads),runningInNode="undefined"!=typeof process&&"browser"!==process.arch&&"pid"in process;function selectNodeImplementation(){try{return implementation_worker_threads_1.default.testImplementation(),implementation_worker_threads_1.default}catch(e){return implementation_tiny_worker_1.default}}implementation$1.default=runningInNode?selectNodeImplementation():implementation_browser_1.default,function(e){var t=commonjsGlobal&&commonjsGlobal.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))},r=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.expose=e.isWorkerRuntime=e.Transfer=e.registerSerializer=void 0;var n=r(isObservable),a=common$1,i=transferable,o=messages$1,s=r(implementation$1),l=common$1;Object.defineProperty(e,"registerSerializer",{enumerable:!0,get:function(){return l.registerSerializer}});var f=transferable;Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return f.Transfer}}),e.isWorkerRuntime=s.default.isWorkerRuntime;var c=!1,u=new Map,d=function(e){return e&&e.type===o.MasterMessageType.run},h=function(e){return n.default(e)||function(e){return e&&"object"===_typeof(e)&&"function"==typeof e.subscribe}(e)};function p(e){return i.isTransferDescriptor(e)?{payload:e.send,transferables:e.transferables}:{payload:e,transferables:void 0}}function m(e,t){var r=p(t),n=r.payload,i=r.transferables,l={type:o.WorkerMessageType.error,uid:e,error:a.serialize(n)};s.default.postMessageToMaster(l,i)}function g(e,t,r){var n=p(r),a=n.payload,i=n.transferables,l={type:o.WorkerMessageType.result,uid:e,complete:!!t||void 0,payload:a};s.default.postMessageToMaster(l,i)}function y(e,t){var r={type:o.WorkerMessageType.running,uid:e,resultType:t};s.default.postMessageToMaster(r)}function _(e){try{var t={type:o.WorkerMessageType.uncaughtError,error:a.serialize(e)};s.default.postMessageToMaster(t)}catch(t){console.error("Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.\\nLatest error:",t,"\\nOriginal error:",e)}}function b(e,r,n){return t(this,void 0,void 0,regeneratorRuntime.mark((function t(){var i,o,s,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,i=r.apply(void 0,_toConsumableArray(n)),t.next=7;break;case 4:return t.prev=4,t.t0=t.catch(0),t.abrupt("return",m(e,t.t0));case 7:if(o=h(i)?"observable":"promise",y(e,o),!h(i)){t.next=14;break}s=i.subscribe((function(t){return g(e,!1,a.serialize(t))}),(function(t){m(e,a.serialize(t)),u.delete(e)}),(function(){g(e,!0),u.delete(e)})),u.set(e,s),t.next=24;break;case 14:return t.prev=14,t.next=17,i;case 17:l=t.sent,g(e,!0,a.serialize(l)),t.next=24;break;case 21:t.prev=21,t.t1=t.catch(14),m(e,a.serialize(t.t1));case 24:case"end":return t.stop()}}),t,null,[[0,4],[14,21]])})))}e.expose=function(e){if(!s.default.isWorkerRuntime())throw Error("expose() called in the master thread.");if(c)throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");if(c=!0,"function"==typeof e)s.default.subscribeToMasterMessages((function(t){d(t)&&!t.method&&b(t.uid,e,t.args.map(a.deserialize))})),t={type:o.WorkerMessageType.init,exposed:{type:"function"}},s.default.postMessageToMaster(t);else{if("object"!==_typeof(e)||!e)throw Error("Invalid argument passed to expose(). Expected a function or an object, got: ".concat(e));s.default.subscribeToMasterMessages((function(t){d(t)&&t.method&&b(t.uid,e[t.method],t.args.map(a.deserialize))})),function(e){var t={type:o.WorkerMessageType.init,exposed:{type:"module",methods:e}};s.default.postMessageToMaster(t)}(Object.keys(e).filter((function(t){return"function"==typeof e[t]})))}var t;s.default.subscribeToMasterMessages((function(e){if((n=e)&&n.type===o.MasterMessageType.cancel){var t=e.uid,r=u.get(t);r&&(r.unsubscribe(),u.delete(t))}var n}))},"undefined"!=typeof self&&"function"==typeof self.addEventListener&&s.default.isWorkerRuntime()&&(self.addEventListener("error",(function(e){setTimeout((function(){return _(e.error||e)}),250)})),self.addEventListener("unhandledrejection",(function(e){var t=e.reason;t&&"string"==typeof t.message&&setTimeout((function(){return _(t)}),250)}))),"undefined"!=typeof process&&"function"==typeof process.on&&s.default.isWorkerRuntime()&&(process.on("uncaughtException",(function(e){setTimeout((function(){return _(e)}),250)})),process.on("unhandledRejection",(function(e){e&&"string"==typeof e.message&&setTimeout((function(){return _(e)}),250)})))}(worker);var WorkerContext=getDefaultExportFromCjs(worker),expose=WorkerContext.expose;WorkerContext.registerSerializer;var Transfer=WorkerContext.Transfer,registry=new Map;function addDecoder(e,t){Array.isArray(e)||(e=[e]),e.forEach((function(e){return registry.set(e,t)}))}function getDecoder(e){return _getDecoder.apply(this,arguments)}function _getDecoder(){return(_getDecoder=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=registry.get(t.Compression)){e.next=3;break}throw new Error("Unknown compression method identifier: ".concat(t.Compression));case 3:return e.next=5,r();case 5:return n=e.sent,e.abrupt("return",new n(t));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function decode(e,t){return _decode.apply(this,arguments)}function _decode(){return(_decode=_asyncToGenerator(regeneratorRuntime.mark((function e(t,r){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,getDecoder(t);case 2:return n=e.sent,e.next=5,n.decode(t,r);case 5:return a=e.sent,e.abrupt("return",Transfer(a));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function decodeRowAcc(e,t){var r=e.length-t,n=0;do{for(var a=t;a>0;a--)e[n+t]+=e[n],n++;r-=t}while(r>0)}function decodeRowFloatingPoint(e,t,r){for(var n=0,a=e.length,i=a/r;a>t;){for(var o=t;o>0;--o)e[n+t]+=e[n],++n;a-=t}for(var s=e.slice(),l=0;l<i;++l)for(var f=0;f<r;++f)e[r*l+f]=s[(r-f-1)*i+l]}function applyPredictor(e,t,r,n,a,i){if(!t||1===t)return e;for(var o=0;o<a.length;++o){if(a[o]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(a[o]!==a[0])throw new Error("When decoding with predictor, all samples must have the same size.")}for(var s=a[0]/8,l=2===i?1:a.length,f=0;f<n&&!(f*l*r*s>=e.byteLength);++f){var c=void 0;if(2===t){switch(a[0]){case 8:c=new Uint8Array(e,f*l*r*s,l*r*s);break;case 16:c=new Uint16Array(e,f*l*r*s,l*r*s/2);break;case 32:c=new Uint32Array(e,f*l*r*s,l*r*s/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(a[0]," bits per sample."))}decodeRowAcc(c,l)}else 3===t&&decodeRowFloatingPoint(c=new Uint8Array(e,f*l*r*s,l*r*s),l,s)}return e}addDecoder([void 0,1],(function(){return Promise.resolve().then((function(){return raw})).then((function(e){return e.default}))})),addDecoder(5,(function(){return Promise.resolve().then((function(){return lzw})).then((function(e){return e.default}))})),addDecoder(6,(function(){throw new Error("old style JPEG compression is not supported.")})),addDecoder(7,(function(){return Promise.resolve().then((function(){return jpeg})).then((function(e){return e.default}))})),addDecoder([8,32946],(function(){return Promise.resolve().then((function(){return deflate})).then((function(e){return e.default}))})),addDecoder(32773,(function(){return Promise.resolve().then((function(){return packbits})).then((function(e){return e.default}))})),addDecoder(34887,(function(){return Promise.resolve().then((function(){return lerc})).then((function(e){return e.default}))})),expose(decode);var BaseDecoder=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"decode",value:function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,r){var n,a,i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.decodeBlock(r);case 2:if(n=e.sent,1===(a=t.Predictor||1)){e.next=9;break}return i=!t.StripOffsets,o=i?t.TileWidth:t.ImageWidth,s=i?t.TileLength:t.RowsPerStrip||t.ImageLength,e.abrupt("return",applyPredictor(n,a,o,s,t.BitsPerSample,t.PlanarConfiguration));case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),e}(),RawDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"decodeBlock",value:function(e){return e}}]),r}(),raw=Object.freeze({__proto__:null,default:RawDecoder}),MIN_BITS=9,CLEAR_CODE=256,EOI_CODE=257,MAX_BYTELENGTH=12;function getByte(e,t,r){var n=t%8,a=Math.floor(t/8),i=8-n,o=t+r-8*(a+1),s=8*(a+2)-(t+r),l=8*(a+2)-t;if(s=Math.max(0,s),a>=e.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),EOI_CODE;var f=e[a]&Math.pow(2,8-n)-1,c=f<<=r-i;if(a+1<e.length){var u=e[a+1]>>>s;c+=u<<=Math.max(0,r-l)}if(o>8&&a+2<e.length){var d=8*(a+3)-(t+r);c+=e[a+2]>>>d}return c}function appendReversed(e,t){for(var r=t.length-1;r>=0;r--)e.push(t[r]);return e}function decompress(e){for(var t=new Uint16Array(4093),r=new Uint8Array(4093),n=0;n<=257;n++)t[n]=4096,r[n]=n;var a=258,i=MIN_BITS,o=0;function s(){a=258,i=MIN_BITS}function l(e){var t=getByte(e,o,i);return o+=i,t}function f(e,n){return r[a]=n,t[a]=e,++a-1}function c(e){for(var n=[],a=e;4096!==a;a=t[a])n.push(r[a]);return n}var u=[];s();for(var d,h=new Uint8Array(e),p=l(h);p!==EOI_CODE;){if(p===CLEAR_CODE){for(s(),p=l(h);p===CLEAR_CODE;)p=l(h);if(p===EOI_CODE)break;if(p>CLEAR_CODE)throw new Error("corrupted code at scanline ".concat(p));appendReversed(u,c(p)),d=p}else if(p<a){var m=c(p);appendReversed(u,m),f(d,m[m.length-1]),d=p}else{var g=c(d);if(!g)throw new Error("Bogus entry. Not in dictionary, ".concat(d," / ").concat(a,", position: ").concat(o));appendReversed(u,g),u.push(g[g.length-1]),f(d,g[g.length-1]),d=p}a+1>=Math.pow(2,i)&&(i===MAX_BYTELENGTH?d=void 0:i++),p=l(h)}return new Uint8Array(u)}var LZWDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"decodeBlock",value:function(e){return decompress(e).buffer}}]),r}(),lzw=Object.freeze({__proto__:null,default:LZWDecoder}),dctZigZag=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),dctCos1=4017,dctSin1=799,dctCos3=3406,dctSin3=2276,dctCos6=1567,dctSin6=3784,dctSqrt2=5793,dctSqrt1d2=2896;function buildHuffmanTable(e,t){for(var r=0,n=[],a=16;a>0&&!e[a-1];)--a;n.push({children:[],index:0});for(var i,o=n[0],s=0;s<a;s++){for(var l=0;l<e[s];l++){for((o=n.pop()).children[o.index]=t[r];o.index>0;)o=n.pop();for(o.index++,n.push(o);n.length<=s;)n.push(i={children:[],index:0}),o.children[o.index]=i.children,o=i;r++}s+1<a&&(n.push(i={children:[],index:0}),o.children[o.index]=i.children,o=i)}return n[0].children}function decodeScan(e,t,r,n,a,i,o,s,l){var f=r.mcusPerLine,c=r.progressive,u=t,d=t,h=0,p=0;function m(){if(p>0)return p--,h>>p&1;if(255===(h=e[d++])){var t=e[d++];if(t)throw new Error("unexpected marker: ".concat((h<<8|t).toString(16)))}return p=7,h>>>7}function g(e){for(var t,r=e;null!==(t=m());){if("number"==typeof(r=r[t]))return r;if("object"!==_typeof(r))throw new Error("invalid huffman sequence")}return null}function y(e){for(var t=e,r=0;t>0;){var n=m();if(null===n)return;r=r<<1|n,--t}return r}function _(e){var t=y(e);return t>=1<<e-1?t:t+(-1<<e)+1}var b=0;var v,w=0;function k(e,t,r,n,a){var i=r%f,o=(r/f|0)*e.v+n,s=i*e.h+a;t(e,e.blocks[o][s])}function T(e,t,r){var n=r/e.blocksPerLine|0,a=r%e.blocksPerLine;t(e,e.blocks[n][a])}var E,x,S,D,A,M,I=n.length;M=c?0===i?0===s?function(e,t){var r=g(e.huffmanTableDC),n=0===r?0:_(r)<<l;e.pred+=n,t[0]=e.pred}:function(e,t){t[0]|=m()<<l}:0===s?function(e,t){if(b>0)b--;else for(var r=i,n=o;r<=n;){var a=g(e.huffmanTableAC),s=15&a,f=a>>4;if(0===s){if(f<15){b=y(f)+(1<<f)-1;break}r+=16}else t[dctZigZag[r+=f]]=_(s)*(1<<l),r++}}:function(e,t){for(var r=i,n=o,a=0;r<=n;){var s=dctZigZag[r],f=t[s]<0?-1:1;switch(w){case 0:var c=g(e.huffmanTableAC),u=15&c;if(a=c>>4,0===u)a<15?(b=y(a)+(1<<a),w=4):(a=16,w=1);else{if(1!==u)throw new Error("invalid ACn encoding");v=_(u),w=a?2:3}continue;case 1:case 2:t[s]?t[s]+=(m()<<l)*f:0==--a&&(w=2===w?3:0);break;case 3:t[s]?t[s]+=(m()<<l)*f:(t[s]=v<<l,w=0);break;case 4:t[s]&&(t[s]+=(m()<<l)*f)}r++}4===w&&0==--b&&(w=0)}:function(e,t){var r=g(e.huffmanTableDC),n=0===r?0:_(r);e.pred+=n,t[0]=e.pred;for(var a=1;a<64;){var i=g(e.huffmanTableAC),o=15&i,s=i>>4;if(0===o){if(s<15)break;a+=16}else t[dctZigZag[a+=s]]=_(o),a++}};var R,O,C=0;O=1===I?n[0].blocksPerLine*n[0].blocksPerColumn:f*r.mcusPerColumn;for(var P=a||O;C<O;){for(x=0;x<I;x++)n[x].pred=0;if(b=0,1===I)for(E=n[0],A=0;A<P;A++)T(E,M,C),C++;else for(A=0;A<P;A++){for(x=0;x<I;x++){var L=E=n[x],U=L.h,B=L.v;for(S=0;S<B;S++)for(D=0;D<U;D++)k(E,M,C,S,D)}if(++C===O)break}if(p=0,(R=e[d]<<8|e[d+1])<65280)throw new Error("marker was not found");if(!(R>=65488&&R<=65495))break;d+=2}return d-u}function buildComponentData(e,t){var r=[],n=t.blocksPerLine,a=t.blocksPerColumn,i=n<<3,o=new Int32Array(64),s=new Uint8Array(64);function l(e,r,n){var a,i,o,s,l,f,c,u,d,h,p=t.quantizationTable,m=n;for(h=0;h<64;h++)m[h]=e[h]*p[h];for(h=0;h<8;++h){var g=8*h;0!==m[1+g]||0!==m[2+g]||0!==m[3+g]||0!==m[4+g]||0!==m[5+g]||0!==m[6+g]||0!==m[7+g]?(a=dctSqrt2*m[0+g]+128>>8,i=dctSqrt2*m[4+g]+128>>8,o=m[2+g],s=m[6+g],l=dctSqrt1d2*(m[1+g]-m[7+g])+128>>8,u=dctSqrt1d2*(m[1+g]+m[7+g])+128>>8,f=m[3+g]<<4,c=m[5+g]<<4,d=a-i+1>>1,a=a+i+1>>1,i=d,d=o*dctSin6+s*dctCos6+128>>8,o=o*dctCos6-s*dctSin6+128>>8,s=d,d=l-c+1>>1,l=l+c+1>>1,c=d,d=u+f+1>>1,f=u-f+1>>1,u=d,d=a-s+1>>1,a=a+s+1>>1,s=d,d=i-o+1>>1,i=i+o+1>>1,o=d,d=l*dctSin3+u*dctCos3+2048>>12,l=l*dctCos3-u*dctSin3+2048>>12,u=d,d=f*dctSin1+c*dctCos1+2048>>12,f=f*dctCos1-c*dctSin1+2048>>12,c=d,m[0+g]=a+u,m[7+g]=a-u,m[1+g]=i+c,m[6+g]=i-c,m[2+g]=o+f,m[5+g]=o-f,m[3+g]=s+l,m[4+g]=s-l):(d=dctSqrt2*m[0+g]+512>>10,m[0+g]=d,m[1+g]=d,m[2+g]=d,m[3+g]=d,m[4+g]=d,m[5+g]=d,m[6+g]=d,m[7+g]=d)}for(h=0;h<8;++h){var y=h;0!==m[8+y]||0!==m[16+y]||0!==m[24+y]||0!==m[32+y]||0!==m[40+y]||0!==m[48+y]||0!==m[56+y]?(a=dctSqrt2*m[0+y]+2048>>12,i=dctSqrt2*m[32+y]+2048>>12,o=m[16+y],s=m[48+y],l=dctSqrt1d2*(m[8+y]-m[56+y])+2048>>12,u=dctSqrt1d2*(m[8+y]+m[56+y])+2048>>12,f=m[24+y],c=m[40+y],d=a-i+1>>1,a=a+i+1>>1,i=d,d=o*dctSin6+s*dctCos6+2048>>12,o=o*dctCos6-s*dctSin6+2048>>12,s=d,d=l-c+1>>1,l=l+c+1>>1,c=d,d=u+f+1>>1,f=u-f+1>>1,u=d,d=a-s+1>>1,a=a+s+1>>1,s=d,d=i-o+1>>1,i=i+o+1>>1,o=d,d=l*dctSin3+u*dctCos3+2048>>12,l=l*dctCos3-u*dctSin3+2048>>12,u=d,d=f*dctSin1+c*dctCos1+2048>>12,f=f*dctCos1-c*dctSin1+2048>>12,c=d,m[0+y]=a+u,m[56+y]=a-u,m[8+y]=i+c,m[48+y]=i-c,m[16+y]=o+f,m[40+y]=o-f,m[24+y]=s+l,m[32+y]=s-l):(d=dctSqrt2*n[h+0]+8192>>14,m[0+y]=d,m[8+y]=d,m[16+y]=d,m[24+y]=d,m[32+y]=d,m[40+y]=d,m[48+y]=d,m[56+y]=d)}for(h=0;h<64;++h){var _=128+(m[h]+8>>4);r[h]=_<0?0:_>255?255:_}}for(var f=0;f<a;f++){for(var c=f<<3,u=0;u<8;u++)r.push(new Uint8Array(i));for(var d=0;d<n;d++){l(t.blocks[f][d],s,o);for(var h=0,p=d<<3,m=0;m<8;m++)for(var g=r[c+m],y=0;y<8;y++)g[p+y]=s[h++]}}return r}var JpegStreamReader=function(){function e(){_classCallCheck(this,e),this.jfif=null,this.adobe=null,this.quantizationTables=[],this.huffmanTablesAC=[],this.huffmanTablesDC=[],this.resetFrames()}return _createClass(e,[{key:"resetFrames",value:function(){this.frames=[]}},{key:"parse",value:function(e){var t=0;function r(){var r=e[t]<<8|e[t+1];return t+=2,r}function n(e){var t,r,n=0,a=0;for(r in e.components)e.components.hasOwnProperty(r)&&(n<(t=e.components[r]).h&&(n=t.h),a<t.v&&(a=t.v));var i=Math.ceil(e.samplesPerLine/8/n),o=Math.ceil(e.scanLines/8/a);for(r in e.components)if(e.components.hasOwnProperty(r)){t=e.components[r];for(var s=Math.ceil(Math.ceil(e.samplesPerLine/8)*t.h/n),l=Math.ceil(Math.ceil(e.scanLines/8)*t.v/a),f=i*t.h,c=o*t.v,u=[],d=0;d<c;d++){for(var h=[],p=0;p<f;p++)h.push(new Int32Array(64));u.push(h)}t.blocksPerLine=s,t.blocksPerColumn=l,t.blocks=u}e.maxH=n,e.maxV=a,e.mcusPerLine=i,e.mcusPerColumn=o}var a,i,o=r();if(65496!==o)throw new Error("SOI not found");for(o=r();65497!==o;){switch(o){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var s=(a=void 0,i=void 0,a=r(),i=e.subarray(t,t+a-2),t+=i.length,i);65504===o&&74===s[0]&&70===s[1]&&73===s[2]&&70===s[3]&&0===s[4]&&(this.jfif={version:{major:s[5],minor:s[6]},densityUnits:s[7],xDensity:s[8]<<8|s[9],yDensity:s[10]<<8|s[11],thumbWidth:s[12],thumbHeight:s[13],thumbData:s.subarray(14,14+3*s[12]*s[13])}),65518===o&&65===s[0]&&100===s[1]&&111===s[2]&&98===s[3]&&101===s[4]&&0===s[5]&&(this.adobe={version:s[6],flags0:s[7]<<8|s[8],flags1:s[9]<<8|s[10],transformCode:s[11]});break;case 65499:for(var l=r()+t-2;t<l;){var f=e[t++],c=new Int32Array(64);if(f>>4==0)for(var u=0;u<64;u++){c[dctZigZag[u]]=e[t++]}else{if(f>>4!=1)throw new Error("DQT: invalid table spec");for(var d=0;d<64;d++){c[dctZigZag[d]]=r()}}this.quantizationTables[15&f]=c}break;case 65472:case 65473:case 65474:r();for(var h={extended:65473===o,progressive:65474===o,precision:e[t++],scanLines:r(),samplesPerLine:r(),components:{},componentsOrder:[]},p=e[t++],m=void 0,g=0;g<p;g++){m=e[t];var y=e[t+1]>>4,_=15&e[t+1],b=e[t+2];h.componentsOrder.push(m),h.components[m]={h:y,v:_,quantizationIdx:b},t+=3}n(h),this.frames.push(h);break;case 65476:for(var v=r(),w=2;w<v;){for(var k=e[t++],T=new Uint8Array(16),E=0,x=0;x<16;x++,t++)T[x]=e[t],E+=T[x];for(var S=new Uint8Array(E),D=0;D<E;D++,t++)S[D]=e[t];w+=17+E,k>>4==0?this.huffmanTablesDC[15&k]=buildHuffmanTable(T,S):this.huffmanTablesAC[15&k]=buildHuffmanTable(T,S)}break;case 65501:r(),this.resetInterval=r();break;case 65498:r();for(var A=e[t++],M=[],I=this.frames[0],R=0;R<A;R++){var O=I.components[e[t++]],C=e[t++];O.huffmanTableDC=this.huffmanTablesDC[C>>4],O.huffmanTableAC=this.huffmanTablesAC[15&C],M.push(O)}var P=e[t++],L=e[t++],U=e[t++],B=decodeScan(e,t,I,M,this.resetInterval,P,L,U>>4,15&U);t+=B;break;case 65535:255!==e[t]&&t--;break;default:if(255===e[t-3]&&e[t-2]>=192&&e[t-2]<=254){t-=3;break}throw new Error("unknown JPEG marker ".concat(o.toString(16)))}o=r()}}},{key:"getResult",value:function(){var e=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var t=0;t<this.frames.length;t++)for(var r=this.frames[t].components,n=0,a=Object.keys(r);n<a.length;n++){var i=a[n];r[i].quantizationTable=this.quantizationTables[r[i].quantizationIdx],delete r[i].quantizationIdx}for(var o=e[0],s=o.components,l=o.componentsOrder,f=[],c=o.samplesPerLine,u=o.scanLines,d=0;d<l.length;d++){var h=s[l[d]];f.push({lines:buildComponentData(o,h),scaleX:h.h/o.maxH,scaleY:h.v/o.maxV})}for(var p=new Uint8Array(c*u*f.length),m=0,g=0;g<u;++g)for(var y=0;y<c;++y)for(var _=0;_<f.length;++_){var b=f[_];p[m]=b.lines[0|g*b.scaleY][0|y*b.scaleX],++m}return p}}]),e}(),JpegDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(e){var n;return _classCallCheck(this,r),(n=t.call(this)).reader=new JpegStreamReader,e.JPEGTables&&n.reader.parse(e.JPEGTables),n}return _createClass(r,[{key:"decodeBlock",value:function(e){return this.reader.resetFrames(),this.reader.parse(new Uint8Array(e)),this.reader.getResult().buffer}}]),r}(),jpeg=Object.freeze({__proto__:null,default:JpegDecoder});function zero$1(e){for(var t=e.length;--t>=0;)e[t]=0}var MIN_MATCH$1=3,MAX_MATCH$1=258,LENGTH_CODES$1=29,LITERALS$1=256,L_CODES$1=LITERALS$1+1+LENGTH_CODES$1,D_CODES$1=30,DIST_CODE_LEN=512,static_ltree=new Array(2*(L_CODES$1+2));zero$1(static_ltree);var static_dtree=new Array(2*D_CODES$1);zero$1(static_dtree);var _dist_code=new Array(DIST_CODE_LEN);zero$1(_dist_code);var _length_code=new Array(MAX_MATCH$1-MIN_MATCH$1+1);zero$1(_length_code);var base_length=new Array(LENGTH_CODES$1);zero$1(base_length);var base_dist=new Array(D_CODES$1);zero$1(base_dist);var adler32=function(e,t,r,n){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{i=i+(a=a+t[n++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0},adler32_1=adler32,makeTable=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t},crcTable=new Uint32Array(makeTable()),crc32=function(e,t,r,n){var a=crcTable,i=n+r;e^=-1;for(var o=n;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e},crc32_1=crc32,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},constants$2={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},_has=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!==_typeof(r))throw new TypeError(r+"must be non-object");for(var n in r)_has(r,n)&&(e[n]=r[n])}}return e},flattenChunks=function(e){for(var t=0,r=0,n=e.length;r<n;r++)t+=e[r].length;for(var a=new Uint8Array(t),i=0,o=0,s=e.length;i<s;i++){var l=e[i];a.set(l,o),o+=l.length}return a},common={assign:assign,flattenChunks:flattenChunks},STR_APPLY_UIA_OK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){STR_APPLY_UIA_OK=!1}for(var _utf8len=new Uint8Array(256),q=0;q<256;q++)_utf8len[q]=q>=252?6:q>=248?5:q>=240?4:q>=224?3:q>=192?2:1;_utf8len[254]=_utf8len[254]=1;var string2buf=function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,r,n,a,i,o=e.length,s=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),i=0,a=0;i<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[i++]=r:r<2048?(t[i++]=192|r>>>6,t[i++]=128|63&r):r<65536?(t[i++]=224|r>>>12,t[i++]=128|r>>>6&63,t[i++]=128|63&r):(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63,t[i++]=128|r>>>6&63,t[i++]=128|63&r);return t},buf2binstring=function(e,t){if(t<65534&&e.subarray&&STR_APPLY_UIA_OK)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},buf2string=function(e,t){var r,n,a=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var i=new Array(2*a);for(n=0,r=0;r<a;){var o=e[r++];if(o<128)i[n++]=o;else{var s=_utf8len[o];if(s>4)i[n++]=65533,r+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&r<a;)o=o<<6|63&e[r++],s--;s>1?i[n++]=65533:o<65536?i[n++]=o:(o-=65536,i[n++]=55296|o>>10&1023,i[n++]=56320|1023&o)}}}return buf2binstring(i,n)},utf8border=function(e,t){(t=t||e.length)>e.length&&(t=e.length);for(var r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+_utf8len[e[r]]>t?r:t},strings={string2buf:string2buf,buf2string:buf2string,utf8border:utf8border};function ZStream(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zstream=ZStream,BAD$1=30,TYPE$1=12,inffast=function(e,t){var r,n,a,i,o,s,l,f,c,u,d,h,p,m,g,y,_,b,v,w,k,T,E,x,S=e.state;r=e.next_in,E=e.input,n=r+(e.avail_in-5),a=e.next_out,x=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),s=S.dmax,l=S.wsize,f=S.whave,c=S.wnext,u=S.window,d=S.hold,h=S.bits,p=S.lencode,m=S.distcode,g=(1<<S.lenbits)-1,y=(1<<S.distbits)-1;e:do{h<15&&(d+=E[r++]<<h,h+=8,d+=E[r++]<<h,h+=8),_=p[d&g];t:for(;;){if(d>>>=b=_>>>24,h-=b,0===(b=_>>>16&255))x[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=p[(65535&_)+(d&(1<<b)-1)];continue t}if(32&b){S.mode=TYPE$1;break e}e.msg="invalid literal/length code",S.mode=BAD$1;break e}v=65535&_,(b&=15)&&(h<b&&(d+=E[r++]<<h,h+=8),v+=d&(1<<b)-1,d>>>=b,h-=b),h<15&&(d+=E[r++]<<h,h+=8,d+=E[r++]<<h,h+=8),_=m[d&y];r:for(;;){if(d>>>=b=_>>>24,h-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=m[(65535&_)+(d&(1<<b)-1)];continue r}e.msg="invalid distance code",S.mode=BAD$1;break e}if(w=65535&_,h<(b&=15)&&(d+=E[r++]<<h,(h+=8)<b&&(d+=E[r++]<<h,h+=8)),(w+=d&(1<<b)-1)>s){e.msg="invalid distance too far back",S.mode=BAD$1;break e}if(d>>>=b,h-=b,w>(b=a-i)){if((b=w-b)>f&&S.sane){e.msg="invalid distance too far back",S.mode=BAD$1;break e}if(k=0,T=u,0===c){if(k+=l-b,b<v){v-=b;do{x[a++]=u[k++]}while(--b);k=a-w,T=x}}else if(c<b){if(k+=l+c-b,(b-=c)<v){v-=b;do{x[a++]=u[k++]}while(--b);if(k=0,c<v){v-=b=c;do{x[a++]=u[k++]}while(--b);k=a-w,T=x}}}else if(k+=c-b,b<v){v-=b;do{x[a++]=u[k++]}while(--b);k=a-w,T=x}for(;v>2;)x[a++]=T[k++],x[a++]=T[k++],x[a++]=T[k++],v-=3;v&&(x[a++]=T[k++],v>1&&(x[a++]=T[k++]))}else{k=a-w;do{x[a++]=x[k++],x[a++]=x[k++],x[a++]=x[k++],v-=3}while(v>2);v&&(x[a++]=x[k++],v>1&&(x[a++]=x[k++]))}break}}break}}while(r<n&&a<o);r-=v=h>>3,d&=(1<<(h-=v<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=a<o?o-a+257:257-(a-o),S.hold=d,S.bits=h},MAXBITS=15,ENOUGH_LENS$1=852,ENOUGH_DISTS$1=592,CODES$1=0,LENS$1=1,DISTS$1=2,lbase=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lext=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dbase=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),dext=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),inflate_table=function(e,t,r,n,a,i,o,s){var l,f,c,u,d,h,p,m,g,y=s.bits,_=0,b=0,v=0,w=0,k=0,T=0,E=0,x=0,S=0,D=0,A=null,M=0,I=new Uint16Array(MAXBITS+1),R=new Uint16Array(MAXBITS+1),O=null,C=0;for(_=0;_<=MAXBITS;_++)I[_]=0;for(b=0;b<n;b++)I[t[r+b]]++;for(k=y,w=MAXBITS;w>=1&&0===I[w];w--);if(k>w&&(k=w),0===w)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(v=1;v<w&&0===I[v];v++);for(k<v&&(k=v),x=1,_=1;_<=MAXBITS;_++)if(x<<=1,(x-=I[_])<0)return-1;if(x>0&&(e===CODES$1||1!==w))return-1;for(R[1]=0,_=1;_<MAXBITS;_++)R[_+1]=R[_]+I[_];for(b=0;b<n;b++)0!==t[r+b]&&(o[R[t[r+b]]++]=b);if(e===CODES$1?(A=O=o,h=19):e===LENS$1?(A=lbase,M-=257,O=lext,C-=257,h=256):(A=dbase,O=dext,h=-1),D=0,b=0,_=v,d=i,T=k,E=0,c=-1,u=(S=1<<k)-1,e===LENS$1&&S>ENOUGH_LENS$1||e===DISTS$1&&S>ENOUGH_DISTS$1)return 1;for(;;){p=_-E,o[b]<h?(m=0,g=o[b]):o[b]>h?(m=O[C+o[b]],g=A[M+o[b]]):(m=96,g=0),l=1<<_-E,v=f=1<<T;do{a[d+(D>>E)+(f-=l)]=p<<24|m<<16|g|0}while(0!==f);for(l=1<<_-1;D&l;)l>>=1;if(0!==l?(D&=l-1,D+=l):D=0,b++,0==--I[_]){if(_===w)break;_=t[r+o[b]]}if(_>k&&(D&u)!==c){for(0===E&&(E=k),d+=v,x=1<<(T=_-E);T+E<w&&!((x-=I[T+E])<=0);)T++,x<<=1;if(S+=1<<T,e===LENS$1&&S>ENOUGH_LENS$1||e===DISTS$1&&S>ENOUGH_DISTS$1)return 1;a[c=D&u]=k<<24|T<<16|d-i|0}}return 0!==D&&(a[d+D]=_-E<<24|64<<16|0),s.bits=k,0},inftrees=inflate_table,CODES=0,LENS=1,DISTS=2,Z_FINISH$1=constants$2.Z_FINISH,Z_BLOCK=constants$2.Z_BLOCK,Z_TREES=constants$2.Z_TREES,Z_OK$1=constants$2.Z_OK,Z_STREAM_END$1=constants$2.Z_STREAM_END,Z_NEED_DICT$1=constants$2.Z_NEED_DICT,Z_STREAM_ERROR$1=constants$2.Z_STREAM_ERROR,Z_DATA_ERROR$1=constants$2.Z_DATA_ERROR,Z_MEM_ERROR$1=constants$2.Z_MEM_ERROR,Z_BUF_ERROR=constants$2.Z_BUF_ERROR,Z_DEFLATED=constants$2.Z_DEFLATED,HEAD=1,FLAGS=2,TIME=3,OS=4,EXLEN=5,EXTRA=6,NAME=7,COMMENT=8,HCRC=9,DICTID=10,DICT=11,TYPE=12,TYPEDO=13,STORED=14,COPY_=15,COPY=16,TABLE=17,LENLENS=18,CODELENS=19,LEN_=20,LEN=21,LENEXT=22,DIST=23,DISTEXT=24,MATCH=25,LIT=26,CHECK=27,LENGTH=28,DONE=29,BAD=30,MEM=31,SYNC=32,ENOUGH_LENS=852,ENOUGH_DISTS=592,MAX_WBITS=15,DEF_WBITS=MAX_WBITS,zswap32=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function InflateState(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var inflateResetKeep=function(e){if(!e||!e.state)return Z_STREAM_ERROR$1;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(ENOUGH_LENS),t.distcode=t.distdyn=new Int32Array(ENOUGH_DISTS),t.sane=1,t.back=-1,Z_OK$1},inflateReset=function(e){if(!e||!e.state)return Z_STREAM_ERROR$1;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,inflateResetKeep(e)},inflateReset2=function(e,t){var r;if(!e||!e.state)return Z_STREAM_ERROR$1;var n=e.state;return t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Z_STREAM_ERROR$1:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,inflateReset(e))},inflateInit2=function(e,t){if(!e)return Z_STREAM_ERROR$1;var r=new InflateState;e.state=r,r.window=null;var n=inflateReset2(e,t);return n!==Z_OK$1&&(e.state=null),n},inflateInit=function(e){return inflateInit2(e,DEF_WBITS)},virgin=!0,lenfix,distfix,fixedtables=function(e){if(virgin){lenfix=new Int32Array(512),distfix=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(inftrees(LENS,e.lens,0,288,lenfix,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;inftrees(DISTS,e.lens,0,32,distfix,0,e.work,{bits:5}),virgin=!1}e.lencode=lenfix,e.lenbits=9,e.distcode=distfix,e.distbits=5},updatewindow=function(e,t,r,n){var a,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),n>=i.wsize?(i.window.set(t.subarray(r-i.wsize,r),0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>n&&(a=n),i.window.set(t.subarray(r-n,r-n+a),i.wnext),(n-=a)?(i.window.set(t.subarray(r-n,r),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},inflate$2=function(e,t){var r,n,a,i,o,s,l,f,c,u,d,h,p,m,g,y,_,b,v,w,k,T,E,x,S=0,D=new Uint8Array(4),A=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Z_STREAM_ERROR$1;(r=e.state).mode===TYPE&&(r.mode=TYPEDO),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,f=r.hold,c=r.bits,u=s,d=l,T=Z_OK$1;e:for(;;)switch(r.mode){case HEAD:if(0===r.wrap){r.mode=TYPEDO;break}for(;c<16;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(2&r.wrap&&35615===f){r.check=0,D[0]=255&f,D[1]=f>>>8&255,r.check=crc32_1(r.check,D,2,0),f=0,c=0,r.mode=FLAGS;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=BAD;break}if((15&f)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(c-=4,k=8+(15&(f>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=BAD;break}r.dmax=1<<r.wbits,e.adler=r.check=1,r.mode=512&f?DICTID:TYPE,f=0,c=0;break;case FLAGS:for(;c<16;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(r.flags=f,(255&r.flags)!==Z_DEFLATED){e.msg="unknown compression method",r.mode=BAD;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=BAD;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&(D[0]=255&f,D[1]=f>>>8&255,r.check=crc32_1(r.check,D,2,0)),f=0,c=0,r.mode=TIME;case TIME:for(;c<32;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.head&&(r.head.time=f),512&r.flags&&(D[0]=255&f,D[1]=f>>>8&255,D[2]=f>>>16&255,D[3]=f>>>24&255,r.check=crc32_1(r.check,D,4,0)),f=0,c=0,r.mode=OS;case OS:for(;c<16;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&(D[0]=255&f,D[1]=f>>>8&255,r.check=crc32_1(r.check,D,2,0)),f=0,c=0,r.mode=EXLEN;case EXLEN:if(1024&r.flags){for(;c<16;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(D[0]=255&f,D[1]=f>>>8&255,r.check=crc32_1(r.check,D,2,0)),f=0,c=0}else r.head&&(r.head.extra=null);r.mode=EXTRA;case EXTRA:if(1024&r.flags&&((h=r.length)>s&&(h=s),h&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(i,i+h),k)),512&r.flags&&(r.check=crc32_1(r.check,n,h,i)),s-=h,i+=h,r.length-=h),r.length))break e;r.length=0,r.mode=NAME;case NAME:if(2048&r.flags){if(0===s)break e;h=0;do{k=n[i+h++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&h<s);if(512&r.flags&&(r.check=crc32_1(r.check,n,h,i)),s-=h,i+=h,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=COMMENT;case COMMENT:if(4096&r.flags){if(0===s)break e;h=0;do{k=n[i+h++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&h<s);if(512&r.flags&&(r.check=crc32_1(r.check,n,h,i)),s-=h,i+=h,k)break e}else r.head&&(r.head.comment=null);r.mode=HCRC;case HCRC:if(512&r.flags){for(;c<16;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(f!==(65535&r.check)){e.msg="header crc mismatch",r.mode=BAD;break}f=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=TYPE;break;case DICTID:for(;c<32;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}e.adler=r.check=zswap32(f),f=0,c=0,r.mode=DICT;case DICT:if(0===r.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=f,r.bits=c,Z_NEED_DICT$1;e.adler=r.check=1,r.mode=TYPE;case TYPE:if(t===Z_BLOCK||t===Z_TREES)break e;case TYPEDO:if(r.last){f>>>=7&c,c-=7&c,r.mode=CHECK;break}for(;c<3;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}switch(r.last=1&f,c-=1,3&(f>>>=1)){case 0:r.mode=STORED;break;case 1:if(fixedtables(r),r.mode=LEN_,t===Z_TREES){f>>>=2,c-=2;break e}break;case 2:r.mode=TABLE;break;case 3:e.msg="invalid block type",r.mode=BAD}f>>>=2,c-=2;break;case STORED:for(f>>>=7&c,c-=7&c;c<32;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if((65535&f)!=(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=BAD;break}if(r.length=65535&f,f=0,c=0,r.mode=COPY_,t===Z_TREES)break e;case COPY_:r.mode=COPY;case COPY:if(h=r.length){if(h>s&&(h=s),h>l&&(h=l),0===h)break e;a.set(n.subarray(i,i+h),o),s-=h,i+=h,l-=h,o+=h,r.length-=h;break}r.mode=TYPE;break;case TABLE:for(;c<14;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(r.nlen=257+(31&f),f>>>=5,c-=5,r.ndist=1+(31&f),f>>>=5,c-=5,r.ncode=4+(15&f),f>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=BAD;break}r.have=0,r.mode=LENLENS;case LENLENS:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.lens[A[r.have++]]=7&f,f>>>=3,c-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,E={bits:r.lenbits},T=inftrees(CODES,r.lens,0,19,r.lencode,0,r.work,E),r.lenbits=E.bits,T){e.msg="invalid code lengths set",r.mode=BAD;break}r.have=0,r.mode=CODELENS;case CODELENS:for(;r.have<r.nlen+r.ndist;){for(;y=(S=r.lencode[f&(1<<r.lenbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=c);){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(_<16)f>>>=g,c-=g,r.lens[r.have++]=_;else{if(16===_){for(x=g+2;c<x;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(f>>>=g,c-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=BAD;break}k=r.lens[r.have-1],h=3+(3&f),f>>>=2,c-=2}else if(17===_){for(x=g+3;c<x;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}c-=g,k=0,h=3+(7&(f>>>=g)),f>>>=3,c-=3}else{for(x=g+7;c<x;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}c-=g,k=0,h=11+(127&(f>>>=g)),f>>>=7,c-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=BAD;break}for(;h--;)r.lens[r.have++]=k}}if(r.mode===BAD)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=BAD;break}if(r.lenbits=9,E={bits:r.lenbits},T=inftrees(LENS,r.lens,0,r.nlen,r.lencode,0,r.work,E),r.lenbits=E.bits,T){e.msg="invalid literal/lengths set",r.mode=BAD;break}if(r.distbits=6,r.distcode=r.distdyn,E={bits:r.distbits},T=inftrees(DISTS,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,E),r.distbits=E.bits,T){e.msg="invalid distances set",r.mode=BAD;break}if(r.mode=LEN_,t===Z_TREES)break e;case LEN_:r.mode=LEN;case LEN:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=f,r.bits=c,inffast(e,d),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,s=e.avail_in,f=r.hold,c=r.bits,r.mode===TYPE&&(r.back=-1);break}for(r.back=0;y=(S=r.lencode[f&(1<<r.lenbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=c);){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(y&&0==(240&y)){for(b=g,v=y,w=_;y=(S=r.lencode[w+((f&(1<<b+v)-1)>>b)])>>>16&255,_=65535&S,!(b+(g=S>>>24)<=c);){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}f>>>=b,c-=b,r.back+=b}if(f>>>=g,c-=g,r.back+=g,r.length=_,0===y){r.mode=LIT;break}if(32&y){r.back=-1,r.mode=TYPE;break}if(64&y){e.msg="invalid literal/length code",r.mode=BAD;break}r.extra=15&y,r.mode=LENEXT;case LENEXT:if(r.extra){for(x=r.extra;c<x;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=DIST;case DIST:for(;y=(S=r.distcode[f&(1<<r.distbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=c);){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(0==(240&y)){for(b=g,v=y,w=_;y=(S=r.distcode[w+((f&(1<<b+v)-1)>>b)])>>>16&255,_=65535&S,!(b+(g=S>>>24)<=c);){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}f>>>=b,c-=b,r.back+=b}if(f>>>=g,c-=g,r.back+=g,64&y){e.msg="invalid distance code",r.mode=BAD;break}r.offset=_,r.extra=15&y,r.mode=DISTEXT;case DISTEXT:if(r.extra){for(x=r.extra;c<x;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=BAD;break}r.mode=MATCH;case MATCH:if(0===l)break e;if(h=d-l,r.offset>h){if((h=r.offset-h)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=BAD;break}h>r.wnext?(h-=r.wnext,p=r.wsize-h):p=r.wnext-h,h>r.length&&(h=r.length),m=r.window}else m=a,p=o-r.offset,h=r.length;h>l&&(h=l),l-=h,r.length-=h;do{a[o++]=m[p++]}while(--h);0===r.length&&(r.mode=LEN);break;case LIT:if(0===l)break e;a[o++]=r.length,l--,r.mode=LEN;break;case CHECK:if(r.wrap){for(;c<32;){if(0===s)break e;s--,f|=n[i++]<<c,c+=8}if(d-=l,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?crc32_1(r.check,a,d,o-d):adler32_1(r.check,a,d,o-d)),d=l,(r.flags?f:zswap32(f))!==r.check){e.msg="incorrect data check",r.mode=BAD;break}f=0,c=0}r.mode=LENGTH;case LENGTH:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break e;s--,f+=n[i++]<<c,c+=8}if(f!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=BAD;break}f=0,c=0}r.mode=DONE;case DONE:T=Z_STREAM_END$1;break e;case BAD:T=Z_DATA_ERROR$1;break e;case MEM:return Z_MEM_ERROR$1;case SYNC:default:return Z_STREAM_ERROR$1}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,r.hold=f,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<BAD&&(r.mode<CHECK||t!==Z_FINISH$1))&&updatewindow(e,e.output,e.next_out,d-e.avail_out),u-=e.avail_in,d-=e.avail_out,e.total_in+=u,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?crc32_1(r.check,a,d,e.next_out-d):adler32_1(r.check,a,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===TYPE?128:0)+(r.mode===LEN_||r.mode===COPY_?256:0),(0===u&&0===d||t===Z_FINISH$1)&&T===Z_OK$1&&(T=Z_BUF_ERROR),T},inflateEnd=function(e){if(!e||!e.state)return Z_STREAM_ERROR$1;var t=e.state;return t.window&&(t.window=null),e.state=null,Z_OK$1},inflateGetHeader=function(e,t){if(!e||!e.state)return Z_STREAM_ERROR$1;var r=e.state;return 0==(2&r.wrap)?Z_STREAM_ERROR$1:(r.head=t,t.done=!1,Z_OK$1)},inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&r.mode!==DICT?Z_STREAM_ERROR$1:r.mode===DICT&&adler32_1(1,t,n,0)!==r.check?Z_DATA_ERROR$1:updatewindow(e,t,n,n)?(r.mode=MEM,Z_MEM_ERROR$1):(r.havedict=1,Z_OK$1):Z_STREAM_ERROR$1},inflateReset_1=inflateReset,inflateReset2_1=inflateReset2,inflateResetKeep_1=inflateResetKeep,inflateInit_1=inflateInit,inflateInit2_1=inflateInit2,inflate_2$1=inflate$2,inflateEnd_1=inflateEnd,inflateGetHeader_1=inflateGetHeader,inflateSetDictionary_1=inflateSetDictionary,inflateInfo="pako inflate (from Nodeca project)",inflate_1$2={inflateReset:inflateReset_1,inflateReset2:inflateReset2_1,inflateResetKeep:inflateResetKeep_1,inflateInit:inflateInit_1,inflateInit2:inflateInit2_1,inflate:inflate_2$1,inflateEnd:inflateEnd_1,inflateGetHeader:inflateGetHeader_1,inflateSetDictionary:inflateSetDictionary_1,inflateInfo:inflateInfo};function GZheader(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var gzheader=GZheader,toString=Object.prototype.toString,Z_NO_FLUSH=constants$2.Z_NO_FLUSH,Z_FINISH=constants$2.Z_FINISH,Z_OK=constants$2.Z_OK,Z_STREAM_END=constants$2.Z_STREAM_END,Z_NEED_DICT=constants$2.Z_NEED_DICT,Z_STREAM_ERROR=constants$2.Z_STREAM_ERROR,Z_DATA_ERROR=constants$2.Z_DATA_ERROR,Z_MEM_ERROR=constants$2.Z_MEM_ERROR;function Inflate$1(e){this.options=common.assign({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zstream,this.strm.avail_out=0;var r=inflate_1$2.inflateInit2(this.strm,t.windowBits);if(r!==Z_OK)throw new Error(messages[r]);if(this.header=new gzheader,inflate_1$2.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=strings.string2buf(t.dictionary):"[object ArrayBuffer]"===toString.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=inflate_1$2.inflateSetDictionary(this.strm,t.dictionary))!==Z_OK))throw new Error(messages[r])}function inflate$1(e,t){var r=new Inflate$1(t);if(r.push(e),r.err)throw r.msg||messages[r.err];return r.result}function inflateRaw$1(e,t){return(t=t||{}).raw=!0,inflate$1(e,t)}Inflate$1.prototype.push=function(e,t){var r,n,a,i=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=t===~~t?t:!0===t?Z_FINISH:Z_NO_FLUSH,"[object ArrayBuffer]"===toString.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(r=inflate_1$2.inflate(i,n))===Z_NEED_DICT&&s&&((r=inflate_1$2.inflateSetDictionary(i,s))===Z_OK?r=inflate_1$2.inflate(i,n):r===Z_DATA_ERROR&&(r=Z_NEED_DICT));i.avail_in>0&&r===Z_STREAM_END&&i.state.wrap>0&&0!==e[i.next_in];)inflate_1$2.inflateReset(i),r=inflate_1$2.inflate(i,n);switch(r){case Z_STREAM_ERROR:case Z_DATA_ERROR:case Z_NEED_DICT:case Z_MEM_ERROR:return this.onEnd(r),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(0===i.avail_out||r===Z_STREAM_END))if("string"===this.options.to){var l=strings.utf8border(i.output,i.next_out),f=i.next_out-l,c=strings.buf2string(i.output,l);i.next_out=f,i.avail_out=o-f,f&&i.output.set(i.output.subarray(l,l+f),0),this.onData(c)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(r!==Z_OK||0!==a){if(r===Z_STREAM_END)return r=inflate_1$2.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},Inflate$1.prototype.onData=function(e){this.chunks.push(e)},Inflate$1.prototype.onEnd=function(e){e===Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=common.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Inflate_1$1=Inflate$1,inflate_2=inflate$1,inflateRaw_1$1=inflateRaw$1,ungzip$1=inflate$1,constants=constants$2,inflate_1$1={Inflate:Inflate_1$1,inflate:inflate_2,inflateRaw:inflateRaw_1$1,ungzip:ungzip$1,constants:constants},inflate=inflate_1$1.inflate,inflate_1=inflate,DeflateDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"decodeBlock",value:function(e){return inflate_1(new Uint8Array(e)).buffer}}]),r}(),deflate=Object.freeze({__proto__:null,default:DeflateDecoder}),PackbitsDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"decodeBlock",value:function(e){for(var t=new DataView(e),r=[],n=0;n<e.byteLength;++n){var a=t.getInt8(n);if(a<0){var i=t.getUint8(n+1);a=-a;for(var o=0;o<=a;++o)r.push(i);n+=1}else{for(var s=0;s<=a;++s)r.push(t.getUint8(n+s+1));n+=a+1}}return new Uint8Array(r).buffer}}]),r}(),packbits=Object.freeze({__proto__:null,default:PackbitsDecoder}),LercDecode={exports:{}},module;module=LercDecode,\n/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */\nfunction(){var e,t,r,n,a,i,o,s,l,f,c,u,d,h,p,m,g=(e={defaultNoDataValue:-34027999387901484e22,decode:function(i,o){var s=(o=o||{}).encodedMaskData||null===o.encodedMaskData,l=a(i,o.inputOffset||0,s),f=null!==o.noDataValue?o.noDataValue:e.defaultNoDataValue,c=t(l,o.pixelType||Float32Array,o.encodedMaskData,f,o.returnMask),u={width:l.width,height:l.height,pixelData:c.resultPixels,minValue:c.minValue,maxValue:l.pixels.maxValue,noDataValue:f};return c.resultMask&&(u.maskData=c.resultMask),o.returnEncodedMask&&l.mask&&(u.encodedMaskData=l.mask.bitset?l.mask.bitset:null),o.returnFileInfo&&(u.fileInfo=r(l),o.computeUsedBitDepths&&(u.fileInfo.bitDepths=n(l))),u}},t=function(e,t,r,n,a){var o,s,l,f=0,c=e.pixels.numBlocksX,u=e.pixels.numBlocksY,d=Math.floor(e.width/c),h=Math.floor(e.height/u),p=2*e.maxZError,m=Number.MAX_VALUE;r=r||(e.mask?e.mask.bitset:null),s=new t(e.width*e.height),a&&r&&(l=new Uint8Array(e.width*e.height));for(var g,y,_=new Float32Array(d*h),b=0;b<=u;b++){var v=b!==u?h:e.height%u;if(0!==v)for(var w=0;w<=c;w++){var k=w!==c?d:e.width%c;if(0!==k){var T,E,x,S,D=b*e.width*h+w*d,A=e.width-k,M=e.pixels.blocks[f];if(M.encoding<2?(0===M.encoding?T=M.rawData:(i(M.stuffedData,M.bitsPerPixel,M.numValidPixels,M.offset,p,_,e.pixels.maxValue),T=_),E=0):x=2===M.encoding?0:M.offset,r)for(y=0;y<v;y++){for(7&D&&(S=r[D>>3],S<<=7&D),g=0;g<k;g++)7&D||(S=r[D>>3]),128&S?(l&&(l[D]=1),m=m>(o=M.encoding<2?T[E++]:x)?o:m,s[D++]=o):(l&&(l[D]=0),s[D++]=n),S<<=1;D+=A}else if(M.encoding<2)for(y=0;y<v;y++){for(g=0;g<k;g++)m=m>(o=T[E++])?o:m,s[D++]=o;D+=A}else for(m=m>x?x:m,y=0;y<v;y++){for(g=0;g<k;g++)s[D++]=x;D+=A}if(1===M.encoding&&E!==M.numValidPixels)throw"Block and Mask do not match";f++}}}return{resultPixels:s,resultMask:l,minValue:m}},r=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},n=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,r={},n=0;n<t;n++){var a=e.pixels.blocks[n];0===a.encoding?r.float32=!0:1===a.encoding?r[a.bitsPerPixel]=!0:r[0]=!0}return Object.keys(r)},a=function(e,t,r){var n={},a=new Uint8Array(e,t,10);if(n.fileIdentifierString=String.fromCharCode.apply(null,a),"CntZImage"!==n.fileIdentifierString.trim())throw"Unexpected file identifier string: "+n.fileIdentifierString;t+=10;var i=new DataView(e,t,24);if(n.fileVersion=i.getInt32(0,!0),n.imageType=i.getInt32(4,!0),n.height=i.getUint32(8,!0),n.width=i.getUint32(12,!0),n.maxZError=i.getFloat64(16,!0),t+=24,!r)if(i=new DataView(e,t,16),n.mask={},n.mask.numBlocksY=i.getUint32(0,!0),n.mask.numBlocksX=i.getUint32(4,!0),n.mask.numBytes=i.getUint32(8,!0),n.mask.maxValue=i.getFloat32(12,!0),t+=16,n.mask.numBytes>0){var o=new Uint8Array(Math.ceil(n.width*n.height/8)),s=(i=new DataView(e,t,n.mask.numBytes)).getInt16(0,!0),l=2,f=0;do{if(s>0)for(;s--;)o[f++]=i.getUint8(l++);else{var c=i.getUint8(l++);for(s=-s;s--;)o[f++]=c}s=i.getInt16(l,!0),l+=2}while(l<n.mask.numBytes);if(-32768!==s||f<o.length)throw"Unexpected end of mask RLE encoding";n.mask.bitset=o,t+=n.mask.numBytes}else 0==(n.mask.numBytes|n.mask.numBlocksY|n.mask.maxValue)&&(n.mask.bitset=new Uint8Array(Math.ceil(n.width*n.height/8)));i=new DataView(e,t,16),n.pixels={},n.pixels.numBlocksY=i.getUint32(0,!0),n.pixels.numBlocksX=i.getUint32(4,!0),n.pixels.numBytes=i.getUint32(8,!0),n.pixels.maxValue=i.getFloat32(12,!0),t+=16;var u=n.pixels.numBlocksX,d=n.pixels.numBlocksY,h=u+(n.width%u>0?1:0),p=d+(n.height%d>0?1:0);n.pixels.blocks=new Array(h*p);for(var m=0,g=0;g<p;g++)for(var y=0;y<h;y++){var _=0,b=e.byteLength-t;i=new DataView(e,t,Math.min(10,b));var v={};n.pixels.blocks[m++]=v;var w=i.getUint8(0);if(_++,v.encoding=63&w,v.encoding>3)throw"Invalid block encoding ("+v.encoding+")";if(2!==v.encoding){if(0!==w&&2!==w){if(w>>=6,v.offsetType=w,2===w)v.offset=i.getInt8(1),_++;else if(1===w)v.offset=i.getInt16(1,!0),_+=2;else{if(0!==w)throw"Invalid block offset type";v.offset=i.getFloat32(1,!0),_+=4}if(1===v.encoding)if(w=i.getUint8(_),_++,v.bitsPerPixel=63&w,w>>=6,v.numValidPixelsType=w,2===w)v.numValidPixels=i.getUint8(_),_++;else if(1===w)v.numValidPixels=i.getUint16(_,!0),_+=2;else{if(0!==w)throw"Invalid valid pixel count type";v.numValidPixels=i.getUint32(_,!0),_+=4}}var k;if(t+=_,3!==v.encoding)if(0===v.encoding){var T=(n.pixels.numBytes-1)/4;if(T!==Math.floor(T))throw"uncompressed block has invalid length";k=new ArrayBuffer(4*T),new Uint8Array(k).set(new Uint8Array(e,t,4*T));var E=new Float32Array(k);v.rawData=E,t+=4*T}else if(1===v.encoding){var x=Math.ceil(v.numValidPixels*v.bitsPerPixel/8),S=Math.ceil(x/4);k=new ArrayBuffer(4*S),new Uint8Array(k).set(new Uint8Array(e,t,x)),v.stuffedData=new Uint32Array(k),t+=x}}else t++}return n.eofOffset=t,n},i=function(e,t,r,n,a,i,o){var s,l,f,c=(1<<t)-1,u=0,d=0,h=Math.ceil((o-n)/a),p=4*e.length-Math.ceil(t*r/8);for(e[e.length-1]<<=8*p,s=0;s<r;s++){if(0===d&&(f=e[u++],d=32),d>=t)l=f>>>d-t&c,d-=t;else{var m=t-d;l=(f&c)<<m&c,l+=(f=e[u++])>>>(d=32-m)}i[s]=l<h?n+l*a:o}return i},e),y=(o=function(e,t,r,n,a,i,o,s){var l,f,c,u,d,h=(1<<r)-1,p=0,m=0,g=4*e.length-Math.ceil(r*n/8);if(e[e.length-1]<<=8*g,a)for(l=0;l<n;l++)0===m&&(c=e[p++],m=32),m>=r?(f=c>>>m-r&h,m-=r):(f=(c&h)<<(u=r-m)&h,f+=(c=e[p++])>>>(m=32-u)),t[l]=a[f];else for(d=Math.ceil((s-i)/o),l=0;l<n;l++)0===m&&(c=e[p++],m=32),m>=r?(f=c>>>m-r&h,m-=r):(f=(c&h)<<(u=r-m)&h,f+=(c=e[p++])>>>(m=32-u)),t[l]=f<d?i+f*o:s},s=function(e,t,r,n,a,i){var o,s=(1<<t)-1,l=0,f=0,c=0,u=0,d=0,h=[],p=4*e.length-Math.ceil(t*r/8);e[e.length-1]<<=8*p;var m=Math.ceil((i-n)/a);for(f=0;f<r;f++)0===u&&(o=e[l++],u=32),u>=t?(d=o>>>u-t&s,u-=t):(d=(o&s)<<(c=t-u)&s,d+=(o=e[l++])>>>(u=32-c)),h[f]=d<m?n+d*a:i;return h.unshift(n),h},l=function(e,t,r,n,a,i,o,s){var l,f,c,u,d=(1<<r)-1,h=0,p=0,m=0;if(a)for(l=0;l<n;l++)0===p&&(c=e[h++],p=32,m=0),p>=r?(f=c>>>m&d,p-=r,m+=r):(f=c>>>m&d,p=32-(u=r-p),f|=((c=e[h++])&(1<<u)-1)<<r-u,m=u),t[l]=a[f];else{var g=Math.ceil((s-i)/o);for(l=0;l<n;l++)0===p&&(c=e[h++],p=32,m=0),p>=r?(f=c>>>m&d,p-=r,m+=r):(f=c>>>m&d,p=32-(u=r-p),f|=((c=e[h++])&(1<<u)-1)<<r-u,m=u),t[l]=f<g?i+f*o:s}return t},f=function(e,t,r,n,a,i){var o,s=(1<<t)-1,l=0,f=0,c=0,u=0,d=0,h=0,p=[],m=Math.ceil((i-n)/a);for(f=0;f<r;f++)0===u&&(o=e[l++],u=32,h=0),u>=t?(d=o>>>h&s,u-=t,h+=t):(d=o>>>h&s,u=32-(c=t-u),d|=((o=e[l++])&(1<<c)-1)<<t-c,h=c),p[f]=d<m?n+d*a:i;return p.unshift(n),p},c=function(e,t,r,n){var a,i,o,s,l=(1<<r)-1,f=0,c=0,u=4*e.length-Math.ceil(r*n/8);for(e[e.length-1]<<=8*u,a=0;a<n;a++)0===c&&(o=e[f++],c=32),c>=r?(i=o>>>c-r&l,c-=r):(i=(o&l)<<(s=r-c)&l,i+=(o=e[f++])>>>(c=32-s)),t[a]=i;return t},u=function(e,t,r,n){var a,i,o,s,l=(1<<r)-1,f=0,c=0,u=0;for(a=0;a<n;a++)0===c&&(o=e[f++],c=32,u=0),c>=r?(i=o>>>u&l,c-=r,u+=r):(i=o>>>u&l,c=32-(s=r-c),i|=((o=e[f++])&(1<<s)-1)<<r-s,u=s),t[a]=i;return t},d={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,r=65535,n=e.length,a=Math.floor(n/2),i=0;a;){var o=a>=359?359:a;a-=o;do{t+=e[i++]<<8,r+=t+=e[i++]}while(--o);t=(65535&t)+(t>>>16),r=(65535&r)+(r>>>16)}return 1&n&&(r+=t+=e[i]<<8),((r=(65535&r)+(r>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var r=t.ptr,n=new Uint8Array(e,r,6),a={};if(a.fileIdentifierString=String.fromCharCode.apply(null,n),0!==a.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+a.fileIdentifierString;r+=6;var i,o=new DataView(e,r,8),s=o.getInt32(0,!0);if(a.fileVersion=s,r+=4,s>=3&&(a.checksum=o.getUint32(4,!0),r+=4),o=new DataView(e,r,12),a.height=o.getUint32(0,!0),a.width=o.getUint32(4,!0),r+=8,s>=4?(a.numDims=o.getUint32(8,!0),r+=4):a.numDims=1,o=new DataView(e,r,40),a.numValidPixel=o.getUint32(0,!0),a.microBlockSize=o.getInt32(4,!0),a.blobSize=o.getInt32(8,!0),a.imageType=o.getInt32(12,!0),a.maxZError=o.getFloat64(16,!0),a.zMin=o.getFloat64(24,!0),a.zMax=o.getFloat64(32,!0),r+=40,t.headerInfo=a,t.ptr=r,s>=3&&(i=s>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,r-i,a.blobSize-14))!==a.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var r=t.headerInfo,n=this.getDataTypeArray(r.imageType),a=r.numDims*this.getDataTypeSize(r.imageType),i=this.readSubArray(e,t.ptr,n,a),o=this.readSubArray(e,t.ptr+a,n,a);t.ptr+=2*a;var s,l=!0;for(s=0;s<r.numDims;s++)if(i[s]!==o[s]){l=!1;break}return r.minValues=i,r.maxValues=o,l},readSubArray:function(e,t,r,n){var a;if(r===Uint8Array)a=new Uint8Array(e,t,n);else{var i=new ArrayBuffer(n);new Uint8Array(i).set(new Uint8Array(e,t,n)),a=new r(i)}return a},readMask:function(e,t){var r,n,a=t.ptr,i=t.headerInfo,o=i.width*i.height,s=i.numValidPixel,l=new DataView(e,a,4),f={};if(f.numBytes=l.getUint32(0,!0),a+=4,(0===s||o===s)&&0!==f.numBytes)throw"invalid mask";if(0===s)r=new Uint8Array(Math.ceil(o/8)),f.bitset=r,n=new Uint8Array(o),t.pixels.resultMask=n,a+=f.numBytes;else if(f.numBytes>0){r=new Uint8Array(Math.ceil(o/8));var c=(l=new DataView(e,a,f.numBytes)).getInt16(0,!0),u=2,d=0,h=0;do{if(c>0)for(;c--;)r[d++]=l.getUint8(u++);else for(h=l.getUint8(u++),c=-c;c--;)r[d++]=h;c=l.getInt16(u,!0),u+=2}while(u<f.numBytes);if(-32768!==c||d<r.length)throw"Unexpected end of mask RLE encoding";n=new Uint8Array(o);var p=0,m=0;for(m=0;m<o;m++)7&m?(p=r[m>>3],p<<=7&m):p=r[m>>3],128&p&&(n[m]=1);t.pixels.resultMask=n,f.bitset=r,a+=f.numBytes}return t.ptr=a,t.mask=f,!0},readDataOneSweep:function(e,t,r,n){var a,i=t.ptr,o=t.headerInfo,s=o.numDims,l=o.width*o.height,f=o.imageType,c=o.numValidPixel*d.getDataTypeSize(f)*s,u=t.pixels.resultMask;if(r===Uint8Array)a=new Uint8Array(e,i,c);else{var h=new ArrayBuffer(c);new Uint8Array(h).set(new Uint8Array(e,i,c)),a=new r(h)}if(a.length===l*s)t.pixels.resultPixels=n?d.swapDimensionOrder(a,l,s,r,!0):a;else{t.pixels.resultPixels=new r(l*s);var p=0,m=0,g=0,y=0;if(s>1){if(n){for(m=0;m<l;m++)if(u[m])for(y=m,g=0;g<s;g++,y+=l)t.pixels.resultPixels[y]=a[p++]}else for(m=0;m<l;m++)if(u[m])for(y=m*s,g=0;g<s;g++)t.pixels.resultPixels[y+g]=a[p++]}else for(m=0;m<l;m++)u[m]&&(t.pixels.resultPixels[m]=a[p++])}return i+=c,t.ptr=i,!0},readHuffmanTree:function(e,t){var r=this.HUFFMAN_LUT_BITS_MAX,n=new DataView(e,t.ptr,16);if(t.ptr+=16,n.getInt32(0,!0)<2)throw"unsupported Huffman version";var a=n.getInt32(4,!0),i=n.getInt32(8,!0),o=n.getInt32(12,!0);if(i>=o)return!1;var s=new Uint32Array(o-i);d.decodeBits(e,t,s);var l,f,c,u,p=[];for(l=i;l<o;l++)p[f=l-(l<a?0:a)]={first:s[l-i],second:null};var m=e.byteLength-t.ptr,g=Math.ceil(m/4),y=new ArrayBuffer(4*g);new Uint8Array(y).set(new Uint8Array(e,t.ptr,m));var _,b=new Uint32Array(y),v=0,w=0;for(_=b[0],l=i;l<o;l++)(u=p[f=l-(l<a?0:a)].first)>0&&(p[f].second=_<<v>>>32-u,32-v>=u?32===(v+=u)&&(v=0,_=b[++w]):(v+=u-32,_=b[++w],p[f].second|=_>>>32-v));var k=0,T=0,E=new h;for(l=0;l<p.length;l++)void 0!==p[l]&&(k=Math.max(k,p[l].first));T=k>=r?r:k;var x,S,D,A,M,I=[];for(l=i;l<o;l++)if((u=p[f=l-(l<a?0:a)].first)>0)if(x=[u,f],u<=T)for(S=p[f].second<<T-u,D=1<<T-u,c=0;c<D;c++)I[S|c]=x;else for(S=p[f].second,M=E,A=u-1;A>=0;A--)S>>>A&1?(M.right||(M.right=new h),M=M.right):(M.left||(M.left=new h),M=M.left),0!==A||M.val||(M.val=x[1]);return{decodeLut:I,numBitsLUTQick:T,numBitsLUT:k,tree:E,stuffedData:b,srcPtr:w,bitPos:v}},readHuffman:function(e,t,r,n){var a,i,o,s,l,f,c,u,h,p=t.headerInfo.numDims,m=t.headerInfo.height,g=t.headerInfo.width,y=g*m,_=this.readHuffmanTree(e,t),b=_.decodeLut,v=_.tree,w=_.stuffedData,k=_.srcPtr,T=_.bitPos,E=_.numBitsLUTQick,x=_.numBitsLUT,S=0===t.headerInfo.imageType?128:0,D=t.pixels.resultMask,A=0;T>0&&(k++,T=0);var M,I=w[k],R=1===t.encodeMode,O=new r(y*p),C=O;if(p<2||R){for(M=0;M<p;M++)if(p>1&&(C=new r(O.buffer,y*M,y),A=0),t.headerInfo.numValidPixel===g*m)for(u=0,f=0;f<m;f++)for(c=0;c<g;c++,u++){if(i=0,l=s=I<<T>>>32-E,32-T<E&&(l=s|=w[k+1]>>>64-T-E),b[l])i=b[l][1],T+=b[l][0];else for(l=s=I<<T>>>32-x,32-T<x&&(l=s|=w[k+1]>>>64-T-x),a=v,h=0;h<x;h++)if(!(a=s>>>x-h-1&1?a.right:a.left).left&&!a.right){i=a.val,T=T+h+1;break}T>=32&&(T-=32,I=w[++k]),o=i-S,R?(o+=c>0?A:f>0?C[u-g]:A,o&=255,C[u]=o,A=o):C[u]=o}else for(u=0,f=0;f<m;f++)for(c=0;c<g;c++,u++)if(D[u]){if(i=0,l=s=I<<T>>>32-E,32-T<E&&(l=s|=w[k+1]>>>64-T-E),b[l])i=b[l][1],T+=b[l][0];else for(l=s=I<<T>>>32-x,32-T<x&&(l=s|=w[k+1]>>>64-T-x),a=v,h=0;h<x;h++)if(!(a=s>>>x-h-1&1?a.right:a.left).left&&!a.right){i=a.val,T=T+h+1;break}T>=32&&(T-=32,I=w[++k]),o=i-S,R?(c>0&&D[u-1]?o+=A:f>0&&D[u-g]?o+=C[u-g]:o+=A,o&=255,C[u]=o,A=o):C[u]=o}}else for(u=0,f=0;f<m;f++)for(c=0;c<g;c++)if(u=f*g+c,!D||D[u])for(M=0;M<p;M++,u+=y){if(i=0,l=s=I<<T>>>32-E,32-T<E&&(l=s|=w[k+1]>>>64-T-E),b[l])i=b[l][1],T+=b[l][0];else for(l=s=I<<T>>>32-x,32-T<x&&(l=s|=w[k+1]>>>64-T-x),a=v,h=0;h<x;h++)if(!(a=s>>>x-h-1&1?a.right:a.left).left&&!a.right){i=a.val,T=T+h+1;break}T>=32&&(T-=32,I=w[++k]),o=i-S,C[u]=o}t.ptr=t.ptr+4*(k+1)+(T>0?4:0),t.pixels.resultPixels=O,p>1&&!n&&(t.pixels.resultPixels=d.swapDimensionOrder(O,y,p,r))},decodeBits:function(e,t,r,n,a){var i=t.headerInfo,d=i.fileVersion,h=0,p=e.byteLength-t.ptr>=5?5:e.byteLength-t.ptr,m=new DataView(e,t.ptr,p),g=m.getUint8(0);h++;var y=g>>6,_=0===y?4:3-y,b=(32&g)>0,v=31&g,w=0;if(1===_)w=m.getUint8(h),h++;else if(2===_)w=m.getUint16(h,!0),h+=2;else{if(4!==_)throw"Invalid valid pixel count type";w=m.getUint32(h,!0),h+=4}var k,T,E,x,S,D,A,M,I,R=2*i.maxZError,O=i.numDims>1?i.maxValues[a]:i.zMax;if(b){for(t.counter.lut++,M=m.getUint8(h),h++,x=Math.ceil((M-1)*v/8),S=Math.ceil(x/4),T=new ArrayBuffer(4*S),E=new Uint8Array(T),t.ptr+=h,E.set(new Uint8Array(e,t.ptr,x)),A=new Uint32Array(T),t.ptr+=x,I=0;M-1>>>I;)I++;x=Math.ceil(w*I/8),S=Math.ceil(x/4),T=new ArrayBuffer(4*S),(E=new Uint8Array(T)).set(new Uint8Array(e,t.ptr,x)),k=new Uint32Array(T),t.ptr+=x,D=d>=3?f(A,v,M-1,n,R,O):s(A,v,M-1,n,R,O),d>=3?l(k,r,I,w,D):o(k,r,I,w,D)}else t.counter.bitstuffer++,I=v,t.ptr+=h,I>0&&(x=Math.ceil(w*I/8),S=Math.ceil(x/4),T=new ArrayBuffer(4*S),(E=new Uint8Array(T)).set(new Uint8Array(e,t.ptr,x)),k=new Uint32Array(T),t.ptr+=x,d>=3?null==n?u(k,r,I,w):l(k,r,I,w,!1,n,R,O):null==n?c(k,r,I,w):o(k,r,I,w,!1,n,R,O))},readTiles:function(e,t,r,n){var a=t.headerInfo,i=a.width,o=a.height,s=i*o,l=a.microBlockSize,f=a.imageType,c=d.getDataTypeSize(f),u=Math.ceil(i/l),h=Math.ceil(o/l);t.pixels.numBlocksY=h,t.pixels.numBlocksX=u,t.pixels.ptr=0;var p,m,g,y,_,b,v,w,k,T,E=0,x=0,S=0,D=0,A=0,M=0,I=0,R=0,O=0,C=0,P=0,L=0,U=0,B=0,$=0,N=new r(l*l),z=o%l||l,Z=i%l||l,G=a.numDims,j=t.pixels.resultMask,V=t.pixels.resultPixels,F=a.fileVersion>=5?14:15,K=a.zMax;for(S=0;S<h;S++)for(A=S!==h-1?l:z,D=0;D<u;D++)for(C=S*i*l+D*l,P=i-(M=D!==u-1?l:Z),w=0;w<G;w++){if(G>1?(T=V,C=S*i*l+D*l,V=new r(t.pixels.resultPixels.buffer,s*w*c,s),K=a.maxValues[w]):T=null,I=e.byteLength-t.ptr,m={},$=0,R=(p=new DataView(e,t.ptr,Math.min(10,I))).getUint8(0),$++,k=a.fileVersion>=5?4&R:0,O=R>>6&255,(R>>2&F)!=(D*l>>3&F))throw"integrity issue";if(k&&0===w)throw"integrity issue";if((_=3&R)>3)throw t.ptr+=$,"Invalid block encoding ("+_+")";if(2!==_)if(0===_){if(k)throw"integrity issue";if(t.counter.uncompressed++,t.ptr+=$,L=(L=A*M*c)<(U=e.byteLength-t.ptr)?L:U,g=new ArrayBuffer(L%c==0?L:L+c-L%c),new Uint8Array(g).set(new Uint8Array(e,t.ptr,L)),y=new r(g),B=0,j)for(E=0;E<A;E++){for(x=0;x<M;x++)j[C]&&(V[C]=y[B++]),C++;C+=P}else for(E=0;E<A;E++){for(x=0;x<M;x++)V[C++]=y[B++];C+=P}t.ptr+=B*c}else if(b=d.getDataTypeUsed(k&&f<6?4:f,O),v=d.getOnePixel(m,$,b,p),$+=d.getDataTypeSize(b),3===_)if(t.ptr+=$,t.counter.constantoffset++,j)for(E=0;E<A;E++){for(x=0;x<M;x++)j[C]&&(V[C]=k?Math.min(K,T[C]+v):v),C++;C+=P}else for(E=0;E<A;E++){for(x=0;x<M;x++)V[C]=k?Math.min(K,T[C]+v):v,C++;C+=P}else if(t.ptr+=$,d.decodeBits(e,t,N,v,w),$=0,k)if(j)for(E=0;E<A;E++){for(x=0;x<M;x++)j[C]&&(V[C]=N[$++]+T[C]),C++;C+=P}else for(E=0;E<A;E++){for(x=0;x<M;x++)V[C]=N[$++]+T[C],C++;C+=P}else if(j)for(E=0;E<A;E++){for(x=0;x<M;x++)j[C]&&(V[C]=N[$++]),C++;C+=P}else for(E=0;E<A;E++){for(x=0;x<M;x++)V[C++]=N[$++];C+=P}else{if(k)if(j)for(E=0;E<A;E++)for(x=0;x<M;x++)j[C]&&(V[C]=T[C]),C++;else for(E=0;E<A;E++)for(x=0;x<M;x++)V[C]=T[C],C++;t.counter.constant++,t.ptr+=$}}G>1&&!n&&(t.pixels.resultPixels=d.swapDimensionOrder(t.pixels.resultPixels,s,G,r))},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:d.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e,t){var r=e.headerInfo.zMax,n=e.headerInfo.zMin,a=e.headerInfo.maxValues,i=e.headerInfo.numDims,o=e.headerInfo.height*e.headerInfo.width,s=0,l=0,f=0,c=e.pixels.resultMask,u=e.pixels.resultPixels;if(c)if(i>1){if(t)for(s=0;s<i;s++)for(f=s*o,r=a[s],l=0;l<o;l++)c[l]&&(u[f+l]=r);else for(l=0;l<o;l++)if(c[l])for(f=l*i,s=0;s<i;s++)u[f+i]=a[s]}else for(l=0;l<o;l++)c[l]&&(u[l]=r);else if(i>1&&n!==r)if(t)for(s=0;s<i;s++)for(f=s*o,r=a[s],l=0;l<o;l++)u[f+l]=r;else for(l=0;l<o;l++)for(f=l*i,s=0;s<i;s++)u[f+s]=a[s];else for(l=0;l<o*i;l++)u[l]=r},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:t=Float32Array;break;case 7:t=Float64Array;break;default:t=Float32Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:t="F32";break;case 7:t="F64";break;default:t="F32"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var r;switch(e){case 0:r=t>=-128&&t<=127;break;case 1:r=t>=0&&t<=255;break;case 2:r=t>=-32768&&t<=32767;break;case 3:r=t>=0&&t<=65536;break;case 4:r=t>=-2147483648&&t<=2147483647;break;case 5:r=t>=0&&t<=4294967296;break;case 6:r=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:r=t>=-17976931348623157e292&&t<=17976931348623157e292;break;default:r=!1}return r},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var r=e;switch(e){case 2:case 4:r=e-t;break;case 3:case 5:r=e-2*t;break;case 6:r=0===t?e:1===t?2:1;break;case 7:r=0===t?e:e-2*t+1;break;default:r=e}return r},getOnePixel:function(e,t,r,n){var a=0;switch(r){case 0:a=n.getInt8(t);break;case 1:a=n.getUint8(t);break;case 2:a=n.getInt16(t,!0);break;case 3:a=n.getUint16(t,!0);break;case 4:a=n.getInt32(t,!0);break;case 5:a=n.getUInt32(t,!0);break;case 6:a=n.getFloat32(t,!0);break;case 7:a=n.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return a},swapDimensionOrder:function(e,t,r,n,a){var i=0,o=0,s=0,l=0,f=e;if(r>1)if(f=new n(t*r),a)for(i=0;i<t;i++)for(l=i,s=0;s<r;s++,l+=t)f[l]=e[o++];else for(i=0;i<t;i++)for(l=i,s=0;s<r;s++,l+=t)f[o++]=e[l];return f}},h=function(e,t,r){this.val=e,this.left=t,this.right=r},{decode:function(e,t){var r=(t=t||{}).noDataValue,n=0,a={};a.ptr=t.inputOffset||0,a.pixels={},d.readHeaderInfo(e,a);var i=a.headerInfo,o=i.fileVersion,s=d.getDataTypeArray(i.imageType);if(o>5)throw"unsupported lerc version 2."+o;d.readMask(e,a),i.numValidPixel===i.width*i.height||a.pixels.resultMask||(a.pixels.resultMask=t.maskData);var l=i.width*i.height;a.pixels.resultPixels=new s(l*i.numDims),a.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var f,c=!t.returnPixelInterleavedDims;if(0!==i.numValidPixel)if(i.zMax===i.zMin)d.constructConstantSurface(a,c);else if(o>=4&&d.checkMinMaxRanges(e,a))d.constructConstantSurface(a,c);else{var u=new DataView(e,a.ptr,2),h=u.getUint8(0);if(a.ptr++,h)d.readDataOneSweep(e,a,s,c);else if(o>1&&i.imageType<=1&&Math.abs(i.maxZError-.5)<1e-5){var p=u.getUint8(1);if(a.ptr++,a.encodeMode=p,p>2||o<4&&p>1)throw"Invalid Huffman flag "+p;p?d.readHuffman(e,a,s,c):d.readTiles(e,a,s,c)}else d.readTiles(e,a,s,c)}a.eofOffset=a.ptr,t.inputOffset?(f=a.headerInfo.blobSize+t.inputOffset-a.ptr,Math.abs(f)>=1&&(a.eofOffset=t.inputOffset+a.headerInfo.blobSize)):(f=a.headerInfo.blobSize-a.ptr,Math.abs(f)>=1&&(a.eofOffset=a.headerInfo.blobSize));var m={width:i.width,height:i.height,pixelData:a.pixels.resultPixels,minValue:i.zMin,maxValue:i.zMax,validPixelCount:i.numValidPixel,dimCount:i.numDims,dimStats:{minValues:i.minValues,maxValues:i.maxValues},maskData:a.pixels.resultMask};if(a.pixels.resultMask&&d.isValidPixelValue(i.imageType,r)){var g=a.pixels.resultMask;for(n=0;n<l;n++)g[n]||(m.pixelData[n]=r);m.noDataValue=r}return a.noDataValue=r,t.returnFileInfo&&(m.fileInfo=d.formatFileInfo(a)),m},getBandCount:function(e){for(var t=0,r=0,n={ptr:0,pixels:{}};r<e.byteLength-58;)d.readHeaderInfo(e,n),r+=n.headerInfo.blobSize,t++,n.ptr=r;return t}}),_=(p=new ArrayBuffer(4),m=new Uint8Array(p),new Uint32Array(p)[0]=1,1===m[0]),b={decode:function(e,t){if(!_)throw"Big endian system is not supported.";var r,n,a=(t=t||{}).inputOffset||0,i=new Uint8Array(e,a,10),o=String.fromCharCode.apply(null,i);if("CntZImage"===o.trim())r=g,n=1;else{if("Lerc2"!==o.substring(0,5))throw"Unexpected file identifier string: "+o;r=y,n=2}for(var s,l,f,c,u,d,h=0,p=e.byteLength-10,m=[],b={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]},v=0;a<p;){var w=r.decode(e,{inputOffset:a,encodedMaskData:s,maskData:f,returnMask:0===h,returnEncodedMask:0===h,returnFileInfo:!0,returnPixelInterleavedDims:t.returnPixelInterleavedDims,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});a=w.fileInfo.eofOffset,f=w.maskData,0===h&&(s=w.encodedMaskData,b.width=w.width,b.height=w.height,b.dimCount=w.dimCount||1,b.pixelType=w.pixelType||w.fileInfo.pixelType,b.mask=f),n>1&&(f&&m.push(f),w.fileInfo.mask&&w.fileInfo.mask.numBytes>0&&v++),h++,b.pixels.push(w.pixelData),b.statistics.push({minValue:w.minValue,maxValue:w.maxValue,noDataValue:w.noDataValue,dimStats:w.dimStats})}if(n>1&&v>1){for(d=b.width*b.height,b.bandMasks=m,(f=new Uint8Array(d)).set(m[0]),c=1;c<m.length;c++)for(l=m[c],u=0;u<d;u++)f[u]=f[u]&l[u];b.maskData=f}return b}};module.exports?module.exports=b:this.Lerc=b}();var Lerc=LercDecode.exports,fieldTagNames={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},fieldTags={};for(var key in fieldTagNames)fieldTagNames.hasOwnProperty(key)&&(fieldTags[fieldTagNames[key]]=parseInt(key,10));fieldTags.BitsPerSample,fieldTags.ExtraSamples,fieldTags.SampleFormat,fieldTags.StripByteCounts,fieldTags.StripOffsets,fieldTags.StripRowCounts,fieldTags.TileByteCounts,fieldTags.TileOffsets,fieldTags.SubIFDs;var fieldTypeNames={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},fieldTypes={};for(var _key in fieldTypeNames)fieldTypeNames.hasOwnProperty(_key)&&(fieldTypes[fieldTypeNames[_key]]=parseInt(_key,10));var LercParameters={Version:0,AddCompression:1},LercAddCompression={None:0,Deflate:1},geoKeyNames={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},geoKeys={};for(var _key2 in geoKeyNames)geoKeyNames.hasOwnProperty(_key2)&&(geoKeys[geoKeyNames[_key2]]=parseInt(_key2,10));var LercDecoder=function(e){_inherits(r,BaseDecoder);var t=_createSuper(r);function r(e){var n;return _classCallCheck(this,r),(n=t.call(this)).planarConfiguration=void 0!==e.PlanarConfiguration?e.PlanarConfiguration:1,n.samplesPerPixel=void 0!==e.SamplesPerPixel?e.SamplesPerPixel:1,n.addCompression=e.LercParameters[LercParameters.AddCompression],n}return _createClass(r,[{key:"decodeBlock",value:function(e){switch(this.addCompression){case LercAddCompression.None:break;case LercAddCompression.Deflate:e=inflate_1(new Uint8Array(e)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return Lerc.decode(e,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),r}(),lerc=Object.freeze({__proto__:null,default:LercDecoder});',new Worker("undefined"==typeof Blob?"data:application/javascript;base64,"+Buffer.from(e,"binary").toString("base64"):URL.createObjectURL(new Blob([e],{type:"application/javascript"})))))),Nn}function Un(e){try{return e.getBoundingBox()}catch(r){var t=e.fileDirectory;return[0,0,t.ImageWidth,t.ImageLength]}}function qn(e){try{return e.getOrigin().slice(0,2)}catch(t){return[0,e.fileDirectory.ImageLength]}}function Vn(e,t){try{return e.getResolution(t)[0]}catch(r){return t.fileDirectory.ImageWidth/e.fileDirectory.ImageWidth}}function Xn(e){var t=e.geoKeys;if(!t)return null;if(t.ProjectedCSTypeGeoKey){var r="EPSG:"+t.ProjectedCSTypeGeoKey,n=(0,Tn.U2)(r);if(!n){var i=(0,Mn.Ne)(t.ProjLinearUnitsGeoKey);i&&(n=new Tn.kv({code:r,units:i}))}return n}if(t.GeographicTypeGeoKey){var o="EPSG:"+t.GeographicTypeGeoKey,a=(0,Tn.U2)(o);if(!a){var s=(0,Mn.Ne)(t.GeogAngularUnitsGeoKey);s&&(a=new Tn.kv({code:o,units:s}))}return a}return null}function Yn(e){return e.getImageCount().then((function(t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e.getImage(n);return Promise.all(r)}))}function Wn(e){return(e.overviews?function(e){return yn.apply(this,arguments)}(e.url,e.overviews):function(e){return dn.apply(this,arguments)}(e.url)).then(Yn)}function Kn(e,t,r,n,i){if(Array.isArray(e)){var o=e.length;if(!Array.isArray(t)||o!=t.length){var a=new Error(n);throw i(a),a}for(var s=0;s<o;++s)Kn(e[s],t[s],r,n,i)}else if(t=t,Math.abs(e-t)>r*e)throw new Error(n)}function Hn(e){return e instanceof Int8Array?127:e instanceof Uint8Array||e instanceof Uint8ClampedArray?255:e instanceof Int16Array?32767:e instanceof Uint16Array?65535:e instanceof Int32Array?2147483647:e instanceof Uint32Array?4294967295:e instanceof Float32Array?34e37:255}var $n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(s,e);var t,r,n,a=Ln(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,{state:i.Z.LOADING,tileGrid:null,projection:null,opaque:e.opaque,transition:e.transition,interpolate:!1!==e.interpolate,wrapX:e.wrapX})).sourceInfo_=e.sources;var r=t.sourceInfo_.length;t.sourceImagery_=new Array(r),t.resolutionFactors_=new Array(r),t.samplesPerPixel_,t.nodataValues_,t.metadata_,t.normalize_=!1!==e.normalize,t.addAlpha_=!1,t.error_=null,t.readMethod_=e.convertToRGB?"readRGB":"readRasters",t.setKey(t.sourceInfo_.map((function(e){return e.url})).join(","));for(var n=Zn(t),o=new Array(r),u=0;u<r;++u)o[u]=Wn(t.sourceInfo_[u]);return Promise.all(o).then((function(e){n.configure_(e)})).catch((function(e){console.error(e),n.error_=e,n.setState(i.Z.ERROR)})),t}return t=s,(r=[{key:"getError",value:function(){return this.error_}},{key:"configure_",value:function(e){for(var t,r,n,a,s=this,u=new Array(e.length),l=new Array(e.length),c=new Array(e.length),f=0,h=e.length,p=0;p<h;++p){var d=e[p],y=d.length,v=void 0,m=void 0,g=new Array(y),b=new Array(y);l[p]=new Array(y),c[p]=new Array(y);for(var _=0;_<y;++_){var w=d[_],x=w.getGDALNoData();c[p][_]=w.getGDALMetadata(),l[p][_]=null===x?NaN:x;var k=this.sourceInfo_[p].bands;u[p]=k?k.length:w.getSamplesPerPixel();var O=y-(_+1);v||(v=Un(w)),m||(m=qn(w)),b[O]=Vn(w,d[0]),g[O]=[w.getTileWidth(),w.getTileHeight()]}t?(0,Pn.Ed)(t,v,t):t=v,r?Kn(r,m,0,"Origin mismatch for source ".concat(p,", got [").concat(m,"] but expected [").concat(r,"]"),this.viewRejector):r=m,a?function(){a.length-f>b.length&&(f=a.length-b.length);var e=a[a.length-1]/b[b.length-1];s.resolutionFactors_[p]=e;var t=b.map((function(t){return t*e})),r="Resolution mismatch for source ".concat(p,", got [").concat(t,"] but expected [").concat(a,"]");Kn(a.slice(f,a.length),t,.005,r,s.viewRejector)}():(a=b,this.resolutionFactors_[p]=1),n?Kn(n.slice(f,n.length),g,0,"Tile size mismatch for source ".concat(p),this.viewRejector):n=g,this.sourceImagery_[p]=d.reverse()}for(var S=0,E=this.sourceImagery_.length;S<E;++S)for(var T=this.sourceImagery_[S];T.length<a.length;)T.unshift(void 0);if(!this.getProjection())for(var R=e[0],P=R.length-1;P>=0;--P){var C=Xn(R[P]);if(C){this.projection=C;break}}this.samplesPerPixel_=u,this.nodataValues_=l,this.metadata_=c;e:for(var M=0;M<h;++M){if(void 0!==this.sourceInfo_[M].nodata){this.addAlpha_=!0;break}var j=l[M],I=this.sourceInfo_[M].bands;if(I){for(var A=0;A<I.length;++A)if(!isNaN(j[I[A]-1])){this.addAlpha_=!0;break e}}else for(var L=0;L<j.length;++L)if(!isNaN(j[L])){this.addAlpha_=!0;break e}}var D=this.addAlpha_?1:0;this.bandCount=u.reduce((function(e,t){return e+=t}),0)+D;var Z=new o.Z({extent:t,minZoom:f,origin:r,resolutions:a,tileSizes:n});this.tileGrid=Z,this.setLoader(this.loadTile_.bind(this)),this.setState(i.Z.READY),this.viewResolver({projection:this.projection,resolutions:a,center:(0,Tn.lO)((0,Pn.qg)(t),this.projection),extent:(0,Tn.Fj)(t,this.projection),zoom:0})}},{key:"loadTile_",value:function(e,t,r){for(var n=this,i=(0,Cn.Pq)(this.tileGrid.getTileSize(e)),o=this.sourceImagery_.length,a=new Array(o),s=this.addAlpha_,u=this.bandCount,l=this.samplesPerPixel_,c=this.nodataValues_,f=this.sourceInfo_,h=function(o){var s=f[o],u=n.resolutionFactors_[o],l=[Math.round(t*(i[0]*u)),Math.round(r*(i[1]*u)),Math.round((t+1)*(i[0]*u)),Math.round((r+1)*(i[1]*u))],h=n.sourceImagery_[o][e],p=void 0;s.bands&&(p=s.bands.map((function(e){return e-1})));var d=void 0;d=isNaN(s.nodata)?p?p.map((function(e){return c[o][e]})):c[o]:s.nodata,a[o]=h[n.readMethod_]({window:l,width:i[0],height:i[1],samples:p,fillValue:d,pool:zn(),interleave:!1})},p=0;p<o;++p)h(p);var d=i[0]*i[1],y=d*u,v=this.normalize_,m=this.metadata_;return Promise.all(a).then((function(e){var t;t=v?new Uint8Array(y):new Float32Array(y);for(var r,n=0,i=0;i<d;++i){for(var a=s,u=0;u<o;++u){var h=f[u],p=h.min,g=h.max,b=void 0,_=void 0;if(v){var w=m[u][0];void 0===p&&(p=w&&Bn in w?parseFloat(w.STATISTICS_MINIMUM):(r=e[u][0])instanceof Int8Array?-128:r instanceof Int16Array?-32768:r instanceof Int32Array?-2147483648:r instanceof Float32Array?12e-39:0),void 0===g&&(g=w&&Gn in w?parseFloat(w.STATISTICS_MAXIMUM):Hn(e[u][0])),_=-p*(b=255/(g-p))}for(var x=0;x<l[u];++x){var k=e[u][x][i],O=void 0;if(O=v?(0,Rn.uZ)(b*k+_,0,255):k,s){var S=h.nodata;if(void 0===S){var E=void 0;E=h.bands?h.bands[x]-1:x,S=c[u][E]}k!==S&&(a=!1,t[n]=O)}else t[n]=O;n++}}s&&(a||(t[n]=255),n++)}return t}))}}])&&In(t.prototype,r),n&&In(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(n.Z);$n.prototype.getView;var Jn=$n},19010:function(e,t,r){"use strict";r.d(t,{ZP:function(){return N},r6:function(){return F}});var n=r(21510),i=r(23333),o=r(38312),a=r(6566),s=r(25028),u=r(1103),l=r(53040),c=r(86923),f=r(12016);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=y(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(h,e);var t,r,n,s=m(h);function h(e,t,r,n,a,f,p){var d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var y=e.getExtent(),v=t.getExtent(),m=v?(0,c.Ed)(r,v):r,g=(0,c.qg)(m),b=(0,l.aA)(e,t,g,n),_=o.m,w=new u.Z(e,t,m,y,b*_,n),x=f(w.calculateSourceExtent(),b,a),k=x?i.Z.IDLE:i.Z.EMPTY,O=x?x.getPixelRatio():1;return(d=s.call(this,r,n,O,k)).targetProj_=t,d.maxSourceExtent_=y,d.triangulation_=w,d.targetResolution_=n,d.targetExtent_=r,d.sourceImage_=x,d.sourcePixelRatio_=O,d.interpolate_=p,d.canvas_=null,d.sourceListenerKey_=null,d}return t=h,(r=[{key:"disposeInternal",value:function(){this.state==i.Z.LOADING&&this.unlistenSource_(),d(b(h.prototype),"disposeInternal",this).call(this)}},{key:"getImage",value:function(){return this.canvas_}},{key:"getProjection",value:function(){return this.targetProj_}},{key:"reproject_",value:function(){var e=this.sourceImage_.getState();if(e==i.Z.LOADED){var t=(0,c.dz)(this.targetExtent_)/this.targetResolution_,r=(0,c.Cr)(this.targetExtent_)/this.targetResolution_;this.canvas_=(0,l.sY)(t,r,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=e,this.changed()}},{key:"load",value:function(){if(this.state==i.Z.IDLE){this.state=i.Z.LOADING,this.changed();var e=this.sourceImage_.getState();e==i.Z.LOADED||e==i.Z.ERROR?this.reproject_():(this.sourceListenerKey_=(0,f.oL)(this.sourceImage_,a.Z.CHANGE,(function(e){var t=this.sourceImage_.getState();t!=i.Z.LOADED&&t!=i.Z.ERROR||(this.unlistenSource_(),this.reproject_())}),this),this.sourceImage_.load())}}},{key:"unlistenSource_",value:function(){(0,f.bN)(this.sourceListenerKey_),this.sourceListenerKey_=null}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.Z),w=r(82937),x=r(99382),k=r(12810),O=r(17985);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var i=I(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return j(this,r)}}function j(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A="imageloadstart",L="imageloadend",D="imageloaderror",Z=function(e){P(r,e);var t=M(r);function r(e,n){var i;return R(this,r),(i=t.call(this,e)).image=n,i}return T(r)}(n.ZP);function F(e,t){e.getImage().src=t}var N=function(e){P(r,e);var t=M(r);function r(e){var n;R(this,r);var i=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(i=e.interpolate),(n=t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state,interpolate:i})).on,n.once,n.un,n.resolutions_=void 0!==e.resolutions?e.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return T(r,[{key:"getResolutions",value:function(){return this.resolutions_}},{key:"findNearestResolution",value:function(e){if(this.resolutions_){var t=(0,O.h7)(this.resolutions_,e,0);e=this.resolutions_[t]}return e}},{key:"getImage",value:function(e,t,r,n){var i=this.getProjection();if(o.j&&i&&n&&!(0,k.OP)(i,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&(0,k.OP)(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==t&&(0,c.fS)(this.reprojectedImage_.getExtent(),e))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new _(i,n,e,t,r,function(e,t,r){return this.getImageInternal(e,t,r,i)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return i&&(n=i),this.getImageInternal(e,t,r,n)}},{key:"getImageInternal",value:function(e,t,r,n){return(0,x.O3)()}},{key:"handleImageChange",value:function(e){var t=e.target;switch(t.getState()){case i.Z.LOADING:this.loading=!0,this.dispatchEvent(new Z(A,t));break;case i.Z.LOADED:this.loading=!1,this.dispatchEvent(new Z(L,t));break;case i.Z.ERROR:this.loading=!1,this.dispatchEvent(new Z(D,t))}}}]),r}(w.Z)},43479:function(e,t,r){"use strict";var n=r(6566),i=r(19010),o=r(23333),a=r(49060),s=r(87187),u=r(32275),l=r(33716),c=r(86923),f=r(12810);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=y(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(g,e);var t,r,h,y=m(g);function g(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);var r=void 0!==e.crossOrigin?e.crossOrigin:null,o=void 0!==e.imageLoadFunction?e.imageLoadFunction:i.r6,s=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(s=e.interpolate),(t=y.call(this,{attributions:e.attributions,interpolate:s,projection:(0,f.U2)(e.projection)})).url_=e.url,t.imageExtent_=e.imageExtent,t.image_=new a.Z(t.imageExtent_,void 0,1,t.url_,r,o),t.imageSize_=e.imageSize?e.imageSize:null,t.image_.addEventListener(n.Z.CHANGE,t.handleImageChange.bind(b(t))),t}return t=g,(r=[{key:"getImageExtent",value:function(){return this.imageExtent_}},{key:"getImageInternal",value:function(e,t,r,n){return(0,c.kK)(e,this.image_.getExtent())?this.image_:null}},{key:"getUrl",value:function(){return this.url_}},{key:"handleImageChange",value:function(e){if(this.image_.getState()==o.Z.LOADED){var t,r,n=this.image_.getExtent(),i=this.image_.getImage();this.imageSize_?(t=this.imageSize_[0],r=this.imageSize_[1]):(t=i.width,r=i.height);var a=(0,c.dz)(n),f=(0,c.Cr)(n),h=a/t,p=f/r,y=t,v=r;if(h>p?y=Math.round(a/p):v=Math.round(f/h),y!==t||v!==r){var m=(0,l.E4)(y,v);this.getInterpolate()||(0,u.f0)(m,s.$);var b=m.canvas;m.drawImage(i,0,0,t,r,0,0,b.width,b.height),this.image_.setImage(b)}}d(_(g.prototype),"handleImageChange",this).call(this,e)}}])&&p(t.prototype,r),h&&p(t,h),Object.defineProperty(t,"prototype",{writable:!1}),g}(i.ZP);t.Z=w},95883:function(e,t,r){"use strict";var n=r(19149),i=r(6566),o=r(19010),a=r(49060),s=r(87393),u=r(62514),l=r(90776),c=r(32275),f=r(53040),h=r(62990),p=r(26094),d=r(86923),y=r(12810);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=[101,101],k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(w,e);var t,r,v,_=b(w);function w(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w);var r=e||{},n=void 0===r.imageSmoothing||r.imageSmoothing;return void 0!==r.interpolate&&(n=r.interpolate),(t=_.call(this,{attributions:r.attributions,interpolate:n,projection:r.projection,resolutions:r.resolutions})).crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null,t.url_=r.url,t.imageLoadFunction_=void 0!==r.imageLoadFunction?r.imageLoadFunction:o.r6,t.params_=r.params||{},t.v13_=!0,t.updateV13_(),t.serverType_=r.serverType,t.hidpi_=void 0===r.hidpi||r.hidpi,t.image_=null,t.imageSize_=[0,0],t.renderedRevision_=0,t.ratio_=void 0!==r.ratio?r.ratio:1.5,t}return t=w,(r=[{key:"getFeatureInfoUrl",value:function(e,t,r,i){if(void 0!==this.url_){var o=(0,y.U2)(r),a=this.getProjection();a&&a!==o&&(t=(0,f.aA)(a,o,e,t),e=(0,y.vs)(e,o,a));var s=(0,d.p8)(e,t,0,x),u={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,c.f0)(u,this.params_,i);var l=(0,h.GW)((e[0]-s[0])/t,4),p=(0,h.GW)((s[3]-e[1])/t,4);return u[this.v13_?"I":"X"]=l,u[this.v13_?"J":"Y"]=p,this.getRequestUrl_(s,x,1,a||o,u)}}},{key:"getLegendUrl",value:function(e,t){if(void 0!==this.url_){var r={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t.LAYER){var i=this.params_.LAYERS;if(Array.isArray(i)&&1!==i.length)return;r.LAYER=i}if(void 0!==e){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1;r.SCALE=e*o/28e-5}return(0,c.f0)(r,t),(0,u.B)(this.url_,r)}}},{key:"getParams",value:function(){return this.params_}},{key:"getImageInternal",value:function(e,t,r,o){if(void 0===this.url_)return null;t=this.findNearestResolution(t),1==r||this.hidpi_&&void 0!==this.serverType_||(r=1);var s=t/r,u=(0,d.qg)(e),l=(0,h.mD)((0,d.dz)(e)/s,4),f=(0,h.mD)((0,d.Cr)(e)/s,4),p=(0,d.p8)(u,s,0,[l,f]),y=(0,h.mD)(this.ratio_*(0,d.dz)(e)/s,4),v=(0,h.mD)(this.ratio_*(0,d.Cr)(e)/s,4),m=(0,d.p8)(u,s,0,[y,v]),g=this.image_;if(g&&this.renderedRevision_==this.getRevision()&&g.getResolution()==t&&g.getPixelRatio()==r&&(0,d.r4)(g.getExtent(),p))return g;var b={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};(0,c.f0)(b,this.params_),this.imageSize_[0]=(0,h.NM)((0,d.dz)(m)/s,4),this.imageSize_[1]=(0,h.NM)((0,d.Cr)(m)/s,4);var _=this.getRequestUrl_(m,this.imageSize_,r,o,b);return this.image_=new a.Z(m,t,r,_,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(i.Z.CHANGE,this.handleImageChange.bind(this)),this.image_}},{key:"getImageLoadFunction",value:function(){return this.imageLoadFunction_}},{key:"getRequestUrl_",value:function(e,t,r,n,i){if((0,l.h)(void 0!==this.url_,9),i[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(i.STYLES=""),1!=r)switch(this.serverType_){case s.Z.GEOSERVER:var o=90*r+.5|0;"FORMAT_OPTIONS"in i?i.FORMAT_OPTIONS+=";dpi:"+o:i.FORMAT_OPTIONS="dpi:"+o;break;case s.Z.MAPSERVER:i.MAP_RESOLUTION=90*r;break;case s.Z.CARMENTA_SERVER:case s.Z.QGIS:i.DPI=90*r;break;default:(0,l.h)(!1,8)}i.WIDTH=t[0],i.HEIGHT=t[1];var a,c=n.getAxisOrientation();return a=this.v13_&&"ne"==c.substr(0,2)?[e[1],e[0],e[3],e[2]]:e,i.BBOX=a.join(","),(0,u.B)(this.url_,i)}},{key:"getUrl",value:function(){return this.url_}},{key:"setImageLoadFunction",value:function(e){this.image_=null,this.imageLoadFunction_=e,this.changed()}},{key:"setUrl",value:function(e){e!=this.url_&&(this.url_=e,this.image_=null,this.changed())}},{key:"updateParams",value:function(e){(0,c.f0)(this.params_,e),this.updateV13_(),this.image_=null,this.changed()}},{key:"updateV13_",value:function(){var e=this.params_.VERSION||n.E;this.v13_=(0,p.n)(e,"1.3")>=0}}])&&m(t.prototype,r),v&&m(t,v),Object.defineProperty(t,"prototype",{writable:!1}),w}(o.ZP);t.Z=k},83954:function(e,t,r){"use strict";var n=r(46583),i=r(22954),o=r(62141);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,i,a=l(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate),t=a.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:n.Z.LOADING,tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition});var i={url:e.url,projection:t.getProjection(),mediaType:e.mediaType,context:e.context||null};return(0,o.X$)(i).then(t.handleTileSetInfo_.bind(f(t))).catch(t.handleError_.bind(f(t))),t}return t=c,(r=[{key:"handleTileSetInfo_",value:function(e){this.tileGrid=e.grid,this.setTileUrlFunction(e.urlFunction,e.urlTemplate),this.setState(n.Z.READY)}},{key:"handleError_",value:function(e){console.error(e),this.setState(n.Z.ERROR)}}])&&s(t.prototype,r),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Z);t.Z=p},79847:function(e,t,r){"use strict";r.d(t,{h:function(){return c}});var n=r(31998);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,r,n,i=s(u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t,r=e||{},n=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(n=r.interpolate),t=void 0!==r.attributions?r.attributions:[c];var o=void 0!==r.crossOrigin?r.crossOrigin:"anonymous",a=void 0!==r.url?r.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return i.call(this,{attributions:t,attributionsCollapsible:!1,cacheSize:r.cacheSize,crossOrigin:o,interpolate:n,maxZoom:void 0!==r.maxZoom?r.maxZoom:19,opaque:void 0===r.opaque||r.opaque,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileLoadFunction:r.tileLoadFunction,transition:r.transition,url:a,wrapX:r.wrapX,zDirection:r.zDirection})}return t=u,r&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z);t.Z=f},47486:function(e,t,r){"use strict";var n=r(61637),i=r(21510),o=r(6566),a=r(40661),s=r(86291),u=r(19010),l=r(82937),c=r(46583),f=r(42010),h=r(11196),p=r(33248),d=r(32275),y=r(33716),v=r(19329),m=r(86923),g=r(99382);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=w(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t,r){return t&&k(e.prototype,t),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var i=C(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return R(this,r)}}function R(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M,j=!0;try{new ImageData(10,10)}catch(e){j=!1}function I(e){var t=!0;try{new ImageData(10,10)}catch(e){t=!1}function r(e,r,n){return t?new ImageData(e,r,n):{data:e,width:r,height:n}}return function(t){var n=t.buffers,i=t.meta,o=t.imageOps,a=t.width,s=t.height,u=n.length,l=n[0].byteLength;if(o){for(var c=new Array(u),f=0;f<u;++f)c[f]=r(new Uint8ClampedArray(n[f]),a,s);return e(c,i).data.buffer}for(var h=new Uint8ClampedArray(l),p=new Array(u),d=new Array(u),y=0;y<u;++y)p[y]=new Uint8ClampedArray(n[y]),d[y]=[0,0,0,0];for(var v=0;v<l;v+=4){for(var m=0;m<u;++m){var g=p[m];d[m][0]=g[v],d[m][1]=g[v+1],d[m][2]=g[v+2],d[m][3]=g[v+3]}var b=e(d,i);h[v]=b[0],h[v+1]=b[1],h[v+2]=b[2],h[v+3]=b[3]}return h.buffer}}function A(e,t){var r=Object.keys(e.lib||{}).map((function(t){return"var "+t+" = "+e.lib[t].toString()+";"})).concat(["var __minion__ = ("+I.toString()+")(",e.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),n=new Worker("undefined"==typeof Blob?"data:text/javascript;base64,"+Buffer.from(r.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return n.addEventListener("message",t),n}var L=function(e){S(r,e);var t=T(r);function r(e){var n,i;x(this,r),(n=t.call(this))._imageOps=!!e.imageOps,i=0===e.threads?0:n._imageOps?1:e.threads||1;var o=new Array(i);if(i)for(var a=0;a<i;++a)o[a]=A(e,n._onWorkerMessage.bind(P(n),a));else o[0]=function(e,t){var r=I(e.operation),n=!1;return{postMessage:function(e){setTimeout((function(){n||t({data:{buffer:r(e),meta:e.meta}})}),0)},terminate:function(){n=!0}}}(e,n._onWorkerMessage.bind(P(n),0));return n._workers=o,n._queue=[],n._maxQueueLength=e.queue||1/0,n._running=0,n._dataLookup={},n._job=null,n}return O(r,[{key:"process",value:function(e,t,r){this._enqueue({inputs:e,meta:t,callback:r}),this._dispatch()}},{key:"_enqueue",value:function(e){for(this._queue.push(e);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)}},{key:"_dispatch",value:function(){if(!this._running&&0!==this._queue.length){var e=this._queue.shift();this._job=e;var t=e.inputs[0].width,r=e.inputs[0].height,n=e.inputs.map((function(e){return e.data.buffer})),i=this._workers.length;if(this._running=i,1!==i)for(var o=e.inputs[0].data.length,a=4*Math.ceil(o/4/i),s=0;s<i;++s){for(var u=s*a,l=[],c=0,f=n.length;c<f;++c)l.push(n[c].slice(u,u+a));this._workers[s].postMessage({buffers:l,meta:e.meta,imageOps:this._imageOps,width:t,height:r},l)}else this._workers[0].postMessage({buffers:n,meta:e.meta,imageOps:this._imageOps,width:t,height:r},n)}}},{key:"_onWorkerMessage",value:function(e,t){this.disposed||(this._dataLookup[e]=t.data,--this._running,0===this._running&&this._resolveJob())}},{key:"_resolveJob",value:function(){var e,t,r=this._job,n=this._workers.length;if(1===n)e=new Uint8ClampedArray(this._dataLookup[0].buffer),t=this._dataLookup[0].meta;else{var i=r.inputs[0].data.length;e=new Uint8ClampedArray(i),t=new Array(n);for(var o=4*Math.ceil(i/4/n),a=0;a<n;++a){var s=this._dataLookup[a].buffer,u=a*o;e.set(new Uint8ClampedArray(s),u),t[a]=this._dataLookup[a].meta}}this._job=null,this._dataLookup={},r.callback(null,function(e,t,r){if(j)return new ImageData(e,t,r);M||(M=document.createElement("canvas").getContext("2d"));var n=M.createImageData(t,r);return n.data.set(e),n}(e,r.inputs[0].width,r.inputs[0].height),t),this._dispatch()}},{key:"disposeInternal",value:function(){for(var e=0;e<this._workers.length;++e)this._workers[e].terminate();this._workers.length=0}}]),r}(n.Z),D="beforeoperations",Z="afteroperations",F="pixel",N="image",G=function(e){S(r,e);var t=T(r);function r(e,n,i){var o;return x(this,r),(o=t.call(this,e)).extent=n.extent,o.resolution=n.viewState.resolution/n.pixelRatio,o.data=i,o}return O(r)}(i.ZP),B=function(e){S(r,e);var t=T(r);function r(e){var n;x(this,r),(n=t.call(this,{projection:null})).on,n.once,n.un,n.processor_=null,n.operationType_=void 0!==e.operationType?e.operationType:F,n.threads_=void 0!==e.threads?e.threads:1,n.layers_=function(e){for(var t=e.length,r=new Array(t),n=0;n<t;++n)r[n]=q(e[n]);return r}(e.sources);for(var i,a=n.changed.bind(P(n)),s=0,u=n.layers_.length;s<u;++s)n.layers_[s].addEventListener(o.Z.CHANGE,a);return n.tileQueue_=new h.Z((function(){return 1}),n.changed.bind(P(n))),n.requestedFrameState_,n.renderedImageCanvas_=null,n.renderedRevision_,n.frameState_={animate:!1,coordinateToPixelTransform:(0,v.Ue)(),declutterTree:null,extent:null,index:0,layerIndex:0,layerStatesArray:(i=n.layers_,i.map((function(e){return e.getLayerState()}))),pixelRatio:1,pixelToCoordinateTransform:(0,v.Ue)(),postRenderFunctions:[],size:[0,0],tileQueue:n.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:(0,g.sq)(P(n)),renderTargets:{}},n.setAttributions((function(t){for(var r=[],n=0,i=e.sources.length;n<i;++n){var o=e.sources[n],a=(o instanceof l.Z?o:o.getSource()).getAttributions();if("function"==typeof a){var s=a(t);r.push.apply(r,s)}}return 0!==r.length?r:null})),void 0!==e.operation&&n.setOperation(e.operation,e.lib),n}return O(r,[{key:"setOperation",value:function(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new L({operation:e,imageOps:this.operationType_===N,queue:1,lib:t,threads:this.threads_}),this.changed()}},{key:"updateFrameState_",value:function(e,t,r){var n=(0,d.f0)({},this.frameState_);n.viewState=(0,d.f0)({},n.viewState);var i=(0,m.qg)(e);n.extent=e.slice(),n.size[0]=Math.round((0,m.dz)(e)/t),n.size[1]=Math.round((0,m.Cr)(e)/t),n.time=Date.now();var o=n.viewState;return o.center=i,o.projection=r,o.resolution=t,n}},{key:"allSourcesReady_",value:function(){for(var e=!0,t=0,r=this.layers_.length;t<r;++t)if(this.layers_[t].getSource().getState()!==c.Z.READY){e=!1;break}return e}},{key:"getImage",value:function(e,t,r,n){if(!this.allSourcesReady_())return null;var i=this.updateFrameState_(e,t,n);if(this.requestedFrameState_=i,this.renderedImageCanvas_){var o=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();t===o&&(0,m.fS)(e,a)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),i.tileQueue.loadMoreTiles(16,16),i.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}},{key:"processSources_",value:function(){for(var e=this.requestedFrameState_,t=this.layers_.length,r=new Array(t),n=0;n<t;++n){e.layerIndex=n;var i=U(this.layers_[n],e);if(!i)return;r[n]=i}var o={};this.dispatchEvent(new G(D,e,o)),this.processor_.process(r,o,this.onWorkerComplete_.bind(this,e))}},{key:"onWorkerComplete_",value:function(e,t,r,n){if(!t&&r){var i=e.extent,o=e.viewState.resolution;if(o===this.requestedFrameState_.viewState.resolution&&(0,m.fS)(i,this.requestedFrameState_.extent)){var s;if(this.renderedImageCanvas_)s=this.renderedImageCanvas_.getImage().getContext("2d");else{var u=Math.round((0,m.dz)(i)/o),l=Math.round((0,m.Cr)(i)/o);s=(0,y.E4)(u,l),this.renderedImageCanvas_=new a.Z(i,o,1,s.canvas)}s.putImageData(r,0,0),this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new G(Z,e,n)),e.animate&&requestAnimationFrame(this.changed.bind(this))}}}},{key:"disposeInternal",value:function(){this.processor_&&this.processor_.dispose(),_(C(r.prototype),"disposeInternal",this).call(this)}}]),r}(u.ZP);B.prototype.dispose;var z=null;function U(e,t){var r=e.getRenderer();if(!r)throw new Error("Unsupported layer type: "+e);if(!r.prepareFrame(t))return null;var n=t.size[0],i=t.size[1];if(0===n||0===i)return null;var o,a=r.renderFrame(t,null);if(a&&(o=a.firstElementChild),!(o instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+o);if(o.width===n&&o.height===i)return o.getContext("2d").getImageData(0,0,n,i);if(z){var s=z.canvas;s.width!==n||s.height!==i?z=(0,y.E4)(n,i):z.clearRect(0,0,n,i)}else z=(0,y.E4)(n,i);return z.drawImage(o,0,0,n,i),z.getImageData(0,0,n,i)}function q(e){var t;return e instanceof l.Z?e instanceof p.Z?t=new f.Z({source:e}):e instanceof u.ZP&&(t=new s.Z({source:e})):t=e,t}t.ZP=B},82937:function(e,t,r){"use strict";var n=r(80157),i=r(46583),o=r(99382),a=r(12810);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,r,n,s=c(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this)).projection=(0,a.U2)(e.projection),t.attributions_=y(e.attributions),t.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,t.loading=!1,t.state_=void 0!==e.state?e.state:i.Z.READY,t.wrapX_=void 0!==e.wrapX&&e.wrapX,t.interpolate_=!!e.interpolate,t.viewResolver=null,t.viewRejector=null;var r=h(t);return t.viewPromise_=new Promise((function(e,t){r.viewResolver=e,r.viewRejector=t})),t}return t=f,(r=[{key:"getAttributions",value:function(){return this.attributions_}},{key:"getAttributionsCollapsible",value:function(){return this.attributionsCollapsible_}},{key:"getProjection",value:function(){return this.projection}},{key:"getResolutions",value:function(){return(0,o.O3)()}},{key:"getView",value:function(){return this.viewPromise_}},{key:"getState",value:function(){return this.state_}},{key:"getWrapX",value:function(){return this.wrapX_}},{key:"getInterpolate",value:function(){return this.interpolate_}},{key:"refresh",value:function(){this.changed()}},{key:"setAttributions",value:function(e){this.attributions_=y(e),this.changed()}},{key:"setState",value:function(e){this.state_=e,this.changed()}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n.Z);function y(e){return e?Array.isArray(e)?function(t){return e}:"function"==typeof e?e:function(t){return[e]}:null}t.Z=d},14703:function(e,t,r){"use strict";var n=r(31998);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=['Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.',r(79847).h],f={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},h={terrain:{minZoom:0,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:0,maxZoom:18}},p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,r,n,i=s(u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(t=e.interpolate);var r=e.layer.indexOf("-"),n=-1==r?e.layer:e.layer.slice(0,r),o=h[n],a=f[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+a.extension;return i.call(this,{attributions:c,cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:t,maxZoom:null!=e.maxZoom?e.maxZoom:o.maxZoom,minZoom:null!=e.minZoom?e.minZoom:o.minZoom,opaque:a.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:s,wrapX:e.wrapX,zDirection:e.zDirection})}return t=u,r&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z);t.Z=p},46583:function(e,t){"use strict";t.Z={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},33248:function(e,t,r){"use strict";r.d(t,{s:function(){return S}});var n=r(21510),i=r(82937),o=r(82076),a=r(80542),s=r(99382),u=r(90776),l=r(12810),c=r(5162),f=r(19352),h=r(7877);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=g(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){b(r,e);var t=w(r);function r(e){var n;d(this,r),(n=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate})).on,n.once,n.un,n.opaque_=void 0!==e.opaque&&e.opaque,n.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,n.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var i=e.tileGrid;return i&&(0,h.Pq)(i.getTileSize(i.getMinZoom()),[256,256]),n.tileCache=new o.Z(e.cacheSize||0),n.tmpSize=[0,0],n.key_=e.key||"",n.tileOptions={transition:e.transition,interpolate:e.interpolate},n.zDirection=e.zDirection?e.zDirection:0,n}return v(r,[{key:"canExpireCache",value:function(){return this.tileCache.canExpireCache()}},{key:"expireCache",value:function(e,t){var r=this.getTileCacheForProjection(e);r&&r.expireCache(t)}},{key:"forEachLoadedTile",value:function(e,t,r,n){var i=this.getTileCacheForProjection(e);if(!i)return!1;for(var o,s,u,l=!0,f=r.minX;f<=r.maxX;++f)for(var h=r.minY;h<=r.maxY;++h)s=(0,c.lg)(t,f,h),u=!1,i.containsKey(s)&&(u=(o=i.get(s)).getState()===a.Z.LOADED)&&(u=!1!==n(o)),u||(l=!1);return l}},{key:"getGutterForProjection",value:function(e){return 0}},{key:"getKey",value:function(){return this.key_}},{key:"setKey",value:function(e){this.key_!==e&&(this.key_=e,this.changed())}},{key:"getOpaque",value:function(e){return this.opaque_}},{key:"getResolutions",value:function(){return this.tileGrid.getResolutions()}},{key:"getTile",value:function(e,t,r,n,i){return(0,s.O3)()}},{key:"getTileGrid",value:function(){return this.tileGrid}},{key:"getTileGridForProjection",value:function(e){return this.tileGrid?this.tileGrid:(0,f.X$)(e)}},{key:"getTileCacheForProjection",value:function(e){return(0,u.h)((0,l.OP)(this.getProjection(),e),68),this.tileCache}},{key:"getTilePixelRatio",value:function(e){return this.tilePixelRatio_}},{key:"getTilePixelSize",value:function(e,t,r){var n=this.getTileGridForProjection(r),i=this.getTilePixelRatio(t),o=(0,h.Pq)(n.getTileSize(e),this.tmpSize);return 1==i?o:(0,h.bA)(o,i,this.tmpSize)}},{key:"getTileCoordForTileUrlFunction",value:function(e,t){var r=void 0!==t?t:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(e=(0,f.Cf)(n,e,r)),(0,c.tE)(e,n)?e:null}},{key:"clear",value:function(){this.tileCache.clear()}},{key:"refresh",value:function(){this.clear(),m(k(r.prototype),"refresh",this).call(this)}},{key:"updateCacheSize",value:function(e,t){var r=this.getTileCacheForProjection(t);e>r.highWaterMark&&(r.highWaterMark=e)}},{key:"useTile",value:function(e,t,r,n){}}]),r}(i.Z),S=function(e){b(r,e);var t=w(r);function r(e,n){var i;return d(this,r),(i=t.call(this,e)).tile=n,i}return v(r)}(n.ZP);t.Z=O},18626:function(e,t,r){"use strict";var n=r(31998),i=r(33716),o=r(7877);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(c,e);var t,r,n,a=l(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=e||{};return t=a.call(this,{opaque:!1,projection:r.projection,tileGrid:r.tileGrid,wrapX:void 0===r.wrapX||r.wrapX,zDirection:r.zDirection,url:r.template||"z:{z} x:{x} y:{y}",tileLoadFunction:function(e,r){var n=e.getTileCoord()[0],a=(0,o.Pq)(t.tileGrid.getTileSize(n)),s=(0,i.E4)(a[0],a[1]);s.strokeStyle="grey",s.strokeRect(.5,.5,a[0]+.5,a[1]+.5),s.fillStyle="grey",s.strokeStyle="white",s.textAlign="center",s.textBaseline="middle",s.font="24px sans-serif",s.lineWidth=4,s.strokeText(r,a[0]/2,a[1]/2,a[0]),s.fillText(r,a[0]/2,a[1]/2,a[0]),e.setImage(s.canvas)}})}return t=c,r&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z);t.Z=h},87426:function(e,t){"use strict";t.Z={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},22954:function(e,t,r){"use strict";var n=r(6566),i=r(14652),o=r(1368),a=r(82076),s=r(80542),u=r(13076),l=r(38312),c=r(12810),f=r(5162),h=r(19352),p=r(99382);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=m(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(m,e);var t,r,u,d=b(m);function m(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m);var r=void 0===e.imageSmoothing||e.imageSmoothing;return void 0!==e.interpolate&&(r=e.interpolate),(t=d.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:k,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:r,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})).crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,t.tileClass=void 0!==e.tileClass?e.tileClass:i.Z,t.tileCacheForProjection={},t.tileGridForProjection={},t.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,t.renderReprojectionEdges_=!1,t}return t=m,(r=[{key:"canExpireCache",value:function(){if(!l.j)return v(w(m.prototype),"canExpireCache",this).call(this);if(this.tileCache.canExpireCache())return!0;for(var e in this.tileCacheForProjection)if(this.tileCacheForProjection[e].canExpireCache())return!0;return!1}},{key:"expireCache",value:function(e,t){if(l.j){var r=this.getTileCacheForProjection(e);for(var n in this.tileCache.expireCache(this.tileCache==r?t:{}),this.tileCacheForProjection){var i=this.tileCacheForProjection[n];i.expireCache(i==r?t:{})}}else v(w(m.prototype),"expireCache",this).call(this,e,t)}},{key:"getGutterForProjection",value:function(e){return l.j&&this.getProjection()&&e&&!(0,c.OP)(this.getProjection(),e)?0:this.getGutter()}},{key:"getGutter",value:function(){return 0}},{key:"getKey",value:function(){var e=v(w(m.prototype),"getKey",this).call(this);return this.getInterpolate()||(e+=":disable-interpolation"),e}},{key:"getOpaque",value:function(e){return!(l.j&&this.getProjection()&&e&&!(0,c.OP)(this.getProjection(),e))&&v(w(m.prototype),"getOpaque",this).call(this,e)}},{key:"getTileGridForProjection",value:function(e){if(!l.j)return v(w(m.prototype),"getTileGridForProjection",this).call(this,e);var t=this.getProjection();if(!this.tileGrid||t&&!(0,c.OP)(t,e)){var r=(0,p.sq)(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=(0,h.X$)(e)),this.tileGridForProjection[r]}return this.tileGrid}},{key:"getTileCacheForProjection",value:function(e){if(!l.j)return v(w(m.prototype),"getTileCacheForProjection",this).call(this,e);var t=this.getProjection();if(!t||(0,c.OP)(t,e))return this.tileCache;var r=(0,p.sq)(e);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new a.Z(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]}},{key:"createTile_",value:function(e,t,r,i,o,a){var u=[e,t,r],l=this.getTileCoordForTileUrlFunction(u,o),c=l?this.tileUrlFunction(l,i,o):void 0,f=new this.tileClass(u,void 0!==c?s.Z.IDLE:s.Z.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return f.key=a,f.addEventListener(n.Z.CHANGE,this.handleTileChange.bind(this)),f}},{key:"getTile",value:function(e,t,r,n,i){var a=this.getProjection();if(l.j&&a&&i&&!(0,c.OP)(a,i)){var s,u=this.getTileCacheForProjection(i),h=[e,t,r],p=(0,f.km)(h);u.containsKey(p)&&(s=u.get(p));var d=this.getKey();if(s&&s.key==d)return s;var y=this.getTileGridForProjection(a),v=this.getTileGridForProjection(i),m=this.getTileCoordForTileUrlFunction(h,i),g=new o.Z(a,y,i,v,h,m,this.getTilePixelRatio(n),this.getGutter(),function(e,t,r,n){return this.getTileInternal(e,t,r,n,a)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return g.key=d,s?(g.interimTile=s,g.refreshInterimChain(),u.replace(p,g)):u.set(p,g),g}return this.getTileInternal(e,t,r,n,a||i)}},{key:"getTileInternal",value:function(e,t,r,n,i){var o=null,a=(0,f.lg)(e,t,r),u=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=u){var l=o;o=this.createTile_(e,t,r,n,i,u),l.getState()==s.Z.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(e,t,r,n,i,u),this.tileCache.set(a,o);return o}},{key:"setRenderReprojectionEdges",value:function(e){if(l.j&&this.renderReprojectionEdges_!=e){for(var t in this.renderReprojectionEdges_=e,this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}},{key:"setTileGridForProjection",value:function(e,t){if(l.j){var r=(0,c.U2)(e);if(r){var n=(0,p.sq)(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=t)}}}}])&&y(t.prototype,r),u&&y(t,u),Object.defineProperty(t,"prototype",{writable:!1}),m}(u.Z);function k(e,t){e.getImage().src=t}t.Z=x},76166:function(e,t,r){"use strict";var n=r(46583),i=r(22954),o=r(86923),a=r(90776),s=r(75059),u=r(19352),l=r(12810),c=r(40574);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,r,i,f=d(y);function y(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);var r=void 0===e.imageSmoothing||e.imageSmoothing;if(void 0!==e.interpolate&&(r=e.interpolate),(t=f.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:(0,l.U2)("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:n.Z.LOADING,tileLoadFunction:e.tileLoadFunction,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:e.zDirection})).tileJSON_=null,t.tileSize_=e.tileSize,e.url)if(e.jsonp)(0,c.R6)(e.url,t.handleTileJSONResponse.bind(v(t)),t.handleTileJSONError.bind(v(t)));else{var i=new XMLHttpRequest;i.addEventListener("load",t.onXHRLoad_.bind(v(t))),i.addEventListener("error",t.onXHRError_.bind(v(t))),i.open("GET",e.url),i.send()}else e.tileJSON?t.handleTileJSONResponse(e.tileJSON):(0,a.h)(!1,51);return t}return t=y,(r=[{key:"onXHRLoad_",value:function(e){var t=e.target;if(!t.status||t.status>=200&&t.status<300){var r;try{r=JSON.parse(t.responseText)}catch(e){return void this.handleTileJSONError()}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}},{key:"onXHRError_",value:function(e){this.handleTileJSONError()}},{key:"getTileJSON",value:function(){return this.tileJSON_}},{key:"handleTileJSONResponse",value:function(e){var t,r=(0,l.U2)("EPSG:4326"),i=this.getProjection();if(void 0!==e.bounds){var a=(0,l.WO)(r,i);t=(0,o.Ne)(e.bounds,a)}var c=(0,u.Tl)(i),f=e.minzoom||0,h=e.maxzoom||22,p=(0,u.dl)({extent:c,maxZoom:h,minZoom:f,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=(0,s.uR)(e.tiles,p),void 0!==e.attribution&&!this.getAttributions()){var d=void 0!==t?t:c;this.setAttributions((function(t){return(0,o.kK)(d,t.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState(n.Z.READY)}},{key:"handleTileJSONError",value:function(){this.setState(n.Z.ERROR)}}])&&h(t.prototype,r),i&&h(t,i),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.Z);t.Z=g},35673:function(e,t,r){"use strict";var n=r(19149),i=r(22954),o=r(87393),a=r(62514),s=r(90776),u=r(32275),l=r(86923),c=r(7877),f=r(53040),h=r(26094),p=r(12810),d=r(62990),y=r(5162);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(_,e);var t,r,i,v=b(_);function _(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var r=e||{},n=void 0===r.imageSmoothing||r.imageSmoothing;void 0!==r.interpolate&&(n=r.interpolate);var i=r.params||{},o=!("TRANSPARENT"in i)||i.TRANSPARENT;return(t=v.call(this,{attributions:r.attributions,attributionsCollapsible:r.attributionsCollapsible,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,interpolate:n,opaque:!o,projection:r.projection,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileClass:r.tileClass,tileGrid:r.tileGrid,tileLoadFunction:r.tileLoadFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,zDirection:r.zDirection})).gutter_=void 0!==r.gutter?r.gutter:0,t.params_=i,t.v13_=!0,t.serverType_=r.serverType,t.hidpi_=void 0===r.hidpi||r.hidpi,t.tmpExtent_=(0,l.lJ)(),t.updateV13_(),t.setKey(t.getKeyForParams_()),t}return t=_,(r=[{key:"getFeatureInfoUrl",value:function(e,t,r,i){var o=(0,p.U2)(r),a=this.getProjection(),s=this.getTileGrid();s||(s=this.getTileGridForProjection(o));var h=s.getZForResolution(t,this.zDirection),d=s.getTileCoordForCoordAndZ(e,h);if(!(s.getResolutions().length<=d[0])){var y=s.getResolution(d[0]),v=s.getTileCoordExtent(d,this.tmpExtent_),m=(0,c.Pq)(s.getTileSize(d[0]),this.tmpSize),g=this.gutter_;0!==g&&(m=(0,c.f3)(m,g,this.tmpSize),v=(0,l.f3)(v,y*g,v)),a&&a!==o&&(y=(0,f.aA)(a,o,e,y),v=(0,p.$A)(v,o,a),e=(0,p.vs)(e,o,a));var b={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};(0,u.f0)(b,this.params_,i);var _=Math.floor((e[0]-v[0])/y),w=Math.floor((v[3]-e[1])/y);return b[this.v13_?"I":"X"]=_,b[this.v13_?"J":"Y"]=w,this.getRequestUrl_(d,m,v,1,a||o,b)}}},{key:"getLegendUrl",value:function(e,t){if(void 0!==this.urls[0]){var r={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===t||void 0===t.LAYER){var i=this.params_.LAYERS;if(Array.isArray(i)&&1!==i.length)return;r.LAYER=i}if(void 0!==e){var o=this.getProjection()?this.getProjection().getMetersPerUnit():1;r.SCALE=e*o/28e-5}return(0,u.f0)(r,t),(0,a.B)(this.urls[0],r)}}},{key:"getGutter",value:function(){return this.gutter_}},{key:"getParams",value:function(){return this.params_}},{key:"getRequestUrl_",value:function(e,t,r,n,i,u){var l=this.urls;if(l){if(u.WIDTH=t[0],u.HEIGHT=t[1],u[this.v13_?"CRS":"SRS"]=i.getCode(),"STYLES"in this.params_||(u.STYLES=""),1!=n)switch(this.serverType_){case o.Z.GEOSERVER:var c=90*n+.5|0;"FORMAT_OPTIONS"in u?u.FORMAT_OPTIONS+=";dpi:"+c:u.FORMAT_OPTIONS="dpi:"+c;break;case o.Z.MAPSERVER:u.MAP_RESOLUTION=90*n;break;case o.Z.CARMENTA_SERVER:case o.Z.QGIS:u.DPI=90*n;break;default:(0,s.h)(!1,52)}var f,h,p=i.getAxisOrientation(),v=r;return this.v13_&&"ne"==p.substr(0,2)&&(f=r[0],v[0]=r[1],v[1]=f,f=r[2],v[2]=r[3],v[3]=f),u.BBOX=v.join(","),h=1==l.length?l[0]:l[(0,d.$W)((0,y.vp)(e),l.length)],(0,a.B)(h,u)}}},{key:"getTilePixelRatio",value:function(e){return this.hidpi_&&void 0!==this.serverType_?e:1}},{key:"getKeyForParams_",value:function(){var e=0,t=[];for(var r in this.params_)t[e++]=r+"-"+this.params_[r];return t.join("/")}},{key:"updateParams",value:function(e){(0,u.f0)(this.params_,e),this.updateV13_(),this.setKey(this.getKeyForParams_())}},{key:"updateV13_",value:function(){var e=this.params_.VERSION||n.E;this.v13_=(0,h.n)(e,"1.3")>=0}},{key:"tileUrlFunction",value:function(e,t,r){var i=this.getTileGrid();if(i||(i=this.getTileGridForProjection(r)),!(i.getResolutions().length<=e[0])){1==t||this.hidpi_&&void 0!==this.serverType_||(t=1);var o=i.getResolution(e[0]),a=i.getTileCoordExtent(e,this.tmpExtent_),s=(0,c.Pq)(i.getTileSize(e[0]),this.tmpSize),f=this.gutter_;0!==f&&(s=(0,c.f3)(s,f,this.tmpSize),a=(0,l.f3)(a,o*f,a)),1!=t&&(s=(0,c.bA)(s,t,this.tmpSize));var h={SERVICE:"WMS",VERSION:n.E,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return(0,u.f0)(h,this.params_),this.getRequestUrl_(e,s,a,t,r,h)}}}])&&m(t.prototype,r),i&&m(t,i),Object.defineProperty(t,"prototype",{writable:!1}),_}(i.Z);t.Z=x},13076:function(e,t,r){"use strict";var n=r(87426),i=r(33248),o=r(80542),a=r(75059),s=r(5162),u=r(99382);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,r,l,p=h(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(t=p.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})).generateTileUrlFunction_=t.tileUrlFunction===d.prototype.tileUrlFunction,t.tileLoadFunction=e.tileLoadFunction,e.tileUrlFunction&&(t.tileUrlFunction=e.tileUrlFunction),t.urls=null,e.urls?t.setUrls(e.urls):e.url&&t.setUrl(e.url),t.tileLoadingKeys_={},t}return t=d,(r=[{key:"getTileLoadFunction",value:function(){return this.tileLoadFunction}},{key:"getTileUrlFunction",value:function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}},{key:"getUrls",value:function(){return this.urls}},{key:"handleTileChange",value:function(e){var t,r=e.target,a=(0,u.sq)(r),s=r.getState();s==o.Z.LOADING?(this.tileLoadingKeys_[a]=!0,t=n.Z.TILELOADSTART):a in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[a],t=s==o.Z.ERROR?n.Z.TILELOADERROR:s==o.Z.LOADED?n.Z.TILELOADEND:void 0),null!=t&&this.dispatchEvent(new i.s(t,r))}},{key:"setTileLoadFunction",value:function(e){this.tileCache.clear(),this.tileLoadFunction=e,this.changed()}},{key:"setTileUrlFunction",value:function(e,t){this.tileUrlFunction=e,this.tileCache.pruneExceptNewestZ(),void 0!==t?this.setKey(t):this.changed()}},{key:"setUrl",value:function(e){var t=(0,a.Gk)(e);this.urls=t,this.setUrls(t)}},{key:"setUrls",value:function(e){this.urls=e;var t=e.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction((0,a.uR)(e,this.tileGrid),t):this.setKey(t)}},{key:"tileUrlFunction",value:function(e,t,r){}},{key:"useTile",value:function(e,t,r){var n=(0,s.lg)(e,t,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}])&&c(t.prototype,r),l&&c(t,l),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.Z);t.Z=y},95783:function(e,t,r){"use strict";var n=r(25898),i=r(31879),o=r(21510),a=r(6566),s=r(79937),u=r(20375),l=r(82937),c=r(46583),f=r(48201),h=r(13837),p=r(2383),d=r(90776),y=r(86923),v=r(17985),m=r(99382),g=r(32275),b=r(12016),_=r(85554);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=k(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t,r){return t&&O(e.prototype,t),r&&O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=M(e);if(t){var i=M(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){T(r,e);var t=P(r);function r(e,n,i){var o;return E(this,r),(o=t.call(this,e)).feature=n,o.features=i,o}return S(r)}(o.ZP),I=function(e){T(r,e);var t=P(r);function r(e){var i;E(this,r);var o=e||{};(i=t.call(this,{attributions:o.attributions,interpolate:!0,projection:void 0,state:c.Z.READY,wrapX:void 0===o.wrapX||o.wrapX})).on,i.once,i.un,i.loader_=h.Zn,i.format_=o.format,i.overlaps_=void 0===o.overlaps||o.overlaps,i.url_=o.url,void 0!==o.loader?i.loader_=o.loader:void 0!==i.url_&&((0,d.h)(i.format_,7),i.loader_=(0,_.Be)(i.url_,i.format_)),i.strategy_=void 0!==o.strategy?o.strategy:p.$6;var a,s,l=void 0===o.useSpatialIndex||o.useSpatialIndex;return i.featuresRtree_=l?new u.Z:null,i.loadedExtentsRtree_=new u.Z,i.loadingExtentsCount_=0,i.nullGeometryFeatures_={},i.idIndex_={},i.uidIndex_={},i.featureChangeKeys_={},i.featuresCollection_=null,Array.isArray(o.features)?s=o.features:o.features&&(s=(a=o.features).getArray()),l||void 0!==a||(a=new n.Z(s)),void 0!==s&&i.addFeaturesInternal(s),void 0!==a&&i.bindFeaturesCollection_(a),i}return S(r,[{key:"addFeature",value:function(e){this.addFeatureInternal(e),this.changed()}},{key:"addFeatureInternal",value:function(e){var t=(0,m.sq)(e);if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var r=e.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new j(f.Z.ADDFEATURE,e))}else this.featuresCollection_&&this.featuresCollection_.remove(e)}},{key:"setupChangeEvents_",value:function(e,t){this.featureChangeKeys_[e]=[(0,b.oL)(t,a.Z.CHANGE,this.handleFeatureChange_,this),(0,b.oL)(t,s.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]}},{key:"addToIndex_",value:function(e,t){var r=!0,n=t.getId();return void 0!==n&&(n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=t),r&&((0,d.h)(!(e in this.uidIndex_),30),this.uidIndex_[e]=t),r}},{key:"addFeatures",value:function(e){this.addFeaturesInternal(e),this.changed()}},{key:"addFeaturesInternal",value:function(e){for(var t=[],r=[],n=[],i=0,o=e.length;i<o;i++){var a=e[i],s=(0,m.sq)(a);this.addToIndex_(s,a)&&r.push(a)}for(var u=0,l=r.length;u<l;u++){var c=r[u],h=(0,m.sq)(c);this.setupChangeEvents_(h,c);var p=c.getGeometry();if(p){var d=p.getExtent();t.push(d),n.push(c)}else this.nullGeometryFeatures_[h]=c}this.featuresRtree_&&this.featuresRtree_.load(t,n);for(var y=0,v=r.length;y<v;y++)this.dispatchEvent(new j(f.Z.ADDFEATURE,r[y]))}},{key:"bindFeaturesCollection_",value:function(e){var t=!1;this.addEventListener(f.Z.ADDFEATURE,(function(r){t||(t=!0,e.push(r.feature),t=!1)})),this.addEventListener(f.Z.REMOVEFEATURE,(function(r){t||(t=!0,e.remove(r.feature),t=!1)})),e.addEventListener(i.Z.ADD,function(e){t||(t=!0,this.addFeature(e.element),t=!1)}.bind(this)),e.addEventListener(i.Z.REMOVE,function(e){t||(t=!0,this.removeFeature(e.element),t=!1)}.bind(this)),this.featuresCollection_=e}},{key:"clear",value:function(e){if(e){for(var t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(b.bN)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var r=function(e){this.removeFeatureInternal(e)}.bind(this);for(var n in this.featuresRtree_.forEach(r),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[n])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var i=new j(f.Z.CLEAR);this.dispatchEvent(i),this.changed()}},{key:"forEachFeature",value:function(e){if(this.featuresRtree_)return this.featuresRtree_.forEach(e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}},{key:"forEachFeatureAtCoordinateDirect",value:function(e,t){var r=[e[0],e[1],e[0],e[1]];return this.forEachFeatureInExtent(r,(function(r){return r.getGeometry().intersectsCoordinate(e)?t(r):void 0}))}},{key:"forEachFeatureInExtent",value:function(e,t){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(e,t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}},{key:"forEachFeatureIntersectingExtent",value:function(e,t){return this.forEachFeatureInExtent(e,(function(r){if(r.getGeometry().intersectsExtent(e)){var n=t(r);if(n)return n}}))}},{key:"getFeaturesCollection",value:function(){return this.featuresCollection_}},{key:"getFeatures",value:function(){var e;return this.featuresCollection_?e=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(e=this.featuresRtree_.getAll(),(0,g.xb)(this.nullGeometryFeatures_)||(0,v.l7)(e,(0,g.KX)(this.nullGeometryFeatures_))),e}},{key:"getFeaturesAtCoordinate",value:function(e){var t=[];return this.forEachFeatureAtCoordinateDirect(e,(function(e){t.push(e)})),t}},{key:"getFeaturesInExtent",value:function(e){return this.featuresRtree_?this.featuresRtree_.getInExtent(e):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}},{key:"getClosestFeatureToCoordinate",value:function(e,t){var r=e[0],n=e[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],u=t||h.uX;return this.featuresRtree_.forEachInExtent(s,(function(e){if(u(e)){var t=e.getGeometry(),l=a;if((a=t.closestPointXY(r,n,o,a))<l){i=e;var c=Math.sqrt(a);s[0]=r-c,s[1]=n-c,s[2]=r+c,s[3]=n+c}}})),i}},{key:"getExtent",value:function(e){return this.featuresRtree_.getExtent(e)}},{key:"getFeatureById",value:function(e){var t=this.idIndex_[e.toString()];return void 0!==t?t:null}},{key:"getFeatureByUid",value:function(e){var t=this.uidIndex_[e];return void 0!==t?t:null}},{key:"getFormat",value:function(){return this.format_}},{key:"getOverlaps",value:function(){return this.overlaps_}},{key:"getUrl",value:function(){return this.url_}},{key:"handleFeatureChange_",value:function(e){var t=e.target,r=(0,m.sq)(t),n=t.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,t)):this.featuresRtree_&&this.featuresRtree_.update(i,t)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(t),this.nullGeometryFeatures_[r]=t);var o=t.getId();if(void 0!==o){var a=o.toString();this.idIndex_[a]!==t&&(this.removeFromIdIndex_(t),this.idIndex_[a]=t)}else this.removeFromIdIndex_(t),this.uidIndex_[r]=t;this.changed(),this.dispatchEvent(new j(f.Z.CHANGEFEATURE,t))}},{key:"hasFeature",value:function(e){var t=e.getId();return void 0!==t?t in this.idIndex_:(0,m.sq)(e)in this.uidIndex_}},{key:"isEmpty",value:function(){return this.featuresRtree_.isEmpty()&&(0,g.xb)(this.nullGeometryFeatures_)}},{key:"loadFeatures",value:function(e,t,r){for(var n=this,i=this.loadedExtentsRtree_,o=this.strategy_(e,t,r),a=function(e,a){var s=o[e];i.forEachInExtent(s,(function(e){return(0,y.r4)(e.extent,s)}))||(++n.loadingExtentsCount_,n.dispatchEvent(new j(f.Z.FEATURESLOADSTART)),n.loader_.call(n,s,t,r,function(e){--this.loadingExtentsCount_,this.dispatchEvent(new j(f.Z.FEATURESLOADEND,void 0,e))}.bind(n),function(){--this.loadingExtentsCount_,this.dispatchEvent(new j(f.Z.FEATURESLOADERROR))}.bind(n)),i.insert(s,{extent:s.slice()}))},s=0,u=o.length;s<u;++s)a(s);this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}},{key:"refresh",value:function(){this.clear(!0),this.loadedExtentsRtree_.clear(),x(M(r.prototype),"refresh",this).call(this)}},{key:"removeLoadedExtent",value:function(e){var t,r=this.loadedExtentsRtree_;r.forEachInExtent(e,(function(r){if((0,y.fS)(r.extent,e))return t=r,!0})),t&&r.remove(t)}},{key:"removeFeature",value:function(e){if(e){var t=(0,m.sq)(e);t in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[t]:this.featuresRtree_&&this.featuresRtree_.remove(e),this.removeFeatureInternal(e)&&this.changed()}}},{key:"removeFeatureInternal",value:function(e){var t=(0,m.sq)(e),r=this.featureChangeKeys_[t];if(r){r.forEach(b.bN),delete this.featureChangeKeys_[t];var n=e.getId();return void 0!==n&&delete this.idIndex_[n.toString()],delete this.uidIndex_[t],this.dispatchEvent(new j(f.Z.REMOVEFEATURE,e)),e}}},{key:"removeFromIdIndex_",value:function(e){var t=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===e){delete this.idIndex_[r],t=!0;break}return t}},{key:"setLoader",value:function(e){this.loader_=e}},{key:"setUrl",value:function(e){(0,d.h)(this.format_,7),this.url_=e,this.setLoader((0,_.Be)(e,this.format_))}}]),r}(l.Z);t.Z=I},48201:function(e,t){"use strict";t.Z={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},28083:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n=r(6566),i=r(99626),o=r(80542);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,r,n,i=l(a);function a(e,t,r,n,o,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(u=i.call(this,e,t,s)).extent=null,u.format_=n,u.features_=null,u.loader_,u.projection=null,u.resolution,u.tileLoadFunction_=o,u.url_=r,u.key=r,u}return t=a,(r=[{key:"getFormat",value:function(){return this.format_}},{key:"getFeatures",value:function(){return this.features_}},{key:"load",value:function(){this.state==o.Z.IDLE&&(this.setState(o.Z.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}},{key:"onLoad",value:function(e,t){this.setFeatures(e)}},{key:"onError",value:function(){this.setState(o.Z.ERROR)}},{key:"setFeatures",value:function(e){this.features_=e,this.setState(o.Z.LOADED)}},{key:"setLoader",value:function(e){this.loader_=e}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Z),p=r(82076),d=r(13076),y=r(33716),v=r(99382);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=_(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=[],T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(o,e);var t,r,n,i=x(o);function o(e,t,r,n){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(a=i.call(this,e,t,{transition:0})).context_={},a.executorGroups={},a.declutterExecutorGroups={},a.loadingSourceTiles=0,a.hitDetectionImageData={},a.replayState_={},a.sourceTiles=[],a.errorTileKeys={},a.wantedResolution,a.getSourceTiles=n.bind(void 0,O(a)),a.wrappedTileCoord=r,a}return t=o,(r=[{key:"getContext",value:function(e){var t=(0,v.sq)(e);return t in this.context_||(this.context_[t]=(0,y.E4)(1,1,E)),this.context_[t]}},{key:"hasContext",value:function(e){return(0,v.sq)(e)in this.context_}},{key:"getImage",value:function(e){return this.hasContext(e)?this.getContext(e).canvas:null}},{key:"getReplayState",value:function(e){var t=(0,v.sq)(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]}},{key:"load",value:function(){this.getSourceTiles()}},{key:"release",value:function(){for(var e in this.context_)E.push(this.context_[e].canvas),delete this.context_[e];b(S(o.prototype),"release",this).call(this)}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.Z),R=r(86923),P=r(19352),C=r(5162),M=r(32275),j=r(85554),I=r(7877);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(){return(D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=Z(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function Z(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=B(e)););return e}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=B(e);if(t){var i=B(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return G(this,r)}}function G(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(s,e);var t,r,i,a=N(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var r=e.projection||"EPSG:3857",n=e.extent||(0,P.Tl)(r),i=e.tileGrid||(0,P.dl)({extent:n,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});return(t=a.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:r,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:U,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection})).format_=e.format?e.format:null,t.sourceTileCache=new p.Z(t.tileCache.highWaterMark),t.overlaps_=null==e.overlaps||e.overlaps,t.tileClass=e.tileClass?e.tileClass:h,t.tileGrids_={},t}return t=s,(r=[{key:"getFeaturesInExtent",value:function(e){var t=[],r=this.tileCache;if(0===r.getCount())return t;var n=(0,C.Ul)(r.peekFirstKey())[0],i=this.tileGrid;return r.forEach((function(r){if(r.tileCoord[0]===n&&r.getState()===o.Z.LOADED)for(var a=r.getSourceTiles(),s=0,u=a.length;s<u;++s){var l=a[s],c=l.tileCoord;if((0,R.kK)(e,i.getTileCoordExtent(c))){var f=l.getFeatures();if(f)for(var h=0,p=f.length;h<p;++h){var d=f[h],y=d.getGeometry();(0,R.kK)(e,y.getExtent())&&t.push(d)}}}})),t}},{key:"getOverlaps",value:function(){return this.overlaps_}},{key:"clear",value:function(){this.tileCache.clear(),this.sourceTileCache.clear()}},{key:"expireCache",value:function(e,t){var r=this.getTileCacheForProjection(e),n=Object.keys(t).reduce((function(e,t){var n=(0,C.MY)(t);if(r.containsKey(n))for(var i=r.get(n).sourceTiles,o=0,a=i.length;o<a;++o)e[i[o].getKey()]=!0;return e}),{});D(B(s.prototype),"expireCache",this).call(this,e,t),this.sourceTileCache.expireCache(n)}},{key:"getSourceTiles",value:function(e,t,r){var i=this;if(r.getState()===o.Z.IDLE){r.setState(o.Z.LOADING);var a=r.wrappedTileCoord,s=this.getTileGridForProjection(t),u=s.getTileCoordExtent(a),l=a[0],c=s.getResolution(l);(0,R.f3)(u,-c,u);var f=this.tileGrid,h=f.getExtent();h&&(0,R.Ed)(u,h,u);var p=f.getZForResolution(c,1);f.forEachTileCoord(u,p,(function(a){var s=i.tileUrlFunction(a,e,t),u=i.sourceTileCache.containsKey(s)?i.sourceTileCache.get(s):new i.tileClass(a,s?o.Z.IDLE:o.Z.EMPTY,s,i.format_,i.tileLoadFunction);r.sourceTiles.push(u);var l=u.getState();l<o.Z.LOADED&&(u.addEventListener(n.Z.CHANGE,(function e(t){i.handleTileChange(t);var a=u.getState();if(a===o.Z.LOADED||a===o.Z.ERROR){var s=u.getKey();s in r.errorTileKeys?u.getState()===o.Z.LOADED&&delete r.errorTileKeys[s]:r.loadingSourceTiles--,a===o.Z.ERROR?r.errorTileKeys[s]=!0:u.removeEventListener(n.Z.CHANGE,e),0===r.loadingSourceTiles&&r.setState((0,M.xb)(r.errorTileKeys)?o.Z.LOADED:o.Z.ERROR)}})),r.loadingSourceTiles++),l===o.Z.IDLE&&(u.extent=f.getTileCoordExtent(a),u.projection=t,u.resolution=f.getResolution(a[0]),i.sourceTileCache.set(s,u),u.load())})),r.loadingSourceTiles||r.setState(r.sourceTiles.some((function(e){return e.getState()===o.Z.ERROR}))?o.Z.ERROR:o.Z.LOADED)}return r.sourceTiles}},{key:"getTile",value:function(e,t,r,n,i){var a,s=(0,C.lg)(e,t,r),u=this.getKey();if(this.tileCache.containsKey(s)&&(a=this.tileCache.get(s)).key===u)return a;var l=[e,t,r],c=this.getTileCoordForTileUrlFunction(l,i),f=this.getTileGrid().getExtent(),h=this.getTileGridForProjection(i);if(c&&f){var p=h.getTileCoordExtent(c);(0,R.f3)(p,-h.getResolution(e),p),(0,R.kK)(f,p)||(c=null)}var d=!0;if(null!==c){var y=this.tileGrid,v=h.getResolution(e),m=y.getZForResolution(v,1),g=h.getTileCoordExtent(c);(0,R.f3)(g,-v,g),y.forEachTileCoord(g,m,function(e){d=d&&!this.tileUrlFunction(e,n,i)}.bind(this))}var b=new T(l,d?o.Z.EMPTY:o.Z.IDLE,c,this.getSourceTiles.bind(this,n,i));return b.key=u,a?(b.interimTile=a,b.refreshInterimChain(),this.tileCache.replace(s,b)):this.tileCache.set(s,b),b}},{key:"getTileGridForProjection",value:function(e){var t=e.getCode(),r=this.tileGrids_[t];if(!r){var n=this.tileGrid;r=(0,P.RZ)(e,void 0,n?n.getTileSize(n.getMinZoom()):void 0),this.tileGrids_[t]=r}return r}},{key:"getTilePixelRatio",value:function(e){return e}},{key:"getTilePixelSize",value:function(e,t,r){var n=this.getTileGridForProjection(r),i=(0,I.Pq)(n.getTileSize(e),this.tmpSize);return[Math.round(i[0]*t),Math.round(i[1]*t)]}},{key:"updateCacheSize",value:function(e,t){D(B(s.prototype),"updateCacheSize",this).call(this,2*e,t),this.sourceTileCache.highWaterMark=this.getTileCacheForProjection(t).highWaterMark}}])&&L(t.prototype,r),i&&L(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(d.Z);function U(e,t){e.setLoader((function(r,n,i){(0,j.ov)(t,e.getFormat(),r,n,i,e.onLoad.bind(e),e.onError.bind(e))}))}},87393:function(e,t){"use strict";t.Z={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"}},35975:function(e,t,r){"use strict";r.d(t,{Z:function(){return _},B:function(){return w}});var n=r(22954),i="KVP",o="REST",a=r(62514),s=r(32275),u=r(86923),l=r(34016),c=r(75059),f=r(12810),h=r(17985);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(u,e);var t,r,n,o=v(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var r=void 0===e.imageSmoothing||e.imageSmoothing;void 0!==e.interpolate&&(r=e.interpolate);var n=void 0!==e.requestEncoding?e.requestEncoding:i,a=e.tileGrid,s=e.urls;return void 0===s&&void 0!==e.url&&(s=(0,c.Gk)(e.url)),(t=o.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:r,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:a,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:s,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition,zDirection:e.zDirection})).version_=void 0!==e.version?e.version:"1.0.0",t.format_=void 0!==e.format?e.format:"image/jpeg",t.dimensions_=void 0!==e.dimensions?e.dimensions:{},t.layer_=e.layer,t.matrixSet_=e.matrixSet,t.style_=e.style,t.requestEncoding_=n,t.setKey(t.getKeyForDimensions_()),s&&s.length>0&&(t.tileUrlFunction=(0,c.Un)(s.map(t.createFromWMTSTemplate.bind(g(t))))),t}return t=u,(r=[{key:"setUrls",value:function(e){this.urls=e;var t=e.join("\n");this.setTileUrlFunction((0,c.Un)(e.map(this.createFromWMTSTemplate.bind(this))),t)}},{key:"getDimensions",value:function(){return this.dimensions_}},{key:"getFormat",value:function(){return this.format_}},{key:"getLayer",value:function(){return this.layer_}},{key:"getMatrixSet",value:function(){return this.matrixSet_}},{key:"getRequestEncoding",value:function(){return this.requestEncoding_}},{key:"getStyle",value:function(){return this.style_}},{key:"getVersion",value:function(){return this.version_}},{key:"getKeyForDimensions_",value:function(){var e=0,t=[];for(var r in this.dimensions_)t[e++]=r+"-"+this.dimensions_[r];return t.join("/")}},{key:"updateDimensions",value:function(e){(0,s.f0)(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}},{key:"createFromWMTSTemplate",value:function(e){var t=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};t==i&&(0,s.f0)(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=t==i?(0,a.B)(e,r):e.replace(/\{(\w+?)\}/g,(function(e,t){return t.toLowerCase()in r?r[t.toLowerCase()]:e}));var n=this.tileGrid,o=this.dimensions_;return function(r,u,l){if(r){var c={TileMatrix:n.getMatrixId(r[0]),TileCol:r[1],TileRow:r[2]};(0,s.f0)(c,o);var f=e;return f=t==i?(0,a.B)(f,c):f.replace(/\{(\w+?)\}/g,(function(e,t){return c[t]}))}}}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Z);function w(e,t){var r=e.Contents.Layer,n=(0,h.sE)(r,(function(e,r,n){return e.Identifier==t.layer}));if(null===n)return null;var a,s=e.Contents.TileMatrixSet;(a=n.TileMatrixSetLink.length>1?"projection"in t?(0,h.cx)(n.TileMatrixSetLink,(function(e,r,n){var i=(0,h.sE)(s,(function(t){return t.Identifier==e.TileMatrixSet})).SupportedCRS,o=(0,f.U2)(i),a=(0,f.U2)(t.projection);return o&&a?(0,f.OP)(o,a):i==t.projection})):(0,h.cx)(n.TileMatrixSetLink,(function(e,r,n){return e.TileMatrixSet==t.matrixSet})):0)<0&&(a=0);var c=n.TileMatrixSetLink[a].TileMatrixSet,p=n.TileMatrixSetLink[a].TileMatrixSetLimits,d=n.Format[0];"format"in t&&(d=t.format),(a=(0,h.cx)(n.Style,(function(e,r,n){return"style"in t?e.Title==t.style:e.isDefault})))<0&&(a=0);var y=n.Style[a].Identifier,v={};"Dimension"in n&&n.Dimension.forEach((function(e,t,r){var n=e.Identifier,i=e.Default;void 0===i&&(i=e.Value[0]),v[n]=i}));var m,g=e.Contents.TileMatrixSet,b=(0,h.sE)(g,(function(e,t,r){return e.Identifier==c})),_=b.SupportedCRS;if(_&&(m=(0,f.U2)(_)),"projection"in t){var w=(0,f.U2)(t.projection);w&&(m&&!(0,f.OP)(w,m)||(m=w))}var x=!1,k="ne"==m.getAxisOrientation().substr(0,2),O=b.TileMatrix[0],S={MinTileCol:0,MinTileRow:0,MaxTileCol:O.MatrixWidth-1,MaxTileRow:O.MatrixHeight-1};if(p){S=p[p.length-1];var E=(0,h.sE)(b.TileMatrix,(function(e){return e.Identifier===S.TileMatrix||b.Identifier+":"+e.Identifier===S.TileMatrix}));E&&(O=E)}var T=28e-5*O.ScaleDenominator/m.getMetersPerUnit(),R=k?[O.TopLeftCorner[1],O.TopLeftCorner[0]]:O.TopLeftCorner,P=O.TileWidth*T,C=O.TileHeight*T,M=b.BoundingBox,j=[R[0]+P*S.MinTileCol,R[1]-C*(1+S.MaxTileRow),R[0]+P*(1+S.MaxTileCol),R[1]-C*S.MinTileRow];if(void 0!==M&&!(0,u.r4)(M,j)){var I=n.WGS84BoundingBox,A=(0,f.U2)("EPSG:4326").getExtent();if(j=M,I)x=I[0]===A[0]&&I[2]===A[2];else{var L=(0,f.$A)(M,b.SupportedCRS,"EPSG:4326");x=L[0]-1e-10<=A[0]&&L[2]+1e-10>=A[2]}}var D=(0,l.b)(b,j,p),Z=[],F=t.requestEncoding;if(F=void 0!==F?F:"","OperationsMetadata"in e&&"GetTile"in e.OperationsMetadata)for(var N=e.OperationsMetadata.GetTile.DCP.HTTP.Get,G=0,B=N.length;G<B;++G)if(N[G].Constraint){var z=(0,h.sE)(N[G].Constraint,(function(e){return"GetEncoding"==e.name})).AllowedValues.Value;if(""===F&&(F=z[0]),F!==i)break;(0,h.q9)(z,i)&&Z.push(N[G].href)}else N[G].href&&(F=i,Z.push(N[G].href));return 0===Z.length&&(F=o,n.ResourceURL.forEach((function(e){"tile"===e.resourceType&&(d=e.format,Z.push(e.template))}))),{urls:Z,layer:t.layer,matrixSet:c,format:d,projection:m,requestEncoding:F,tileGrid:D,style:y,dimensions:v,wrapX:x,crossOrigin:t.crossOrigin}}},31998:function(e,t,r){"use strict";var n=r(22954),i=r(19352);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=c(e);if(t){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(l,e);var t,r,n,o=u(l);function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var t=e||{},r=void 0===t.imageSmoothing||t.imageSmoothing;void 0!==t.interpolate&&(r=t.interpolate);var n=void 0!==t.projection?t.projection:"EPSG:3857",a=void 0!==t.tileGrid?t.tileGrid:(0,i.dl)({extent:(0,i.Tl)(n),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});return o.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:r,opaque:t.opaque,projection:n,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})}return t=l,r&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(n.Z);t.Z=f},60310:function(e,t,r){"use strict";r.d(t,{z:function(){return T}});var n=r(95284),i=r(14652),o=r(15492),a=r(22954),s=r(80542),u=r(90776),l=r(33716),c=r(75059),f=r(86923),h=r(7877);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=g(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var i=O(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S="default",E="truncated",T=function(e){b(r,e);var t=w(r);function r(e,n,i,o,a,s,u){var l;return d(this,r),(l=t.call(this,n,i,o,a,s,u)).zoomifyImage_=null,l.tileSize_=e,l}return v(r,[{key:"getImage",value:function(){if(this.zoomifyImage_)return this.zoomifyImage_;var e=m(O(r.prototype),"getImage",this).call(this);if(this.state==s.Z.LOADED){var t=this.tileSize_;if(e.width==t[0]&&e.height==t[1])return this.zoomifyImage_=e,e;var n=(0,l.E4)(t[0],t[1]);return n.drawImage(e,0,0),this.zoomifyImage_=n.canvas,n.canvas}return e}}]),r}(i.Z),R=function(e){b(r,e);var t=w(r);function r(e){var i;d(this,r);var a=e,s=void 0===a.imageSmoothing||a.imageSmoothing;void 0!==a.interpolate&&(s=a.interpolate);var l=a.size,p=void 0!==a.tierSizeCalculation?a.tierSizeCalculation:S,y=a.tilePixelRatio||1,v=l[0],m=l[1],g=[],b=a.tileSize||n.S,_=b*y;switch(p){case S:for(;v>_||m>_;)g.push([Math.ceil(v/_),Math.ceil(m/_)]),_+=_;break;case E:for(var w=v,x=m;w>_||x>_;)g.push([Math.ceil(w/_),Math.ceil(x/_)]),w>>=1,x>>=1;break;default:(0,u.h)(!1,53)}g.push([1,1]),g.reverse();for(var O=[y],R=[0],P=1,C=g.length;P<C;P++)O.push(y<<P),R.push(g[P-1][0]*g[P-1][1]+R[P-1]);O.reverse();var M=new o.Z({tileSize:b,extent:a.extent||[0,-m,v,0],resolutions:O}),j=a.url;j&&-1==j.indexOf("{TileGroup}")&&-1==j.indexOf("{tileIndex}")&&(j+="{TileGroup}/{z}-{x}-{y}.jpg");var I=(0,c.Gk)(j),A=b*y;var L=(0,c.Un)(I.map((function(e){return function(t,r,n){if(t){var i=t[0],o=t[1],a=t[2],s=o+a*g[i][0],u={z:i,x:o,y:a,tileIndex:s,TileGroup:"TileGroup"+((s+R[i])/A|0)};return e.replace(/\{(\w+?)\}/g,(function(e,t){return u[t]}))}}}))),D=T.bind(null,(0,h.Pq)(b*y));(i=t.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,interpolate:s,projection:a.projection,tilePixelRatio:y,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileClass:D,tileGrid:M,tileUrlFunction:L,transition:a.transition})).zDirection=a.zDirection;var Z=L(M.getTileCoordForCoordAndResolution((0,f.qg)(M.getExtent()),O[O.length-1]),1,null),F=new Image;return F.addEventListener("error",function(){A=b,this.changed()}.bind(k(i))),F.src=Z,i}return v(r)}(a.Z);t.Z=R},19149:function(e,t,r){"use strict";r.d(t,{E:function(){return n}});var n="1.3.0"},62141:function(e,t,r){"use strict";r.d(t,{X$:function(){return h}});var n=r(15492),i=r(32275),o=r(40574),a=r(12810),s=r(86923),u={"image/png":!0,"image/jpeg":!0,"image/gif":!0,"image/webp":!0},l={"application/vnd.mapbox-vector-tile":!0,"application/geo+json":!0};function c(e,t,r,u){var l=e.projection;if(!l&&!(l=(0,a.U2)(t.crs)))throw new Error("Unsupported CRS: ".concat(t.crs));for(var c="en"!==l.getAxisOrientation().substr(0,2),f=t.tileMatrices,h={},p=0;p<f.length;++p){var d=f[p];h[d.id]=d}var y={},v=[];if(u)for(var m=0;m<u.length;++m){var g=u[m],b=g.tileMatrix;v.push(b),y[b]=g}else for(var _=0;_<f.length;++_){var w=f[_].id;v.push(w)}for(var x=v.length,k=new Array(x),O=new Array(x),S=new Array(x),E=new Array(x),T=[-1/0,-1/0,1/0,1/0],R=0;R<x;++R){var P=v[R],C=h[P],M=C.pointOfOrigin;k[R]=c?[M[1],M[0]]:M,O[R]=C.cellSize,S[R]=[C.matrixWidth,C.matrixHeight],E[R]=[C.tileWidth,C.tileHeight];var j=y[P];if(j){var I=C.cellSize*C.tileWidth,A=k[R][0]+j.minTileCol*I,L=k[R][0]+(j.maxTileCol+1)*I,D=C.cellSize*C.tileHeight,Z=void 0,F=void 0;"bottomLeft"===C.cornerOfOrigin?(Z=k[R][1]+j.minTileRow*D,F=k[R][1]+(j.maxTileRow+1)*D):(Z=k[R][1]-(j.maxTileRow+1)*D,F=k[R][1]-j.minTileRow*D),(0,s.Ed)(T,[A,Z,L,F],T)}}var N=new n.Z({origins:k,resolutions:O,sizes:S,tileSizes:E,extent:u?T:void 0}),G=e.context,B=e.url;return{grid:N,urlTemplate:r,urlFunction:function(e,t,n){if(e){var a=v[e[0]],s=h[a],l="bottomLeft"===s.cornerOfOrigin,c={tileMatrix:a,tileCol:e[1],tileRow:l?-e[2]-1:e[2]};if(u){var f=y[s.id];if(c.tileCol<f.minTileCol||c.tileCol>f.maxTileCol||c.tileRow<f.minTileRow||c.tileRow>f.maxTileRow)return}(0,i.f0)(c,G);var p=r.replace(/\{(\w+?)\}/g,(function(e,t){return c[t]}));return(0,o.Kk)(B,p)}}}}function f(e,t){var r,n=t.tileMatrixSetLimits;if("map"===t.dataType)r=function(e,t){for(var r,n,i=0;i<e.length;++i){var o=e[i];if("item"===o.rel){if(o.type===t){r=o.href;break}u[o.type]?n=o.href:n||0!==o.type.indexOf("image/")||(n=o.href)}}if(!r){if(!n)throw new Error('Could not find "item" link');r=n}return r}(t.links,e.mediaType);else{if("vector"!==t.dataType)throw new Error('Expected tileset data type to be "map" or "vector"');r=function(e,t,r){for(var n,i,o={},a=0;a<e.length;++a){var s=e[a];if(o[s.type]=s.href,"item"===s.rel){if(s.type===t){n=s.href;break}l[s.type]&&(i=s.href)}}if(!n&&r)for(var u=0;u<r.length;++u){var c=r[u];if(o[c]){n=o[c];break}}if(!n){if(!i)throw new Error('Could not find "item" link');n=i}return n}(t.links,e.mediaType,e.supportedMediaTypes)}if(t.tileMatrixSet)return c(e,t.tileMatrixSet,r,n);var i=t.links.find((function(e){return"http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme"===e.rel}));if(!i)throw new Error("Expected http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme link or tileMatrixSet");var a=i.href,s=(0,o.Kk)(e.url,a);return(0,o.xA)(s).then((function(t){return c(e,t,r,n)}))}function h(e){return(0,o.xA)(e.url).then((function(t){return f(e,t)}))}},51318:function(e,t,r){"use strict";r.d(t,{Sp:function(){return a},xA:function(){return u},bg:function(){return c},cv:function(){return f}});var n=r(10392),i=r(62990),o=6371008.8;function a(e,t,r){var n=r||o,a=(0,i.Yr)(e[1]),s=(0,i.Yr)(t[1]),u=(s-a)/2,l=(0,i.Yr)(t[0]-e[0])/2,c=Math.sin(u)*Math.sin(u)+Math.sin(l)*Math.sin(l)*Math.cos(a)*Math.cos(s);return 2*n*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function s(e,t){for(var r=0,n=0,i=e.length;n<i-1;++n)r+=a(e[n],e[n+1],t);return r}function u(e,t){var r=t||{},i=r.radius||o,a=r.projection||"EPSG:3857",l=e.getType();l!==n.Z.GEOMETRY_COLLECTION&&(e=e.clone().transform(a,"EPSG:4326"));var c,f,h,p,d,y,v=0;switch(l){case n.Z.POINT:case n.Z.MULTI_POINT:break;case n.Z.LINE_STRING:case n.Z.LINEAR_RING:v=s(c=e.getCoordinates(),i);break;case n.Z.MULTI_LINE_STRING:case n.Z.POLYGON:for(h=0,p=(c=e.getCoordinates()).length;h<p;++h)v+=s(c[h],i);break;case n.Z.MULTI_POLYGON:for(h=0,p=(c=e.getCoordinates()).length;h<p;++h)for(d=0,y=(f=c[h]).length;d<y;++d)v+=s(f[d],i);break;case n.Z.GEOMETRY_COLLECTION:var m=e.getGeometries();for(h=0,p=m.length;h<p;++h)v+=u(m[h],t);break;default:throw new Error("Unsupported geometry type: "+l)}return v}function l(e,t){for(var r=0,n=e.length,o=e[n-1][0],a=e[n-1][1],s=0;s<n;s++){var u=e[s][0],l=e[s][1];r+=(0,i.Yr)(u-o)*(2+Math.sin((0,i.Yr)(a))+Math.sin((0,i.Yr)(l))),o=u,a=l}return r*t*t/2}function c(e,t){var r=t||{},i=r.radius||o,a=r.projection||"EPSG:3857",s=e.getType();s!==n.Z.GEOMETRY_COLLECTION&&(e=e.clone().transform(a,"EPSG:4326"));var u,f,h,p,d,y,v=0;switch(s){case n.Z.POINT:case n.Z.MULTI_POINT:case n.Z.LINE_STRING:case n.Z.MULTI_LINE_STRING:case n.Z.LINEAR_RING:break;case n.Z.POLYGON:for(u=e.getCoordinates(),v=Math.abs(l(u[0],i)),h=1,p=u.length;h<p;++h)v-=Math.abs(l(u[h],i));break;case n.Z.MULTI_POLYGON:for(h=0,p=(u=e.getCoordinates()).length;h<p;++h)for(f=u[h],v+=Math.abs(l(f[0],i)),d=1,y=f.length;d<y;++d)v-=Math.abs(l(f[d],i));break;case n.Z.GEOMETRY_COLLECTION:var m=e.getGeometries();for(h=0,p=m.length;h<p;++h)v+=c(m[h],t);break;default:throw new Error("Unsupported geometry type: "+s)}return v}function f(e,t,r,n){var a=n||o,s=(0,i.Yr)(e[1]),u=(0,i.Yr)(e[0]),l=t/a,c=Math.asin(Math.sin(s)*Math.cos(l)+Math.cos(s)*Math.sin(l)*Math.cos(r)),f=u+Math.atan2(Math.sin(r)*Math.sin(l)*Math.cos(s),Math.cos(l)-Math.sin(s)*Math.sin(c));return[(0,i.Ux)(f),(0,i.Ux)(c)]}},26094:function(e,t,r){"use strict";function n(e,t,r){var n=void 0!==r?e.toFixed(r):""+e,i=n.indexOf(".");return(i=-1===i?n.length:i)>t?n:new Array(1+t-i).join("0")+n}function i(e,t){for(var r=(""+e).split("."),n=(""+t).split("."),i=0;i<Math.max(r.length,n.length);i++){var o=parseInt(r[i]||"0",10),a=parseInt(n[i]||"0",10);if(o>a)return 1;if(a>o)return-1}return 0}r.d(t,{v:function(){return n},n:function(){return i}})},1870:function(e,t,r){"use strict";var n=r(90776);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}var t,r,o;return t=e,(r=[{key:"canExpireCache",value:function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}},{key:"clear",value:function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}},{key:"containsKey",value:function(e){return this.entries_.hasOwnProperty(e)}},{key:"forEach",value:function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer}},{key:"get",value:function(e,t){var r=this.entries_[e];return(0,n.h)(void 0!==r,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_}},{key:"remove",value:function(e){var t=this.entries_[e];return(0,n.h)(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}},{key:"getCount",value:function(){return this.count_}},{key:"getKeys",value:function(){var e,t=new Array(this.count_),r=0;for(e=this.newest_;e;e=e.older)t[r++]=e.key_;return t}},{key:"getValues",value:function(){var e,t=new Array(this.count_),r=0;for(e=this.newest_;e;e=e.older)t[r++]=e.value_;return t}},{key:"peekLast",value:function(){return this.oldest_.value_}},{key:"peekLastKey",value:function(){return this.oldest_.key_}},{key:"peekFirstKey",value:function(){return this.newest_.key_}},{key:"pop",value:function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}},{key:"replace",value:function(e,t){this.get(e),this.entries_[e].value_=t}},{key:"set",value:function(e,t){(0,n.h)(!(e in this.entries_),16);var r={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[e]=r,++this.count_}},{key:"setSize",value:function(e){this.highWaterMark=e}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=o},20375:function(e,t,r){"use strict";var n=r(53925),i=r(86923),o=r(99382),a=r(32275);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rbush_=new n(t),this.items_={}}var t,r,u;return t=e,(r=[{key:"insert",value:function(e,t){var r={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(r),this.items_[(0,o.sq)(t)]=r}},{key:"load",value:function(e,t){for(var r=new Array(t.length),n=0,i=t.length;n<i;n++){var a=e[n],s=t[n],u={minX:a[0],minY:a[1],maxX:a[2],maxY:a[3],value:s};r[n]=u,this.items_[(0,o.sq)(s)]=u}this.rbush_.load(r)}},{key:"remove",value:function(e){var t=(0,o.sq)(e),r=this.items_[t];return delete this.items_[t],null!==this.rbush_.remove(r)}},{key:"update",value:function(e,t){var r=this.items_[(0,o.sq)(t)],n=[r.minX,r.minY,r.maxX,r.maxY];(0,i.fS)(n,e)||(this.remove(t),this.insert(e,t))}},{key:"getAll",value:function(){return this.rbush_.all().map((function(e){return e.value}))}},{key:"getInExtent",value:function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this.rbush_.search(t).map((function(e){return e.value}))}},{key:"forEach",value:function(e){return this.forEach_(this.getAll(),e)}},{key:"forEachInExtent",value:function(e,t){return this.forEach_(this.getInExtent(e),t)}},{key:"forEach_",value:function(e,t){for(var r,n=0,i=e.length;n<i;n++)if(r=t(e[n]))return r;return r}},{key:"isEmpty",value:function(){return(0,a.xb)(this.items_)}},{key:"clear",value:function(){this.rbush_.clear(),this.items_={}}},{key:"getExtent",value:function(e){var t=this.rbush_.toJSON();return(0,i.T9)(t.minX,t.minY,t.maxX,t.maxY,e)}},{key:"concat",value:function(e){for(var t in this.rbush_.load(e.rbush_.all()),e.items_)this.items_[t]=e.items_[t]}}])&&s(t.prototype,r),u&&s(t,u),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=u},77138:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var i=u(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(u,e);var t,r,n,s=a(u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=e||{};return s.call(this,{points:1/0,fill:t.fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0]})}return t=u,(r=[{key:"clone",value:function(){var e=this.getScale(),t=new u({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t}},{key:"setRadius",value:function(e){this.radius_=e,this.render()}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r(79072).Z);t.Z=l},77975:function(e,t){"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t||{};this.color_=void 0!==r.color?r.color:null}var t,n,i;return t=e,(n=[{key:"clone",value:function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0})}},{key:"getColor",value:function(){return this.color_}},{key:"setColor",value:function(e){this.color_=e}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=n},24598:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(6566),i=r(34156),o=r(23734),a=r(23333),s=r(65205),u=r(78699),l=r(90776),c=r(44090),f=r(33716),h=r(88819),p=r(49060);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=null,w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(s,e);var t,r,i,o=m(s);function s(e,t,r,n,i,a){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(u=o.call(this)).hitDetectionImage_=null,u.image_=e||new Image,null!==n&&(u.image_.crossOrigin=n),u.canvas_={},u.color_=a,u.unlisten_=null,u.imageState_=i,u.size_=r,u.src_=t,u.tainted_,u}return t=s,(r=[{key:"isTainted_",value:function(){if(void 0===this.tainted_&&this.imageState_===a.Z.LOADED){_||(_=(0,f.E4)(1,1)),_.drawImage(this.image_,0,0);try{_.getImageData(0,0,1,1),this.tainted_=!1}catch(e){_=null,this.tainted_=!0}}return!0===this.tainted_}},{key:"dispatchChangeEvent_",value:function(){this.dispatchEvent(n.Z.CHANGE)}},{key:"handleImageError_",value:function(){this.imageState_=a.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}},{key:"handleImageLoad_",value:function(){this.imageState_=a.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}},{key:"getImage",value:function(e){return this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}},{key:"getPixelRatio",value:function(e){return this.replaceColor_(e),this.canvas_[e]?e:1}},{key:"getImageState",value:function(){return this.imageState_}},{key:"getHitDetectionImage",value:function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],t=this.size_[1],r=(0,f.E4)(e,t);r.fillRect(0,0,e,t),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}},{key:"getSize",value:function(){return this.size_}},{key:"getSrc",value:function(){return this.src_}},{key:"load",value:function(){if(this.imageState_==a.Z.IDLE){this.imageState_=a.Z.LOADING;try{this.image_.src=this.src_}catch(e){this.handleImageError_()}this.unlisten_=(0,p.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}},{key:"replaceColor_",value:function(e){if(this.color_&&!this.canvas_[e]&&this.imageState_===a.Z.LOADED){var t=document.createElement("canvas");this.canvas_[e]=t,t.width=Math.ceil(this.image_.width*e),t.height=Math.ceil(this.image_.height*e);var r=t.getContext("2d");if(r.scale(e,e),r.drawImage(this.image_,0,0),r.globalCompositeOperation="multiply","multiply"===r.globalCompositeOperation||this.isTainted_())r.fillStyle=(0,u.XC)(this.color_),r.fillRect(0,0,t.width/e,t.height/e),r.globalCompositeOperation="destination-in",r.drawImage(this.image_,0,0);else{for(var n=r.getImageData(0,0,t.width,t.height),i=n.data,o=this.color_[0]/255,s=this.color_[1]/255,l=this.color_[2]/255,c=this.color_[3],f=0,h=i.length;f<h;f+=4)i[f]*=o,i[f+1]*=s,i[f+2]*=l,i[f+3]*=c;r.putImageData(n,0,0)}}}},{key:"unlistenImage_",value:function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}])&&y(t.prototype,r),i&&y(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(c.Z);var x=r(99382);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var i=R(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(f,e);var t,r,s,c=E(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var r=e||{},n=void 0!==r.opacity?r.opacity:1,s=void 0!==r.rotation?r.rotation:0,p=void 0!==r.scale?r.scale:1,d=void 0!==r.rotateWithView&&r.rotateWithView;(t=c.call(this,{opacity:n,rotation:s,scale:p,displacement:void 0!==r.displacement?r.displacement:[0,0],rotateWithView:d})).anchor_=void 0!==r.anchor?r.anchor:[.5,.5],t.normalizedAnchor_=null,t.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:o.Z.TOP_LEFT,t.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:i.Z.FRACTION,t.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:i.Z.FRACTION,t.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var y=void 0!==r.img?r.img:null,v=void 0!==r.imgSize?r.imgSize:null,m=r.src;(0,l.h)(!(void 0!==m&&y),4),(0,l.h)(!y||y&&v,5),void 0!==m&&0!==m.length||!y||(m=y.src||(0,x.sq)(y)),(0,l.h)(void 0!==m&&m.length>0,6);var g=void 0!==r.src?a.Z.IDLE:a.Z.LOADED;return t.color_=void 0!==r.color?(0,u._2)(r.color):null,t.iconImage_=function(e,t,r,n,i,o){var a=h.c.get(t,n,o);return a||(a=new w(e,t,r,n,i,o),h.c.set(t,n,o,a)),a}(y,m,v,t.crossOrigin_,g,t.color_),t.offset_=void 0!==r.offset?r.offset:[0,0],t.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:o.Z.TOP_LEFT,t.origin_=null,t.size_=void 0!==r.size?r.size:null,t}return t=f,(r=[{key:"clone",value:function(){var e=this.getScale();return new f({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})}},{key:"getAnchor",value:function(){var e=this.normalizedAnchor_;if(!e){e=this.anchor_;var t=this.getSize();if(this.anchorXUnits_==i.Z.FRACTION||this.anchorYUnits_==i.Z.FRACTION){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==i.Z.FRACTION&&(e[0]*=t[0]),this.anchorYUnits_==i.Z.FRACTION&&(e[1]*=t[1])}if(this.anchorOrigin_!=o.Z.TOP_LEFT){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=o.Z.TOP_RIGHT&&this.anchorOrigin_!=o.Z.BOTTOM_RIGHT||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=o.Z.BOTTOM_LEFT&&this.anchorOrigin_!=o.Z.BOTTOM_RIGHT||(e[1]=-e[1]+t[1])}this.normalizedAnchor_=e}var r=this.getDisplacement();return[e[0]-r[0],e[1]+r[1]]}},{key:"setAnchor",value:function(e){this.anchor_=e,this.normalizedAnchor_=null}},{key:"getColor",value:function(){return this.color_}},{key:"getImage",value:function(e){return this.iconImage_.getImage(e)}},{key:"getPixelRatio",value:function(e){return this.iconImage_.getPixelRatio(e)}},{key:"getImageSize",value:function(){return this.iconImage_.getSize()}},{key:"getImageState",value:function(){return this.iconImage_.getImageState()}},{key:"getHitDetectionImage",value:function(){return this.iconImage_.getHitDetectionImage()}},{key:"getOrigin",value:function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=o.Z.TOP_LEFT){var t=this.getSize(),r=this.iconImage_.getSize();if(!t||!r)return null;e=e.slice(),this.offsetOrigin_!=o.Z.TOP_RIGHT&&this.offsetOrigin_!=o.Z.BOTTOM_RIGHT||(e[0]=r[0]-t[0]-e[0]),this.offsetOrigin_!=o.Z.BOTTOM_LEFT&&this.offsetOrigin_!=o.Z.BOTTOM_RIGHT||(e[1]=r[1]-t[1]-e[1])}return this.origin_=e,this.origin_}},{key:"getSrc",value:function(){return this.iconImage_.getSrc()}},{key:"getSize",value:function(){return this.size_?this.size_:this.iconImage_.getSize()}},{key:"listenImageChange",value:function(e){this.iconImage_.addEventListener(n.Z.CHANGE,e)}},{key:"load",value:function(){this.iconImage_.load()}},{key:"unlistenImageChange",value:function(e){this.iconImage_.removeEventListener(n.Z.CHANGE,e)}}])&&O(t.prototype,r),s&&O(t,s),Object.defineProperty(t,"prototype",{writable:!1}),f}(s.Z)},34156:function(e,t){"use strict";t.Z={FRACTION:"fraction",PIXELS:"pixels"}},88819:function(e,t,r){"use strict";r.d(t,{c:function(){return s}});var n=r(78699);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}var t,r,n;return t=e,(r=[{key:"clear",value:function(){this.cache_={},this.cacheSize_=0}},{key:"canExpireCache",value:function(){return this.cacheSize_>this.maxCacheSize_}},{key:"expire",value:function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var r=this.cache_[t];0!=(3&e++)||r.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}}},{key:"get",value:function(e,t,r){var n=a(e,t,r);return n in this.cache_?this.cache_[n]:null}},{key:"set",value:function(e,t,r,n){var i=a(e,t,r);this.cache_[i]=n,++this.cacheSize_}},{key:"setSize",value:function(e){this.maxCacheSize_=e,this.expire()}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function a(e,t,r){return t+":"+e+":"+(r?(0,n.XC)(r):"null")}var s=new o},23734:function(e,t){"use strict";t.Z={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},65205:function(e,t,r){"use strict";var n=r(99382),i=r(7877);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,i.Pq)(t.scale),this.displacement_=t.displacement}var t,r,a;return t=e,(r=[{key:"clone",value:function(){var t=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})}},{key:"getOpacity",value:function(){return this.opacity_}},{key:"getRotateWithView",value:function(){return this.rotateWithView_}},{key:"getRotation",value:function(){return this.rotation_}},{key:"getScale",value:function(){return this.scale_}},{key:"getScaleArray",value:function(){return this.scaleArray_}},{key:"getDisplacement",value:function(){return this.displacement_}},{key:"getAnchor",value:function(){return(0,n.O3)()}},{key:"getImage",value:function(e){return(0,n.O3)()}},{key:"getHitDetectionImage",value:function(){return(0,n.O3)()}},{key:"getPixelRatio",value:function(e){return 1}},{key:"getImageState",value:function(){return(0,n.O3)()}},{key:"getImageSize",value:function(){return(0,n.O3)()}},{key:"getOrigin",value:function(){return(0,n.O3)()}},{key:"getSize",value:function(){return(0,n.O3)()}},{key:"setDisplacement",value:function(e){this.displacement_=e}},{key:"setOpacity",value:function(e){this.opacity_=e}},{key:"setRotateWithView",value:function(e){this.rotateWithView_=e}},{key:"setRotation",value:function(e){this.rotation_=e}},{key:"setScale",value:function(e){this.scale_=e,this.scaleArray_=(0,i.Pq)(e)}},{key:"listenImageChange",value:function(e){(0,n.O3)()}},{key:"load",value:function(){(0,n.O3)()}},{key:"unlistenImageChange",value:function(e){(0,n.O3)()}}])&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=a},79072:function(e,t,r){"use strict";var n=r(23333),i=r(65205),o=r(78699),a=r(65578),s=r(33716),u=r(29852);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(p,e);var t,r,i,l=h(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r=void 0!==e.rotateWithView&&e.rotateWithView;return(t=l.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==e.rotation?e.rotation:0,scale:void 0!==e.scale?e.scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0]})).canvas_=void 0,t.hitDetectionCanvas_=null,t.fill_=void 0!==e.fill?e.fill:null,t.origin_=[0,0],t.points_=e.points,t.radius_=void 0!==e.radius?e.radius:e.radius1,t.radius2_=e.radius2,t.angle_=void 0!==e.angle?e.angle:0,t.stroke_=void 0!==e.stroke?e.stroke:null,t.size_=null,t.renderOptions_=null,t.render(),t}return t=p,(r=[{key:"clone",value:function(){var e=this.getScale(),t=new p({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t}},{key:"getAnchor",value:function(){var e=this.size_;if(!e)return null;var t=this.getDisplacement();return[e[0]/2-t[0],e[1]/2+t[1]]}},{key:"getAngle",value:function(){return this.angle_}},{key:"getFill",value:function(){return this.fill_}},{key:"getHitDetectionImage",value:function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}},{key:"getImage",value:function(e){var t=this.canvas_[e];if(!t){var r=this.renderOptions_,n=(0,s.E4)(r.size*e,r.size*e);this.draw_(r,n,e),t=n.canvas,this.canvas_[e]=t}return t}},{key:"getPixelRatio",value:function(e){return e}},{key:"getImageSize",value:function(){return this.size_}},{key:"getImageState",value:function(){return n.Z.LOADED}},{key:"getOrigin",value:function(){return this.origin_}},{key:"getPoints",value:function(){return this.points_}},{key:"getRadius",value:function(){return this.radius_}},{key:"getRadius2",value:function(){return this.radius2_}},{key:"getSize",value:function(){return this.size_}},{key:"getStroke",value:function(){return this.stroke_}},{key:"listenImageChange",value:function(e){}},{key:"load",value:function(){}},{key:"unlistenImageChange",value:function(e){}},{key:"calculateLineJoinSize_",value:function(e,t,r){if(0===t||this.points_===1/0||"bevel"!==e&&"miter"!==e)return t;var n=this.radius_,i=void 0===this.radius2_?n:this.radius2_;if(n<i){var o=n;n=i,i=o}var a=void 0===this.radius2_?this.points_:2*this.points_,s=2*Math.PI/a,u=i*Math.sin(s),l=n-Math.sqrt(i*i-u*u),c=Math.sqrt(u*u+l*l),f=c/u;if("miter"===e&&f<=r)return f*t;var h=t/2/f,p=t/2*(l/c),d=Math.sqrt((n+h)*(n+h)+p*p)-n;if(void 0===this.radius2_||"bevel"===e)return 2*d;var y=n*Math.sin(s),v=i-Math.sqrt(n*n-y*y),m=Math.sqrt(y*y+v*v)/y;if(m<=r){var g=m*t/2-i-n;return 2*Math.max(d,g)}return 2*d}},{key:"createRenderOptions",value:function(){var e,t=u.rc,r=0,n=null,i=0,o=0;this.stroke_&&(null===(e=this.stroke_.getColor())&&(e=u.Tx),e=(0,a.y)(e),void 0===(o=this.stroke_.getWidth())&&(o=u.yC),n=this.stroke_.getLineDash(),i=this.stroke_.getLineDashOffset(),void 0===(t=this.stroke_.getLineJoin())&&(t=u.rc),void 0===(r=this.stroke_.getMiterLimit())&&(r=u.V4));var s=this.calculateLineJoinSize_(t,o,r),l=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:e,strokeWidth:o,size:Math.ceil(2*l+s),lineDash:n,lineDashOffset:i,lineJoin:t,miterLimit:r}}},{key:"render",value:function(){this.renderOptions_=this.createRenderOptions();var e=this.renderOptions_.size;this.canvas_={},this.size_=[e,e]}},{key:"draw_",value:function(e,t,r){if(t.scale(r,r),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){var n=this.fill_.getColor();null===n&&(n=u.bL),t.fillStyle=(0,a.y)(n),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,t.setLineDash&&e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}},{key:"createHitDetectionCanvas_",value:function(e){if(this.fill_){var t=this.fill_.getColor(),r=0;if("string"==typeof t&&(t=(0,o._2)(t)),null===t?r=1:Array.isArray(t)&&(r=4===t.length?t[3]:1),0===r){var n=(0,s.E4)(e.size,e.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(e,n)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))}},{key:"createPath_",value:function(e){var t=this.points_,r=this.radius_;if(t===1/0)e.arc(0,0,r,0,2*Math.PI);else{var n=void 0===this.radius2_?r:this.radius2_;void 0!==this.radius2_&&(t*=2);for(var i=this.angle_-Math.PI/2,o=2*Math.PI/t,a=0;a<t;a++){var s=i+a*o,u=a%2==0?r:n;e.lineTo(u*Math.cos(s),u*Math.sin(s))}e.closePath()}}},{key:"drawHitDetectionCanvas_",value:function(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=u.bL,t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}}])&&c(t.prototype,r),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.Z);t.Z=y},720:function(e,t){"use strict";function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t||{};this.color_=void 0!==r.color?r.color:null,this.lineCap_=r.lineCap,this.lineDash_=void 0!==r.lineDash?r.lineDash:null,this.lineDashOffset_=r.lineDashOffset,this.lineJoin_=r.lineJoin,this.miterLimit_=r.miterLimit,this.width_=r.width}var t,n,i;return t=e,(n=[{key:"clone",value:function(){var t=this.getColor();return new e({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}},{key:"getColor",value:function(){return this.color_}},{key:"getLineCap",value:function(){return this.lineCap_}},{key:"getLineDash",value:function(){return this.lineDash_}},{key:"getLineDashOffset",value:function(){return this.lineDashOffset_}},{key:"getLineJoin",value:function(){return this.lineJoin_}},{key:"getMiterLimit",value:function(){return this.miterLimit_}},{key:"getWidth",value:function(){return this.width_}},{key:"setColor",value:function(e){this.color_=e}},{key:"setLineCap",value:function(e){this.lineCap_=e}},{key:"setLineDash",value:function(e){this.lineDash_=e}},{key:"setLineDashOffset",value:function(e){this.lineDashOffset_=e}},{key:"setLineJoin",value:function(e){this.lineJoin_=e}},{key:"setMiterLimit",value:function(e){this.miterLimit_=e}},{key:"setWidth",value:function(e){this.width_=e}}])&&r(t.prototype,n),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=n},69039:function(e,t,r){"use strict";r.d(t,{J$:function(){return f},yF:function(){return p},Ly:function(){return d}});var n=r(77138),i=r(77975),o=r(10392),a=r(720),s=r(90776);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t||{};this.geometry_=null,this.geometryFunction_=y,void 0!==r.geometry&&this.setGeometry(r.geometry),this.fill_=void 0!==r.fill?r.fill:null,this.image_=void 0!==r.image?r.image:null,this.renderer_=void 0!==r.renderer?r.renderer:null,this.hitDetectionRenderer_=void 0!==r.hitDetectionRenderer?r.hitDetectionRenderer:null,this.stroke_=void 0!==r.stroke?r.stroke:null,this.text_=void 0!==r.text?r.text:null,this.zIndex_=r.zIndex}var t,r,n;return t=e,(r=[{key:"clone",value:function(){var t=this.getGeometry();return t&&"object"===u(t)&&(t=t.clone()),new e({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}},{key:"getRenderer",value:function(){return this.renderer_}},{key:"setRenderer",value:function(e){this.renderer_=e}},{key:"setHitDetectionRenderer",value:function(e){this.hitDetectionRenderer_=e}},{key:"getHitDetectionRenderer",value:function(){return this.hitDetectionRenderer_}},{key:"getGeometry",value:function(){return this.geometry_}},{key:"getGeometryFunction",value:function(){return this.geometryFunction_}},{key:"getFill",value:function(){return this.fill_}},{key:"setFill",value:function(e){this.fill_=e}},{key:"getImage",value:function(){return this.image_}},{key:"setImage",value:function(e){this.image_=e}},{key:"getStroke",value:function(){return this.stroke_}},{key:"setStroke",value:function(e){this.stroke_=e}},{key:"getText",value:function(){return this.text_}},{key:"setText",value:function(e){this.text_=e}},{key:"getZIndex",value:function(){return this.zIndex_}},{key:"setGeometry",value:function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=y,this.geometry_=e}},{key:"setZIndex",value:function(e){this.zIndex_=e}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function f(e){var t;if("function"==typeof e)t=e;else{var r;if(Array.isArray(e))r=e;else(0,s.h)("function"==typeof e.getZIndex,41),r=[e];t=function(){return r}}return t}var h=null;function p(e,t){if(!h){var r=new i.Z({color:"rgba(255,255,255,0.4)"}),o=new a.Z({color:"#3399CC",width:1.25});h=[new c({image:new n.Z({fill:r,stroke:o,radius:5}),fill:r,stroke:o})]}return h}function d(){var e={},t=[255,255,255,1],r=[0,153,255,1];return e[o.Z.POLYGON]=[new c({fill:new i.Z({color:[255,255,255,.5]})})],e[o.Z.MULTI_POLYGON]=e[o.Z.POLYGON],e[o.Z.LINE_STRING]=[new c({stroke:new a.Z({color:t,width:5})}),new c({stroke:new a.Z({color:r,width:3})})],e[o.Z.MULTI_LINE_STRING]=e[o.Z.LINE_STRING],e[o.Z.CIRCLE]=e[o.Z.POLYGON].concat(e[o.Z.LINE_STRING]),e[o.Z.POINT]=[new c({image:new n.Z({radius:6,fill:new i.Z({color:r}),stroke:new a.Z({color:t,width:1.5})}),zIndex:1/0})],e[o.Z.MULTI_POINT]=e[o.Z.POINT],e[o.Z.GEOMETRY_COLLECTION]=e[o.Z.POLYGON].concat(e[o.Z.LINE_STRING],e[o.Z.POINT]),e}function y(e){return e.getGeometry()}t.ZP=c},40729:function(e,t,r){"use strict";var n=r(77975),i=r(7357),o=r(7877);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=t||{};this.font_=r.font,this.rotation_=r.rotation,this.rotateWithView_=r.rotateWithView,this.scale_=r.scale,this.scaleArray_=(0,o.Pq)(void 0!==r.scale?r.scale:1),this.text_=r.text,this.textAlign_=r.textAlign,this.textBaseline_=r.textBaseline,this.fill_=void 0!==r.fill?r.fill:new n.Z({color:"#333"}),this.maxAngle_=void 0!==r.maxAngle?r.maxAngle:Math.PI/4,this.placement_=void 0!==r.placement?r.placement:i.Z.POINT,this.overflow_=!!r.overflow,this.stroke_=void 0!==r.stroke?r.stroke:null,this.offsetX_=void 0!==r.offsetX?r.offsetX:0,this.offsetY_=void 0!==r.offsetY?r.offsetY:0,this.backgroundFill_=r.backgroundFill?r.backgroundFill:null,this.backgroundStroke_=r.backgroundStroke?r.backgroundStroke:null,this.padding_=void 0===r.padding?null:r.padding}var t,r,s;return t=e,(r=[{key:"clone",value:function(){var t=this.getScale();return new e({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})}},{key:"getOverflow",value:function(){return this.overflow_}},{key:"getFont",value:function(){return this.font_}},{key:"getMaxAngle",value:function(){return this.maxAngle_}},{key:"getPlacement",value:function(){return this.placement_}},{key:"getOffsetX",value:function(){return this.offsetX_}},{key:"getOffsetY",value:function(){return this.offsetY_}},{key:"getFill",value:function(){return this.fill_}},{key:"getRotateWithView",value:function(){return this.rotateWithView_}},{key:"getRotation",value:function(){return this.rotation_}},{key:"getScale",value:function(){return this.scale_}},{key:"getScaleArray",value:function(){return this.scaleArray_}},{key:"getStroke",value:function(){return this.stroke_}},{key:"getText",value:function(){return this.text_}},{key:"getTextAlign",value:function(){return this.textAlign_}},{key:"getTextBaseline",value:function(){return this.textBaseline_}},{key:"getBackgroundFill",value:function(){return this.backgroundFill_}},{key:"getBackgroundStroke",value:function(){return this.backgroundStroke_}},{key:"getPadding",value:function(){return this.padding_}},{key:"setOverflow",value:function(e){this.overflow_=e}},{key:"setFont",value:function(e){this.font_=e}},{key:"setMaxAngle",value:function(e){this.maxAngle_=e}},{key:"setOffsetX",value:function(e){this.offsetX_=e}},{key:"setOffsetY",value:function(e){this.offsetY_=e}},{key:"setPlacement",value:function(e){this.placement_=e}},{key:"setRotateWithView",value:function(e){this.rotateWithView_=e}},{key:"setFill",value:function(e){this.fill_=e}},{key:"setRotation",value:function(e){this.rotation_=e}},{key:"setScale",value:function(e){this.scale_=e,this.scaleArray_=(0,o.Pq)(void 0!==e?e:1)}},{key:"setStroke",value:function(e){this.stroke_=e}},{key:"setText",value:function(e){this.text_=e}},{key:"setTextAlign",value:function(e){this.textAlign_=e}},{key:"setTextBaseline",value:function(e){this.textBaseline_=e}},{key:"setBackgroundFill",value:function(e){this.backgroundFill_=e}},{key:"setBackgroundStroke",value:function(e){this.backgroundStroke_=e}},{key:"setPadding",value:function(e){this.padding_=e}}])&&a(t.prototype,r),s&&a(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=s},7357:function(e,t){"use strict";t.Z={POINT:"point",LINE:"line"}},49800:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.d(t,{gM:function(){return S},$h:function(){return u},CL:function(){return d},Ce:function(){return p},aT:function(){return O}});var i=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.data=r,this.texture_=null}var t,r,i;return t=e,(r=[{key:"getTexture",value:function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),o=r(94233),a=r(78699),s=r(62990),u={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},l={};function c(e){if("number"==typeof e)return u.NUMBER;if("boolean"==typeof e)return u.BOOLEAN;if("string"==typeof e)return(0,a.e1)(e)?u.COLOR|u.STRING:u.STRING;if(!Array.isArray(e))throw new Error("Unhandled value type: ".concat(JSON.stringify(e)));var t=e;if(t.every((function(e){return"number"==typeof e})))return 3===t.length||4===t.length?u.COLOR|u.NUMBER_ARRAY:u.NUMBER_ARRAY;if("string"!=typeof t[0])throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(t)));var r=l[t[0]];if(void 0===r)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(t)));return r.getReturnType(t.slice(1))}function f(e){var t=e.toString();return-1===t.indexOf(".")?t+".0":t}function h(e){if(e.length<2||e.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(e.length,"(").concat(e.map(f).join(", "),")")}function p(e,t){return void 0===e.stringLiteralsMap[t]&&(e.stringLiteralsMap[t]=Object.keys(e.stringLiteralsMap).length),e.stringLiteralsMap[t]}function d(e,t,r){if(Array.isArray(t)&&"string"==typeof t[0]){var n=l[t[0]];if(void 0===n)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(t)));return n.toGlsl(e,t.slice(1),r)}var i,o,s=c(t);if((s&u.NUMBER)>0)return f(t);if((s&u.BOOLEAN)>0)return t.toString();if((s&u.STRING)>0&&(void 0===r||r==u.STRING))return function(e,t){return f(p(e,t))}(e,t.toString());if((s&u.COLOR)>0&&(void 0===r||r==u.COLOR))return i=t,(o=(0,a._2)(i).slice()).length<4&&o.push(1),h(o.map((function(e,t){return t<3?e/255:e})));if((s&u.NUMBER_ARRAY)>0)return h(t);throw new Error("Unexpected expression ".concat(t," (expected type ").concat(r,")"))}function y(e){if(!(c(e)&u.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(e)," instead"))}function v(e){for(var t=0;t<e.length;t++)y(e[t])}function m(e){if(!(c(e)&u.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(e)," instead"))}function g(e){if(!(c(e)&u.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(e)," instead"))}function b(e,t){if(e.length!==t)throw new Error("Exactly ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function _(e,t){if(e.length<t)throw new Error("At least ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function w(e,t){if(e.length>t)throw new Error("At most ".concat(t," arguments were expected, got ").concat(e.length," instead"))}function x(e){if(e.length%2!=0)throw new Error("An even amount of arguments was expected, got ".concat(e," instead"))}function k(e,t){if(r=t,(0,s.k3)(r)%1!=0)throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(e)));var r}function O(e){return"u_var_"+e}l.get={getReturnType:function(e){return u.ANY},toGlsl:function(e,t){b(t,1),m(t[0]);var r=t[0].toString();return-1===e.attributes.indexOf(r)&&e.attributes.push(r),(e.inFragmentShader?"v_":"a_")+r}},l.var={getReturnType:function(e){return u.ANY},toGlsl:function(e,t){b(t,1),m(t[0]);var r=t[0].toString();return-1===e.variables.indexOf(r)&&e.variables.push(r),O(r)}};var S="u_paletteTextures";l.palette={getReturnType:function(e){return u.COLOR},toGlsl:function(e,t){b(t,2),y(t[0]);var r=d(e,t[0]),n=t[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var o=n.length,s=new Uint8Array(4*o),u=0;u<o;u++){var l=n[u],c=void 0;if("string"==typeof l)c=(0,a.mL)(l);else{if(!Array.isArray(l))throw new Error("The second argument of palette must be an array of strings or colors");var f=l.length;if(4===f)c=l;else{if(3!==f)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(f));c=[l[0],l[1],l[2],1]}}var h=4*u;s[h]=c[0],s[h+1]=c[1],s[h+2]=c[2],s[h+3]=255*c[3]}e.paletteTextures||(e.paletteTextures=[]);var p="".concat(S,"[").concat(e.paletteTextures.length,"]"),v=new i(p,s);return e.paletteTextures.push(v),"texture2D(".concat(p,", vec2((").concat(r," + 0.5) / ").concat(o,".0, 0.5))")}};var E="getBandValue";function T(e){return{getReturnType:function(e){return u.BOOLEAN},toGlsl:function(t,r){b(r,2);for(var n=u.ANY,i=0;i<r.length;i++)n&=c(r[i]);if(n===u.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(r)," instead"));return n&=~u.COLOR,"(".concat(d(t,r[0],n)," ").concat(e," ").concat(d(t,r[1],n),")")}}}function R(e){return{getReturnType:function(e){return u.BOOLEAN},toGlsl:function(t,r){_(r,2);for(var n=0;n<r.length;n++)g(r[n]);var i="";return i=r.map((function(e){return d(t,e)})).join(" ".concat(e," ")),i="(".concat(i,")")}}}l.band={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){_(t,1),w(t,3);var r=t[0];if(!(E in e.functions)){for(var n="",i=e.bandCount||1,a=0;a<i;a++){var s=Math.floor(a/4),u=a%4;u===i-1&&1===u&&(u=3);var l="".concat(o.XE.TILE_TEXTURE_ARRAY,"[").concat(s,"]");n+="\n if (band == ".concat(a+1,".0) {\n return texture2D(").concat(l,", v_textureCoord + vec2(dx, dy))[").concat(u,"];\n }\n ")}e.functions.getBandValue="\n float getBandValue(float band, float xOffset, float yOffset) {\n float dx = xOffset / ".concat(o.XE.TEXTURE_PIXEL_WIDTH,";\n float dy = yOffset / ").concat(o.XE.TEXTURE_PIXEL_HEIGHT,";\n ").concat(n,"\n }\n ")}var c=d(e,r),f=d(e,t[1]||0),h=d(e,t[2]||0);return"".concat(E,"(").concat(c,", ").concat(f,", ").concat(h,")")}},l.time={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,0),"u_time"}},l.zoom={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,0),"u_zoom"}},l.resolution={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,0),"u_resolution"}},l["*"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," * ").concat(d(e,t[1]),")")}},l["/"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," / ").concat(d(e,t[1]),")")}},l["+"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," + ").concat(d(e,t[1]),")")}},l["-"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," - ").concat(d(e,t[1]),")")}},l.clamp={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){b(t,3),v(t);var r=d(e,t[1]),n=d(e,t[2]);return"clamp(".concat(d(e,t[0]),", ").concat(r,", ").concat(n,")")}},l["%"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"mod(".concat(d(e,t[0]),", ").concat(d(e,t[1]),")")}},l["^"]={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,2),v(t),"pow(".concat(d(e,t[0]),", ").concat(d(e,t[1]),")")}},l.abs={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,1),v(t),"abs(".concat(d(e,t[0]),")")}},l.sin={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,1),v(t),"sin(".concat(d(e,t[0]),")")}},l.cos={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return b(t,1),v(t),"cos(".concat(d(e,t[0]),")")}},l.atan={getReturnType:function(e){return u.NUMBER},toGlsl:function(e,t){return _(t,1),w(t,2),v(t),2===t.length?"atan(".concat(d(e,t[0]),", ").concat(d(e,t[1]),")"):"atan(".concat(d(e,t[0]),")")}},l[">"]={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," > ").concat(d(e,t[1]),")")}},l[">="]={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," >= ").concat(d(e,t[1]),")")}},l["<"]={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," < ").concat(d(e,t[1]),")")}},l["<="]={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){return b(t,2),v(t),"(".concat(d(e,t[0])," <= ").concat(d(e,t[1]),")")}},l["=="]=T("=="),l["!="]=T("!="),l["!"]={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){return b(t,1),g(t[0]),"(!".concat(d(e,t[0]),")")}},l.all=R("&&"),l.any=R("||"),l.between={getReturnType:function(e){return u.BOOLEAN},toGlsl:function(e,t){b(t,3),v(t);var r=d(e,t[1]),n=d(e,t[2]),i=d(e,t[0]);return"(".concat(i," >= ").concat(r," && ").concat(i," <= ").concat(n,")")}},l.array={getReturnType:function(e){return u.NUMBER_ARRAY},toGlsl:function(e,t){_(t,2),w(t,4),v(t);var r=t.map((function(t){return d(e,t,u.NUMBER)}));return"vec".concat(t.length,"(").concat(r.join(", "),")")}},l.color={getReturnType:function(e){return u.COLOR},toGlsl:function(e,t){_(t,3),w(t,4),v(t);var r=t;3===t.length&&r.push(1);var n=t.map((function(t,r){return d(e,t,u.NUMBER)+(r<3?" / 255.0":"")}));return"vec".concat(t.length,"(").concat(n.join(", "),")")}},l.interpolate={getReturnType:function(e){for(var t=u.COLOR|u.NUMBER,r=3;r<e.length;r+=2)t&=c(e[r]);return t},toGlsl:function(e,t,r){x(t),_(t,6);var n,i=t[0];switch(i[0]){case"linear":n=1;break;case"exponential":n=i[1];break;default:n=null}if(!n)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(i)));var o=void 0!==r?r:u.ANY,a=l.interpolate.getReturnType(t)&o;k(t,a);for(var s=d(e,t[1]),c=f(n),h="",p=2;p<t.length-2;p+=2){var y=d(e,t[p]),v=h||d(e,t[p+1],a),m=d(e,t[p+2]),g=d(e,t[p+3],a);h="mix(".concat(v,", ").concat(g,", pow(clamp((").concat(s," - ").concat(y,") / (").concat(m," - ").concat(y,"), 0.0, 1.0), ").concat(c,"))")}return h}},l.match={getReturnType:function(e){for(var t=u.ANY,r=2;r<e.length;r+=2)t&=c(e[r]);return t&=c(e[e.length-1])},toGlsl:function(e,t,r){x(t),_(t,4);var n=void 0!==r?r:u.ANY,i=l.match.getReturnType(t)&n;k(t,i);for(var o=d(e,t[0]),a=d(e,t[t.length-1],i),s=null,c=t.length-3;c>=1;c-=2){var f=d(e,t[c]),h=d(e,t[c+1],i);s="(".concat(o," == ").concat(f," ? ").concat(h," : ").concat(s||a,")")}return s}},l.case={getReturnType:function(e){for(var t=u.ANY,r=1;r<e.length;r+=2)t&=c(e[r]);return t&=c(e[e.length-1])},toGlsl:function(e,t,r){!function(e){if(e.length%2==0)throw new Error("An odd amount of arguments was expected, got ".concat(e," instead"))}(t),_(t,3);var n=void 0!==r?r:u.ANY,i=l.case.getReturnType(t)&n;k(t,i);for(var o=0;o<t.length-1;o+=2)g(t[o]);for(var a=d(e,t[t.length-1],i),s=null,c=t.length-3;c>=0;c-=2){var f=d(e,t[c]),h=d(e,t[c+1],i);s="(".concat(f," ? ").concat(h," : ").concat(s||a,")")}return s}}},5162:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t,r,n){return void 0!==n?(n[0]=e,n[1]=t,n[2]=r,n):[e,t,r]}function a(e,t,r){return e+"/"+t+"/"+r}function s(e){return a(e[0],e[1],e[2])}function u(e){var t=n(e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number),3);return a(t[0],t[1],t[2])}function l(e){return e.split("/").map(Number)}function c(e){return(e[1]<<e[0])+e[2]}function f(e,t){var r=e[0],n=e[1],i=e[2];if(t.getMinZoom()>r||r>t.getMaxZoom())return!1;var o=t.getFullTileRange(r);return!o||o.containsXY(n,i)}r.d(t,{T9:function(){return o},lg:function(){return a},km:function(){return s},MY:function(){return u},Ul:function(){return l},vp:function(){return c},tE:function(){return f}})},19352:function(e,t,r){"use strict";r.d(t,{X$:function(){return c},Cf:function(){return f},dl:function(){return h},RZ:function(){return d},Tl:function(){return y}});var n=r(1917),i=r(15492),o=r(81834),a=r(95284),s=r(12810),u=r(86923),l=r(7877);function c(e){var t=e.getDefaultTileGrid();return t||(t=d(e),e.setDefaultTileGrid(t)),t}function f(e,t,r){var n=t[0],i=e.getTileCoordCenter(t),o=y(r);if((0,u.b8)(o,i))return t;var a=(0,u.dz)(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,e.getTileCoordForCoordAndZ(i,n)}function h(e){var t=e||{},r=t.extent||(0,s.U2)("EPSG:3857").getExtent(),n={extent:r,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:p(r,t.maxZoom,t.tileSize,t.maxResolution)};return new i.Z(n)}function p(e,t,r,n){for(var i=void 0!==t?t:a.e,o=(0,u.Cr)(e),s=(0,u.dz)(e),c=(0,l.Pq)(void 0!==r?r:a.S),f=n>0?n:Math.max(s/c[0],o/c[1]),h=i+1,p=new Array(h),d=0;d<h;++d)p[d]=f/Math.pow(2,d);return p}function d(e,t,r,o){return function(e,t,r,o){var a=void 0!==o?o:n.Z.TOP_LEFT,s=p(e,t,r);return new i.Z({extent:e,origin:(0,u.g0)(e,a),resolutions:s,tileSize:r})}(y(e),t,r,o)}function y(e){var t=(e=(0,s.U2)(e)).getExtent();if(!t){var r=180*s.Wm[o.ZP.DEGREES]/e.getMetersPerUnit();t=(0,u.T9)(-r,-r,r,r)}return t}},15492:function(e,t,r){"use strict";var n=r(74233),i=r(95284),o=r(90776),a=r(62990),s=r(86923),u=r(5162),l=r(17985),c=r(7877);function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var h=[0,0,0],p=function(){function e(t){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,o.h)((0,l.pT)(this.resolutions_,(function(e,t){return t-e}),!0),17),!t.origins)for(var a=0,u=this.resolutions_.length-1;a<u;++a)if(r){if(this.resolutions_[a]/this.resolutions_[a+1]!==r){r=void 0;break}}else r=this.resolutions_[a]/this.resolutions_[a+1];this.zoomFactor_=r,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,o.h)(this.origins_.length==this.resolutions_.length,20));var c=t.extent;void 0===c||this.origin_||this.origins_||(this.origin_=(0,s.rL)(c)),(0,o.h)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,o.h)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:i.S,(0,o.h)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==c?c:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(e,t){var r=new n.Z(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(c){var i=this.getTileRangeForExtentAndZ(c,t);r.minX=Math.max(i.minX,r.minX),r.maxX=Math.min(i.maxX,r.maxX),r.minY=Math.max(i.minY,r.minY),r.maxY=Math.min(i.maxY,r.maxY)}return r}),this):c&&this.calculateTileRanges_(c)}var t,r,p;return t=e,(r=[{key:"forEachTileCoord",value:function(e,t,r){for(var n=this.getTileRangeForExtentAndZ(e,t),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([t,i,a])}},{key:"forEachTileCoordParentTileRange",value:function(e,t,r,i){var o,a,s,u=null,l=e[0]-1;for(2===this.zoomFactor_?(a=e[1],s=e[2]):u=this.getTileCoordExtent(e,i);l>=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=(0,n.T)(a,a,s,s,r)):o=this.getTileRangeForExtentAndZ(u,l,r),t(l,o))return!0;--l}return!1}},{key:"getExtent",value:function(){return this.extent_}},{key:"getMaxZoom",value:function(){return this.maxZoom}},{key:"getMinZoom",value:function(){return this.minZoom}},{key:"getOrigin",value:function(e){return this.origin_?this.origin_:this.origins_[e]}},{key:"getResolution",value:function(e){return this.resolutions_[e]}},{key:"getResolutions",value:function(){return this.resolutions_}},{key:"getTileCoordChildTileRange",value:function(e,t,r){if(e[0]<this.maxZoom){if(2===this.zoomFactor_){var i=2*e[1],o=2*e[2];return(0,n.T)(i,i+1,o,o+1,t)}var a=this.getTileCoordExtent(e,r||this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e[0]+1,t)}return null}},{key:"getTileRangeForTileCoordAndZ",value:function(e,t,r){if(t>this.maxZoom||t<this.minZoom)return null;var i=e[0],o=e[1],a=e[2];if(t===i)return(0,n.T)(o,a,o,a,r);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,t-i),u=Math.floor(o*s),l=Math.floor(a*s);if(t<i)return(0,n.T)(u,u,l,l,r);var c=Math.floor(s*(o+1))-1,f=Math.floor(s*(a+1))-1;return(0,n.T)(u,c,l,f,r)}var h=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(h,t,r)}},{key:"getTileRangeExtent",value:function(e,t,r){var n=this.getOrigin(e),i=this.getResolution(e),o=(0,c.Pq)(this.getTileSize(e),this.tmpSize_),a=n[0]+t.minX*o[0]*i,u=n[0]+(t.maxX+1)*o[0]*i,l=n[1]+t.minY*o[1]*i,f=n[1]+(t.maxY+1)*o[1]*i;return(0,s.T9)(a,l,u,f,r)}},{key:"getTileRangeForExtentAndZ",value:function(e,t,r){var i=h;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,i);var o=i[1],a=i[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,i),(0,n.T)(o,i[1],a,i[2],r)}},{key:"getTileCoordCenter",value:function(e){var t=this.getOrigin(e[0]),r=this.getResolution(e[0]),n=(0,c.Pq)(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*n[0]*r,t[1]-(e[2]+.5)*n[1]*r]}},{key:"getTileCoordExtent",value:function(e,t){var r=this.getOrigin(e[0]),n=this.getResolution(e[0]),i=(0,c.Pq)(this.getTileSize(e[0]),this.tmpSize_),o=r[0]+e[1]*i[0]*n,a=r[1]-(e[2]+1)*i[1]*n,u=o+i[0]*n,l=a+i[1]*n;return(0,s.T9)(o,a,u,l,t)}},{key:"getTileCoordForCoordAndResolution",value:function(e,t,r){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,r)}},{key:"getTileCoordForXYAndResolution_",value:function(e,t,r,n,i){var o=this.getZForResolution(r),s=r/this.getResolution(o),l=this.getOrigin(o),f=(0,c.Pq)(this.getTileSize(o),this.tmpSize_),h=s*(e-l[0])/r/f[0],p=s*(l[1]-t)/r/f[1];return n?(h=(0,a.mD)(h,5)-1,p=(0,a.mD)(p,5)-1):(h=(0,a.GW)(h,5),p=(0,a.GW)(p,5)),(0,u.T9)(o,h,p,i)}},{key:"getTileCoordForXYAndZ_",value:function(e,t,r,n,i){var o=this.getOrigin(r),s=this.getResolution(r),l=(0,c.Pq)(this.getTileSize(r),this.tmpSize_),f=(e-o[0])/s/l[0],h=(o[1]-t)/s/l[1];return n?(f=(0,a.mD)(f,5)-1,h=(0,a.mD)(h,5)-1):(f=(0,a.GW)(f,5),h=(0,a.GW)(h,5)),(0,u.T9)(r,f,h,i)}},{key:"getTileCoordForCoordAndZ",value:function(e,t,r){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,r)}},{key:"getTileCoordResolution",value:function(e){return this.resolutions_[e[0]]}},{key:"getTileSize",value:function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]}},{key:"getFullTileRange",value:function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null}},{key:"getZForResolution",value:function(e,t){var r=(0,l.h7)(this.resolutions_,e,t||0);return(0,a.uZ)(r,this.minZoom,this.maxZoom)}},{key:"calculateTileRanges_",value:function(e){for(var t=this.resolutions_.length,r=new Array(t),n=this.minZoom;n<t;++n)r[n]=this.getTileRangeForExtentAndZ(e,n);this.fullTileRanges_=r}}])&&f(t.prototype,r),p&&f(t,p),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.Z=p},34016:function(e,t,r){"use strict";r.d(t,{b:function(){return p}});var n=r(15492),i=r(17985),o=r(12810);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(o,e);var t,r,n,i=l(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})).matrixIds_=e.matrixIds,t}return t=o,(r=[{key:"getMatrixId",value:function(e){return this.matrixIds_[e]}},{key:"getMatrixIds",value:function(){return this.matrixIds_}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(n.Z);function p(e,t,r){var n=[],a=[],s=[],u=[],l=[],c=void 0!==r?r:[],f=e.SupportedCRS,p=(0,o.U2)(f),d=p.getMetersPerUnit(),y="ne"==p.getAxisOrientation().substr(0,2);return e.TileMatrix.sort((function(e,t){return t.ScaleDenominator-e.ScaleDenominator})),e.TileMatrix.forEach((function(t){if(!(c.length>0)||(0,i.sE)(c,(function(r){return t.Identifier==r.TileMatrix||-1===t.Identifier.indexOf(":")&&e.Identifier+":"+t.Identifier===r.TileMatrix}))){a.push(t.Identifier);var r=28e-5*t.ScaleDenominator/d,o=t.TileWidth,f=t.TileHeight;y?s.push([t.TopLeftCorner[1],t.TopLeftCorner[0]]):s.push(t.TopLeftCorner),n.push(r),u.push(o==f?o:[o,f]),l.push([t.MatrixWidth,t.MatrixHeight])}})),new h({extent:t,origins:s,resolutions:n,matrixIds:a,tileSizes:u,sizes:l})}t.Z=h},95284:function(e,t,r){"use strict";r.d(t,{e:function(){return n},S:function(){return i}});var n=42,i=256},75059:function(e,t,r){"use strict";r.d(t,{uR:function(){return s},Un:function(){return u},vU:function(){return l},Gk:function(){return c}});var n=r(90776),i=r(62990),o=r(5162);function a(e,t){var r=/\{z\}/g,i=/\{x\}/g,o=/\{y\}/g,a=/\{-y\}/g;return function(s,u,l){return s?e.replace(r,s[0].toString()).replace(i,s[1].toString()).replace(o,s[2].toString()).replace(a,(function(){var e=s[0],r=t.getFullTileRange(e);return(0,n.h)(r,55),(r.getHeight()-s[2]-1).toString()})):void 0}}function s(e,t){for(var r=e.length,n=new Array(r),i=0;i<r;++i)n[i]=a(e[i],t);return u(n)}function u(e){return 1===e.length?e[0]:function(t,r,n){if(t){var a=(0,o.vp)(t),s=(0,i.$W)(a,e.length);return e[s](t,r,n)}}}function l(e,t,r){}function c(e){var t=[],r=/\{([a-z])-([a-z])\}/.exec(e);if(r){var n,i=r[1].charCodeAt(0),o=r[2].charCodeAt(0);for(n=i;n<=o;++n)t.push(e.replace(r[0],String.fromCharCode(n)));return t}if(r=/\{(\d+)-(\d+)\}/.exec(e)){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)t.push(e.replace(r[0],s.toString()));return t}return t.push(e),t}},19329:function(e,t,r){"use strict";r.d(t,{Ue:function(){return s},mc:function(){return u},Jp:function(){return l},lk:function(){return f},nn:function(){return h},U1:function(){return p},bA:function(){return d},n3:function(){return y},Iu:function(){return v},qC:function(){return m},fs:function(){return g},nb:function(){return b},BB:function(){return _}});var n,i=r(25738),o=r(90776),a=new Array(6);function s(){return[1,0,0,1,0,0]}function u(e){return c(e,1,0,0,1,0,0)}function l(e,t){var r=e[0],n=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=t[0],l=t[1],c=t[2],f=t[3],h=t[4],p=t[5];return e[0]=r*u+i*l,e[1]=n*u+o*l,e[2]=r*c+i*f,e[3]=n*c+o*f,e[4]=r*h+i*p+a,e[5]=n*h+o*p+s,e}function c(e,t,r,n,i,o,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e,t){var r=t[0],n=t[1];return t[0]=e[0]*r+e[2]*n+e[4],t[1]=e[1]*r+e[3]*n+e[5],t}function p(e,t){var r=Math.cos(t),n=Math.sin(t);return l(e,c(a,r,n,-n,r,0,0))}function d(e,t,r){return l(e,c(a,t,0,0,r,0,0))}function y(e,t,r){return c(e,t,0,0,r,0,0)}function v(e,t,r){return l(e,c(a,1,0,0,1,t,r))}function m(e,t,r,n,i,o,a,s){var u=Math.sin(o),l=Math.cos(o);return e[0]=n*l,e[1]=i*u,e[2]=-n*u,e[3]=i*l,e[4]=a*n*l-s*n*u+t,e[5]=a*i*u+s*i*l+r,e}function g(e,t,r,n,i,o,a){return _(m([1,0,0,1,0,0],e,t,r,n,i,o,a))}function b(e,t){var r,n=(r=t)[0]*r[3]-r[1]*r[2];(0,o.h)(0!==n,32);var i=t[0],a=t[1],s=t[2],u=t[3],l=t[4],c=t[5];return e[0]=u/n,e[1]=-a/n,e[2]=-s/n,e[3]=i/n,e[4]=(s*c-u*l)/n,e[5]=-(i*c-a*l)/n,e}function _(e){var t="matrix("+e.join(", ")+")";if(i.Id)return t;var r=n||(n=document.createElement("div"));return r.style.transform=t,r.style.transform}},62514:function(e,t,r){"use strict";function n(e,t){var r=[];Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&r.push(e+"="+encodeURIComponent(t[e]))}));var n=r.join("&");return(e=-1===(e=e.replace(/[?&]$/,"")).indexOf("?")?e+"?":e+"&")+n}r.d(t,{B:function(){return n}})},99382:function(e,t,r){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}r.d(t,{O3:function(){return n},sq:function(){return o},q4:function(){return a}});var i=0;function o(e){return e.ol_uid||(e.ol_uid=String(++i))}var a="latest"},6890:function(e,t,r){"use strict";function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e,t){return e[0]=t[0],e[1]=t[1],e[4]=t[2],e[5]=t[3],e[12]=t[4],e[13]=t[5],e}r.d(t,{U:function(){return n},u:function(){return i}})},27868:function(e,t,r){"use strict";r.d(t,{qO:function(){return i},cX:function(){return o},F_:function(){return a},MB:function(){return s},kd:function(){return u},wg:function(){return l},Ae:function(){return c},r1:function(){return f},RF:function(){return h},fw:function(){return d}});var n=r(32275),i=34962,o=34963,a=35040,s=35044,u=35048,l=5121,c=5123,f=5125,h=5126,p=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function d(e,t){for(var r=(0,n.f0)({preserveDrawingBuffer:!0},t),i=p.length,o=0;o<i;++o)try{var a=e.getContext(p[o],r);if(a)return a}catch(e){}return null}},94067:function(e,t,r){"use strict";var n=r(27868),i=r(90776);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a={STATIC_DRAW:n.MB,STREAM_DRAW:n.F_,DYNAMIC_DRAW:n.kd},s=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.array=null,this.type=t,(0,i.h)(t===n.qO||t===n.cX,62),this.usage=void 0!==r?r:a.STATIC_DRAW}var t,r,s;return t=e,(r=[{key:"ofSize",value:function(e){this.array=new(u(this.type))(e)}},{key:"fromArray",value:function(e){var t=u(this.type);this.array=t.from?t.from(e):new t(e)}},{key:"fromArrayBuffer",value:function(e){this.array=new(u(this.type))(e)}},{key:"getType",value:function(){return this.type}},{key:"getArray",value:function(){return this.array}},{key:"getUsage",value:function(){return this.usage}},{key:"getSize",value:function(){return this.array?this.array.length:0}}])&&o(t.prototype,r),s&&o(t,s),Object.defineProperty(t,"prototype",{writable:!1}),e}();function u(e){switch(e){case n.qO:return Float32Array;case n.cX:return Uint32Array;default:return Float32Array}}t.ZP=s},16910:function(e,t,r){"use strict";r.d(t,{GC:function(){return w},ZC:function(){return _},ZP:function(){return E}});var n="webglcontextlost",i="webglcontextrestored",o=r(61637),a=r(99382);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl_=t.webGlContext;var r=this.gl_;this.scaleRatio_=t.scaleRatio||1,this.renderTargetTexture_=r.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=r.createFramebuffer();var n=r.createShader(r.VERTEX_SHADER);r.shaderSource(n,t.vertexShader||"\n precision mediump float;\n \n attribute vec2 a_position;\n varying vec2 v_texCoord;\n varying vec2 v_screenCoord;\n \n uniform vec2 u_screenSize;\n \n void main() {\n v_texCoord = a_position * 0.5 + 0.5;\n v_screenCoord = v_texCoord * u_screenSize;\n gl_Position = vec4(a_position, 0.0, 1.0);\n }\n"),r.compileShader(n);var i=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(i,t.fragmentShader||"\n precision mediump float;\n \n uniform sampler2D u_image;\n uniform float u_opacity;\n \n varying vec2 v_texCoord;\n \n void main() {\n gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;\n }\n"),r.compileShader(i),this.renderTargetProgram_=r.createProgram(),r.attachShader(this.renderTargetProgram_,n),r.attachShader(this.renderTargetProgram_,i),r.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,-1,1,1,-1,1]),r.STATIC_DRAW),this.renderTargetAttribLocation_=r.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=r.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=r.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=r.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],t.uniforms&&Object.keys(t.uniforms).forEach(function(e){this.uniforms_.push({value:t.uniforms[e],location:r.getUniformLocation(this.renderTargetProgram_,e)})}.bind(this))}var t,r,n;return t=e,(r=[{key:"getGL",value:function(){return this.gl_}},{key:"init",value:function(e){var t=this.getGL(),r=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;var n=t.RGBA,i=t.RGBA,o=t.UNSIGNED_BYTE;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,0,n,r[0],r[1],0,i,o,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}}},{key:"apply",value:function(e,t,r,n){var i=this.getGL(),o=e.size;if(i.bindFramebuffer(i.FRAMEBUFFER,t?t.getFrameBuffer():null),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,this.renderTargetTexture_),!t){var s=(0,a.sq)(i.canvas);if(!e.renderTargets[s]){var u=i.getContextAttributes();u&&u.preserveDrawingBuffer&&(i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT)),e.renderTargets[s]=!0}}i.enable(i.BLEND),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.viewport(0,0,i.drawingBufferWidth,i.drawingBufferHeight),i.bindBuffer(i.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),i.useProgram(this.renderTargetProgram_),i.enableVertexAttribArray(this.renderTargetAttribLocation_),i.vertexAttribPointer(this.renderTargetAttribLocation_,2,i.FLOAT,!1,0,0),i.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),i.uniform1i(this.renderTargetTextureLocation_,0);var l=e.layerStatesArray[e.layerIndex].opacity;i.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(e),r&&r(i,e),i.drawArrays(i.TRIANGLES,0,6),n&&n(i,e)}},{key:"getFrameBuffer",value:function(){return this.frameBuffer_}},{key:"applyUniforms",value:function(e){var t,r=this.getGL(),n=1;this.uniforms_.forEach((function(i){if((t="function"==typeof i.value?i.value(e):i.value)instanceof HTMLCanvasElement||t instanceof ImageData)i.texture||(i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),t instanceof ImageData?r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,t.width,t.height,0,r.UNSIGNED_BYTE,new Uint8Array(t.data)):r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.uniform1i(i.location,n++);else if(Array.isArray(t))switch(t.length){case 2:return void r.uniform2f(i.location,t[0],t[1]);case 3:return void r.uniform3f(i.location,t[0],t[1],t[2]);case 4:return void r.uniform4f(i.location,t[0],t[1],t[2],t[3]);default:return}else"number"==typeof t&&r.uniform1f(i.location,t)}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=r(27868),c=r(32275),f=r(19329),h=r(6890);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},w={UNSIGNED_BYTE:l.wg,UNSIGNED_SHORT:l.Ae,UNSIGNED_INT:l.r1,FLOAT:l.RF},x={};function k(e){return"shared/"+e}var O=0;function S(e){switch(e){case w.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case w.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case w.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case w.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(p,e);var t,r,o,s=v(p);function p(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p);var r,o=e||{};(t=s.call(this)).boundHandleWebGLContextLost_=t.handleWebGLContextLost.bind(g(t)),t.boundHandleWebGLContextRestored_=t.handleWebGLContextRestored.bind(g(t)),t.canvasCacheKey_=o.canvasCacheKey?k(o.canvasCacheKey):(r="unique/"+O,O+=1,r),t.canvas_=function(e){var t=x[e];if(!t){var r=document.createElement("canvas");r.style.position="absolute",r.style.left="0",t={users:0,canvas:r},x[e]=t}return t.users+=1,t.canvas}(t.canvasCacheKey_),t.gl_=(0,l.fw)(t.canvas_),t.bufferCache_={},t.extensionCache_={},t.currentProgram_=null,t.canvas_.addEventListener(n,t.boundHandleWebGLContextLost_),t.canvas_.addEventListener(i,t.boundHandleWebGLContextRestored_),t.offsetRotateMatrix_=(0,f.Ue)(),t.offsetScaleMatrix_=(0,f.Ue)(),t.tmpMat4_=(0,h.U)(),t.uniformLocations_={},t.attribLocations_={},t.uniforms_=[],o.uniforms&&t.setUniforms(o.uniforms);var a=t.getGL();return t.postProcessPasses_=o.postProcesses?o.postProcesses.map((function(e){return new u({webGlContext:a,scaleRatio:e.scaleRatio,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms})})):[new u({webGlContext:a})],t.shaderCompileErrors_=null,t.startTime_=Date.now(),t}return t=p,(r=[{key:"setUniforms",value:function(e){for(var t in this.uniforms_=[],e)this.uniforms_.push({name:t,value:e[t]});this.uniformLocations_={}}},{key:"canvasCacheKeyMatches",value:function(e){return this.canvasCacheKey_===k(e)}},{key:"getExtension",value:function(e){if(e in this.extensionCache_)return this.extensionCache_[e];var t=this.gl_.getExtension(e);return this.extensionCache_[e]=t,t}},{key:"bindBuffer",value:function(e){var t=this.getGL(),r=(0,a.sq)(e),n=this.bufferCache_[r];n||(n={buffer:e,webGlBuffer:t.createBuffer()},this.bufferCache_[r]=n),t.bindBuffer(e.getType(),n.webGlBuffer)}},{key:"flushBufferData",value:function(e){var t=this.getGL();this.bindBuffer(e),t.bufferData(e.getType(),e.getArray(),e.getUsage())}},{key:"deleteBuffer",value:function(e){var t=this.getGL(),r=(0,a.sq)(e),n=this.bufferCache_[r];n&&!t.isContextLost()&&t.deleteBuffer(n.webGlBuffer),delete this.bufferCache_[r]}},{key:"disposeInternal",value:function(){this.canvas_.removeEventListener(n,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(i,this.boundHandleWebGLContextRestored_),function(e){var t=x[e];if(t&&(t.users-=1,!(t.users>0))){var r=t.canvas,n=(0,l.fw)(r).getExtension("WEBGL_lose_context");n&&n.loseContext(),delete x[e]}}(this.canvasCacheKey_),delete this.gl_,delete this.canvas_}},{key:"prepareDraw",value:function(e,t){var r=this.getGL(),n=this.getCanvas(),i=e.size,o=e.pixelRatio;n.width=i[0]*o,n.height=i[1]*o,n.style.width=i[0]+"px",n.style.height=i[1]+"px",r.useProgram(this.currentProgram_);for(var a=this.postProcessPasses_.length-1;a>=0;a--)this.postProcessPasses_[a].init(e);r.bindTexture(r.TEXTURE_2D,null),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.enable(r.BLEND),r.blendFunc(r.ONE,t?r.ZERO:r.ONE_MINUS_SRC_ALPHA),r.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)}},{key:"prepareDrawToRenderTarget",value:function(e,t,r){var n=this.getGL(),i=t.getSize();n.bindFramebuffer(n.FRAMEBUFFER,t.getFramebuffer()),n.viewport(0,0,i[0],i[1]),n.bindTexture(n.TEXTURE_2D,t.getTexture()),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.enable(n.BLEND),n.blendFunc(n.ONE,r?n.ZERO:n.ONE_MINUS_SRC_ALPHA),n.useProgram(this.currentProgram_),this.applyFrameState(e),this.applyUniforms(e)}},{key:"drawElements",value:function(e,t){var r=this.getGL();this.getExtension("OES_element_index_uint");var n=r.UNSIGNED_INT,i=t-e,o=4*e;r.drawElements(r.TRIANGLES,i,n,o)}},{key:"finalizeDraw",value:function(e,t,r){for(var n=0,i=this.postProcessPasses_.length;n<i;n++)n===i-1?this.postProcessPasses_[n].apply(e,null,t,r):this.postProcessPasses_[n].apply(e,this.postProcessPasses_[n+1])}},{key:"getCanvas",value:function(){return this.canvas_}},{key:"getGL",value:function(){return this.gl_}},{key:"applyFrameState",value:function(e){var t=e.size,r=e.viewState.rotation,n=(0,f.mc)(this.offsetScaleMatrix_);(0,f.bA)(n,2/t[0],2/t[1]);var i=(0,f.mc)(this.offsetRotateMatrix_);0!==r&&(0,f.U1)(i,-r),this.setUniformMatrixValue(_.OFFSET_SCALE_MATRIX,(0,h.u)(this.tmpMat4_,n)),this.setUniformMatrixValue(_.OFFSET_ROTATION_MATRIX,(0,h.u)(this.tmpMat4_,i)),this.setUniformFloatValue(_.TIME,.001*(Date.now()-this.startTime_)),this.setUniformFloatValue(_.ZOOM,e.viewState.zoom),this.setUniformFloatValue(_.RESOLUTION,e.viewState.resolution)}},{key:"applyUniforms",value:function(e){var t,r=this.getGL(),n=0;this.uniforms_.forEach(function(i){if((t="function"==typeof i.value?i.value(e):i.value)instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof ImageData)i.texture||(i.prevValue=void 0,i.texture=r.createTexture()),r.activeTexture(r["TEXTURE".concat(n)]),r.bindTexture(r.TEXTURE_2D,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),(!(t instanceof HTMLImageElement)||t.complete)&&i.prevValue!==t&&(i.prevValue=t,r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t)),r.uniform1i(this.getUniformLocation(i.name),n++);else if(Array.isArray(t)&&6===t.length)this.setUniformMatrixValue(i.name,(0,h.u)(this.tmpMat4_,t));else if(Array.isArray(t)&&t.length<=4)switch(t.length){case 2:return void r.uniform2f(this.getUniformLocation(i.name),t[0],t[1]);case 3:return void r.uniform3f(this.getUniformLocation(i.name),t[0],t[1],t[2]);case 4:return void r.uniform4f(this.getUniformLocation(i.name),t[0],t[1],t[2],t[3]);default:return}else"number"==typeof t&&r.uniform1f(this.getUniformLocation(i.name),t)}.bind(this))}},{key:"useProgram",value:function(e){return e!=this.currentProgram_&&(this.getGL().useProgram(e),this.currentProgram_=e,this.uniformLocations_={},this.attribLocations_={},!0)}},{key:"compileShader",value:function(e,t){var r=this.getGL(),n=r.createShader(t);return r.shaderSource(n,e),r.compileShader(n),n}},{key:"getProgram",value:function(e,t){var r=this.getGL(),n=this.compileShader(e,r.FRAGMENT_SHADER),i=this.compileShader(t,r.VERTEX_SHADER),o=r.createProgram();if(r.attachShader(o,n),r.attachShader(o,i),r.linkProgram(o),!r.getShaderParameter(n,r.COMPILE_STATUS)){var a="Fragment shader compliation failed: ".concat(r.getShaderInfoLog(n));throw new Error(a)}if(r.deleteShader(n),!r.getShaderParameter(i,r.COMPILE_STATUS)){var s="Vertex shader compilation failed: ".concat(r.getShaderInfoLog(i));throw new Error(s)}if(r.deleteShader(i),!r.getProgramParameter(o,r.LINK_STATUS)){var u="GL program linking failed: ".concat(r.getShaderInfoLog(i));throw new Error(u)}return o}},{key:"getUniformLocation",value:function(e){return void 0===this.uniformLocations_[e]&&(this.uniformLocations_[e]=this.getGL().getUniformLocation(this.currentProgram_,e)),this.uniformLocations_[e]}},{key:"getAttributeLocation",value:function(e){return void 0===this.attribLocations_[e]&&(this.attribLocations_[e]=this.getGL().getAttribLocation(this.currentProgram_,e)),this.attribLocations_[e]}},{key:"makeProjectionTransform",value:function(e,t){var r=e.size,n=e.viewState.rotation,i=e.viewState.resolution,o=e.viewState.center;return(0,f.mc)(t),(0,f.qC)(t,0,0,2/(i*r[0]),2/(i*r[1]),-n,-o[0],-o[1]),t}},{key:"setUniformFloatValue",value:function(e,t){this.getGL().uniform1f(this.getUniformLocation(e),t)}},{key:"setUniformMatrixValue",value:function(e,t){this.getGL().uniformMatrix4fv(this.getUniformLocation(e),!1,t)}},{key:"enableAttributeArray_",value:function(e,t,r,n,i){var o=this.getAttributeLocation(e);o<0||(this.getGL().enableVertexAttribArray(o),this.getGL().vertexAttribPointer(o,t,r,!1,n,i))}},{key:"enableAttributes",value:function(e){for(var t=function(e){for(var t=0,r=0;r<e.length;r++){var n=e[r];t+=n.size*S(n.type)}return t}(e),r=0,n=0;n<e.length;n++){var i=e[n];this.enableAttributeArray_(i.name,i.size,i.type||l.RF,t,r),r+=i.size*S(i.type)}}},{key:"handleWebGLContextLost",value:function(){(0,c.ZH)(this.bufferCache_),this.currentProgram_=null}},{key:"handleWebGLContextRestored",value:function(){}},{key:"createTexture",value:function(e,t,r){var n=this.getGL(),i=r||n.createTexture(),o=n.RGBA,a=n.RGBA,s=n.UNSIGNED_BYTE;return n.bindTexture(n.TEXTURE_2D,i),t?n.texImage2D(n.TEXTURE_2D,0,o,a,s,t):n.texImage2D(n.TEXTURE_2D,0,o,e[0],e[1],0,a,s,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),i}}])&&d(t.prototype,r),o&&d(t,o),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Z)},28082:function(e,t,r){"use strict";r.d(t,{fJ:function(){return i},c:function(){return o},Ve:function(){return a},qk:function(){return u},As:function(){return l},Qc:function(){return c},pc:function(){return f},Ei:function(){return h},z:function(){return p},ke:function(){return d},Pr:function(){return y},A4:function(){return v},JO:function(){return m},G3:function(){return g},hg:function(){return b},RA:function(){return _},C5:function(){return w},T3:function(){return x},O:function(){return k},ZL:function(){return S},xc:function(){return T},Me:function(){return P}});var n=r(17985),i="http://www.w3.org/2001/XMLSchema-instance";function o(e,t){return P().createElementNS(e,t)}function a(e,t){return s(e,t,[]).join("")}function s(e,t,r){var n;if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)t?r.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):r.push(e.nodeValue);else for(n=e.firstChild;n;n=n.nextSibling)s(n,t,r);return r}function u(e){return"documentElement"in e}function l(e,t,r){return e.getAttributeNS(t,r)||""}function c(e){return(new DOMParser).parseFromString(e,"application/xml")}function f(e,t){return function(r,i){var o=e.call(void 0!==t?t:this,r,i);if(void 0!==o){var a=i[i.length-1];(0,n.l7)(a,o)}}}function h(e,t){return function(r,n){var i=e.call(void 0!==t?t:this,r,n);void 0!==i&&n[n.length-1].push(i)}}function p(e,t){return function(r,n){var i=e.call(void 0!==t?t:this,r,n);void 0!==i&&(n[n.length-1]=i)}}function d(e,t,r){return function(n,i){var o=e.call(void 0!==r?r:this,n,i);if(void 0!==o){var a,s=i[i.length-1],u=void 0!==t?t:n.localName;u in s?a=s[u]:(a=[],s[u]=a),a.push(o)}}}function y(e,t,r){return function(n,i){var o=e.call(void 0!==r?r:this,n,i);void 0!==o&&(i[i.length-1][void 0!==t?t:n.localName]=o)}}function v(e,t){return function(r,n,i){e.call(void 0!==t?t:this,r,n,i),i[i.length-1].node.appendChild(r)}}function m(e,t){var r,n;return function(t,i,o){if(void 0===r){r={};var a={};a[t.localName]=e,r[t.namespaceURI]=a,n=g(t.localName)}O(r,n,i,o)}}function g(e,t){var r=e;return function(e,n,i){var a=n[n.length-1].node,s=r;return void 0===s&&(s=i),o(void 0!==t?t:a.namespaceURI,s)}}var b=g();function _(e,t){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=e[t[i]];return n}function w(e,t,r){var n,i,o=void 0!==r?r:{};for(n=0,i=e.length;n<i;++n)o[e[n]]=t;return o}function x(e,t,r,n){var i;for(i=t.firstElementChild;i;i=i.nextElementSibling){var o=e[i.namespaceURI];if(void 0!==o){var a=o[i.localName];void 0!==a&&a.call(n,i,r)}}}function k(e,t,r,n,i){return n.push(e),x(t,r,n,i),n.pop()}function O(e,t,r,n,i,o){for(var a,s,u=(void 0!==i?i:r).length,l=0;l<u;++l)void 0!==(a=r[l])&&void 0!==(s=t.call(void 0!==o?o:this,a,n,void 0!==i?i[l]:void 0))&&e[s.namespaceURI][s.localName].call(o,s,a,n)}function S(e,t,r,n,i,o,a){return i.push(e),O(t,r,n,i,o,a),i.pop()}var E=void 0;function T(){return void 0===E&&"undefined"!=typeof XMLSerializer&&(E=new XMLSerializer),E}var R=void 0;function P(){return void 0===R&&"undefined"!=typeof document&&(R=document.implementation.createDocument("","",null)),R}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=r,e=[],i.O=function(t,r,n,o){if(!r){var a=1/0;for(c=0;c<e.length;c++){r=e[c][0],n=e[c][1],o=e[c][2];for(var s=!0,u=0;u<r.length;u++)(!1&o||a>=o)&&Object.keys(i.O).every((function(e){return i.O[e](r[u])}))?r.splice(u--,1):(s=!1,o<a&&(a=o));if(s){e.splice(c--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[r,n,o]},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce((function(t,r){return i.f[r](e,t),t}),[]))},i.u=function(e){return e+".js"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t={},i.l=function(e,r,n,o){if(t[e])t[e].push(r);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var c=u[l];if(c.getAttribute("src")==e){a=c;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=e),t[e]=[r];var f=function(r,n){a.onerror=a.onload=null,clearTimeout(h);var i=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((function(e){return e(n)})),r)return r(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e}(),function(){var e={8592:0};i.f.j=function(t,r){var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,i){n=e[t]=[r,i]}));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(function(r){if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}},i.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(u)var c=u(i)}for(t&&t(r);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[a[l]]=0;return i.O(c)},r=self.webpackChunk=self.webpackChunk||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}()}();
|