diff --git a/knime_extension/knime.yml b/knime_extension/knime.yml index 809a86d7..eff4f049 100644 --- a/knime_extension/knime.yml +++ b/knime_extension/knime.yml @@ -4,7 +4,7 @@ author: Lingbo Liu,Xiaokang Fu,Tobias Koetter vendor: SDL, Harvard, Cambridge US description: Geospatial Analytics Extension for KNIME # Human readable bundle name / description long_description: KNIME nodes for processing, analyzing and visualizing Geospatial data. -version: 0.1.0 # Version of this Python node extension +version: 1.0.0 # Version of this Python node extension license_file: LICENSE.TXT # Best practice: put your LICENSE.TXT next to the knime.yml; otherwise you would need to change to path/to/LICENSE.txt extension_module: src/geospatial_ext # The .py Python module containing the nodes of your extension env_yml_path: geospatial_env.yml # This is necessary for bundling, but not needed during development diff --git a/knime_extension/libs/kepler/2.5.5/keplergl.min.js b/knime_extension/libs/kepler/2.5.5/keplergl.min.js new file mode 100644 index 00000000..a374979f --- /dev/null +++ b/knime_extension/libs/kepler/2.5.5/keplergl.min.js @@ -0,0 +1,520 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("styled-components"),require("react-dom"),require("redux"),require("react-redux")):"function"==typeof define&&define.amd?define(["react","styled-components","react-dom","redux","react-redux"],t):"object"==typeof exports?exports.KeplerGl=t(require("react"),require("styled-components"),require("react-dom"),require("redux"),require("react-redux")):e.KeplerGl=t(e.React,e.styled,e.ReactDOM,e.Redux,e.ReactRedux)}(this,(function(e,t,n,r,a){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1252)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(1276)()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(80);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var l=i?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(n,o,l):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}},function(e,t){function n(e,t){for(var n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var k=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},j={};function I(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(j[e]=a),t&&(j[t[0]]=function(){return P(a.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=N(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r,a=e.match(k);for(t=0,n=a.length;t=0&&D.test(e);)e=e.replace(D,r),D.lastIndex=0,n-=1;return e}var B={};function z(e,t){var n=e.toLowerCase();B[n]=B[n+"s"]=B[t]=e}function U(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)l(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var H={};function Y(e,t){H[e]=t}function W(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function X(e,t){return function(n){return null!=n?(K(this,e,n),a.updateOffset(this,t),this):Z(this,e)}}function Z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&W(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,ae=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,le=/\d{1,4}/,ue=/[+-]?\d{1,6}/,se=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){J[e]=T(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return l(J,e)?J[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ve,ye={};function be(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n68?1900:2e3)};var De=X("FullYear",!0);function Re(e,t,n,r,a,i,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function je(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+je(e,0,r).getUTCDay()-t)%7+r-1}function Fe(e,t,n,r,a){var i,o,l=1+7*(t-1)+(7+n-r)%7+Ie(e,r,a);return l<=0?o=ke(i=e-1)+l:l>ke(e)?(i=e+1,o=l-ke(e)):(i=e,o=l),{year:i,dayOfYear:o}}function Ne(e,t,n){var r,a,i=Ie(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Be(a=e.year()-1,t,n):o>Be(e.year(),t,n)?(r=o-Be(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Be(e,t,n){var r=Ie(e,t,n),a=Ie(e+1,t,n);return(ke(e)-r+a)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),Y("week",5),Y("isoWeek",5),he("w",re),he("ww",re,$),he("W",re),he("WW",re,$),Ae(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=q(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),he("d",re),he("e",re),he("E",re),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ae(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:m(n).invalidWeekday=e})),Ae(["d","e","E"],(function(e,t,n,r){t[r]=q(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),He="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ye=pe,We=pe,Ge=pe;function qe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=ve.call(this._shortWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._minWeekdaysParse,o))?a:null:-1!==(a=ve.call(this._minWeekdaysParse,o))||-1!==(a=ve.call(this._weekdaysParse,o))||-1!==(a=ve.call(this._shortWeekdaysParse,o))?a:null}function Xe(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],l=[],u=[],s=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),a=ge(this.weekdaysShort(n,"")),i=ge(this.weekdays(n,"")),o.push(r),l.push(a),u.push(i),s.push(r),s.push(a),s.push(i);o.sort(e),l.sort(e),u.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ze),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ze.apply(this)+P(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ze.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),z("hour","h"),Y("hour",13),he("a",Je),he("A",Je),he("H",re),he("h",re),he("k",re),he("HH",re,$),he("hh",re,$),he("kk",re,$),he("hmm",ae),he("hmmss",ie),he("Hmm",ae),he("Hmmss",ie),be(["H","HH"],3),be(["k","kk"],(function(e,t,n){var r=q(e);t[3]=24===r?0:r})),be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),be(["h","hh"],(function(e,t,n){t[3]=q(e),m(n).bigHour=!0})),be("hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r)),m(n).bigHour=!0})),be("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(a)),m(n).bigHour=!0})),be("Hmm",(function(e,t,n){var r=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r))})),be("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[3]=q(e.substr(0,r)),t[4]=q(e.substr(r,2)),t[5]=q(e.substr(a))}));var Qe,$e=X("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:xe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:He,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(a,n)>=t-1)break;t--}i++}return Qe}(e)}function st(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Oe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,a,i,o,l=e._i,u=ct.exec(l)||dt.exec(l);if(u){for(m(e).iso=!0,t=0,n=pt.length;t7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,s=Ne(wt(),i,o),n=_t(t.gg,e._a[0],s.year),r=_t(t.w,s.week),null!=t.d?((a=t.d)<0||a>6)&&(u=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>Be(n,i,o)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(l=Fe(n,r,a,i,o),e._a[0]=l.year,e._dayOfYear=l.dayOfYear)}(e),null!=e._dayOfYear&&(o=_t(e._a[0],r[0]),(e._dayOfYear>ke(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=je(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=r[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?je:Re).apply(null,l),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Et(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,i,o,l,u=""+e._i,s=u.length,c=0;for(r=N(e._f,e._locale).match(k)||[],t=0;t0&&m(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),c+=n.length),j[i]?(n?m(e).empty=!1:m(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&m(e).unusedTokens.push(i);m(e).charsLeftOver=s-c,u.length>0&&m(e).unusedInput.push(u),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(l=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(l,e._a[0])),Ot(e),st(e)}else At(e);else yt(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),O(t)?new _(st(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,a,i,o,l=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:v()}));function Ct(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return wt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function ln(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e(i=Be(e,r,a))&&(t=i),cn.call(this,e,t,n,r,a))}function cn(e,t,n,r,a){var i=Fe(e,t,n,r,a),o=je(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",on),he("NN",on),he("NNN",on),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?m(n).era=a:m(n).invalidEra=e})),he("y",se),he("yy",se),he("yyy",se),he("yyyy",se),he("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),be(["y","yy","yyy","yyyy"],0),be(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),he("G",ce),he("g",ce),he("GG",re,$),he("gg",re,$),he("GGGG",le,te),he("gggg",le,te),he("GGGGG",ue,ne),he("ggggg",ue,ne),Ae(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=q(e)})),Ae(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),z("quarter","Q"),Y("quarter",7),he("Q",Q),be("Q",(function(e,t){t[1]=3*(q(e)-1)})),I("D",["DD",2],"Do","date"),z("date","D"),Y("date",9),he("D",re),he("DD",re,$),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),be(["D","DD"],2),be("Do",(function(e,t){t[2]=q(e.match(re)[0])}));var dn=X("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),Y("dayOfYear",4),he("DDD",oe),he("DDDD",ee),be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=q(e)})),I("m",["mm",2],0,"minute"),z("minute","m"),Y("minute",14),he("m",re),he("mm",re,$),be(["m","mm"],4);var fn=X("Minutes",!1);I("s",["ss",2],0,"second"),z("second","s"),Y("second",15),he("s",re),he("ss",re,$),be(["s","ss"],5);var pn,hn,mn=X("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),Y("millisecond",16),he("S",oe,Q),he("SS",oe,$),he("SSS",oe,ee),pn="SSSS";pn.length<=9;pn+="S")he(pn,se);function gn(e,t){t[6]=q(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")be(pn,gn);hn=X("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var vn=_.prototype;function yn(e){return e}vn.add=qt,vn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||wt(),r=Ft(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(T(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,wt(n)))},vn.clone=function(){return new _(this)},vn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:G(i)},vn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},vn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},vn.from=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||wt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.fromNow=function(e){return this.from(wt(),e)},vn.to=function(e,t){return this.isValid()&&(O(e)&&e.isValid()||wt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},vn.toNow=function(e){return this.to(wt(),e)},vn.get=function(e){return T(this[e=U(e)])?this[e]():this},vn.invalidAt=function(){return m(this).overflow},vn.isAfter=function(e,t){var n=O(e)?e:wt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},vn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(vn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),vn.toJSON=function(){return this.isValid()?this.toISOString():null},vn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},vn.unix=function(){return Math.floor(this.valueOf()/1e3)},vn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},vn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},vn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},vn.isLocal=function(){return!!this.isValid()&&!this._isUTC},vn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},vn.isUtc=Bt,vn.isUTC=Bt,vn.zoneAbbr=function(){return this._isUTC?"UTC":""},vn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},vn.dates=x("dates accessor is deprecated. Use date instead.",dn),vn.months=x("months accessor is deprecated. Use month instead",Le),vn.years=x("years accessor is deprecated. Use year instead",De),vn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),vn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return A(t,this),(t=xt(t))._a?(e=t._isUTC?h(t._a):wt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var bn=L.prototype;function An(e,t,n,r){var a=ut(),i=h().set(r,t);return a[n](i,e)}function _n(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return An(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=An(e,r,n,"month");return a}function On(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,i=ut(),o=e?i._week.dow:0,l=[];if(null!=n)return An(t,(n+o)%7,r,"day");for(a=0;a<7;a++)l[a]=An(t,(a+o)%7,r,"day");return l}bn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},bn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(k).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(e){return this._ordinal.replace("%d",e)},bn.preparse=yn,bn.postformat=yn,bn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return T(a)?a(e,t,n,r):a.replace(/%d/i,e)},bn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},bn.set=function(e){var t,n;for(n in e)l(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.eras=function(e,t){var n,r,i,o=this._eras||ut("en")._eras;for(n=0,r=o.length;n=0)return u[r]},bn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},bn.erasAbbrRegex=function(e){return l(this,"_erasAbbrRegex")||ln.call(this),e?this._erasAbbrRegex:this._erasRegex},bn.erasNameRegex=function(e){return l(this,"_erasNameRegex")||ln.call(this),e?this._erasNameRegex:this._erasRegex},bn.erasNarrowRegex=function(e){return l(this,"_erasNarrowRegex")||ln.call(this),e?this._erasNarrowRegex:this._erasRegex},bn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},bn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Me.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return Te.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},bn.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=we),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(e){return Ne(e,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},bn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},bn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},bn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},bn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ye),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=We),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},bn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=x("moment.lang is deprecated. Use moment.locale instead.",ot),a.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ut);var En=Math.abs;function xn(e,t,n,r){var a=Vt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var Cn=Tn("ms"),Ln=Tn("s"),Pn=Tn("m"),kn=Tn("h"),Dn=Tn("d"),Rn=Tn("w"),jn=Tn("M"),In=Tn("Q"),Fn=Tn("y");function Nn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bn=Nn("milliseconds"),zn=Nn("seconds"),Un=Nn("minutes"),Vn=Nn("hours"),Hn=Nn("days"),Yn=Nn("months"),Wn=Nn("years"),Gn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var Zn=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Jn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,l,u=Zn(this._milliseconds)/1e3,s=Zn(this._days),c=Zn(this._months),d=this.asSeconds();return d?(e=G(u/60),t=G(e/60),u%=60,e%=60,n=G(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=Kn(this._months)!==Kn(d)?"-":"",o=Kn(this._days)!==Kn(d)?"-":"",l=Kn(this._milliseconds)!==Kn(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(s?o+s+"D":"")+(t||e||u?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(u?l+r+"S":"")):"P0D"}var Qn=Pt.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},Qn.add=function(e,t){return xn(this,e,t,1)},Qn.subtract=function(e,t){return xn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=Cn,Qn.asSeconds=Ln,Qn.asMinutes=Pn,Qn.asHours=kn,Qn.asDays=Dn,Qn.asWeeks=Rn,Qn.asMonths=jn,Qn.asQuarters=In,Qn.asYears=Fn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},Qn._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,l=this._months,u=this._data;return i>=0&&o>=0&&l>=0||i<=0&&o<=0&&l<=0||(i+=864e5*Mn(Sn(l)+o),o=0,l=0),u.milliseconds=i%1e3,e=G(i/1e3),u.seconds=e%60,t=G(e/60),u.minutes=t%60,n=G(t/60),u.hours=n%24,o+=G(n/24),a=G(wn(o)),l+=a,o-=Mn(Sn(a)),r=G(l/12),l%=12,u.days=o,u.months=l,u.years=r,this},Qn.clone=function(){return Vt(this)},Qn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Bn,Qn.seconds=zn,Qn.minutes=Un,Qn.hours=Vn,Qn.days=Hn,Qn.weeks=function(){return G(this.days()/7)},Qn.months=Yn,Qn.years=Wn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=qn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},qn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var a=Vt(e).abs(),i=Gn(a.as("s")),o=Gn(a.as("m")),l=Gn(a.as("h")),u=Gn(a.as("d")),s=Gn(a.as("M")),c=Gn(a.as("w")),d=Gn(a.as("y")),f=i<=n.ss&&["s",i]||i0,f[4]=r,Xn.apply(null,f)}(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)},Qn.toISOString=Jn,Qn.toString=Jn,Qn.toJSON=Jn,Qn.locale=$t,Qn.localeData=tn,Qn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jn),Qn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ce),he("X",/[+-]?\d+(\.\d{1,3})?/),be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),be("x",(function(e,t,n){n._d=new Date(q(e))})), +//! moment.js +a.version="2.29.1",t=wt,a.fn=vn,a.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=h,a.unix=function(e){return wt(1e3*e)},a.months=function(e,t){return _n(e,t,"months")},a.isDate=d,a.locale=ot,a.invalid=v,a.duration=Vt,a.isMoment=O,a.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},a.parseZone=function(){return wt.apply(null,arguments).parseZone()},a.localeData=ut,a.isDuration=kt,a.monthsShort=function(e,t){return _n(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},a.defineLocale=lt,a.updateLocale=function(e,t){if(null!=t){var n,r,a=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(C(tt[e]._config,t)):(null!=(r=it(e))&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),(n=new L(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},a.locales=function(){return M(tt)},a.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},a.normalizeUnits=U,a.relativeTimeRounding=function(e){return void 0===e?Gn:"function"==typeof e&&(Gn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=vn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(175)(e))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r.a})),n.d(t,"k",(function(){return r.c})),n.d(t,"i",(function(){return r.b})),n.d(t,"l",(function(){return r.d})),n.d(t,"a",(function(){return c})),n.d(t,"j",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return o.i})),n.d(t,"c",(function(){return o.c})),n.d(t,"b",(function(){return o.b})),n.d(t,"f",(function(){return o.g})),n.d(t,"g",(function(){return o.h}));n(842);var r=n(219),a=n(184),i=n(82),o=n(57),l=Object(i.isBrowser)(),u=l&&"undefined"!=typeof document,s={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(o.a)(l,"createGLContext on available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var t,n=e=Object.assign({},s,e),r=n.width,a=n.height;function i(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}e.onError=i;var u=e,c=u.canvas,f=h({canvas:c,width:r,height:a,onError:i});return(t=p(f,e))?(m(t=d(t,e)),t):null}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||e._instrumented)return e;e._version=e._version||g(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var n=t=Object.assign({},s,t),r=n.manageState,u=n.debug;return r&&Object(a.a)(e,{copyState:!1,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(e.canvas){var n=Object(o.e)(t.useDevicePixels);v(e,n,t)}else{var r=e.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in t&&"height"in t&&r.resize(t.width,t.height)}}function p(e,t){var n=t.onError,r=function(e){return n("WebGL context: ".concat(e.statusMessage||"error"))};e.addEventListener("webglcontextcreationerror",r,!1);var a=t.webgl1,i=void 0===a||a,o=t.webgl2,l=void 0===o||o,u=null;return l&&(u=(u=u||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t)),i&&(u=(u=u||e.getContext("webgl",t))||e.getContext("experimental-webgl",t)),e.removeEventListener("webglcontextcreationerror",r,!1),u||n("Failed to create ".concat(l&&!i?"WebGL2":"WebGL"," context"))}function h(e){var t,n=e.canvas,r=e.width,a=void 0===r?800:r,i=e.height,o=void 0===i?600:i,l=e.onError;"string"==typeof n?(u&&"complete"===document.readyState||l("createGLContext called on canvas '".concat(n,"' before page was loaded")),t=document.getElementById(n)):n?t=n:((t=document.createElement("canvas")).id="lumagl-canvas",t.style.width=Number.isFinite(a)?"".concat(a,"px"):"100%",t.style.height=Number.isFinite(o)?"".concat(o,"px"):"100%",document.body.insertBefore(t,document.body.firstChild));return t}function m(e){var t=Object(o.h)(e)?"WebGL2":"WebGL1",n=function(e){var t=e.getParameter(7936),n=e.getParameter(7937),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(7938),shadingLanguageVersion:e.getParameter(35724)}}(e),r=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",a=e.debug?" debug":"";o.i.info(1,"".concat(t).concat(a," context ").concat(r))()}function g(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext?2:1}function v(e,t,n){var r="width"in n?n.width:e.canvas.clientWidth,a="height"in n?n.height:e.canvas.clientHeight;r&&a||(o.i.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,a=e.canvas.height||1),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var i=e.luma.canvasSizeInfo;if(i.clientWidth!==r||i.clientHeight!==a||i.devicePixelRatio!==t){var l=t,u=Math.floor(r*l),s=Math.floor(a*l);e.canvas.width=u,e.canvas.height=s,e.drawingBufferWidth===u&&e.drawingBufferHeight===s||(o.i.warn("Device pixel ratio clamped")(),l=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/a),e.canvas.width=Math.floor(r*l),e.canvas.height=Math.floor(a*l)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:a,devicePixelRatio:t})}}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n1?t-1:0),o=1;o0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function c(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function d(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],l=n[1],u=n[2];return e[0]=a*u-i*l,e[1]=i*o-r*u,e[2]=r*l-a*o,e}function f(e,t,n,r){var a=t[0],i=t[1],o=t[2];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e}function p(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,e[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,e[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,e}function h(e,t,n){var r=t[0],a=t[1],i=t[2];return e[0]=r*n[0]+a*n[3]+i*n[6],e[1]=r*n[1]+a*n[4]+i*n[7],e[2]=r*n[2]+a*n[5]+i*n[8],e}function m(e,t,n){var r=n[0],a=n[1],i=n[2],o=n[3],l=t[0],u=t[1],s=t[2],c=a*s-i*u,d=i*l-r*s,f=r*u-a*l,p=a*f-i*d,h=i*c-r*f,m=r*d-a*c,g=2*o;return c*=g,d*=g,f*=g,p*=2,h*=2,m*=2,e[0]=l+c+p,e[1]=u+d+h,e[2]=s+f+m,e}function g(e,t,n,r){var a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function v(e,t,n,r){var a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function y(e,t,n,r){var a=[],i=[];return a[0]=t[0]-n[0],a[1]=t[1]-n[1],a[2]=t[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],e[0]=i[0]+n[0],e[1]=i[1]+n[1],e[2]=i[2]+n[2],e}function b(e,t){var n=e[0],r=e[1],a=e[2],i=t[0],o=t[1],l=t[2],u=Math.sqrt(n*n+r*r+a*a)*Math.sqrt(i*i+o*o+l*l),s=u&&c(e,t)/u;return Math.acos(Math.min(Math.max(s,-1),1))}var A,_=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e},O=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e},E=i,x=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r};A=a()},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(27)),o=a(n(72)),l=a(n(5)),u=a(n(7)),s=a(n(9)),c=a(n(10)),d=a(n(8)),f=a(n(4)),p=r(n(0)),h=a(n(1));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 n,r=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=m(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n,[{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,r=e.viewBox,a=e.style,l=e.children,u=e.predefinedClassName,s=e.className,c=e.colors,d=e.totalColor,f=(0,o.default)(e,["height","width","viewBox","style","children","predefinedClassName","className","colors","totalColor"]),h=t,m=n||h,g=Array.isArray(c)&&d&&function(e,t){return new Array(e).fill(1).reduce((function(e,n,r){return"".concat(e,".cr").concat(r+1," {fill:").concat(t[r%t.length],";}")}),"")}(d,c);return p.default.createElement("svg",(0,i.default)({viewBox:r,width:m,height:h,style:a,className:"".concat(u," ").concat(s)},f),g?p.default.createElement("style",{type:"text/css"},g):null,l)}}]),n}(p.Component);t.default=g,(0,f.default)(g,"displayName","Base Icon"),(0,f.default)(g,"propTypes",{height:h.default.string,width:h.default.string,viewBox:h.default.string,children:h.default.node,predefinedClassName:h.default.string,className:h.default.string}),(0,f.default)(g,"defaultProps",{height:null,width:null,viewBox:"0 0 64 64",predefinedClassName:"",className:"",style:{fill:"currentColor"}})},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(27)),o=a(n(72)),l=a(n(5)),u=a(n(7)),s=a(n(9)),c=a(n(10)),d=a(n(8)),f=a(n(4)),p=r(n(0)),h=a(n(1));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 n,r=(0,d.default)(e);if(t){var a=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=m(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n,[{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,r=e.viewBox,a=e.style,l=e.children,u=e.predefinedClassName,s=e.className,c=e.colors,d=e.totalColor,f=(0,o.default)(e,["height","width","viewBox","style","children","predefinedClassName","className","colors","totalColor"]),h=t,m=n||h,g=Array.isArray(c)&&d&&function(e,t){return new Array(e).fill(1).reduce((function(e,n,r){return"".concat(e,".cr").concat(r+1," {fill:").concat(t[r%t.length],";}")}),"")}(d,c);return p.default.createElement("svg",(0,i.default)({viewBox:r,width:m,height:h,style:a,className:"".concat(u," ").concat(s)},f),g?p.default.createElement("style",{type:"text/css"},g):null,l)}}]),n}(p.Component);t.default=g,(0,f.default)(g,"displayName","Base Icon"),(0,f.default)(g,"propTypes",{height:h.default.string,width:h.default.string,viewBox:h.default.string,children:h.default.node,predefinedClassName:h.default.string,className:h.default.string}),(0,f.default)(g,"defaultProps",{height:null,width:null,viewBox:"0 0 64 64",predefinedClassName:"",className:"",style:{fill:"currentColor"}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"h",(function(){return o})),n.d(t,"i",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return m}));var r=Math.abs,a=Math.atan2,i=Math.cos,o=Math.max,l=Math.min,u=Math.sin,s=Math.sqrt,c=1e-12,d=Math.PI,f=d/2,p=2*d;function h(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}));var r=1e-6,a="undefined"!=typeof Float32Array?Float32Array:Array,i=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},function(e,t,n){var r=n(1263),a=n(671),i=n(498),o=n(1264);e.exports=function(e){return r(e)||a(e)||i(e)||o()}},function(e,t,n){"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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.MAP_CONTROLS=t.DATASET_FORMATS=t.LOADING_METHODS=t.MAP_INFO_CHARACTER=t.MAP_THUMBNAIL_DIMENSION=t.MAX_GPU_FILTERS=t.EDITOR_AVAILABLE_LAYERS=t.EDITOR_MODES=t.GEOCODER_ICON_SIZE=t.GEOCODER_ICON_COLOR=t.GEOCODER_GEO_OFFSET=t.GEOCODER_LAYER_ID=t.GEOCODER_DATASET_NAME=t.SPEED_CONTROL_STEP=t.SPEED_CONTROL_RANGE=t.DEFAULT_TIME_FORMAT=t.ANIMATION_WINDOW=t.FPS=t.BASE_SPEED=t.THROTTLE_NOTIFICATION_TIME=t.DEFAULT_NOTIFICATION_TOPICS=t.DEFAULT_NOTIFICATION_TYPES=t.DEFAULT_NOTIFICATION_MESSAGE=t.DEFAULT_UUID_COUNT=t.EXPORT_HTML_MAP_MODE_OPTIONS=t.EXPORT_MAP_FORMAT_OPTIONS=t.EXPORT_HTML_MAP_MODES=t.EXPORT_MAP_FORMATS=t.EXPORT_DATA_TYPE_OPTIONS=t.EXPORT_DATA_TYPE=t.EXPORT_IMG_RESOLUTION_OPTIONS=t.EXPORT_IMG_RATIO_OPTIONS=t.EXPORT_IMG_RATIOS=t.RESOLUTIONS=t.MAX_DEFAULT_TOOLTIPS=t.LAYER_BLENDINGS=t.NO_VALUE_COLOR=t.DEFAULT_TOOLTIP_FIELDS=t.DEFAULT_LAYER_COLOR=t.CHANNEL_SCALE_SUPPORTED_FIELDS=t.FIELD_OPTS=t.DEFAULT_AGGREGATION=t.notSupportAggrOpts=t.notSupportedScaleOpts=t.ordinalFieldAggrScaleFunctions=t.ordinalFieldScaleFunctions=t.linearFieldAggrScaleFunctions=t.linearFieldScaleFunctions=t.AGGREGATION_TYPES=t.CHANNEL_SCALES=t.HIGHLIGH_COLOR_3D=t.FIELD_COLORS=t.FILED_TYPE_DISPLAY=t.TABLE_OPTION_LIST=t.TABLE_OPTION=t.SORT_ORDER=t.ALL_FIELD_TYPES=t.SCALE_FUNC=t.SCALE_TYPES=t.FILTER_TYPES=t.TRIP_ARC_FIELDS=t.TRIP_POINT_FIELDS=t.ICON_FIELDS=t.GEOJSON_FIELDS=t.DEFAULT_MAP_STYLES=t.DEFAULT_LAYER_GROUPS=t.PANELS=t.SIDEBAR_PANELS=t.THEME=t.DIMENSIONS=t.KEPLER_GL_WEBSITE=t.KEPLER_GL_VERSION=t.KEPLER_GL_NAME=t.SHARE_MAP_ID=t.OVERWRITE_MAP_ID=t.SAVE_MAP_ID=t.EXPORT_MAP_ID=t.ADD_MAP_STYLE_ID=t.EXPORT_DATA_ID=t.EXPORT_IMAGE_ID=t.ADD_DATA_ID=t.DELETE_DATA_ID=t.DATA_TABLE_ID=t.DEFAULT_MAPBOX_API_URL=t.ICON_PREFIX=t.CLOUDFRONT=t.ACTION_PREFIX=void 0;var a,i,o,l,u,s,c,d,f,p,h,m,g=r(n(4)),v=r(n(155)),y=n(205),b=n(150),A=n(58),_=n(85),O=n(325),E=n(269);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Object(l.a)(this,e);var n=t.color,r=void 0===n?c:n,a=t.intensity,i=void 0===a?1:a,o=t.position,u=void 0===o?f:o;this.id=t.id||"point-".concat(p++),this.color=r,this.intensity=i,this.type="point",this.position=u,this.attenuation=m(t),this.projectedLight=Object.assign({},this)}return Object(u.a)(e,[{key:"getProjectedLight",value:function(e){var t=e.layer,n=this.projectedLight,a=t.context.viewport,i=t.props,o=i.coordinateSystem,l=i.coordinateOrigin,u=Object(s.b)(this.position,{viewport:a,coordinateSystem:o,coordinateOrigin:l,fromCoordinateSystem:a.isGeospatial?r.a.LNGLAT:r.a.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return n.color=this.color,n.intensity=this.intensity,n.position=u,n}}]),e}();function m(e){return"attenuation"in e?e.attenuation:"intensity"in e?[0,0,e.intensity]:d}var g=n(47),v=n(38),y=n(48),b=n(303),A=function(e){function t(){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).apply(this,arguments))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"getProjectedLight",value:function(e){var t=e.layer,n=this.projectedLight,r=t.context.viewport,a=t.props,i=a.coordinateSystem,o=a.coordinateOrigin,l=a.modelMatrix,u=Object(b.b)({viewport:r,modelMatrix:l,coordinateSystem:i,coordinateOrigin:o}).project_uCameraPosition;return n.color=this.color,n.intensity=this.intensity,n.position=u,n}}]),t}(h);function _(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var O=Math.PI/180,E=23.4397*O;function x(e,t,n){var r,a,i,o,l,u,s=O*-n,c=O*t,d=function(e){return function(e){return e/864e5-.5+2440588}(e)-2451545}(e),f=(r=O*(357.5291+.98560028*d),a=O*(1.9148*Math.sin(r)+.02*Math.sin(2*r)+3e-4*Math.sin(3*r)),i=r+a+102.9372*O+Math.PI,{declination:(o=i,l=0,u=o,Math.asin(Math.sin(l)*Math.cos(E)+Math.cos(l)*Math.sin(E)*Math.sin(u))),rightAscension:M(i,0)}),p=function(e,t){return O*(280.147+360.9856235*e)-t}(d,s)-f.rightAscension;return{azimuth:w(p,c,f.declination),altitude:S(p,c,f.declination)}}function M(e,t){var n=e;return Math.atan2(Math.sin(n)*Math.cos(E)-Math.tan(t)*Math.sin(E),Math.cos(n))}function w(e,t,n){var r=e,a=t,i=n;return Math.atan2(Math.sin(r),Math.cos(r)*Math.sin(a)-Math.tan(i)*Math.cos(a))}function S(e,t,n){var r=e,a=t,i=n;return Math.asin(Math.sin(a)*Math.sin(i)+Math.cos(a)*Math.cos(i)*Math.cos(r))}var T=function(e){function t(e){var n,r=e.timestamp,a=_(e,["timestamp"]);return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,a))).timestamp=r,n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"getProjectedLight",value:function(e){var t=e.layer.context.viewport,n=t.latitude,r=t.longitude;return this.direction=function(e,t,n){var r=x(e,t,n),a=r.azimuth,i=r.altitude,o=a+Math.PI;return[-Math.sin(o),-Math.cos(o),-Math.sin(i)]}(this.timestamp,n,r),this}}]),t}(o.a),C=n(221),L=n(1939),P=n(25),k=n(483),D=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(l.a)(this,t),n=Object(g.a)(this,Object(v.a)(t).call(this,e,r));var a=r.module,i=r.fs,o=r.id;return n.model=new L.a(e,{id:o,fs:i,modules:[a]}),n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"render",value:function(e){var t=this,n=this.gl;Object(P.l)(n,{framebuffer:e.outputBuffer,clearColor:[0,0,0,0]},(function(){return t._renderPass(n,e)}))}},{key:"delete",value:function(){this.model.delete(),this.model=null}},{key:"_renderPass",value:function(e,t){var n=t.inputBuffer;t.outputBuffer;Object(k.a)(e,{color:!0}),this.model.draw({moduleSettings:this.props.moduleSettings,uniforms:{texture:n,texSize:[n.width,n.height]},parameters:{depthWrite:!1,depthTest:!1}})}}]),t}(n(469).a),R=n(1946),j=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,r))).id="".concat(e.name,"-pass"),Object(R.a)(e),n.module=e,n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"postRender",value:function(e,t){this.passes||(this.passes=function(e,t,n,r){if(t.filter||t.sampler){var a=N(t);return[new D(e,{id:n,module:t,fs:a,moduleSettings:r})]}return(t.passes||[]).map((function(a,i){var o=N(t,a),l="".concat(n,"-").concat(i);return new D(e,{id:l,module:t,fs:o,moduleSettings:r})}))}(e,this.module,this.id,this.props));for(var n=t.target,r=t.inputBuffer,a=t.swapBuffer,i=0;i1&&void 0!==arguments[1]?arguments[1]:e;if(t.filter){var n="string"==typeof t.filter?t.filter:"".concat(e.name,"_filterColor");return I(n)}if(t.sampler){var r="string"==typeof t.sampler?t.sampler:"".concat(e.name,"_sampleColor");return F(r)}return null}var B=n(220),z=n(1192),U=n(454),V=n(450),H=n(298),Y=n(643),W=n(457),G=n(118),q=n(291),X=n(84),Z=n(44),K=n(31),J=n(64),Q=Math.PI/180,$=180/Math.PI;function ee(){var e=Math.PI/180*256;return{unitsPerMeter:[256/6370972,256/6370972,256/6370972],unitsPerMeter2:[0,0,0],metersPerUnit:[24886.609375,24886.609375,24886.609375],unitsPerDegree:[e,e,256/6370972],unitsPerDegree2:[0,0,0],degreesPerUnit:[1/e,1/e,24886.609375]}}var te=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(l.a)(this,t);var r=n.latitude,a=void 0===r?0:r,i=n.longitude,o=void 0===i?0:i,u=n.zoom,s=void 0===u?11:u,c=n.nearZMultiplier,d=void 0===c?.1:c,f=n.farZMultiplier,p=void 0===f?1:f,h=n.resolution,m=void 0===h?10:h,y=n.width,b=n.height,A=n.altitude,_=void 0===A?1.5:A;y=y||1,b=b||1,_=Math.max(.75,_);var O=(new Z.a).lookAt({eye:[0,-_,0],up:[0,0,1]}),E=Math.pow(2,s);O.rotateX(a*Q),O.rotateZ(-o*Q),O.scale(E/b);var x=Math.atan(.5/_),M=512*E/b,w=Object.assign({},n,{width:y,height:b,viewMatrix:O,longitude:o,latitude:a,zoom:s,fovyRadians:2*x,aspect:y/b,focalDistance:_,near:d,far:Math.min(2,1/M+1)*_*p});return(e=Object(g.a)(this,Object(v.a)(t).call(this,w))).resolution=m,e.distanceScales=ee(),e}return Object(y.a)(t,e),Object(u.a)(t,[{key:"getDistanceScales",value:function(){return this.distanceScales}},{key:"unproject",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.topLeft,a=void 0===r||r,i=n.targetZ,o=Object(X.a)(e,3),l=o[0],u=o[1],s=o[2],c=a?u:this.height-u,d=this.pixelUnprojectionMatrix;if(Number.isFinite(s))t=ne(d,[l,c,s,1]);else{var f=ne(d,[l,c,-1,1]),p=ne(d,[l,c,1,1]),h=256*((i||0)/6370972+1),m=K.p(K.q([],f,p)),g=K.p(f),v=K.p(p),y=(4*g*v-Math.pow(m-g-v,2))/16,b=4*y/m,A=Math.sqrt(g-b),_=Math.sqrt(Math.max(0,h*h-b)),O=(A-_)/Math.sqrt(m);t=K.i([],f,p,O)}var E=this.unprojectPosition(t),x=Object(X.a)(E,3),M=x[0],w=x[1],S=x[2];return Number.isFinite(s)?[M,w,S]:Number.isFinite(i)?[M,w,i]:[M,w]}},{key:"projectPosition",value:function(e){var t=Object(X.a)(e,3),n=t[0],r=t[1],a=t[2],i=void 0===a?0:a,o=n*Q,l=r*Q,u=Math.cos(l),s=256*(i/6370972+1);return[Math.sin(o)*u*s,-Math.cos(o)*u*s,Math.sin(l)*s]}},{key:"unprojectPosition",value:function(e){var t=Object(X.a)(e,3),n=t[0],r=t[1],a=t[2],i=K.g(e),o=Math.asin(a/i);return[Math.atan2(n,-r)*$,o*$,6370972*(i/256-1)]}},{key:"projectFlat",value:function(e){return e}},{key:"unprojectFlat",value:function(e){return e}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=e.pos,r=this.unproject(n);return[t[0]-r[0]+this.longitude,t[1]-r[1]+this.latitude]}},{key:"projectionMode",get:function(){return r.c.GLOBE}}]),t}(G.a);function ne(e,t){var n=J.n([],t,e);return J.k(n,n,1/n[3]),n}var re=n(847),ae=n(257),ie=n(848),oe=n(1949),le=n(308),ue=n(163),se=n(441),ce=n(92),de=n(162),fe=n(304),pe=n(110),he={position:[0,0,0],pitch:0,bearing:0,maxPitch:90,minPitch:-90},me=function(e){function t(e){var n,r=e.width,a=e.height,i=e.position,o=void 0===i?he.position:i,u=e.bearing,s=void 0===u?he.bearing:u,c=e.pitch,d=void 0===c?he.pitch:c,f=e.longitude,p=e.latitude,h=e.maxPitch,m=void 0===h?he.maxPitch:h,y=e.minPitch,b=void 0===y?he.minPitch:y,A=e.startBearing,_=e.startPitch,O=e.startZoomPosition,E=e.startZoom;return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,{width:r,height:a,position:o,bearing:s,pitch:d,longitude:f,latitude:p,maxPitch:m,minPitch:b})))._interactiveState={startBearing:A,startPitch:_,startZoomPosition:O,startZoom:E},n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"getDirection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Z.d({bearing:this._viewportProps.bearing,pitch:e?90:90+this._viewportProps.pitch}),n=t.toVector3().normalize();return n}},{key:"panStart",value:function(){return this}},{key:"pan",value:function(){return this}},{key:"panEnd",value:function(){return this}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=this._interactiveState,a=r.startBearing,i=r.startPitch;return Number.isFinite(a)&&Number.isFinite(i)?this._getUpdatedState({bearing:a-180*t,pitch:i-90*n}):this}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(){return this._getUpdatedState({startZoomPosition:this._viewportProps.position,startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.scale,n=this._interactiveState.startZoomPosition;n||(n=this._viewportProps.position);var r=this.getDirection();return this._move(r,Math.log2(t),n)}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}},{key:"moveLeft",value:function(){var e=this.getDirection(!0);return this._move(e.rotateZ({radians:Math.PI/2}))}},{key:"moveRight",value:function(){var e=this.getDirection(!0);return this._move(e.rotateZ({radians:-Math.PI/2}))}},{key:"moveUp",value:function(){var e=this.getDirection(!0);return this._move(e)}},{key:"moveDown",value:function(){var e=this.getDirection(!0);return this._move(e.negate())}},{key:"rotateLeft",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing-15})}},{key:"rotateRight",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing+15})}},{key:"rotateUp",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch+10})}},{key:"rotateDown",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch-10})}},{key:"zoomIn",value:function(){return this.zoom({scale:2})}},{key:"zoomOut",value:function(){return this.zoom({scale:.5})}},{key:"shortestPathFrom",value:function(e){var t=e.getViewportProps(),n=Object.assign({},this._viewportProps),r=n.bearing,a=n.longitude;return Math.abs(r-t.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(a-t.longitude)>180&&(n.longitude=a<0?a+360:a-360),n}},{key:"_move",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._viewportProps.position,r=e.scale(20*t);return this._getUpdatedState({position:new Z.c(n).add(r)})}},{key:"_getUpdatedState",value:function(e){return new t(Object.assign({},this._viewportProps,this._interactiveState,e))}},{key:"_applyConstraints",value:function(e){var t=e.pitch,n=e.maxPitch,r=e.minPitch,a=e.longitude,i=e.bearing;return e.pitch=Object(Z.e)(t,r,n),(a<-180||a>180)&&(e.longitude=Object(pe.e)(a+180,360)-180),(i<-180||i>180)&&(e.bearing=Object(pe.e)(i+180,360)-180),e}}]),t}(fe.a),ge=function(e){function t(e){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).call(this,me,e))}return Object(y.a)(t,e),t}(de.a);var ve=function(e){function t(){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).apply(this,arguments))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"_getViewport",value:function(e){var t=e.modelMatrix,n=void 0===t?null:t,r=e.bearing,a=void 0===r?0:r,i=e.pitch,o=void 0===i?0:i,l=e.up,u=void 0===l?[0,0,1]:l,s=function(e){var t=e.bearing,n=e.pitch;return new Z.d({bearing:t,pitch:n}).toVector3().normalize()}({bearing:a,pitch:90+o}),c=n?n.transformDirection(s):s,d=Object(ce.g)(e),f=Math.pow(2,d),p=(new Z.a).lookAt({eye:[0,0,0],center:c,up:u}).scale(f);return new G.a(Object.assign({},e,{zoom:d,viewMatrix:p}))}},{key:"controller",get:function(){return this._getControllerProps({type:ge})}}]),t}(ue.a);ve.displayName="FirstPersonView";var ye=n(160),be=n(161),Ae={orbitAxis:"Z",rotationX:0,rotationOrbit:0,zoom:0,target:[0,0,0],minRotationX:-90,maxRotationX:90,minZoom:-1/0,maxZoom:1/0},_e={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new ye.a(["target","zoom","rotationX","rotationOrbit"]),transitionInterruption:be.a.BREAK},Oe=function(e){return Math.pow(2,e)},Ee=function(e){function t(e){var n,r=e.makeViewport,a=e.width,i=e.height,o=e.orbitAxis,u=void 0===o?Ae.orbitAxis:o,s=e.rotationX,c=void 0===s?Ae.rotationX:s,d=e.rotationOrbit,f=void 0===d?Ae.rotationOrbit:d,p=e.target,h=void 0===p?Ae.target:p,m=e.zoom,y=void 0===m?Ae.zoom:m,b=e.minRotationX,A=void 0===b?Ae.minRotationX:b,_=e.maxRotationX,O=void 0===_?Ae.maxRotationX:_,E=e.minZoom,x=void 0===E?Ae.minZoom:E,M=e.maxZoom,w=void 0===M?Ae.maxZoom:M,S=e.startPanPosition,T=e.startTarget,C=e.startRotationX,L=e.startRotationOrbit,P=e.startZoomPosition,k=e.startZoom;return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,{width:a,height:i,orbitAxis:u,rotationX:c,rotationOrbit:f,target:h,zoom:y,minRotationX:A,maxRotationX:O,minZoom:x,maxZoom:w})))._interactiveState={startPanPosition:S,startTarget:T,startRotationX:C,startRotationOrbit:L,startZoomPosition:P,startZoom:k},n.makeViewport=r,n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos,n=this._viewportProps.target;return this._getUpdatedState({startPanPosition:t,startTarget:n})}},{key:"pan",value:function(e){var t=e.pos,n=(e.startPos,this._interactiveState),r=n.startPanPosition,a=n.startTarget,i=new Z.b(t).subtract(r);return this._getUpdatedState({target:this._calculateNewTarget({startTarget:a,pixelOffset:i})})}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanPosition:null,startTarget:null})}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedState({startRotationX:this._viewportProps.rotationX,startRotationOrbit:this._viewportProps.rotationOrbit})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=this._interactiveState,a=r.startRotationX,i=r.startRotationOrbit;return Number.isFinite(a)&&Number.isFinite(i)?((a<-90||a>90)&&(t*=-1),this._getUpdatedState({rotationX:a+180*n,rotationOrbit:i+180*t,isRotating:!0})):this}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}},{key:"shortestPathFrom",value:function(e){var t=e.getViewportProps(),n=Object.assign({},this._viewportProps),r=n.rotationOrbit;return Math.abs(r-t.rotationOrbit)>180&&(n.rotationOrbit=r<0?r+360:r-360),n}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedState({startZoomPosition:t,startTarget:this._viewportProps.target,startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,r=e.scale,a=this._viewportProps,i=a.zoom,o=a.width,l=a.height,u=a.target,s=this._interactiveState,c=s.startZoom,d=s.startZoomPosition,f=s.startTarget;Number.isFinite(c)||(c=i,f=u,d=n||t);var p=this._calculateNewZoom({scale:r,startZoom:c}),h=Oe(c),m=Oe(p),g=(o/2-d[0])*(m/h-1),v=(l/2-d[1])*(m/h-1);return this._getUpdatedState({zoom:p,target:this._calculateNewTarget({startTarget:f,zoom:p,pixelOffset:[g,v]})})}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomPosition:null,startTarget:null,startZoom:null})}},{key:"zoomIn",value:function(){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:2})})}},{key:"zoomOut",value:function(){return this._getUpdatedState({zoom:this._calculateNewZoom({scale:.5})})}},{key:"moveLeft",value:function(){var e=[-50,0];return this._getUpdatedState({target:this._calculateNewTarget({pixelOffset:e})})}},{key:"moveRight",value:function(){var e=[50,0];return this._getUpdatedState({target:this._calculateNewTarget({pixelOffset:e})})}},{key:"moveUp",value:function(){var e=[0,-50];return this._getUpdatedState({target:this._calculateNewTarget({pixelOffset:e})})}},{key:"moveDown",value:function(){var e=[0,50];return this._getUpdatedState({target:this._calculateNewTarget({pixelOffset:e})})}},{key:"rotateLeft",value:function(){return this._getUpdatedState({rotationOrbit:this._viewportProps.rotationOrbit-15})}},{key:"rotateRight",value:function(){return this._getUpdatedState({rotationOrbit:this._viewportProps.rotationOrbit+15})}},{key:"rotateUp",value:function(){return this._getUpdatedState({rotationX:this._viewportProps.rotationX-10})}},{key:"rotateDown",value:function(){return this._getUpdatedState({rotationX:this._viewportProps.rotationX+10})}},{key:"_calculateNewZoom",value:function(e){var t=e.scale,n=e.startZoom,r=this._viewportProps,a=r.maxZoom,i=r.minZoom;Number.isFinite(n)||(n=this._viewportProps.zoom);var o=n+Math.log2(t);return Object(Z.e)(o,i,a)}},{key:"_calculateNewTarget",value:function(e){var t=e.startTarget,n=e.zoom,r=e.pixelOffset,a=Object.assign({},this._viewportProps);Number.isFinite(n)&&(a.zoom=n),t&&(a.target=t);var i=this.makeViewport(a),o=i.project(a.target);return i.unproject([o[0]-r[0],o[1]-r[1],o[2]])}},{key:"_getUpdatedState",value:function(e){return new t(Object.assign({},this._viewportProps,this._interactiveState,e))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom,a=e.maxRotationX,i=e.minRotationX,o=e.rotationOrbit;return e.zoom=Object(Z.e)(r,n,t),e.rotationX=Object(Z.e)(e.rotationX,i,a),(o<-180||o>180)&&(e.rotationOrbit=Object(pe.e)(o+180,360)-180),e}}]),t}(fe.a),xe=function(e){function t(e){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).call(this,Ee,e))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"_getTransitionProps",value:function(){return _e}}]),t}(de.a),Me=Math.PI/180;function we(e){var t=e.height,n=e.fovy,r=e.orbitAxis,a=e.rotationX,i=e.rotationOrbit,o=e.zoom,l=.5/Math.tan(n*Me/2),u="Z"===r?[0,0,1]:[0,1,0],s="Z"===r?[0,-l,0]:[0,0,l],c=(new Z.a).lookAt({eye:s,up:u});c.rotateX(a*Me),"Z"===r?c.rotateZ(i*Me):c.rotateY(i*Me);var d=Math.pow(2,o)/(t||1);return c.scale(d),c}var Se=function(e){function t(e){Object(l.a)(this,t);var n=e.id,r=e.x,a=e.y,i=e.width,o=e.height,u=e.fovy,s=void 0===u?50:u,c=e.near,d=e.far,f=e.orbitAxis,p=void 0===f?"Z":f,h=e.target,m=void 0===h?[0,0,0]:h,y=e.rotationX,b=void 0===y?0:y,A=e.rotationOrbit,_=void 0===A?0:A,O=e.zoom,E=void 0===O?0:O;return Object(g.a)(this,Object(v.a)(t).call(this,{id:n,viewMatrix:we({height:o,fovy:s,orbitAxis:p,rotationX:b,rotationOrbit:_,zoom:E}),fovy:s,near:c,far:d,x:r,y:a,position:m,width:i,height:o,zoom:E}))}return Object(y.a)(t,e),t}(G.a),Te=function(e){function t(e){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).call(this,Object.assign({},e,{type:Se})))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"controller",get:function(){return this._getControllerProps({type:xe})}}]),t}(ue.a);Te.displayName="OrbitView";var Ce={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new ye.a(["target","zoom"]),transitionInterruption:be.a.BREAK},Le=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,Ee,e))).invertPan=!0,n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"_onPanRotate",value:function(e){return!1}},{key:"_getTransitionProps",value:function(){return Ce}}]),t}(de.a),Pe=(new Z.a).lookAt({eye:[0,0,1]});function ke(e){var t=e.width,n=e.height,r=e.near,a=e.far;return t=t||1,n=n||1,(new Z.a).ortho({left:-t/2,right:t/2,bottom:n/2,top:-n/2,near:r,far:a})}var De=function(e){function t(e){var n=e.id,r=e.x,a=e.y,i=e.width,o=e.height,u=e.near,s=void 0===u?.1:u,c=e.far,d=void 0===c?1e3:c,f=e.zoom,p=void 0===f?0:f,h=e.target,m=void 0===h?[0,0,0]:h;Object(l.a)(this,t);var v=Math.pow(2,p);return Object(g.a)(void 0,new G.a({id:n,x:r,y:a,width:i,height:o,position:m,viewMatrix:Pe.clone().scale(v),projectionMatrix:ke({width:i,height:o,near:s,far:d}),zoom:p}))}return Object(y.a)(t,e),t}(G.a),Re=function(e){function t(e){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).call(this,Object.assign({},e,{type:De})))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"controller",get:function(){return this._getControllerProps({type:Le})}}]),t}(ue.a);Re.displayName="OrthographicView";var je=n(63),Ie=n(140),Fe=n(292),Ne={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new ye.a(["longitude","latitude","zoom"]),transitionInterruption:be.a.BREAK},Be=function(e){function t(){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).apply(this,arguments))}return Object(y.a)(t,e),Object(u.a)(t,[{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=Object(Z.e)(r,n,t);var a=e.longitude,i=e.latitude;return(a<-180||a>180)&&(e.longitude=Object(pe.e)(a+180,360)-180),e.latitude=Object(Z.e)(i,-89,89),e}}]),t}(Fe.a),ze=function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,Be,e))).invertPan=!0,n}return Object(y.a)(t,e),Object(u.a)(t,[{key:"setProps",value:function(e){Object(Ie.a)(Object(v.a)(t.prototype),"setProps",this).call(this,e),this.dragRotate=!1,this.touchRotate=!1}},{key:"_getTransitionProps",value:function(){return Ne}}]),t}(de.a);function Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ve=function(e){function t(e){return Object(l.a)(this,t),Object(g.a)(this,Object(v.a)(t).call(this,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.a)(this,t),(e=Object(g.a)(this,Object(v.a)(t).call(this,{compare:["longitude","latitude","zoom","bearing","pitch"],extract:["width","height","longitude","latitude","zoom","bearing","pitch"],required:["width","height","latitude","longitude","zoom"]}))).props=Object.assign({},Ge,n),e}return Object(y.a)(t,e),Object(u.a)(t,[{key:"interpolateProps",value:function(e,t,n){var r=Object(ce.c)(e,t,n,this.props),a=!0,i=!1,o=void 0;try{for(var l,u=We[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value;r[s]=Object(Z.g)(e[s]||0,t[s]||0,n)}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return r}},{key:"getDuration",value:function(e,t){var n=t.transitionDuration;return"auto"===n&&(n=Object(ce.f)(e,t,this.props)),n}}]),t}(Ye.a),Xe=n(62),Ze=n(137),Ke=n(849),Je=n(170),Qe=n(442),$e=n(198),et=n(438),tt=n(347)},function(e,t,n){"use strict";var r=n(845);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return m}));var r=n(35);function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function i(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function o(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function l(e,t){return e[0]=-t[0],e[1]=-t[1],e}function u(e,t,n,r){var a=t[0],i=t[1];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e}function s(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a,e[1]=n[1]*r+n[3]*a,e}function c(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e}function d(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[3]*a+n[6],e[1]=n[1]*r+n[4]*a+n[7],e}function f(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[4]*a+n[12],e[1]=n[1]*r+n[5]*a+n[13],e}var p,h,m=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e};p=new r.a(2),r.a!=Float32Array&&(p[0]=0,p[1]=0),h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(350);var a=n(459);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(a.a)(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(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1216),a=n.n(r),i=n(465);function o(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 Object(i.a)(e)}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(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}}),t&&r(e,t)}n.d(t,"a",(function(){return a}))},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;tr.b?(i=Math.acos(o),l=Math.sin(i),u=Math.sin((1-a)*i)/l,s=Math.sin(a*i)/l):(u=1-a,s=a),e[0]=u*c+s*h,e[1]=u*d+s*m,e[2]=u*f+s*g,e[3]=u*p+s*v,e}function g(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n*n+r*r+a*a+i*i,l=o?1/o:0;return e[0]=-n*l,e[1]=-r*l,e[2]=-a*l,e[3]=i*l,e}function v(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var a=0;t[4]>t[0]&&(a=1),t[8]>t[3*a+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(t[3*a+a]-t[3*i+i]-t[3*o+o]+1),e[a]=.5*n,n=.5/n,e[3]=(t[3*i+o]-t[3*o+i])*n,e[i]=(t[3*i+a]+t[3*a+i])*n,e[o]=(t[3*o+a]+t[3*a+o])*n}return e}o.b,o.g,o.c,o.l;var b,A,_,O,E,x,M=o.a,w=o.k,S=o.d,T=o.i,C=o.h,L=o.m,P=o.j,k=(o.f,o.e,b=i.c(),A=i.f(1,0,0),_=i.f(0,1,0),function(e,t,n){var r=i.e(t,n);return r<-.999999?(i.d(b,A,t),i.g(b)<1e-6&&i.d(b,_,t),i.l(b,b),s(e,b,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(i.d(b,t,n),e[0]=b[0],e[1]=b[1],e[2]=b[2],e[3]=1+r,P(e,e))});O=l(),E=l(),x=a.a()},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LOCALE_CODES",{enumerable:!0,get:function(){return l.LOCALE_CODES}}),Object.defineProperty(t,"LOCALES",{enumerable:!0,get:function(){return l.LOCALES}}),Object.defineProperty(t,"FormattedMessage",{enumerable:!0,get:function(){return u.default}}),t.messages=void 0;var a=r(n(4)),i=r(n(515)),o=n(863),l=n(144),u=r(n(516));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;te*a,t)}function c(e,t){return u(e,e=>e*r,t)}function d(e,t,n){return u(e,e=>Math.max(t,Math.min(n,e)))}function f(e,t,n){return l(e)?e.map((e,r)=>f(e,t[r],n)):n*t+(1-n)*e}function p(e,t,n){const r=i.EPSILON;n&&(i.EPSILON=n);try{if(e===t)return!0;if(l(e)&&l(t)){if(e.length!==t.length)return!1;for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("truncated-code-geometry"):n,a=D(e),i=a.indices,o=a.attributes;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,indices:i,attributes:Object(M.a)({},o,e.attributes)})))}return Object(C.a)(t,e),t}(E.a);function D(e){for(var t=e.bottomRadius,n=void 0===t?0:t,r=e.topRadius,a=void 0===r?0:r,i=e.height,o=void 0===i?1:i,l=e.nradial,u=void 0===l?10:l,s=e.nvertical,c=void 0===s?10:s,d=e.verticalAxis,f=void 0===d?"y":d,p=e.topCap,h=void 0!==p&&p,m=e.bottomCap,g=void 0!==m&&m,v=(h?2:0)+(g?2:0),y=(u+1)*(c+1+v),b=Math.atan2(n-a,o),A=Math.sin,_=Math.cos,O=Math.PI,E=_(b),x=A(b),M=h?-2:0,w=c+(g?2:0),S=u+1,T=new Uint16Array(u*(c+v)*6),C=P[f],L=new Float32Array(3*y),k=new Float32Array(3*y),D=new Float32Array(2*y),R=0,j=0,I=M;I<=w;I++){var F=I/c,N=o*F,B=void 0;I<0?(N=0,F=1,B=n):I>c?(N=o,F=1,B=a):B=n+I/c*(a-n),-2!==I&&I!==c+2||(B=0,F=0),N-=o/2;for(var z=0;zc?0:U*E,k[R+C[1]]=I<0?-1:I>c?1:x,k[R+C[2]]=I<0||I>c?0:V*E,D[j+0]=z/u,D[j+1]=F,j+=2,R+=3}}for(var H=0;H0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("cone-geometry"):n,a=e.radius,i=void 0===a?1:a,o=e.cap,l=void 0===o||o;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,topRadius:0,topCap:Boolean(l),bottomCap:Boolean(l),bottomRadius:i})))}return Object(C.a)(t,e),t}(k),j=n(1902),I=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("cylinder-geometry"):n,a=e.radius,i=void 0===a?1:a;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,bottomRadius:i,topRadius:i})))}return Object(C.a)(t,e),t}(k),F=n(229),N=[-1,0,0,0,1,0,0,0,-1,0,0,1,0,-1,0,1,0,0],B=[3,4,5,3,5,1,3,1,0,3,0,4,4,0,2,4,2,5,2,0,1,5,2,1],z=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("ico-sphere-geometry"):n,a=U(e),i=a.indices,o=a.attributes;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,indices:i,attributes:Object(M.a)({},o,e.attributes)})))}return Object(C.a)(t,e),t}(E.a);function U(e){var t=e.iterations,n=void 0===t?0:t,r=Math.PI,a=2*r,i=[].concat(N),o=[].concat(B);i.push(),o.push();for(var l,u=(l={},function(e,t){var n=(e*=3)>(t*=3)?e:t,r="".concat(e=0;v-=3){var y=o[v+0],b=o[v+1],A=o[v+2],_=3*y,O=3*b,E=3*A,x=2*y,M=2*b,w=2*A,S=i[_+0],T=i[_+1],C=i[_+2],L=Math.acos(C/Math.sqrt(S*S+T*T+C*C))/r,P=1-(Math.atan2(T,S)+r)/a,k=i[O+0],D=i[O+1],R=i[O+2],j=Math.acos(R/Math.sqrt(k*k+D*D+R*R))/r,I=1-(Math.atan2(D,k)+r)/a,z=i[E+0],U=i[E+1],V=i[E+2],H=Math.acos(V/Math.sqrt(z*z+U*U+V*V))/r,Y=1-(Math.atan2(U,z)+r)/a,W=[z-k,U-D,V-R],G=[S-k,T-D,C-R],q=new F.b(W).cross(G).normalize(),X=void 0;(0===P||0===I||0===Y)&&(0===P||P>.5)&&(0===I||I>.5)&&(0===Y||Y>.5)&&(i.push(i[_+0],i[_+1],i[_+2]),X=i.length/3-1,o.push(X),g[2*X+0]=1,g[2*X+1]=L,m[3*X+0]=q.x,m[3*X+1]=q.y,m[3*X+2]=q.z,i.push(i[O+0],i[O+1],i[O+2]),X=i.length/3-1,o.push(X),g[2*X+0]=1,g[2*X+1]=j,m[3*X+0]=q.x,m[3*X+1]=q.y,m[3*X+2]=q.z,i.push(i[E+0],i[E+1],i[E+2]),X=i.length/3-1,o.push(X),g[2*X+0]=1,g[2*X+1]=H,m[3*X+0]=q.x,m[3*X+1]=q.y,m[3*X+2]=q.z),m[_+0]=m[O+0]=m[E+0]=q.x,m[_+1]=m[O+1]=m[E+1]=q.y,m[_+2]=m[O+2]=m[E+2]=q.z,g[x+0]=P,g[x+1]=L,g[M+0]=I,g[M+1]=j,g[w+0]=Y,g[w+1]=H}return{indices:{size:1,value:new Uint16Array(o)},attributes:{POSITION:{size:3,value:new Float32Array(i)},NORMAL:{size:3,value:new Float32Array(m)},TEXCOORD_0:{size:2,value:new Float32Array(g)}}}}var V=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("plane-geometry"):n,a=H(e),i=a.indices,o=a.attributes;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,indices:i,attributes:Object(M.a)({},o,e.attributes)})))}return Object(C.a)(t,e),t}(E.a);function H(e){var t=e.type,n=void 0===t?"x,y":t,r=e.offset,a=void 0===r?0:r,i=e.flipCull,o=void 0!==i&&i,l=e.unpack,u=void 0!==l&&l,s=n.split(","),c=e["".concat(s[0],"len")]||1,d=e["".concat(s[1],"len")]||1,f=e["n".concat(s[0])]||1,p=e["n".concat(s[1])]||1,h=(f+1)*(p+1),m=new Float32Array(3*h),g=new Float32Array(3*h),v=new Float32Array(2*h);o&&(c=-c);for(var y=0,b=0,A=0;A<=p;A++)for(var _=0;_<=f;_++){var O=_/f,E=A/p;switch(v[y+0]=o?1-O:O,v[y+1]=E,n){case"x,y":m[b+0]=c*O-.5*c,m[b+1]=d*E-.5*d,m[b+2]=a,g[b+0]=0,g[b+1]=0,g[b+2]=o?1:-1;break;case"x,z":m[b+0]=c*O-.5*c,m[b+1]=a,m[b+2]=d*E-.5*d,g[b+0]=0,g[b+1]=o?1:-1,g[b+2]=0;break;case"y,z":m[b+0]=a,m[b+1]=c*O-.5*c,m[b+2]=d*E-.5*d,g[b+0]=o?1:-1,g[b+1]=0,g[b+2]=0;break;default:throw new Error("PlaneGeometry: unknown type")}y+=2,b+=3}for(var x=f+1,M=new Uint16Array(f*p*6),w=0;w0&&void 0!==arguments[0]?arguments[0]:{};Object(w.a)(this,t);var n=e.id,r=void 0===n?Object(L.c)("sphere-geometry"):n,a=W(e),i=a.indices,o=a.attributes;return Object(S.a)(this,Object(T.a)(t).call(this,Object(M.a)({},e,{id:r,indices:i,attributes:Object(M.a)({},o,e.attributes)})))}return Object(C.a)(t,e),t}(E.a);function W(e){var t=e.nlat,n=void 0===t?10:t,r=e.nlong,a=void 0===r?10:r,i=e.radius,o=void 0===i?1:i,l=Math.PI-0,u=2*Math.PI-0,s=(n+1)*(a+1);if("number"==typeof o){var c=o;o=function(e,t,n,r,a){return c}}for(var d=new Float32Array(3*s),f=new Float32Array(3*s),p=new Float32Array(2*s),h=new(s>65535?Uint32Array:Uint16Array)(n*a*6),m=0;m<=n;m++)for(var g=0;g<=a;g++){var v=g/a,y=m/n,b=g+m*(a+1),A=2*b,_=3*b,O=u*v,E=l*y,x=Math.sin(O),M=Math.cos(O),w=Math.sin(E),S=M*w,T=Math.cos(E),C=x*w,L=o(S,T,C,v,y);d[_+0]=L*S,d[_+1]=L*T,d[_+2]=L*C,f[_+0]=S,f[_+1]=T,f[_+2]=C,p[A+0]=v,p[A+1]=1-y}for(var P=a+1,k=0;k1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.fround(e),a=e-r;return t[n]=r,t[n+1]=a,t}function Z(e){return e-Math.fround(e)}var K={ONE:1};var J={name:"fp64",vs:"const vec2 E_FP64 = vec2(2.7182817459106445e+00, 8.254840366817007e-08);\nconst vec2 LOG2_FP64 = vec2(0.6931471824645996e+00, -1.9046542121259336e-09);\nconst vec2 PI_FP64 = vec2(3.1415927410125732, -8.742278012618954e-8);\nconst vec2 TWO_PI_FP64 = vec2(6.2831854820251465, -1.7484556025237907e-7);\nconst vec2 PI_2_FP64 = vec2(1.5707963705062866, -4.371139006309477e-8);\nconst vec2 PI_4_FP64 = vec2(0.7853981852531433, -2.1855695031547384e-8);\nconst vec2 PI_16_FP64 = vec2(0.19634954631328583, -5.463923757886846e-9);\nconst vec2 PI_16_2_FP64 = vec2(0.39269909262657166, -1.0927847515773692e-8);\nconst vec2 PI_16_3_FP64 = vec2(0.5890486240386963, -1.4906100798128818e-9);\nconst vec2 PI_180_FP64 = vec2(0.01745329238474369, 1.3519960498364902e-10);\n\nconst vec2 SIN_TABLE_0_FP64 = vec2(0.19509032368659973, -1.6704714833615242e-9);\nconst vec2 SIN_TABLE_1_FP64 = vec2(0.3826834261417389, 6.22335089017767e-9);\nconst vec2 SIN_TABLE_2_FP64 = vec2(0.5555702447891235, -1.1769521357507529e-8);\nconst vec2 SIN_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617041793133e-8);\n\nconst vec2 COS_TABLE_0_FP64 = vec2(0.9807852506637573, 2.9739473106360492e-8);\nconst vec2 COS_TABLE_1_FP64 = vec2(0.9238795042037964, 2.8307490351764386e-8);\nconst vec2 COS_TABLE_2_FP64 = vec2(0.8314695954322815, 1.6870263741530778e-8);\nconst vec2 COS_TABLE_3_FP64 = vec2(0.7071067690849304, 1.2101617152815436e-8);\n\nconst vec2 INVERSE_FACTORIAL_3_FP64 = vec2(1.666666716337204e-01, -4.967053879312289e-09);\nconst vec2 INVERSE_FACTORIAL_4_FP64 = vec2(4.16666679084301e-02, -1.2417634698280722e-09);\nconst vec2 INVERSE_FACTORIAL_5_FP64 = vec2(8.333333767950535e-03, -4.34617203337595e-10);\nconst vec2 INVERSE_FACTORIAL_6_FP64 = vec2(1.3888889225199819e-03, -3.3631094437103215e-11);\nconst vec2 INVERSE_FACTORIAL_7_FP64 = vec2(1.9841270113829523e-04, -2.725596874933456e-12);\nconst vec2 INVERSE_FACTORIAL_8_FP64 = vec2(2.4801587642286904e-05, -3.406996025904184e-13);\nconst vec2 INVERSE_FACTORIAL_9_FP64 = vec2(2.75573188446287533e-06, 3.7935713937038186e-14);\nconst vec2 INVERSE_FACTORIAL_10_FP64 = vec2(2.755731998149713e-07, -7.575112367869873e-15);\n\nfloat nint(float d) {\n if (d == floor(d)) return d;\n return floor(d + 0.5);\n}\n\nvec2 nint_fp64(vec2 a) {\n float hi = nint(a.x);\n float lo;\n vec2 tmp;\n if (hi == a.x) {\n lo = nint(a.y);\n tmp = quickTwoSum(hi, lo);\n } else {\n lo = 0.0;\n if (abs(hi - a.x) == 0.5 && a.y < 0.0) {\n hi -= 1.0;\n }\n tmp = vec2(hi, lo);\n }\n return tmp;\n}\n\nvec2 exp_fp64(vec2 a) {\n\n const int k_power = 4;\n const float k = 16.0;\n\n const float inv_k = 1.0 / k;\n\n if (a.x <= -88.0) return vec2(0.0, 0.0);\n if (a.x >= 88.0) return vec2(1.0 / 0.0, 1.0 / 0.0);\n if (a.x == 0.0 && a.y == 0.0) return vec2(1.0, 0.0);\n if (a.x == 1.0 && a.y == 0.0) return E_FP64;\n\n float m = floor(a.x / LOG2_FP64.x + 0.5);\n vec2 r = sub_fp64(a, mul_fp64(LOG2_FP64, vec2(m, 0.0))) * inv_k;\n vec2 s, t, p;\n\n p = mul_fp64(r, r);\n s = sum_fp64(r, p * 0.5);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_3_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_4_FP64);\n\n s = sum_fp64(s, t);\n p = mul_fp64(p, r);\n t = mul_fp64(p, INVERSE_FACTORIAL_5_FP64);\n\n\n\n\n\n\n s = sum_fp64(s, t);\n for (int i = 0; i < k_power; i++) {\n s = sum_fp64(s * 2.0, mul_fp64(s, s));\n }\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = sum_fp64(s, vec2(ONE, 0.0));\n#else\n s = sum_fp64(s, vec2(1.0, 0.0));\n#endif\n\n return s * pow(2.0, m);\n}\n\nvec2 log_fp64(vec2 a)\n{\n if (a.x == 1.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x <= 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n vec2 x = vec2(log(a.x), 0.0);\n vec2 s;\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n s = vec2(ONE, 0.0);\n#else\n s = vec2(1.0, 0.0);\n#endif\n\n x = sub_fp64(sum_fp64(x, mul_fp64(a, exp_fp64(-x))), s);\n return x;\n}\n\nvec2 sin_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n s = a;\n r = a;\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_3_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_5_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvec2 cos_taylor_fp64(vec2 a) {\n vec2 r, s, t, x;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n\n x = -mul_fp64(a, a);\n r = x;\n s = sum_fp64(vec2(1.0, 0.0), r * 0.5);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_4_FP64);\n s = sum_fp64(s, t);\n\n r = mul_fp64(r, x);\n t = mul_fp64(r, INVERSE_FACTORIAL_6_FP64);\n s = sum_fp64(s, t);\n\n\n\n\n\n\n return s;\n}\n\nvoid sincos_taylor_fp64(vec2 a, out vec2 sin_t, out vec2 cos_t) {\n if (a.x == 0.0 && a.y == 0.0) {\n sin_t = vec2(0.0, 0.0);\n cos_t = vec2(1.0, 0.0);\n }\n\n sin_t = sin_taylor_fp64(a);\n cos_t = sqrt_fp64(sub_fp64(vec2(1.0, 0.0), mul_fp64(sin_t, sin_t)));\n}\n\nvec2 sin_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return sin_taylor_fp64(t);\n } else if (j == 1) {\n return cos_taylor_fp64(t);\n } else if (j == -1) {\n return -cos_taylor_fp64(t);\n } else {\n return -sin_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n }\n } else {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 cos_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(1.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n\n if (k == 0) {\n if (j == 0) {\n return cos_taylor_fp64(t);\n } else if (j == 1) {\n return -sin_taylor_fp64(t);\n } else if (j == -1) {\n return sin_taylor_fp64(t);\n } else {\n return -cos_taylor_fp64(t);\n }\n }\n\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n\n vec2 sin_t, cos_t;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n vec2 result = vec2(0.0, 0.0);\n if (j == 0) {\n if (k > 0) {\n result = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n result = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n } else if (j == 1) {\n if (k > 0) {\n result = -sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(v, cos_t), mul_fp64(u, sin_t));\n }\n } else if (j == -1) {\n if (k > 0) {\n result = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n } else {\n result = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n }\n } else {\n if (k > 0) {\n result = sub_fp64(mul_fp64(v, sin_t), mul_fp64(u, cos_t));\n } else {\n result = -sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n return result;\n}\n\nvec2 tan_fp64(vec2 a) {\n vec2 sin_a;\n vec2 cos_a;\n\n if (a.x == 0.0 && a.y == 0.0) {\n return vec2(0.0, 0.0);\n }\n vec2 z = nint_fp64(div_fp64(a, TWO_PI_FP64));\n vec2 r = sub_fp64(a, mul_fp64(TWO_PI_FP64, z));\n\n vec2 t;\n float q = floor(r.x / PI_2_FP64.x + 0.5);\n int j = int(q);\n\n\n if (j < -2 || j > 2) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n }\n\n t = sub_fp64(r, mul_fp64(PI_2_FP64, vec2(q, 0.0)));\n\n q = floor(t.x / PI_16_FP64.x + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return vec2(0.0 / 0.0, 0.0 / 0.0);\n } else {\n t = sub_fp64(t, mul_fp64(PI_16_FP64, vec2(q, 0.0)));\n }\n\n\n vec2 u = vec2(0.0, 0.0);\n vec2 v = vec2(0.0, 0.0);\n\n vec2 sin_t, cos_t;\n vec2 s, c;\n sincos_taylor_fp64(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n#if defined(NVIDIA_FP64_WORKAROUND) || defined(INTEL_FP64_WORKAROUND)\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#else\n if (abs_k == 1) {\n u = COS_TABLE_0_FP64;\n v = SIN_TABLE_0_FP64;\n } else if (abs_k == 2) {\n u = COS_TABLE_1_FP64;\n v = SIN_TABLE_1_FP64;\n } else if (abs_k == 3) {\n u = COS_TABLE_2_FP64;\n v = SIN_TABLE_2_FP64;\n } else if (abs_k == 4) {\n u = COS_TABLE_3_FP64;\n v = SIN_TABLE_3_FP64;\n }\n#endif\n if (k > 0) {\n s = sum_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sub_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n } else {\n s = sub_fp64(mul_fp64(u, sin_t), mul_fp64(v, cos_t));\n c = sum_fp64(mul_fp64(u, cos_t), mul_fp64(v, sin_t));\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return div_fp64(sin_a, cos_a);\n}\n\nvec2 radians_fp64(vec2 degree) {\n return mul_fp64(degree, PI_180_FP64);\n}\n\nvec2 mix_fp64(vec2 a, vec2 b, float x) {\n vec2 range = sub_fp64(b, a);\n return sum_fp64(a, mul_fp64(range, vec2(x, 0.0)));\n}\n\nvoid vec2_sum_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sum_fp64(a[0], b[0]);\n out_val[1] = sum_fp64(a[1], b[1]);\n}\n\nvoid vec2_sub_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = sub_fp64(a[0], b[0]);\n out_val[1] = sub_fp64(a[1], b[1]);\n}\n\nvoid vec2_mul_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = mul_fp64(a[0], b[0]);\n out_val[1] = mul_fp64(a[1], b[1]);\n}\n\nvoid vec2_div_fp64(vec2 a[2], vec2 b[2], out vec2 out_val[2]) {\n out_val[0] = div_fp64(a[0], b[0]);\n out_val[1] = div_fp64(a[1], b[1]);\n}\n\nvoid vec2_mix_fp64(vec2 x[2], vec2 y[2], float a, out vec2 out_val[2]) {\n vec2 range[2];\n vec2_sub_fp64(y, x, range);\n vec2 portion[2];\n portion[0] = range[0] * a;\n portion[1] = range[1] * a;\n vec2_sum_fp64(x, portion, out_val);\n}\n\nvec2 vec2_length_fp64(vec2 x[2]) {\n return sqrt_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])));\n}\n\nvoid vec2_normalize_fp64(vec2 x[2], out vec2 out_val[2]) {\n vec2 length = vec2_length_fp64(x);\n vec2 length_vec2[2];\n length_vec2[0] = length;\n length_vec2[1] = length;\n\n vec2_div_fp64(x, length_vec2, out_val);\n}\n\nvec2 vec2_distance_fp64(vec2 x[2], vec2 y[2]) {\n vec2 diff[2];\n vec2_sub_fp64(x, y, diff);\n return vec2_length_fp64(diff);\n}\n\nvec2 vec2_dot_fp64(vec2 a[2], vec2 b[2]) {\n vec2 v[2];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n\n return sum_fp64(v[0], v[1]);\n}\nvoid vec3_sub_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec3_sum_fp64(vec2 a[3], vec2 b[3], out vec2 out_val[3]) {\n for (int i = 0; i < 3; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvec2 vec3_length_fp64(vec2 x[3]) {\n return sqrt_fp64(sum_fp64(sum_fp64(mul_fp64(x[0], x[0]), mul_fp64(x[1], x[1])),\n mul_fp64(x[2], x[2])));\n}\n\nvec2 vec3_distance_fp64(vec2 x[3], vec2 y[3]) {\n vec2 diff[3];\n vec3_sub_fp64(x, y, diff);\n return vec3_length_fp64(diff);\n}\nvoid vec4_fp64(vec4 a, out vec2 out_val[4]) {\n out_val[0].x = a[0];\n out_val[0].y = 0.0;\n\n out_val[1].x = a[1];\n out_val[1].y = 0.0;\n\n out_val[2].x = a[2];\n out_val[2].y = 0.0;\n\n out_val[3].x = a[3];\n out_val[3].y = 0.0;\n}\n\nvoid vec4_scalar_mul_fp64(vec2 a[4], vec2 b, out vec2 out_val[4]) {\n out_val[0] = mul_fp64(a[0], b);\n out_val[1] = mul_fp64(a[1], b);\n out_val[2] = mul_fp64(a[2], b);\n out_val[3] = mul_fp64(a[3], b);\n}\n\nvoid vec4_sum_fp64(vec2 a[4], vec2 b[4], out vec2 out_val[4]) {\n for (int i = 0; i < 4; i++) {\n out_val[i] = sum_fp64(a[i], b[i]);\n }\n}\n\nvoid vec4_dot_fp64(vec2 a[4], vec2 b[4], out vec2 out_val) {\n vec2 v[4];\n\n v[0] = mul_fp64(a[0], b[0]);\n v[1] = mul_fp64(a[1], b[1]);\n v[2] = mul_fp64(a[2], b[2]);\n v[3] = mul_fp64(a[3], b[3]);\n\n out_val = sum_fp64(sum_fp64(v[0], v[1]), sum_fp64(v[2], v[3]));\n}\n\nvoid mat4_vec4_mul_fp64(vec2 b[16], vec2 a[4], out vec2 out_val[4]) {\n vec2 tmp[4];\n\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++)\n {\n tmp[j] = b[j + i * 4];\n }\n vec4_dot_fp64(a, tmp, out_val[i]);\n }\n}\n",fs:null,dependencies:[{name:"fp64-arithmetic",vs:"uniform float ONE;\nvec2 split(float a) {\n const float SPLIT = 4097.0;\n float t = a * SPLIT;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float a_hi = t * ONE - (t - a);\n float a_lo = a * ONE - a_hi;\n#else\n float a_hi = t - (t - a);\n float a_lo = a - a_hi;\n#endif\n return vec2(a_hi, a_lo);\n}\nvec2 split2(vec2 a) {\n vec2 b = split(a.x);\n b.y += a.y;\n return b;\n}\nvec2 quickTwoSum(float a, float b) {\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float sum = (a + b) * ONE;\n float err = b - (sum - a) * ONE;\n#else\n float sum = a + b;\n float err = b - (sum - a);\n#endif\n return vec2(sum, err);\n}\nvec2 twoSum(float a, float b) {\n float s = (a + b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE + (b - v);\n#else\n float v = s - a;\n float err = (a - (s - v)) + (b - v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSub(float a, float b) {\n float s = (a - b);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float v = (s * ONE - a) * ONE;\n float err = (a - (s - v) * ONE) * ONE * ONE * ONE - (b + v);\n#else\n float v = s - a;\n float err = (a - (s - v)) - (b + v);\n#endif\n return vec2(s, err);\n}\n\nvec2 twoSqr(float a) {\n float prod = a * a;\n vec2 a_fp64 = split(a);\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n float err = ((a_fp64.x * a_fp64.x - prod) * ONE + 2.0 * a_fp64.x *\n a_fp64.y * ONE * ONE) + a_fp64.y * a_fp64.y * ONE * ONE * ONE;\n#else\n float err = ((a_fp64.x * a_fp64.x - prod) + 2.0 * a_fp64.x * a_fp64.y) + a_fp64.y * a_fp64.y;\n#endif\n return vec2(prod, err);\n}\n\nvec2 twoProd(float a, float b) {\n float prod = a * b;\n vec2 a_fp64 = split(a);\n vec2 b_fp64 = split(b);\n float err = ((a_fp64.x * b_fp64.x - prod) + a_fp64.x * b_fp64.y +\n a_fp64.y * b_fp64.x) + a_fp64.y * b_fp64.y;\n return vec2(prod, err);\n}\n\nvec2 sum_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSum(a.x, b.x);\n t = twoSum(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 sub_fp64(vec2 a, vec2 b) {\n vec2 s, t;\n s = twoSub(a.x, b.x);\n t = twoSub(a.y, b.y);\n s.y += t.x;\n s = quickTwoSum(s.x, s.y);\n s.y += t.y;\n s = quickTwoSum(s.x, s.y);\n return s;\n}\n\nvec2 mul_fp64(vec2 a, vec2 b) {\n vec2 prod = twoProd(a.x, b.x);\n prod.y += a.x * b.y;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n prod.y += a.y * b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n prod = split2(prod);\n#endif\n prod = quickTwoSum(prod.x, prod.y);\n return prod;\n}\n\nvec2 div_fp64(vec2 a, vec2 b) {\n float xn = 1.0 / b.x;\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n vec2 yn = mul_fp64(a, vec2(xn, 0));\n#else\n vec2 yn = a * xn;\n#endif\n float diff = (sub_fp64(a, mul_fp64(b, yn))).x;\n vec2 prod = twoProd(xn, diff);\n return sum_fp64(yn, prod);\n}\n\nvec2 sqrt_fp64(vec2 a) {\n if (a.x == 0.0 && a.y == 0.0) return vec2(0.0, 0.0);\n if (a.x < 0.0) return vec2(0.0 / 0.0, 0.0 / 0.0);\n\n float x = 1.0 / sqrt(a.x);\n float yn = a.x * x;\n#if defined(LUMA_FP64_CODE_ELIMINATION_WORKAROUND)\n vec2 yn_sqr = twoSqr(yn) * ONE;\n#else\n vec2 yn_sqr = twoSqr(yn);\n#endif\n float diff = sub_fp64(a, yn_sqr).x;\n vec2 prod = twoProd(x * 0.5, diff);\n#if defined(LUMA_FP64_HIGH_BITS_OVERFLOW_WORKAROUND)\n return sum_fp64(split(yn), prod);\n#else\n return sum_fp64(vec2(yn, 0.0), prod);\n#endif\n}\n",fs:null,getUniforms:function(){return K},fp64ify:X,fp64LowPart:Z}],fp64ify:X,fp64LowPart:Z,fp64ifyMatrix4:function(e){for(var t=new Float32Array(32),n=0;n<4;++n)for(var r=0;r<4;++r){var a=4*n+r;X(e[4*r+n],t,2*a)}return t}},Q=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],$={modelMatrix:Q,viewMatrix:Q,projectionMatrix:Q,cameraPositionWorld:[0,0,0]};var ee="varying vec4 project_vPositionWorld;\nvarying vec3 project_vNormalWorld;\n\nvec4 project_getPosition_World() {\n return project_vPositionWorld;\n}\n\nvec3 project_getNormal_World() {\n return project_vNormalWorld;\n}\n",te={name:"project",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t={};return void 0!==e.modelMatrix&&(t.modelMatrix=e.modelMatrix),void 0!==e.viewMatrix&&(t.viewMatrix=e.viewMatrix),void 0!==e.projectionMatrix&&(t.projectionMatrix=e.projectionMatrix),void 0!==e.cameraPositionWorld&&(t.cameraPositionWorld=e.cameraPositionWorld),void 0===e.projectionMatrix&&void 0===e.viewMatrix||(t.viewProjectionMatrix=new F.a(e.projectionMatrix).multiplyRight(e.viewMatrix)),t},vs:"".concat(ee,"\nuniform mat4 modelMatrix;\nuniform mat4 viewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewProjectionMatrix;\nuniform vec3 cameraPositionWorld;\n\nstruct World {\n vec3 position;\n vec3 normal;\n};\n\nWorld world;\n\nvoid project_setPosition(vec4 position) {\n project_vPositionWorld = position;\n}\n\nvoid project_setNormal(vec3 normal) {\n project_vNormalWorld = normal;\n}\n\nvoid project_setPositionAndNormal_World(vec3 position, vec3 normal) {\n world.position = position;\n world.normal = normal;\n}\n\nvoid project_setPositionAndNormal_Model(vec3 position, vec3 normal) {\n world.position = (modelMatrix * vec4(position, 1.)).xyz;\n world.normal = mat3(modelMatrix) * normal;\n}\n\nvec4 project_model_to_clipspace(vec4 position) {\n return viewProjectionMatrix * modelMatrix * position;\n}\n\nvec4 project_model_to_clipspace(vec3 position) {\n return viewProjectionMatrix * modelMatrix * vec4(position, 1.);\n}\n\nvec4 project_world_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_view_to_clipspace(vec3 position) {\n return projectionMatrix * vec4(position, 1.);\n}\n\nvec4 project_to_clipspace(vec3 position) {\n return viewProjectionMatrix * vec4(position, 1.);\n}\n"),fs:"\n".concat(ee)},ne={lightDirection:new Float32Array([1,1,2])};var re={name:"dirlight",vs:null,fs:"uniform vec3 dirlight_uLightDirection;\nvec4 dirlight_filterColor(vec4 color) {\n vec3 normal = project_getNormal_World();\n float d = abs(dot(normalize(normal), normalize(dirlight_uLightDirection)));\n return vec4(color.rgb * d, color.a);\n}\n",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t={};return e.lightDirection&&(t.dirlight_uLightDirection=e.lightDirection),t},dependencies:[te]},ae=n(1901),ie=n(1949),oe={name:"pbr",vs:"uniform mat4 u_MVPMatrix;\nuniform mat4 u_ModelMatrix;\nuniform mat4 u_NormalMatrix;\n\nvarying vec3 pbr_vPosition;\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n# ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n# else\nvarying vec3 pbr_vNormal;\n# endif\n#endif\n\nvoid pbr_setPositionNormalTangentUV(vec4 position, vec4 normal, vec4 tangent, vec2 uv)\n{\n vec4 pos = u_ModelMatrix * position;\n pbr_vPosition = vec3(pos.xyz) / pos.w;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\n vec3 normalW = normalize(vec3(u_NormalMatrix * vec4(normal.xyz, 0.0)));\n vec3 tangentW = normalize(vec3(u_ModelMatrix * vec4(tangent.xyz, 0.0)));\n vec3 bitangentW = cross(normalW, tangentW) * tangent.w;\n pbr_vTBN = mat3(tangentW, bitangentW, normalW);\n#else\n pbr_vNormal = normalize(vec3(u_ModelMatrix * vec4(normal.xyz, 0.0)));\n#endif\n#endif\n\n#ifdef HAS_UV\n pbr_vUV = uv;\n#else\n pbr_vUV = vec2(0.,0.);\n#endif\n}\n",fs:"#if (__VERSION__ < 300)\n#extension GL_EXT_shader_texture_lod: enable\n#extension GL_OES_standard_derivatives : enable\n#endif\n\n\n#if (__VERSION__ < 300)\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL1COND; INCR)\n#else\n #define SMART_FOR(INIT, WEBGL1COND, WEBGL2COND, INCR) for (INIT; WEBGL2COND; INCR)\n#endif\n\nprecision highp float;\n\nuniform bool pbr_uUnlit;\n\n#ifdef USE_IBL\nuniform samplerCube u_DiffuseEnvSampler;\nuniform samplerCube u_SpecularEnvSampler;\nuniform sampler2D u_brdfLUT;\nuniform vec2 u_ScaleIBLAmbient;\n#endif\n\n#ifdef HAS_BASECOLORMAP\nuniform sampler2D u_BaseColorSampler;\n#endif\n#ifdef HAS_NORMALMAP\nuniform sampler2D u_NormalSampler;\nuniform float u_NormalScale;\n#endif\n#ifdef HAS_EMISSIVEMAP\nuniform sampler2D u_EmissiveSampler;\nuniform vec3 u_EmissiveFactor;\n#endif\n#ifdef HAS_METALROUGHNESSMAP\nuniform sampler2D u_MetallicRoughnessSampler;\n#endif\n#ifdef HAS_OCCLUSIONMAP\nuniform sampler2D u_OcclusionSampler;\nuniform float u_OcclusionStrength;\n#endif\n\n#ifdef ALPHA_CUTOFF\nuniform float u_AlphaCutoff;\n#endif\n\nuniform vec2 u_MetallicRoughnessValues;\nuniform vec4 u_BaseColorFactor;\n\nuniform vec3 u_Camera;\n#ifdef PBR_DEBUG\nuniform vec4 u_ScaleDiffBaseMR;\nuniform vec4 u_ScaleFGDSpec;\n#endif\n\nvarying vec3 pbr_vPosition;\n\nvarying vec2 pbr_vUV;\n\n#ifdef HAS_NORMALS\n#ifdef HAS_TANGENTS\nvarying mat3 pbr_vTBN;\n#else\nvarying vec3 pbr_vNormal;\n#endif\n#endif\n\n\nstruct PBRInfo\n{\n float NdotL;\n float NdotV;\n float NdotH;\n float LdotH;\n float VdotH;\n float perceptualRoughness;\n float metalness;\n vec3 reflectance0;\n vec3 reflectance90;\n float alphaRoughness;\n vec3 diffuseColor;\n vec3 specularColor;\n vec3 n;\n vec3 v;\n};\n\nconst float M_PI = 3.141592653589793;\nconst float c_MinRoughness = 0.04;\n\nvec4 SRGBtoLINEAR(vec4 srgbIn)\n{\n#ifdef MANUAL_SRGB\n#ifdef SRGB_FAST_APPROXIMATION\n vec3 linOut = pow(srgbIn.xyz,vec3(2.2));\n#else\n vec3 bLess = step(vec3(0.04045),srgbIn.xyz);\n vec3 linOut = mix( srgbIn.xyz/vec3(12.92), pow((srgbIn.xyz+vec3(0.055))/vec3(1.055),vec3(2.4)), bLess );\n#endif\n return vec4(linOut,srgbIn.w);;\n#else\n return srgbIn;\n#endif\n}\n\nvec3 getNormal()\n{\n#ifndef HAS_TANGENTS\n vec3 pos_dx = dFdx(pbr_vPosition);\n vec3 pos_dy = dFdy(pbr_vPosition);\n vec3 tex_dx = dFdx(vec3(pbr_vUV, 0.0));\n vec3 tex_dy = dFdy(vec3(pbr_vUV, 0.0));\n vec3 t = (tex_dy.t * pos_dx - tex_dx.t * pos_dy) / (tex_dx.s * tex_dy.t - tex_dy.s * tex_dx.t);\n\n#ifdef HAS_NORMALS\n vec3 ng = normalize(pbr_vNormal);\n#else\n vec3 ng = cross(pos_dx, pos_dy);\n#endif\n\n t = normalize(t - ng * dot(ng, t));\n vec3 b = normalize(cross(ng, t));\n mat3 tbn = mat3(t, b, ng);\n#else\n mat3 tbn = pbr_vTBN;\n#endif\n\n#ifdef HAS_NORMALMAP\n vec3 n = texture2D(u_NormalSampler, pbr_vUV).rgb;\n n = normalize(tbn * ((2.0 * n - 1.0) * vec3(u_NormalScale, u_NormalScale, 1.0)));\n#else\n vec3 n = normalize(tbn[2].xyz);\n#endif\n\n return n;\n}\n\n\n#ifdef USE_IBL\nvec3 getIBLContribution(PBRInfo pbrInputs, vec3 n, vec3 reflection)\n{\n float mipCount = 9.0;\n float lod = (pbrInputs.perceptualRoughness * mipCount);\n vec3 brdf = SRGBtoLINEAR(texture2D(u_brdfLUT,\n vec2(pbrInputs.NdotV, 1.0 - pbrInputs.perceptualRoughness))).rgb;\n vec3 diffuseLight = SRGBtoLINEAR(textureCube(u_DiffuseEnvSampler, n)).rgb;\n\n#ifdef USE_TEX_LOD\n vec3 specularLight = SRGBtoLINEAR(textureCubeLodEXT(u_SpecularEnvSampler, reflection, lod)).rgb;\n#else\n vec3 specularLight = SRGBtoLINEAR(textureCube(u_SpecularEnvSampler, reflection)).rgb;\n#endif\n\n vec3 diffuse = diffuseLight * pbrInputs.diffuseColor;\n vec3 specular = specularLight * (pbrInputs.specularColor * brdf.x + brdf.y);\n diffuse *= u_ScaleIBLAmbient.x;\n specular *= u_ScaleIBLAmbient.y;\n\n return diffuse + specular;\n}\n#endif\n\n\nvec3 diffuse(PBRInfo pbrInputs)\n{\n return pbrInputs.diffuseColor / M_PI;\n}\n\nvec3 specularReflection(PBRInfo pbrInputs)\n{\n return pbrInputs.reflectance0 +\n (pbrInputs.reflectance90 - pbrInputs.reflectance0) *\n pow(clamp(1.0 - pbrInputs.VdotH, 0.0, 1.0), 5.0);\n}\n\n\n\nfloat geometricOcclusion(PBRInfo pbrInputs)\n{\n float NdotL = pbrInputs.NdotL;\n float NdotV = pbrInputs.NdotV;\n float r = pbrInputs.alphaRoughness;\n\n float attenuationL = 2.0 * NdotL / (NdotL + sqrt(r * r + (1.0 - r * r) * (NdotL * NdotL)));\n float attenuationV = 2.0 * NdotV / (NdotV + sqrt(r * r + (1.0 - r * r) * (NdotV * NdotV)));\n return attenuationL * attenuationV;\n}\n\n\n\n\n\nfloat microfacetDistribution(PBRInfo pbrInputs)\n{\n float roughnessSq = pbrInputs.alphaRoughness * pbrInputs.alphaRoughness;\n float f = (pbrInputs.NdotH * roughnessSq - pbrInputs.NdotH) * pbrInputs.NdotH + 1.0;\n return roughnessSq / (M_PI * f * f);\n}\n\nvoid PBRInfo_setAmbientLight(inout PBRInfo pbrInputs) {\n pbrInputs.NdotL = 1.0;\n pbrInputs.NdotH = 0.0;\n pbrInputs.LdotH = 0.0;\n pbrInputs.VdotH = 1.0;\n}\n\nvoid PBRInfo_setDirectionalLight(inout PBRInfo pbrInputs, vec3 lightDirection) {\n vec3 n = pbrInputs.n;\n vec3 v = pbrInputs.v;\n vec3 l = normalize(lightDirection);\n vec3 h = normalize(l+v);\n\n pbrInputs.NdotL = clamp(dot(n, l), 0.001, 1.0);\n pbrInputs.NdotH = clamp(dot(n, h), 0.0, 1.0);\n pbrInputs.LdotH = clamp(dot(l, h), 0.0, 1.0);\n pbrInputs.VdotH = clamp(dot(v, h), 0.0, 1.0);\n}\n\nvoid PBRInfo_setPointLight(inout PBRInfo pbrInputs, PointLight pointLight) {\n vec3 light_direction = normalize(pointLight.position - pbr_vPosition);\n PBRInfo_setDirectionalLight(pbrInputs, light_direction);\n}\n\nvec3 calculateFinalColor(PBRInfo pbrInputs, vec3 lightColor) {\n vec3 F = specularReflection(pbrInputs);\n float G = geometricOcclusion(pbrInputs);\n float D = microfacetDistribution(pbrInputs);\n vec3 diffuseContrib = (1.0 - F) * diffuse(pbrInputs);\n vec3 specContrib = F * G * D / (4.0 * pbrInputs.NdotL * pbrInputs.NdotV);\n return pbrInputs.NdotL * lightColor * (diffuseContrib + specContrib);\n}\n\nvec4 pbr_filterColor(vec4 colorUnused)\n{\n#ifdef HAS_BASECOLORMAP\n vec4 baseColor = SRGBtoLINEAR(texture2D(u_BaseColorSampler, pbr_vUV)) * u_BaseColorFactor;\n#else\n vec4 baseColor = u_BaseColorFactor;\n#endif\n\n#ifdef ALPHA_CUTOFF\n if (baseColor.a < u_AlphaCutoff) {\n discard;\n }\n#endif\n\n vec3 color = vec3(0, 0, 0);\n\n if(pbr_uUnlit){\n color.rgb = baseColor.rgb;\n }\n else{\n\n\n float perceptualRoughness = u_MetallicRoughnessValues.y;\n float metallic = u_MetallicRoughnessValues.x;\n#ifdef HAS_METALROUGHNESSMAP\n\n vec4 mrSample = texture2D(u_MetallicRoughnessSampler, pbr_vUV);\n perceptualRoughness = mrSample.g * perceptualRoughness;\n metallic = mrSample.b * metallic;\n#endif\n perceptualRoughness = clamp(perceptualRoughness, c_MinRoughness, 1.0);\n metallic = clamp(metallic, 0.0, 1.0);\n\n float alphaRoughness = perceptualRoughness * perceptualRoughness;\n\n vec3 f0 = vec3(0.04);\n vec3 diffuseColor = baseColor.rgb * (vec3(1.0) - f0);\n diffuseColor *= 1.0 - metallic;\n vec3 specularColor = mix(f0, baseColor.rgb, metallic);\n float reflectance = max(max(specularColor.r, specularColor.g), specularColor.b);\n\n\n\n float reflectance90 = clamp(reflectance * 25.0, 0.0, 1.0);\n vec3 specularEnvironmentR0 = specularColor.rgb;\n vec3 specularEnvironmentR90 = vec3(1.0, 1.0, 1.0) * reflectance90;\n\n vec3 n = getNormal();\n vec3 v = normalize(u_Camera - pbr_vPosition);\n\n float NdotV = clamp(abs(dot(n, v)), 0.001, 1.0);\n vec3 reflection = -normalize(reflect(v, n));\n\n PBRInfo pbrInputs = PBRInfo(\n 0.0,\n NdotV,\n 0.0,\n 0.0,\n 0.0,\n perceptualRoughness,\n metallic,\n specularEnvironmentR0,\n specularEnvironmentR90,\n alphaRoughness,\n diffuseColor,\n specularColor,\n n,\n v\n );\n\n#ifdef USE_LIGHTS\n PBRInfo_setAmbientLight(pbrInputs);\n color += calculateFinalColor(pbrInputs, lighting_uAmbientLight.color);\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uDirectionalLightCount, i++) {\n if (i < lighting_uDirectionalLightCount) {\n PBRInfo_setDirectionalLight(pbrInputs, lighting_uDirectionalLight[i].direction);\n color += calculateFinalColor(pbrInputs, lighting_uDirectionalLight[i].color);\n }\n }\n SMART_FOR(int i = 0, i < MAX_LIGHTS, i < lighting_uPointLightCount, i++) {\n if (i < lighting_uPointLightCount) {\n PBRInfo_setPointLight(pbrInputs, lighting_uPointLight[i]);\n float attenuation = getPointLightAttenuation(lighting_uPointLight[i], distance(lighting_uPointLight[i].position, pbr_vPosition));\n color += calculateFinalColor(pbrInputs, lighting_uPointLight[i].color / attenuation);\n }\n }\n#endif\n#ifdef USE_IBL\n color += getIBLContribution(pbrInputs, n, reflection);\n#endif\n#ifdef HAS_OCCLUSIONMAP\n float ao = texture2D(u_OcclusionSampler, pbr_vUV).r;\n color = mix(color, color * ao, u_OcclusionStrength);\n#endif\n\n#ifdef HAS_EMISSIVEMAP\n vec3 emissive = SRGBtoLINEAR(texture2D(u_EmissiveSampler, pbr_vUV)).rgb * u_EmissiveFactor;\n color += emissive;\n#endif\n\n#ifdef PBR_DEBUG\n\n\n\n\n\n color = mix(color, baseColor.rgb, u_ScaleDiffBaseMR.y);\n color = mix(color, vec3(metallic), u_ScaleDiffBaseMR.z);\n color = mix(color, vec3(perceptualRoughness), u_ScaleDiffBaseMR.w);\n#endif\n\n }\n\n return vec4(pow(color,vec3(1.0/2.2)), baseColor.a);\n}\n",defines:{LIGHTING_FRAGMENT:1},dependencies:[n(359).a]},le=n(73)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return m}));var r=n(1903);function a(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}function i(e){for(var t in e)return!1;return!0}function o(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var a=0;a2&&void 0!==arguments[2])||arguments[2],r=l(e),a=e.drawingBufferWidth,i=e.drawingBufferHeight;return c(t,r,a,i,n)}function s(e){var t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function c(e,t,n,r,a){var i,o=d(e[0],t,n),l=f(e[1],t,r,a),u=d(e[0]+1,t,n),s=u===n-1?u:u-1;return u=f(e[1]+1,t,r,a),a?(i=l,l=u=0===u?u:u+1):i=u===r-1?u:u-1,{x:o,y:l,width:Math.max(s-o+1,1),height:Math.max(i-l+1,1)}}function d(e,t,n){return Math.min(Math.round(e*t),n-1)}function f(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}function p(e){return Boolean(e&&Number.isFinite(e._version))}function h(e){return Boolean(e&&2===e._version)}var m=new r.a({id:"luma.gl"})},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Add",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"AnchorWindow",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ArrowDown",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ArrowDownAlt",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ArrowDownSolid",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ArrowLeft",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ArrowRight",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ArrowUpSolid",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ArrowUpAlt",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ArrowUp",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"IconWrapper",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Bug",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Cancel",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Checkmark",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Clipboard",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Clock",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"Close",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"Copy",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"Crosshairs",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"Cube3d",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"CursorClick",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"DataTable",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"Db",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"Docs",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"DragNDrop",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"Email",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"Expand",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"EyeSeen",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"EyeUnseen",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"Files",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"FileType",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"FilterFunnel",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"FreeWindow",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"Gear",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"Hash",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"Histogram",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"Info",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"Layers",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"LeftArrow",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"Legend",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"LineChart",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"Logout",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"Login",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"MapIcon",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"Minus",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"Messages",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"Pause",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"Picture",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"Pin",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"Play",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"Reduce",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"Reset",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"Rocket",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"Save",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"Save2",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"Share",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"SquareSelect",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"Settings",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"Search",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"Split",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"Trash",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"Upload",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"VertDots",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"VertThreeDots",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"CodeAlt",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"Warning",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"DrawPolygon",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return _e.default}});var a=r(n(1284)),i=r(n(1286)),o=r(n(1287)),l=r(n(1288)),u=r(n(1289)),s=r(n(1290)),c=r(n(1291)),d=r(n(1292)),f=r(n(1293)),p=r(n(32)),h=r(n(1294)),m=r(n(1295)),g=r(n(1296)),v=r(n(1297)),y=r(n(1298)),b=r(n(1299)),A=r(n(1300)),_=r(n(1301)),O=r(n(1302)),E=r(n(1303)),x=r(n(1304)),M=r(n(1305)),w=r(n(679)),S=r(n(1306)),T=r(n(1307)),C=r(n(1308)),L=r(n(1309)),P=r(n(1310)),k=r(n(1311)),D=r(n(1312)),R=r(n(1313)),j=r(n(1314)),I=r(n(1315)),F=r(n(1316)),N=r(n(1317)),B=r(n(1318)),z=r(n(1319)),U=r(n(1320)),V=r(n(1321)),H=r(n(1322)),Y=r(n(1323)),W=r(n(1324)),G=r(n(1325)),q=r(n(1326)),X=r(n(1327)),Z=r(n(1328)),K=r(n(1329)),J=r(n(1330)),Q=r(n(1331)),$=r(n(1332)),ee=r(n(1333)),te=r(n(1334)),ne=r(n(1335)),re=r(n(1336)),ae=r(n(1337)),ie=r(n(1338)),oe=r(n(1339)),le=r(n(1340)),ue=r(n(1341)),se=r(n(1342)),ce=r(n(1343)),de=r(n(1344)),fe=r(n(1345)),pe=r(n(1346)),he=r(n(1347)),me=r(n(1348)),ge=r(n(1349)),ve=r(n(1350)),ye=r(n(1351)),be=r(n(1352)),Ae=r(n(1353)),_e=r(n(1354))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Add",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"AnchorWindow",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ArrowDown",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ArrowDownAlt",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ArrowDownSolid",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ArrowLeft",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ArrowRight",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ArrowUpSolid",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ArrowUpAlt",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ArrowUp",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Base",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"IconWrapper",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Bug",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Cancel",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Checkmark",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Clipboard",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Clock",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"Close",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"Copy",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"Crosshairs",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"Cube3d",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"CursorClick",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"DataTable",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"Db",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"Docs",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"DragNDrop",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"Email",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"Expand",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"EyeSeen",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"EyeUnseen",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"File",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"Files",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"FileType",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"FilterFunnel",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"FreeWindow",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"Gear",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"Hash",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"Histogram",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"Info",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"Layers",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"LeftArrow",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"Legend",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"LineChart",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"Logout",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"Login",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"MapIcon",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"Minus",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"Messages",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"Pause",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"Picture",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"Pin",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"Play",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"Reduce",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"Reset",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"Rocket",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"Save",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"Save2",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"Share",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"SquareSelect",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"Settings",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"Search",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"Split",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"Trash",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"Upload",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"VertDots",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"VertThreeDots",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"CodeAlt",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"Warning",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"DrawPolygon",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return _e.default}});var a=r(n(1589)),i=r(n(1590)),o=r(n(1591)),l=r(n(1592)),u=r(n(1593)),s=r(n(1594)),c=r(n(1595)),d=r(n(1596)),f=r(n(1597)),p=r(n(33)),h=r(n(1598)),m=r(n(1599)),g=r(n(1600)),v=r(n(1601)),y=r(n(1602)),b=r(n(1603)),A=r(n(1604)),_=r(n(1605)),O=r(n(1606)),E=r(n(1607)),x=r(n(1608)),M=r(n(1609)),w=r(n(985)),S=r(n(1610)),T=r(n(1611)),C=r(n(1612)),L=r(n(1613)),P=r(n(1614)),k=r(n(1615)),D=r(n(1616)),R=r(n(1617)),j=r(n(1618)),I=r(n(1619)),F=r(n(1620)),N=r(n(1621)),B=r(n(1622)),z=r(n(1623)),U=r(n(1624)),V=r(n(1625)),H=r(n(1626)),Y=r(n(1627)),W=r(n(1628)),G=r(n(1629)),q=r(n(1630)),X=r(n(1631)),Z=r(n(1632)),K=r(n(1633)),J=r(n(1634)),Q=r(n(1635)),$=r(n(1636)),ee=r(n(1637)),te=r(n(1638)),ne=r(n(1639)),re=r(n(1640)),ae=r(n(1641)),ie=r(n(1642)),oe=r(n(1643)),le=r(n(1644)),ue=r(n(1645)),se=r(n(1646)),ce=r(n(1647)),de=r(n(1648)),fe=r(n(1649)),pe=r(n(1650)),he=r(n(1651)),me=r(n(1652)),ge=r(n(1653)),ve=r(n(1654)),ye=r(n(1655)),be=r(n(1656)),Ae=r(n(1657)),_e=r(n(1658))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={};function a(e){var t=e&&e.lastIndexOf("/");return t>=0?e.substr(0,t):""}n.r(r),n.d(r,"dirname",(function(){return a}))},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(67))},function(e,t,n){"use strict";var r=n(1903);t.a=new r.a({id:"deck"})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"l",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"m",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"n",(function(){return m})),n.d(t,"o",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return y}));var r=n(35);function a(e){var t=new r.a(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(e,t,n,a){var i=new r.a(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=a,i}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function u(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function s(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function c(e){var t=e[0],n=e[1],r=e[2],a=e[3];return Math.hypot(t,n,r,a)}function d(e){var t=e[0],n=e[1],r=e[2],a=e[3];return t*t+n*n+r*r+a*a}function f(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=r*o,e[2]=a*o,e[3]=i*o,e}function p(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function h(e,t,n,r){var a=t[0],i=t[1],o=t[2],l=t[3];return e[0]=a+r*(n[0]-a),e[1]=i+r*(n[1]-i),e[2]=o+r*(n[2]-o),e[3]=l+r*(n[3]-l),e}function m(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,e}function g(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],l=n[1],u=n[2],s=n[3],c=s*r+l*i-u*a,d=s*a+u*r-o*i,f=s*i+o*a-l*r,p=-o*r-l*a-u*i;return e[0]=c*s+p*-o+d*-u-f*-l,e[1]=d*s+p*-l+f*-o-c*-u,e[2]=f*s+p*-u+c*-l-d*-o,e[3]=t[3],e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function y(e,t){var n=e[0],a=e[1],i=e[2],o=e[3],l=t[0],u=t[1],s=t[2],c=t[3];return Math.abs(n-l)<=r.b*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(a-u)<=r.b*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-c)<=r.b*Math.max(1,Math.abs(o),Math.abs(c))}var b,A;b=new r.a(4),r.a!=Float32Array&&(b[0]=0,b[1]=0,b[2]=0,b[3]=0),A=b},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"j",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"i",(function(){return m})),n.d(t,"k",(function(){return g}));var r=n(37),a=function(e){return"boolean"==typeof e},i=function(e){return"function"==typeof e},o=function(e){return null!==e&&"object"===Object(r.a)(e)},l=function(e){return o(e)&&e.constructor==={}.constructor},u=function(e){return o(e)&&i(e.then)},s=function(e){return e&&"function"==typeof e[Symbol.iterator]},c=function(e){return e&&"function"==typeof e[Symbol.asyncIterator]},d=function(e){return e&&i(e.next)},f=function(e){return"undefined"!=typeof Response&&e instanceof Response||e&&e.arrayBuffer&&e.text&&e.json},p=function(e){return"undefined"!=typeof Blob&&e instanceof Blob},h=function(e){return e&&"object"===Object(r.a)(e)&&e.isBuffer},m=function(e){return function(e){return"undefined"!=typeof ReadableStream&&e instanceof ReadableStream||o(e)&&i(e.tee)&&i(e.cancel)&&i(e.getReader)}(e)||function(e){return o(e)&&i(e.read)&&i(e.pipe)&&a(e.readable)}(e)},g=function(e){return function(e){return o(e)&&i(e.abort)&&i(e.getWriter)}(e)||function(e){return o(e)&&i(e.end)&&i(e.write)&&a(e.writable)}(e)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e===t}function a(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return a(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function o(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:u;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.precision,r=void 0===n?i.precision||4:n;return e=o(e),"".concat(parseFloat(e.toPrecision(r)))}function u(e){return Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView)}function s(e,t,n){if(u(e)){n=n||((a=e).clone?a.clone():new Array(a.length));for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"";if(r.b.debug&&!a(e,t))throw new Error("math.gl: ".concat(n," some fields set to invalid numbers'"));return e}var l={};function u(e,t){l[e]||(l[e]=!0,console.warn("".concat(e," has been removed in version ").concat(t,", see upgrade guide for more information")))}},function(e,t,n){var r=n(1265);e.exports=function(e,t){if(null==e)return{};var n,a,i=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"defineMessages",(function(){return pt})),n.d(t,"injectIntl",(function(){return pe})),n.d(t,"RawIntlProvider",(function(){return de})),n.d(t,"IntlContext",(function(){return fe})),n.d(t,"useIntl",(function(){return Ae})),n.d(t,"IntlProvider",(function(){return Ke})),n.d(t,"createIntl",(function(){return Ze})),n.d(t,"FormattedDate",(function(){return ht})),n.d(t,"FormattedTime",(function(){return mt})),n.d(t,"FormattedNumber",(function(){return gt})),n.d(t,"FormattedList",(function(){return vt})),n.d(t,"FormattedDisplayName",(function(){return yt})),n.d(t,"FormattedDateParts",(function(){return bt})),n.d(t,"FormattedTimeParts",(function(){return At})),n.d(t,"FormattedNumberParts",(function(){return ve})),n.d(t,"FormattedRelativeTime",(function(){return rt})),n.d(t,"FormattedPlural",(function(){return it})),n.d(t,"FormattedMessage",(function(){return ct})),n.d(t,"FormattedHTMLMessage",(function(){return ft})),n.d(t,"createIntlCache",(function(){return re}));var r,a=n(0);function i(e){return e.type===r.literal}function o(e){return e.type===r.argument}function l(e){return e.type===r.number}function u(e){return e.type===r.date}function s(e){return e.type===r.time}function c(e){return e.type===r.select}function d(e){return e.type===r.plural}function f(e){return e.type===r.pound}function p(e){return!(!e||"object"!=typeof e||0!==e.type)}function h(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(r||(r={}));var m,g=(m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0){for(t=1,n=1;t1&&"}"===e)},J=me("\n",!1),Q=ve("argNameOrNumber"),$=ve("argNumber"),ee=me("0",!1),te=/^[1-9]/,ne=ge([["1","9"]],!1,!1),re=/^[0-9]/,ae=ge([["0","9"]],!1,!1),ie=ve("argName"),oe=0,le=0,ue=[{line:1,column:1}],se=0,ce=[],de=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function fe(){return e.substring(le,oe)}function pe(){return be(le,oe)}function he(e,t){throw function(e,t){return new y(e,[],"",t)}(e,t=void 0!==t?t:be(le,oe))}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function ve(e){return{type:"other",description:e}}function ye(t){var n,r=ue[t];if(r)return r;for(n=t-1;!ue[n];)n--;for(r={line:(r=ue[n]).line,column:r.column};nse&&(se=oe,ce=[]),ce.push(e))}function _e(e,t,n){return new y(y.buildMessage(e,t),e,t,n)}function Oe(){return Ee()}function Ee(){var e,t;for(e=[],t=xe();t!==a;)e.push(t),t=xe();return e}function xe(){var t;return(t=function(){var e,t;e=oe,(t=Me())!==a&&(le=e,n=t,t=v({type:r.literal,value:n},We()));var n;return e=t}())===a&&(t=function(){var t,n,i,o;de++,t=oe,123===e.charCodeAt(oe)?(n="{",oe++):(n=a,0===de&&Ae(s));n!==a&&je()!==a&&(i=ze())!==a&&je()!==a?(125===e.charCodeAt(oe)?(o="}",oe++):(o=a,0===de&&Ae(c)),o!==a?(le=t,n=function(e){return v({type:r.argument,value:e},We())}(i),t=n):(oe=t,t=a)):(oe=t,t=a);de--,t===a&&(n=a,0===de&&Ae(u));return t}())===a&&(t=function(){var t;(t=function(){var t,n,r,i,o,l,u,d,f;t=oe,123===e.charCodeAt(oe)?(n="{",oe++):(n=a,0===de&&Ae(s));n!==a&&je()!==a&&(r=ze())!==a&&je()!==a?(44===e.charCodeAt(oe)?(i=",",oe++):(i=a,0===de&&Ae(O)),i!==a&&je()!==a?("number"===e.substr(oe,6)?(o="number",oe+=6):(o=a,0===de&&Ae(E)),o!==a&&je()!==a?(l=oe,44===e.charCodeAt(oe)?(u=",",oe++):(u=a,0===de&&Ae(O)),u!==a&&(d=je())!==a&&(f=function(){var t,n,r;t=oe,"::"===e.substr(oe,2)?(n="::",oe+=2):(n=a,0===de&&Ae(A));n!==a&&(r=function(){var e,t,n;if(e=oe,t=[],(n=Te())!==a)for(;n!==a;)t.push(n),n=Te();else t=a;t!==a&&(le=e,t=v({type:0,tokens:t},We()));return e=t}())!==a?(le=t,t=n=r):(oe=t,t=a);t===a&&(t=oe,le=oe,He.push("numberArgStyle"),(n=(n=!0)?void 0:a)!==a&&(r=Me())!==a?(le=t,n=_(r),t=n):(oe=t,t=a));return t}())!==a?l=u=[u,d,f]:(oe=l,l=a),l===a&&(l=null),l!==a&&(u=je())!==a?(125===e.charCodeAt(oe)?(d="}",oe++):(d=a,0===de&&Ae(c)),d!==a?(le=t,n=x(r,o,l),t=n):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a);return t}())===a&&(t=function(){var t,n,r,i,o,l,u,d,f;t=oe,123===e.charCodeAt(oe)?(n="{",oe++):(n=a,0===de&&Ae(s));n!==a&&je()!==a&&(r=ze())!==a&&je()!==a?(44===e.charCodeAt(oe)?(i=",",oe++):(i=a,0===de&&Ae(O)),i!==a&&je()!==a?("date"===e.substr(oe,4)?(o="date",oe+=4):(o=a,0===de&&Ae(k)),o===a&&("time"===e.substr(oe,4)?(o="time",oe+=4):(o=a,0===de&&Ae(D))),o!==a&&je()!==a?(l=oe,44===e.charCodeAt(oe)?(u=",",oe++):(u=a,0===de&&Ae(O)),u!==a&&(d=je())!==a&&(f=function(){var t,n,r;t=oe,"::"===e.substr(oe,2)?(n="::",oe+=2):(n=a,0===de&&Ae(A));n!==a&&(r=function(){var t,n,r,i;t=oe,n=oe,r=[],(i=Ce())===a&&(i=Le());if(i!==a)for(;i!==a;)r.push(i),(i=Ce())===a&&(i=Le());else r=a;n=r!==a?e.substring(n,oe):r;n!==a&&(le=t,n=v({type:1,pattern:n},We()));return t=n}())!==a?(le=t,t=n=r):(oe=t,t=a);t===a&&(t=oe,le=oe,He.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:a)!==a&&(r=Me())!==a?(le=t,n=_(r),t=n):(oe=t,t=a));return t}())!==a?l=u=[u,d,f]:(oe=l,l=a),l===a&&(l=null),l!==a&&(u=je())!==a?(125===e.charCodeAt(oe)?(d="}",oe++):(d=a,0===de&&Ae(c)),d!==a?(le=t,n=x(r,o,l),t=n):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a);return t}());return t}())===a&&(t=function(){var t,n,i,o,l,u,d,f,p,h,m;t=oe,123===e.charCodeAt(oe)?(n="{",oe++):(n=a,0===de&&Ae(s));if(n!==a)if(je()!==a)if((i=ze())!==a)if(je()!==a)if(44===e.charCodeAt(oe)?(o=",",oe++):(o=a,0===de&&Ae(O)),o!==a)if(je()!==a)if("plural"===e.substr(oe,6)?(l="plural",oe+=6):(l=a,0===de&&Ae(R)),l===a&&("selectordinal"===e.substr(oe,13)?(l="selectordinal",oe+=13):(l=a,0===de&&Ae(j))),l!==a)if(je()!==a)if(44===e.charCodeAt(oe)?(u=",",oe++):(u=a,0===de&&Ae(O)),u!==a)if(je()!==a)if(d=oe,"offset:"===e.substr(oe,7)?(f="offset:",oe+=7):(f=a,0===de&&Ae(I)),f!==a&&(p=je())!==a&&(h=Ie())!==a?d=f=[f,p,h]:(oe=d,d=a),d===a&&(d=null),d!==a)if((f=je())!==a){if(p=[],(h=ke())!==a)for(;h!==a;)p.push(h),h=ke();else p=a;p!==a&&(h=je())!==a?(125===e.charCodeAt(oe)?(m="}",oe++):(m=a,0===de&&Ae(c)),m!==a?(le=t,n=function(e,t,n,a){return v({type:r.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:a.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&he('Duplicate option "'+n+'" in plural element: "'+fe()+'"',pe()),e[n]={value:r,location:a},e}),{})},We())}(i,l,d,p),t=n):(oe=t,t=a)):(oe=t,t=a)}else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;return t}())===a&&(t=function(){var t,n,i,o,l,u,d,f,p;t=oe,123===e.charCodeAt(oe)?(n="{",oe++):(n=a,0===de&&Ae(s));if(n!==a)if(je()!==a)if((i=ze())!==a)if(je()!==a)if(44===e.charCodeAt(oe)?(o=",",oe++):(o=a,0===de&&Ae(O)),o!==a)if(je()!==a)if("select"===e.substr(oe,6)?(l="select",oe+=6):(l=a,0===de&&Ae(F)),l!==a)if(je()!==a)if(44===e.charCodeAt(oe)?(u=",",oe++):(u=a,0===de&&Ae(O)),u!==a)if(je()!==a){if(d=[],(f=Pe())!==a)for(;f!==a;)d.push(f),f=Pe();else d=a;d!==a&&(f=je())!==a?(125===e.charCodeAt(oe)?(p="}",oe++):(p=a,0===de&&Ae(c)),p!==a?(le=t,n=function(e,t){return v({type:r.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,a=t.location;return n in e&&he('Duplicate option "'+n+'" in select element: "'+fe()+'"',pe()),e[n]={value:r,location:a},e}),{})},We())}(i,d),t=n):(oe=t,t=a)):(oe=t,t=a)}else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;else oe=t,t=a;return t}())===a&&(t=function(){var t,n;t=oe,35===e.charCodeAt(oe)?(n="#",oe++):(n=a,0===de&&Ae(l));n!==a&&(le=t,n=v({type:r.pound},We()));return t=n}()),t}function Me(){var e,t,n;if(e=oe,t=[],(n=Fe())===a&&(n=Ne())===a&&(n=Be()),n!==a)for(;n!==a;)t.push(n),(n=Fe())===a&&(n=Ne())===a&&(n=Be());else t=a;return t!==a&&(le=e,t=t.join("")),e=t}function we(){var t,n,r,i,o;if(de++,t=oe,n=[],r=oe,i=oe,de++,(o=De())===a&&(f.test(e.charAt(oe))?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(p))),de--,o===a?i=void 0:(oe=i,i=a),i!==a?(e.length>oe?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(h)),o!==a?r=i=[i,o]:(oe=r,r=a)):(oe=r,r=a),r!==a)for(;r!==a;)n.push(r),r=oe,i=oe,de++,(o=De())===a&&(f.test(e.charAt(oe))?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(p))),de--,o===a?i=void 0:(oe=i,i=a),i!==a?(e.length>oe?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(h)),o!==a?r=i=[i,o]:(oe=r,r=a)):(oe=r,r=a);else n=a;return t=n!==a?e.substring(t,oe):n,de--,t===a&&(n=a,0===de&&Ae(d)),t}function Se(){var t,n,r;return de++,t=oe,47===e.charCodeAt(oe)?(n="/",oe++):(n=a,0===de&&Ae(g)),n!==a&&(r=we())!==a?(le=t,t=n=r):(oe=t,t=a),de--,t===a&&(n=a,0===de&&Ae(m)),t}function Te(){var e,t,n,r;if(de++,e=oe,je()!==a)if((t=we())!==a){for(n=[],r=Se();r!==a;)n.push(r),r=Se();n!==a?(le=e,e=function(e,t){return{stem:e,options:t}}(t,n)):(oe=e,e=a)}else oe=e,e=a;else oe=e,e=a;return de--,e===a&&(a,0===de&&Ae(b)),e}function Ce(){var t,n,r,i;if(t=oe,39===e.charCodeAt(oe)?(n="'",oe++):(n=a,0===de&&Ae(M)),n!==a){if(r=[],(i=Fe())===a&&(w.test(e.charAt(oe))?(i=e.charAt(oe),oe++):(i=a,0===de&&Ae(S))),i!==a)for(;i!==a;)r.push(i),(i=Fe())===a&&(w.test(e.charAt(oe))?(i=e.charAt(oe),oe++):(i=a,0===de&&Ae(S)));else r=a;r!==a?(39===e.charCodeAt(oe)?(i="'",oe++):(i=a,0===de&&Ae(M)),i!==a?t=n=[n,r,i]:(oe=t,t=a)):(oe=t,t=a)}else oe=t,t=a;if(t===a)if(t=[],(n=Fe())===a&&(T.test(e.charAt(oe))?(n=e.charAt(oe),oe++):(n=a,0===de&&Ae(C))),n!==a)for(;n!==a;)t.push(n),(n=Fe())===a&&(T.test(e.charAt(oe))?(n=e.charAt(oe),oe++):(n=a,0===de&&Ae(C)));else t=a;return t}function Le(){var t,n;if(t=[],L.test(e.charAt(oe))?(n=e.charAt(oe),oe++):(n=a,0===de&&Ae(P)),n!==a)for(;n!==a;)t.push(n),L.test(e.charAt(oe))?(n=e.charAt(oe),oe++):(n=a,0===de&&Ae(P));else t=a;return t}function Pe(){var t,n,r,i,o;return t=oe,je()!==a&&(n=Ve())!==a&&je()!==a?(123===e.charCodeAt(oe)?(r="{",oe++):(r=a,0===de&&Ae(s)),r!==a?(le=oe,He.push("select"),(!0?void 0:a)!==a&&(i=Ee())!==a?(125===e.charCodeAt(oe)?(o="}",oe++):(o=a,0===de&&Ae(c)),o!==a?(le=t,t=function(e,t){return He.pop(),v({id:e,value:t},We())}(n,i)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a),t}function ke(){var t,n,r,i,o;return t=oe,je()!==a&&(n=function(){var t,n,r,i;return t=oe,n=oe,61===e.charCodeAt(oe)?(r="=",oe++):(r=a,0===de&&Ae(N)),r!==a&&(i=Ie())!==a?n=r=[r,i]:(oe=n,n=a),(t=n!==a?e.substring(t,oe):n)===a&&(t=Ve()),t}())!==a&&je()!==a?(123===e.charCodeAt(oe)?(r="{",oe++):(r=a,0===de&&Ae(s)),r!==a?(le=oe,He.push("plural"),(!0?void 0:a)!==a&&(i=Ee())!==a?(125===e.charCodeAt(oe)?(o="}",oe++):(o=a,0===de&&Ae(c)),o!==a?(le=t,t=function(e,t){return He.pop(),v({id:e,value:t},We())}(n,i)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a)):(oe=t,t=a),t}function De(){var t;return de++,z.test(e.charAt(oe))?(t=e.charAt(oe),oe++):(t=a,0===de&&Ae(U)),de--,t===a&&(a,0===de&&Ae(B)),t}function Re(){var t;return de++,H.test(e.charAt(oe))?(t=e.charAt(oe),oe++):(t=a,0===de&&Ae(Y)),de--,t===a&&(a,0===de&&Ae(V)),t}function je(){var t,n,r;for(de++,t=oe,n=[],r=De();r!==a;)n.push(r),r=De();return t=n!==a?e.substring(t,oe):n,de--,t===a&&(n=a,0===de&&Ae(W)),t}function Ie(){var t,n,r,i,o;return de++,t=oe,45===e.charCodeAt(oe)?(n="-",oe++):(n=a,0===de&&Ae(q)),n===a&&(n=null),n!==a&&(r=Ue())!==a?(le=t,i=n,t=n=(o=r)?i?-o:o:0):(oe=t,t=a),de--,t===a&&(n=a,0===de&&Ae(G)),t}function Fe(){var t,n;return de++,t=oe,"''"===e.substr(oe,2)?(n="''",oe+=2):(n=a,0===de&&Ae(Z)),n!==a&&(le=t,n="'"),de--,(t=n)===a&&(n=a,0===de&&Ae(X)),t}function Ne(){var t,n,r,i,o,l;if(t=oe,39===e.charCodeAt(oe)?(n="'",oe++):(n=a,0===de&&Ae(M)),n!==a)if((r=function(){var t,n,r,i;t=oe,n=oe,e.length>oe?(r=e.charAt(oe),oe++):(r=a,0===de&&Ae(h));r!==a?(le=oe,(i=(i="{"===(o=r)||"}"===o||Ye()&&"#"===o)?void 0:a)!==a?n=r=[r,i]:(oe=n,n=a)):(oe=n,n=a);var o;t=n!==a?e.substring(t,oe):n;return t}())!==a){for(i=oe,o=[],"''"===e.substr(oe,2)?(l="''",oe+=2):(l=a,0===de&&Ae(Z)),l===a&&(w.test(e.charAt(oe))?(l=e.charAt(oe),oe++):(l=a,0===de&&Ae(S)));l!==a;)o.push(l),"''"===e.substr(oe,2)?(l="''",oe+=2):(l=a,0===de&&Ae(Z)),l===a&&(w.test(e.charAt(oe))?(l=e.charAt(oe),oe++):(l=a,0===de&&Ae(S)));(i=o!==a?e.substring(i,oe):o)!==a?(39===e.charCodeAt(oe)?(o="'",oe++):(o=a,0===de&&Ae(M)),o===a&&(o=null),o!==a?(le=t,t=n=r+i.replace("''","'")):(oe=t,t=a)):(oe=t,t=a)}else oe=t,t=a;else oe=t,t=a;return t}function Be(){var t,n,r,i;return t=oe,n=oe,e.length>oe?(r=e.charAt(oe),oe++):(r=a,0===de&&Ae(h)),r!==a?(le=oe,(i=(i=K(r))?void 0:a)!==a?n=r=[r,i]:(oe=n,n=a)):(oe=n,n=a),n===a&&(10===e.charCodeAt(oe)?(n="\n",oe++):(n=a,0===de&&Ae(J))),t=n!==a?e.substring(t,oe):n}function ze(){var t,n;return de++,t=oe,(n=Ue())===a&&(n=Ve()),t=n!==a?e.substring(t,oe):n,de--,t===a&&(n=a,0===de&&Ae(Q)),t}function Ue(){var t,n,r,i,o;if(de++,t=oe,48===e.charCodeAt(oe)?(n="0",oe++):(n=a,0===de&&Ae(ee)),n!==a&&(le=t,n=0),(t=n)===a){if(t=oe,n=oe,te.test(e.charAt(oe))?(r=e.charAt(oe),oe++):(r=a,0===de&&Ae(ne)),r!==a){for(i=[],re.test(e.charAt(oe))?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(ae));o!==a;)i.push(o),re.test(e.charAt(oe))?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(ae));i!==a?n=r=[r,i]:(oe=n,n=a)}else oe=n,n=a;n!==a&&(le=t,n=parseInt(n.join(""),10)),t=n}return de--,t===a&&(n=a,0===de&&Ae($)),t}function Ve(){var t,n,r,i,o;if(de++,t=oe,n=[],r=oe,i=oe,de++,(o=De())===a&&(o=Re()),de--,o===a?i=void 0:(oe=i,i=a),i!==a?(e.length>oe?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(h)),o!==a?r=i=[i,o]:(oe=r,r=a)):(oe=r,r=a),r!==a)for(;r!==a;)n.push(r),r=oe,i=oe,de++,(o=De())===a&&(o=Re()),de--,o===a?i=void 0:(oe=i,i=a),i!==a?(e.length>oe?(o=e.charAt(oe),oe++):(o=a,0===de&&Ae(h)),o!==a?r=i=[i,o]:(oe=r,r=a)):(oe=r,r=a);else n=a;return t=n!==a?e.substring(t,oe):n,de--,t===a&&(n=a,0===de&&Ae(ie)),t}var He=["root"];function Ye(){return"plural"===He[He.length-1]}function We(){return t&&t.captureLocation?{location:pe()}:{}}if((n=o())!==a&&oe===e.length)return n;throw n!==a&&oe1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(C,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),a.options.length&&(t=w(w({},t),P(a.options[0])))}else if(L.test(a.stem))t=w(w({},t),P(a.stem));else{var i=k(a.stem);i&&(t=w(w({},t),i))}}return t}var j,I=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),F=function(){for(var e=0,t=0,n=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,Y=Date.now()+"@@",W=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function G(e,t,n,r,a,i){var o=B(e,t,n,r,a,void 0,i),l={},u=o.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++U;return l[n]=t.value,e+"@@"+n+"@@"}),"");if(!H.test(u))return V(u,l);if(!a)throw new N("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new N("Cannot format XML message without DOMParser");j||(j=new DOMParser);var s=j.parseFromString(''+u+"","text/html").getElementById(Y);if(!s)throw new N("Malformed HTML message "+u);var c=Object.keys(a).filter((function(e){return!!s.getElementsByTagName(e).length}));if(!c.length)return V(u,l);var d=c.filter((function(e){return e!==e.toLowerCase()}));if(d.length)throw new N("HTML tag must be lowercased but the following tags are not: "+d.join(", "));return Array.prototype.slice.call(s.childNodes).reduce((function(e,t){return e.concat(function e(t,n,r){var a=t.tagName,i=t.outerHTML,o=t.textContent,l=t.childNodes;if(!a)return V(o||"",n);a=a.toLowerCase();var u=~W.indexOf(a),s=r[a];if(s&&u)throw new N(a+" is a self-closing tag and can not be used, please use another tag name.");if(!l.length)return[i];var c=Array.prototype.slice.call(l).reduce((function(t,a){return t.concat(e(a,n,r))}),[]);return s?"function"==typeof s?[s.apply(void 0,c)]:[s]:F(["<"+a+">"],c,[""])}(t,l,a))}),[])}var q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<"']/g;function $(e,t,n={}){return t.reduce((t,r)=>(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}function ee(e){K(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function te(e,t){return`[React Intl] ${e}${t?"\n"+t.stack:""}`}const ne={formats:{},messages:{},timeZone:void 0,textComponent:a.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function re(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ae(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}){const t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:M(Intl.DateTimeFormat,e.dateTime),getNumberFormat:M(Intl.NumberFormat,e.number),getMessageFormat:M(Z,e.message),getRelativeTimeFormat:M(t,e.relativeTime),getPluralRules:M(Intl.PluralRules,e.pluralRules),getListFormat:M(n,e.list),getDisplayNames:M(r,e.displayNames)}}function ie(e,t,n,r){const a=e&&e[t];let i;if(a&&(i=a[n]),i)return i;r(te(`No ${t} format named: ${n}`))}var oe=n(657);const le=n.n(oe).a||oe;const ue=a.createContext(null),{Consumer:se,Provider:ce}=ue,de=ce,fe=ue;function pe(e,t){const{intlPropName:n="intl",forwardRef:r=!1,enforceContext:i=!0}=t||{},o=t=>a.createElement(se,null,o=>(i&&ee(o),a.createElement(e,Object.assign({},t,{[n]:o},{ref:r?t.forwardedRef:null}))));var l;return o.displayName=`injectIntl(${l=e,l.displayName||l.name||"Component"})`,o.WrappedComponent=e,le(r?a.forwardRef((e,t)=>a.createElement(o,Object.assign({},e,{forwardedRef:t}))):o,e)}var he,me,ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);aa.createElement(fe.Consumer,null,t=>{ee(t);const{value:n,children:r}=e,a=ge(e,["value","children"]);return r(t.formatNumberToParts(n,a))});function ye(e){const t=t=>a.createElement(fe.Consumer,null,n=>{ee(n);const{value:r,children:a}=t,i=ge(t,["value","children"]),o="string"==typeof r?new Date(r||0):r;return a("formatDate"===e?n.formatDateToParts(o,i):n.formatTimeToParts(o,i))});return t.displayName=me[e],t}function be(e){const t=t=>a.createElement(fe.Consumer,null,n=>{ee(n);const{value:r,children:i}=t,o=ge(t,["value","children"]),l=n[e](r,o);if("function"==typeof i)return i(l);const u=n.textComponent||a.Fragment;return a.createElement(u,null,l)});return t.displayName=he[e],t}function Ae(){const e=Object(a.useContext)(fe);return ee(e),e}ve.displayName="FormattedNumberParts";const _e=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function Oe({locale:e,formats:t,onError:n},r,a={}){const{format:i}=a,o=i&&ie(t,"number",i,n)||{};return r(e,$(a,_e,o))}function Ee(e,t,n,r={}){try{return Oe(e,t,r).format(n)}catch(t){e.onError(te("Error formatting number.",t))}return String(n)}function xe(e,t,n,r={}){try{return Oe(e,t,r).formatToParts(n)}catch(t){e.onError(te("Error formatting number.",t))}return[]}const Me=["numeric","style"];function we(e,t,n,r,a={}){r||(r="second");Intl.RelativeTimeFormat||e.onError(te('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function({locale:e,formats:t,onError:n},r,a={}){const{format:i}=a,o=!!i&&ie(t,"relative",i,n)||{};return r(e,$(a,Me,o))}(e,t,a).format(n,r)}catch(t){e.onError(te("Error formatting relative time.",t))}return String(n)}const Se=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Te({locale:e,formats:t,onError:n,timeZone:r},a,i,o={}){const{format:l}=o,u=Object.assign(Object.assign({},r&&{timeZone:r}),l&&ie(t,a,l,n));let s=$(o,Se,u);return"time"!==a||s.hour||s.minute||s.second||(s=Object.assign(Object.assign({},s),{hour:"numeric",minute:"numeric"})),i(e,s)}function Ce(e,t,n,r={}){const a="string"==typeof n?new Date(n||0):n;try{return Te(e,"date",t,r).format(a)}catch(t){e.onError(te("Error formatting date.",t))}return String(a)}function Le(e,t,n,r={}){const a="string"==typeof n?new Date(n||0):n;try{return Te(e,"time",t,r).format(a)}catch(t){e.onError(te("Error formatting time.",t))}return String(a)}function Pe(e,t,n,r={}){const a="string"==typeof n?new Date(n||0):n;try{return Te(e,"date",t,r).formatToParts(a)}catch(t){e.onError(te("Error formatting date.",t))}return[]}function ke(e,t,n,r={}){const a="string"==typeof n?new Date(n||0):n;try{return Te(e,"time",t,r).formatToParts(a)}catch(t){e.onError(te("Error formatting time.",t))}return[]}const De=["localeMatcher","type"];function Re({locale:e,onError:t},n,r,a={}){Intl.PluralRules||t(te('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));const i=$(a,De);try{return n(e,i).select(r)}catch(e){t(te("Error formatting plural.",e))}return"other"}function je(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Object.assign({timeZone:t},e[r]),n),{})}function Ie(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,r)=>(n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n),{})}function Fe(e,t){if(!t)return e;const n=Z.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:Ie(je(n.date,t),je(e.date||{},t)),time:Ie(je(n.time,t),je(e.time||{},t))})}function Ne({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:i,onError:o,timeZone:l},u,s={id:""},c={}){const{id:d,defaultMessage:f}=s;K(!!d,"[React Intl] An `id` must be provided to format a message.");const p=n&&n[String(d)];t=Fe(t,l),i=Fe(i,l);let h=[];if(p)try{h=u.getMessageFormat(p,e,t,{formatters:u}).formatHTMLMessage(c)}catch(t){o(te(`Error formatting message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":""),t))}else(!f||e&&e.toLowerCase()!==r.toLowerCase())&&o(te(`Missing message: "${d}" for locale: "${e}"`+(f?", using default message as fallback.":"")));if(!h.length&&f)try{h=u.getMessageFormat(f,r,i).formatHTMLMessage(c)}catch(e){o(te(`Error formatting the default message for: "${d}"`,e))}return h.length?1===h.length&&"string"==typeof h[0]?h[0]||f||String(d):(m=h,a.createElement(a.Fragment,null,...m)):(o(te(`Cannot format message: "${d}", using message ${p||f?"source":"id"} as fallback.`)),"string"==typeof p?p||f||String(d):f||String(d));var m}function Be(e,t,n={id:""},r={}){return Ne(e,t,n,Object.keys(r).reduce((e,t)=>{const n=r[t];return e[t]="string"==typeof n?(""+n).replace(Q,e=>J[e.charCodeAt(0)]):n,e},{}))}var ze=n(315),Ue=n.n(ze);const Ve=["localeMatcher","type","style"],He=Date.now();function Ye({locale:e,onError:t},n,r,a={}){Intl.ListFormat||t(te('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));const i=$(a,Ve);try{const t={},a=r.map((e,n)=>{if("object"==typeof e){const r=function(e){return`${He}_${e}_${He}`}(n);return t[r]=e,r}return String(e)});if(!Object.keys(t).length)return n(e,i).format(a);return n(e,i).formatToParts(a).reduce((e,n)=>{const r=n.value;return t[r]?e.push(t[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[])}catch(e){t(te("Error formatting list.",e))}return r}const We=["localeMatcher","style","type","fallback"];function Ge({locale:e,onError:t},n,r,a={}){Intl.DisplayNames||t(te('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));const i=$(a,We);try{return n(e,i).of(r)}catch(e){t(te("Error formatting display name.",e))}}const qe=Ue.a||ze;function Xe(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function Ze(e,t){const n=ae(t),r=Object.assign(Object.assign({},ne),e),{locale:a,defaultLocale:i,onError:o}=r;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(te(`Missing locale data for locale: "${a}" in Intl.NumberFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(te(`Missing locale data for locale: "${a}" in Intl.DateTimeFormat. Using default locale: "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):(o&&o(te(`"locale" was not configured, using "${i}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`)),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:Ee.bind(null,r,n.getNumberFormat),formatNumberToParts:xe.bind(null,r,n.getNumberFormat),formatRelativeTime:we.bind(null,r,n.getRelativeTimeFormat),formatDate:Ce.bind(null,r,n.getDateTimeFormat),formatDateToParts:Pe.bind(null,r,n.getDateTimeFormat),formatTime:Le.bind(null,r,n.getDateTimeFormat),formatTimeToParts:ke.bind(null,r,n.getDateTimeFormat),formatPlural:Re.bind(null,r,n.getPluralRules),formatMessage:Ne.bind(null,r,n),formatHTMLMessage:Be.bind(null,r,n),formatList:Ye.bind(null,r,n.getListFormat),formatDisplayName:Ge.bind(null,r,n.getDisplayNames)})}class Ke extends a.PureComponent{constructor(){super(...arguments),this.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},this.state={cache:this.cache,intl:Ze(Xe(this.props),this.cache),prevConfig:Xe(this.props)}}static getDerivedStateFromProps(e,{prevConfig:t,cache:n}){const r=Xe(e);return qe(t,r)?null:{intl:Ze(r,n),prevConfig:r}}render(){return ee(this.state.intl),a.createElement(de,{value:this.state.intl},this.props.children)}}Ke.displayName="IntlProvider",Ke.defaultProps=ne;function Je(e){const t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":"day"}function Qe(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;default:return 86400}}function $e(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return 3600*e}}const et=["second","minute","hour"];function tt(e="second"){return et.includes(e)}class nt extends a.PureComponent{constructor(e){super(e),this._updateTimer=null,this.state={prevUnit:this.props.unit,prevValue:this.props.value,currentValueInSeconds:tt(this.props.unit)?$e(this.props.value,this.props.unit):0},K(!e.updateIntervalInSeconds||!(!e.updateIntervalInSeconds||!tt(e.unit)),"Cannot schedule update with unit longer than hour")}scheduleNextUpdate({updateIntervalInSeconds:e,unit:t},{currentValueInSeconds:n}){if(clearTimeout(this._updateTimer),this._updateTimer=null,!e||!tt(t))return;const r=n-e,a=Je(r);if("day"===a)return;const i=Qe(a),o=r-r%i,l=o>=n?o-i:o,u=Math.abs(l-n);this._updateTimer=setTimeout(()=>this.setState({currentValueInSeconds:l}),1e3*u)}componentDidMount(){this.scheduleNextUpdate(this.props,this.state)}componentDidUpdate(){this.scheduleNextUpdate(this.props,this.state)}componentWillUnmount(){clearTimeout(this._updateTimer),this._updateTimer=null}static getDerivedStateFromProps(e,t){return e.unit!==t.prevUnit||e.value!==t.prevValue?{prevValue:e.value,prevUnit:e.unit,currentValueInSeconds:tt(e.unit)?$e(e.value,e.unit):0}:null}render(){return a.createElement(fe.Consumer,null,e=>{ee(e);const{formatRelativeTime:t,textComponent:n}=e,{children:r,value:i,unit:o,updateIntervalInSeconds:l}=this.props,{currentValueInSeconds:u}=this.state;let s=i||0,c=o;if(tt(o)&&"number"==typeof u&&l){c=Je(u);const e=Qe(c);s=Math.round(u/e)}const d=t(s,c,Object.assign({},this.props));return"function"==typeof r?r(d):n?a.createElement(n,null,d):d})}}nt.displayName="FormattedRelativeTime",nt.defaultProps={value:0,unit:"second"};var rt=nt;const at=e=>{const{value:t,other:n,children:r,intl:{formatPlural:i,textComponent:o}}=e,l=e[i(t,e)]||n;return"function"==typeof r?r(l):o?a.createElement(o,null,l):l};at.defaultProps={type:"cardinal"},at.displayName="FormattedPlural";var it=pe(at),ot=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);aNe(Object.assign(Object.assign({},ne),{locale:"en"}),ae(),e,t);class st extends a.Component{shouldComponentUpdate(e){const t=this.props,{values:n}=t,r=ot(t,["values"]),{values:a}=e,i=ot(e,["values"]);return!lt(a,n)||!lt(r,i)}render(){return a.createElement(fe.Consumer,null,e=>{this.props.defaultMessage||ee(e);const{formatMessage:t=ut,textComponent:n=a.Fragment}=e||{},{id:r,description:i,defaultMessage:o,values:l,children:u,tagName:s=n}=this.props;let c=t({id:r,description:i,defaultMessage:o},l);return Array.isArray(c)||(c=[c]),"function"==typeof u?u(...c):s?a.createElement(s,null,...c):c})}}st.displayName="FormattedMessage",st.defaultProps={values:{}};var ct=st;class dt extends ct{render(){return a.createElement(fe.Consumer,null,e=>{this.props.defaultMessage||ee(e);const{formatHTMLMessage:t,textComponent:n}=e,{id:r,description:i,defaultMessage:o,values:l,children:u}=this.props;let{tagName:s}=this.props;s||(s=n||"span");const c=t({id:r,description:i,defaultMessage:o},l);if("function"==typeof u)return u(c);const d={__html:c};return a.createElement(s,{dangerouslySetInnerHTML:d})})}}dt.displayName="FormattedHTMLMessage",dt.defaultProps=Object.assign(Object.assign({},ct.defaultProps),{tagName:"span"});var ft=dt;function pt(e){return e}const ht=be("formatDate"),mt=be("formatTime"),gt=be("formatNumber"),vt=be("formatList"),yt=be("formatDisplayName"),bt=ye("formatDate"),At=ye("formatTime")},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.unique=function(e){var t=[];return new Set(e).forEach((function(e){h(e)&&t.push(e)})),t},t.findMapBounds=function(e){var t=e.reduce((function(e,t){return t.meta&&t.meta.bounds&&e.push(t.meta.bounds),e}),[]);if(0===t.length)return null;return t.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.min(e[1],t[1]),Math.max(e[2],t[2]),Math.max(e[3],t[3])]}),[180,90,-180,-90])},t.getLatLngBounds=function(e,t,n){var r=e.map((function(e){return Array.isArray(e)&&e[t]})).filter(Number.isFinite).sort(v);if(!r.length)return null;return[Math.max(r[0],n[0]),Math.min(r[r.length-1],n[1])]},t.clamp=function(e,t){var n=(0,o.default)(e,2),r=n[0],a=n[1];return t<=r?r:t>=a?a:t},t.getSampleData=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=Math.max(Math.floor(e.length/t),1),a=[],i=0;i0?1:0)*(Math.sign(e)*(10/Math.pow(100,t))))/n).toFixed(t)}function b(e){isNaN(e)&&((0,l.default)("step is not a number"),(0,l.default)(e));var t=e.toString().split(".");return 1===t.length?0:t[1].length}function A(e,t){var n=(0,d.bisectLeft)(t,e);return 0===n?t[n]:n===t.length?t[n-1]:t[t[n]-e=a?a:t},t.getSampleData=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=Math.max(Math.floor(e.length/t),1),a=[],i=0;i0?1:0)*(Math.sign(e)*(10/Math.pow(100,t))))/n).toFixed(t)}function b(e){isNaN(e)&&((0,l.default)("step is not a number"),(0,l.default)(e));var t=e.toString().split(".");return 1===t.length?0:t[1].length}function A(e,t){var n=(0,d.bisectLeft)(t,e);return 0===n?t[n]:n===t.length?t[n-1]:t[t[n]-eo(e,t[r],n)):n*t+(1-n)*e}function l(e,t,n){const a=r.EPSILON;n&&(r.EPSILON=n);try{if(e===t)return!0;if(i(e)&&i(t)){if(e.length!==t.length)return!1;for(let n=0;n0&&h>0&&(l[d++]=c-i,l[d++]=c-i-1,l[d++]=c-1,l[d++]=c-i,l[d++]=c-1,l[d++]=c),c++}return{vertexCount:o,positions:s,indices:l,texCoords:u}}function _(e,t,n){return Object(v.c)(Object(v.c)(e[0],e[1],n),Object(v.c)(e[3],e[2],n),t)}var O,E=(O={},Object(c.a)(O,10241,9987),Object(c.a)(O,10240,9729),Object(c.a)(O,10242,33071),Object(c.a)(O,10243,33071),O),x=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getShaders",value:function(){return Object(u.a)(Object(l.a)(t.prototype),"getShaders",this).call(this,{vs:"\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:"\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n return mix(transparentColor, vec4(color, 1.0), alpha);\n}\n\nvoid main(void) {\n vec4 bitmapColor = texture2D(bitmapTexture, vTexCoord);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = vTexCoord;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[d.a,f.a]})}},{key:"initializeState",value:function(){var e=this,t=this.getAttributeManager();t.remove(["instancePickingColors"]);t.add({indices:{size:1,isIndexed:!0,update:function(t){return t.value=e.state.mesh.indices},noAlloc:!0},positions:{size:3,type:5130,fp64:this.use64bitPositions(),update:function(t){return t.value=e.state.mesh.positions},noAlloc:!0},texCoords:{size:2,update:function(t){return t.value=e.state.mesh.texCoords},noAlloc:!0}})}},{key:"updateState",value:function(e){var t=e.props,n=e.oldProps;if(e.changeFlags.extensionsChanged){var r=this.context.gl;this.state.model&&this.state.model.delete(),this.setState({model:this._getModel(r)}),this.getAttributeManager().invalidateAll()}t.image!==n.image&&this.loadTexture(t.image);var a=this.getAttributeManager();if(t.bounds!==n.bounds){var i=this.state.mesh,o=this._createMesh();for(var l in this.state.model.setVertexCount(o.vertexCount),o)i&&i[l]!==o[l]&&a.invalidate(l);this.setState({mesh:o})}}},{key:"finalizeState",value:function(){Object(u.a)(Object(l.a)(t.prototype),"finalizeState",this).call(this),this.state.bitmapTexture&&this.state.bitmapTexture.delete()}},{key:"_createMesh",value:function(){var e=this.props.bounds,t=e;return Number.isFinite(e[0])&&(t=[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]),A(t,this.context.viewport.resolution)}},{key:"_getModel",value:function(e){return e?new h.a(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new m.a({drawMode:4,vertexCount:6}),isInstanced:!1})):null}},{key:"draw",value:function(e){var t=e.uniforms,n=this.state,r=n.bitmapTexture,a=n.model,i=this.props,o=i.image,l=i.desaturate,u=i.transparentColor,s=i.tintColor;r&&o instanceof HTMLVideoElement&&o.readyState>HTMLVideoElement.HAVE_METADATA&&(r.width!==o.videoWidth||r.height!==o.videoHeight?(r.resize({width:o.videoWidth,height:o.videoHeight,mipmaps:!0}),r.setSubImageData({data:o,paramters:E})):r.setSubImageData({data:o}),r.generateMipmap());r&&a&&a.setUniforms(Object.assign({},t,{bitmapTexture:r,desaturate:l,transparentColor:u.map((function(e){return e/255})),tintColor:s.slice(0,3).map((function(e){return e/255}))})).draw()}},{key:"loadTexture",value:function(e){var t=this.context.gl;this.state.bitmapTexture&&this.state.bitmapTexture.delete(),e instanceof g.a?this.setState({bitmapTexture:e}):e instanceof HTMLVideoElement?this.setState({bitmapTexture:new g.a(t,{width:1,height:1,parameters:E,mipmaps:!1})}):e&&this.setState({bitmapTexture:new g.a(t,{data:e,parameters:E})})}}]),t}(p.a);x.layerName="BitmapLayer",x.defaultProps={image:{type:"object",value:null,async:!0},bounds:{type:"array",value:[1,0,0,1],compare:!0},desaturate:{type:"number",min:0,max:1,value:0},transparentColor:{type:"color",value:[0,0,0,0]},tintColor:{type:"color",value:[255,255,255]}};var M,w=n(1217),S=n(660),T=n(1942),C=n(827),L=n(137),P=n(62),k=function(){},D=(M={},Object(c.a)(M,10241,9987),Object(c.a)(M,10240,9729),Object(c.a)(M,10242,33071),Object(c.a)(M,10243,33071),M);function R(e){return e&&(e.id||e.url)}function j(e,t,n){for(var r=0;r0){var u=function(e){for(var t,n=e.icons,r=e.buffer,a=e.mapping,i=void 0===a?{}:a,o=e.xOffset,l=void 0===o?0:o,u=e.yOffset,s=void 0===u?0:u,c=e.rowHeight,d=void 0===c?0:c,f=e.canvasWidth,p=[],h=0;hf&&(j(i,p,s),l=0,s=d+s+r,d=0,p=[]),p.push({icon:m,xOffset:l}),l=l+v+r,d=Math.max(d,g)}}return p.length>0&&j(i,p,s),{mapping:i,rowHeight:d,xOffset:l,yOffset:s,canvasWidth:f,canvasHeight:(t=d+s+r,Math.pow(2,Math.ceil(Math.log2(t))))}}({icons:l,buffer:this._buffer,canvasWidth:this._canvasWidth,mapping:this._mapping,rowHeight:this._rowHeight,xOffset:this._xOffset,yOffset:this._yOffset}),s=u.mapping,c=u.xOffset,d=u.yOffset,f=u.rowHeight,p=u.canvasHeight;this._rowHeight=f,this._mapping=s,this._xOffset=c,this._yOffset=d,this._canvasHeight=p,this._texture||(this._texture=new g.a(this.gl,{width:this._canvasWidth,height:this._canvasHeight,parameters:D})),this._texture.height!==this._canvasHeight&&(this._texture=(this.gl,t=this._texture,n=this._canvasWidth,r=this._canvasHeight,a=t.width,i=t.height,o=Object(w.a)(t,{width:n,height:r}),Object(S.b)(t,o,{targetY:0,width:a,height:i}),t.delete(),o)),this.onUpdate(),this._loadIcons(l)}}},{key:"_loadIcons",value:function(e){var t=this,n=this._canvas.getContext("2d"),r=!0,a=!1,i=void 0;try{for(var o,l=function(){var e=o.value;t._pendingCount++,Object(C.a)(e.url,T.a,t._loadOptions).then((function(r){var a=R(e),i=t._mapping[a],o=i.x,l=i.y,u=i.width,s=i.height,c=function(e,t,n,r){return n===t.width&&r===t.height?t:(e.canvas.height=r,e.canvas.width=n,e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(t,0,0,t.width,t.height,0,0,n,r),e.canvas)}(n,r,u,s);t._texture.setSubImageData({data:c,x:o,y:l,width:u,height:s}),t._texture.generateMipmap(),t.onUpdate()})).catch((function(e){P.a.error(e)()})).finally((function(){t._pendingCount--}))},u=e[Symbol.iterator]();!(r=(o=u.next()).done);r=!0)l()}catch(e){a=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw i}}}},{key:"isLoaded",get:function(){return 0===this._pendingCount}}]),e}(),F=[0,0,0,255],N={iconAtlas:{type:"object",value:null,async:!0},iconMapping:{type:"object",value:{},async:!0},sizeScale:{type:"number",value:1,min:0},billboard:!0,sizeUnits:"pixels",sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},alphaCutoff:{type:"number",value:.05,min:0,max:1},getPosition:{type:"accessor",value:function(e){return e.position}},getIcon:{type:"accessor",value:function(e){return e.icon}},getColor:{type:"accessor",value:F},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]}},B=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getShaders",value:function(){return Object(u.a)(Object(l.a)(t.prototype),"getShaders",this).call(this,{vs:"#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\nattribute vec2 instancePixelOffset;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform bool billboard;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n\n vec2 iconSize = instanceIconFrames.zw;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale), \n sizeMinPixels, sizeMaxPixels\n );\n float instanceScale = iconSize.y == 0.0 ? 0.0 : sizePixels / iconSize.y;\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * instanceScale;\n pixelOffset += instancePixelOffset;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position); \n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n\n vColorMode = instanceColorModes;\n}\n",fs:"#define SHADER_NAME icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float alphaCutoff;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * vColor.a;\n\n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[d.a,f.a]})}},{key:"initializeState",value:function(){var e=this;this.state={iconManager:new I(this.context.gl,{onUpdate:function(){return e._onUpdate()}})},this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceOffsets:{size:2,accessor:"getIcon",transform:this.getInstanceOffset},instanceIconFrames:{size:4,accessor:"getIcon",transform:this.getInstanceIconFrame},instanceColorModes:{size:1,type:5121,accessor:"getIcon",transform:this.getInstanceColorMode},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:F},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instancePixelOffset:{size:2,transition:!0,accessor:"getPixelOffset"}})}},{key:"updateState",value:function(e){var n=e.oldProps,r=e.props,a=e.changeFlags;Object(u.a)(Object(l.a)(t.prototype),"updateState",this).call(this,{props:r,oldProps:n,changeFlags:a});var i=this.getAttributeManager(),o=r.iconAtlas,s=r.iconMapping,c=r.data,d=r.getIcon,f=this.state.iconManager;f.setProps({loadOptions:r.loadOptions});var p=!1;if(o||this.internalState.isAsyncPropLoading("iconAtlas")?(n.iconAtlas!==r.iconAtlas&&f.setProps({iconAtlas:o,autoPacking:!1}),n.iconMapping!==r.iconMapping&&(f.setProps({iconMapping:s}),p=!0)):f.setProps({autoPacking:!0}),(a.dataChanged||a.updateTriggersChanged&&(a.updateTriggersChanged.all||a.updateTriggersChanged.getIcon))&&(f.setProps({data:c,getIcon:d}),p=!0),p&&(i.invalidate("instanceOffsets"),i.invalidate("instanceIconFrames"),i.invalidate("instanceColorModes")),a.extensionsChanged){var h=this.context.gl;this.state.model&&this.state.model.delete(),this.setState({model:this._getModel(h)}),i.invalidateAll()}}},{key:"finalizeState",value:function(){Object(u.a)(Object(l.a)(t.prototype),"finalizeState",this).call(this),this.state.iconManager.finalize()}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.sizeScale,a=n.sizeMinPixels,i=n.sizeMaxPixels,o=n.sizeUnits,l=n.billboard,u=n.alphaCutoff,s=this.state.iconManager,c=this.context.viewport,d=s.getTexture();d&&d.loaded&&this.state.model.setUniforms(Object.assign({},t,{iconsTexture:d,iconsTextureDim:[d.width,d.height],sizeScale:r*("pixels"===o?c.metersPerPixel:1),sizeMinPixels:a,sizeMaxPixels:i,billboard:l,alphaCutoff:u})).draw()}},{key:"_getModel",value:function(e){return new h.a(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new m.a({drawMode:6,attributes:{positions:{size:2,value:new Float32Array([-1,-1,-1,1,1,1,1,-1])}}}),isInstanced:!0}))}},{key:"_onUpdate",value:function(){this.setNeedsRedraw()}},{key:"getInstanceOffset",value:function(e){var t=this.state.iconManager.getIconMapping(e);return[t.width/2-t.anchorX||0,t.height/2-t.anchorY||0]}},{key:"getInstanceColorMode",value:function(e){return this.state.iconManager.getIconMapping(e).mask?1:0}},{key:"getInstanceIconFrame",value:function(e){var t=this.state.iconManager.getIconMapping(e);return[t.x||0,t.y||0,t.width||0,t.height||0]}},{key:"isLoaded",get:function(){return Object(u.a)(Object(l.a)(t.prototype),"isLoaded",this)&&this.state.iconManager.isLoaded}}]),t}(p.a);B.layerName="IconLayer",B.defaultProps=N;var z=n(1200),U=n(1201),V=n(455),H=n(453),Y=n(852),W=n(255),G=n(853),q=n(1204),X=n(28),Z=n(643),K=[],J=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getShaders",value:function(){return Object.assign({},Object(u.a)(Object(l.a)(t.prototype),"getShaders",this).call(this),{inject:{"vs:#decl":"\n uniform float gamma;\n varying float vGamma;\n","vs:#main-end":"\n vGamma = gamma / (sizeScale * iconSize.y);\n"},fs:"#define SHADER_NAME multi-icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float buffer;\nuniform bool sdf;\nuniform float alphaCutoff;\nuniform bool shouldDrawBackground;\nuniform vec3 backgroundColor;\n\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying float vGamma;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n if (!picking_uActive) {\n float alpha = texture2D(iconsTexture, vTextureCoords).a;\n if (sdf) {\n alpha = smoothstep(buffer - vGamma, buffer + vGamma, alpha);\n }\n float a = alpha * vColor.a;\n \n if (a < alphaCutoff) {\n if (shouldDrawBackground) {\n gl_FragColor = vec4(backgroundColor, vColor.a);\n return;\n } else {\n discard;\n }\n }\n\n if (shouldDrawBackground) {\n gl_FragColor = vec4(mix(backgroundColor, vColor.rgb, alpha), vColor.a * opacity);\n } else {\n gl_FragColor = vec4(vColor.rgb, a * opacity);\n }\n }\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n"})}},{key:"initializeState",value:function(){var e=this;Object(u.a)(Object(l.a)(t.prototype),"initializeState",this).call(this),this.getAttributeManager().addInstanced({instanceOffsets:{size:2,accessor:"getIconOffsets"},instancePickingColors:{type:5121,size:3,accessor:function(t,n){var r=n.index,a=n.target;return e.encodePickingColor(r,a)}}})}},{key:"updateState",value:function(e){Object(u.a)(Object(l.a)(t.prototype),"updateState",this).call(this,e);var n=e.oldProps,r=e.props;if(r.backgroundColor!==n.backgroundColor){var a=Array.isArray(r.backgroundColor)?r.backgroundColor.map((function(e){return e/255})).slice(0,3):null;this.setState({backgroundColor:a})}}},{key:"draw",value:function(e){var n=e.uniforms,r=this.props.sdf,a=this.state.backgroundColor,i=Array.isArray(a);Object(u.a)(Object(l.a)(t.prototype),"draw",this).call(this,{uniforms:Object.assign({},n,{buffer:.75,gamma:.2,sdf:Boolean(r),backgroundColor:a||[0,0,0],shouldDrawBackground:i})})}},{key:"getInstanceOffset",value:function(e){var n=this;return e?Array.from(e).map((function(e){return Object(u.a)(Object(l.a)(t.prototype),"getInstanceOffset",n).call(n,e)})):K}},{key:"getInstanceColorMode",value:function(e){return 1}},{key:"getInstanceIconFrame",value:function(e){var n=this;return e?Array.from(e).map((function(e){return Object(u.a)(Object(l.a)(t.prototype),"getInstanceIconFrame",n).call(n,e)})):K}}]),t}(B);J.layerName="MultiIconLayer",J.defaultProps={backgroundColor:{type:"color",value:null,optional:!0},getIconOffsets:{type:"accessor",value:function(e){return e.offsets}}};var Q=n(1221),$=n.n(Q);function ee(e,t){for(var n=0,r=0;rt&&(at){var c=i-l.length;if(at){var d=te(l,t,n);d.rows.length>1&&(r=r.concat(d.rows.slice(0,d.rows.length-1))),a+=d.lastRowStartCharIndex,s=d.lastRowOffsetLeft}}o+=s}return a0&&void 0!==arguments[0]?arguments[0]:5;Object(a.a)(this,e),this.limit=t,this.clear()}return Object(i.a)(e,[{key:"clear",value:function(){this._cache={},this._order=[]}},{key:"get",value:function(e){var t=this._cache[e];return t&&(this._deleteOrder(e),this._appendOrder(e)),t}},{key:"set",value:function(e,t){this._cache[e]?(this.delete(e),this._cache[e]=t,this._appendOrder(e)):(Object.keys(this._cache).length===this.limit&&this.delete(this._order[0]),this._cache[e]=t,this._appendOrder(e))}},{key:"delete",value:function(e){this._cache[e]&&(this._deleteCache(e),this._deleteOrder(e))}},{key:"_deleteCache",value:function(e){delete this._cache[e]}},{key:"_deleteOrder",value:function(e){var t=this._order.findIndex((function(t){return t===e}));t>=0&&this._order.splice(t,1)}},{key:"_appendOrder",value:function(e){this._order.push(e)}}]),e}();var ie=function(){for(var e=[],t=32;t<128;t++)e.push(String.fromCharCode(t));return e}(),oe=new ae(3),le=["fontFamily","fontWeight","characterSet","fontSize","sdf","buffer","cutoff","radius"];function ue(e,t){var n=oe.get(e);if(!n)return t;var r=[],a=n.mapping,i=Object.keys(a);i=new Set(i);var o=t;return o instanceof Array&&(o=new Set(o)),o.forEach((function(e){i.has(e)||r.push(e)})),r}function se(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};le.forEach((function(n){n in t&&(e.props[n]=t[n])}));var n=this._key;this._key=this._getKey();var r=ue(this._key,this.props.characterSet),a=oe.get(this._key);if(a&&0===r.length)this._key!==n&&this._updateTexture(a);else{var i=this._generateFontAtlas(this._key,r,a);this._updateTexture(i),oe.set(this._key,i)}}},{key:"_updateTexture",value:function(e){var t,n=e.data,r=e.width,a=e.height;this._texture.width===r&&this._texture.height===a||this._texture.resize({width:r,height:a}),this._texture.setImageData({data:n,width:r,height:a,parameters:(t={},Object(c.a)(t,10242,33071),Object(c.a)(t,10243,33071),t)}),this._texture.generateMipmap()}},{key:"_generateFontAtlas",value:function(e,t,n){var r=this.props,a=r.fontFamily,i=r.fontWeight,o=r.fontSize,l=r.buffer,u=r.sdf,s=r.radius,c=r.cutoff,d=n&&n.data;d||((d=document.createElement("canvas")).width=1024);var f=d.getContext("2d");ce(f,a,o,i);var p=function(e){var t=e.characterSet,n=e.getFontWidth,r=e.fontHeight,a=e.buffer,i=e.maxCanvasWidth,o=e.mapping,l=void 0===o?{}:o,u=e.xOffset,s=void 0===u?0:u,c=e.yOffset,d=void 0===c?0:c,f=0,p=s,h=0,m=!0,g=!1,v=void 0;try{for(var y,b=t[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var A=y.value;if(!l[A]){var _=n(A,h++);p+_+2*a>i&&(p=0,f++),l[A]={x:p+a,y:d+f*(r+2*a)+a,width:_,height:r},p+=_+2*a}}}catch(e){g=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(g)throw v}}var O,E=r+2*a;return{mapping:l,xOffset:p,yOffset:d+f*E,canvasHeight:(O=d+(f+1)*E,Math.pow(2,Math.ceil(Math.log2(O))))}}(Object.assign({getFontWidth:function(e){return f.measureText(e).width},fontHeight:1.2*o,buffer:l,characterSet:t,maxCanvasWidth:1024},n&&{mapping:n.mapping,xOffset:n.xOffset,yOffset:n.yOffset})),h=p.mapping,m=p.canvasHeight,g=p.xOffset,v=p.yOffset;if(d.height!==m){var y=f.getImageData(0,0,d.width,d.height);d.height=m,f.putImageData(y,0,0)}if(ce(f,a,o,i),u){var b=new $.a(o,l,s,c,a,i),A=f.getImageData(0,0,b.size,b.size),_=!0,O=!1,E=void 0;try{for(var x,M=t[Symbol.iterator]();!(_=(x=M.next()).done);_=!0){var w=x.value;se(b.draw(w),A),f.putImageData(A,h[w].x-l,h[w].y-l)}}catch(e){O=!0,E=e}finally{try{_||null==M.return||M.return()}finally{if(O)throw E}}}else{var S=!0,T=!1,C=void 0;try{for(var L,P=t[Symbol.iterator]();!(S=(L=P.next()).done);S=!0){var k=L.value;f.fillText(k,h[k].x,h[k].y+.9*o)}}catch(e){T=!0,C=e}finally{try{S||null==P.return||P.return()}finally{if(T)throw C}}}return{xOffset:g,yOffset:v,mapping:h,data:d,width:d.width,height:d.height}}},{key:"_getKey",value:function(){var e=this.props,t=e.gl,n=e.fontFamily,r=e.fontWeight,a=e.fontSize,i=e.buffer,o=e.sdf,l=e.radius,u=e.cutoff;return o?"".concat(t," ").concat(n," ").concat(r," ").concat(a," ").concat(i," ").concat(l," ").concat(u):"".concat(t," ").concat(n," ").concat(r," ").concat(a," ").concat(i)}},{key:"texture",get:function(){return this._texture}},{key:"mapping",get:function(){var e=oe.get(this._key);return e&&e.mapping}},{key:"scale",get:function(){return 1.2}}]),e}();function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var pe={fontSize:64,buffer:2,sdf:!1,radius:3,cutoff:.25},he={start:1,middle:0,end:-1},me={top:1,center:0,bottom:-1},ge=["fontSize","buffer","sdf","radius","cutoff"],ve={billboard:!0,sizeScale:1,sizeUnits:"pixels",sizeMinPixels:0,sizeMaxPixels:Number.MAX_SAFE_INTEGER,backgroundColor:{type:"color",value:null,optional:!0},characterSet:ie,fontFamily:"Monaco, monospace",fontWeight:"normal",lineHeight:1,fontSettings:{},wordBreak:"word-break",maxWidth:{type:"number",value:-1},getText:{type:"accessor",value:function(e){return e.text}},getPosition:{type:"accessor",value:function(e){return e.position}},getColor:{type:"accessor",value:[0,0,0,255]},getSize:{type:"accessor",value:32},getAngle:{type:"accessor",value:0},getTextAnchor:{type:"accessor",value:"middle"},getAlignmentBaseline:{type:"accessor",value:"center"},getPixelOffset:{type:"accessor",value:[0,0]}},ye=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"initializeState",value:function(){this.state={styleVersion:0,fontAtlasManager:new de(this.context.gl)}}},{key:"updateState",value:function(e){var t=e.props,n=e.oldProps,r=e.changeFlags,a=this._fontChanged(n,t);a&&this._updateFontAtlas(n,t);var i=a||t.lineHeight!==n.lineHeight||t.wordBreak!==n.wordBreak||t.maxWidth!==n.maxWidth;(r.dataChanged||r.updateTriggersChanged&&(r.updateTriggersChanged.all||r.updateTriggersChanged.getText))&&this._updateText(),i&&this.setState({styleVersion:this.state.styleVersion+1})}},{key:"finalizeState",value:function(){Object(u.a)(Object(l.a)(t.prototype),"finalizeState",this).call(this),this.state.fontAtlasManager.finalize()}},{key:"getPickingInfo",value:function(e){var t=e.info;return Object.assign(t,{object:t.index>=0?this.props.data[t.index]:null})}},{key:"_updateFontAtlas",value:function(e,t){var n=t.characterSet,r=t.fontSettings,a=t.fontFamily,i=t.fontWeight;this.state.fontAtlasManager.setProps(Object.assign({},pe,r,{characterSet:n,fontFamily:a,fontWeight:i})),this.setNeedsRedraw(!0)}},{key:"_fontChanged",value:function(e,t){if(e.fontFamily!==t.fontFamily||e.characterSet!==t.characterSet||e.fontWeight!==t.fontWeight)return!0;if(e.fontSettings===t.fontSettings)return!1;var n=e.fontSettings||{},r=t.fontSettings||{};return ge.some((function(e){return n[e]!==r[e]}))}},{key:"_updateText",value:function(){var e,t=this.props.data,n=t.attributes&&t.attributes.getText,r=this.props.getText,a=t.startIndices;if(n&&a){var i=function(e){var t=e.value,n=e.length,r=e.stride,a=e.offset,i=e.startIndices,o=t.BYTES_PER_ELEMENT,l=r?r/o:1,u=a?a/o:0,s=i[n]||Math.floor((t.length-u-o)/l)+1,c=new Array(n),d=t;if(l>1||u>0){d=new t.constructor(s);for(var f=0;f0,l=[0,0],u=0,s=0,c=0;c<=e.length;c++){var d=e[c],f=void 0;if("\n"!==d&&void 0!==d||(f=e.slice(s,c)),f){var p=o?ne(f,n,r,a).rows:[f],h=!0,m=!1,g=void 0;try{for(var v,y=p[Symbol.iterator]();!(h=(v=y.next()).done);h=!0){var b=re(v.value,a),A=b.rowWidth,_=b.rowHeight,O=b.leftOffsets,E=!0,x=!1,M=void 0;try{for(var w,S=O[Symbol.iterator]();!(E=(w=S.next()).done);E=!0){var T=w.value;i[s++]={x:T,y:u+_/2,rowWidth:A}}}catch(e){x=!0,M=e}finally{try{E||null==S.return||S.return()}finally{if(x)throw M}}u+=_*t,l[0]=o?r:Math.max(l[0],A)}}catch(e){m=!0,g=e}finally{try{h||null==y.return||y.return()}finally{if(m)throw g}}}"\n"===d&&(i[s++]={x:0,y:0,rowWidth:0})}return l[1]=u,{characters:i,size:l}}(c,l,i,o,n),f=d.characters,p=Object(X.a)(d.size,2),h=p[0],m=p[1],g=he["function"==typeof u?u(e,t):u],v=me["function"==typeof s?s(e,t):s],y=new Array(2*c.length),b=0,A=!0,_=!1,O=void 0;try{for(var E,x=f[Symbol.iterator]();!(A=(E=x.next()).done);A=!0){var M=E.value,w=M.rowWidth,S=M.x,T=M.y,C=(1-g)*(h-w)/2;y[b++]=(g-1)*h/2+C+S,y[b++]=(v-1)*m/2+T}}catch(e){_=!0,O=e}finally{try{A||null==x.return||x.return()}finally{if(_)throw O}}return y}},{key:"renderLayers",value:function(){var e=this.state,t=e.startIndices,n=e.numInstances,r=e.getText,a=e.fontAtlasManager,i=a.scale,o=a.texture,l=a.mapping,u=e.styleVersion,s=this.props,c=s.data,d=s._dataDiff,f=s.backgroundColor,p=s.getPosition,h=s.getColor,m=s.getSize,g=s.getAngle,v=s.getPixelOffset,y=s.billboard,b=s.sdf,A=s.sizeScale,_=s.sizeUnits,O=s.sizeMinPixels,E=s.sizeMaxPixels,x=s.transitions,M=s.updateTriggers,w=this.getIconOffsets.bind(this);return new(this.getSubLayerClass("characters",J))({sdf:b,iconAtlas:o,iconMapping:l,backgroundColor:f,getPosition:p,getColor:h,getSize:m,getAngle:g,getPixelOffset:v,billboard:y,sizeScale:A*i,sizeUnits:_,sizeMinPixels:O*i,sizeMaxPixels:E*i,transitions:x&&{getPosition:x.getPosition,getAngle:x.getAngle,getColor:x.getColor,getSize:x.getSize,getPixelOffset:M.getPixelOffset}},this.getSubLayerProps({id:"characters",updateTriggers:{getPosition:M.getPosition,getAngle:M.getAngle,getColor:M.getColor,getSize:M.getSize,getPixelOffset:M.getPixelOffset,getIconOffsets:{getText:M.getText,getTextAnchor:M.getTextAnchor,getAlignmentBaseline:M.getAlignmentBaseline,styleVersion:u}}}),{data:c,_dataDiff:d,startIndices:t,numInstances:n,getIconOffsets:w,getIcon:r})}}]),t}(Z.a);ye.layerName="TextLayer",ye.defaultProps=ve;var be=n(299)},function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function a(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"deck.gl: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(1369)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=new Date,a=new Date;function i(e,t,n,o){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},l.round=function(e){var t=l(e),n=l.ceil(e);return e-t0))return o;do{o.push(i=new Date(+n)),t(n,a),e(n)}while(i=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(l.count=function(t,i){return r.setTime(+t),a.setTime(+i),e(r),e(a),Math.floor(n(r,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(o?function(t){return o(t)%e==0}:function(t){return l.count(0,t)%e==0}):l:null}),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(468);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){l=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return i}}(e,t)||Object(r.a)(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(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.generateHashId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return Math.random().toString(36).substr(e)},t.isChrome=function(){return u.default.chrome&&u.default.chrome.webstore},t.isPlainObject=function(e){return e===Object(e)&&"function"!=typeof e&&!Array.isArray(e)},t.capitalizeFirstLetter=d,t.camelToTitle=function(e){return d(e.replace(/([A-Z])/g," $1"))},t.getHTMLMapModeTileUrl=function(e){return"https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/documentation/map-".concat(e.toLowerCase(),"-mode.png")},t.toArray=function(e){if(Array.isArray(e))return e;if(null==e)return[];return[e]},t.isObject=p,t.getError=function e(t){if(!t)return"Something went wrong";if("string"==typeof t)return t;if(t instanceof Error)return t.message;if("object"===(0,i.default)(t))return t.error?e(t.error):t.err?e(t.err):t.message?e(t.message):JSON.stringify(t);return null},t.arrayInsert=function(e,t,n){if(!Array.isArray(e))return e;return[].concat((0,l.default)(e.slice(0,t)),[n],(0,l.default)(e.slice(t)))},t.isTest=function(){var t,n;return"test"===(null===(t=e)||void 0===t||null===(n=t.env)||void 0===n?void 0:"production")},t.set=t.insertValue=t.camelize=void 0;var a=r(n(372)),i=r(n(80)),o=r(n(4)),l=r(n(36)),u=r(n(61));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:6;return Math.random().toString(36).substr(e)},t.isChrome=function(){return u.default.chrome&&u.default.chrome.webstore},t.isPlainObject=function(e){return e===Object(e)&&"function"!=typeof e&&!Array.isArray(e)},t.capitalizeFirstLetter=d,t.camelToTitle=function(e){return d(e.replace(/([A-Z])/g," $1"))},t.getHTMLMapModeTileUrl=function(e){return"https://d1a3f4spazzrp4.cloudfront.net/kepler.gl/documentation/map-".concat(e.toLowerCase(),"-mode.png")},t.toArray=function(e){if(Array.isArray(e))return e;if(null==e)return[];return[e]},t.isObject=p,t.getError=function e(t){if(!t)return"Something went wrong";if("string"==typeof t)return t;if(t instanceof Error)return t.message;if("object"===(0,i.default)(t))return t.error?e(t.error):t.err?e(t.err):t.message?e(t.message):JSON.stringify(t);return null},t.arrayInsert=function(e,t,n){if(!Array.isArray(e))return e;return[].concat((0,l.default)(e.slice(0,t)),[n],(0,l.default)(e.slice(t)))},t.isTest=function(){var t,n;return"test"===(null===(t=e)||void 0===t||null===(n=t.env)||void 0===n?void 0:"production")},t.set=t.insertValue=t.camelize=void 0;var a=r(n(372)),i=r(n(80)),o=r(n(4)),l=r(n(36)),u=r(n(61));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;tt&&(n=e,e=t,t=n),v=function(n){return Math.max(e,Math.min(t,n))}),r=a>2?f:d,c=p=null,b}function b(t){return isNaN(t=+t)?n:(c||(c=r(h.map(e),m,g)))(e(v(t)))}return b.invert=function(n){return v(t((p||(p=r(m,h.map(e),i.a)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,l.a),y()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=o.a,y()},b.clamp=function(e){return arguments.length?(v=!!e||s,y()):v!==s},b.interpolate=function(e){return arguments.length?(g=e,y()):g},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return h()(s,s)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return l}));var r=1e3,a=6e4,i=36e5,o=864e5,l=6048e5},function(e,t,n){"use strict";n.d(t,"d",(function(){return L})),n.d(t,"b",(function(){return T})),n.d(t,"k",(function(){return D})),n.d(t,"c",(function(){return I})),n.d(t,"f",(function(){return F})),n.d(t,"j",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"n",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"g",(function(){return b})),n.d(t,"e",(function(){return A})),n.d(t,"a",(function(){return _})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return E}));var r=n(64);function a(e,t){const n=r.n([],t,e);return r.k(n,n,1/n[3]),n}function i(e,t){const n=e%t;return n<0?t+n:n}const o=Math.log2||function(e){return Math.log(e)*Math.LOG2E};var l=n(22),u=n(45),s=n(31);function c(e,t){if(!e)throw new Error(t||"@math.gl/web-mercator: assertion failed.")}const d=Math.PI,f=d/4,p=d/180,h=180/d;function m(e){return Math.pow(2,e)}function g(e){return o(e)}function v([e,t]){c(Number.isFinite(e)),c(Number.isFinite(t)&&t>=-90&&t<=90,"invalid latitude");const n=t*p;return[512*(e*p+d)/(2*d),512*(d+Math.log(Math.tan(f+.5*n)))/(2*d)]}function y([e,t]){const n=e/512*(2*d)-d,r=2*(Math.atan(Math.exp(t/512*(2*d)-d))-f);return[n*h,r*h]}function b({latitude:e}){c(Number.isFinite(e));return g(4003e4*Math.cos(e*p))-9}function A({latitude:e,longitude:t,highPrecision:n=!1}){c(Number.isFinite(e)&&Number.isFinite(t));const r={},a=Math.cos(e*p),i=512/360/a,o=512/4003e4/a;if(r.unitsPerMeter=[o,o,o],r.metersPerUnit=[1/o,1/o,1/o],r.unitsPerDegree=[512/360,i,o],r.degreesPerUnit=[.703125,1/i,1/o],n){const t=p*Math.tan(e*p)/a,n=512/360*t/2,l=512/4003e4*t,u=l/i*o;r.unitsPerDegree2=[0,n,l],r.unitsPerMeter2=[u,0,u]}return r}function _(e,t){const[n,r,a]=e,[i,o,l]=t,{unitsPerMeter:u,unitsPerMeter2:s}=A({longitude:n,latitude:r,highPrecision:!0}),c=v(e);c[0]+=i*(u[0]+s[0]*o),c[1]+=o*(u[1]+s[1]*o);const d=y(c),f=(a||0)+(l||0);return Number.isFinite(a)||Number.isFinite(l)?[d[0],d[1],f]:d}function O({height:e,pitch:t,bearing:n,altitude:r,scale:a,center:i=null}){const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return l.p(o,o,[0,0,-r]),l.l(o,o,-t*p),l.n(o,o,n*p),a/=e,l.o(o,o,[a,a,a]),i&&l.p(o,o,s.k([],i)),o}function E({width:e,height:t,fovy:n=x(1.5),altitude:r,pitch:a=0,nearZMultiplier:i=1,farZMultiplier:o=1}){void 0!==r&&(n=x(r));const l=.5*n*p,u=M(n),s=a*p,c=Math.sin(l)*u/Math.sin(Math.min(Math.max(Math.PI/2-s-l,.01),Math.PI-.01));return{fov:2*l,aspect:e/t,focalDistance:u,near:i,far:(Math.sin(s)*c+u)*o}}function x(e){return 2*Math.atan(.5/e)*h}function M(e){return.5/Math.tan(.5*e*p)}function w(e,t){const[n,r,i=0]=e;return c(Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(i)),a(t,[n,r,i,1])}function S(e,t,n=0){const[r,i,o]=e;if(c(Number.isFinite(r)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(o)){return a(t,[r,i,o,1])}const l=a(t,[r,i,0,1]),s=a(t,[r,i,1,1]),d=l[2],f=s[2],p=d===f?0:((n||0)-d)/(f-d);return u.c([],l,s,p)}function T({width:e,height:t,bounds:n,minExtent:r=0,maxZoom:a=24,padding:i=0,offset:l=[0,0]}){const[[u,s],[d,f]]=n;if(Number.isFinite(i)){i={top:i,bottom:i,left:i,right:i}}else c(Number.isFinite(i.top)&&Number.isFinite(i.bottom)&&Number.isFinite(i.left)&&Number.isFinite(i.right));const p=new k({width:e,height:t,longitude:0,latitude:0,zoom:0}),h=p.project([u,f]),m=p.project([d,s]),g=[Math.max(Math.abs(m[0]-h[0]),r),Math.max(Math.abs(m[1]-h[1]),r)],v=[e-i.left-i.right-2*Math.abs(l[0]),t-i.top-i.bottom-2*Math.abs(l[1])];c(v[0]>0&&v[1]>0);const y=v[0]/g[0],b=v[1]/g[1],A=(i.right-i.left)/2/y,_=(i.bottom-i.top)/2/b,O=[(m[0]+h[0])/2+A,(m[1]+h[1])/2+_],E=p.unproject(O),x=Math.min(a,p.zoom+o(Math.abs(Math.min(y,b))));return c(Number.isFinite(x)),{longitude:E[0],latitude:E[1],zoom:x}}const C=Math.PI/180;function L(e,t=0){const{width:n,height:r,unproject:a}=e,i={targetZ:t},o=a([0,r],i),l=a([n,r],i);let u,s;return(e.fovy?.5*e.fovy*C:Math.atan(.5/e.altitude))>(90-e.pitch)*C-.01?(u=P(e,0,t),s=P(e,n,t)):(u=a([0,0],i),s=a([n,0],i)),[o,l,s,u]}function P(e,t,n){const{pixelUnprojectionMatrix:r}=e,i=a(r,[t,0,1,1]),o=a(r,[t,e.height,1,1]),l=(n*e.distanceScales.unitsPerMeter[2]-i[2])/(o[2]-i[2]),s=y(u.c([],i,o,l));return s[2]=n,s}class k{constructor({width:e,height:t,latitude:n=0,longitude:r=0,zoom:a=0,pitch:i=0,bearing:o=0,altitude:u=null,fovy:c=null,position:d=null,nearZMultiplier:f=.02,farZMultiplier:p=1.01}={width:1,height:1}){e=e||1,t=t||1,null===c&&null===u?c=x(u=1.5):null===c?c=x(u):null===u&&(u=M(c));const h=m(a);u=Math.max(.75,u);const g=A({longitude:r,latitude:n}),y=v([r,n]);y[2]=0,d&&s.a(y,y,s.j([],d,g.unitsPerMeter)),this.projectionMatrix=function({width:e,height:t,pitch:n,altitude:r,fovy:a,nearZMultiplier:i,farZMultiplier:o}){const{fov:u,aspect:s,near:c,far:d}=E({width:e,height:t,altitude:r,fovy:a,pitch:n,nearZMultiplier:i,farZMultiplier:o});return l.j([],u,s,c,d)}({width:e,height:t,pitch:i,fovy:c,nearZMultiplier:f,farZMultiplier:p}),this.viewMatrix=O({height:t,scale:h,center:y,pitch:i,bearing:o,altitude:u}),this.width=e,this.height=t,this.scale=h,this.latitude=n,this.longitude=r,this.zoom=a,this.pitch=i,this.bearing=o,this.altitude=u,this.fovy=c,this.center=y,this.meterOffset=d||[0,0,0],this.distanceScales=g,this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}_initMatrices(){const{width:e,height:t,projectionMatrix:n,viewMatrix:r}=this,a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];l.h(a,a,n),l.h(a,a,r),this.viewProjectionMatrix=a;const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];l.o(i,i,[e/2,-t/2,1]),l.p(i,i,[1,-1,0]),l.h(i,i,a);const o=l.f([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],i);if(!o)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=i,this.pixelUnprojectionMatrix=o}equals(e){return e instanceof k&&(e.width===this.width&&e.height===this.height&&l.b(e.projectionMatrix,this.projectionMatrix)&&l.b(e.viewMatrix,this.viewMatrix))}project(e,{topLeft:t=!0}={}){const n=w(this.projectPosition(e),this.pixelProjectionMatrix),[r,a]=n,i=t?a:this.height-a;return 2===e.length?[r,i]:[r,i,n[2]]}unproject(e,{topLeft:t=!0,targetZ:n}={}){const[r,a,i]=e,o=t?a:this.height-a,l=n&&n*this.distanceScales.unitsPerMeter[2],u=S([r,o,i],this.pixelUnprojectionMatrix,l),[s,c,d]=this.unprojectPosition(u);return Number.isFinite(i)?[s,c,d]:Number.isFinite(n)?[s,c,n]:[s,c]}projectPosition(e){const[t,n]=v(e);return[t,n,(e[2]||0)*this.distanceScales.unitsPerMeter[2]]}unprojectPosition(e){const[t,n]=y(e);return[t,n,(e[2]||0)*this.distanceScales.metersPerUnit[2]]}projectFlat(e){return v(e)}unprojectFlat(e){return y(e)}getMapCenterByLngLatPosition({lngLat:e,pos:t}){const n=S(t,this.pixelUnprojectionMatrix),r=v(e),a=u.a([],r,u.d([],n));return y(u.a([],this.center,a))}getLocationAtPoint({lngLat:e,pos:t}){return this.getMapCenterByLngLatPosition({lngLat:e,pos:t})}fitBounds(e,t={}){const{width:n,height:r}=this,{longitude:a,latitude:i,zoom:o}=T(Object.assign({width:n,height:r,bounds:e},t));return new k({width:n,height:r,longitude:a,latitude:i,zoom:o})}getBounds(e){const t=this.getBoundingRegion(e),n=Math.min(...t.map(e=>e[0])),r=Math.max(...t.map(e=>e[0]));return[[n,Math.min(...t.map(e=>e[1]))],[r,Math.max(...t.map(e=>e[1]))]]}getBoundingRegion(e={}){return L(this,e.z||0)}}function D({width:e,height:t,longitude:n,latitude:r,zoom:a,pitch:l=0,bearing:u=0}){(n<-180||n>180)&&(n=i(n+180,360)-180),(u<-180||u>180)&&(u=i(u+180,360)-180);let s=new k({width:e,height:t,longitude:n,latitude:r,zoom:a}),c=s.project([n,85.05113])[1],d=s.project([n,-85.05113])[1],f=0;return d-c0?f=c:di?0:s}function N(e,t,n){const r=(n=Object.assign({},j,n)).curve,a=e.zoom,i=[e.longitude,e.latitude],o=m(a),l=t.zoom,s=[t.longitude,t.latitude],c=m(l-a),d=v(i),f=v(s),p=u.f([],f,d),h=Math.max(e.width,e.height),g=h/c,y=u.b(p)*o,b=Math.max(y,.01),A=r*r,_=(g*g-h*h+A*A*b*b)/(2*h*A*b),O=(g*g-h*h-A*A*b*b)/(2*g*A*b),E=Math.log(Math.sqrt(_*_+1)-_),x=Math.log(Math.sqrt(O*O+1)-O);return{startZoom:a,startCenterXY:d,uDelta:p,w0:h,u1:y,S:(x-E)/r,rho:r,rho2:A,r0:E,r1:x}}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var a=n(37),i="object"!==(void 0===e?"undefined":Object(a.a)(e))||"[object process]"!==String(e)||e.browser,o={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==r&&r},l=o.global||o.self||o.window}).call(this,n(112),n(67))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2);function a(e){for(var t=1;t-1},T.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new S,map:new(E||T),string:new S}},C.prototype.delete=function(e){return D(this,e).delete(e)},C.prototype.get=function(e){return D(this,e).get(e)},C.prototype.has=function(e){return D(this,e).has(e)},C.prototype.set=function(e,t){return D(this,e).set(e,t),this};var j=F((function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(U(e))return w?w.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(e);var t=[];return a.test(e)&&t.push(""),e.replace(i,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));function I(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o),o};return n.cache=new(F.Cache||C),n}function N(e,t){return e===t||e!=e&&t!=t}F.Cache=C;var B=Array.isArray;function z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:P(e,t);return void 0===r?n:r}}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}));var r=n(77);function a(e){if(!Number.isFinite(e))throw new Error("Invalid number "+e);return e}function i(e,t,n=""){if(r.a.debug&&!function(e,t){if(e.length!==t)return!1;for(let t=0;t1?n-1:0),a=1;a1?t-1:0),r=1;r2?n-2:0),o=2;o0&&a[e]&&(t=a[e]).call.apply(t,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},a={COMPONENT:Symbol.for("component"),ASYNC_DEFAULTS:Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL:Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED:Symbol.for("asyncPropResolved")}},function(e,t,n){"use strict";var r=n(476),a="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||a||Function("return this")();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(462);function a(e){var t,n;function a(t,n){try{var o=e[t](n),l=o.value,u=l instanceof r.a;Promise.resolve(u?l.wrapped:l).then((function(e){u?a("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){a("throw",e)}))}catch(e){i("throw",e)}}function i(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?a(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(i,o){var l={key:e,arg:r,resolve:i,reject:o,next:null};n?n=n.next=l:(t=n=l,a(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}function i(e){return function(){return new a(e.apply(this,arguments))}}"function"==typeof Symbol&&Symbol.asyncIterator&&(a.prototype[Symbol.asyncIterator]=function(){return this}),a.prototype.next=function(e){return this._invoke("next",e)},a.prototype.throw=function(e){return this._invoke("throw",e)},a.prototype.return=function(e){return this._invoke("return",e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(20),u=n(18),s=n(117),c=n(168),d=n(173),f=n(204),p=n(25),h=n(661),m=n(73),g={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},v={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:g},y={removedProps:g},b=function(e){function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)(this,t),(n=Object(i.a)(this,Object(o.a)(t).call(this,e,a))).stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),n.target=a.target||(n.gl.webgl2?36662:34962),n.initialize(a),Object.seal(Object(l.a)(n)),n}return Object(u.a)(t,e),Object(a.a)(t,[{key:"getElementCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/c.a.getBytesPerElement(e))}},{key:"getVertexCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/c.a.getBytesPerVertex(e))}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(e)&&(e={data:e}),Number.isFinite(e)&&(e={byteLength:e}),e=Object(h.a)("Buffer",e,v),this.usage=e.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},e,e.accessor)),e.data?this._setData(e.data,e.offset,e.byteLength):this._setByteLength(e.byteLength||0),this}},{key:"setProps",value:function(e){return"accessor"in(e=Object(h.a)("Buffer",e,y))&&this.setAccessor(e.accessor),this}},{key:"setAccessor",value:function(e){return delete(e=Object.assign({},e)).buffer,this.accessor=new c.a(e),this}},{key:"reallocate",value:function(e){return e>this.byteLength?(this._setByteLength(e),!0):(this.bytesUsed=e,!1)}},{key:"setData",value:function(e){return this.initialize(e)}},{key:"subData",value:function(e){ArrayBuffer.isView(e)&&(e={data:e});var t=e,n=t.data,r=t.offset,a=void 0===r?0:r,i=t.srcOffset,o=void 0===i?0:i,l=e.byteLength||e.length;Object(m.a)(n);var u=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(u,this.handle),0!==o||void 0!==l?(Object(d.a)(this.gl),this.gl.bufferSubData(this.target,a,n,o,l)):this.gl.bufferSubData(u,a,n),this.gl.bindBuffer(u,null),this.debugData=null,this._inferType(n),this}},{key:"copyData",value:function(e){var t=e.sourceBuffer,n=e.readOffset,r=void 0===n?0:n,a=e.writeOffset,i=void 0===a?0:a,o=e.size,l=this.gl;return Object(d.a)(l),l.bindBuffer(36662,t.handle),l.bindBuffer(36663,this.handle),l.copyBufferSubData(36662,36663,r,i,o),l.bindBuffer(36662,null),l.bindBuffer(36663,null),this.debugData=null,this}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dstData,n=void 0===t?null:t,r=e.srcByteOffset,a=void 0===r?0:r,i=e.dstOffset,o=void 0===i?0:i,l=e.length,u=void 0===l?0:l;Object(d.a)(this.gl);var s,c,p=Object(f.c)(this.accessor.type||5126,{clamped:!1}),h=this._getAvailableElementCount(a),g=o;n?s=(c=n.length)-g:c=g+(s=Math.min(h,u||h));var v=Math.min(h,s);return u=u||v,Object(m.a)(u<=v),n=n||new p(c),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,a,n,o,u),this.gl.bindBuffer(36662,null),n}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?this.target:t,r=e.index,a=void 0===r?this.accessor&&this.accessor.index:r,i=e.offset,o=void 0===i?0:i,l=e.size;return 35345===n||35982===n?void 0!==l?this.gl.bindBufferRange(n,a,this.handle,o,l):(Object(m.a)(0===o),this.gl.bindBufferBase(n,a,this.handle)):this.gl.bindBuffer(n,this.handle),this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?this.target:t,r=e.index,a=void 0===r?this.accessor&&this.accessor.index:r,i=35345===n||35982===n;return i?this.gl.bindBufferBase(n,a,null):this.gl.bindBuffer(n,null),this}},{key:"getDebugData",value:function(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}},{key:"invalidateDebugData",value:function(){this.debugData=null}},{key:"_setData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.byteLength+t;Object(m.a)(ArrayBuffer.isView(e)),this._trackDeallocatedMemory();var r=this._getTarget();this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,this.usage),this.gl.bufferSubData(r,t,e),this.gl.bindBuffer(r,null),this.debugData=e.slice(0,10),this.bytesUsed=n,this._trackAllocatedMemory(n);var a=Object(f.b)(e);return Object(m.a)(a),this.setAccessor(new c.a(this.accessor,{type:a})),this}},{key:"_setByteLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;Object(m.a)(e>=0),this._trackDeallocatedMemory();var n=e;0===e&&(n=new Float32Array(0));var r=this._getTarget();return this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,t),this.gl.bindBuffer(r,null),this.usage=t,this.debugData=null,this.bytesUsed=e,this._trackAllocatedMemory(e),this}},{key:"_getTarget",value:function(){return this.gl.webgl2?36663:this.target}},{key:"_getAvailableElementCount",value:function(e){var t=e/Object(f.c)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-t}},{key:"_inferType",value:function(e){this.accessor.type||this.setAccessor(new c.a(this.accessor,{type:Object(f.b)(e)}))}},{key:"_createHandle",value:function(){return this.gl.createBuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}},{key:"_getParameter",value:function(e){this.gl.bindBuffer(this.target,this.handle);var t=this.gl.getBufferParameter(this.target,e);return this.gl.bindBuffer(this.target,null),t}},{key:"setByteLength",value:function(e){return p.h.deprecated("setByteLength","reallocate")(),this.reallocate(e)}},{key:"updateAccessor",value:function(e){return p.h.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new c.a(this.accessor,e),this}},{key:"type",get:function(){return p.h.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}},{key:"bytes",get:function(){return p.h.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}}]),t}(s.a)},function(e,t){e.exports=function(e){return e<-2}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return y}));var r=n(201),a=n(44);function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(e,t){var n=e%t;return n<0?t+n:n}function l(e){var t=e.viewMatrix,n=e.viewMatrixInverse;return{eye:[n[12],n[13],n[14]],direction:[-t[2],-t[6],-t[10]],up:[t[1],t[5],t[9]],right:[t[0],t[4],t[8]]}}var u,s=new a.c,c=new a.c,d=new a.c,f=new a.c,p=new a.c,h=new a.c,m=new a.c;function g(e){var t=e.aspect,n=e.near,r=e.far,i=e.fovyRadians,o=e.position,l=e.direction,u=e.up,g=e.right;c.copy(l);var v=1/c.len();c.normalize(),s.copy(o),d.copy(u);var y=1/d.len();d.normalize(),f.copy(g).normalize();var b=2*Math.tan(i/2)*n*y,A=b*t;p.copy(c).scale(n*v).add(s),h.copy(c).scale(r*v).add(s);var _=c.clone().negate(),O=_.dot(p),E={near:{distance:O,normal:_},far:{distance:c.dot(h),normal:c.clone()}};return m.copy(f).scale(.5*A).add(p).subtract(s).normalize(),_=new a.c(m).cross(d),O=s.dot(_),E.right={normal:_,distance:O},m.copy(f).scale(.5*-A).add(p).subtract(s).normalize(),_=new a.c(d).cross(m),O=s.dot(_),E.left={normal:_,distance:O},m.copy(d).scale(.5*b).add(p).subtract(s).normalize(),_=new a.c(f).cross(m),O=s.dot(_),E.top={normal:_,distance:O},m.copy(d).scale(.5*-b).add(p).subtract(s).normalize(),_=new a.c(m).cross(f),O=s.dot(_),E.bottom={normal:_,distance:O},E}function v(e){return e-Math.fround(e)}function y(e,t){var n=t.size,a=void 0===n?1:n,i=t.startIndex,o=void 0===i?0:i,l=t.endIndex;Number.isFinite(l)||(l=e.length);var s=(l-o)/a;u=r.a.allocate(u,s,{type:Float32Array,size:2*a});for(var c=o,d=0;c1)for(var n=1;nt?1:e>=t?0:NaN},a=function(e){let t=e,n=e;function a(e,t,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r>>1;n(e[i],t)<0?r=i+1:a=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>r(e(t),n)}(e)),{left:a,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const o=a(e,n,r,i-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r>>1;n(e[i],t)>0?a=i:r=i+1}return r}}};var i=function(e){return null===e?NaN:+e};const o=a(r),l=o.right,u=o.left,s=a(i).center;var c=l;function d(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(a=+a)>=a&&++n}return n}function f(e){return 0|e.length}function p(e){return!(e>0)}function h(e){return"object"!=typeof e||"length"in e?e:Array.from(e)}function m(...e){const t="function"==typeof e[e.length-1]&&function(e){return t=>e(...t)}(e.pop()),n=(e=e.map(h)).map(f),r=e.length-1,a=new Array(r+1).fill(0),i=[];if(r<0||n.some(p))return i;for(;;){i.push(a.map((t,n)=>e[n][t]));let o=r;for(;++a[o]===n[o];){if(0===o)return t?i.map(t):i;a[o--]=0}}}function g(e,t){var n=0,r=0;return Float64Array.from(e,void 0===t?e=>n+=+e||0:a=>n+=+t(a,r++,e)||0)}var v=function(e,t){return te?1:t>=e?0:NaN};function y(e,t){let n,r=0,a=0,i=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-a,a+=n/++r,i+=n*(t-a));else{let o=-1;for(let l of e)null!=(l=t(l,++o,e))&&(l=+l)>=l&&(n=l-a,a+=n/++r,i+=n*(l-a))}if(r>1)return i/(r-1)}function b(e,t){const n=y(e,t);return n?Math.sqrt(n):n}var A=function(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=i&&(n=r=i):(n>i&&(n=i),r0){for(i=e[--a];a>0&&(t=i,n=e[--a],i=t+n,r=n-(i-t),!r););a>0&&(r<0&&e[a-1]<0||r>0&&e[a-1]>0)&&(n=2*r,t=i+n,n==t-i&&(i=t))}return i}}var O=function(e,t){const n=new _;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&n.add(a)}return+n},E=function(e){return e};function x(e,...t){return P(e,E,E,t)}function M(e,...t){return P(e,Array.from,E,t)}function w(e,t,...n){return P(e,E,t,n)}function S(e,t,...n){return P(e,Array.from,t,n)}function T(e,...t){return P(e,E,L,t)}function C(e,...t){return P(e,Array.from,L,t)}function L(e){if(1!==e.length)throw new Error("duplicate key");return e[0]}function P(e,t,n,r){return function e(a,i){if(i>=r.length)return n(a);const o=new Map,l=r[i++];let u=-1;for(const e of a){const t=l(e,++u,a),n=o.get(t);n?n.push(e):o.set(t,[e])}for(const[t,n]of o)o.set(t,e(n,i));return t(o)}(e,0)}var k=Array.prototype,D=k.slice,R=(k.map,function(e){return function(){return e}}),j=Math.sqrt(50),I=Math.sqrt(10),F=Math.sqrt(2),N=function(e,t,n){var r,a,i,o,l=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t0)for(e=Math.ceil(e/o),t=Math.floor(t/o),i=new Array(a=Math.ceil(t-e+1));++l=0?(i>=j?10:i>=I?5:i>=F?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=j?10:i>=I?5:i>=F?2:1)}function z(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=j?a*=10:i>=I?a*=5:i>=F&&(a*=2),t0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),r=a}}var V=function(e){return Math.ceil(Math.log(d(e))/Math.LN2)+1},H=function(){var e=E,t=A,n=V;function r(r){Array.isArray(r)||(r=Array.from(r));var a,i,o=r.length,l=new Array(o);for(a=0;a=d)if(e>=d&&t===A){const e=B(s,d,n);isFinite(e)&&(e>0?d=(Math.floor(d/e)+1)*e:e<0&&(d=(Math.ceil(d*-e)+1)/-e))}else f.pop()}for(var p=f.length;f[0]<=s;)f.shift(),--p;for(;f[p-1]>d;)f.pop(),--p;var h,m=new Array(p+1);for(a=0;a<=p;++a)(h=m[a]=[]).x0=a>0?f[a-1]:s,h.x1=a=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n=a)&&(n=a)}return n}function W(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}function G(e,t,n=0,a=e.length-1,i=r){for(;a>n;){if(a-n>600){const r=a-n+1,o=t-n+1,l=Math.log(r),u=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*u*(r-u)/r)*(o-r/2<0?-1:1);G(e,t,Math.max(n,Math.floor(t-o*u/r+s)),Math.min(a,Math.floor(t+(r-o)*u/r+s)),i)}const r=e[t];let o=n,l=a;for(q(e,n,t),i(e[a],r)>0&&q(e,n,a);o0;)--l}0===i(e[n],r)?q(e,n,l):(++l,q(e,l,a)),l<=t&&(n=l+1),t<=l&&(a=l-1)}return e}function q(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function X(e,t,n){if(r=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n))).length){if((t=+t)<=0||r<2)return W(e);if(t>=1)return Y(e);var r,a=(r-1)*t,i=Math.floor(a),o=Y(G(e,i).subarray(0,i+1));return o+(W(e.subarray(i+1))-o)*(a-i)}}function Z(e,t,n=i){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e);return l+(+n(e[o+1],o+1,e)-l)*(a-o)}}var K=function(e,t,n){return Math.ceil((n-t)/(2*(X(e,.75)-X(e,.25))*Math.pow(d(e),-1/3)))},J=function(e,t,n){return Math.ceil((n-t)/(3.5*b(e)*Math.pow(d(e),-1/3)))};function Q(e,t){let n,r=-1,a=-1;if(void 0===t)for(const t of e)++a,null!=t&&(n=t)&&(n=t,r=a);else for(let i of e)null!=(i=t(i,++a,e))&&(n=i)&&(n=i,r=a);return r}function $(e,t){let n=0,r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(++n,r+=t);else{let a=-1;for(let i of e)null!=(i=t(i,++a,e))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}var ee=function(e,t){return X(e,.5,t)};function te(e){return Array.from(function*(e){for(const t of e)yield*t}(e))}function ne(e,t){let n,r=-1,a=-1;if(void 0===t)for(const t of e)++a,null!=t&&(n>t||void 0===n&&t>=t)&&(n=t,r=a);else for(let i of e)null!=(i=t(i,++a,e))&&(n>i||void 0===n&&i>=i)&&(n=i,r=a);return r}function re(e,t=ae){const n=[];let r,a=!1;for(const i of e)a&&n.push(t(r,i)),r=i,a=!0;return n}function ae(e,t){return[e,t]}var ie=function(e,t){return Array.from(t,t=>e[t])},oe=function(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(a);++r0:0===r(e,e))&&(n=o,i=e,a=!0)}}else for(const r of e)(a?t(r,n)>0:0===t(r,r))&&(n=r,a=!0);return n}function ce(e,t=r){if(1===t.length)return Q(e,t);let n,a=-1,i=-1;for(const r of e)++i,(a<0?0===t(r,r):t(r,n)>0)&&(n=r,a=i);return a}function de(e,t){const n=ue(e,t);return n<0?void 0:n}var fe=pe(Math.random);function pe(e){return function(t,n=0,r=t.length){let a=r-(n=+n);for(;a;){const r=e()*a--|0,i=t[a+n];t[a+n]=t[r+n],t[r+n]=i}return t}}function he(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let a of e)(a=+t(a,++r,e))&&(n+=a)}return n}var me=function(e){if(!(a=e.length))return[];for(var t=-1,n=W(e,ge),r=new Array(n);++tt(n,r,e))}function Oe(e,t,n){if("function"!=typeof t)throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let a,i,o=-1;if(arguments.length<3){if(({done:a,value:n}=r.next()),a)return;++o}for(;({done:a,value:i}=r.next()),!a;)n=t(n,i,++o,e);return n}function Ee(e){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(e).reverse()}function xe(e,t=r){if("function"!=typeof e[Symbol.iterator])throw new TypeError("values is not iterable");return e=Array.from(e),1===t.length?(t=e.map(t),ie(e,e.map((e,t)=>t).sort((e,n)=>r(t[e],t[n])))):e.sort(t)}function Me(e,...t){e=new Set(e);for(const n of t)for(const t of n)e.delete(t);return e}function we(e,t){const n=t[Symbol.iterator](),r=new Set;for(const t of e){if(r.has(t))return!1;let e,a;for(;({value:e,done:a}=n.next())&&!a;){if(Object.is(t,e))return!1;r.add(e)}}return!0}function Se(e){return e instanceof Set?e:new Set(e)}function Te(e,...t){e=new Set(e),t=t.map(Se);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function Ce(e,t){const n=e[Symbol.iterator](),r=new Set;for(const e of t){if(r.has(e))continue;let t,a;for(;({value:t,done:a}=n.next());){if(a)return!1;if(r.add(t),Object.is(e,t))break}}return!0}function Le(e,t){return Ce(t,e)}function Pe(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a,i,o,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,a,i,o,l],c=0;(u=new Error(t.replace(/%s/g,(function(){return s[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function o(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,o=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?o="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(o="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==o||null!==l){var u=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=a),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return o})),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return A})),n.d(t,"h",(function(){return E})),n.d(t,"g",(function(){return x})),n.d(t,"b",(function(){return M})),n.d(t,"f",(function(){return P}));var r=n(141);function a(){}var i=.7,o=1/i,l="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),h=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),m=new RegExp("^hsl\\("+[u,s,s]+"\\)$"),g=new RegExp("^hsla\\("+[u,s,s,u]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function A(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_(t):3===n?new M(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?O(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?O(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new M(t[1],t[2],t[3],1):(t=f.exec(e))?new M(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?O(t[1],t[2],t[3],t[4]):(t=h.exec(e))?O(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):v.hasOwnProperty(e)?_(v[e]):"transparent"===e?new M(NaN,NaN,NaN,0):null}function _(e){return new M(e>>16&255,e>>8&255,255&e,1)}function O(e,t,n,r){return r<=0&&(e=t=n=NaN),new M(e,t,n,r)}function E(e){return e instanceof a||(e=A(e)),e?new M((e=e.rgb()).r,e.g,e.b,e.opacity):new M}function x(e,t,n,r){return 1===arguments.length?E(e):new M(e,t,n,null==r?1:r)}function M(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function w(){return"#"+T(this.r)+T(this.g)+T(this.b)}function S(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function T(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new k(e,t,n,r)}function L(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=A(e)),!e)return new k;if(e instanceof k)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,u=o-i,s=(o+i)/2;return u?(l=t===o?(n-r)/u+6*(n0&&s<1?0:l,new k(l,u,s,e.opacity)}function P(e,t,n,r){return 1===arguments.length?L(e):new k(e,t,n,null==r?1:r)}function k(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Object(r.a)(a,A,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return L(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(M,x,Object(r.b)(a,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new M(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:w,formatHex:w,formatRgb:S,toString:S})),Object(r.a)(k,P,Object(r.b)(a,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new k(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new M(D(e>=240?e-240:e+120,a,r),D(e,a,r),D(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(11),a=n(12),i=n(25),o=n(364),l=n(173),u=n(232),s=n(265),c=n(73),d=n(1899),f="Resource subclass must define virtual methods",p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),Object(l.b)(t);var a=n.id,i=n.userData,o=void 0===i?{}:i;this.gl=t,this.id=a||Object(s.c)(this.constructor.name),this.userData=o,this._bound=!1,this._handle=n.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}return Object(a.a)(e,[{key:"toString",value:function(){return"".concat(this.constructor.name,"(").concat(this.id,")")}},{key:"delete",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.deleteChildren,n=void 0!==t&&t,r=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,r&&n&&r.filter(Boolean).forEach((function(e){e.delete()})),this}},{key:"bind",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!=typeof t?(this._bindHandle(t),this):(this._bound?e=t():(this._bindHandle(this.handle),this._bound=!0,e=t(),this._bound=!1,this._bindHandle(null)),e)}},{key:"unbind",value:function(){this.bind(null)}},{key:"getParameter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(u.b)(this.gl,e),Object(c.a)(e);var n=this.constructor.PARAMETERS||{},r=n[e];if(r){var a=Object(i.g)(this.gl),o=(!("webgl2"in r)||a)&&(!("extension"in r)||this.gl.getExtension(r.extension));if(!o){var l=r.webgl1,s="webgl2"in r?r.webgl2:r.webgl1,d=a?s:l;return d}}return this._getParameter(e,t)}},{key:"getParameters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=t.parameters,r=t.keys,a=this.constructor.PARAMETERS||{},o=Object(i.g)(this.gl),l={},s=n||Object.keys(a),c=!0,d=!1,f=void 0;try{for(var p,h=s[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value,g=a[m],v=g&&(!("webgl2"in g)||o)&&(!("extension"in g)||this.gl.getExtension(g.extension));if(v){var y=r?Object(u.a)(this.gl,m):m;l[y]=this.getParameter(m,e),r&&"GLenum"===g.type&&(l[y]=Object(u.a)(this.gl,l[y]))}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return l}},{key:"setParameter",value:function(e,t){e=Object(u.b)(this.gl,e),Object(c.a)(e);var n=(this.constructor.PARAMETERS||{})[e];if(n){var r=Object(i.g)(this.gl);if(!((!("webgl2"in n)||r)&&(!("extension"in n)||this.gl.getExtension(n.extension))))throw new Error("Parameter not available on this platform");"GLenum"===n.type&&(t=Object(u.b)(t))}return this._setParameter(e,t),this}},{key:"setParameters",value:function(e){for(var t in e)this.setParameter(t,e[t]);return this}},{key:"stubRemovedMethods",value:function(e,t,n){return Object(d.a)(this,e,t,n)}},{key:"initialize",value:function(e){}},{key:"_createHandle",value:function(){throw new Error(f)}},{key:"_deleteHandle",value:function(){throw new Error(f)}},{key:"_bindHandle",value:function(){throw new Error(f)}},{key:"_getOptsFromHandle",value:function(){throw new Error(f)}},{key:"_getParameter",value:function(e,t){throw new Error(f)}},{key:"_setParameter",value:function(e,t){throw new Error(f)}},{key:"_context",value:function(){return this.gl.luma=this.gl.luma||{},this.gl.luma}},{key:"_addStats",value:function(){var e=this.constructor.name,t=o.a.get("Resource Counts");t.get("Resources Created").incrementCount(),t.get("".concat(e,"s Created")).incrementCount(),t.get("".concat(e,"s Active")).incrementCount()}},{key:"_removeStats",value:function(){var e=this.constructor.name;o.a.get("Resource Counts").get("".concat(e,"s Active")).decrementCount()}},{key:"_trackAllocatedMemory",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.name,n=o.a.get("Memory Usage");n.get("GPU Memory").addCount(e),n.get("".concat(t," Memory")).addCount(e),this.byteLength=e}},{key:"_trackDeallocatedMemory",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.constructor.name,t=o.a.get("Memory Usage");t.get("GPU Memory").subtractCount(this.byteLength),t.get("".concat(e," Memory")).subtractCount(this.byteLength),this.byteLength=0}},{key:"handle",get:function(){return this._handle}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(84),a=n(24),i=n(26),o=n(62),l=n(110),u=n(44),s=n(22),c=n(92),d=n(54),f=Math.PI/180,p=Object(l.a)(),h=[0,0,0],m={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]},g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e);var n=t.id,r=void 0===n?null:n,i=t.x,o=void 0===i?0:i,l=t.y,u=void 0===l?0:l,s=t.width,c=void 0===s?1:s,d=t.height,f=void 0===d?1:d;this.id=r||this.constructor.displayName||"viewport",this.x=o,this.y=u,this.width=c||1,this.height=f||1,this._frustumPlanes={},this._initViewMatrix(t),this._initProjectionMatrix(t),this._initPixelMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return Object(i.a)(e,[{key:"equals",value:function(t){return t instanceof e&&(this===t||t.width===this.width&&t.height===this.height&&t.scale===this.scale&&Object(u.f)(t.projectionMatrix,this.projectionMatrix)&&Object(u.f)(t.viewMatrix,this.viewMatrix))}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,a=void 0===n||n,i=this.projectPosition(e),o=Object(c.n)(i,this.pixelProjectionMatrix),l=Object(r.a)(o,2),u=l[0],s=l[1],d=a?s:this.height-s;return 2===e.length?[u,d]:[u,d,o[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,a=void 0===n||n,i=t.targetZ,o=Object(r.a)(e,3),l=o[0],u=o[1],s=o[2],d=a?u:this.height-u,f=i&&i*this.distanceScales.unitsPerMeter[2],p=Object(c.l)([l,d,s],this.pixelUnprojectionMatrix,f),h=this.unprojectPosition(p),m=Object(r.a)(h,3),g=m[0],v=m[1],y=m[2];return Number.isFinite(s)?[g,v,y]:Number.isFinite(i)?[g,v,i]:[g,v]}},{key:"projectPosition",value:function(e){var t=this.projectFlat(e),n=Object(r.a)(t,2);return[n[0],n[1],(e[2]||0)*this.distanceScales.unitsPerMeter[2]]}},{key:"unprojectPosition",value:function(e){var t=this.unprojectFlat(e),n=Object(r.a)(t,2);return[n[0],n[1],(e[2]||0)*this.distanceScales.metersPerUnit[2]]}},{key:"projectFlat",value:function(e){return this.isGeospatial?Object(c.j)(e):e}},{key:"unprojectFlat",value:function(e){return this.isGeospatial?Object(c.m)(e):e}},{key:"getBounds",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={targetZ:e.z||0},n=this.unproject([0,0],t),r=this.unproject([this.width,0],t),a=this.unproject([0,this.height],t),i=this.unproject([this.width,this.height],t);return[Math.min(n[0],r[0],a[0],i[0]),Math.min(n[1],r[1],a[1],i[1]),Math.max(n[0],r[0],a[0],i[0]),Math.max(n[1],r[1],a[1],i[1])]}},{key:"getDistanceScales",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?Object(c.e)({longitude:e[0],latitude:e[1],highPrecision:!0}):this.distanceScales}},{key:"containsPixel",value:function(e){var t=e.x,n=e.y,r=e.width,a=void 0===r?1:r,i=e.height,o=void 0===i?1:i;return t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:console;_(e,null,n,h,m,t);var r,a=c(t);try{for(a.s();!(r=a.n()).done;){var i=r.value,o=e&&e[i.id]||{},l=i.options&&i.options[i.id]||{},u=i.defaultOptions&&i.defaultOptions[i.id]||{};_(o,i.id,n,l,u,t)}}catch(e){a.e(e)}finally{a.f()}}(e,n=Array.isArray(n)?n:[n]),E(t,e,r)}function A(e,t){var n=v(),r=e.fetch||n.fetch;return"function"==typeof r?r:Object(i.f)(r)?function(e){return Object(o.a)(e,r)}:t&&t.fetch?t.fetch:function(t){return Object(o.a)(t,e)}}function _(e,t,n,r,a,o){var l=t||"Top level",u=t?"".concat(t,"."):"";for(var s in e){var c=!t&&Object(i.f)(e[s]);if(!(s in r))if(s in a)n.warn("".concat(l," loader option '").concat(u).concat(s,"' deprecated, use '").concat(a[s],"'"));else if(!c){var d=O(s,o);n.warn("".concat(l," loader option '").concat(u).concat(s,"' not recognized. ").concat(d))}}}function O(e,t){var n,r=e.toLowerCase(),a="",i=c(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;for(var l in o.options){if(e===l)return"Did you mean '".concat(o.id,".").concat(l,"'?");var u=l.toLowerCase();(r.startsWith(u)||u.startsWith(r))&&(a=a||"Did you mean '".concat(o.id,".").concat(l,"'?"))}}}catch(e){i.e(e)}finally{i.f()}return a}function E(e,t,n){var r=p({},e.options||{});return function(e,t){t&&!("baseUri"in e)&&(e.baseUri=t)}(r,n),null===r.log&&(r.log=new s),x(r,v()),x(r,t),r}function x(e,t){for(var n in t)if(n in t){var r=t[n];Object(i.h)(r)&&Object(i.h)(e[n])?e[n]=p(p({},e[n]),t[n]):e[n]=t[n]}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(367),a=n(90),i=n(79),o=n(433);function l(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.a)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Object(o.a)(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,i,o=t(),l=0,u=o.length-1,s=o[l],c=o[u],d=10;for(c0;){if((i=Object(r.b)(s,c,n))===a)return o[l]=s,o[u]=c,t(o);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}a=i}return e},e}function u(){var e=Object(a.b)();return e.copy=function(){return Object(a.a)(e,u())},i.b.apply(e,arguments),l(e)}},function(e,t,n){"use strict";(function(e,r){n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p}));var a=n(37),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document},o=i.self||i.window||i.global,l=i.window||i.self||i.global,u=i.global||i.self||i.window,s=i.document||{},c="object"!==(void 0===r?"undefined":Object(a.a)(r))||"[object process]"!==String(r)||r.browser,d="function"==typeof importScripts,f=void 0!==r&&r.version&&r.version.match(/v([0-9]*)/),p=f&&parseFloat(f[1])||0}).call(this,n(67),n(112))},function(e,t,n){"use strict";function r(e){var t=e.source,n=e.target,r=e.start,a=void 0===r?0:r,i=e.end,o=e.getData;i=i||n.length;var l=t.length,u=i-a;if(l>u)n.set(t.subarray(0,u),a);else if(n.set(t,a),o)for(var s=l;s=m)){var v=g?a.value:a.getBuffer().getData({srcByteOffset:f});if(a.settings.normalized&&!g){var y=u;u=function(e,t){return a._normalizeConstant(y(e,t))}}var b=g?function(e,t){return u(v,t)}:function(e,t){return u(v.subarray(e,e+d),t)},A=t.getData({length:i}),_=new Float32Array(m);!function(e){var t=e.source,n=e.target,a=e.size,i=e.getData,o=e.sourceStartIndices,l=e.targetStartIndices;if(!Array.isArray(l))return r({source:t,target:n,getData:i}),n;for(var u=0,s=0,c=i&&function(e,t){return i(e+s,t)},d=Math.min(o.length,l.length),f=1;fObject(f.a)(e,t))},m=n(307),g=n(191),v=function(e){return"string"==typeof e?new g.a([document.querySelectorAll(e)],[document.documentElement]):new g.a([null==e?[]:Object(m.a)(e)],g.c)},y=n(295),b=n(447),A=n(448),_=n(297)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(2),a=n(119);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&e.extensions[0]),(e.parseTextSync||e.parseText)&&(e.text=!0),e.text||(e.binary=!0),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(37),a=n(11),i=n(12),o=n(230);var l=n(171),u=n(111),s=n(166),c=function(){function e(t){if(Object(a.a)(this,e),t instanceof e)return t;t||(t={json:{asset:{version:"2.0",generator:"loaders.gl"},buffers:[]},buffers:[]}),this.byteLength=0,this.gltf=t,Object(u.a)(this.gltf.json)}return Object(i.a)(e,[{key:"getApplicationData",value:function(e){return this.json[e]}},{key:"getExtraData",value:function(e){return(this.json.extras||{})[e]}},{key:"getExtension",value:function(e){var t=this.getUsedExtensions().find((function(t){return t===e})),n=this.json.extensions||{};return t?n[e]||!0:null}},{key:"getRequiredExtension",value:function(e){return this.getRequiredExtensions().find((function(t){return t===e}))?this.getExtension(e):null}},{key:"getRequiredExtensions",value:function(){return this.json.extensionsRequired||[]}},{key:"getUsedExtensions",value:function(){return this.json.extensionsUsed||[]}},{key:"getObjectExtension",value:function(e,t){return(e.extensions||{})[t]}},{key:"getScene",value:function(e){return this.getObject("scenes",e)}},{key:"getNode",value:function(e){return this.getObject("nodes",e)}},{key:"getSkin",value:function(e){return this.getObject("skins",e)}},{key:"getMesh",value:function(e){return this.getObject("meshes",e)}},{key:"getMaterial",value:function(e){return this.getObject("materials",e)}},{key:"getAccessor",value:function(e){return this.getObject("accessors",e)}},{key:"getCamera",value:function(e){return null}},{key:"getTexture",value:function(e){return this.getObject("textures",e)}},{key:"getSampler",value:function(e){return this.getObject("samplers",e)}},{key:"getImage",value:function(e){return this.getObject("images",e)}},{key:"getBufferView",value:function(e){return this.getObject("bufferViews",e)}},{key:"getBuffer",value:function(e){return this.getObject("buffers",e)}},{key:"getObject",value:function(e,t){if("object"===Object(r.a)(t))return t;var n=this.json[e]&&this.json[e][t];if(!n)throw new Error("glTF file error: Could not find ".concat(e,"[").concat(t,"]"));return n}},{key:"getTypedArrayForBufferView",value:function(e){var t=(e=this.getBufferView(e)).buffer,n=this.gltf.buffers[t];Object(u.a)(n);var r=(e.byteOffset||0)+n.byteOffset;return new Uint8Array(n.arrayBuffer,r,e.byteLength)}},{key:"getTypedArrayForAccessor",value:function(e){e=this.getAccessor(e);var t=this.getBufferView(e.bufferView),n=this.getBuffer(t.buffer).data,r=Object(s.a)(e,t),a=r.ArrayType,i=r.length;return new a(n,t.byteOffset+e.byteOffset,i)}},{key:"getTypedArrayForImageData",value:function(e){e=this.getAccessor(e);var t=this.getBufferView(e.bufferView),n=this.getBuffer(t.buffer).data,r=t.byteOffset||0;return new Uint8Array(n,r,t.byteLength)}},{key:"addApplicationData",value:function(e,t){return this.json[e]=t,this}},{key:"addExtraData",value:function(e,t){return this.json.extras=this.json.extras||{},this.json.extras[e]=t,this}},{key:"addObjectExtension",value:function(e,t,n){return Object(u.a)(n),e.extensions=e.extensions||{},e.extensions[t]=n,this.registerUsedExtension(t),this}},{key:"setObjectExtension",value:function(e,t,n){(e.extensions||{})[t]=n}},{key:"removeObjectExtension",value:function(e,t){var n=e.extensions||{},r=n[t];return delete n[t],r}},{key:"addExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(u.a)(t),this.json.extensions=this.json.extensions||{},this.json.extensions[e]=t,this.registerUsedExtension(e),t}},{key:"addRequiredExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(u.a)(t),this.addExtension(e,t),this.registerRequiredExtension(e),t}},{key:"registerUsedExtension",value:function(e){this.json.extensionsUsed=this.json.extensionsUsed||[],this.json.extensionsUsed.find((function(t){return t===e}))||this.json.extensionsUsed.push(e)}},{key:"registerRequiredExtension",value:function(e){this.registerUsedExtension(e),this.json.extensionsRequired=this.json.extensionsRequired||[],this.json.extensionsRequired.find((function(t){return t===e}))||this.json.extensionsRequired.push(e)}},{key:"removeExtension",value:function(e){this.json.extensionsRequired&&this._removeStringFromArray(this.json.extensionsRequired,e),this.json.extensionsUsed&&this._removeStringFromArray(this.json.extensionsUsed,e),this.json.extensions&&delete this.json.extensions[e]}},{key:"addMesh",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,r=this._addAttributes(e),a={primitives:[{attributes:r,indices:t,mode:n}]};return this.json.meshes=this.json.meshes||[],this.json.meshes.push(a),this.json.meshes.length-1}},{key:"addPointCloud",value:function(e){var t={primitives:[{attributes:this._addAttributes(e),mode:0}]};return this.json.meshes=this.json.meshes||[],this.json.meshes.push(t),this.json.meshes.length-1}},{key:"addImage",value:function(e,t){var n,r;t=t||(n=e,(r=Object(o.a)(n))?r.mimeType:null);var a={bufferView:this.addBufferView(e),mimeType:t};return this.json.images=this.json.images||[],this.json.images.push(a),this.json.images.length-1}},{key:"addBufferView",value:function(e){var t=e.byteLength;Object(u.a)(Number.isFinite(t)),this.sourceBuffers=this.sourceBuffers||[],this.sourceBuffers.push(e);var n={buffer:0,byteOffset:this.byteLength,byteLength:t};return this.byteLength+=Object(l.c)(t),this.json.bufferViews=this.json.bufferViews||[],this.json.bufferViews.push(n),this.json.bufferViews.length-1}},{key:"addAccessor",value:function(e,t){var n={bufferView:e,type:Object(s.b)(t.size),componentType:t.componentType,count:t.count};return this.json.accessors=this.json.accessors||[],this.json.accessors.push(n),this.json.accessors.length-1}},{key:"addBinaryBuffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{size:3},n=this.addBufferView(e),r={size:t.size,componentType:Object(s.c)(e),count:Math.round(e.length/t.size)};return this.addAccessor(n,Object.assign(r,t))}},{key:"createBinaryChunk",value:function(){if(!this.arrayBuffer){for(var e=this.byteLength,t=new ArrayBuffer(e),n=new Uint8Array(t),r=0,a=0;a-1?e.splice(r,1):n=!1}}},{key:"json",get:function(){return this.gltf.json}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"UNITS",(function(){return p})),n.d(t,"h3IsValid",(function(){return k})),n.d(t,"h3IsPentagon",(function(){return D})),n.d(t,"h3IsResClassIII",(function(){return R})),n.d(t,"h3GetBaseCell",(function(){return j})),n.d(t,"h3GetFaces",(function(){return I})),n.d(t,"h3GetResolution",(function(){return F})),n.d(t,"geoToH3",(function(){return N})),n.d(t,"h3ToGeo",(function(){return B})),n.d(t,"h3ToGeoBoundary",(function(){return z})),n.d(t,"h3ToParent",(function(){return U})),n.d(t,"h3ToChildren",(function(){return V})),n.d(t,"h3ToCenterChild",(function(){return H})),n.d(t,"kRing",(function(){return Y})),n.d(t,"kRingDistances",(function(){return W})),n.d(t,"hexRing",(function(){return G})),n.d(t,"polyfill",(function(){return q})),n.d(t,"h3SetToMultiPolygon",(function(){return X})),n.d(t,"compact",(function(){return Z})),n.d(t,"uncompact",(function(){return K})),n.d(t,"h3IndexesAreNeighbors",(function(){return J})),n.d(t,"getH3UnidirectionalEdge",(function(){return Q})),n.d(t,"getOriginH3IndexFromUnidirectionalEdge",(function(){return $})),n.d(t,"getDestinationH3IndexFromUnidirectionalEdge",(function(){return ee})),n.d(t,"h3UnidirectionalEdgeIsValid",(function(){return te})),n.d(t,"getH3IndexesFromUnidirectionalEdge",(function(){return ne})),n.d(t,"getH3UnidirectionalEdgesFromHexagon",(function(){return re})),n.d(t,"getH3UnidirectionalEdgeBoundary",(function(){return ae})),n.d(t,"h3Distance",(function(){return ie})),n.d(t,"h3Line",(function(){return oe})),n.d(t,"experimentalH3ToLocalIj",(function(){return le})),n.d(t,"experimentalLocalIjToH3",(function(){return ue})),n.d(t,"pointDist",(function(){return se})),n.d(t,"cellArea",(function(){return ce})),n.d(t,"exactEdgeLength",(function(){return de})),n.d(t,"hexArea",(function(){return fe})),n.d(t,"edgeLength",(function(){return pe})),n.d(t,"numHexagons",(function(){return he})),n.d(t,"getRes0Indexes",(function(){return me})),n.d(t,"getPentagonIndexes",(function(){return ge})),n.d(t,"degsToRads",(function(){return ve})),n.d(t,"radsToDegs",(function(){return ye}));var r=function(e){var t,n=void 0!==(e=e||{})?e:{},r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);var a,i=[],o="";document.currentScript&&(o=document.currentScript.src),o=0!==o.indexOf("blob:")?o.substr(0,o.lastIndexOf("/")+1):"",a=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var a=Z(e);a?t(a.buffer):n()}},r.onerror=n,r.send(null)};var l=n.print||console.log.bind(console),u=n.printErr||console.warn.bind(console);for(t in r)r.hasOwnProperty(t)&&(n[t]=r[t]);r=null,n.arguments&&(i=n.arguments);var s=0,c=function(){return s};var d=!1;function f(e){var t,r=n["_"+e];return t="Cannot call unknown function "+e+", make sure it is exported",r||ue("Assertion failed: "+t),r}function p(e,t,n,r,a){var i={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);(function(e,t,n){(function(e,t,n,r){if(!(r>0))return 0;for(var a=n,i=n+r-1,o=0;o=55296&&l<=57343){var u=e.charCodeAt(++o);l=65536+((1023&l)<<10)|1023&u}if(l<=127){if(n>=i)break;t[n++]=l}else if(l<=2047){if(n+1>=i)break;t[n++]=192|l>>6,t[n++]=128|63&l}else if(l<=65535){if(n+2>=i)break;t[n++]=224|l>>12,t[n++]=128|l>>6&63,t[n++]=128|63&l}else{if(n+3>=i)break;t[n++]=240|l>>18,t[n++]=128|l>>12&63,t[n++]=128|l>>6&63,t[n++]=128|63&l}}t[n]=0})(e,y,t,n)})(e,t=ee(n),n)}return t},array:function(e){var t=ee(e.length);return function(e,t){v.set(e,t)}(e,t),t}};var o=f(e),l=[],u=0;if(r)for(var s=0;s=r);)++a;if(a-t>16&&e.subarray&&h)return h.decode(e.subarray(t,a));for(var i="";t>10,56320|1023&s)}}else i+=String.fromCharCode((31&o)<<6|l)}else i+=String.fromCharCode(o)}return i}(y,e,t):""}var g,v,y,b,A,_,O;"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function E(e,t){return e%t>0&&(e+=t-e%t),e}function x(e){g=e,n.HEAP8=v=new Int8Array(e),n.HEAP16=b=new Int16Array(e),n.HEAP32=A=new Int32Array(e),n.HEAPU8=y=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=_=new Float32Array(e),n.HEAPF64=O=new Float64Array(e)}var M=n.TOTAL_MEMORY||33554432;function w(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?n.dynCall_v(r):n.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}M=(g=n.buffer?n.buffer:new ArrayBuffer(M)).byteLength,x(g),A[6004]=5266928;var S=[],T=[],C=[],L=[];var P=Math.abs,k=Math.ceil,D=Math.floor,R=Math.min,j=0,I=null,F=null;n.preloadedImages={},n.preloadedAudios={};var N,B,z=null,U="data:application/octet-stream;base64,";function V(e){return String.prototype.startsWith?e.startsWith(U):0===e.indexOf(U)}z="data:application/octet-stream;base64,AAAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAABAAAAAMAAAAGAAAABQAAAAIAAAAAAAAAAgAAAAMAAAABAAAABAAAAAYAAAAAAAAABQAAAAMAAAAGAAAABAAAAAUAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAABAAAABQAAAAIAAAAAAAAAAQAAAAMAAAAGAAAABAAAAAYAAAAAAAAABQAAAAIAAAABAAAABAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABgAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAAAAAAABgAAAAAAAAADAAAAAgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAUAAAAEAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAEAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAACAAAABAAAAAMAAAAIAAAAAQAAAAcAAAAGAAAACQAAAAAAAAADAAAAAgAAAAIAAAAGAAAACgAAAAsAAAAAAAAAAQAAAAUAAAADAAAADQAAAAEAAAAHAAAABAAAAAwAAAAAAAAABAAAAH8AAAAPAAAACAAAAAMAAAAAAAAADAAAAAUAAAACAAAAEgAAAAoAAAAIAAAAAAAAABAAAAAGAAAADgAAAAsAAAARAAAAAQAAAAkAAAACAAAABwAAABUAAAAJAAAAEwAAAAMAAAANAAAAAQAAAAgAAAAFAAAAFgAAABAAAAAEAAAAAAAAAA8AAAAJAAAAEwAAAA4AAAAUAAAAAQAAAAcAAAAGAAAACgAAAAsAAAAYAAAAFwAAAAUAAAACAAAAEgAAAAsAAAARAAAAFwAAABkAAAACAAAABgAAAAoAAAAMAAAAHAAAAA0AAAAaAAAABAAAAA8AAAADAAAADQAAABoAAAAVAAAAHQAAAAMAAAAMAAAABwAAAA4AAAB/AAAAEQAAABsAAAAJAAAAFAAAAAYAAAAPAAAAFgAAABwAAAAfAAAABAAAAAgAAAAMAAAAEAAAABIAAAAhAAAAHgAAAAgAAAAFAAAAFgAAABEAAAALAAAADgAAAAYAAAAjAAAAGQAAABsAAAASAAAAGAAAAB4AAAAgAAAABQAAAAoAAAAQAAAAEwAAACIAAAAUAAAAJAAAAAcAAAAVAAAACQAAABQAAAAOAAAAEwAAAAkAAAAoAAAAGwAAACQAAAAVAAAAJgAAABMAAAAiAAAADQAAAB0AAAAHAAAAFgAAABAAAAApAAAAIQAAAA8AAAAIAAAAHwAAABcAAAAYAAAACwAAAAoAAAAnAAAAJQAAABkAAAAYAAAAfwAAACAAAAAlAAAACgAAABcAAAASAAAAGQAAABcAAAARAAAACwAAAC0AAAAnAAAAIwAAABoAAAAqAAAAHQAAACsAAAAMAAAAHAAAAA0AAAAbAAAAKAAAACMAAAAuAAAADgAAABQAAAARAAAAHAAAAB8AAAAqAAAALAAAAAwAAAAPAAAAGgAAAB0AAAArAAAAJgAAAC8AAAANAAAAGgAAABUAAAAeAAAAIAAAADAAAAAyAAAAEAAAABIAAAAhAAAAHwAAACkAAAAsAAAANQAAAA8AAAAWAAAAHAAAACAAAAAeAAAAGAAAABIAAAA0AAAAMgAAACUAAAAhAAAAHgAAADEAAAAwAAAAFgAAABAAAAApAAAAIgAAABMAAAAmAAAAFQAAADYAAAAkAAAAMwAAACMAAAAuAAAALQAAADgAAAARAAAAGwAAABkAAAAkAAAAFAAAACIAAAATAAAANwAAACgAAAA2AAAAJQAAACcAAAA0AAAAOQAAABgAAAAXAAAAIAAAACYAAAB/AAAAIgAAADMAAAAdAAAALwAAABUAAAAnAAAAJQAAABkAAAAXAAAAOwAAADkAAAAtAAAAKAAAABsAAAAkAAAAFAAAADwAAAAuAAAANwAAACkAAAAxAAAANQAAAD0AAAAWAAAAIQAAAB8AAAAqAAAAOgAAACsAAAA+AAAAHAAAACwAAAAaAAAAKwAAAD4AAAAvAAAAQAAAABoAAAAqAAAAHQAAACwAAAA1AAAAOgAAAEEAAAAcAAAAHwAAACoAAAAtAAAAJwAAACMAAAAZAAAAPwAAADsAAAA4AAAALgAAADwAAAA4AAAARAAAABsAAAAoAAAAIwAAAC8AAAAmAAAAKwAAAB0AAABFAAAAMwAAAEAAAAAwAAAAMQAAAB4AAAAhAAAAQwAAAEIAAAAyAAAAMQAAAH8AAAA9AAAAQgAAACEAAAAwAAAAKQAAADIAAAAwAAAAIAAAAB4AAABGAAAAQwAAADQAAAAzAAAARQAAADYAAABHAAAAJgAAAC8AAAAiAAAANAAAADkAAABGAAAASgAAACAAAAAlAAAAMgAAADUAAAA9AAAAQQAAAEsAAAAfAAAAKQAAACwAAAA2AAAARwAAADcAAABJAAAAIgAAADMAAAAkAAAANwAAACgAAAA2AAAAJAAAAEgAAAA8AAAASQAAADgAAABEAAAAPwAAAE0AAAAjAAAALgAAAC0AAAA5AAAAOwAAAEoAAABOAAAAJQAAACcAAAA0AAAAOgAAAH8AAAA+AAAATAAAACwAAABBAAAAKgAAADsAAAA/AAAATgAAAE8AAAAnAAAALQAAADkAAAA8AAAASAAAAEQAAABQAAAAKAAAADcAAAAuAAAAPQAAADUAAAAxAAAAKQAAAFEAAABLAAAAQgAAAD4AAAArAAAAOgAAACoAAABSAAAAQAAAAEwAAAA/AAAAfwAAADgAAAAtAAAATwAAADsAAABNAAAAQAAAAC8AAAA+AAAAKwAAAFQAAABFAAAAUgAAAEEAAAA6AAAANQAAACwAAABWAAAATAAAAEsAAABCAAAAQwAAAFEAAABVAAAAMQAAADAAAAA9AAAAQwAAAEIAAAAyAAAAMAAAAFcAAABVAAAARgAAAEQAAAA4AAAAPAAAAC4AAABaAAAATQAAAFAAAABFAAAAMwAAAEAAAAAvAAAAWQAAAEcAAABUAAAARgAAAEMAAAA0AAAAMgAAAFMAAABXAAAASgAAAEcAAABZAAAASQAAAFsAAAAzAAAARQAAADYAAABIAAAAfwAAAEkAAAA3AAAAUAAAADwAAABYAAAASQAAAFsAAABIAAAAWAAAADYAAABHAAAANwAAAEoAAABOAAAAUwAAAFwAAAA0AAAAOQAAAEYAAABLAAAAQQAAAD0AAAA1AAAAXgAAAFYAAABRAAAATAAAAFYAAABSAAAAYAAAADoAAABBAAAAPgAAAE0AAAA/AAAARAAAADgAAABdAAAATwAAAFoAAABOAAAASgAAADsAAAA5AAAAXwAAAFwAAABPAAAATwAAAE4AAAA/AAAAOwAAAF0AAABfAAAATQAAAFAAAABEAAAASAAAADwAAABjAAAAWgAAAFgAAABRAAAAVQAAAF4AAABlAAAAPQAAAEIAAABLAAAAUgAAAGAAAABUAAAAYgAAAD4AAABMAAAAQAAAAFMAAAB/AAAASgAAAEYAAABkAAAAVwAAAFwAAABUAAAARQAAAFIAAABAAAAAYQAAAFkAAABiAAAAVQAAAFcAAABlAAAAZgAAAEIAAABDAAAAUQAAAFYAAABMAAAASwAAAEEAAABoAAAAYAAAAF4AAABXAAAAUwAAAGYAAABkAAAAQwAAAEYAAABVAAAAWAAAAEgAAABbAAAASQAAAGMAAABQAAAAaQAAAFkAAABhAAAAWwAAAGcAAABFAAAAVAAAAEcAAABaAAAATQAAAFAAAABEAAAAagAAAF0AAABjAAAAWwAAAEkAAABZAAAARwAAAGkAAABYAAAAZwAAAFwAAABTAAAATgAAAEoAAABsAAAAZAAAAF8AAABdAAAATwAAAFoAAABNAAAAbQAAAF8AAABqAAAAXgAAAFYAAABRAAAASwAAAGsAAABoAAAAZQAAAF8AAABcAAAATwAAAE4AAABtAAAAbAAAAF0AAABgAAAAaAAAAGIAAABuAAAATAAAAFYAAABSAAAAYQAAAH8AAABiAAAAVAAAAGcAAABZAAAAbwAAAGIAAABuAAAAYQAAAG8AAABSAAAAYAAAAFQAAABjAAAAUAAAAGkAAABYAAAAagAAAFoAAABxAAAAZAAAAGYAAABTAAAAVwAAAGwAAAByAAAAXAAAAGUAAABmAAAAawAAAHAAAABRAAAAVQAAAF4AAABmAAAAZQAAAFcAAABVAAAAcgAAAHAAAABkAAAAZwAAAFsAAABhAAAAWQAAAHQAAABpAAAAbwAAAGgAAABrAAAAbgAAAHMAAABWAAAAXgAAAGAAAABpAAAAWAAAAGcAAABbAAAAcQAAAGMAAAB0AAAAagAAAF0AAABjAAAAWgAAAHUAAABtAAAAcQAAAGsAAAB/AAAAZQAAAF4AAABzAAAAaAAAAHAAAABsAAAAZAAAAF8AAABcAAAAdgAAAHIAAABtAAAAbQAAAGwAAABdAAAAXwAAAHUAAAB2AAAAagAAAG4AAABiAAAAaAAAAGAAAAB3AAAAbwAAAHMAAABvAAAAYQAAAG4AAABiAAAAdAAAAGcAAAB3AAAAcAAAAGsAAABmAAAAZQAAAHgAAABzAAAAcgAAAHEAAABjAAAAdAAAAGkAAAB1AAAAagAAAHkAAAByAAAAcAAAAGQAAABmAAAAdgAAAHgAAABsAAAAcwAAAG4AAABrAAAAaAAAAHgAAAB3AAAAcAAAAHQAAABnAAAAdwAAAG8AAABxAAAAaQAAAHkAAAB1AAAAfwAAAG0AAAB2AAAAcQAAAHkAAABqAAAAdgAAAHgAAABsAAAAcgAAAHUAAAB5AAAAbQAAAHcAAABvAAAAcwAAAG4AAAB5AAAAdAAAAHgAAAB4AAAAcwAAAHIAAABwAAAAeQAAAHcAAAB2AAAAeQAAAHQAAAB4AAAAdwAAAHUAAABxAAAAdgAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAQAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAADAAAABQAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAABQAAAAUAAAAAAAAAAAAAAP////8BAAAAAAAAAAMAAAAEAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAQAAAP//////////AQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAIAAAAAAAAAAAAAAAEAAAACAAAABgAAAAQAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAoAAAACAAAAAAAAAAAAAAABAAAAAQAAAAUAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAAAAAAAAAAAAAEAAAADAAAABwAAAAYAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAJAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAAAAAAAAAAAAQAAAAQAAAAIAAAACgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAAAAAAAAAAABAAAACwAAAA8AAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAgAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAAAAAAAAAAABAAAADAAAABAAAAAMAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAEAAAAKAAAAEwAAAAgAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAgAAAAAAAAAAAAAAAQAAAA0AAAARAAAADQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAAAAAAAAAAAAAEAAAAOAAAAEgAAAA8AAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAAAAAABAAAA//////////8TAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABIAAAAAAAAAGAAAAAAAAAAhAAAAAAAAAB4AAAAAAAAAIAAAAAMAAAAxAAAAAQAAADAAAAADAAAAMgAAAAMAAAAIAAAAAAAAAAUAAAAFAAAACgAAAAUAAAAWAAAAAAAAABAAAAAAAAAAEgAAAAAAAAApAAAAAQAAACEAAAAAAAAAHgAAAAAAAAAEAAAAAAAAAAAAAAAFAAAAAgAAAAUAAAAPAAAAAQAAAAgAAAAAAAAABQAAAAUAAAAfAAAAAQAAABYAAAAAAAAAEAAAAAAAAAACAAAAAAAAAAYAAAAAAAAADgAAAAAAAAAKAAAAAAAAAAsAAAAAAAAAEQAAAAMAAAAYAAAAAQAAABcAAAADAAAAGQAAAAMAAAAAAAAAAAAAAAEAAAAFAAAACQAAAAUAAAAFAAAAAAAAAAIAAAAAAAAABgAAAAAAAAASAAAAAQAAAAoAAAAAAAAACwAAAAAAAAAEAAAAAQAAAAMAAAAFAAAABwAAAAUAAAAIAAAAAQAAAAAAAAAAAAAAAQAAAAUAAAAQAAAAAQAAAAUAAAAAAAAAAgAAAAAAAAAHAAAAAAAAABUAAAAAAAAAJgAAAAAAAAAJAAAAAAAAABMAAAAAAAAAIgAAAAMAAAAOAAAAAQAAABQAAAADAAAAJAAAAAMAAAADAAAAAAAAAA0AAAAFAAAAHQAAAAUAAAABAAAAAAAAAAcAAAAAAAAAFQAAAAAAAAAGAAAAAQAAAAkAAAAAAAAAEwAAAAAAAAAEAAAAAgAAAAwAAAAFAAAAGgAAAAUAAAAAAAAAAQAAAAMAAAAAAAAADQAAAAUAAAACAAAAAQAAAAEAAAAAAAAABwAAAAAAAAAaAAAAAAAAACoAAAAAAAAAOgAAAAAAAAAdAAAAAAAAACsAAAAAAAAAPgAAAAMAAAAmAAAAAQAAAC8AAAADAAAAQAAAAAMAAAAMAAAAAAAAABwAAAAFAAAALAAAAAUAAAANAAAAAAAAABoAAAAAAAAAKgAAAAAAAAAVAAAAAQAAAB0AAAAAAAAAKwAAAAAAAAAEAAAAAwAAAA8AAAAFAAAAHwAAAAUAAAADAAAAAQAAAAwAAAAAAAAAHAAAAAUAAAAHAAAAAQAAAA0AAAAAAAAAGgAAAAAAAAAfAAAAAAAAACkAAAAAAAAAMQAAAAAAAAAsAAAAAAAAADUAAAAAAAAAPQAAAAMAAAA6AAAAAQAAAEEAAAADAAAASwAAAAMAAAAPAAAAAAAAABYAAAAFAAAAIQAAAAUAAAAcAAAAAAAAAB8AAAAAAAAAKQAAAAAAAAAqAAAAAQAAACwAAAAAAAAANQAAAAAAAAAEAAAABAAAAAgAAAAFAAAAEAAAAAUAAAAMAAAAAQAAAA8AAAAAAAAAFgAAAAUAAAAaAAAAAQAAABwAAAAAAAAAHwAAAAAAAAAyAAAAAAAAADAAAAAAAAAAMQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAIQAAAAMAAAAYAAAAAwAAABIAAAADAAAAEAAAAAMAAABGAAAAAAAAAEMAAAAAAAAAQgAAAAMAAAA0AAAAAwAAADIAAAAAAAAAMAAAAAAAAAAlAAAAAwAAACAAAAAAAAAAHgAAAAMAAABTAAAAAAAAAFcAAAADAAAAVQAAAAMAAABKAAAAAwAAAEYAAAAAAAAAQwAAAAAAAAA5AAAAAQAAADQAAAADAAAAMgAAAAAAAAAZAAAAAAAAABcAAAAAAAAAGAAAAAMAAAARAAAAAAAAAAsAAAADAAAACgAAAAMAAAAOAAAAAwAAAAYAAAADAAAAAgAAAAMAAAAtAAAAAAAAACcAAAAAAAAAJQAAAAMAAAAjAAAAAwAAABkAAAAAAAAAFwAAAAAAAAAbAAAAAwAAABEAAAAAAAAACwAAAAMAAAA/AAAAAAAAADsAAAADAAAAOQAAAAMAAAA4AAAAAwAAAC0AAAAAAAAAJwAAAAAAAAAuAAAAAwAAACMAAAADAAAAGQAAAAAAAAAkAAAAAAAAABQAAAAAAAAADgAAAAMAAAAiAAAAAAAAABMAAAADAAAACQAAAAMAAAAmAAAAAwAAABUAAAADAAAABwAAAAMAAAA3AAAAAAAAACgAAAAAAAAAGwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAFAAAAAAAAAAzAAAAAwAAACIAAAAAAAAAEwAAAAMAAABIAAAAAAAAADwAAAADAAAALgAAAAMAAABJAAAAAwAAADcAAAAAAAAAKAAAAAAAAABHAAAAAwAAADYAAAADAAAAJAAAAAAAAABAAAAAAAAAAC8AAAAAAAAAJgAAAAMAAAA+AAAAAAAAACsAAAADAAAAHQAAAAMAAAA6AAAAAwAAACoAAAADAAAAGgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAMwAAAAMAAABSAAAAAwAAAEAAAAAAAAAALwAAAAAAAABMAAAAAwAAAD4AAAAAAAAAKwAAAAMAAABhAAAAAAAAAFkAAAADAAAARwAAAAMAAABiAAAAAwAAAFQAAAAAAAAARQAAAAAAAABgAAAAAwAAAFIAAAADAAAAQAAAAAAAAABLAAAAAAAAAEEAAAAAAAAAOgAAAAMAAAA9AAAAAAAAADUAAAADAAAALAAAAAMAAAAxAAAAAwAAACkAAAADAAAAHwAAAAMAAABeAAAAAAAAAFYAAAAAAAAATAAAAAMAAABRAAAAAwAAAEsAAAAAAAAAQQAAAAAAAABCAAAAAwAAAD0AAAAAAAAANQAAAAMAAABrAAAAAAAAAGgAAAADAAAAYAAAAAMAAABlAAAAAwAAAF4AAAAAAAAAVgAAAAAAAABVAAAAAwAAAFEAAAADAAAASwAAAAAAAAA5AAAAAAAAADsAAAAAAAAAPwAAAAMAAABKAAAAAAAAAE4AAAADAAAATwAAAAMAAABTAAAAAwAAAFwAAAADAAAAXwAAAAMAAAAlAAAAAAAAACcAAAADAAAALQAAAAMAAAA0AAAAAAAAADkAAAAAAAAAOwAAAAAAAABGAAAAAwAAAEoAAAAAAAAATgAAAAMAAAAYAAAAAAAAABcAAAADAAAAGQAAAAMAAAAgAAAAAwAAACUAAAAAAAAAJwAAAAMAAAAyAAAAAwAAADQAAAAAAAAAOQAAAAAAAAAuAAAAAAAAADwAAAAAAAAASAAAAAMAAAA4AAAAAAAAAEQAAAADAAAAUAAAAAMAAAA/AAAAAwAAAE0AAAADAAAAWgAAAAMAAAAbAAAAAAAAACgAAAADAAAANwAAAAMAAAAjAAAAAAAAAC4AAAAAAAAAPAAAAAAAAAAtAAAAAwAAADgAAAAAAAAARAAAAAMAAAAOAAAAAAAAABQAAAADAAAAJAAAAAMAAAARAAAAAwAAABsAAAAAAAAAKAAAAAMAAAAZAAAAAwAAACMAAAAAAAAALgAAAAAAAABHAAAAAAAAAFkAAAAAAAAAYQAAAAMAAABJAAAAAAAAAFsAAAADAAAAZwAAAAMAAABIAAAAAwAAAFgAAAADAAAAaQAAAAMAAAAzAAAAAAAAAEUAAAADAAAAVAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAWQAAAAAAAAA3AAAAAwAAAEkAAAAAAAAAWwAAAAMAAAAmAAAAAAAAAC8AAAADAAAAQAAAAAMAAAAiAAAAAwAAADMAAAAAAAAARQAAAAMAAAAkAAAAAwAAADYAAAAAAAAARwAAAAAAAABgAAAAAAAAAGgAAAAAAAAAawAAAAMAAABiAAAAAAAAAG4AAAADAAAAcwAAAAMAAABhAAAAAwAAAG8AAAADAAAAdwAAAAMAAABMAAAAAAAAAFYAAAADAAAAXgAAAAMAAABSAAAAAAAAAGAAAAAAAAAAaAAAAAAAAABUAAAAAwAAAGIAAAAAAAAAbgAAAAMAAAA6AAAAAAAAAEEAAAADAAAASwAAAAMAAAA+AAAAAwAAAEwAAAAAAAAAVgAAAAMAAABAAAAAAwAAAFIAAAAAAAAAYAAAAAAAAABVAAAAAAAAAFcAAAAAAAAAUwAAAAMAAABlAAAAAAAAAGYAAAADAAAAZAAAAAMAAABrAAAAAwAAAHAAAAADAAAAcgAAAAMAAABCAAAAAAAAAEMAAAADAAAARgAAAAMAAABRAAAAAAAAAFUAAAAAAAAAVwAAAAAAAABeAAAAAwAAAGUAAAAAAAAAZgAAAAMAAAAxAAAAAAAAADAAAAADAAAAMgAAAAMAAAA9AAAAAwAAAEIAAAAAAAAAQwAAAAMAAABLAAAAAwAAAFEAAAAAAAAAVQAAAAAAAABfAAAAAAAAAFwAAAAAAAAAUwAAAAAAAABPAAAAAAAAAE4AAAAAAAAASgAAAAMAAAA/AAAAAQAAADsAAAADAAAAOQAAAAMAAABtAAAAAAAAAGwAAAAAAAAAZAAAAAUAAABdAAAAAQAAAF8AAAAAAAAAXAAAAAAAAABNAAAAAQAAAE8AAAAAAAAATgAAAAAAAAB1AAAABAAAAHYAAAAFAAAAcgAAAAUAAABqAAAAAQAAAG0AAAAAAAAAbAAAAAAAAABaAAAAAQAAAF0AAAABAAAAXwAAAAAAAABaAAAAAAAAAE0AAAAAAAAAPwAAAAAAAABQAAAAAAAAAEQAAAAAAAAAOAAAAAMAAABIAAAAAQAAADwAAAADAAAALgAAAAMAAABqAAAAAAAAAF0AAAAAAAAATwAAAAUAAABjAAAAAQAAAFoAAAAAAAAATQAAAAAAAABYAAAAAQAAAFAAAAAAAAAARAAAAAAAAAB1AAAAAwAAAG0AAAAFAAAAXwAAAAUAAABxAAAAAQAAAGoAAAAAAAAAXQAAAAAAAABpAAAAAQAAAGMAAAABAAAAWgAAAAAAAABpAAAAAAAAAFgAAAAAAAAASAAAAAAAAABnAAAAAAAAAFsAAAAAAAAASQAAAAMAAABhAAAAAQAAAFkAAAADAAAARwAAAAMAAABxAAAAAAAAAGMAAAAAAAAAUAAAAAUAAAB0AAAAAQAAAGkAAAAAAAAAWAAAAAAAAABvAAAAAQAAAGcAAAAAAAAAWwAAAAAAAAB1AAAAAgAAAGoAAAAFAAAAWgAAAAUAAAB5AAAAAQAAAHEAAAAAAAAAYwAAAAAAAAB3AAAAAQAAAHQAAAABAAAAaQAAAAAAAAB3AAAAAAAAAG8AAAAAAAAAYQAAAAAAAABzAAAAAAAAAG4AAAAAAAAAYgAAAAMAAABrAAAAAQAAAGgAAAADAAAAYAAAAAMAAAB5AAAAAAAAAHQAAAAAAAAAZwAAAAUAAAB4AAAAAQAAAHcAAAAAAAAAbwAAAAAAAABwAAAAAQAAAHMAAAAAAAAAbgAAAAAAAAB1AAAAAQAAAHEAAAAFAAAAaQAAAAUAAAB2AAAAAQAAAHkAAAAAAAAAdAAAAAAAAAByAAAAAQAAAHgAAAABAAAAdwAAAAAAAAByAAAAAAAAAHAAAAAAAAAAawAAAAAAAABkAAAAAAAAAGYAAAAAAAAAZQAAAAMAAABTAAAAAQAAAFcAAAADAAAAVQAAAAMAAAB2AAAAAAAAAHgAAAAAAAAAcwAAAAUAAABsAAAAAQAAAHIAAAAAAAAAcAAAAAAAAABcAAAAAQAAAGQAAAAAAAAAZgAAAAAAAAB1AAAAAAAAAHkAAAAFAAAAdwAAAAUAAABtAAAAAQAAAHYAAAAAAAAAeAAAAAAAAABfAAAAAQAAAGwAAAABAAAAcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAB+ogX28rbpPxqumpJv+fM/165tC4ns9D+XaEnTqUsEQFrOtNlC4PA/3U+0XG6P9b9TdUUBxTTjP4PUp8ex1ty/B1rD/EN43z+lcDi6LLrZP/a45NWEHMY/oJ5ijLDZ+j/xw3rjxWPjP2B8A46ioQdAotff3wla2z+FMSpA1jj+v6b5Y1mtPbS/cIu8K0F457/2esiyJpDNv98k5Ts2NeA/pvljWa09tD88ClUJ60MDQPZ6yLImkM0/4ONKxa0UBcD2uOTVhBzGv5G7JRxGave/8cN648Vj47+HCwtkjAXIv6LX398JWtu/qyheaCAL9D9TdUUBxTTjv4gyTxslhwVAB1rD/EN4378EH/28teoFwH6iBfbytum/F6ztFYdK/r/Xrm0Liez0vwcS6wNGWeO/Ws602ULg8L9TCtRLiLT8P8pi5RexJsw/BlIKPVwR5T95Wyu0/QjnP5PjoT7YYcu/mBhKZ6zrwj8wRYS7NebuP3qW6geh+Ls/SLrixebL3r+pcyymN9XrPwmkNHp7xec/GWNMZVAA17+82s+x2BLiPwn2ytbJ9ek/LgEH1sMS1j8yp/2LhTfeP+SnWwtQBbu/d38gkp5X7z8ytsuHaADGPzUYObdf1+m/7IauECWhwz+cjSACjzniP76Z+wUhN9K/1+GEKzup67+/GYr/04baPw6idWOvsuc/ZedTWsRa5b/EJQOuRzi0v/OncYhHPes/h49PixY53j+i8wWfC03Nvw2idWOvsue/ZedTWsRa5T/EJQOuRzi0P/KncYhHPeu/iY9PixY53r+i8wWfC03NP9anWwtQBbs/d38gkp5X778ytsuHaADGvzUYObdf1+k/74auECWhw7+cjSACjzniv8CZ+wUhN9I/1uGEKzup6z+/GYr/04bavwmkNHp7xee/F2NMZVAA1z+82s+x2BLivwr2ytbJ9em/KwEH1sMS1r8yp/2LhTfev81i5RexJsy/BlIKPVwR5b95Wyu0/Qjnv5DjoT7YYcs/nBhKZ6zrwr8wRYS7Nebuv3OW6geh+Lu/SLrixebL3j+pcyymN9Xrv8rHIFfWehZAMBwUdlo0DECTUc17EOb2PxpVB1SWChdAzjbhb9pTDUDQhmdvECX5P9FlMKCC9+g/IIAzjELgE0DajDngMv8GQFhWDmDPjNs/y1guLh96EkAxPi8k7DIEQJCc4URlhRhA3eLKKLwkEECqpNAyTBD/P6xpjXcDiwVAFtl//cQm4z+Ibt3XKiYTQM7mCLUb3QdAoM1t8yVv7D8aLZv2Nk8UQEAJPV5nQwxAtSsfTCoE9z9TPjXLXIIWQBVanC5W9AtAYM3d7Adm9j++5mQz1FoWQBUThyaVBghAwH5muQsV7T89Q1qv82MUQJoWGOfNuBdAzrkClkmwDkDQjKq77t37Py+g0dtitsE/ZwAMTwVPEUBojepluNwBQGYbtuW+t9w/HNWIJs6MEkDTNuQUSlgEQKxktPP5TcQ/ixbLB8JjEUCwuWjXMQYCQAS/R09FkRdAowpiZjhhDkB7LmlczD/7P01iQmhhsAVAnrtTwDy84z/Z6jfQ2TgTQChOCXMnWwpAhrW3daoz8z/HYJvVPI4VQLT3ik5FcA5Angi7LOZd+z+NNVzDy5gXQBXdvVTFUA1AYNMgOeYe+T8+qHXGCwkXQKQTOKwa5AJA8gFVoEMW0T+FwzJyttIRQAEAAAD/////BwAAAP////8xAAAA/////1cBAAD/////YQkAAP////+nQQAA/////5HLAQD/////95AMAP/////B9lcAAAAAAAAAAAAAAAAAAgAAAP////8OAAAA/////2IAAAD/////rgIAAP/////CEgAA/////06DAAD/////IpcDAP/////uIRkA/////4LtrwAAAAAAAAAAAAAAAAAAAAAAAgAAAP//////////AQAAAAMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////wIAAAD//////////wEAAAAAAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA/////////////////////wEAAAD///////////////8CAAAA////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD///////////////////////////////8CAAAA////////////////AQAAAP////////////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAAAQAAAP//////////AgAAAP//////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAAEAAAD//////////wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAgAAAAAAAAACAAAAAQAAAAEAAAACAAAAAgAAAAAAAAAFAAAABQAAAAAAAAACAAAAAgAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAIAAAACAAAAAAAAAAUAAAAGAAAAAAAAAAIAAAACAAAAAwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAAAAAAAAgAAAAEAAAADAAAAAgAAAAIAAAAAAAAABQAAAAcAAAAAAAAAAgAAAAIAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAACAAAAAQAAAAQAAAACAAAAAgAAAAAAAAAFAAAACAAAAAAAAAACAAAAAgAAAAMAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAUAAAAJAAAAAAAAAAIAAAACAAAAAwAAAAUAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAIAAAACAAAAAAAAAAMAAAAOAAAAAgAAAAAAAAACAAAAAwAAAAAAAAAAAAAAAgAAAAIAAAADAAAABgAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAAAIAAAAAAAAAAwAAAAoAAAACAAAAAAAAAAIAAAADAAAAAQAAAAAAAAACAAAAAgAAAAMAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAgAAAAAAAAADAAAACwAAAAIAAAAAAAAAAgAAAAMAAAACAAAAAAAAAAIAAAACAAAAAwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAACAAAAAAAAAAMAAAAMAAAAAgAAAAAAAAACAAAAAwAAAAMAAAAAAAAAAgAAAAIAAAADAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAIAAAAAAAAAAwAAAA0AAAACAAAAAAAAAAIAAAADAAAABAAAAAAAAAACAAAAAgAAAAMAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAgAAAAAAAAADAAAABgAAAAIAAAAAAAAAAgAAAAMAAAAPAAAAAAAAAAIAAAACAAAAAwAAAAsAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAIAAAACAAAAAAAAAAMAAAAHAAAAAgAAAAAAAAACAAAAAwAAABAAAAAAAAAAAgAAAAIAAAADAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAIAAAAAAAAAAwAAAAgAAAACAAAAAAAAAAIAAAADAAAAEQAAAAAAAAACAAAAAgAAAAMAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAACAAAAAgAAAAAAAAADAAAACQAAAAIAAAAAAAAAAgAAAAMAAAASAAAAAAAAAAIAAAACAAAAAwAAAA4AAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAACAAAAAAAAAAMAAAAFAAAAAgAAAAAAAAACAAAAAwAAABMAAAAAAAAAAgAAAAIAAAADAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAAAAAAACAAAAAQAAABMAAAACAAAAAgAAAAAAAAAFAAAACgAAAAAAAAACAAAAAgAAAAMAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABEAAAACAAAAAAAAAAIAAAABAAAADwAAAAIAAAACAAAAAAAAAAUAAAALAAAAAAAAAAIAAAACAAAAAwAAABEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAIAAAAAAAAAAgAAAAEAAAAQAAAAAgAAAAIAAAAAAAAABQAAAAwAAAAAAAAAAgAAAAIAAAADAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAACAAAAAQAAABEAAAACAAAAAgAAAAAAAAAFAAAADQAAAAAAAAACAAAAAgAAAAMAAAATAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAACAAAAAAAAAAIAAAABAAAAEgAAAAIAAAACAAAAAAAAAAUAAAAOAAAAAAAAAAIAAAACAAAAAwAAAAIAAAABAAAAAAAAAAEAAAACAAAAAAAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAEAAAAAAAAAAgAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAgAAAAAAAAABAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAFAAAAAAAAAAEAAAAAAAAAAAAAAMuhRbbsNlBBYqHW9OmHIkF9XBuqnS31QAK37uYhNMhAOSo3UUupm0DC+6pc6JxvQHV9eseEEEJAzURsCyqlFEB8BQ4NMJjnPyy3tBoS97o/xawXQznRjj89J2K2CZxhP6vX43RIIDQ/S8isgygEBz+LvFHQkmzaPjFFFO7wMq4+AADMLkTtjkIAAOgkJqxhQgAAU7B0MjRCAADwpBcVB0IAAACYP2HaQQAAAIn/Ja5BzczM4Eg6gUHNzMxMU7BTQTMzMzNfgCZBAAAAAEi3+UAAAAAAwGPNQDMzMzMzy6BAmpmZmZkxc0AzMzMzM/NFQDMzMzMzMxlAzczMzMzM7D+ygXSx2U6RQKimJOvQKnpA23hmONTHY0A/AGcxyudNQNb3K647mzZA+S56rrwWIUAm4kUQ+9UJQKre9hGzh/M/BLvoy9WG3T+LmqMf8VHGP2m3nYNV37A/gbFHcyeCmT+cBPWBckiDP61tZACjKW0/q2RbYVUYVj8uDypVyLNAP6jGS5cA5zBBwcqhBdCNGUEGEhQ/JVEDQT6WPnRbNO1AB/AWSJgT1kDfUWNCNLDAQNk+5C33OqlAchWL34QSk0DKvtDIrNV8QNF0G3kFzGVASSeWhBl6UED+/0mNGuk4QGjA/dm/1CJALPLPMql6DEDSHoDrwpP1P2jouzWST+A/egAAAAAAAABKAwAAAAAAAPoWAAAAAAAAyqAAAAAAAAB6ZQQAAAAAAErGHgAAAAAA+mvXAAAAAADK8+MFAAAAAHqqOykAAAAASqmhIAEAAAD6oGvkBwAAAMpm8T43AAAAes+ZuIIBAABKrDQMkwoAAPq1cFUFSgAAyvkUViUGAgAAAAAAAwAAAAYAAAACAAAABQAAAAEAAAAEAAAAAAAAAAAAAAAFAAAAAwAAAAEAAAAGAAAABAAAAAIAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAA/////wAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAP////8AAAAAAAAAAAEAAAABAAAAAAAAAAAAAAD/////AAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAA/////wUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAAAAAABAAEAAAEBAAAAAAABAAAAAQAAAAEAAQAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAHAAAABwAAAAEAAAACAAAABAAAAAMAAAAAAAAAAAAAAAcAAAADAAAAAQAAAAIAAAAFAAAABAAAAAAAAAAAAAAAYWxnb3MuYwBfcG9seWZpbGxJbnRlcm5hbABhZGphY2VudEZhY2VEaXJbdG1wRmlqay5mYWNlXVtmaWprLmZhY2VdID09IEtJAGZhY2VpamsuYwBfZmFjZUlqa1BlbnRUb0dlb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9HZW9Cb3VuZGFyeQBwb2x5Z29uLT5uZXh0ID09IE5VTEwAbGlua2VkR2VvLmMAYWRkTmV3TGlua2VkUG9seWdvbgBuZXh0ICE9IE5VTEwAbG9vcCAhPSBOVUxMAGFkZE5ld0xpbmtlZExvb3AAcG9seWdvbi0+Zmlyc3QgPT0gTlVMTABhZGRMaW5rZWRMb29wAGNvb3JkICE9IE5VTEwAYWRkTGlua2VkQ29vcmQAbG9vcC0+Zmlyc3QgPT0gTlVMTABpbm5lckxvb3BzICE9IE5VTEwAbm9ybWFsaXplTXVsdGlQb2x5Z29uAGJib3hlcyAhPSBOVUxMAGNhbmRpZGF0ZXMgIT0gTlVMTABmaW5kUG9seWdvbkZvckhvbGUAY2FuZGlkYXRlQkJveGVzICE9IE5VTEwAcmV2RGlyICE9IElOVkFMSURfRElHSVQAbG9jYWxpai5jAGgzVG9Mb2NhbElqawBiYXNlQ2VsbCAhPSBvcmlnaW5CYXNlQ2VsbAAhKG9yaWdpbk9uUGVudCAmJiBpbmRleE9uUGVudCkAcGVudGFnb25Sb3RhdGlvbnMgPj0gMABkaXJlY3Rpb25Sb3RhdGlvbnMgPj0gMABiYXNlQ2VsbCA9PSBvcmlnaW5CYXNlQ2VsbABiYXNlQ2VsbCAhPSBJTlZBTElEX0JBU0VfQ0VMTABsb2NhbElqa1RvSDMAIV9pc0Jhc2VDZWxsUGVudGFnb24oYmFzZUNlbGwpAGJhc2VDZWxsUm90YXRpb25zID49IDAAd2l0aGluUGVudGFnb25Sb3RhdGlvbnMgPj0gMABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";function H(e){return e}function Y(e){return e.replace(/\b__Z[\w\d_]+/g,(function(e){return e===e?e:e+" ["+e+"]"}))}function W(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function G(){return v.length}function q(e){try{var t=new ArrayBuffer(e);if(t.byteLength!=e)return;return new Int8Array(t).set(v),$(t),x(t),1}catch(e){}}var X="function"==typeof atob?atob:function(e){var t,n,r,a,i,o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",s=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=l.indexOf(e.charAt(s++))<<2|(a=l.indexOf(e.charAt(s++)))>>4,n=(15&a)<<4|(i=l.indexOf(e.charAt(s++)))>>2,r=(3&i)<<6|(o=l.indexOf(e.charAt(s++))),u+=String.fromCharCode(t),64!==i&&(u+=String.fromCharCode(n)),64!==o&&(u+=String.fromCharCode(r))}while(s>2]=e,a[l+4>>2]=t,(l=0!=(0|i))&&(a[i>>2]=0),0|Re(e,t))return L=o,0|(h=1);a[h>>2]=0;e:do{if((0|n)>=1)if(l)for(d=0,f=1,p=1,u=0,l=e;;){if(!(u|d)){if(0==(0|(l=0|R(l,t,4,h)))&0==(0|(t=0|E()))){l=2;break e}if(0|Re(l,t)){l=1;break e}}if(0==(0|(l=0|R(l,t,0|a[16+(d<<2)>>2],h)))&0==(0|(t=0|E()))){l=2;break e}if(a[(e=r+(p<<3)|0)>>2]=l,a[e+4>>2]=t,a[i+(p<<2)>>2]=f,e=(0|(u=u+1|0))==(0|f),c=6==(0|(s=d+1|0)),0|Re(l,t)){l=1;break e}if((0|(f=f+(c&e&1)|0))>(0|n)){l=0;break}d=e?c?0:s:d,p=p+1|0,u=e?0:u}else for(d=0,f=1,p=1,u=0,l=e;;){if(!(u|d)){if(0==(0|(l=0|R(l,t,4,h)))&0==(0|(t=0|E()))){l=2;break e}if(0|Re(l,t)){l=1;break e}}if(0==(0|(l=0|R(l,t,0|a[16+(d<<2)>>2],h)))&0==(0|(t=0|E()))){l=2;break e}if(a[(e=r+(p<<3)|0)>>2]=l,a[e+4>>2]=t,e=(0|(u=u+1|0))==(0|f),c=6==(0|(s=d+1|0)),0|Re(l,t)){l=1;break e}if((0|(f=f+(c&e&1)|0))>(0|n)){l=0;break}d=e?c?0:s:d,p=p+1|0,u=e?0:u}else l=0}while(0);return L=o,0|(h=l)}function D(e,t,n,r,i,o,l){n|=0,r|=0,i|=0,o|=0,l|=0;var u,s,c=0,d=0,f=0,p=0,h=0;if(s=L,L=L+16|0,u=s,0==(0|(e|=0))&0==(0|(t|=0)))L=s;else{if(c=0|Et(0|e,0|t,0|o,((0|o)<0)<<31>>31|0),E(),!(0==(0|(h=0|a[(p=d=r+(c<<3)|0)>>2]))&0==(0|(p=0|a[p+4>>2]))|(f=(0|h)==(0|e)&(0|p)==(0|t))))do{f=(0|(p=0|a[(h=d=r+((c=(c+1|0)%(0|o)|0)<<3)|0)>>2]))==(0|e)&(0|(h=0|a[h+4>>2]))==(0|t)}while(!(0==(0|p)&0==(0|h)|f));c=i+(c<<2)|0,f&&(0|a[c>>2])<=(0|l)||(a[(h=d)>>2]=e,a[h+4>>2]=t,a[c>>2]=l,(0|l)>=(0|n)||(h=l+1|0,a[u>>2]=0,D(p=0|R(e,t,2,u),0|E(),n,r,i,o,h),a[u>>2]=0,D(p=0|R(e,t,3,u),0|E(),n,r,i,o,h),a[u>>2]=0,D(p=0|R(e,t,1,u),0|E(),n,r,i,o,h),a[u>>2]=0,D(p=0|R(e,t,5,u),0|E(),n,r,i,o,h),a[u>>2]=0,D(p=0|R(e,t,4,u),0|E(),n,r,i,o,h),a[u>>2]=0,D(p=0|R(e,t,6,u),0|E(),n,r,i,o,h))),L=s}}function R(e,t,n,r){e|=0,t|=0,n|=0;var i,o,l=0,u=0,s=0,c=0,d=0,f=0,p=0;if((0|a[(r|=0)>>2])>0){l=0;do{n=0|ue(n),l=l+1|0}while((0|l)<(0|a[r>>2]))}i=0|xt(0|e,0|t,45),E(),o=127&i,u=0|je(e,t),l=0|xt(0|e,0|t,52),E(),l&=15;e:do{if(l)for(;;){if(f=0|xt(0|e,0|t,0|(d=3*(15-l|0)|0)),E(),f&=7,p=0==(0|ze(l)),l=l+-1|0,c=0|Mt(7,0,0|d),t&=~(0|E()),e=(d=0|Mt(0|a[(p?464:48)+(28*f|0)+(n<<2)>>2],0,0|d))|e&~c,t|=0|E(),!(n=0|a[(p?672:256)+(28*f|0)+(n<<2)>>2])){n=0;break e}if(!l){s=6;break}}else s=6}while(0);6==(0|s)&&(e|=f=0|Mt(0|(p=0|a[880+(28*o|0)+(n<<2)>>2]),0,45),t=0|E()|-1040385&t,n=0|a[4304+(28*o|0)+(n<<2)>>2],127==(127&p|0)&&(p=0|Mt(0|a[880+(28*o|0)+20>>2],0,45),t=0|E()|-1040385&t,n=0|a[4304+(28*o|0)+20>>2],e=0|Fe(p|e,t),t=0|E(),a[r>>2]=1+(0|a[r>>2]))),s=0|xt(0|e,0|t,45),E(),s&=127;e:do{if(0|I(s)){t:do{if(1==(0|je(e,t))){if((0|o)!=(0|s)){if(0|z(s,0|a[7728+(28*o|0)>>2])){e=0|Be(e,t),u=1,t=0|E();break}e=0|Fe(e,t),u=1,t=0|E();break}switch(0|u){case 5:e=0|Be(e,t),t=0|E(),a[r>>2]=5+(0|a[r>>2]),u=0;break t;case 3:e=0|Fe(e,t),t=0|E(),a[r>>2]=1+(0|a[r>>2]),u=0;break t;default:return p=0,O(0|(f=0)),0|p}}else u=0}while(0);if((0|n)>0){l=0;do{e=0|Ie(e,t),t=0|E(),l=l+1|0}while((0|l)!=(0|n))}if((0|o)!=(0|s)){if(!(0|F(s))){if(0!=(0|u)|5!=(0|je(e,t)))break;a[r>>2]=1+(0|a[r>>2]);break}switch(127&i){case 8:case 118:break e}3!=(0|je(e,t))&&(a[r>>2]=1+(0|a[r>>2]))}}else if((0|n)>0){l=0;do{e=0|Fe(e,t),t=0|E(),l=l+1|0}while((0|l)!=(0|n))}}while(0);return a[r>>2]=((0|a[r>>2])+n|0)%6|0,p=e,O(0|(f=t)),0|p}function j(e,t,n,r,o,l){t|=0,n|=0,r|=0,o|=0,l|=0;var u,s,c,d,f,p,h,m,g,v=0,y=0,b=0,A=0,_=0,O=0,x=0,M=0,w=0,S=0,T=0,C=0,P=0,k=0;if(g=L,L=L+48|0,p=g+32|0,h=g+16|0,m=g,(0|(v=0|a[(e|=0)>>2]))<=0)return L=g,0|(C=0);u=e+4|0,s=p+8|0,c=h+8|0,d=m+8|0,f=((0|t)<0)<<31>>31,T=0;e:for(;;){w=(y=0|a[u>>2])+(T<<4)|0,a[p>>2]=a[w>>2],a[p+4>>2]=a[w+4>>2],a[p+8>>2]=a[w+8>>2],a[p+12>>2]=a[w+12>>2],(0|T)==(v+-1|0)?(a[h>>2]=a[y>>2],a[h+4>>2]=a[y+4>>2],a[h+8>>2]=a[y+8>>2],a[h+12>>2]=a[y+12>>2]):(w=y+(T+1<<4)|0,a[h>>2]=a[w>>2],a[h+4>>2]=a[w+4>>2],a[h+8>>2]=a[w+8>>2],a[h+12>>2]=a[w+12>>2]),w=0|G(p,h,n);t:do{if((0|w)>0){S=+(0|w),M=0;n:for(;;){k=+(w-M|0),P=+(0|M),i[m>>3]=+i[p>>3]*k/S+ +i[h>>3]*P/S,i[d>>3]=+i[s>>3]*k/S+ +i[c>>3]*P/S,y=0|Et(0|(O=0|Ue(m,n)),0|(x=0|E()),0|t,0|f),E(),A=0|a[(b=v=l+(y<<3)|0)>>2],b=0|a[b+4>>2];r:do{if(0==(0|A)&0==(0|b))C=14;else for(_=0;;){if((0|_)>(0|t)){v=1;break r}if((0|A)==(0|O)&(0|b)==(0|x)){v=7;break r}if(0==(0|(A=0|a[(b=v=l+((y=(y+1|0)%(0|t)|0)<<3)|0)>>2]))&0==(0|(b=0|a[b+4>>2]))){C=14;break}_=_+1|0}}while(0);switch(14==(0|C)&&(C=0,0==(0|O)&0==(0|x)?v=7:(a[v>>2]=O,a[v+4>>2]=x,v=0|a[r>>2],a[(_=o+(v<<3)|0)>>2]=O,a[_+4>>2]=x,a[r>>2]=v+1,v=0)),7&v){case 7:case 0:break;default:break n}if((0|w)<=(0|(M=M+1|0))){C=8;break t}}if(0|v){v=-1,C=20;break e}}else C=8}while(0);if(8==(0|C)&&(C=0),(0|(T=T+1|0))>=(0|(v=0|a[e>>2]))){v=0,C=20;break}}return 20==(0|C)?(L=g,0|v):0}function I(e){return 0|a[7728+(28*(e|=0)|0)+16>>2]}function F(e){return 4==(0|(e|=0))|117==(0|e)|0}function N(e){return 0|a[11152+(216*(0|a[(e|=0)>>2])|0)+(72*(0|a[e+4>>2])|0)+(24*(0|a[e+8>>2])|0)+(a[e+12>>2]<<3)>>2]}function B(e){return 0|a[11152+(216*(0|a[(e|=0)>>2])|0)+(72*(0|a[e+4>>2])|0)+(24*(0|a[e+8>>2])|0)+(a[e+12>>2]<<3)+4>>2]}function z(e,t){return t|=0,(0|a[7728+(28*(e|=0)|0)+20>>2])==(0|t)?0|(t=1):0|(t=(0|a[7728+(28*e|0)+24>>2])==(0|t))}function U(e,t){return 0|a[880+(28*(e|=0)|0)+((t|=0)<<2)>>2]}function V(e,t){return t|=0,(0|a[880+(28*(e|=0)|0)>>2])==(0|t)?0|(t=0):(0|a[880+(28*e|0)+4>>2])==(0|t)?0|(t=1):(0|a[880+(28*e|0)+8>>2])==(0|t)?0|(t=2):(0|a[880+(28*e|0)+12>>2])==(0|t)?0|(t=3):(0|a[880+(28*e|0)+16>>2])==(0|t)?0|(t=4):(0|a[880+(28*e|0)+20>>2])==(0|t)?0|(t=5):0|((0|a[880+(28*e|0)+24>>2])==(0|t)?6:7)}function H(e){return+i[(e|=0)+16>>3]<+i[e+24>>3]|0}function Y(e,t){e|=0;var n,r,a=0;return(a=+i[(t|=0)>>3])>=+i[e+8>>3]&&a<=+i[e>>3]?(n=+i[e+16>>3],a=+i[e+24>>3],t=(r=+i[t+8>>3])>=a,e=r<=n&1,n>2]=0,d=d+4|0}while((0|d)<(0|f));return Ge(t,o),Ye(f=0|a[(d=o)>>2],d=0|a[d+4>>2],n),We(f,d,r),s=+Te(n,r+8|0),i[n>>3]=+i[e>>3],i[(d=n+8|0)>>3]=+i[e+16>>3],i[r>>3]=+i[e+8>>3],i[(f=r+8|0)>>3]=+i[e+24>>3],c=+Te(n,r),f=~~+y(+c*c/+wt(+ +u(+(+i[d>>3]-+i[f>>3])/(+i[n>>3]-+i[r>>3])),3)/(s*(2.59807621135*s)*.8)),L=l,0|(0==(0|f)?1:f)}function G(e,t,n){e|=0,t|=0,n|=0;var r,i,o,l,u,s=0,c=0;l=L,L=L+288|0,r=l+264|0,i=l+96|0,c=(s=o=l)+96|0;do{a[s>>2]=0,s=s+4|0}while((0|s)<(0|c));return Ge(n,o),Ye(s=0|a[(c=o)>>2],c=0|a[c+4>>2],r),We(s,c,i),u=+Te(r,i+8|0),c=~~+y(+ +Te(e,t)/(2*u)),L=l,0|(0==(0|c)?1:c)}function q(e,t,n,r){t|=0,n|=0,r|=0,a[(e|=0)>>2]=t,a[e+4>>2]=n,a[e+8>>2]=r}function X(e,t){e|=0;var n,r,o,l,s=0,c=0,d=0,f=0,p=0,h=0,m=0;a[(l=(t|=0)+8|0)>>2]=0,r=+i[e>>3],f=+u(+r),o=+i[e+8>>3],f+=.5*(p=+u(+o)/.8660254037844386),f-=+(0|(s=~~f)),p-=+(0|(e=~~p));do{if(f<.5){if(f<.3333333333333333){if(a[t>>2]=s,p<.5*(f+1)){a[t+4>>2]=e;break}e=e+1|0,a[t+4>>2]=e;break}if(e=(1&!(p<(m=1-f)))+e|0,a[t+4>>2]=e,m<=p&p<2*f){s=s+1|0,a[t>>2]=s;break}a[t>>2]=s;break}if(!(f<.6666666666666666)){if(s=s+1|0,a[t>>2]=s,p<.5*f){a[t+4>>2]=e;break}e=e+1|0,a[t+4>>2]=e;break}if(p<1-f){if(a[t+4>>2]=e,2*f-1>2]=s;break}}else e=e+1|0,a[t+4>>2]=e;s=s+1|0,a[t>>2]=s}while(0);do{if(r<0){if(1&e){s=~~(+(0|s)-(2*(+((h=0|At(0|s,((0|s)<0)<<31>>31|0,0|(h=(e+1|0)/2|0),((0|h)<0)<<31>>31|0))>>>0)+4294967296*+(0|E()))+1)),a[t>>2]=s;break}s=~~(+(0|s)-2*(+((h=0|At(0|s,((0|s)<0)<<31>>31|0,0|(h=(0|e)/2|0),((0|h)<0)<<31>>31|0))>>>0)+4294967296*+(0|E()))),a[t>>2]=s;break}}while(0);h=t+4|0,o<0&&(s=s-((1|e<<1)/2|0)|0,a[t>>2]=s,e=0-e|0,a[h>>2]=e),c=e-s|0,(0|s)<0?(d=0-s|0,a[h>>2]=c,a[l>>2]=d,a[t>>2]=0,e=c,s=0):d=0,(0|e)<0&&(s=s-e|0,a[t>>2]=s,d=d-e|0,a[l>>2]=d,a[h>>2]=0,e=0),n=s-d|0,c=e-d|0,(0|d)<0&&(a[t>>2]=n,a[h>>2]=c,a[l>>2]=0,e=c,s=n,d=0),(0|(c=(0|d)<(0|(c=(0|e)<(0|s)?e:s))?d:c))<=0||(a[t>>2]=s-c,a[h>>2]=e-c,a[l>>2]=d-c)}function Z(e){var t,n=0,r=0,i=0,o=0,l=0;n=0|a[(e|=0)>>2],r=0|a[(t=e+4|0)>>2],(0|n)<0&&(r=r-n|0,a[t>>2]=r,a[(l=e+8|0)>>2]=(0|a[l>>2])-n,a[e>>2]=0,n=0),(0|r)<0?(n=n-r|0,a[e>>2]=n,o=(0|a[(l=e+8|0)>>2])-r|0,a[l>>2]=o,a[t>>2]=0,r=0):(l=o=e+8|0,o=0|a[o>>2]),(0|o)<0&&(n=n-o|0,a[e>>2]=n,r=r-o|0,a[t>>2]=r,a[l>>2]=0,o=0),(0|(i=(0|o)<(0|(i=(0|r)<(0|n)?r:n))?o:i))<=0||(a[e>>2]=n-i,a[t>>2]=r-i,a[l>>2]=o-i)}function K(e,t){t|=0;var n,r;r=0|a[(e|=0)+8>>2],n=+((0|a[e+4>>2])-r|0),i[t>>3]=+((0|a[e>>2])-r|0)-.5*n,i[t+8>>3]=.8660254037844386*n}function J(e,t,n){e|=0,t|=0,a[(n|=0)>>2]=(0|a[t>>2])+(0|a[e>>2]),a[n+4>>2]=(0|a[t+4>>2])+(0|a[e+4>>2]),a[n+8>>2]=(0|a[t+8>>2])+(0|a[e+8>>2])}function Q(e,t,n){e|=0,t|=0,a[(n|=0)>>2]=(0|a[e>>2])-(0|a[t>>2]),a[n+4>>2]=(0|a[e+4>>2])-(0|a[t+4>>2]),a[n+8>>2]=(0|a[e+8>>2])-(0|a[t+8>>2])}function $(e,t){t|=0;var n,r=0;r=0|b(0|a[(e|=0)>>2],t),a[e>>2]=r,n=0|b(0|a[(r=e+4|0)>>2],t),a[r>>2]=n,t=0|b(0|a[(e=e+8|0)>>2],t),a[e>>2]=t}function ee(e){var t,n,r=0,i=0,o=0,l=0,u=0;u=(0|(n=0|a[(e|=0)>>2]))<0,e=(e=(i=(0|(l=((t=(0|(o=(0|a[e+4>>2])-(u?n:0)|0))<0)?0-o|0:0)+((0|a[e+8>>2])-(u?n:0))|0))<0)?0:l)-((o=(0|(i=(0|e)<(0|(i=(0|(r=(t?0:o)-(i?l:0)|0))<(0|(l=(u?0:n)-(t?o:0)-(i?l:0)|0))?r:l))?e:i))>0)?i:0)|0,r=r-(o?i:0)|0;e:do{switch(l-(o?i:0)|0){case 0:switch(0|r){case 0:return 0|(u=0==(0|e)?0:1==(0|e)?1:7);case 1:return 0|(u=0==(0|e)?2:1==(0|e)?3:7);default:break e}case 1:switch(0|r){case 0:return 0|(u=0==(0|e)?4:1==(0|e)?5:7);case 1:if(e)break e;return 0|(e=6);default:break e}}}while(0);return 0|(u=7)}function te(e){var t,n,r=0,i=0,o=0,l=0,u=0;i=0|a[(t=(e|=0)+8|0)>>2],o=0|gt(+((3*(r=(0|a[e>>2])-i|0)|0)-(i=(0|a[(n=e+4|0)>>2])-i|0)|0)/7),a[e>>2]=o,r=0|gt(+((i<<1)+r|0)/7),a[n>>2]=r,a[t>>2]=0,i=r-o|0,(0|o)<0?(u=0-o|0,a[n>>2]=i,a[t>>2]=u,a[e>>2]=0,r=i,o=0,i=u):i=0,(0|r)<0&&(o=o-r|0,a[e>>2]=o,i=i-r|0,a[t>>2]=i,a[n>>2]=0,r=0),u=o-i|0,l=r-i|0,(0|i)<0?(a[e>>2]=u,a[n>>2]=l,a[t>>2]=0,r=l,l=u,i=0):l=o,(0|(o=(0|i)<(0|(o=(0|r)<(0|l)?r:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=r-o,a[t>>2]=i-o)}function ne(e){var t,n,r=0,i=0,o=0,l=0,u=0;i=0|a[(t=(e|=0)+8|0)>>2],o=0|gt(+(((r=(0|a[e>>2])-i|0)<<1)+(i=(0|a[(n=e+4|0)>>2])-i|0)|0)/7),a[e>>2]=o,r=0|gt(+((3*i|0)-r|0)/7),a[n>>2]=r,a[t>>2]=0,i=r-o|0,(0|o)<0?(u=0-o|0,a[n>>2]=i,a[t>>2]=u,a[e>>2]=0,r=i,o=0,i=u):i=0,(0|r)<0&&(o=o-r|0,a[e>>2]=o,i=i-r|0,a[t>>2]=i,a[n>>2]=0,r=0),u=o-i|0,l=r-i|0,(0|i)<0?(a[e>>2]=u,a[n>>2]=l,a[t>>2]=0,r=l,l=u,i=0):l=o,(0|(o=(0|i)<(0|(o=(0|r)<(0|l)?r:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=r-o,a[t>>2]=i-o)}function re(e){var t,n,r,i=0,o=0,l=0,u=0;i=0|a[(e|=0)>>2],o=0|a[(n=e+4|0)>>2],l=0|a[(r=e+8|0)>>2],u=o+(3*i|0)|0,a[e>>2]=u,o=l+(3*o|0)|0,a[n>>2]=o,i=(3*l|0)+i|0,a[r>>2]=i,l=o-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=l,a[r>>2]=i,a[e>>2]=0,o=l,l=0):l=u,(0|o)<0&&(l=l-o|0,a[e>>2]=l,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=l-i|0,u=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=u,a[r>>2]=0,l=t,i=0):u=o,(0|(o=(0|i)<(0|(o=(0|u)<(0|l)?u:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=u-o,a[r>>2]=i-o)}function ae(e){var t,n,r,i=0,o=0,l=0,u=0;u=0|a[(e|=0)>>2],l=(3*(i=0|a[(n=e+4|0)>>2])|0)+u|0,u=(o=0|a[(r=e+8|0)>>2])+(3*u|0)|0,a[e>>2]=u,a[n>>2]=l,i=(3*o|0)+i|0,a[r>>2]=i,o=l-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=o,a[r>>2]=i,a[e>>2]=0,u=0):o=l,(0|o)<0&&(u=u-o|0,a[e>>2]=u,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=u-i|0,l=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=l,a[r>>2]=0,u=t,i=0):l=o,(0|(o=(0|i)<(0|(o=(0|l)<(0|u)?l:u))?i:o))<=0||(a[e>>2]=u-o,a[n>>2]=l-o,a[r>>2]=i-o)}function ie(e,t){e|=0;var n,r,i,o=0,l=0,u=0;((t|=0)+-1|0)>>>0>=6||(u=(0|a[15472+(12*t|0)>>2])+(0|a[e>>2])|0,a[e>>2]=u,i=e+4|0,l=(0|a[15472+(12*t|0)+4>>2])+(0|a[i>>2])|0,a[i>>2]=l,r=e+8|0,t=(0|a[15472+(12*t|0)+8>>2])+(0|a[r>>2])|0,a[r>>2]=t,o=l-u|0,(0|u)<0?(t=t-u|0,a[i>>2]=o,a[r>>2]=t,a[e>>2]=0,l=0):(o=l,l=u),(0|o)<0&&(l=l-o|0,a[e>>2]=l,t=t-o|0,a[r>>2]=t,a[i>>2]=0,o=0),n=l-t|0,u=o-t|0,(0|t)<0?(a[e>>2]=n,a[i>>2]=u,a[r>>2]=0,l=n,t=0):u=o,(0|(o=(0|t)<(0|(o=(0|u)<(0|l)?u:l))?t:o))<=0||(a[e>>2]=l-o,a[i>>2]=u-o,a[r>>2]=t-o))}function oe(e){var t,n,r,i=0,o=0,l=0,u=0;u=0|a[(e|=0)>>2],l=(i=0|a[(n=e+4|0)>>2])+u|0,u=(o=0|a[(r=e+8|0)>>2])+u|0,a[e>>2]=u,a[n>>2]=l,i=o+i|0,a[r>>2]=i,o=l-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=o,a[r>>2]=i,a[e>>2]=0,l=0):(o=l,l=u),(0|o)<0&&(l=l-o|0,a[e>>2]=l,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=l-i|0,u=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=u,a[r>>2]=0,l=t,i=0):u=o,(0|(o=(0|i)<(0|(o=(0|u)<(0|l)?u:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=u-o,a[r>>2]=i-o)}function le(e){var t,n,r,i=0,o=0,l=0,u=0;i=0|a[(e|=0)>>2],l=0|a[(n=e+4|0)>>2],o=0|a[(r=e+8|0)>>2],u=l+i|0,a[e>>2]=u,l=o+l|0,a[n>>2]=l,i=o+i|0,a[r>>2]=i,o=l-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=o,a[r>>2]=i,a[e>>2]=0,l=0):(o=l,l=u),(0|o)<0&&(l=l-o|0,a[e>>2]=l,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=l-i|0,u=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=u,a[r>>2]=0,l=t,i=0):u=o,(0|(o=(0|i)<(0|(o=(0|u)<(0|l)?u:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=u-o,a[r>>2]=i-o)}function ue(e){switch(0|(e|=0)){case 1:e=5;break;case 5:e=4;break;case 4:e=6;break;case 6:e=2;break;case 2:e=3;break;case 3:e=1}return 0|e}function se(e){switch(0|(e|=0)){case 1:e=3;break;case 3:e=2;break;case 2:e=6;break;case 6:e=4;break;case 4:e=5;break;case 5:e=1}return 0|e}function ce(e){var t,n,r,i=0,o=0,l=0,u=0;i=0|a[(e|=0)>>2],o=0|a[(n=e+4|0)>>2],l=0|a[(r=e+8|0)>>2],u=o+(i<<1)|0,a[e>>2]=u,o=l+(o<<1)|0,a[n>>2]=o,i=(l<<1)+i|0,a[r>>2]=i,l=o-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=l,a[r>>2]=i,a[e>>2]=0,o=l,l=0):l=u,(0|o)<0&&(l=l-o|0,a[e>>2]=l,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=l-i|0,u=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=u,a[r>>2]=0,l=t,i=0):u=o,(0|(o=(0|i)<(0|(o=(0|u)<(0|l)?u:l))?i:o))<=0||(a[e>>2]=l-o,a[n>>2]=u-o,a[r>>2]=i-o)}function de(e){var t,n,r,i=0,o=0,l=0,u=0;u=0|a[(e|=0)>>2],l=((i=0|a[(n=e+4|0)>>2])<<1)+u|0,u=(o=0|a[(r=e+8|0)>>2])+(u<<1)|0,a[e>>2]=u,a[n>>2]=l,i=(o<<1)+i|0,a[r>>2]=i,o=l-u|0,(0|u)<0?(i=i-u|0,a[n>>2]=o,a[r>>2]=i,a[e>>2]=0,u=0):o=l,(0|o)<0&&(u=u-o|0,a[e>>2]=u,i=i-o|0,a[r>>2]=i,a[n>>2]=0,o=0),t=u-i|0,l=o-i|0,(0|i)<0?(a[e>>2]=t,a[n>>2]=l,a[r>>2]=0,u=t,i=0):l=o,(0|(o=(0|i)<(0|(o=(0|l)<(0|u)?l:u))?i:o))<=0||(a[e>>2]=u-o,a[n>>2]=l-o,a[r>>2]=i-o)}function fe(e,t){t|=0;var n,r,i,o=0,l=0,u=0;return i=(0|(r=(0|a[(e|=0)>>2])-(0|a[t>>2])|0))<0,n=(0|(l=(0|a[e+4>>2])-(0|a[t+4>>2])-(i?r:0)|0))<0,t=(t=(e=(0|(u=(i?0-r|0:0)+(0|a[e+8>>2])-(0|a[t+8>>2])+(n?0-l|0:0)|0))<0)?0:u)-((l=(0|(e=(0|t)<(0|(e=(0|(o=(n?0:l)-(e?u:0)|0))<(0|(u=(i?0:r)-(n?l:0)-(e?u:0)|0))?o:u))?t:e))>0)?e:0)|0,o=o-(l?e:0)|0,0|((0|(e=(0|(e=u-(l?e:0)|0))>-1?e:0-e|0))>(0|(t=(0|(o=(0|o)>-1?o:0-o|0))>(0|(t=(0|t)>-1?t:0-t|0))?o:t))?e:t)}function pe(e,t){t|=0;var n;n=0|a[(e|=0)+8>>2],a[t>>2]=(0|a[e>>2])-n,a[t+4>>2]=(0|a[e+4>>2])-n}function he(e,t){t|=0;var n,r,i,o=0,l=0,u=0;l=0|a[(e|=0)>>2],a[t>>2]=l,e=0|a[e+4>>2],a[(r=t+4|0)>>2]=e,a[(i=t+8|0)>>2]=0,o=e-l|0,(0|l)<0?(e=0-l|0,a[r>>2]=o,a[i>>2]=e,a[t>>2]=0,l=0):(o=e,e=0),(0|o)<0&&(l=l-o|0,a[t>>2]=l,e=e-o|0,a[i>>2]=e,a[r>>2]=0,o=0),n=l-e|0,u=o-e|0,(0|e)<0?(a[t>>2]=n,a[r>>2]=u,a[i>>2]=0,o=u,u=n,e=0):u=l,(0|(l=(0|e)<(0|(l=(0|o)<(0|u)?o:u))?e:l))<=0||(a[t>>2]=u-l,a[r>>2]=o-l,a[i>>2]=e-l)}function me(e){var t,n,r,i;n=(i=0|a[(t=(e|=0)+8|0)>>2])-(0|a[e>>2])|0,a[e>>2]=n,e=(0|a[(r=e+4|0)>>2])-i|0,a[r>>2]=e,a[t>>2]=0-(e+n)}function ge(e){var t,n,r=0,i=0,o=0,l=0,u=0;r=0-(i=0|a[(e|=0)>>2])|0,a[e>>2]=r,a[(t=e+8|0)>>2]=0,l=(o=0|a[(n=e+4|0)>>2])+i|0,(0|i)>0?(a[n>>2]=l,a[t>>2]=i,a[e>>2]=0,r=0,o=l):i=0,(0|o)<0?(u=r-o|0,a[e>>2]=u,i=i-o|0,a[t>>2]=i,a[n>>2]=0,l=u-i|0,r=0-i|0,(0|i)<0?(a[e>>2]=l,a[n>>2]=r,a[t>>2]=0,o=r,i=0):(o=0,l=u)):l=r,(0|(r=(0|i)<(0|(r=(0|o)<(0|l)?o:l))?i:r))<=0||(a[e>>2]=l-r,a[n>>2]=o-r,a[t>>2]=i-r)}function ve(e,t,n,r){t|=0,n|=0,r|=0;var o,l=0,u=0,s=0,c=0;if(o=L,L=L+32|0,function(e,t){t|=0;var n,r,a=0;a=+i[(e=e|0)>>3],n=+d(+a),a=+f(+a),i[t+16>>3]=a,a=+i[e+8>>3],r=n*+d(+a),i[t>>3]=r,a=n*+f(+a),i[t+8>>3]=a}(e|=0,u=o),a[n>>2]=0,l=+ut(15888,u),(s=+ut(15912,u))>2]=1,l=s),(s=+ut(15936,u))>2]=2,l=s),(s=+ut(15960,u))>2]=3,l=s),(s=+ut(15984,u))>2]=4,l=s),(s=+ut(16008,u))>2]=5,l=s),(s=+ut(16032,u))>2]=6,l=s),(s=+ut(16056,u))>2]=7,l=s),(s=+ut(16080,u))>2]=8,l=s),(s=+ut(16104,u))>2]=9,l=s),(s=+ut(16128,u))>2]=10,l=s),(s=+ut(16152,u))>2]=11,l=s),(s=+ut(16176,u))>2]=12,l=s),(s=+ut(16200,u))>2]=13,l=s),(s=+ut(16224,u))>2]=14,l=s),(s=+ut(16248,u))>2]=15,l=s),(s=+ut(16272,u))>2]=16,l=s),(s=+ut(16296,u))>2]=17,l=s),(s=+ut(16320,u))>2]=18,l=s),(s=+ut(16344,u))>2]=19,l=s),(s=+h(+(1-.5*l)))<1e-16)return a[r>>2]=0,a[r+4>>2]=0,a[r+8>>2]=0,a[r+12>>2]=0,void(L=o);if(n=0|a[n>>2],l=+we((l=+i[16368+(24*n|0)>>3])-+we(+function(e,t){e|=0;var n,r,a,o,l;return o=+i[(t=t|0)>>3],r=+d(+o),a=+i[t+8>>3]-+i[e+8>>3],l=r*+f(+a),n=+i[e>>3],+ +v(+l,+(+f(+o)*+d(+n)-+d(+a)*(r*+f(+n))))}(15568+(n<<4)|0,e))),c=0|ze(t)?+we(l+-.3334731722518321):l,l=+p(+s)/.381966011250105,(0|t)>0){u=0;do{l*=2.6457513110645907,u=u+1|0}while((0|u)!=(0|t))}s=+d(+c)*l,i[r>>3]=s,c=+f(+c)*l,i[r+8>>3]=c,L=o}function ye(e,t,n,r,o){t|=0,n|=0,r|=0,o|=0;var l=0,c=0;if((l=+function(e){var t,n;return n=+i[(e=e|0)>>3],t=+i[e+8>>3],+ +s(+(n*n+t*t))}(e|=0))<1e-16)return t=15568+(t<<4)|0,a[o>>2]=a[t>>2],a[o+4>>2]=a[t+4>>2],a[o+8>>2]=a[t+8>>2],void(a[o+12>>2]=a[t+12>>2]);if(c=+v(+ +i[e+8>>3],+ +i[e>>3]),(0|n)>0){e=0;do{l/=2.6457513110645907,e=e+1|0}while((0|e)!=(0|n))}r?(l/=3,n=0==(0|ze(n)),l=+g(.381966011250105*(n?l:l/2.6457513110645907))):(l=+g(.381966011250105*l),0|ze(n)&&(c=+we(c+.3334731722518321))),function(e,t,n,r){e|=0,t=+t,r|=0;var o=0,l=0,s=0,c=0;if((n=+n)<1e-16)return a[r>>2]=a[e>>2],a[r+4>>2]=a[e+4>>2],a[r+8>>2]=a[e+8>>2],void(a[r+12>>2]=a[e+12>>2]);l=t<0?t+6.283185307179586:t,l=t>=6.283185307179586?l+-6.283185307179586:l;do{if(!(l<1e-16)){if(o=+u(+(l+-3.141592653589793))<1e-16,t=+i[e>>3],o){t-=n,i[r>>3]=t,o=r;break}if(s=+d(+n),n=+f(+n),t=s*+f(+t)+ +d(+l)*(n*+d(+t)),t=+m(+((t=t>1?1:t)<-1?-1:t)),i[r>>3]=t,+u(+(t+-1.5707963267948966))<1e-16)return i[r>>3]=1.5707963267948966,void(i[r+8>>3]=0);if(+u(+(t+1.5707963267948966))<1e-16)return i[r>>3]=-1.5707963267948966,void(i[r+8>>3]=0);if(c=+d(+t),l=n*+f(+l)/c,n=+i[e>>3],t=(s-+f(+t)*+f(+n))/+d(+n)/c,s=l>1?1:l,t=t>1?1:t,(t=+i[e+8>>3]+ +v(+(s<-1?-1:s),+(t<-1?-1:t)))>3.141592653589793)do{t+=-6.283185307179586}while(t>3.141592653589793);if(t<-3.141592653589793)do{t+=6.283185307179586}while(t<-3.141592653589793);return void(i[r+8>>3]=t)}t=+i[e>>3]+n,i[r>>3]=t,o=r}while(0);if(+u(+(t+-1.5707963267948966))<1e-16)return i[o>>3]=1.5707963267948966,void(i[r+8>>3]=0);if(+u(+(t+1.5707963267948966))<1e-16)return i[o>>3]=-1.5707963267948966,void(i[r+8>>3]=0);if((t=+i[e+8>>3])>3.141592653589793)do{t+=-6.283185307179586}while(t>3.141592653589793);if(t<-3.141592653589793)do{t+=6.283185307179586}while(t<-3.141592653589793);i[r+8>>3]=t}(15568+(t<<4)|0,+we(+i[16368+(24*t|0)>>3]-c),l,o)}function be(e,t,n){t|=0,n|=0;var r,i;r=L,L=L+16|0,K((e|=0)+4|0,i=r),ye(i,0|a[e>>2],t,0,n),L=r}function Ae(e,t,n,r,o){e|=0,t|=0,n|=0,r|=0,o|=0;var l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,M,w,S,T,C,P=0,k=0,D=0,R=0,j=0,I=0;if(C=L,L=L+272|0,R=C+240|0,w=C,S=C+224|0,T=C+208|0,v=C+176|0,y=C+160|0,b=C+192|0,A=C+144|0,_=C+128|0,O=C+112|0,E=C+96|0,M=C+80|0,a[(P=C+256|0)>>2]=t,a[R>>2]=a[e>>2],a[R+4>>2]=a[e+4>>2],a[R+8>>2]=a[e+8>>2],a[R+12>>2]=a[e+12>>2],_e(R,P,w),a[o>>2]=0,(0|(R=r+n+(5==(0|r)&1)|0))<=(0|n))L=C;else{u=S+4|0,s=v+4|0,c=n+5|0,d=16848+((l=0|a[P>>2])<<2)|0,f=16928+(l<<2)|0,p=_+8|0,h=O+8|0,m=E+8|0,g=T+4|0,D=n;e:for(;;){k=w+(((0|D)%5|0)<<4)|0,a[T>>2]=a[k>>2],a[T+4>>2]=a[k+4>>2],a[T+8>>2]=a[k+8>>2],a[T+12>>2]=a[k+12>>2];do{}while(2==(0|Oe(T,l,0,1)));if((0|D)>(0|n)&0!=(0|ze(t))){if(a[v>>2]=a[T>>2],a[v+4>>2]=a[T+4>>2],a[v+8>>2]=a[T+8>>2],a[v+12>>2]=a[T+12>>2],K(u,y),r=0|a[v>>2],P=0|a[17008+(80*r|0)+(a[S>>2]<<2)>>2],a[v>>2]=a[18608+(80*r|0)+(20*P|0)>>2],(0|(k=0|a[18608+(80*r|0)+(20*P|0)+16>>2]))>0){e=0;do{oe(s),e=e+1|0}while((0|e)<(0|k))}switch(k=18608+(80*r|0)+(20*P|0)+4|0,a[b>>2]=a[k>>2],a[b+4>>2]=a[k+4>>2],a[b+8>>2]=a[k+8>>2],$(b,3*(0|a[d>>2])|0),J(s,b,s),Z(s),K(s,A),j=+(0|a[f>>2]),i[_>>3]=3*j,i[p>>3]=0,I=-1.5*j,i[O>>3]=I,i[h>>3]=2.598076211353316*j,i[E>>3]=I,i[m>>3]=-2.598076211353316*j,0|a[17008+(80*(0|a[v>>2])|0)+(a[T>>2]<<2)>>2]){case 1:e=O,r=_;break;case 3:e=E,r=O;break;case 2:e=_,r=E;break;default:e=12;break e}ot(y,A,r,e,M),ye(M,0|a[v>>2],l,1,o+8+(a[o>>2]<<4)|0),a[o>>2]=1+(0|a[o>>2])}if((0|D)<(0|c)&&(K(g,v),ye(v,0|a[T>>2],l,1,o+8+(a[o>>2]<<4)|0),a[o>>2]=1+(0|a[o>>2])),a[S>>2]=a[T>>2],a[S+4>>2]=a[T+4>>2],a[S+8>>2]=a[T+8>>2],a[S+12>>2]=a[T+12>>2],(0|(D=D+1|0))>=(0|R)){e=3;break}}3!=(0|e)?12==(0|e)&&x(22474,22521,581,22531):L=C}}function _e(e,t,n){e|=0,t|=0,n|=0;var r,i=0,o=0,l=0,u=0,s=0;r=L,L=L+128|0,o=r,u=20208,s=(l=i=r+64|0)+60|0;do{a[l>>2]=a[u>>2],l=l+4|0,u=u+4|0}while((0|l)<(0|s));u=20272,s=(l=o)+60|0;do{a[l>>2]=a[u>>2],l=l+4|0,u=u+4|0}while((0|l)<(0|s));i=(s=0==(0|ze(0|a[t>>2])))?i:o,ce(o=e+4|0),de(o),0|ze(0|a[t>>2])&&(ae(o),a[t>>2]=1+(0|a[t>>2])),a[n>>2]=a[e>>2],J(o,i,t=n+4|0),Z(t),a[n+16>>2]=a[e>>2],J(o,i+12|0,t=n+20|0),Z(t),a[n+32>>2]=a[e>>2],J(o,i+24|0,t=n+36|0),Z(t),a[n+48>>2]=a[e>>2],J(o,i+36|0,t=n+52|0),Z(t),a[n+64>>2]=a[e>>2],J(o,i+48|0,n=n+68|0),Z(n),L=r}function Oe(e,t,n,r){n|=0,r|=0;var i,o,l,u,s,c,d=0,f=0,p=0,h=0,m=0;if(c=L,L=L+32|0,s=c+12|0,o=c,m=(e|=0)+4|0,h=0|a[16928+((t|=0)<<2)>>2],h=(u=0!=(0|r))?3*h|0:h,d=0|a[m>>2],i=0|a[(l=e+8|0)>>2],u){if((0|(d=i+d+(r=0|a[(f=e+12|0)>>2])|0))==(0|h))return L=c,0|(m=1);p=f}else d=i+d+(r=0|a[(p=e+12|0)>>2])|0;if((0|d)<=(0|h))return L=c,0|(m=0);do{if((0|r)>0){if(r=0|a[e>>2],(0|i)>0){f=18608+(80*r|0)+60|0,r=e;break}r=18608+(80*r|0)+40|0,n?(q(s,h,0,0),Q(m,s,o),le(o),J(o,s,m),f=r,r=e):(f=r,r=e)}else f=18608+(80*(0|a[e>>2])|0)+20|0,r=e}while(0);if(a[r>>2]=a[f>>2],(0|a[(d=f+16|0)>>2])>0){r=0;do{oe(m),r=r+1|0}while((0|r)<(0|a[d>>2]))}return e=f+4|0,a[s>>2]=a[e>>2],a[s+4>>2]=a[e+4>>2],a[s+8>>2]=a[e+8>>2],t=0|a[16848+(t<<2)>>2],$(s,u?3*t|0:t),J(m,s,m),Z(m),r=u&&((0|a[l>>2])+(0|a[m>>2])+(0|a[p>>2])|0)==(0|h)?1:2,L=c,0|(m=r)}function Ee(e,t){e|=0,t|=0;var n=0;do{n=0|Oe(e,t,0,1)}while(2==(0|n));return 0|n}function xe(e,t,n,r,o){e|=0,t|=0,n|=0,r|=0,o|=0;var l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,M,w=0,S=0,T=0,C=0,P=0;if(M=L,L=L+240|0,A=M+208|0,_=M,O=M+192|0,E=M+176|0,m=M+160|0,g=M+144|0,v=M+128|0,y=M+112|0,b=M+96|0,a[(w=M+224|0)>>2]=t,a[A>>2]=a[e>>2],a[A+4>>2]=a[e+4>>2],a[A+8>>2]=a[e+8>>2],a[A+12>>2]=a[e+12>>2],Me(A,w,_),a[o>>2]=0,(0|(h=r+n+(6==(0|r)&1)|0))<=(0|n))L=M;else{u=n+6|0,s=16928+((l=0|a[w>>2])<<2)|0,c=g+8|0,d=v+8|0,f=y+8|0,p=O+4|0,S=0,T=n,r=-1;e:for(;;){if(e=_+((w=(0|T)%6|0)<<4)|0,a[O>>2]=a[e>>2],a[O+4>>2]=a[e+4>>2],a[O+8>>2]=a[e+8>>2],a[O+12>>2]=a[e+12>>2],e=S,S=0|Oe(O,l,0,1),(0|T)>(0|n)&0!=(0|ze(t))&&(1!=(0|e)&&(0|a[O>>2])!=(0|r))){switch(K(_+(((w+5|0)%6|0)<<4)+4|0,E),K(_+(w<<4)+4|0,m),C=+(0|a[s>>2]),i[g>>3]=3*C,i[c>>3]=0,P=-1.5*C,i[v>>3]=P,i[d>>3]=2.598076211353316*C,i[y>>3]=P,i[f>>3]=-2.598076211353316*C,w=0|a[A>>2],0|a[17008+(80*w|0)+(((0|r)==(0|w)?0|a[O>>2]:r)<<2)>>2]){case 1:e=v,r=g;break;case 3:e=y,r=v;break;case 2:e=g,r=y;break;default:e=8;break e}ot(E,m,r,e,b),0|lt(E,b)||0|lt(m,b)||(ye(b,0|a[A>>2],l,1,o+8+(a[o>>2]<<4)|0),a[o>>2]=1+(0|a[o>>2]))}if((0|T)<(0|u)&&(K(p,E),ye(E,0|a[O>>2],l,1,o+8+(a[o>>2]<<4)|0),a[o>>2]=1+(0|a[o>>2])),(0|(T=T+1|0))>=(0|h)){e=3;break}r=0|a[O>>2]}3!=(0|e)?8==(0|e)&&x(22557,22521,746,22602):L=M}}function Me(e,t,n){e|=0,t|=0,n|=0;var r,i=0,o=0,l=0,u=0,s=0;r=L,L=L+160|0,o=r,u=20336,s=(l=i=r+80|0)+72|0;do{a[l>>2]=a[u>>2],l=l+4|0,u=u+4|0}while((0|l)<(0|s));u=20416,s=(l=o)+72|0;do{a[l>>2]=a[u>>2],l=l+4|0,u=u+4|0}while((0|l)<(0|s));i=(s=0==(0|ze(0|a[t>>2])))?i:o,ce(o=e+4|0),de(o),0|ze(0|a[t>>2])&&(ae(o),a[t>>2]=1+(0|a[t>>2])),a[n>>2]=a[e>>2],J(o,i,t=n+4|0),Z(t),a[n+16>>2]=a[e>>2],J(o,i+12|0,t=n+20|0),Z(t),a[n+32>>2]=a[e>>2],J(o,i+24|0,t=n+36|0),Z(t),a[n+48>>2]=a[e>>2],J(o,i+36|0,t=n+52|0),Z(t),a[n+64>>2]=a[e>>2],J(o,i+48|0,t=n+68|0),Z(t),a[n+80>>2]=a[e>>2],J(o,i+60|0,n=n+84|0),Z(n),L=r}function we(e){var t;return t=(e=+e)<0?e+6.283185307179586:e,+(e>=6.283185307179586?t+-6.283185307179586:t)}function Se(e,t){return t|=0,+u(+(+i[(e|=0)>>3]-+i[t>>3]))<17453292519943298e-27?0|(t=+u(+(+i[e+8>>3]-+i[t+8>>3]))<17453292519943298e-27):0|(t=0)}function Te(e,t){e|=0;var n,r,a,o=0;return r=+i[(t|=0)>>3],n=+i[e>>3],o=(a=+f(.5*(r-n)))*a+(o=+f(.5*(+i[t+8>>3]-+i[e+8>>3])))*(+d(+r)*+d(+n)*o),2*+v(+ +s(+o),+ +s(+(1-o)))*6371.007180918475}function Ce(e,t,n){e|=0,n|=0;var r,a,o,l,u=0,c=0,h=0,m=0,y=0,b=0;return b=+i[(t|=0)>>3],o=+i[e>>3],y=+f(.5*(b-o)),h=+i[t+8>>3],a=+i[e+8>>3],m=+f(.5*(h-a)),r=+d(+o),l=+d(+b),m=2*+v(+ +s(+(m=y*y+m*(l*r*m))),+ +s(+(1-m))),y=+i[n>>3],b=+f(.5*(y-b)),u=+i[n+8>>3],h=+f(.5*(u-h)),c=+d(+y),h=2*+v(+ +s(+(h=b*b+h*(l*c*h))),+ +s(+(1-h))),y=+f(.5*(o-y)),u=+f(.5*(a-u)),u=2*+v(+ +s(+(u=y*y+u*(r*c*u))),+ +s(+(1-u))),4*+g(+ +s(+ +p(.5*(c=.5*(m+h+u)))*+p(.5*(c-m))*+p(.5*(c-h))*+p(.5*(c-u))))}function Le(e,t){return t=0|xt(0|(e|=0),0|(t|=0),45),E(),127&t|0}function Pe(e,t){var n=0,r=0,a=0,i=0,o=0,l=0;if(!(!0&134217728==(-16777216&(t|=0)|0)))return 0|(t=0);if(o=0|xt(0|(e|=0),0|t,45),E(),(o&=127)>>>0>121)return 0|(t=0);n=0|xt(0|e,0|t,52),E(),n&=15;do{if(0|n){for(a=1,r=0;;){if(i=0|xt(0|e,0|t,3*(15-a|0)|0),E(),0!=(0|(i&=7))&(1^r)){if(1==(0|i)&0!=(0|I(o))){l=0,r=13;break}r=1}if(7==(0|i)){l=0,r=13;break}if(!(a>>>0>>0)){r=9;break}a=a+1|0}if(9==(0|r)){if(15!=(0|n))break;return 0|(l=1)}if(13==(0|r))return 0|l}}while(0);for(;;){if(l=0|xt(0|e,0|t,3*(14-n|0)|0),E(),!(7==(7&l|0)&!0)){l=0,r=13;break}if(!(n>>>0<14)){l=1,r=13;break}n=n+1|0}return 13==(0|r)?0|l:0}function ke(e,t,n){n|=0;var r=0,a=0;if(r=0|xt(0|(e|=0),0|(t|=0),52),E(),(0|(r&=15))>=(0|n)){if((0|r)!=(0|n))if(n>>>0<=15){if(e|=a=0|Mt(0|n,0,52),t=0|E()|-15728641&t,(0|r)>(0|n))do{a=0|Mt(7,0,3*(14-n|0)|0),n=n+1|0,e|=a,t=0|E()|t}while((0|n)<(0|r))}else t=0,e=0}else t=0,e=0;return O(0|t),0|e}function De(e,t,n,r){n|=0,r|=0;var i,o=0,l=0,u=0,s=0,c=0,d=0;if(u=0|xt(0|(e|=0),0|(t|=0),52),E(),(0|n)<16&(0|(u&=15))<=(0|n)){if((0|u)==(0|n))return a[(n=r)>>2]=e,void(a[n+4>>2]=t);if(i=(0|(c=0|tt(7,n-u|0)))/7|0,s=0|xt(0|e,0|t,45),E(),0|I(127&s)){e:do{if(u)for(l=1;;){if(o=0|xt(0|e,0|t,3*(15-l|0)|0),E(),0|(o&=7))break e;if(!(l>>>0>>0)){o=0;break}l=l+1|0}else o=0}while(0);l=0==(0|o)}else l=0;if(d=0|Mt(u+1|0,0,52),o=0|E()|-15728641&t,De(t=(d|e)&~(t=0|Mt(7,0,0|(s=3*(14-u|0)|0))),u=o&~(0|E()),n,r),o=r+(i<<3)|0,!l)return De((d=0|Mt(1,0,0|s))|t,0|E()|u,n,o),d=o+(i<<3)|0,De((c=0|Mt(2,0,0|s))|t,0|E()|u,n,d),d=d+(i<<3)|0,De((c=0|Mt(3,0,0|s))|t,0|E()|u,n,d),d=d+(i<<3)|0,De((c=0|Mt(4,0,0|s))|t,0|E()|u,n,d),d=d+(i<<3)|0,De((c=0|Mt(5,0,0|s))|t,0|E()|u,n,d),void De((c=0|Mt(6,0,0|s))|t,0|E()|u,n,d+(i<<3)|0);l=o+(i<<3)|0,(0|c)>6&&(Ct(0|o,0,(d=(l>>>0>(c=o+8|0)>>>0?l:c)+-1+(0-o)|0)+8&-8|0),o=c+(d>>>3<<3)|0),De((d=0|Mt(2,0,0|s))|t,0|E()|u,n,o),d=o+(i<<3)|0,De((c=0|Mt(3,0,0|s))|t,0|E()|u,n,d),d=d+(i<<3)|0,De((c=0|Mt(4,0,0|s))|t,0|E()|u,n,d),d=d+(i<<3)|0,De((c=0|Mt(5,0,0|s))|t,0|E()|u,n,d),De((c=0|Mt(6,0,0|s))|t,0|E()|u,n,d+(i<<3)|0)}}function Re(e,t){var n=0,r=0,a=0;if(a=0|xt(0|(e|=0),0|(t|=0),45),E(),!(0|I(127&a)))return 0|(a=0);a=0|xt(0|e,0|t,52),E(),a&=15;e:do{if(a)for(r=1;;){if(n=0|xt(0|e,0|t,3*(15-r|0)|0),E(),0|(n&=7))break e;if(!(r>>>0>>0)){n=0;break}r=r+1|0}else n=0}while(0);return 0|(a=0==(0|n)&1)}function je(e,t){var n=0,r=0,a=0;if(a=0|xt(0|(e|=0),0|(t|=0),52),E(),!(a&=15))return 0|(a=0);for(r=1;;){if(n=0|xt(0|e,0|t,3*(15-r|0)|0),E(),0|(n&=7)){r=5;break}if(!(r>>>0>>0)){n=0,r=5;break}r=r+1|0}return 5==(0|r)?0|n:0}function Ie(e,t){var n=0,r=0,a=0,i=0,o=0,l=0,u=0;if(u=0|xt(0|(e|=0),0|(t|=0),52),E(),!(u&=15))return u=e,O(0|(l=t)),0|u;for(l=1,n=0;;){r=0|Mt(7,0,0|(i=3*(15-l|0)|0)),a=0|E(),o=0|xt(0|e,0|t,0|i),E(),e=(i=0|Mt(0|ue(7&o),0,0|i))|e&~r,t=(o=0|E())|t&~a;e:do{if(!n)if(0==(i&r|0)&0==(o&a|0))n=0;else if(r=0|xt(0|e,0|t,52),E(),r&=15){n=1;t:for(;;){switch(o=0|xt(0|e,0|t,3*(15-n|0)|0),E(),7&o){case 1:break t;case 0:break;default:n=1;break e}if(!(n>>>0>>0)){n=1;break e}n=n+1|0}for(n=1;;){if(a=0|xt(0|e,0|t,0|(o=3*(15-n|0)|0)),E(),i=0|Mt(7,0,0|o),t&=~(0|E()),e=e&~i|(o=0|Mt(0|ue(7&a),0,0|o)),t=0|t|E(),!(n>>>0>>0)){n=1;break}n=n+1|0}}else n=1}while(0);if(!(l>>>0>>0))break;l=l+1|0}return O(0|t),0|e}function Fe(e,t){var n=0,r=0,a=0,i=0,o=0;if(r=0|xt(0|(e|=0),0|(t|=0),52),E(),!(r&=15))return r=e,O(0|(n=t)),0|r;for(n=1;o=0|xt(0|e,0|t,0|(i=3*(15-n|0)|0)),E(),a=0|Mt(7,0,0|i),t&=~(0|E()),e=(i=0|Mt(0|ue(7&o),0,0|i))|e&~a,t=0|E()|t,n>>>0>>0;)n=n+1|0;return O(0|t),0|e}function Ne(e,t){var n=0,r=0,a=0,i=0,o=0,l=0,u=0;if(u=0|xt(0|(e|=0),0|(t|=0),52),E(),!(u&=15))return u=e,O(0|(l=t)),0|u;for(l=1,n=0;;){r=0|Mt(7,0,0|(i=3*(15-l|0)|0)),a=0|E(),o=0|xt(0|e,0|t,0|i),E(),e=(i=0|Mt(0|se(7&o),0,0|i))|e&~r,t=(o=0|E())|t&~a;e:do{if(!n)if(0==(i&r|0)&0==(o&a|0))n=0;else if(r=0|xt(0|e,0|t,52),E(),r&=15){n=1;t:for(;;){switch(o=0|xt(0|e,0|t,3*(15-n|0)|0),E(),7&o){case 1:break t;case 0:break;default:n=1;break e}if(!(n>>>0>>0)){n=1;break e}n=n+1|0}for(n=1;;){if(i=0|Mt(7,0,0|(a=3*(15-n|0)|0)),o=t&~(0|E()),t=0|xt(0|e,0|t,0|a),E(),e=e&~i|(t=0|Mt(0|se(7&t),0,0|a)),t=0|o|E(),!(n>>>0>>0)){n=1;break}n=n+1|0}}else n=1}while(0);if(!(l>>>0>>0))break;l=l+1|0}return O(0|t),0|e}function Be(e,t){var n=0,r=0,a=0,i=0,o=0;if(r=0|xt(0|(e|=0),0|(t|=0),52),E(),!(r&=15))return r=e,O(0|(n=t)),0|r;for(n=1;i=0|Mt(7,0,0|(o=3*(15-n|0)|0)),a=t&~(0|E()),t=0|xt(0|e,0|t,0|o),E(),e=(t=0|Mt(0|se(7&t),0,0|o))|e&~i,t=0|E()|a,n>>>0>>0;)n=n+1|0;return O(0|t),0|e}function ze(e){return 0|(0|(e|=0))%2}function Ue(e,t){e|=0;var n,r;return r=L,L=L+16|0,n=r,(t|=0)>>>0<=15&&2146435072!=(2146435072&a[e+4>>2]|0)&&2146435072!=(2146435072&a[e+8+4>>2]|0)?(!function(e,t,n){var r,a;r=L,L=L+16|0,ve(e|=0,t|=0,n|=0,a=r),X(a,n+4|0),L=r}(e,t,n),t=0|function(e,t){e|=0;var n,r=0,i=0,o=0,l=0,u=0,s=0,c=0,d=0;if(n=L,L=L+64|0,s=n+40|0,i=n+24|0,o=n+12|0,l=n,Mt(0|(t|=0),0,52),r=134225919|E(),!t)return(0|a[e+4>>2])>2||(0|a[e+8>>2])>2||(0|a[e+12>>2])>2?(s=0,O(0|(u=0)),L=n,0|s):(Mt(0|N(e),0,45),u=0|E()|r,s=-1,O(0|u),L=n,0|s);if(a[s>>2]=a[e>>2],a[s+4>>2]=a[e+4>>2],a[s+8>>2]=a[e+8>>2],a[s+12>>2]=a[e+12>>2],u=s+4|0,(0|t)>0)for(e=-1;a[i>>2]=a[u>>2],a[i+4>>2]=a[u+4>>2],a[i+8>>2]=a[u+8>>2],1&t?(te(u),a[o>>2]=a[u>>2],a[o+4>>2]=a[u+4>>2],a[o+8>>2]=a[u+8>>2],re(o)):(ne(u),a[o>>2]=a[u>>2],a[o+4>>2]=a[u+4>>2],a[o+8>>2]=a[u+8>>2],ae(o)),Q(i,o,l),Z(l),c=0|Mt(7,0,0|(d=3*(15-t|0)|0)),r&=~(0|E()),e=(d=0|Mt(0|ee(l),0,0|d))|e&~c,r=0|E()|r,(0|t)>1;)t=t+-1|0;else e=-1;e:do{if((0|a[u>>2])<=2&&(0|a[s+8>>2])<=2&&(0|a[s+12>>2])<=2){if(t=0|Mt(0|(i=0|N(s)),0,45),t|=e,e=0|E()|-1040385&r,l=0|B(s),!(0|I(i))){if((0|l)<=0)break;for(o=0;;){if(i=0|xt(0|t,0|e,52),E(),i&=15)for(r=1;s=0|xt(0|t,0|e,0|(d=3*(15-r|0)|0)),E(),c=0|Mt(7,0,0|d),e&=~(0|E()),t=t&~c|(d=0|Mt(0|ue(7&s),0,0|d)),e=0|e|E(),r>>>0>>0;)r=r+1|0;if((0|(o=o+1|0))==(0|l))break e}}o=0|xt(0|t,0|e,52),E(),o&=15;t:do{if(o){r=1;n:for(;;){switch(d=0|xt(0|t,0|e,3*(15-r|0)|0),E(),7&d){case 1:break n;case 0:break;default:break t}if(!(r>>>0>>0))break t;r=r+1|0}if(0|z(i,0|a[s>>2]))for(r=1;c=0|Mt(7,0,0|(s=3*(15-r|0)|0)),d=e&~(0|E()),e=0|xt(0|t,0|e,0|s),E(),t=t&~c|(e=0|Mt(0|se(7&e),0,0|s)),e=0|d|E(),r>>>0>>0;)r=r+1|0;else for(r=1;s=0|xt(0|t,0|e,0|(d=3*(15-r|0)|0)),E(),c=0|Mt(7,0,0|d),e&=~(0|E()),t=t&~c|(d=0|Mt(0|ue(7&s),0,0|d)),e=0|e|E(),r>>>0>>0;)r=r+1|0}}while(0);if((0|l)>0){r=0;do{t=0|Ie(t,e),e=0|E(),r=r+1|0}while((0|r)!=(0|l))}}else t=0,e=0}while(0);return d=t,O(0|(c=e)),L=n,0|d}(n,t),e=0|E()):(e=0,t=0),O(0|e),L=r,0|t}function Ve(e,t,n){var r,i=0,o=0,l=0;if(r=(n|=0)+4|0,o=0|xt(0|(e|=0),0|(t|=0),52),E(),o&=15,l=0|xt(0|e,0|t,45),E(),i=0==(0|o),0|I(127&l)){if(i)return 0|(l=1);i=1}else{if(i)return 0|(l=0);i=0==(0|a[r>>2])&&0==(0|a[n+8>>2])?0!=(0|a[n+12>>2])&1:1}for(n=1;1&n?re(r):ae(r),l=0|xt(0|e,0|t,3*(15-n|0)|0),E(),ie(r,7&l),n>>>0>>0;)n=n+1|0;return 0|i}function He(e,t,n){n|=0;var r,i,o=0,l=0,u=0,s=0,c=0,d=0;i=L,L=L+16|0,r=i,d=0|xt(0|(e|=0),0|(t|=0),45),E(),d&=127;e:do{if(0!=(0|I(d))&&(u=0|xt(0|e,0|t,52),E(),0!=(0|(u&=15)))){o=1;t:for(;;){switch(c=0|xt(0|e,0|t,3*(15-o|0)|0),E(),7&c){case 5:break t;case 0:break;default:o=t;break e}if(!(o>>>0>>0)){o=t;break e}o=o+1|0}for(l=1,o=t;s=0|Mt(7,0,0|(t=3*(15-l|0)|0)),c=o&~(0|E()),o=0|xt(0|e,0|o,0|t),E(),e=e&~s|(o=0|Mt(0|se(7&o),0,0|t)),o=0|c|E(),l>>>0>>0;)l=l+1|0}else o=t}while(0);if(c=7728+(28*d|0)|0,a[n>>2]=a[c>>2],a[n+4>>2]=a[c+4>>2],a[n+8>>2]=a[c+8>>2],a[n+12>>2]=a[c+12>>2],0|Ve(e,o,n)){if(s=n+4|0,a[r>>2]=a[s>>2],a[r+4>>2]=a[s+4>>2],a[r+8>>2]=a[s+8>>2],u=0|xt(0|e,0|o,52),E(),c=15&u,1&u?(ae(s),u=c+1|0):u=c,0|I(d)){e:do{if(c)for(t=1;;){if(l=0|xt(0|e,0|o,3*(15-t|0)|0),E(),0|(l&=7)){o=l;break e}if(!(t>>>0>>0)){o=0;break}t=t+1|0}else o=0}while(0);o=4==(0|o)&1}else o=0;if(0|Oe(n,u,o,0)){if(0|I(d))do{}while(0!=(0|Oe(n,u,0,0)));(0|u)!=(0|c)&&ne(s)}else(0|u)!=(0|c)&&(a[s>>2]=a[r>>2],a[s+4>>2]=a[r+4>>2],a[s+8>>2]=a[r+8>>2]);L=i}else L=i}function Ye(e,t,n){n|=0;var r,a;r=L,L=L+16|0,He(e|=0,t|=0,a=r),t=0|xt(0|e,0|t,52),E(),be(a,15&t,n),L=r}function We(e,t,n){n|=0;var r,a,i=0,o=0;a=L,L=L+16|0,He(e|=0,t|=0,r=a),i=0|xt(0|e,0|t,45),E(),i=0==(0|I(127&i)),o=0|xt(0|e,0|t,52),E(),o&=15;e:do{if(!i){if(0|o)for(i=1;;){if(!(0==((0|Mt(7,0,3*(15-i|0)|0))&e|0)&0==((0|E())&t|0)))break e;if(!(i>>>0>>0))break;i=i+1|0}return Ae(r,o,0,5,n),void(L=a)}}while(0);xe(r,o,0,6,n),L=a}function Ge(e,t){t|=0;var n,r=0,i=0,o=0,l=0,u=0,s=0;if(Mt(0|(e|=0),0,52),n=134225919|E(),(0|e)<1){i=0,r=0;do{0|I(i)&&(Mt(0|i,0,45),u=0|n|E(),a[(e=t+(r<<3)|0)>>2]=-1,a[e+4>>2]=u,r=r+1|0),i=i+1|0}while(122!=(0|i))}else{u=0,r=0;do{if(0|I(u)){for(Mt(0|u,0,45),i=1,o=-1,l=0|n|E();o&=~(s=0|Mt(7,0,3*(15-i|0)|0)),l&=~(0|E()),(0|i)!=(0|e);)i=i+1|0;a[(s=t+(r<<3)|0)>>2]=o,a[s+4>>2]=l,r=r+1|0}u=u+1|0}while(122!=(0|u))}}function qe(e,t,n,r){var i,o=0,l=0,u=0,s=0,c=0;if(i=L,L=L+64|0,u=i,(0|(e|=0))==(0|(n|=0))&(0|(t|=0))==(0|(r|=0))|!1|134217728!=(2013265920&t|0)|!1|134217728!=(2013265920&r|0))return L=i,0|(u=0);if(o=0|xt(0|e,0|t,52),E(),o&=15,l=0|xt(0|n,0|r,52),E(),(0|o)!=(15&l|0))return L=i,0|(u=0);if(l=o+-1|0,o>>>0>1&&(c=0|ke(e,t,l),s=0|E(),(0|c)==(0|(l=0|ke(n,r,l)))&(0|s)==(0|E()))){if(o=0|xt(0|e,0|t,0|(l=3*(15^o)|0)),E(),o&=7,l=0|xt(0|n,0|r,0|l),E(),0==(0|o)|0==(0|(l&=7)))return L=i,0|(c=1);if((0|a[21136+(o<<2)>>2])==(0|l))return L=i,0|(c=1);if((0|a[21168+(o<<2)>>2])==(0|l))return L=i,0|(c=1)}l=(o=u)+56|0;do{a[o>>2]=0,o=o+4|0}while((0|o)<(0|l));return P(e,t,1,u),o=(0|a[(c=u)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)||(0|a[(c=u+8|0)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)||(0|a[(c=u+16|0)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)||(0|a[(c=u+24|0)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)||(0|a[(c=u+32|0)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)||(0|a[(c=u+40|0)>>2])==(0|n)&&(0|a[c+4>>2])==(0|r)?1:1&((0|a[(o=u+48|0)>>2])==(0|n)?(0|a[o+4>>2])==(0|r):0),L=i,0|(c=o)}function Xe(e,t,n){n|=0;var r,i,o,l,u=0;if(o=L,L=L+16|0,i=o,u=0|xt(0|(e|=0),0|(t|=0),56),E(),-1==(0|(t=0|function(e,t,n){n|=0;var r,i=0;if(i=0|Re(e=e|0,t=t|0),(n+-1|0)>>>0>5)return 0|(n=-1);if(1==(0|n)&(r=0!=(0|i)))return 0|(n=-1);return i=0|function(e,t){var n,r,i,o=0,l=0,u=0,s=0,c=0;if(i=L,L=L+32|0,r=i,He(e=e|0,t=t|0,n=i+16|0),u=0|Le(e,t),c=0|je(e,t),function(e,t){e=7728+(28*(e|=0)|0)|0,a[(t|=0)>>2]=a[e>>2],a[t+4>>2]=a[e+4>>2],a[t+8>>2]=a[e+8>>2],a[t+12>>2]=a[e+12>>2]}(u,r),t=0|function(e,t){e|=0;var n=0,r=0;if((t|=0)>>>0>20)return 0|(t=-1);do{if((0|a[11152+(216*t|0)>>2])!=(0|e))if((0|a[11152+(216*t|0)+8>>2])!=(0|e))if((0|a[11152+(216*t|0)+16>>2])!=(0|e))if((0|a[11152+(216*t|0)+24>>2])!=(0|e))if((0|a[11152+(216*t|0)+32>>2])!=(0|e))if((0|a[11152+(216*t|0)+40>>2])!=(0|e))if((0|a[11152+(216*t|0)+48>>2])!=(0|e))if((0|a[11152+(216*t|0)+56>>2])!=(0|e))if((0|a[11152+(216*t|0)+64>>2])!=(0|e))if((0|a[11152+(216*t|0)+72>>2])!=(0|e))if((0|a[11152+(216*t|0)+80>>2])!=(0|e))if((0|a[11152+(216*t|0)+88>>2])!=(0|e))if((0|a[11152+(216*t|0)+96>>2])!=(0|e))if((0|a[11152+(216*t|0)+104>>2])!=(0|e))if((0|a[11152+(216*t|0)+112>>2])!=(0|e))if((0|a[11152+(216*t|0)+120>>2])!=(0|e))if((0|a[11152+(216*t|0)+128>>2])!=(0|e)){if((0|a[11152+(216*t|0)+136>>2])!=(0|e)){if((0|a[11152+(216*t|0)+144>>2])==(0|e)){e=0,n=2,r=0;break}if((0|a[11152+(216*t|0)+152>>2])==(0|e)){e=0,n=2,r=1;break}if((0|a[11152+(216*t|0)+160>>2])==(0|e)){e=0,n=2,r=2;break}if((0|a[11152+(216*t|0)+168>>2])==(0|e)){e=1,n=2,r=0;break}if((0|a[11152+(216*t|0)+176>>2])==(0|e)){e=1,n=2,r=1;break}if((0|a[11152+(216*t|0)+184>>2])==(0|e)){e=1,n=2,r=2;break}if((0|a[11152+(216*t|0)+192>>2])==(0|e)){e=2,n=2,r=0;break}if((0|a[11152+(216*t|0)+200>>2])==(0|e)){e=2,n=2,r=1;break}if((0|a[11152+(216*t|0)+208>>2])==(0|e)){e=2,n=2,r=2;break}return 0|(e=-1)}e=2,n=1,r=2}else e=2,n=1,r=1;else e=2,n=1,r=0;else e=1,n=1,r=2;else e=1,n=1,r=1;else e=1,n=1,r=0;else e=0,n=1,r=2;else e=0,n=1,r=1;else e=0,n=1,r=0;else e=2,n=0,r=2;else e=2,n=0,r=1;else e=2,n=0,r=0;else e=1,n=0,r=2;else e=1,n=0,r=1;else e=1,n=0,r=0;else e=0,n=0,r=2;else e=0,n=0,r=1;else e=0,n=0,r=0}while(0);return 0|(t=0|a[11152+(216*t|0)+(72*n|0)+(24*e|0)+(r<<3)+4>>2])}(u,0|a[n>>2]),!(0|I(u)))return L=i,0|(c=t);switch(0|u){case 4:e=0,o=14;break;case 14:e=1,o=14;break;case 24:e=2,o=14;break;case 38:e=3,o=14;break;case 49:e=4,o=14;break;case 58:e=5,o=14;break;case 63:e=6,o=14;break;case 72:e=7,o=14;break;case 83:e=8,o=14;break;case 97:e=9,o=14;break;case 107:e=10,o=14;break;case 117:e=11,o=14;break;default:s=0,l=0}14==(0|o)&&(s=0|a[22096+(24*e|0)+8>>2],l=0|a[22096+(24*e|0)+16>>2]);(0|(e=0|a[n>>2]))!=(0|a[r>>2])&&(u=0|F(u),e=0|a[n>>2],u|(0|e)==(0|l)&&(t=(t+1|0)%6|0));if(3==(0|c)&(0|e)==(0|l))return L=i,0|(c=(t+5|0)%6|0);if(!(5==(0|c)&(0|e)==(0|s)))return L=i,0|(c=t);return L=i,0|(c=(t+1|0)%6|0)}(e,t),r?0|(n=(5-i+(0|a[22384+(n<<2)>>2])|0)%5|0):0|(n=(6-i+(0|a[22416+(n<<2)>>2])|0)%6|0)}(r=(l=!0&268435456==(2013265920&t|0))?e:0,e=l?-2130706433&t|134217728:0,7&u))))return a[n>>2]=0,void(L=o);He(r,e,i),u=0|xt(0|r,0|e,52),E(),u&=15,0|Re(r,e)?Ae(i,u,t,2,n):xe(i,u,t,2,n),L=o}function Ze(e){e|=0;var t,n,r=0;return(t=0|bt(1,12))||x(22691,22646,49,22704),0|(r=0|a[(n=e+4|0)>>2])?(a[(r=r+8|0)>>2]=t,a[n>>2]=t,0|t):(0|a[e>>2]&&x(22721,22646,61,22744),a[(r=e)>>2]=t,a[n>>2]=t,0|t)}function Ke(e,t){e|=0,t|=0;var n,r;return(r=0|vt(24))||x(22758,22646,78,22772),a[r>>2]=a[t>>2],a[r+4>>2]=a[t+4>>2],a[r+8>>2]=a[t+8>>2],a[r+12>>2]=a[t+12>>2],a[r+16>>2]=0,0|(n=0|a[(t=e+4|0)>>2])?(a[n+16>>2]=r,a[t>>2]=r,0|r):(0|a[e>>2]&&x(22787,22646,82,22772),a[e>>2]=r,a[t>>2]=r,0|r)}function Je(e){var t,n,r=0,o=0,l=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0,E=0,M=0,w=0,S=0,T=0,C=0,L=0,P=0,k=0,D=0,R=0,j=0,I=0;if(0|a[(s=(e|=0)+8|0)>>2])return 0|(I=1);if(!(l=0|a[e>>2]))return 0|(I=0);r=l,o=0;do{o=o+1|0,r=0|a[r+8>>2]}while(0!=(0|r));if(o>>>0<2)return 0|(I=0);(n=0|vt(o<<2))||x(22807,22646,317,22826),(t=0|vt(o<<5))||x(22848,22646,321,22826),a[e>>2]=0,a[(T=e+4|0)>>2]=0,a[s>>2]=0,o=0,R=0,S=0,g=0;e:for(;;){if(m=0|a[l>>2]){c=0,d=m;do{if(p=+i[d+8>>3],r=d,d=0|a[d+16>>2],f=+i[(s=(h=0==(0|d))?m:d)+8>>3],+u(+(p-f))>3.141592653589793){I=14;break}c+=(f-p)*(+i[r>>3]+ +i[s>>3])}while(!h);if(14==(0|I)){I=0,c=0,r=m;do{w=+i[r+8>>3],k=0|a[(D=r+16|0)>>2],M=+i[(k=0==(0|k)?m:k)+8>>3],c+=(+i[r>>3]+ +i[k>>3])*((M<0?M+6.283185307179586:M)-(w<0?w+6.283185307179586:w)),r=0|a[(0==(0|r)?l:D)>>2]}while(0!=(0|r))}c>0?(a[n+(R<<2)>>2]=l,R=R+1|0,s=S,r=g):I=19}else I=19;if(19==(0|I)){I=0;do{if(!o){if(g){s=T,d=g+8|0,r=l,o=e;break}if(0|a[e>>2]){I=27;break e}s=T,d=e,r=l,o=e;break}if(0|a[(r=o+8|0)>>2]){I=21;break e}if(!(o=0|bt(1,12))){I=23;break e}a[r>>2]=o,s=o+4|0,d=o,r=g}while(0);if(a[d>>2]=l,a[s>>2]=l,d=t+(S<<5)|0,h=0|a[l>>2]){for(i[(m=t+(S<<5)+8|0)>>3]=17976931348623157e292,i[(g=t+(S<<5)+24|0)>>3]=17976931348623157e292,i[d>>3]=-17976931348623157e292,i[(v=t+(S<<5)+16|0)>>3]=-17976931348623157e292,O=17976931348623157e292,E=-17976931348623157e292,s=0,y=h,p=17976931348623157e292,A=17976931348623157e292,_=-17976931348623157e292,f=-17976931348623157e292;c=+i[y>>3],w=+i[y+8>>3],y=0|a[y+16>>2],M=+i[((b=0==(0|y))?h:y)+8>>3],c>3]=c,p=c),w>3]=w,A=w),c>_?i[d>>3]=c:c=_,w>f&&(i[v>>3]=w,f=w),O=w>0&wE?w:E,s|=+u(+(w-M))>3.141592653589793,!b;)_=c;s&&(i[v>>3]=E,i[g>>3]=O)}else a[d>>2]=0,a[d+4>>2]=0,a[d+8>>2]=0,a[d+12>>2]=0,a[d+16>>2]=0,a[d+20>>2]=0,a[d+24>>2]=0,a[d+28>>2]=0;s=S+1|0}if(l=0|a[(D=l+8|0)>>2],a[D>>2]=0,!l){I=45;break}S=s,g=r}if(21==(0|I))x(22624,22646,35,22658);else if(23==(0|I))x(22678,22646,37,22658);else if(27==(0|I))x(22721,22646,61,22744);else if(45==(0|I)){e:do{if((0|R)>0){for(D=0==(0|s),P=s<<2,k=0==(0|e),L=0,r=0;;){if(C=0|a[n+(L<<2)>>2],D)I=73;else{if(!(S=0|vt(P))){I=50;break}if(!(T=0|vt(P))){I=52;break}t:do{if(k)o=0;else{for(s=0,o=0,d=e;l=t+(s<<5)|0,0|Qe(0|a[d>>2],l,0|a[C>>2])?(a[S+(o<<2)>>2]=d,a[T+(o<<2)>>2]=l,b=o+1|0):b=o,d=0|a[d+8>>2];)s=s+1|0,o=b;if((0|b)>0)if(l=0|a[S>>2],1==(0|b))o=l;else for(v=0,y=-1,o=l,g=l;;){for(h=0|a[g>>2],l=0,d=0;m=(0|(s=0|a[a[S+(d<<2)>>2]>>2]))==(0|h)?l:l+(1&(0|Qe(s,0|a[T+(d<<2)>>2],0|a[h>>2])))|0,(0|(d=d+1|0))!=(0|b);)l=m;if(o=(s=(0|m)>(0|y))?g:o,(0|(l=v+1|0))==(0|b))break t;v=l,y=s?m:y,g=0|a[S+(l<<2)>>2]}else o=0}}while(0);if(yt(S),yt(T),o){if(l=0|a[(s=o+4|0)>>2])o=l+8|0;else if(0|a[o>>2]){I=70;break}a[o>>2]=C,a[s>>2]=C}else I=73}if(73==(0|I)){if(I=0,0|(r=0|a[C>>2]))do{T=r,r=0|a[r+16>>2],yt(T)}while(0!=(0|r));yt(C),r=2}if((0|(L=L+1|0))>=(0|R)){j=r;break e}}50==(0|I)?x(22863,22646,249,22882):52==(0|I)?x(22901,22646,252,22882):70==(0|I)&&x(22721,22646,61,22744)}else j=0}while(0);return yt(n),yt(t),0|(I=j)}return 0}function Qe(e,t,n){e|=0;var r,o=0,l=0,u=0,s=0,c=0,d=0,f=0;if(!(0|Y(t|=0,n|=0)))return 0|(e=0);if(t=0|H(t),r=+i[n>>3],o=t&(o=+i[n+8>>3])<0?o+6.283185307179586:o,!(e=0|a[e>>2]))return 0|(e=0);if(t){t=0,n=e;e:for(;;){for(;s=+i[n>>3],d=+i[n+8>>3],f=0|a[(n=n+16|0)>>2],u=+i[(f=0==(0|f)?e:f)>>3],l=+i[f+8>>3],s>u?(c=s,s=d):(c=u,u=s,s=l,l=d),rc;)if(!(n=0|a[n>>2])){n=22;break e}if(o=(s=s<0?s+6.283185307179586:s)==o|(d=l<0?l+6.283185307179586:l)==o?o+-2220446049250313e-31:o,((d+=(r-u)/(c-u)*(s-d))<0?d+6.283185307179586:d)>o&&(t^=1),!(n=0|a[n>>2])){n=22;break}}if(22==(0|n))return 0|t}else{t=0,n=e;e:for(;;){for(;s=+i[n>>3],d=+i[n+8>>3],f=0|a[(n=n+16|0)>>2],u=+i[(f=0==(0|f)?e:f)>>3],l=+i[f+8>>3],s>u?(c=s,s=d):(c=u,u=s,s=l,l=d),rc;)if(!(n=0|a[n>>2])){n=22;break e}if(l+(r-u)/(c-u)*(s-l)>(o=s==o|l==o?o+-2220446049250313e-31:o)&&(t^=1),!(n=0|a[n>>2])){n=22;break}}if(22==(0|n))return 0|t}return 0}function $e(e,t,n,i,o){n|=0,i|=0,o|=0;var l,u,s,c,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0;if(c=L,L=L+32|0,A=c+16|0,s=c,d=0|xt(0|(e|=0),0|(t|=0),52),E(),d&=15,v=0|xt(0|n,0|i,52),E(),(0|d)!=(15&v|0))return L=c,0|(A=1);if(m=0|xt(0|e,0|t,45),E(),m&=127,g=0|xt(0|n,0|i,45),E(),v=(0|m)!=(0|(g&=127))){if(7==(0|(p=0|V(m,g))))return L=c,0|(A=2);7==(0|(h=0|V(g,m)))?x(22925,22949,151,22959):(y=p,f=h)}else y=0,f=0;l=0|I(m),u=0|I(g),a[A>>2]=0,a[A+4>>2]=0,a[A+8>>2]=0,a[A+12>>2]=0;do{if(y){if(p=(0|(g=0|a[4304+(28*m|0)+(y<<2)>>2]))>0,u)if(p){m=0,h=n,p=i;do{h=0|Ne(h,p),p=0|E(),1==(0|(f=0|se(f)))&&(f=0|se(1)),m=m+1|0}while((0|m)!=(0|g));g=f,m=h,h=p}else g=f,m=n,h=i;else if(p){m=0,h=n,p=i;do{h=0|Be(h,p),p=0|E(),f=0|se(f),m=m+1|0}while((0|m)!=(0|g));g=f,m=h,h=p}else g=f,m=n,h=i;if(Ve(m,h,A),v||x(22972,22949,181,22959),(p=0!=(0|l))&(f=0!=(0|u))&&x(22999,22949,182,22959),p){if(f=0|je(e,t),0|r[22032+(7*f|0)+y>>0]){d=3;break}m=h=0|a[21200+(28*f|0)+(y<<2)>>2],b=26}else if(f){if(f=0|je(m,h),0|r[22032+(7*f|0)+g>>0]){d=4;break}m=0,h=0|a[21200+(28*g|0)+(f<<2)>>2],b=26}else f=0;if(26==(0|b))if((0|h)<=-1&&x(23030,22949,212,22959),(0|m)<=-1&&x(23053,22949,213,22959),(0|h)>0){p=A+4|0,f=0;do{le(p),f=f+1|0}while((0|f)!=(0|h));f=m}else f=m;if(a[s>>2]=0,a[s+4>>2]=0,a[s+8>>2]=0,ie(s,y),0|d)for(;0|ze(d)?re(s):ae(s),(0|d)>1;)d=d+-1|0;if((0|f)>0){d=0;do{le(s),d=d+1|0}while((0|d)!=(0|f))}J(b=A+4|0,s,b),Z(b),b=50}else if(Ve(n,i,A),0!=(0|l)&0!=(0|u))if((0|g)!=(0|m)&&x(23077,22949,243,22959),f=0|je(e,t),d=0|je(n,i),0|r[22032+(7*f|0)+d>>0])d=5;else if((0|(f=0|a[21200+(28*f|0)+(d<<2)>>2]))>0){p=A+4|0,d=0;do{le(p),d=d+1|0}while((0|d)!=(0|f));b=50}else b=50;else b=50}while(0);return 50==(0|b)&&(d=A+4|0,a[o>>2]=a[d>>2],a[o+4>>2]=a[d+4>>2],a[o+8>>2]=a[d+8>>2],d=0),L=c,0|(A=d)}function et(e,t,n,r){n|=0,r|=0;var i,o,l=0,u=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0;if(o=L,L=L+48|0,s=o+36|0,c=o+24|0,d=o+12|0,f=o,u=0|xt(0|(e|=0),0|(t|=0),52),E(),u&=15,h=0|xt(0|e,0|t,45),E(),i=0|I(h&=127),Mt(0|u,0,52),v=134225919|E(),a[(g=r)>>2]=-1,a[g+4>>2]=v,!u)return(0|a[n>>2])>1||(0|a[n+4>>2])>1||(0|a[n+8>>2])>1||127==(0|(l=0|U(h,0|ee(n))))?(L=o,0|(v=1)):(m=0|Mt(0|l,0,45),g=0|E(),g=-1040385&a[(h=r)+4>>2]|g,a[(v=r)>>2]=a[h>>2]|m,a[v+4>>2]=g,L=o,0|(v=0));for(a[s>>2]=a[n>>2],a[s+4>>2]=a[n+4>>2],a[s+8>>2]=a[n+8>>2];a[c>>2]=a[s>>2],a[c+4>>2]=a[s+4>>2],a[c+8>>2]=a[s+8>>2],0|ze(u)?(te(s),a[d>>2]=a[s>>2],a[d+4>>2]=a[s+4>>2],a[d+8>>2]=a[s+8>>2],re(d)):(ne(s),a[d>>2]=a[s>>2],a[d+4>>2]=a[s+4>>2],a[d+8>>2]=a[s+8>>2],ae(d)),Q(c,d,f),Z(f),y=0|a[(g=r)>>2],g=0|a[g+4>>2],n=0|Mt(7,0,0|(b=3*(15-u|0)|0)),g&=~(0|E()),b=0|Mt(0|ee(f),0,0|b),g=0|E()|g,a[(v=r)>>2]=b|y&~n,a[v+4>>2]=g,(0|u)>1;)u=u+-1|0;e:do{if((0|a[s>>2])<=1&&(0|a[s+4>>2])<=1&&(0|a[s+8>>2])<=1){f=127==(0|(c=0|U(h,u=0|ee(s))))?0:0|I(c);t:do{if(u){if(i){if(s=21408+(28*(0|je(e,t))|0)+(u<<2)|0,(0|(s=0|a[s>>2]))>0){n=0;do{u=0|ue(u),n=n+1|0}while((0|n)!=(0|s))}if(1==(0|u)){l=3;break e}127==(0|(n=0|U(h,u)))&&x(23104,22949,376,23134),0|I(n)?x(23147,22949,377,23134):(m=s,p=u,l=n)}else m=0,p=u,l=c;if((0|(d=0|a[4304+(28*h|0)+(p<<2)>>2]))<=-1&&x(23178,22949,384,23134),!f){if((0|m)<=-1&&x(23030,22949,417,23134),0|m){u=0,n=0|a[(s=r)>>2],s=0|a[s+4>>2];do{n=0|Fe(n,s),s=0|E(),a[(b=r)>>2]=n,a[b+4>>2]=s,u=u+1|0}while((0|u)<(0|m))}if((0|d)<=0){u=54;break}for(u=0,n=0|a[(s=r)>>2],s=0|a[s+4>>2];;)if(n=0|Fe(n,s),s=0|E(),a[(b=r)>>2]=n,a[b+4>>2]=s,(0|(u=u+1|0))==(0|d)){u=54;break t}}if(7==(0|(c=0|V(l,h)))&&x(22925,22949,393,23134),n=0|a[(u=r)>>2],u=0|a[u+4>>2],(0|d)>0){s=0;do{n=0|Fe(n,u),u=0|E(),a[(b=r)>>2]=n,a[b+4>>2]=u,s=s+1|0}while((0|s)!=(0|d))}if(n=0|je(n,u),b=0|F(l),(0|(n=0|a[(b?21824:21616)+(28*c|0)+(n<<2)>>2]))<=-1&&x(23030,22949,412,23134),n){u=0,s=0|a[(c=r)>>2],c=0|a[c+4>>2];do{s=0|Ie(s,c),c=0|E(),a[(b=r)>>2]=s,a[b+4>>2]=c,u=u+1|0}while((0|u)<(0|n));u=54}else u=54}else if(0!=(0|i)&0!=(0|f))if(u=21408+(28*(b=0|je(e,t))|0)+((0|je(0|a[(u=r)>>2],0|a[u+4>>2]))<<2)|0,(0|(u=0|a[u>>2]))<=-1&&x(23201,22949,433,23134),u){l=0,n=0|a[(s=r)>>2],s=0|a[s+4>>2];do{n=0|Fe(n,s),s=0|E(),a[(b=r)>>2]=n,a[b+4>>2]=s,l=l+1|0}while((0|l)<(0|u));l=c,u=54}else l=c,u=55;else l=c,u=54}while(0);if(54==(0|u)&&f&&(u=55),55==(0|u)&&1==(0|je(0|a[(b=r)>>2],0|a[b+4>>2]))){l=4;break}v=0|a[(b=r)>>2],b=-1040385&a[b+4>>2],y=0|Mt(0|l,0,45),b=0|b|E(),a[(l=r)>>2]=v|y,a[l+4>>2]=b,l=0}else l=2}while(0);return L=o,0|(b=l)}function tt(e,t){var n=0;if(!(t|=0))return 0|(n=1);n=e|=0,e=1;do{e=0|b(0==(1&t|0)?1:n,e),t>>=1,n=0|b(n,n)}while(0!=(0|t));return 0|e}function nt(e,t,n){e|=0;var r,o,l=0,u=0,s=0,c=0,d=0,f=0,p=0,h=0;if(!(0|Y(t|=0,n|=0)))return 0|(h=0);if(t=0|H(t),o=+i[n>>3],l=t&(l=+i[n+8>>3])<0?l+6.283185307179586:l,(0|(h=0|a[e>>2]))<=0)return 0|(h=0);if(r=0|a[e+4>>2],t){t=0,n=-1,e=0;e:for(;;){for(p=e;c=+i[r+(p<<4)>>3],f=+i[r+(p<<4)+8>>3],s=+i[r+((e=(n+2|0)%(0|h)|0)<<4)>>3],u=+i[r+(e<<4)+8>>3],c>s?(d=c,c=f):(d=s,s=c,c=u,u=f),od;){if(!((0|(n=p+1|0))<(0|h))){n=22;break e}e=p,p=n,n=e}if(l=(c=c<0?c+6.283185307179586:c)==l|(f=u<0?u+6.283185307179586:u)==l?l+-2220446049250313e-31:l,((f+=(o-s)/(d-s)*(c-f))<0?f+6.283185307179586:f)>l&&(t^=1),(0|(e=p+1|0))>=(0|h)){n=22;break}n=p}if(22==(0|n))return 0|t}else{t=0,n=-1,e=0;e:for(;;){for(p=e;c=+i[r+(p<<4)>>3],f=+i[r+(p<<4)+8>>3],s=+i[r+((e=(n+2|0)%(0|h)|0)<<4)>>3],u=+i[r+(e<<4)+8>>3],c>s?(d=c,c=f):(d=s,s=c,c=u,u=f),od;){if(!((0|(n=p+1|0))<(0|h))){n=22;break e}e=p,p=n,n=e}if(u+(o-s)/(d-s)*(c-u)>(l=c==l|u==l?l+-2220446049250313e-31:l)&&(t^=1),(0|(e=p+1|0))>=(0|h)){n=22;break}n=p}if(22==(0|n))return 0|t}return 0}function rt(e,t){t|=0;var n,r,o,l,s,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0;if(!(r=0|a[(e|=0)>>2]))return a[t>>2]=0,a[t+4>>2]=0,a[t+8>>2]=0,a[t+12>>2]=0,a[t+16>>2]=0,a[t+20>>2]=0,a[t+24>>2]=0,void(a[t+28>>2]=0);if(i[(o=t+8|0)>>3]=17976931348623157e292,i[(l=t+24|0)>>3]=17976931348623157e292,i[t>>3]=-17976931348623157e292,i[(s=t+16|0)>>3]=-17976931348623157e292,!((0|r)<=0)){for(n=0|a[e+4>>2],v=17976931348623157e292,y=-17976931348623157e292,b=0,e=-1,p=17976931348623157e292,h=17976931348623157e292,g=-17976931348623157e292,d=-17976931348623157e292,A=0;c=+i[n+(A<<4)>>3],m=+i[n+(A<<4)+8>>3],f=+i[n+(((0|(e=e+2|0))==(0|r)?0:e)<<4)+8>>3],c>3]=c,p=c),m>3]=m,h=m),c>g?i[t>>3]=c:c=g,m>d&&(i[s>>3]=m,d=m),v=m>0&my?m:y,b|=+u(+(m-f))>3.141592653589793,(0|(e=A+1|0))!=(0|r);)_=A,g=c,A=e,e=_;b&&(i[s>>3]=y,i[l>>3]=v)}}function at(e,t){t|=0;var n,r=0,o=0,l=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0,E=0,x=0,M=0,w=0;if(y=0|a[(e|=0)>>2]){if(i[(b=t+8|0)>>3]=17976931348623157e292,i[(A=t+24|0)>>3]=17976931348623157e292,i[t>>3]=-17976931348623157e292,i[(_=t+16|0)>>3]=-17976931348623157e292,(0|y)>0){for(l=0|a[e+4>>2],g=17976931348623157e292,v=-17976931348623157e292,o=0,r=-1,f=17976931348623157e292,p=17976931348623157e292,m=-17976931348623157e292,c=-17976931348623157e292,O=0;s=+i[l+(O<<4)>>3],h=+i[l+(O<<4)+8>>3],d=+i[l+(((0|(M=r+2|0))==(0|y)?0:M)<<4)+8>>3],s>3]=s,f=s),h>3]=h,p=h),s>m?i[t>>3]=s:s=m,h>c&&(i[_>>3]=h,c=h),g=h>0&hv?h:v,o|=+u(+(h-d))>3.141592653589793,(0|(r=O+1|0))!=(0|y);)M=O,m=s,O=r,r=M;o&&(i[_>>3]=v,i[A>>3]=g)}}else a[t>>2]=0,a[t+4>>2]=0,a[t+8>>2]=0,a[t+12>>2]=0,a[t+16>>2]=0,a[t+20>>2]=0,a[t+24>>2]=0,a[t+28>>2]=0;if(!((0|(r=0|a[(M=e+8|0)>>2]))<=0)){n=e+12|0,x=0;do{if(l=0|a[n>>2],o=x,A=t+((x=x+1|0)<<5)|0,_=0|a[l+(o<<3)>>2]){if(i[(O=t+(x<<5)+8|0)>>3]=17976931348623157e292,i[(e=t+(x<<5)+24|0)>>3]=17976931348623157e292,i[A>>3]=-17976931348623157e292,i[(E=t+(x<<5)+16|0)>>3]=-17976931348623157e292,(0|_)>0){for(y=0|a[l+(o<<3)+4>>2],g=17976931348623157e292,v=-17976931348623157e292,l=0,o=-1,b=0,f=17976931348623157e292,p=17976931348623157e292,h=-17976931348623157e292,c=-17976931348623157e292;s=+i[y+(b<<4)>>3],m=+i[y+(b<<4)+8>>3],d=+i[y+(((0|(o=o+2|0))==(0|_)?0:o)<<4)+8>>3],s>3]=s,f=s),m>3]=m,p=m),s>h?i[A>>3]=s:s=h,m>c&&(i[E>>3]=m,c=m),g=m>0&mv?m:v,l|=+u(+(m-d))>3.141592653589793,(0|(o=b+1|0))!=(0|_);)w=b,b=o,h=s,o=w;l&&(i[E>>3]=v,i[e>>3]=g)}}else a[A>>2]=0,a[A+4>>2]=0,a[A+8>>2]=0,a[A+12>>2]=0,a[A+16>>2]=0,a[A+20>>2]=0,a[A+24>>2]=0,a[A+28>>2]=0,r=0|a[M>>2]}while((0|x)<(0|r))}}function it(e,t,n){var r=0,i=0,o=0;if(!(0|nt(e|=0,t|=0,n|=0)))return 0|(i=0);if((0|a[(i=e+8|0)>>2])<=0)return 0|(i=1);for(r=e+12|0,e=0;;){if(o=e,e=e+1|0,0|nt((0|a[r>>2])+(o<<3)|0,t+(e<<5)|0,n)){e=0,r=6;break}if((0|e)>=(0|a[i>>2])){e=1,r=6;break}}return 6==(0|r)?0|e:0}function ot(e,t,n,r,a){t|=0,n|=0,r|=0,a|=0;var o,l,u,s,c,d,f,p=0;s=+i[(e|=0)>>3],u=+i[t>>3]-s,l=+i[e+8>>3],o=+i[t+8>>3]-l,d=+i[n>>3],p=((p=+i[r>>3]-d)*(l-(f=+i[n+8>>3]))-(s-d)*(c=+i[r+8>>3]-f))/(u*c-o*p),i[a>>3]=s+u*p,i[a+8>>3]=l+o*p}function lt(e,t){return t|=0,+i[(e|=0)>>3]!=+i[t>>3]?0|(t=0):0|(t=+i[e+8>>3]==+i[t+8>>3])}function ut(e,t){t|=0;var n,r,a;return+((a=+i[(e|=0)>>3]-+i[t>>3])*a+(r=+i[e+8>>3]-+i[t+8>>3])*r+(n=+i[e+16>>3]-+i[t+16>>3])*n)}function st(e,t,n){e|=0,n|=0;var r=0;(0|(t|=0))>0?(r=0|bt(t,4),a[e>>2]=r,r||x(23230,23253,40,23267)):a[e>>2]=0,a[e+4>>2]=t,a[e+8>>2]=0,a[e+12>>2]=n}function ct(e){var t,n,r,o=0,l=0,s=0,d=0;t=(e|=0)+4|0,n=e+12|0,r=e+8|0;e:for(;;){for(l=0|a[t>>2],o=0;;){if((0|o)>=(0|l))break e;if(s=0|a[e>>2],d=0|a[s+(o<<2)>>2])break;o=o+1|0}o=s+(~~(+u(+ +c(10,+ +(15-(0|a[n>>2])|0))*(+i[d>>3]+ +i[d+8>>3]))%+(0|l))>>>0<<2)|0,l=0|a[o>>2];t:do{if(0|l){if(s=d+32|0,(0|l)==(0|d))a[o>>2]=a[s>>2];else{if(!(o=0|a[(l=l+32|0)>>2]))break;for(;(0|o)!=(0|d);)if(!(o=0|a[(l=o+32|0)>>2]))break t;a[l>>2]=a[s>>2]}yt(d),a[r>>2]=(0|a[r>>2])-1}}while(0)}yt(0|a[e>>2])}function dt(e){var t,n=0,r=0;for(t=0|a[(e|=0)+4>>2],r=0;;){if((0|r)>=(0|t)){n=0,r=4;break}if(n=0|a[(0|a[e>>2])+(r<<2)>>2]){r=4;break}r=r+1|0}return 4==(0|r)?0|n:0}function ft(e,t){t|=0;var n=0,r=0,o=0,l=0;if(n=~~(+u(+ +c(10,+ +(15-(0|a[(e|=0)+12>>2])|0))*(+i[t>>3]+ +i[t+8>>3]))%+(0|a[e+4>>2]))>>>0,n=(0|a[e>>2])+(n<<2)|0,!(r=0|a[n>>2]))return 0|(l=1);l=t+32|0;do{if((0|r)!=(0|t)){if(!(n=0|a[r+32>>2]))return 0|(l=1);for(o=n;;){if((0|o)==(0|t)){o=8;break}if(!(n=0|a[o+32>>2])){n=1,o=10;break}r=o,o=n}if(8==(0|o)){a[r+32>>2]=a[l>>2];break}if(10==(0|o))return 0|n}else a[n>>2]=a[l>>2]}while(0);return yt(t),a[(l=e+8|0)>>2]=(0|a[l>>2])-1,0|(l=0)}function pt(e,t,n){e|=0,t|=0,n|=0;var r,o=0,l=0,s=0;(r=0|vt(40))||x(23283,23253,98,23296),a[r>>2]=a[t>>2],a[r+4>>2]=a[t+4>>2],a[r+8>>2]=a[t+8>>2],a[r+12>>2]=a[t+12>>2],a[(l=r+16|0)>>2]=a[n>>2],a[l+4>>2]=a[n+4>>2],a[l+8>>2]=a[n+8>>2],a[l+12>>2]=a[n+12>>2],a[r+32>>2]=0,l=~~(+u(+ +c(10,+ +(15-(0|a[e+12>>2])|0))*(+i[t>>3]+ +i[t+8>>3]))%+(0|a[e+4>>2]))>>>0,l=(0|a[e>>2])+(l<<2)|0,o=0|a[l>>2];do{if(o){for(;!(0|Se(o,t)&&0|Se(o+16|0,n));)if(l=0|a[o+32>>2],!(0|a[(o=0==(0|l)?o:l)+32>>2])){s=10;break}if(10==(0|s)){a[o+32>>2]=r;break}return yt(r),0|(s=o)}a[l>>2]=r}while(0);return a[(s=e+8|0)>>2]=1+(0|a[s>>2]),0|(s=r)}function ht(e,t,n){t|=0,n|=0;var r=0,o=0;if(o=~~(+u(+ +c(10,+ +(15-(0|a[(e|=0)+12>>2])|0))*(+i[t>>3]+ +i[t+8>>3]))%+(0|a[e+4>>2]))>>>0,!(o=0|a[(0|a[e>>2])+(o<<2)>>2]))return 0|(n=0);if(!n){for(e=o;;){if(0|Se(e,t)){r=10;break}if(!(e=0|a[e+32>>2])){e=0,r=10;break}}if(10==(0|r))return 0|e}for(e=o;;){if(0|Se(e,t)&&0|Se(e+16|0,n)){r=10;break}if(!(e=0|a[e+32>>2])){e=0,r=10;break}}return 10==(0|r)?0|e:0}function mt(e,t){t|=0;var n=0;if(n=~~(+u(+ +c(10,+ +(15-(0|a[(e|=0)+12>>2])|0))*(+i[t>>3]+ +i[t+8>>3]))%+(0|a[e+4>>2]))>>>0,!(e=0|a[(0|a[e>>2])+(n<<2)>>2]))return 0|(n=0);for(;;){if(0|Se(e,t)){t=5;break}if(!(e=0|a[e+32>>2])){e=0,t=5;break}}return 5==(0|t)?0|e:0}function gt(e){return 0|~~+function(e){return+ +Lt(+(e=+e))}(e=+e)}function vt(e){e|=0;var t,n=0,r=0,i=0,o=0,l=0,u=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0;t=L,L=L+16|0,h=t;do{if(e>>>0<245){if(e=(d=e>>>0<11?16:e+11&-8)>>>3,3&(r=(p=0|a[5829])>>>e)|0)return i=0|a[(r=(e=23356+((n=(1&r^1)+e|0)<<1<<2)|0)+8|0)>>2],(0|(l=0|a[(o=i+8|0)>>2]))==(0|e)?a[5829]=p&~(1<>2]=e,a[r>>2]=l),O=n<<3,a[i+4>>2]=3|O,a[(O=i+O+4|0)>>2]=1|a[O>>2],L=t,0|(O=o);if(d>>>0>(f=0|a[5831])>>>0){if(0|r)return n=((n=r<>>=s=n>>>12&16)>>>5&8)|s|(l=(n>>>=r)>>>2&4)|(e=(n>>>=l)>>>1&2)|(i=(n>>>=e)>>>1&1))+(n>>>i)|0)<<1<<2)|0)+8|0)>>2],(0|(r=0|a[(s=l+8|0)>>2]))==(0|n)?(e=p&~(1<>2]=n,a[e>>2]=r,e=p),u=(O=i<<3)-d|0,a[l+4>>2]=3|d,a[(o=l+d|0)+4>>2]=1|u,a[l+O>>2]=u,0|f&&(i=0|a[5834],r=23356+((n=f>>>3)<<1<<2)|0,e&(n=1<>2]:(a[5829]=e|n,n=r,e=r+8|0),a[e>>2]=i,a[n+12>>2]=i,a[i+8>>2]=n,a[i+12>>2]=r),a[5831]=u,a[5834]=o,L=t,0|(O=s);if(l=0|a[5830]){for(r=(l&0-l)-1|0,r=c=0|a[23620+(((i=(r>>>=o=r>>>12&16)>>>5&8)|o|(u=(r>>>=i)>>>2&4)|(s=(r>>>=u)>>>1&2)|(c=(r>>>=s)>>>1&1))+(r>>>c)<<2)>>2],s=c,c=(-8&a[c+4>>2])-d|0;(e=0|a[r+16>>2])||(e=0|a[r+20>>2]);)r=e,s=(o=(u=(-8&a[e+4>>2])-d|0)>>>0>>0)?e:s,c=o?u:c;if((u=s+d|0)>>>0>s>>>0){o=0|a[s+24>>2],n=0|a[s+12>>2];do{if((0|n)==(0|s)){if(!(n=0|a[(e=s+20|0)>>2])&&!(n=0|a[(e=s+16|0)>>2])){r=0;break}for(;;)if(r=0|a[(i=n+20|0)>>2])n=r,e=i;else{if(!(r=0|a[(i=n+16|0)>>2]))break;n=r,e=i}a[e>>2]=0,r=n}else r=0|a[s+8>>2],a[r+12>>2]=n,a[n+8>>2]=r,r=n}while(0);do{if(0|o){if(n=0|a[s+28>>2],(0|s)==(0|a[(e=23620+(n<<2)|0)>>2])){if(a[e>>2]=r,!r){a[5830]=l&~(1<>2])==(0|s)?O:o+20|0)>>2]=r,!r)break;a[r+24>>2]=o,0|(n=0|a[s+16>>2])&&(a[r+16>>2]=n,a[n+24>>2]=r),0|(n=0|a[s+20>>2])&&(a[r+20>>2]=n,a[n+24>>2]=r)}}while(0);return c>>>0<16?(O=c+d|0,a[s+4>>2]=3|O,a[(O=s+O+4|0)>>2]=1|a[O>>2]):(a[s+4>>2]=3|d,a[u+4>>2]=1|c,a[u+c>>2]=c,0|f&&(i=0|a[5834],r=23356+((n=f>>>3)<<1<<2)|0,(n=1<>2]:(a[5829]=n|p,n=r,e=r+8|0),a[e>>2]=i,a[n+12>>2]=i,a[i+8>>2]=n,a[i+12>>2]=r),a[5831]=c,a[5834]=u),L=t,0|(O=s+8|0)}p=d}else p=d}else p=d}else if(e>>>0<=4294967231)if(d=-8&(e=e+11|0),i=0|a[5830]){o=0-d|0,c=(e>>>=8)?d>>>0>16777215?31:d>>>((c=14-((s=((v=e<<(p=(e+1048320|0)>>>16&8))+520192|0)>>>16&4)|p|(c=((v<<=s)+245760|0)>>>16&2))+(v<>>15)|0)+7|0)&1|c<<1:0,r=0|a[23620+(c<<2)>>2];e:do{if(r)for(e=0,s=d<<(31==(0|c)?0:25-(c>>>1)|0),l=0;;){if((u=(-8&a[r+4>>2])-d|0)>>>0>>0){if(!u){e=r,o=0,v=65;break e}e=r,o=u}if(l=0==(0|(v=0|a[r+20>>2]))|(0|v)==(0|(r=0|a[r+16+(s>>>31<<2)>>2]))?l:v,!r){r=l,v=61;break}s<<=1}else r=0,e=0,v=61}while(0);if(61==(0|v)){if(0==(0|r)&0==(0|e)){if(!(e=((e=2<>>=u=p>>>12&16)>>>5&8)|u|(s=(p>>>=l)>>>2&4)|(c=(p>>>=s)>>>1&2)|(r=(p>>>=c)>>>1&1))+(p>>>r)<<2)>>2]}r?v=65:(s=e,u=o)}if(65==(0|v))for(l=r;;){if(o=(r=(p=(-8&a[l+4>>2])-d|0)>>>0>>0)?p:o,e=r?l:e,(r=0|a[l+16>>2])||(r=0|a[l+20>>2]),!r){s=e,u=o;break}l=r}if(0!=(0|s)&&u>>>0<((0|a[5831])-d|0)>>>0&&(f=s+d|0)>>>0>s>>>0){l=0|a[s+24>>2],n=0|a[s+12>>2];do{if((0|n)==(0|s)){if(!(n=0|a[(e=s+20|0)>>2])&&!(n=0|a[(e=s+16|0)>>2])){n=0;break}for(;;)if(r=0|a[(o=n+20|0)>>2])n=r,e=o;else{if(!(r=0|a[(o=n+16|0)>>2]))break;n=r,e=o}a[e>>2]=0}else O=0|a[s+8>>2],a[O+12>>2]=n,a[n+8>>2]=O}while(0);do{if(l){if(e=0|a[s+28>>2],(0|s)==(0|a[(r=23620+(e<<2)|0)>>2])){if(a[r>>2]=n,!n){i&=~(1<>2])==(0|s)?O:l+20|0)>>2]=n,!n)break;a[n+24>>2]=l,0|(e=0|a[s+16>>2])&&(a[n+16>>2]=e,a[e+24>>2]=n),(e=0|a[s+20>>2])&&(a[n+20>>2]=e,a[e+24>>2]=n)}}while(0);e:do{if(u>>>0<16)O=u+d|0,a[s+4>>2]=3|O,a[(O=s+O+4|0)>>2]=1|a[O>>2];else{if(a[s+4>>2]=3|d,a[f+4>>2]=1|u,a[f+u>>2]=u,n=u>>>3,u>>>0<256){r=23356+(n<<1<<2)|0,(e=0|a[5829])&(n=1<>2]:(a[5829]=e|n,n=r,e=r+8|0),a[e>>2]=f,a[n+12>>2]=f,a[f+8>>2]=n,a[f+12>>2]=r;break}if(n=23620+((r=(n=u>>>8)?u>>>0>16777215?31:u>>>((r=14-((A=((O=n<<(_=(n+1048320|0)>>>16&8))+520192|0)>>>16&4)|_|(r=((O<<=A)+245760|0)>>>16&2))+(O<>>15)|0)+7|0)&1|r<<1:0)<<2)|0,a[f+28>>2]=r,a[(e=f+16|0)+4>>2]=0,a[e>>2]=0,!(i&(e=1<>2]=f,a[f+24>>2]=n,a[f+12>>2]=f,a[f+8>>2]=f;break}n=0|a[n>>2];t:do{if((-8&a[n+4>>2]|0)!=(0|u)){for(i=u<<(31==(0|r)?0:25-(r>>>1)|0);e=0|a[(r=n+16+(i>>>31<<2)|0)>>2];){if((-8&a[e+4>>2]|0)==(0|u)){n=e;break t}i<<=1,n=e}a[r>>2]=f,a[f+24>>2]=n,a[f+12>>2]=f,a[f+8>>2]=f;break e}}while(0);O=0|a[(_=n+8|0)>>2],a[O+12>>2]=f,a[_>>2]=f,a[f+8>>2]=O,a[f+12>>2]=n,a[f+24>>2]=0}}while(0);return L=t,0|(O=s+8|0)}p=d}else p=d;else p=-1}while(0);if((r=0|a[5831])>>>0>=p>>>0)return n=r-p|0,e=0|a[5834],n>>>0>15?(O=e+p|0,a[5834]=O,a[5831]=n,a[O+4>>2]=1|n,a[e+r>>2]=n,a[e+4>>2]=3|p):(a[5831]=0,a[5834]=0,a[e+4>>2]=3|r,a[(O=e+r+4|0)>>2]=1|a[O>>2]),L=t,0|(O=e+8|0);if((u=0|a[5832])>>>0>p>>>0)return A=u-p|0,a[5832]=A,_=(O=0|a[5835])+p|0,a[5835]=_,a[_+4>>2]=1|A,a[O+4>>2]=3|p,L=t,0|(O=O+8|0);if(0|a[5947]?e=0|a[5949]:(a[5949]=4096,a[5948]=4096,a[5950]=-1,a[5951]=-1,a[5952]=0,a[5940]=0,a[5947]=-16&h^1431655768,e=4096),s=p+48|0,(d=(l=e+(c=p+47|0)|0)&(o=0-e|0))>>>0<=p>>>0)return L=t,0|(O=0);if(0|(e=0|a[5939])&&(h=(f=0|a[5937])+d|0)>>>0<=f>>>0|h>>>0>e>>>0)return L=t,0|(O=0);e:do{if(4&a[5940])n=0,v=143;else{r=0|a[5835];t:do{if(r){for(i=23764;!((h=0|a[i>>2])>>>0<=r>>>0&&(h+(0|a[i+4>>2])|0)>>>0>r>>>0);){if(!(e=0|a[i+8>>2])){v=128;break t}i=e}if((n=l-u&o)>>>0<2147483647)if((0|(e=0|Pt(0|n)))==((0|a[i>>2])+(0|a[i+4>>2])|0)){if(-1!=(0|e)){u=n,l=e,v=145;break e}}else i=e,v=136;else n=0}else v=128}while(0);do{if(128==(0|v))if(-1!=(0|(r=0|Pt(0)))&&(n=r,g=(n=(0==((g=(m=0|a[5948])+-1|0)&n|0)?0:(g+n&0-m)-n|0)+d|0)+(m=0|a[5937])|0,n>>>0>p>>>0&n>>>0<2147483647)){if(0|(h=0|a[5939])&&g>>>0<=m>>>0|g>>>0>h>>>0){n=0;break}if((0|(e=0|Pt(0|n)))==(0|r)){u=n,l=r,v=145;break e}i=e,v=136}else n=0}while(0);do{if(136==(0|v)){if(r=0-n|0,!(s>>>0>n>>>0&n>>>0<2147483647&-1!=(0|i))){if(-1==(0|i)){n=0;break}u=n,l=i,v=145;break e}if((e=c-n+(e=0|a[5949])&0-e)>>>0>=2147483647){u=n,l=i,v=145;break e}if(-1==(0|Pt(0|e))){Pt(0|r),n=0;break}u=e+n|0,l=i,v=145;break e}}while(0);a[5940]=4|a[5940],v=143}}while(0);if(143==(0|v)&&d>>>0<2147483647&&!(-1==(0|(A=0|Pt(0|d)))|1^(b=(y=(g=0|Pt(0))-A|0)>>>0>(p+40|0)>>>0)|A>>>0>>0&-1!=(0|A)&-1!=(0|g)^1)&&(u=b?y:n,l=A,v=145),145==(0|v)){n=(0|a[5937])+u|0,a[5937]=n,n>>>0>(0|a[5938])>>>0&&(a[5938]=n),c=0|a[5835];e:do{if(c){for(n=23764;;){if((0|l)==((e=0|a[n>>2])+(r=0|a[n+4>>2])|0)){v=154;break}if(!(i=0|a[n+8>>2]))break;n=i}if(154==(0|v)&&(_=n+4|0,0==(8&a[n+12>>2]|0))&&l>>>0>c>>>0&e>>>0<=c>>>0){a[_>>2]=r+u,_=c+(A=0==(7&(A=c+8|0)|0)?0:0-A&7)|0,A=(O=(0|a[5832])+u|0)-A|0,a[5835]=_,a[5832]=A,a[_+4>>2]=1|A,a[c+O+4>>2]=40,a[5836]=a[5951];break}for(l>>>0<(0|a[5833])>>>0&&(a[5833]=l),r=l+u|0,n=23764;;){if((0|a[n>>2])==(0|r)){v=162;break}if(!(e=0|a[n+8>>2]))break;n=e}if(162==(0|v)&&0==(8&a[n+12>>2]|0)){a[n>>2]=l,a[(f=n+4|0)>>2]=(0|a[f>>2])+u,d=(f=l+(0==(7&(f=l+8|0)|0)?0:0-f&7)|0)+p|0,s=(n=r+(0==(7&(n=r+8|0)|0)?0:0-n&7)|0)-f-p|0,a[f+4>>2]=3|p;t:do{if((0|c)==(0|n))O=(0|a[5832])+s|0,a[5832]=O,a[5835]=d,a[d+4>>2]=1|O;else{if((0|a[5834])==(0|n)){O=(0|a[5831])+s|0,a[5831]=O,a[5834]=d,a[d+4>>2]=1|O,a[d+O>>2]=O;break}if(1==(3&(e=0|a[n+4>>2])|0)){u=-8&e,i=e>>>3;n:do{if(e>>>0<256){if(e=0|a[n+8>>2],(0|(r=0|a[n+12>>2]))==(0|e)){a[5829]=a[5829]&~(1<>2]=r,a[r+8>>2]=e;break}l=0|a[n+24>>2],e=0|a[n+12>>2];do{if((0|e)==(0|n)){if(e=0|a[(i=(r=n+16|0)+4|0)>>2])r=i;else if(!(e=0|a[r>>2])){e=0;break}for(;;)if(i=0|a[(o=e+20|0)>>2])e=i,r=o;else{if(!(i=0|a[(o=e+16|0)>>2]))break;e=i,r=o}a[r>>2]=0}else O=0|a[n+8>>2],a[O+12>>2]=e,a[e+8>>2]=O}while(0);if(!l)break;i=23620+((r=0|a[n+28>>2])<<2)|0;do{if((0|a[i>>2])==(0|n)){if(a[i>>2]=e,0|e)break;a[5830]=a[5830]&~(1<>2])==(0|n)?O:l+20|0)>>2]=e,!e)break n}while(0);if(a[e+24>>2]=l,0|(i=0|a[(r=n+16|0)>>2])&&(a[e+16>>2]=i,a[i+24>>2]=e),!(r=0|a[r+4>>2]))break;a[e+20>>2]=r,a[r+24>>2]=e}while(0);n=n+u|0,o=u+s|0}else o=s;if(a[(n=n+4|0)>>2]=-2&a[n>>2],a[d+4>>2]=1|o,a[d+o>>2]=o,n=o>>>3,o>>>0<256){r=23356+(n<<1<<2)|0,(e=0|a[5829])&(n=1<>2]:(a[5829]=e|n,n=r,e=r+8|0),a[e>>2]=d,a[n+12>>2]=d,a[d+8>>2]=n,a[d+12>>2]=r;break}n=o>>>8;do{if(n){if(o>>>0>16777215){i=31;break}i=o>>>((i=14-((A=((O=n<<(_=(n+1048320|0)>>>16&8))+520192|0)>>>16&4)|_|(i=((O<<=A)+245760|0)>>>16&2))+(O<>>15)|0)+7|0)&1|i<<1}else i=0}while(0);if(n=23620+(i<<2)|0,a[d+28>>2]=i,a[(e=d+16|0)+4>>2]=0,a[e>>2]=0,!((e=0|a[5830])&(r=1<>2]=d,a[d+24>>2]=n,a[d+12>>2]=d,a[d+8>>2]=d;break}n=0|a[n>>2];n:do{if((-8&a[n+4>>2]|0)!=(0|o)){for(i=o<<(31==(0|i)?0:25-(i>>>1)|0);e=0|a[(r=n+16+(i>>>31<<2)|0)>>2];){if((-8&a[e+4>>2]|0)==(0|o)){n=e;break n}i<<=1,n=e}a[r>>2]=d,a[d+24>>2]=n,a[d+12>>2]=d,a[d+8>>2]=d;break t}}while(0);O=0|a[(_=n+8|0)>>2],a[O+12>>2]=d,a[_>>2]=d,a[d+8>>2]=O,a[d+12>>2]=n,a[d+24>>2]=0}}while(0);return L=t,0|(O=f+8|0)}for(n=23764;!((e=0|a[n>>2])>>>0<=c>>>0&&(O=e+(0|a[n+4>>2])|0)>>>0>c>>>0);)n=0|a[n+8>>2];n=(e=(e=(o=O+-47|0)+(0==(7&(e=o+8|0)|0)?0:0-e&7)|0)>>>0<(o=c+16|0)>>>0?c:e)+8|0,_=l+(A=0==(7&(A=l+8|0)|0)?0:0-A&7)|0,A=(r=u+-40|0)-A|0,a[5835]=_,a[5832]=A,a[_+4>>2]=1|A,a[l+r+4>>2]=40,a[5836]=a[5951],a[(r=e+4|0)>>2]=27,a[n>>2]=a[5941],a[n+4>>2]=a[5942],a[n+8>>2]=a[5943],a[n+12>>2]=a[5944],a[5941]=l,a[5942]=u,a[5944]=0,a[5943]=n,n=e+24|0;do{_=n,a[(n=n+4|0)>>2]=7}while((_+8|0)>>>0>>0);if((0|e)!=(0|c)){if(l=e-c|0,a[r>>2]=-2&a[r>>2],a[c+4>>2]=1|l,a[e>>2]=l,n=l>>>3,l>>>0<256){r=23356+(n<<1<<2)|0,(e=0|a[5829])&(n=1<>2]:(a[5829]=e|n,n=r,e=r+8|0),a[e>>2]=c,a[n+12>>2]=c,a[c+8>>2]=n,a[c+12>>2]=r;break}if(r=23620+((i=(n=l>>>8)?l>>>0>16777215?31:l>>>((i=14-((A=((O=n<<(_=(n+1048320|0)>>>16&8))+520192|0)>>>16&4)|_|(i=((O<<=A)+245760|0)>>>16&2))+(O<>>15)|0)+7|0)&1|i<<1:0)<<2)|0,a[c+28>>2]=i,a[c+20>>2]=0,a[o>>2]=0,!((n=0|a[5830])&(e=1<>2]=c,a[c+24>>2]=r,a[c+12>>2]=c,a[c+8>>2]=c;break}n=0|a[r>>2];t:do{if((-8&a[n+4>>2]|0)!=(0|l)){for(i=l<<(31==(0|i)?0:25-(i>>>1)|0);e=0|a[(r=n+16+(i>>>31<<2)|0)>>2];){if((-8&a[e+4>>2]|0)==(0|l)){n=e;break t}i<<=1,n=e}a[r>>2]=c,a[c+24>>2]=n,a[c+12>>2]=c,a[c+8>>2]=c;break e}}while(0);O=0|a[(_=n+8|0)>>2],a[O+12>>2]=c,a[_>>2]=c,a[c+8>>2]=O,a[c+12>>2]=n,a[c+24>>2]=0}}else 0==(0|(O=0|a[5833]))|l>>>0>>0&&(a[5833]=l),a[5941]=l,a[5942]=u,a[5944]=0,a[5838]=a[5947],a[5837]=-1,a[5842]=23356,a[5841]=23356,a[5844]=23364,a[5843]=23364,a[5846]=23372,a[5845]=23372,a[5848]=23380,a[5847]=23380,a[5850]=23388,a[5849]=23388,a[5852]=23396,a[5851]=23396,a[5854]=23404,a[5853]=23404,a[5856]=23412,a[5855]=23412,a[5858]=23420,a[5857]=23420,a[5860]=23428,a[5859]=23428,a[5862]=23436,a[5861]=23436,a[5864]=23444,a[5863]=23444,a[5866]=23452,a[5865]=23452,a[5868]=23460,a[5867]=23460,a[5870]=23468,a[5869]=23468,a[5872]=23476,a[5871]=23476,a[5874]=23484,a[5873]=23484,a[5876]=23492,a[5875]=23492,a[5878]=23500,a[5877]=23500,a[5880]=23508,a[5879]=23508,a[5882]=23516,a[5881]=23516,a[5884]=23524,a[5883]=23524,a[5886]=23532,a[5885]=23532,a[5888]=23540,a[5887]=23540,a[5890]=23548,a[5889]=23548,a[5892]=23556,a[5891]=23556,a[5894]=23564,a[5893]=23564,a[5896]=23572,a[5895]=23572,a[5898]=23580,a[5897]=23580,a[5900]=23588,a[5899]=23588,a[5902]=23596,a[5901]=23596,a[5904]=23604,a[5903]=23604,_=l+(A=0==(7&(A=l+8|0)|0)?0:0-A&7)|0,A=(O=u+-40|0)-A|0,a[5835]=_,a[5832]=A,a[_+4>>2]=1|A,a[l+O+4>>2]=40,a[5836]=a[5951]}while(0);if((n=0|a[5832])>>>0>p>>>0)return A=n-p|0,a[5832]=A,_=(O=0|a[5835])+p|0,a[5835]=_,a[_+4>>2]=1|A,a[O+4>>2]=3|p,L=t,0|(O=O+8|0)}return a[(O=23312)>>2]=12,L=t,0|(O=0)}function yt(e){var t=0,n=0,r=0,i=0,o=0,l=0,u=0,s=0;if(e|=0){n=e+-8|0,i=0|a[5833],s=n+(t=-8&(e=0|a[e+-4>>2]))|0;do{if(1&e)u=n,l=n;else{if(r=0|a[n>>2],!(3&e))return;if(o=r+t|0,(l=n+(0-r)|0)>>>0>>0)return;if((0|a[5834])==(0|l)){if(3!=(3&(t=0|a[(e=s+4|0)>>2])|0)){u=l,t=o;break}return a[5831]=o,a[e>>2]=-2&t,a[l+4>>2]=1|o,void(a[l+o>>2]=o)}if(n=r>>>3,r>>>0<256){if(e=0|a[l+8>>2],(0|(t=0|a[l+12>>2]))==(0|e)){a[5829]=a[5829]&~(1<>2]=t,a[t+8>>2]=e,u=l,t=o;break}i=0|a[l+24>>2],e=0|a[l+12>>2];do{if((0|e)==(0|l)){if(e=0|a[(n=(t=l+16|0)+4|0)>>2])t=n;else if(!(e=0|a[t>>2])){e=0;break}for(;;)if(n=0|a[(r=e+20|0)>>2])e=n,t=r;else{if(!(n=0|a[(r=e+16|0)>>2]))break;e=n,t=r}a[t>>2]=0}else u=0|a[l+8>>2],a[u+12>>2]=e,a[e+8>>2]=u}while(0);if(i){if(t=0|a[l+28>>2],(0|a[(n=23620+(t<<2)|0)>>2])==(0|l)){if(a[n>>2]=e,!e){a[5830]=a[5830]&~(1<>2])==(0|l)?u:i+20|0)>>2]=e,!e){u=l,t=o;break}a[e+24>>2]=i,0|(n=0|a[(t=l+16|0)>>2])&&(a[e+16>>2]=n,a[n+24>>2]=e),(t=0|a[t+4>>2])?(a[e+20>>2]=t,a[t+24>>2]=e,u=l,t=o):(u=l,t=o)}else u=l,t=o}}while(0);if(!(l>>>0>=s>>>0)&&1&(r=0|a[(e=s+4|0)>>2])){if(2&r)a[e>>2]=-2&r,a[u+4>>2]=1|t,a[l+t>>2]=t,i=t;else{if((0|a[5835])==(0|s)){if(s=(0|a[5832])+t|0,a[5832]=s,a[5835]=u,a[u+4>>2]=1|s,(0|u)!=(0|a[5834]))return;return a[5834]=0,void(a[5831]=0)}if((0|a[5834])==(0|s))return s=(0|a[5831])+t|0,a[5831]=s,a[5834]=l,a[u+4>>2]=1|s,void(a[l+s>>2]=s);i=(-8&r)+t|0,n=r>>>3;do{if(r>>>0<256){if(t=0|a[s+8>>2],(0|(e=0|a[s+12>>2]))==(0|t)){a[5829]=a[5829]&~(1<>2]=e,a[e+8>>2]=t;break}o=0|a[s+24>>2],e=0|a[s+12>>2];do{if((0|e)==(0|s)){if(e=0|a[(n=(t=s+16|0)+4|0)>>2])t=n;else if(!(e=0|a[t>>2])){n=0;break}for(;;)if(n=0|a[(r=e+20|0)>>2])e=n,t=r;else{if(!(n=0|a[(r=e+16|0)>>2]))break;e=n,t=r}a[t>>2]=0,n=e}else n=0|a[s+8>>2],a[n+12>>2]=e,a[e+8>>2]=n,n=e}while(0);if(0|o){if(e=0|a[s+28>>2],(0|a[(t=23620+(e<<2)|0)>>2])==(0|s)){if(a[t>>2]=n,!n){a[5830]=a[5830]&~(1<>2])==(0|s)?r:o+20|0)>>2]=n,!n)break;a[n+24>>2]=o,0|(t=0|a[(e=s+16|0)>>2])&&(a[n+16>>2]=t,a[t+24>>2]=n),0|(e=0|a[e+4>>2])&&(a[n+20>>2]=e,a[e+24>>2]=n)}}while(0);if(a[u+4>>2]=1|i,a[l+i>>2]=i,(0|u)==(0|a[5834]))return void(a[5831]=i)}if(e=i>>>3,i>>>0<256)return n=23356+(e<<1<<2)|0,(t=0|a[5829])&(e=1<>2]:(a[5829]=t|e,e=n,t=n+8|0),a[t>>2]=u,a[e+12>>2]=u,a[u+8>>2]=e,void(a[u+12>>2]=n);e=23620+((r=(e=i>>>8)?i>>>0>16777215?31:i>>>((r=14-((o=((s=e<<(l=(e+1048320|0)>>>16&8))+520192|0)>>>16&4)|l|(r=((s<<=o)+245760|0)>>>16&2))+(s<>>15)|0)+7|0)&1|r<<1:0)<<2)|0,a[u+28>>2]=r,a[u+20>>2]=0,a[u+16>>2]=0,t=0|a[5830],n=1<>2];t:do{if((-8&a[e+4>>2]|0)!=(0|i)){for(r=i<<(31==(0|r)?0:25-(r>>>1)|0);t=0|a[(n=e+16+(r>>>31<<2)|0)>>2];){if((-8&a[t+4>>2]|0)==(0|i)){e=t;break t}r<<=1,e=t}a[n>>2]=u,a[u+24>>2]=e,a[u+12>>2]=u,a[u+8>>2]=u;break e}}while(0);s=0|a[(l=e+8|0)>>2],a[s+12>>2]=u,a[l>>2]=u,a[u+8>>2]=s,a[u+12>>2]=e,a[u+24>>2]=0}else a[5830]=t|n,a[e>>2]=u,a[u+24>>2]=e,a[u+12>>2]=u,a[u+8>>2]=u}while(0);if(s=(0|a[5837])-1|0,a[5837]=s,!(0|s)){for(e=23772;e=0|a[e>>2];)e=e+8|0;a[5837]=-1}}}}function bt(e,t){t|=0;var n=0;return(e|=0)?(n=0|b(t,e),(t|e)>>>0>65535&&(n=(0|(n>>>0)/(e>>>0))==(0|t)?n:-1)):n=0,(e=0|vt(n))&&3&a[e+-4>>2]?(Ct(0|e,0,0|n),0|e):0|e}function At(e,t,n,r){return 0|(O(0|(r=(t|=0)-(r|=0)-((n|=0)>>>0>(e|=0)>>>0|0)>>>0)),e-n>>>0|0)}function _t(e){return 0|((e|=0)?31-(0|_(e^e-1))|0:32)}function Ot(e,t,n,r,i){i|=0;var o=0,l=0,u=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0;if(d=e|=0,l=n|=0,u=p=r|=0,!(c=s=t|=0))return o=0!=(0|i),u?o?(a[i>>2]=0|e,a[i+4>>2]=0&t,i=0,0|(O(0|(p=0)),i)):(i=0,0|(O(0|(p=0)),i)):(o&&(a[i>>2]=(d>>>0)%(l>>>0),a[i+4>>2]=0),i=(d>>>0)/(l>>>0)>>>0,0|(O(0|(p=0)),i));o=0==(0|u);do{if(l){if(!o){if((o=(0|_(0|u))-(0|_(0|c))|0)>>>0<=31){l=f=o+1|0,e=d>>>(f>>>0)&(t=o-31>>31)|c<<(u=31-o|0),t&=c>>>(f>>>0),o=0,u=d<>2]=0|e,a[i+4>>2]=s|0&t,i=0,0|(O(0|(p=0)),i)):(i=0,0|(O(0|(p=0)),i))}if((o=l-1|0)&l|0){l=u=33+(0|_(0|l))-(0|_(0|c))|0,e=(f=32-u|0)-1>>31&c>>>((h=u-32|0)>>>0)|(c<>>(u>>>0))&(t=h>>31),t&=c>>>(u>>>0),o=d<<(m=64-u|0)&(s=f>>31),u=(c<>>(h>>>0))&s|d<>31;break}return 0|i&&(a[i>>2]=o&d,a[i+4>>2]=0),1==(0|l)?(m=0|e,0|(O(0|(h=s|0&t)),m)):(h=c>>>((m=0|_t(0|l))>>>0)|0,m=c<<32-m|d>>>(m>>>0)|0,0|(O(0|h),m))}if(o)return 0|i&&(a[i>>2]=(c>>>0)%(l>>>0),a[i+4>>2]=0),m=(c>>>0)/(l>>>0)>>>0,0|(O(0|(h=0)),m);if(!d)return 0|i&&(a[i>>2]=0,a[i+4>>2]=(c>>>0)%(u>>>0)),m=(c>>>0)/(u>>>0)>>>0,0|(O(0|(h=0)),m);if(!((o=u-1|0)&u))return 0|i&&(a[i>>2]=0|e,a[i+4>>2]=o&c|0&t),h=0,m=c>>>((0|_t(0|u))>>>0),0|(O(0|h),m);if((o=(0|_(0|u))-(0|_(0|c))|0)>>>0<=30){l=t=o+1|0,e=c<<(u=31-o|0)|d>>>(t>>>0),t=c>>>(t>>>0),o=0,u=d<>2]=0|e,a[i+4>>2]=s|0&t,m=0,0|(O(0|(h=0)),m)):(m=0,0|(O(0|(h=0)),m))}while(0);if(l){c=0|function(e,t,n,r){return 0|(O((t|=0)+(r|=0)+((n=(e|=0)+(n|=0)>>>0)>>>0>>0|0)>>>0|0),0|n)}(0|(f=0|n),0|(d=p|0&r),-1,-1),n=0|E(),s=u,u=0;do{r=s,s=o>>>31|s<<1,o=u|o<<1,At(0|c,0|n,0|(r=e<<1|r>>>31|0),0|(p=e>>>31|t<<1|0)),u=1&(h=(m=0|E())>>31|((0|m)<0?-1:0)<<1),e=0|At(0|r,0|p,h&f|0,(((0|m)<0?-1:0)>>31|((0|m)<0?-1:0)<<1)&d|0),t=0|E(),l=l-1|0}while(0!=(0|l));c=s,s=0}else c=u,s=0,u=0;return l=0,0|i&&(a[i>>2]=e,a[i+4>>2]=t),m=-2&(o<<1|0)|u,0|(O(0|(h=(0|o)>>>31|(c|l)<<1|0&(l<<1|o>>>31)|s)),m)}function Et(e,t,n,r){var i,o;return o=L,L=L+16|0,Ot(e|=0,t|=0,n|=0,r|=0,i=0|o),L=o,0|(O(0|a[i+4>>2]),0|a[i>>2])}function xt(e,t,n){return e|=0,t|=0,(0|(n|=0))<32?(O(t>>>n|0),e>>>n|(t&(1<>>n-32|0)}function Mt(e,t,n){return e|=0,t|=0,(0|(n|=0))<32?(O(t<>>32-n|0),e<=0?+l(e+.5):+y(e-.5)}function Tt(e,t,n){e|=0,t|=0;var i,o,l=0;if((0|(n|=0))>=8192)return S(0|e,0|t,0|n),0|e;if(o=0|e,i=e+n|0,(3&e)==(3&t)){for(;3&e;){if(!n)return 0|o;r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0,n=n-1|0}for(l=(n=-4&i|0)-64|0;(0|e)<=(0|l);)a[e>>2]=a[t>>2],a[e+4>>2]=a[t+4>>2],a[e+8>>2]=a[t+8>>2],a[e+12>>2]=a[t+12>>2],a[e+16>>2]=a[t+16>>2],a[e+20>>2]=a[t+20>>2],a[e+24>>2]=a[t+24>>2],a[e+28>>2]=a[t+28>>2],a[e+32>>2]=a[t+32>>2],a[e+36>>2]=a[t+36>>2],a[e+40>>2]=a[t+40>>2],a[e+44>>2]=a[t+44>>2],a[e+48>>2]=a[t+48>>2],a[e+52>>2]=a[t+52>>2],a[e+56>>2]=a[t+56>>2],a[e+60>>2]=a[t+60>>2],e=e+64|0,t=t+64|0;for(;(0|e)<(0|n);)a[e>>2]=a[t>>2],e=e+4|0,t=t+4|0}else for(n=i-4|0;(0|e)<(0|n);)r[e>>0]=0|r[t>>0],r[e+1>>0]=0|r[t+1>>0],r[e+2>>0]=0|r[t+2>>0],r[e+3>>0]=0|r[t+3>>0],e=e+4|0,t=t+4|0;for(;(0|e)<(0|i);)r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0;return 0|o}function Ct(e,t,n){t|=0;var i,o=0,l=0,u=0;if(i=(e|=0)+(n|=0)|0,t&=255,(0|n)>=67){for(;3&e;)r[e>>0]=t,e=e+1|0;for(u=t|t<<8|t<<16|t<<24,l=(o=-4&i|0)-64|0;(0|e)<=(0|l);)a[e>>2]=u,a[e+4>>2]=u,a[e+8>>2]=u,a[e+12>>2]=u,a[e+16>>2]=u,a[e+20>>2]=u,a[e+24>>2]=u,a[e+28>>2]=u,a[e+32>>2]=u,a[e+36>>2]=u,a[e+40>>2]=u,a[e+44>>2]=u,a[e+48>>2]=u,a[e+52>>2]=u,a[e+56>>2]=u,a[e+60>>2]=u,e=e+64|0;for(;(0|e)<(0|o);)a[e>>2]=u,e=e+4|0}for(;(0|e)<(0|i);)r[e>>0]=t,e=e+1|0;return i-n|0}function Lt(e){return(e=+e)>=0?+l(e+.5):+y(e-.5)}function Pt(e){e|=0;var t,n,r;return r=0|w(),(0|e)>0&(0|(t=(n=0|a[o>>2])+e|0))<(0|n)|(0|t)<0?(C(0|t),M(12),-1):(0|t)>(0|r)&&!(0|T(0|t))?(M(12),-1):(a[o>>2]=t,0|n)}return{___uremdi3:Et,_bitshift64Lshr:xt,_bitshift64Shl:Mt,_calloc:bt,_cellAreaKm2:function(e,t){var n,r,i,o=0;if(i=L,L=L+192|0,r=i,Ye(e|=0,t|=0,n=i+168|0),We(e,t,r),(0|(t=0|a[r>>2]))>0){if(o=+Ce(r+8|0,r+8+((1!=(0|t)&1)<<4)|0,n)+0,1!=(0|t)){e=1;do{o+=+Ce(r+8+(e<<4)|0,r+8+(((0|(e=e+1|0))%(0|t)|0)<<4)|0,n)}while((0|e)<(0|t))}}else o=0;return L=i,6371.007180918475*o*6371.007180918475},_cellAreaM2:function(e,t){var n,r,i,o=0;if(i=L,L=L+192|0,r=i,Ye(e|=0,t|=0,n=i+168|0),We(e,t,r),(0|(t=0|a[r>>2]))>0){if(o=+Ce(r+8|0,r+8+((1!=(0|t)&1)<<4)|0,n)+0,1!=(0|t)){e=1;do{o+=+Ce(r+8+(e<<4)|0,r+8+(((0|(e=e+1|0))%(0|t)|0)<<4)|0,n)}while((0|e)<(0|t))}}else o=0;return L=i,6371.007180918475*o*6371.007180918475*1e3*1e3},_cellAreaRads2:function(e,t){var n,r,i,o=0;if(i=L,L=L+192|0,r=i,Ye(e|=0,t|=0,n=i+168|0),We(e,t,r),(0|(t=0|a[r>>2]))<=0)return L=i,+(o=0);if(o=+Ce(r+8|0,r+8+((1!=(0|t)&1)<<4)|0,n)+0,1==(0|t))return L=i,+o;e=1;do{o+=+Ce(r+8+(e<<4)|0,r+8+(((0|(e=e+1|0))%(0|t)|0)<<4)|0,n)}while((0|e)<(0|t));return L=i,+o},_compact:function(e,t,n){t|=0;var r,i=0,o=0,l=0,u=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0,x=0,M=0,w=0;if(!(n|=0))return 0|(M=0);if(i=0|a[(o=e|=0)>>2],!0&0==(15728640&(o=0|a[o+4>>2])|0)){if((0|n)<=0)return 0|(M=0);if(a[(M=t)>>2]=i,a[M+4>>2]=o,1==(0|n))return 0|(M=0);i=1;do{x=0|a[(O=e+(i<<3)|0)+4>>2],a[(M=t+(i<<3)|0)>>2]=a[O>>2],a[M+4>>2]=x,i=i+1|0}while((0|i)!=(0|n));return 0|(i=0)}if(!(x=0|vt(O=n<<3)))return 0|(M=-3);if(Tt(0|x,0|e,0|O),!(r=0|bt(n,8)))return yt(x),0|(M=-3);i=n;e:for(;;){A=0|xt(0|(f=0|a[(u=x)>>2]),0|(u=0|a[u+4>>2]),52),E(),_=(A&=15)+-1|0,b=(0|i)>0;t:do{if(b){if(y=((0|i)<0)<<31>>31,g=0|Mt(0|_,0,52),v=0|E(),_>>>0>15)for(o=0,e=f,n=u;;){if(!(0==(0|e)&0==(0|n))){if(l=0|xt(0|e,0|n,52),E(),s=(0|(l&=15))<(0|_),l=(0|l)==(0|_),n=0|Et(0|(d=s?0:l?e:0),0|(e=s?0:l?n:0),0|i,0|y),E(),0==(0|(c=0|a[(s=l=r+(n<<3)|0)>>2]))&0==(0|(s=0|a[s+4>>2])))n=d;else for(g=0,m=n,h=s,n=d;;){if((0|g)>(0|i)){M=41;break e}if((0|c)==(0|n)&(-117440513&h|0)==(0|e)){d=0|xt(0|c,0|h,56),E(),p=(d&=7)+1|0,v=0|xt(0|c,0|h,45),E();n:do{if(0|I(127&v)){if(c=0|xt(0|c,0|h,52),E(),!(c&=15)){s=6;break}for(s=1;;){if(!(0==((v=0|Mt(7,0,3*(15-s|0)|0))&n|0)&0==((0|E())&e|0))){s=7;break n}if(!(s>>>0>>0)){s=6;break}s=s+1|0}}else s=7}while(0);if((d+2|0)>>>0>s>>>0){M=51;break e}v=0|Mt(0|p,0,56),e=0|E()|-117440513&e,a[(s=l)>>2]=0,a[s+4>>2]=0,s=m,n|=v}else s=(m+1|0)%(0|i)|0;if(0==(0|(c=0|a[(h=l=r+(s<<3)|0)>>2]))&0==(0|(h=0|a[h+4>>2])))break;g=g+1|0,m=s}a[(v=l)>>2]=n,a[v+4>>2]=e}if((0|(o=o+1|0))>=(0|i))break t;e=0|a[(n=x+(o<<3)|0)>>2],n=0|a[n+4>>2]}for(o=0,e=f,n=u;;){if(!(0==(0|e)&0==(0|n))){if(s=0|xt(0|e,0|n,52),E(),(0|(s&=15))>=(0|_)){if((0|s)!=(0|_)&&(e|=g,n=-15728641&n|v,s>>>0>=A>>>0)){l=_;do{m=0|Mt(7,0,3*(14-l|0)|0),l=l+1|0,e|=m,n=0|E()|n}while(l>>>0>>0)}}else e=0,n=0;if(s=0|Et(0|e,0|n,0|i,0|y),E(),!(0==(0|(d=0|a[(c=l=r+(s<<3)|0)>>2]))&0==(0|(c=0|a[c+4>>2]))))for(m=0;;){if((0|m)>(0|i)){M=41;break e}if((0|d)==(0|e)&(-117440513&c|0)==(0|n)){p=0|xt(0|d,0|c,56),E(),h=(p&=7)+1|0,w=0|xt(0|d,0|c,45),E();n:do{if(0|I(127&w)){if(d=0|xt(0|d,0|c,52),E(),!(d&=15)){c=6;break}for(c=1;;){if(!(0==((w=0|Mt(7,0,3*(15-c|0)|0))&e|0)&0==((0|E())&n|0))){c=7;break n}if(!(c>>>0>>0)){c=6;break}c=c+1|0}}else c=7}while(0);if((p+2|0)>>>0>c>>>0){M=51;break e}w=0|Mt(0|h,0,56),n=0|E()|-117440513&n,a[(h=l)>>2]=0,a[h+4>>2]=0,e|=w}else s=(s+1|0)%(0|i)|0;if(0==(0|(d=0|a[(c=l=r+(s<<3)|0)>>2]))&0==(0|(c=0|a[c+4>>2])))break;m=m+1|0}a[(w=l)>>2]=e,a[w+4>>2]=n}if((0|(o=o+1|0))>=(0|i))break t;e=0|a[(n=x+(o<<3)|0)>>2],n=0|a[n+4>>2]}}}while(0);if((i+5|0)>>>0<11){M=99;break}if(!(v=0|bt((0|i)/6|0,8))){M=58;break}t:do{if(b){m=0,h=0;do{if(!(0==(0|(o=0|a[(e=s=r+(m<<3)|0)>>2]))&0==(0|(e=0|a[e+4>>2])))){c=0|xt(0|o,0|e,56),E(),n=(c&=7)+1|0,d=-117440513&e,w=0|xt(0|o,0|e,45),E();n:do{if(0|I(127&w)){if(p=0|xt(0|o,0|e,52),E(),0|(p&=15))for(l=1;;){if(!(0==(o&(w=0|Mt(7,0,3*(15-l|0)|0))|0)&0==(d&(0|E())|0)))break n;if(!(l>>>0

>>0))break;l=l+1|0}o|=e=0|Mt(0|n,0,56),e=0|E()|d,a[(n=s)>>2]=o,a[n+4>>2]=e,n=c+2|0}}while(0);7==(0|n)&&(a[(w=v+(h<<3)|0)>>2]=o,a[w+4>>2]=-117440513&e,h=h+1|0)}m=m+1|0}while((0|m)!=(0|i));if(b){if(g=((0|i)<0)<<31>>31,p=0|Mt(0|_,0,52),m=0|E(),_>>>0>15)for(e=0,o=0;;){do{if(!(0==(0|f)&0==(0|u))){for(c=0|xt(0|f,0|u,52),E(),l=(0|(c&=15))<(0|_),c=(0|c)==(0|_),l=0|Et(0|(s=l?0:c?f:0),0|(c=l?0:c?u:0),0|i,0|g),E(),n=0;;){if((0|n)>(0|i)){M=98;break e}if((-117440513&(d=0|a[(w=r+(l<<3)|0)+4>>2])|0)==(0|c)&&(0|a[w>>2])==(0|s)){M=70;break}if((0|a[(w=r+((l=(l+1|0)%(0|i)|0)<<3)|0)>>2])==(0|s)&&(0|a[w+4>>2])==(0|c))break;n=n+1|0}if(70==(0|M)&&(M=0,!0&100663296==(117440512&d|0)))break;a[(w=t+(o<<3)|0)>>2]=f,a[w+4>>2]=u,o=o+1|0}}while(0);if((0|(e=e+1|0))>=(0|i)){i=h;break t}f=0|a[(u=x+(e<<3)|0)>>2],u=0|a[u+4>>2]}for(e=0,o=0;;){do{if(!(0==(0|f)&0==(0|u))){if(c=0|xt(0|f,0|u,52),E(),(0|(c&=15))>=(0|_))if((0|c)!=(0|_))if(n=f|p,l=-15728641&u|m,c>>>0>>0)c=l;else{s=_;do{w=0|Mt(7,0,3*(14-s|0)|0),s=s+1|0,n|=w,l=0|E()|l}while(s>>>0>>0);c=l}else n=f,c=u;else n=0,c=0;for(s=0|Et(0|n,0|c,0|i,0|g),E(),l=0;;){if((0|l)>(0|i)){M=98;break e}if((-117440513&(d=0|a[(w=r+(s<<3)|0)+4>>2])|0)==(0|c)&&(0|a[w>>2])==(0|n)){M=93;break}if((0|a[(w=r+((s=(s+1|0)%(0|i)|0)<<3)|0)>>2])==(0|n)&&(0|a[w+4>>2])==(0|c))break;l=l+1|0}if(93==(0|M)&&(M=0,!0&100663296==(117440512&d|0)))break;a[(w=t+(o<<3)|0)>>2]=f,a[w+4>>2]=u,o=o+1|0}}while(0);if((0|(e=e+1|0))>=(0|i)){i=h;break t}f=0|a[(u=x+(e<<3)|0)>>2],u=0|a[u+4>>2]}}else o=0,i=h}else o=0,i=0}while(0);if(Ct(0|r,0,0|O),Tt(0|x,0|v,i<<3|0),yt(v),!i)break;t=t+(o<<3)|0}return 41==(0|M)?(yt(x),yt(r),0|(w=-1)):51==(0|M)?(yt(x),yt(r),0|(w=-2)):58==(0|M)?(yt(x),yt(r),0|(w=-3)):98==(0|M)?(yt(v),yt(x),yt(r),0|(w=-1)):(99==(0|M)&&Tt(0|t,0|x,i<<3|0),yt(x),yt(r),0|(w=0))},_destroyLinkedPolygon:function(e){var t=0,n=0,r=0,i=0;if(e|=0)for(r=1;;){if(0|(t=0|a[e>>2]))do{if(0|(n=0|a[t>>2]))do{i=n,n=0|a[n+16>>2],yt(i)}while(0!=(0|n));i=t,t=0|a[t+8>>2],yt(i)}while(0!=(0|t));if(t=e,e=0|a[e+8>>2],r||yt(t),!e)break;r=0}},_edgeLengthKm:function(e){return+ +i[20752+((e|=0)<<3)>>3]},_edgeLengthM:function(e){return+ +i[20880+((e|=0)<<3)>>3]},_emscripten_replace_memory:function(e){return r=new Int8Array(e),new Uint8Array(e),a=new Int32Array(e),new Float32Array(e),i=new Float64Array(e),n=e,!0},_exactEdgeLengthKm:function(e,t){var n,r,o=0,l=0,u=0,c=0,p=0,h=0;if(r=L,L=L+176|0,Xe(e|=0,t|=0,n=r),(0|(e=0|a[n>>2]))<=1)return L=r,+(u=0);t=e+-1|0,e=0,o=0,l=+i[n+8>>3],u=+i[n+16>>3];do{p=l,l=+i[n+8+((e=e+1|0)<<4)>>3],h=+f(.5*(l-p)),c=u,u=+i[n+8+(e<<4)+8>>3],c=h*h+(c=+f(.5*(u-c)))*(+d(+p)*+d(+l)*c),o+=2*+v(+ +s(+c),+ +s(+(1-c)))}while((0|e)!=(0|t));return L=r,+(h=6371.007180918475*o)},_exactEdgeLengthM:function(e,t){var n,r,o=0,l=0,u=0,c=0,p=0,h=0;if(r=L,L=L+176|0,Xe(e|=0,t|=0,n=r),(0|(e=0|a[n>>2]))<=1)return L=r,+(u=0);t=e+-1|0,e=0,o=0,l=+i[n+8>>3],u=+i[n+16>>3];do{p=l,l=+i[n+8+((e=e+1|0)<<4)>>3],h=+f(.5*(l-p)),c=u,u=+i[n+8+(e<<4)+8>>3],c=h*h+(c=+f(.5*(u-c)))*(+d(+p)*+d(+l)*c),o+=2*+v(+ +s(+c),+ +s(+(1-c)))}while((0|e)!=(0|t));return L=r,+(h=6371.007180918475*o*1e3)},_exactEdgeLengthRads:function(e,t){var n,r,o=0,l=0,u=0,c=0,p=0,h=0;if(r=L,L=L+176|0,Xe(e|=0,t|=0,n=r),(0|(e=0|a[n>>2]))<=1)return L=r,+(u=0);t=e+-1|0,e=0,o=0,l=+i[n+8>>3],u=+i[n+16>>3];do{p=l,l=+i[n+8+((e=e+1|0)<<4)>>3],h=+f(.5*(l-p)),c=u,u=+i[n+8+(e<<4)+8>>3],c=h*h+(c=+f(.5*(u-c)))*(+d(+l)*+d(+p)*c),o+=2*+v(+ +s(+c),+ +s(+(1-c)))}while((0|e)<(0|t));return L=r,+o},_experimentalH3ToLocalIj:function(e,t,n,r,a){var i,o;return a|=0,o=L,L=L+16|0,(e=0|$e(e|=0,t|=0,n|=0,r|=0,i=o))||(pe(i,a),e=0),L=o,0|e},_experimentalLocalIjToH3:function(e,t,n,r){var a,i;return e|=0,t|=0,r|=0,a=L,L=L+16|0,he(n|=0,i=a),r=0|et(e,t,i,r),L=a,0|r},_free:yt,_geoToH3:Ue,_getDestinationH3IndexFromUnidirectionalEdge:function(e,t){e|=0;var n,r,i=0;return n=L,L=L+16|0,i=n,!0&268435456==(2013265920&(t|=0)|0)?(r=0|xt(0|e,0|t,56),E(),a[i>>2]=0,i=0|R(e,-2130706433&t|134217728,7&r,i),t=0|E(),O(0|t),L=n,0|i):(i=0,O(0|(t=0)),L=n,0|i)},_getH3IndexesFromUnidirectionalEdge:function(e,t,n){e|=0;var r,i,o,l,u=0;o=L,L=L+16|0,r=o,l=!0&268435456==(2013265920&(t|=0)|0),i=-2130706433&t|134217728,a[(u=n|=0)>>2]=l?e:0,a[u+4>>2]=l?i:0,l?(t=0|xt(0|e,0|t,56),E(),a[r>>2]=0,e=0|R(e,i,7&t,r),t=0|E()):(e=0,t=0),a[(u=n+8|0)>>2]=e,a[u+4>>2]=t,L=o},_getH3UnidirectionalEdge:function(e,t,n,r){var i,o,l=0,u=0,s=0,c=0,d=0;if(o=L,L=L+16|0,i=o,!(0|qe(e|=0,t|=0,n|=0,r|=0)))return c=0,O(0|(s=0)),L=o,0|c;for(s=-2130706433&t,l=(l=0==(0|Re(e,t)))?1:2;a[i>>2]=0,u=l+1|0,!((0|(d=0|R(e,t,l,i)))==(0|n)&(0|E())==(0|r));){if(!(u>>>0<7)){l=0,e=0,c=6;break}l=u}return 6==(0|c)?(O(0|l),L=o,0|e):(d=0|Mt(0|l,0,56),c=0|s|E()|268435456,d|=e,O(0|c),L=o,0|d)},_getH3UnidirectionalEdgeBoundary:Xe,_getH3UnidirectionalEdgesFromHexagon:function(e,t,n){n|=0;var r,i=0;r=0==(0|Re(e|=0,t|=0)),t&=-2130706433,a[(i=n)>>2]=r?e:0,a[i+4>>2]=r?285212672|t:0,a[(i=n+8|0)>>2]=e,a[i+4>>2]=301989888|t,a[(i=n+16|0)>>2]=e,a[i+4>>2]=318767104|t,a[(i=n+24|0)>>2]=e,a[i+4>>2]=335544320|t,a[(i=n+32|0)>>2]=e,a[i+4>>2]=352321536|t,a[(n=n+40|0)>>2]=e,a[n+4>>2]=369098752|t},_getOriginH3IndexFromUnidirectionalEdge:function(e,t){var n;return e|=0,O(0|((n=!0&268435456==(2013265920&(t|=0)|0))?-2130706433&t|134217728:0)),0|(n?e:0)},_getPentagonIndexes:Ge,_getRes0Indexes:function(e){e|=0;var t=0,n=0,r=0;t=0;do{Mt(0|t,0,45),r=134225919|E(),a[(n=e+(t<<3)|0)>>2]=-1,a[n+4>>2]=r,t=t+1|0}while(122!=(0|t))},_h3Distance:function(e,t,n,r){var a,i,o;return n|=0,r|=0,o=L,L=L+32|0,i=o,e=0==(0|$e(e|=0,t|=0,e,t,a=o+12|0))&&0==(0|$e(e,t,n,r,i))?0|fe(a,i):-1,L=o,0|e},_h3GetBaseCell:Le,_h3GetFaces:function e(t,n,r){r|=0;var i,o=0,l=0,u=0,s=0,c=0,d=0,f=0,p=0;i=L,L=L+128|0,f=i+112|0,u=i+96|0,p=i,l=0|xt(0|(t|=0),0|(n|=0),52),E(),c=15&l,a[f>>2]=c,s=0|xt(0|t,0|n,45),E(),s&=127;e:do{if(0|I(s)){if(0|c)for(o=1;;){if(!(0==((d=0|Mt(7,0,3*(15-o|0)|0))&t|0)&0==((0|E())&n|0))){l=0;break e}if(!(o>>>0>>0))break;o=o+1|0}if(!(1&l))return d=0|Mt(c+1|0,0,52),p=0|E()|-15728641&n,e((d|t)&~(f=0|Mt(7,0,3*(14-c|0)|0)),p&~(0|E()),r),void(L=i);l=1}else l=0}while(0);He(t,n,u),l?(_e(u,f,p),d=5):(Me(u,f,p),d=6);e:do{if(0|I(s))if(c)for(o=1;;){if(!(0==((s=0|Mt(7,0,3*(15-o|0)|0))&t|0)&0==((0|E())&n|0))){o=8;break e}if(!(o>>>0>>0)){o=20;break}o=o+1|0}else o=20;else o=8}while(0);if(Ct(0|r,-1,0|o),l){l=0;do{for(Ee(u=p+(l<<4)|0,0|a[f>>2]),u=0|a[u>>2],o=0;!(-1==(0|(c=0|a[(s=r+(o<<2)|0)>>2]))|(0|c)==(0|u));)o=o+1|0;a[s>>2]=u,l=l+1|0}while((0|l)!=(0|d))}else{l=0;do{for(Oe(u=p+(l<<4)|0,0|a[f>>2],0,1),u=0|a[u>>2],o=0;!(-1==(0|(c=0|a[(s=r+(o<<2)|0)>>2]))|(0|c)==(0|u));)o=o+1|0;a[s>>2]=u,l=l+1|0}while((0|l)!=(0|d))}L=i},_h3IndexesAreNeighbors:qe,_h3IsPentagon:Re,_h3IsResClassIII:function(e,t){return t=0|xt(0|(e|=0),0|(t|=0),52),E(),1&t|0},_h3IsValid:Pe,_h3Line:function(e,t,n,r,i){n|=0,r|=0,i|=0;var o,l=0,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0,E=0,x=0;if(o=L,L=L+48|0,s=o+12|0,E=o,0==(0|$e(e|=0,t|=0,e,t,l=o+24|0))&&0==(0|$e(e,t,n,r,s))){if((0|(O=0|fe(l,s)))<0)return L=o,0|(E=O);for(a[l>>2]=0,a[l+4>>2]=0,a[l+8>>2]=0,a[s>>2]=0,a[s+4>>2]=0,a[s+8>>2]=0,$e(e,t,e,t,l),$e(e,t,n,r,s),me(l),me(s),O?(g=+(0|O),_=l,n=p=0|a[l>>2],r=h=0|a[(b=l+4|0)>>2],l=m=0|a[(A=l+8|0)>>2],v=+((0|a[s>>2])-p|0)/g,y=+((0|a[s+4>>2])-h|0)/g,g=+((0|a[s+8>>2])-m|0)/g):(b=r=l+4|0,A=m=l+8|0,_=l,n=0|a[l>>2],r=0|a[r>>2],l=0|a[m>>2],v=0,y=0,g=0),a[E>>2]=n,a[(m=E+4|0)>>2]=r,a[(h=E+8|0)>>2]=l,p=0;;){x=v*(d=+(0|p))+ +(0|n),c=y*d+ +(0|a[b>>2]),d=g*d+ +(0|a[A>>2]),r=~~+St(+x),s=~~+St(+c),n=~~+St(+d),x=+u(+(+(0|r)-x)),c=+u(+(+(0|s)-c)),d=+u(+(+(0|n)-d));do{if(!(x>c&x>d)){if(f=0-r|0,c>d){l=f-n|0;break}l=s,n=f-s|0;break}r=0-(s+n)|0,l=s}while(0);if(a[E>>2]=r,a[m>>2]=l,a[h>>2]=n,ge(E),et(e,t,E,i+(p<<3)|0),(0|p)==(0|O))break;p=p+1|0,n=0|a[_>>2]}return L=o,0|(E=0)}return L=o,0|(E=-1)},_h3LineSize:function(e,t,n,r){var a,i,o;return n|=0,r|=0,o=L,L=L+32|0,i=o,e=0==(0|$e(e|=0,t|=0,e,t,a=o+12|0))&&0==(0|$e(e,t,n,r,i))?0|fe(a,i):-1,L=o,(e>>>31^1)+e|0},_h3SetToLinkedGeo:function(e,t,n){n|=0;var r,i,o,l=0;if(o=L,L=L+32|0,r=o,function(e,t,n){e|=0,n|=0;var r,i,o=0,l=0,u=0,s=0,c=0;if(i=L,L=L+176|0,r=i,(0|(t|=0))<1)return st(n,0,0),void(L=i);s=0|xt(0|a[(s=e)>>2],0|a[s+4>>2],52),E(),st(n,(0|t)>6?t:6,15&s),s=0;do{if(We(0|a[(o=e+(s<<3)|0)>>2],0|a[o+4>>2],r),(0|(o=0|a[r>>2]))>0){c=0;do{u=r+8+(c<<4)|0,(l=0|ht(n,o=r+8+(((0|(c=c+1|0))%(0|o)|0)<<4)|0,u))?ft(n,l):pt(n,u,o),o=0|a[r>>2]}while((0|c)<(0|o))}s=s+1|0}while((0|s)!=(0|t));L=i}(e|=0,t|=0,i=o+16|0),a[n>>2]=0,a[n+4>>2]=0,a[n+8>>2]=0,!(e=0|dt(i)))return Je(n),ct(i),void(L=o);do{t=0|Ze(n);do{Ke(t,e),l=e+16|0,a[r>>2]=a[l>>2],a[r+4>>2]=a[l+4>>2],a[r+8>>2]=a[l+8>>2],a[r+12>>2]=a[l+12>>2],ft(i,e),e=0|mt(i,r)}while(0!=(0|e));e=0|dt(i)}while(0!=(0|e));Je(n),ct(i),L=o},_h3ToCenterChild:function(e,t,n){n|=0;var r=0,a=0;if(r=0|xt(0|(e|=0),0|(t|=0),52),E(),(0|n)<16&(0|(r&=15))<=(0|n)){if((0|r)!=(0|n)&&(e|=a=0|Mt(0|n,0,52),t=0|E()|-15728641&t,(0|r)<(0|n)))do{a=0|Mt(7,0,3*(14-r|0)|0),r=r+1|0,e&=~a,t&=~(0|E())}while((0|r)<(0|n))}else t=0,e=0;return O(0|t),0|e},_h3ToChildren:De,_h3ToGeo:Ye,_h3ToGeoBoundary:We,_h3ToParent:ke,_h3UnidirectionalEdgeIsValid:function(e,t){var n=0;if(!(!0&268435456==(2013265920&(t|=0)|0)))return 0|(n=0);switch(n=0|xt(0|(e|=0),0|t,56),E(),7&n){case 0:case 7:return 0|(n=0)}return!0&16777216==(117440512&t|0)&0!=(0|Re(e,n=-2130706433&t|134217728))?0|(n=0):0|(n=0|Pe(e,n))},_hexAreaKm2:function(e){return+ +i[20496+((e|=0)<<3)>>3]},_hexAreaM2:function(e){return+ +i[20624+((e|=0)<<3)>>3]},_hexRing:function(e,t,n,r){e|=0,t|=0,r|=0;var i,o=0,l=0,u=0,s=0,c=0,d=0,f=0;if(i=L,L=L+16|0,f=i,!(n|=0))return a[(f=r)>>2]=e,a[f+4>>2]=t,L=i,0|(f=0);a[f>>2]=0;e:do{if(0|Re(e,t))e=1;else{if(l=(0|n)>0){o=0,d=e;do{if(0==(0|(d=0|R(d,t,4,f)))&0==(0|(t=0|E()))){e=2;break e}if(o=o+1|0,0|Re(d,t)){e=1;break e}}while((0|o)<(0|n));if(a[(c=r)>>2]=d,a[c+4>>2]=t,c=n+-1|0,l){l=0,u=1,o=d,e=t;do{if(0==(0|(o=0|R(o,e,2,f)))&0==(0|(e=0|E()))){e=2;break e}if(a[(s=r+(u<<3)|0)>>2]=o,a[s+4>>2]=e,u=u+1|0,0|Re(o,e)){e=1;break e}l=l+1|0}while((0|l)<(0|n));s=0,l=u;do{if(0==(0|(o=0|R(o,e,3,f)))&0==(0|(e=0|E()))){e=2;break e}if(a[(u=r+(l<<3)|0)>>2]=o,a[u+4>>2]=e,l=l+1|0,0|Re(o,e)){e=1;break e}s=s+1|0}while((0|s)<(0|n));u=0;do{if(0==(0|(o=0|R(o,e,1,f)))&0==(0|(e=0|E()))){e=2;break e}if(a[(s=r+(l<<3)|0)>>2]=o,a[s+4>>2]=e,l=l+1|0,0|Re(o,e)){e=1;break e}u=u+1|0}while((0|u)<(0|n));u=0;do{if(0==(0|(o=0|R(o,e,5,f)))&0==(0|(e=0|E()))){e=2;break e}if(a[(s=r+(l<<3)|0)>>2]=o,a[s+4>>2]=e,l=l+1|0,0|Re(o,e)){e=1;break e}u=u+1|0}while((0|u)<(0|n));u=0;do{if(0==(0|(o=0|R(o,e,4,f)))&0==(0|(e=0|E()))){e=2;break e}if(a[(s=r+(l<<3)|0)>>2]=o,a[s+4>>2]=e,l=l+1|0,0|Re(o,e)){e=1;break e}u=u+1|0}while((0|u)<(0|n));for(u=0;;){if(0==(0|(o=0|R(o,e,6,f)))&0==(0|(e=0|E()))){e=2;break e}if((0|u)!=(0|c)){if(a[(s=r+(l<<3)|0)>>2]=o,a[s+4>>2]=e,0|Re(o,e)){e=1;break e}l=l+1|0}if((0|(u=u+1|0))>=(0|n)){u=d,l=t;break}}}else u=d,o=d,l=t,e=t}else a[(u=r)>>2]=e,a[u+4>>2]=t,u=e,o=e,l=t,e=t;e=1&((0|u)!=(0|o)|(0|l)!=(0|e))}}while(0);return L=i,0|(f=e)},_i64Subtract:At,_kRing:P,_kRingDistances:function(e,t,n,r,a){var i;if(0|k(e|=0,t|=0,n|=0,r|=0,a|=0)){if(Ct(0|r,0,(i=1+(0|b(3*n|0,n+1|0))|0)<<3|0),0|a)return Ct(0|a,0,i<<2|0),void D(e,t,n,r,a,i,0);(a=0|bt(i,4))&&(D(e,t,n,r,a,i,0),yt(a))}},_llvm_minnum_f64:wt,_llvm_round_f64:St,_malloc:vt,_maxFaceCount:function(e,t){var n=0,r=0;if(r=0|xt(0|(e|=0),0|(t|=0),45),E(),!(0|I(127&r)))return 0|(r=2);if(r=0|xt(0|e,0|t,52),E(),!(r&=15))return 0|(r=5);for(n=1;;){if(!(0==((0|Mt(7,0,3*(15-n|0)|0))&e|0)&0==((0|E())&t|0))){n=2,e=6;break}if(!(n>>>0>>0)){n=5,e=6;break}n=n+1|0}return 6==(0|e)?0|n:0},_maxH3ToChildrenSize:function(e,t,n){return n|=0,e=0|xt(0|(e|=0),0|(t|=0),52),E(),(0|n)<16&(0|(e&=15))<=(0|n)?0|(n=0|tt(7,n-e|0)):0|(n=0)},_maxKringSize:function(e){return 1+(0|b(3*(e|=0)|0,e+1|0))|0},_maxPolyfillSize:function(e,t){t|=0;var n,r=0,i=0,o=0,l=0,u=0;if(n=L,L=L+48|0,o=n+8|0,i=n,l=0|a[(u=e|=0)+4>>2],a[(r=i)>>2]=a[u>>2],a[r+4>>2]=l,rt(i,o),o=0|W(o,t),t=0|a[i>>2],(0|(i=0|a[e+8>>2]))<=0)return L=n,0|(u=(u=(l=(0|o)<(0|(u=t)))?u:o)+12|0);r=0|a[e+12>>2],e=0;do{t=(0|a[r+(e<<3)>>2])+t|0,e=e+1|0}while((0|e)<(0|i));return L=n,0|(u=(u=(u=(0|o)<(0|t))?t:o)+12|0)},_maxUncompactSize:function(e,t,n){e|=0,n|=0;var r=0,i=0,o=0,l=0;if((0|(t|=0))<=0)return 0|(n=0);if((0|n)>=16){for(r=0;;){if(!(0==(0|a[(l=e+(r<<3)|0)>>2])&0==(0|a[l+4>>2]))){r=-1,i=13;break}if((0|(r=r+1|0))>=(0|t)){r=0,i=13;break}}if(13==(0|i))return 0|r}r=0,l=0;e:for(;;){o=0|a[(i=e+(l<<3)|0)>>2],i=0|a[i+4>>2];do{if(!(0==(0|o)&0==(0|i))){if(i=0|xt(0|o,0|i,52),E(),(0|(i&=15))>(0|n)){r=-1,i=13;break e}if((0|i)==(0|n)){r=r+1|0;break}r=(0|tt(7,n-i|0))+r|0;break}}while(0);if((0|(l=l+1|0))>=(0|t)){i=13;break}}return 13==(0|i)?0|r:0},_memcpy:Tt,_memset:Ct,_numHexagons:function(e){var t;return e=0|a[(t=21008+((e|=0)<<3)|0)>>2],O(0|a[t+4>>2]),0|e},_pentagonIndexCount:function(){return 12},_pointDistKm:Te,_pointDistM:function(e,t){e|=0;var n,r,a,o=0;return r=+i[(t|=0)>>3],n=+i[e>>3],o=(a=+f(.5*(r-n)))*a+(o=+f(.5*(+i[t+8>>3]-+i[e+8>>3])))*(+d(+r)*+d(+n)*o),2*+v(+ +s(+o),+ +s(+(1-o)))*6371.007180918475*1e3},_pointDistRads:function(e,t){e|=0;var n,r,a,o=0;return r=+i[(t|=0)>>3],n=+i[e>>3],o=(a=+f(.5*(r-n)))*a+(o=+f(.5*(+i[t+8>>3]-+i[e+8>>3])))*(+d(+r)*+d(+n)*o),2*+v(+ +s(+o),+ +s(+(1-o)))},_polyfill:function(e,t,n){var r,i=0,o=0,l=0,u=0,s=0;if(r=L,L=L+48|0,i=r+8|0,o=r,0|function(e,t,n){t|=0,n|=0;var r,i,o,l,u,s=0,c=0,d=0,f=0,p=0,h=0,m=0,g=0,v=0,y=0,b=0,A=0,_=0,O=0,M=0,w=0,S=0,T=0,C=0,P=0,R=0,I=0,F=0,N=0,B=0;u=L,L=L+112|0,i=u+80|0,h=u+72|0,o=u,l=u+56|0,(B=0|vt(32+(a[(m=(e=e|0)+8|0)>>2]<<5)|0))||x(22848,22448,800,22456);if(at(e,B),s=0|a[(d=e)+4>>2],a[(p=h)>>2]=a[d>>2],a[p+4>>2]=s,rt(h,i),p=0|W(i,t),s=0|a[h>>2],(0|(d=0|a[m>>2]))>0){f=0|a[e+12>>2],c=0;do{s=(0|a[f+(c<<3)>>2])+s|0,c=c+1|0}while((0|c)!=(0|d))}if(c=0|bt(r=(p=(0|p)<(0|s)?s:p)+12|0,8),g=0|bt(r,8),a[i>>2]=0,N=0|a[(F=e)+4>>2],a[(s=h)>>2]=a[F>>2],a[s+4>>2]=N,0|(s=0|j(h,r,t,i,c,g)))return yt(c),yt(g),yt(B),L=u,0|(B=s);e:do{if((0|a[m>>2])>0){for(d=e+12|0,s=0;f=0|j((0|a[d>>2])+(s<<3)|0,r,t,i,c,g),s=s+1|0,!(0|f);)if((0|s)>=(0|a[m>>2]))break e;return yt(c),yt(g),yt(B),L=u,0|(B=f)}}while(0);(0|p)>-12&&Ct(0|g,0,((0|r)>1?r:1)<<3|0);e:do{if((0|a[i>>2])>0){N=((0|r)<0)<<31>>31,T=c,C=g,P=c,R=c,I=g,F=c,s=c,O=c,M=g,w=g,S=g,c=g;t:for(;;){for(_=0|a[i>>2],b=0,A=0,d=0;;){p=(f=o)+56|0;do{a[f>>2]=0,f=f+4|0}while((0|f)<(0|p));if(h=0|a[(t=T+(b<<3)|0)>>2],t=0|a[t+4>>2],0|k(h,t,1,o,0)){p=(f=o)+56|0;do{a[f>>2]=0,f=f+4|0}while((0|f)<(0|p));0|(f=0|bt(7,4))&&(D(h,t,1,o,f,7,0),yt(f))}y=0;do{g=0|a[(v=o+(y<<3)|0)>>2],v=0|a[v+4>>2];n:do{if(!(0==(0|g)&0==(0|v))){if(h=0|Et(0|g,0|v,0|r,0|N),E(),t=0|a[(p=f=n+(h<<3)|0)>>2],p=0|a[p+4>>2],!(0==(0|t)&0==(0|p)))for(m=0;;){if((0|m)>(0|r))break t;if((0|t)==(0|g)&(0|p)==(0|v))break n;if(t=0|a[(p=f=n+((h=(h+1|0)%(0|r)|0)<<3)|0)>>2],p=0|a[p+4>>2],0==(0|t)&0==(0|p))break;m=m+1|0}0==(0|g)&0==(0|v)||(Ye(g,v,l),0|it(e,B,l)&&(a[(m=f)>>2]=g,a[m+4>>2]=v,a[(m=C+(d<<3)|0)>>2]=g,a[m+4>>2]=v,d=d+1|0))}}while(0);y=y+1|0}while(y>>>0<7);if((0|(A=A+1|0))>=(0|_))break;b=b+1|0}if((0|_)>0&&Ct(0|P,0,_<<3|0),a[i>>2]=d,!((0|d)>0))break e;g=c,v=S,y=F,b=w,A=M,_=C,c=O,S=s,w=R,M=P,O=g,s=v,F=I,I=y,R=b,P=A,C=T,T=_}return yt(R),yt(I),yt(B),L=u,0|(B=-1)}s=g}while(0);return yt(B),yt(c),yt(s),L=u,0|(B=0)}(e|=0,t|=0,n|=0)){if(l=0|a[(s=e)+4>>2],a[(u=o)>>2]=a[s>>2],a[u+4>>2]=l,rt(o,i),u=0|W(i,t),t=0|a[o>>2],(0|(l=0|a[e+8>>2]))>0){o=0|a[e+12>>2],i=0;do{t=(0|a[o+(i<<3)>>2])+t|0,i=i+1|0}while((0|i)!=(0|l))}(0|(t=(0|u)<(0|t)?t:u))<=-12||Ct(0|n,0,8+(((0|(s=t+11|0))>0?s:0)<<3)|0),L=r}else L=r},_res0IndexCount:function(){return 122},_round:Lt,_sbrk:Pt,_sizeOfCoordIJ:function(){return 8},_sizeOfGeoBoundary:function(){return 168},_sizeOfGeoCoord:function(){return 16},_sizeOfGeoPolygon:function(){return 16},_sizeOfGeofence:function(){return 8},_sizeOfH3Index:function(){return 8},_sizeOfLinkedGeoPolygon:function(){return 12},_uncompact:function(e,t,n,r,i){e|=0,n|=0,r|=0,i|=0;var o=0,l=0,u=0,s=0,c=0,d=0;if((0|(t|=0))<=0)return 0|(i=0);if((0|i)>=16){for(o=0;;){if(!(0==(0|a[(d=e+(o<<3)|0)>>2])&0==(0|a[d+4>>2]))){o=14;break}if((0|(o=o+1|0))>=(0|t)){l=0,o=16;break}}if(14==(0|o))return 0|((0|r)>0?-2:-1);if(16==(0|o))return 0|l}o=0,d=0;e:for(;;){l=0|a[(u=c=e+(d<<3)|0)>>2],u=0|a[u+4>>2];do{if(!(0==(0|l)&0==(0|u))){if((0|o)>=(0|r)){l=-1,o=16;break e}if(s=0|xt(0|l,0|u,52),E(),(0|(s&=15))>(0|i)){l=-2,o=16;break e}if((0|s)==(0|i)){a[(c=n+(o<<3)|0)>>2]=l,a[c+4>>2]=u,o=o+1|0;break}if((0|(l=(0|tt(7,i-s|0))+o|0))>(0|r)){l=-1,o=16;break e}De(0|a[c>>2],0|a[c+4>>2],i,n+(o<<3)|0),o=l}}while(0);if((0|(d=d+1|0))>=(0|t)){l=0,o=16;break}}return 16==(0|o)?0|l:0},establishStackSpace:function(e,t){L=e|=0},stackAlloc:function(e){var t;return t=L,L=(L=L+(e|=0)|0)+15&-16,0|t},stackRestore:function(e){L=e|=0},stackSave:function(){return 0|L}}}({Math:Math,Int8Array:Int8Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Float32Array:Float32Array,Float64Array:Float64Array},{a:ue,b:function(e){s=e},c:c,d:function(e,t,n,r){ue("Assertion failed: "+m(e)+", at: "+[t?m(t):"unknown filename",n,r?m(r):"unknown function"])},e:function(e){return n.___errno_location&&(A[n.___errno_location()>>2]=e),e},f:G,g:function(e,t,n){y.set(y.subarray(t,t+n),e)},h:function(e){var t=G();if(e>2130706432)return!1;for(var n=Math.max(t,16777216);n>0]=t;break;case"i16":b[e>>1]=t;break;case"i32":A[e>>2]=t;break;case"i64":B=[t>>>0,(N=t,+P(N)>=1?N>0?(0|R(+D(N/4294967296),4294967295))>>>0:~~+k((N-+(~~N>>>0))/4294967296)>>>0:0)],A[e>>2]=B[0],A[e+4>>2]=B[1];break;case"float":_[e>>2]=t;break;case"double":O[e>>3]=t;break;default:ue("invalid type for setValue: "+n)}},n.getValue=function(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return v[e>>0];case"i16":return b[e>>1];case"i32":case"i64":return A[e>>2];case"float":return _[e>>2];case"double":return O[e>>3];default:ue("invalid type for getValue: "+t)}return null},n.getTempRet0=c,z){V(z)||(K=z,z=n.locateFile?n.locateFile(K,o):o+K),j++,n.monitorRunDependencies&&n.monitorRunDependencies(j);var re=function(e){e.byteLength&&(e=new Uint8Array(e)),y.set(e,8),n.memoryInitializerRequest&&delete n.memoryInitializerRequest.response,function(e){if(j--,n.monitorRunDependencies&&n.monitorRunDependencies(j),0==j&&(null!==I&&(clearInterval(I),I=null),F)){var t=F;F=null,t()}}()},ae=function(){a(z,re,(function(){throw"could not load memory initializer "+z}))},ie=Z(z);if(ie)re(ie.buffer);else if(n.memoryInitializerRequest){var oe=function(){var e=n.memoryInitializerRequest,t=e.response;if(200!==e.status&&0!==e.status){var r=Z(n.memoryInitializerRequestURL);if(!r)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+e.status+", retrying "+z),void ae();t=r.buffer}re(t)};n.memoryInitializerRequest.response?setTimeout(oe,0):n.memoryInitializerRequest.addEventListener("load",oe)}else ae()}function le(e){function t(){J||(J=!0,d||(w(T),w(C),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),L.unshift(e);var e;w(L)}()))}e=e||i,j>0||(!function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),S.unshift(e);var e;w(S)}(),j>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function ue(e){throw n.onAbort&&n.onAbort(e),l(e+=""),u(e),d=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(F=function e(){J||le(),J||(F=e)},n.run=le,n.abort=ue,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return le(),e}("object"==typeof r?r:{}),a="number",i={};[["sizeOfH3Index",a],["sizeOfGeoCoord",a],["sizeOfGeoBoundary",a],["sizeOfGeoPolygon",a],["sizeOfGeofence",a],["sizeOfLinkedGeoPolygon",a],["sizeOfCoordIJ",a],["h3IsValid","number",["number","number"]],["geoToH3","number",[a,a,"number"]],["h3ToGeo",null,["number","number",a]],["h3ToGeoBoundary",null,["number","number",a]],["maxKringSize",a,[a]],["kRing",null,["number","number",a,a]],["kRingDistances",null,["number","number",a,a,a]],["hexRing",null,["number","number",a,a]],["maxPolyfillSize",a,[a,"number"]],["polyfill",null,[a,"number",a]],["h3SetToLinkedGeo",null,[a,a,a]],["destroyLinkedPolygon",null,[a]],["compact",a,[a,a,a]],["uncompact",a,[a,a,a,a,"number"]],["maxUncompactSize",a,[a,a,"number"]],["h3IsPentagon","number",["number","number"]],["h3IsResClassIII","number",["number","number"]],["h3GetBaseCell",a,["number","number"]],["maxFaceCount",a,["number","number"]],["h3GetFaces",null,["number","number",a]],["h3ToParent","number",["number","number","number"]],["h3ToChildren",null,["number","number","number",a]],["h3ToCenterChild","number",["number","number","number"]],["maxH3ToChildrenSize",a,["number","number","number"]],["h3IndexesAreNeighbors","number",["number","number","number","number"]],["getH3UnidirectionalEdge","number",["number","number","number","number"]],["getOriginH3IndexFromUnidirectionalEdge","number",["number","number"]],["getDestinationH3IndexFromUnidirectionalEdge","number",["number","number"]],["h3UnidirectionalEdgeIsValid","number",["number","number"]],["getH3IndexesFromUnidirectionalEdge",null,["number","number",a]],["getH3UnidirectionalEdgesFromHexagon",null,["number","number",a]],["getH3UnidirectionalEdgeBoundary",null,["number","number",a]],["h3Distance",a,["number","number","number","number"]],["h3Line",a,["number","number","number","number",a]],["h3LineSize",a,["number","number","number","number"]],["experimentalH3ToLocalIj",a,["number","number","number","number",a]],["experimentalLocalIjToH3",a,["number","number",a,a]],["hexAreaM2",a,["number"]],["hexAreaKm2",a,["number"]],["edgeLengthM",a,["number"]],["edgeLengthKm",a,["number"]],["pointDistM",a,[a,a]],["pointDistKm",a,[a,a]],["pointDistRads",a,[a,a]],["cellAreaM2",a,["number","number"]],["cellAreaKm2",a,["number","number"]],["cellAreaRads2",a,["number","number"]],["exactEdgeLengthM",a,["number","number"]],["exactEdgeLengthKm",a,["number","number"]],["exactEdgeLengthRads",a,["number","number"]],["numHexagons",a,["number"]],["getRes0Indexes",null,[a]],["res0IndexCount",a],["getPentagonIndexes",null,[a,a]],["pentagonIndexCount",a]].forEach((function(e){i[e[0]]=r.cwrap.apply(r,e)}));var o=i.sizeOfH3Index(),l=i.sizeOfGeoCoord(),u=i.sizeOfGeoBoundary(),s=i.sizeOfGeoPolygon(),c=i.sizeOfGeofence(),d=i.sizeOfLinkedGeoPolygon(),f=i.sizeOfCoordIJ(),p={m:"m",m2:"m2",km:"km",km2:"km2",rads:"rads",rads2:"rads2"};function h(e){if("number"!=typeof e||e<0||e>15||Math.floor(e)!==e)throw new Error("Invalid resolution: "+e)}var m=/[^0-9a-fA-F]/;function g(e){if(Array.isArray(e)&&2===e.length&&Number.isInteger(e[0])&&Number.isInteger(e[1]))return e;if("string"!=typeof e||m.test(e))return[0,0];var t=parseInt(e.substring(0,e.length-8),16);return[parseInt(e.substring(e.length-8),16),t]}function v(e){if(e>=0)return e.toString(16);var t=b(8,(e&=2147483647).toString(16));return t=(parseInt(t[0],16)+8).toString(16)+t.substring(1)}function y(e,t){return v(t)+b(8,v(e))}function b(e,t){for(var n=e-t.length,r="",a=0;a=0&&n.push(i)}return n}(l,o);return r._free(l),u}function F(e){return"string"!=typeof e?-1:parseInt(e.charAt(1),16)}function N(e,t,n){var a=r._malloc(l);r.HEAPF64.set([e,t].map(ve),a/8);var o=O(i.geoToH3(a,n));return r._free(a),o}function B(e){var t=r._malloc(l),n=g(e),a=n[0],o=n[1];i.h3ToGeo(a,o,t);var u=C(t);return r._free(t),u}function z(e,t){var n=r._malloc(u),a=g(e),o=a[0],l=a[1];i.h3ToGeoBoundary(o,l,n);var s=P(n,t,t);return r._free(n),s}function U(e,t){var n=g(e),r=n[0],a=n[1];return O(i.h3ToParent(r,a,t))}function V(e,t){if(!k(e))return[];var n=g(e),a=n[0],l=n[1],u=i.maxH3ToChildrenSize(a,l,t),s=r._calloc(u,o);i.h3ToChildren(a,l,t,s);var c=M(s,u);return r._free(s),c}function H(e,t){var n=g(e),r=n[0],a=n[1];return O(i.h3ToCenterChild(r,a,t))}function Y(e,t){var n=g(e),a=n[0],l=n[1],u=i.maxKringSize(t),s=r._calloc(u,o);i.kRing(a,l,t,s);var c=M(s,u);return r._free(s),c}function W(e,t){var n=g(e),a=n[0],l=n[1],u=i.maxKringSize(t),s=r._calloc(u,o),c=r._calloc(u,4);i.kRingDistances(a,l,t,s,c);for(var d=[],f=0;f0){n=r._calloc(a,c);for(var u=0;u-1}function l(e,t,n){for(var r=-1,a=e?e.length:0;++r-1},w.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},S.prototype.clear=function(){this.__data__={hash:new M,map:new(O||w),string:new M}},S.prototype.delete=function(e){return k(this,e).delete(e)},S.prototype.get=function(e){return k(this,e).get(e)},S.prototype.has=function(e){return k(this,e).has(e)},S.prototype.set=function(e,t){return k(this,e).set(e,t),this},T.prototype.add=T.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},T.prototype.has=function(e){return this.__data__.has(e)};var P=E&&1/c(new E([,-0]))[1]==1/0?function(e){return new E(e)}:function(){};function k(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function D(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return L(n)?n:void 0}function R(e,t){return e===t||e!=e&&t!=t}function j(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return e&&e.length?function(e,t,n){var r=-1,a=o,i=e.length,u=!0,d=[],f=d;if(n)u=!1,a=l;else if(i>=200){var p=t?null:P(e);if(p)return c(p);u=!1,a=s,f=new T}else f=t?[]:d;e:for(;++r=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},h}(r.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ACTION_PREFIX=void 0;var r="@@kepler.gl/";t.ACTION_PREFIX=r;var a={REGISTER_ENTRY:"".concat(r,"REGISTER_ENTRY"),DELETE_ENTRY:"".concat(r,"DELETE_ENTRY"),RENAME_ENTRY:"".concat(r,"RENAME_ENTRY"),ADD_DATA:"".concat(r,"ADD_DATA"),ADD_FILTER:"".concat(r,"ADD_FILTER"),ADD_LAYER:"".concat(r,"ADD_LAYER"),DUPLICATE_LAYER:"".concat(r,"DUPLICATE_LAYER"),INTERACTION_CONFIG_CHANGE:"".concat(r,"INTERACTION_CONFIG_CHANGE"),LAYER_CONFIG_CHANGE:"".concat(r,"LAYER_CONFIG_CHANGE"),LAYER_VISUAL_CHANNEL_CHANGE:"".concat(r,"LAYER_VISUAL_CHANNEL_CHANGE"),LAYER_TYPE_CHANGE:"".concat(r,"LAYER_TYPE_CHANGE"),LAYER_VIS_CONFIG_CHANGE:"".concat(r,"LAYER_VIS_CONFIG_CHANGE"),LAYER_TEXT_LABEL_CHANGE:"".concat(r,"LAYER_TEXT_LABEL_CHANGE"),LAYER_HOVER:"".concat(r,"LAYER_HOVER"),LAYER_CLICK:"".concat(r,"LAYER_CLICK"),MAP_CLICK:"".concat(r,"MAP_CLICK"),MOUSE_MOVE:"".concat(r,"MOUSE_MOVE"),REMOVE_FILTER:"".concat(r,"REMOVE_FILTER"),REMOVE_LAYER:"".concat(r,"REMOVE_LAYER"),REMOVE_DATASET:"".concat(r,"REMOVE_DATASET"),REORDER_LAYER:"".concat(r,"REORDER_LAYER"),SET_FILTER:"".concat(r,"SET_FILTER"),SET_FILTER_ANIMATION_TIME:"".concat(r,"SET_FILTER_ANIMATION_TIME"),SET_FILTER_ANIMATION_TIME_CONFIG:"".concat(r,"SET_FILTER_ANIMATION_TIME_CONFIG"),SET_FILTER_ANIMATION_WINDOW:"".concat(r,"SET_FILTER_ANIMATION_WINDOW"),SHOW_DATASET_TABLE:"".concat(r,"SHOW_DATASET_TABLE"),UPDATE_LAYER_BLENDING:"".concat(r,"UPDATE_LAYER_BLENDING"),UPDATE_VIS_DATA:"".concat(r,"UPDATE_VIS_DATA"),RENAME_DATASET:"".concat(r,"RENAME_DATASET"),TOGGLE_FILTER_ANIMATION:"".concat(r,"TOGGLE_FILTER_ANIMATION"),UPDATE_FILTER_ANIMATION_SPEED:"".concat(r,"UPDATE_FILTER_ANIMATION_SPEED"),PLAY_ANIMATION:"".concat(r,"PLAY_ANIMATION"),SET_LAYER_ANIMATION_TIME:"".concat(r,"SET_LAYER_ANIMATION_TIME"),SET_LAYER_ANIMATION_TIME_CONFIG:"".concat(r,"SET_LAYER_ANIMATION_TIME_CONFIG"),UPDATE_ANIMATION_SPEED:"".concat(r,"UPDATE_ANIMATION_SPEED"),UPDATE_LAYER_ANIMATION_SPEED:"".concat(r,"UPDATE_LAYER_ANIMATION_SPEED"),TOGGLE_LAYER_ANIMATION:"".concat(r,"TOGGLE_LAYER_ANIMATION"),TOGGLE_LAYER_ANIMATION_CONTROL:"".concat(r,"TOGGLE_LAYER_ANIMATION_CONTROL"),TOGGLE_LAYER_CONFIG_ACTIVE:"".concat(r,"TOGGLE_LAYER_CONFIG_ACTIVE"),ENLARGE_FILTER:"".concat(r,"ENLARGE_FILTER"),TOGGLE_FILTER_FEATURE:"".concat(r,"TOGGLE_FILTER_FEATURE"),TOGGLE_LAYER_FOR_MAP:"".concat(r,"TOGGLE_LAYER_FOR_MAP"),SET_FILTER_PLOT:"".concat(r,"SET_FILTER_PLOT"),LOAD_FILES:"".concat(r,"LOAD_FILES"),LOAD_NEXT_FILE:"".concat(r,"LOAD_NEXT_FILE"),LOAD_FILE_STEP_SUCCESS:"".concat(r,"LOAD_FILE_STEP_SUCCESS"),LOAD_FILES_ERR:"".concat(r,"LOAD_FILES_ERR"),LOAD_FILES_SUCCESS:"".concat(r,"LOAD_FILES_SUCCESS"),LAYER_COLOR_UI_CHANGE:"".concat(r,"LAYER_COLOR_UI_CHANGE"),TOGGLE_FEATURE_LAYER:"".concat(r,"TOGGLE_FEATURE_LAYER"),APPLY_CPU_FILTER:"".concat(r,"APPLY_CPU_FILTER"),SET_MAP_INFO:"".concat(r,"SET_MAP_INFO"),SORT_TABLE_COLUMN:"".concat(r,"SORT_TABLE_COLUMN"),PIN_TABLE_COLUMN:"".concat(r,"PIN_TABLE_COLUMN"),COPY_TABLE_COLUMN:"".concat(r,"COPY_TABLE_COLUMN"),NEXT_FILE_BATCH:"".concat(r,"NEXT_FILE_BATCH"),PROCESS_FILE_CONTENT:"".concat(r,"PROCESS_FILE_CONTENT"),UPDATE_MAP:"".concat(r,"UPDATE_MAP"),FIT_BOUNDS:"".concat(r,"FIT_BOUNDS"),TOGGLE_PERSPECTIVE:"".concat(r,"TOGGLE_PERSPECTIVE"),TOGGLE_SPLIT_MAP:"".concat(r,"TOGGLE_SPLIT_MAP"),TOGGLE_FULLSCREEN:"".concat(r,"TOGGLE_FULLSCREEN"),MAP_CONFIG_CHANGE:"".concat(r,"MAP_CONFIG_CHANGE"),SET_DEFAULT_MAP_STYLE:"".concat(r,"SET_DEFAULT_MAP_STYLE"),MAP_STYLE_CHANGE:"".concat(r,"MAP_STYLE_CHANGE"),LOAD_MAP_STYLES:"".concat(r,"LOAD_MAP_STYLES"),LOAD_MAP_STYLE_ERR:"".concat(r,"LOAD_MAP_STYLE_ERR"),INPUT_MAP_STYLE:"".concat(r,"INPUT_MAP_STYLE"),LOAD_CUSTOM_MAP_STYLE:"".concat(r,"LOAD_CUSTOM_MAP_STYLE"),ADD_CUSTOM_MAP_STYLE:"".concat(r,"ADD_CUSTOM_MAP_STYLE"),REQUEST_MAP_STYLES:"".concat(r,"REQUEST_MAP_STYLES"),SET_3D_BUILDING_COLOR:"".concat(r,"SET_3D_BUILDING_COLOR"),TOGGLE_SIDE_PANEL:"".concat(r,"TOGGLE_SIDE_PANEL"),TOGGLE_MODAL:"".concat(r,"TOGGLE_MODAL"),SHOW_EXPORT_DROPDOWN:"".concat(r,"SHOW_EXPORT_DROPDOWN"),HIDE_EXPORT_DROPDOWN:"".concat(r,"HIDE_EXPORT_DROPDOWN"),OPEN_DELETE_MODAL:"".concat(r,"OPEN_DELETE_MODAL"),TOGGLE_MAP_CONTROL:"".concat(r,"TOGGLE_MAP_CONTROL"),SET_MAP_CONTROL_VISIBILITY:"".concat(r,"SET_MAP_CONTROL_VISIBILITY"),ADD_NOTIFICATION:"".concat(r,"ADD_NOTIFICATION"),REMOVE_NOTIFICATION:"".concat(r,"REMOVE_NOTIFICATION"),SET_LOCALE:"".concat(r,"SET_LOCALE"),SET_EXPORT_IMAGE_SETTING:"".concat(r,"SET_EXPORT_IMAGE_SETTING"),START_EXPORTING_IMAGE:"".concat(r,"START_EXPORTING_IMAGE"),SET_EXPORT_IMAGE_DATA_URI:"".concat(r,"SET_EXPORT_IMAGE_DATA_URI"),SET_EXPORT_IMAGE_ERROR:"".concat(r,"SET_EXPORT_IMAGE_ERROR"),CLEANUP_EXPORT_IMAGE:"".concat(r,"CLEANUP_EXPORT_IMAGE"),SET_EXPORT_SELECTED_DATASET:"".concat(r,"SET_EXPORT_SELECTED_DATASET"),SET_EXPORT_DATA_TYPE:"".concat(r,"SET_EXPORT_DATA_TYPE"),SET_EXPORT_FILTERED:"".concat(r,"SET_EXPORT_FILTERED"),SET_EXPORT_DATA:"".concat(r,"SET_EXPORT_DATA"),SET_EXPORT_MAP_FORMAT:"".concat(r,"SET_EXPORT_MAP_FORMAT"),SET_USER_MAPBOX_ACCESS_TOKEN:"".concat(r,"SET_USER_MAPBOX_ACCESS_TOKEN"),SET_EXPORT_MAP_HTML_MODE:"".concat(r,"SET_EXPORT_MAP_HTML_MODE"),SET_EDITOR_MODE:"".concat(r,"SET_EDITOR_MODE"),SET_SELECTED_FEATURE:"".concat(r,"SET_SELECTED_FEATURE"),INIT:"".concat(r,"INIT"),ADD_DATA_TO_MAP:"".concat(r,"ADD_DATA_TO_MAP"),RECEIVE_MAP_CONFIG:"".concat(r,"RECEIVE_MAP_CONFIG"),RESET_MAP_CONFIG:"".concat(r,"RESET_MAP_CONFIG"),SET_FEATURES:"".concat(r,"SET_FEATURES"),SET_POLYGON_FILTER_LAYER:"".concat(r,"SET_POLYGON_FILTER_LAYER"),DELETE_FEATURE:"".concat(r,"DELETE_FEATURE"),TOGGLE_EDITOR_VISIBILITY:"".concat(r,"TOGGLE_EDITOR_VISIBILITY"),START_SAVE_STORAGE:"".concat(r,"START_SAVE_STORAGE")};t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"arc",(function(){return r.a})),n.d(t,"area",(function(){return a.a})),n.d(t,"line",(function(){return i.a})),n.d(t,"pie",(function(){return o.a})),n.d(t,"areaRadial",(function(){return p})),n.d(t,"radialArea",(function(){return p})),n.d(t,"lineRadial",(function(){return f})),n.d(t,"radialLine",(function(){return f})),n.d(t,"pointRadial",(function(){return h.a})),n.d(t,"linkHorizontal",(function(){return m.a})),n.d(t,"linkVertical",(function(){return m.c})),n.d(t,"linkRadial",(function(){return m.b})),n.d(t,"symbol",(function(){return I})),n.d(t,"symbols",(function(){return j})),n.d(t,"symbolCircle",(function(){return y})),n.d(t,"symbolCross",(function(){return b})),n.d(t,"symbolDiamond",(function(){return O})),n.d(t,"symbolSquare",(function(){return S})),n.d(t,"symbolStar",(function(){return w})),n.d(t,"symbolTriangle",(function(){return C})),n.d(t,"symbolWye",(function(){return D})),n.d(t,"curveBasisClosed",(function(){return V})),n.d(t,"curveBasisOpen",(function(){return Y})),n.d(t,"curveBasis",(function(){return z})),n.d(t,"curveBundle",(function(){return G})),n.d(t,"curveCardinalClosed",(function(){return J})),n.d(t,"curveCardinalOpen",(function(){return $})),n.d(t,"curveCardinal",(function(){return Z})),n.d(t,"curveCatmullRomClosed",(function(){return ae})),n.d(t,"curveCatmullRomOpen",(function(){return oe})),n.d(t,"curveCatmullRom",(function(){return ne})),n.d(t,"curveLinearClosed",(function(){return ue})),n.d(t,"curveLinear",(function(){return l.a})),n.d(t,"curveMonotoneX",(function(){return ge})),n.d(t,"curveMonotoneY",(function(){return ve})),n.d(t,"curveNatural",(function(){return Ae})),n.d(t,"curveStep",(function(){return Oe})),n.d(t,"curveStepAfter",(function(){return xe})),n.d(t,"curveStepBefore",(function(){return Ee})),n.d(t,"stack",(function(){return Ce})),n.d(t,"stackOffsetExpand",(function(){return Le})),n.d(t,"stackOffsetDiverging",(function(){return Pe})),n.d(t,"stackOffsetNone",(function(){return we})),n.d(t,"stackOffsetSilhouette",(function(){return ke})),n.d(t,"stackOffsetWiggle",(function(){return De})),n.d(t,"stackOrderAppearance",(function(){return Re})),n.d(t,"stackOrderAscending",(function(){return Ie})),n.d(t,"stackOrderDescending",(function(){return Ne})),n.d(t,"stackOrderInsideOut",(function(){return Be})),n.d(t,"stackOrderNone",(function(){return Se})),n.d(t,"stackOrderReverse",(function(){return ze}));var r=n(862),a=n(443),i=n(294),o=n(1203),l=n(222),u=c(l.a);function s(e){this._curve=e}function c(e){function t(t){return new s(e(t))}return t._curve=e,t}function d(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(c(e)):t()._curve},e}s.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var f=function(){return d(Object(i.a)().curve(u))},p=function(){var e=Object(a.a)().curve(u),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return d(n())},delete e.lineX0,e.lineEndAngle=function(){return d(r())},delete e.lineX1,e.lineInnerRadius=function(){return d(i())},delete e.lineY0,e.lineOuterRadius=function(){return d(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(c(e)):t()._curve},e},h=n(259),m=n(384),g=n(485),v=n(34),y={draw:function(e,t){var n=Math.sqrt(t/v.j);e.moveTo(n,0),e.arc(0,0,n,0,v.m)}},b={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},A=Math.sqrt(1/3),_=2*A,O={draw:function(e,t){var n=Math.sqrt(t/_),r=n*A;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},E=Math.sin(v.j/10)/Math.sin(7*v.j/10),x=Math.sin(v.m/10)*E,M=-Math.cos(v.m/10)*E,w={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=x*n,a=M*n;e.moveTo(0,-n),e.lineTo(r,a);for(var i=1;i<5;++i){var o=v.m*i/5,l=Math.cos(o),u=Math.sin(o);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*a,u*r+l*a)}e.closePath()}},S={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},T=Math.sqrt(3),C={draw:function(e,t){var n=-Math.sqrt(t/(3*T));e.moveTo(0,2*n),e.lineTo(-T*n,-n),e.lineTo(T*n,-n),e.closePath()}},L=Math.sqrt(3)/2,P=1/Math.sqrt(12),k=3*(P/2+1),D={draw:function(e,t){var n=Math.sqrt(t/k),r=n/2,a=n*P,i=r,o=n*P+n,l=-i,u=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(-.5*r-L*a,L*r+-.5*a),e.lineTo(-.5*i-L*o,L*i+-.5*o),e.lineTo(-.5*l-L*u,L*l+-.5*u),e.lineTo(-.5*r+L*a,-.5*a-L*r),e.lineTo(-.5*i+L*o,-.5*o-L*i),e.lineTo(-.5*l+L*u,-.5*u-L*l),e.closePath()}},R=n(65),j=[y,b,O,S,w,C,D],I=function(){var e=Object(R.a)(y),t=Object(R.a)(64),n=null;function r(){var r;if(n||(n=r=Object(g.a)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Object(R.a)(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Object(R.a)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},F=function(){};function N(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function B(e){this._context=e}B.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:N(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:N(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var z=function(e){return new B(e)};function U(e){this._context=e}U.prototype={areaStart:F,areaEnd:F,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:N(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var V=function(e){return new U(e)};function H(e){this._context=e}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:N(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Y=function(e){return new H(e)};function W(e,t){this._basis=new B(e),this._beta=t}W.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,a=e[0],i=t[0],o=e[n]-a,l=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(a+r*o),this._beta*t[u]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var G=function e(t){function n(e){return 1===t?new B(e):new W(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function q(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function X(e,t){this._context=e,this._k=(1-t)/6}X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:q(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Z=function e(t){function n(e){return new X(e,t)}return n.tension=function(t){return e(+t)},n}(0);function K(e,t){this._context=e,this._k=(1-t)/6}K.prototype={areaStart:F,areaEnd:F,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var J=function e(t){function n(e){return new K(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Q(e,t){this._context=e,this._k=(1-t)/6}Q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $=function e(t){function n(e){return new Q(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ee(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>v.f){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>v.f){var s=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*s+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*s+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function te(e,t){this._context=e,this._alpha=t}te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ne=function e(t){function n(e){return t?new te(e,t):new X(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function re(e,t){this._context=e,this._alpha=t}re.prototype={areaStart:F,areaEnd:F,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ae=function e(t){function n(e){return t?new re(e,t):new K(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ie(e,t){this._context=e,this._alpha=t}ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=function e(t){function n(e){return t?new ie(e,t):new Q(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function le(e){this._context=e}le.prototype={areaStart:F,areaEnd:F,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var ue=function(e){return new le(e)};function se(e){return e<0?-1:1}function ce(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(se(i)+se(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function de(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fe(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function pe(e){this._context=e}function he(e){this._context=new me(e)}function me(e){this._context=e}function ge(e){return new pe(e)}function ve(e){return new he(e)}function ye(e){this._context=e}function be(e){var t,n,r=e.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Oe=function(e){return new _e(e,.5)};function Ee(e){return new _e(e,0)}function xe(e){return new _e(e,1)}var Me=n(356),we=function(e,t){if((a=e.length)>1)for(var n,r,a,i=1,o=e[t[0]],l=o.length;i=0;)n[t]=t;return n};function Te(e,t){return e[t]}var Ce=function(){var e=Object(R.a)([]),t=Se,n=we,r=Te;function a(a){var i,o,l=e.apply(this,arguments),u=a.length,s=l.length,c=new Array(s);for(i=0;i0){for(var n,r,a,i=0,o=e[0].length;i0)for(var n,r,a,i,o,l,u=0,s=e[t[0]].length;u0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):(r[0]=0,r[1]=a)},ke=function(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],i=a.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,i=0,o=1;oi&&(i=t,r=n);return r}var Ie=function(e){var t=e.map(Fe);return Se(e).sort((function(e,n){return t[e]-t[n]}))};function Fe(e){for(var t,n=0,r=-1,a=e.length;++r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=r,o={index:-1,data:e,target:[]};return e?"function"==typeof e[Symbol.iterator]?i=e:e.length>0&&(a.length=e.length,i=a):i=r,(t>0||Number.isFinite(n))&&(i=(Array.isArray(i)?i:Array.from(i)).slice(t,n),o.index=t-1),{iterable:i,objectInfo:o}}function o(e){return e&&e[Symbol.asyncIterator]}function l(e,t){var n=t.size,r=t.stride,a=t.offset,i=t.startIndices,o=t.nested,l=e.BYTES_PER_ELEMENT,u=r?r/l:n,s=a?a/l:0,c=Math.floor((e.length-s)/u);return function(t,r){var a=r.index,l=r.target;if(!i){for(var d=a*u+s,f=0;f0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(this,e),this.id=t.id||(0,_.generateHashId)(6),this.meta={},this.visConfigSettings={},this.config=this.getDefaultLayerConfig(w({columns:this.getLayerColumns()},t))}return(0,u.default)(e,[{key:"layerIcon",get:function(){return m.default}},{key:"overlayType",get:function(){return k.deckgl}},{key:"type",get:function(){return null}},{key:"name",get:function(){return this.type}},{key:"isAggregated",get:function(){return!1}},{key:"requiredLayerColumns",get:function(){return[]}},{key:"optionalColumns",get:function(){return[]}},{key:"noneLayerDataAffectingProps",get:function(){return["label","opacity","thickness","isVisible","hidden"]}},{key:"visualChannels",get:function(){return{color:{property:"color",field:"colorField",scale:"colorScale",domain:"colorDomain",range:"colorRange",key:"color",channelScaleType:v.CHANNEL_SCALES.color,nullValue:v.NO_VALUE_COLOR,defaultValue:function(e){return e.color}},size:{property:"size",field:"sizeField",scale:"sizeScale",domain:"sizeDomain",range:"sizeRange",key:"size",channelScaleType:v.CHANNEL_SCALES.size,nullValue:0,defaultValue:1}}}},{key:"columnPairs",get:function(){return null}},{key:"defaultPointColumnPairs",get:function(){return{lat:{pair:"lng",fieldPairKey:"lat"},lng:{pair:"lat",fieldPairKey:"lng"}}}},{key:"defaultLinkColumnPairs",get:function(){return{lat0:{pair:"lng0",fieldPairKey:"lat"},lng0:{pair:"lat0",fieldPairKey:"lng"},lat1:{pair:"lng1",fieldPairKey:"lat"},lng1:{pair:"lat1",fieldPairKey:"lng"}}}},{key:"layerInfoModal",get:function(){return null}},{key:"getDefaultLayerConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dataId:e.dataId||null,label:e.label||A.DEFAULT_LAYER_LABEL,color:e.color||j.next().value,columns:e.columns||null,isVisible:e.isVisible||!1,isConfigActive:e.isConfigActive||!1,highlightColor:e.highlightColor||A.DEFAULT_HIGHLIGHT_COLOR,hidden:e.hidden||!1,colorField:null,colorDomain:[0,1],colorScale:v.SCALE_TYPES.quantile,sizeDomain:[0,1],sizeScale:v.SCALE_TYPES.linear,sizeField:null,visConfig:{},textLabel:[A.DEFAULT_TEXT_LABEL],colorUI:{color:A.DEFAULT_COLOR_UI,colorRange:A.DEFAULT_COLOR_UI},animation:{enabled:!1}}}},{key:"getVisualChannelDescription",value:function(e){return{label:this.visConfigSettings[this.visualChannels[e].range].label,measure:this.config[this.visualChannels[e].field]?this.config[this.visualChannels[e].field].displayName||this.config[this.visualChannels[e].field].name:this.visualChannels[e].defaultMeasure}}},{key:"assignColumn",value:function(e,t){var n=t?{value:t.name,fieldIdx:t.fieldIdx}:{value:null,fieldIdx:-1};return w(w({},this.config.columns),{},(0,o.default)({},e,w(w({},this.config.columns[e]),n)))}},{key:"assignColumnPairs",value:function(e,t){var n,r,a,i;if(!this.columnPairs||null===(n=this.columnPairs)||void 0===n||!n[e])return this.config.columns;var l=null===(r=this.columnPairs)||void 0===r?void 0:r[e],u=l.pair,s=l.fieldPairKey,c=(null===(a=this.columnPairs)||void 0===a?void 0:a[u]).fieldPairKey;return w(w({},this.config.columns),{},(i={},(0,o.default)(i,e,t[s]),(0,o.default)(i,u,t[c]),i))}},{key:"getZoomFactor",value:function(e){var t=e.zoom,n=e.zoomOffset,r=void 0===n?0:n;return Math.pow(2,Math.max(14-t+r,0))}},{key:"getElevationZoomFactor",value:function(e){var t=e.zoom,n=e.zoomOffset,r=void 0===n?0:n;return this.config.visConfig.enableElevationZoomFactor?Math.pow(2,Math.max(8-t+r,0)):1}},{key:"formatLayerData",value:function(e,t){return{}}},{key:"renderLayer",value:function(){return[]}},{key:"getHoverData",value:function(e,t){return e?t.row(e.index):null}},{key:"assignConfigToLayer",value:function(e,t){var n=this,r=["colorRange","strokeColorRange"].concat(Object.values(this.visualChannels).map((function(e){return e.field}))),a=["animation"].concat(Object.values(this.visualChannels).map((function(e){return e.domain})));Object.values(this.visualChannels).forEach((function(r){e.visConfig[r.range]&&n.visConfigSettings[r.range]&&t[r.range].group!==n.visConfigSettings[r.range].group&&a.push(r.range)}));var i=this.config,o=this.copyLayerConfig(i,e,{shallowCopy:r,notToCopy:a});this.updateLayerConfig(o),Object.keys(this.visualChannels).forEach((function(e){n.validateVisualChannel(e)}))}},{key:"copyLayerConfig",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.shallowCopy,i=void 0===a?[]:a,o=r.notToCopy,l=void 0===o?[]:o,u={};return Object.keys(e).forEach((function(r){(0,_.isPlainObject)(e[r])&&(0,_.isPlainObject)(t[r])&&!i.includes(r)&&!l.includes(r)?u[r]=n.copyLayerConfig(e[r],t[r],{shallowCopy:i,notToCopy:l}):(0,O.notNullorUndefined)(t[r])&&!l.includes(r)?u[r]=t[r]:u[r]=e[r]})),u}},{key:"registerVisConfig",value:function(e){var t=this;Object.keys(e).forEach((function(n){"string"==typeof n&&A.LAYER_VIS_CONFIGS[e[n]]?(t.config.visConfig[n]=A.LAYER_VIS_CONFIGS[e[n]].defaultValue,t.visConfigSettings[n]=A.LAYER_VIS_CONFIGS[e[n]]):["type","defaultValue"].every((function(t){return e[n].hasOwnProperty(t)}))&&(t.config.visConfig[n]=e[n].defaultValue,t.visConfigSettings[n]=e[n])}))}},{key:"getLayerColumns",value:function(){var e=this.columnValidators||{},t=this.requiredLayerColumns.reduce((function(t,n){return w(w({},t),{},(0,o.default)({},n,e[n]?{value:null,fieldIdx:-1,validator:e[n]}:{value:null,fieldIdx:-1}))}),{}),n=this.optionalColumns.reduce((function(e,t){return w(w({},e),{},(0,o.default)({},t,{value:null,fieldIdx:-1,optional:!0}))}),{});return w(w({},t),n)}},{key:"updateLayerConfig",value:function(e){return this.config=w(w({},this.config),e),this}},{key:"updateLayerVisConfig",value:function(e){return this.config.visConfig=w(w({},this.config.visConfig),e),this}},{key:"updateLayerColorUI",value:function(e,t){var n=this.config,r=n.colorUI,a=n.visConfig;if(!(0,_.isPlainObject)(t)||"string"!=typeof e)return this;var l=Object.entries(t).reduce((function(e,t){var n=(0,i.default)(t,2),r=n[0],a=n[1];return w(w({},e),{},(0,o.default)({},r,(0,_.isPlainObject)(e[r])&&(0,_.isPlainObject)(a)?w(w({},e[r]),a):a))}),r[e]||A.DEFAULT_COLOR_UI),u=w(w({},r),{},(0,o.default)({},e,l));return this.updateLayerConfig({colorUI:u}),a[e]&&a[e].colors&&(this.updateColorUIByColorRange(t,e),this.updateColorRangeByColorUI(t,r,e),this.updateCustomPalette(t,r,e)),this}},{key:"updateCustomPalette",value:function(e,t,n){if(e.colorRangeConfig&&e.colorRangeConfig.custom){var r=this.config,i=r.colorUI,l=r.visConfig;if(l[n]){var u=l[n].colors,s=w(w({},i[n].customPalette),{},{name:"Custom Palette",colors:(0,a.default)(u)});this.updateLayerConfig({colorUI:w(w({},i),{},(0,o.default)({},n,w(w({},i[n]),{},{customPalette:s})))})}}}},{key:"updateColorUIByColorRange",value:function(e,t){if("number"==typeof e.showDropdown){var n=this.config,r=n.colorUI,a=n.visConfig;this.updateLayerConfig({colorUI:w(w({},r),{},(0,o.default)({},t,w(w({},r[t]),{},{colorRangeConfig:w(w({},r[t].colorRangeConfig),{},{steps:a[t].colors.length,reversed:Boolean(a[t].reversed)})})))})}}},{key:"updateColorRangeByColorUI",value:function(e,t,n){if(e.colorRangeConfig&&["reversed","steps"].some((function(r){return e.colorRangeConfig.hasOwnProperty(r)&&e.colorRangeConfig[r]!==(t[n]||A.DEFAULT_COLOR_UI).colorRangeConfig[r]}))){var r,a=this.config,i=a.colorUI,l=a.visConfig,u=i[n].colorRangeConfig,s=u.steps,c=u.reversed,d=l[n];if(e.colorRangeConfig.hasOwnProperty("steps")){var f=(0,x.getColorGroupByName)(d);if(f)(r=y.COLOR_RANGES.filter((function(e){return(0,x.getColorGroupByName)(e)===f})).find((function(e){return e.colors.length===s})))&&d.reversed&&(r=(0,x.reverseColorRange)(!0,r))}e.colorRangeConfig.hasOwnProperty("reversed")&&(r=(0,x.reverseColorRange)(c,r||d)),r&&this.updateLayerVisConfig((0,o.default)({},n,r))}}},{key:"hasAllColumns",value:function(){var e=this.config.columns;return e&&Object.values(e).every((function(e){return Boolean(e.optional||e.value&&e.fieldIdx>-1)}))}},{key:"hasLayerData",value:function(e){return!!e&&Boolean(e.data&&e.data.length)}},{key:"isValidToSave",value:function(){return this.type&&this.hasAllColumns()}},{key:"shouldRenderLayer",value:function(e){return this.type&&this.hasAllColumns()&&this.hasLayerData(e)&&"function"==typeof this.renderLayer}},{key:"getColorScale",value:function(e,t,n){if(Array.isArray(n.colorMap)){var r=new Map;return n.colorMap.forEach((function(e){var t=(0,i.default)(e,2),n=t[0],a=t[1];r.set(n,"string"==typeof a?(0,x.hexToRgb)(a):a)})),v.SCALE_FUNC[v.SCALE_TYPES.ordinal]().domain(r.keys()).range(r.values()).unknown(r.get(A.UNKNOWN_COLOR_KEY)||v.NO_VALUE_COLOR)}return this.getVisChannelScale(e,t,n.colors.map(x.hexToRgb))}},{key:"getAttributeAccessors",value:function(e){var t=this,n=e.dataAccessor,r=void 0===n?L:n,a=e.dataContainer,i={};return Object.keys(this.visualChannels).forEach((function(e){var n=t.visualChannels[e],o=n.field,l=n.fixed,u=n.scale,s=n.domain,d=n.range,f=n.accessor,p=n.defaultValue,h=n.getAttributeValue,m=n.nullValue,g=n.channelScaleType;if(t.config[o]){var y=[t.config[u],t.config[s],t.config.visConfig[d]],b=l&&t.config.visConfig[l],A=g===v.CHANNEL_SCALES.color?t.getColorScale.apply(t,y):t.getVisChannelScale.apply(t,y.concat([b]));i[f]=function(e){return t.getEncodedChannelValue(A,r(a)(e),t.config[o],m)}}else i[f]="function"==typeof h?h(t.config):"function"==typeof p?p(t.config):p;i[f]||c.console.warn("Failed to provide accessor function for ".concat(f||e))})),i}},{key:"getVisChannelScale",value:function(e,t,n,r){return v.SCALE_FUNC[r?"linear":e]().domain(t).range(r?t:n)}},{key:"getPointsBounds",value:function(e,t){var n=(e.numRows()>5e3?(0,E.getSampleData)(e,5e3):e).mapIndex(t),r=(0,O.getLatLngBounds)(n,1,[-90,90]),a=(0,O.getLatLngBounds)(n,0,[-180,180]);return r&&a?[a[0],r[0],a[1],r[1]]:null}},{key:"getChangedTriggers",value:function(e){var t=(0,g.diffUpdateTriggers)(e,this._oldDataUpdateTriggers);return this._oldDataUpdateTriggers=e,t}},{key:"getEncodedChannelValue",value:function(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v.NO_VALUE_COLOR,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:P,o=n.type,l=i(n,t);return(0,O.notNullorUndefined)(l)?(r=o===v.ALL_FIELD_TYPES.timestamp?e(new Date(l)):e(l),(0,O.notNullorUndefined)(r)||(r=a),r):a}},{key:"updateMeta",value:function(e){this.meta=w(w({},this.meta),e)}},{key:"getDataUpdateTriggers",value:function(e){var t=e.filteredIndex,n=e.id,r=e.allData,a=this.config.columns;return w({getData:{datasetId:n,allData:r,columns:a,filteredIndex:t},getMeta:{datasetId:n,allData:r,columns:a}},(this.config.textLabel||[]).reduce((function(e,t,n){return w(w({},e),{},(0,o.default)({},"getLabelCharacterSet-".concat(n),t.field?t.field.name:null))}),{}))}},{key:"updateData",value:function(e,t){if(!this.config.dataId)return{};var n=e[this.config.dataId],r=n.dataContainer,a=this.getPositionAccessor(r),i=this.getDataUpdateTriggers(n),o=this.getChangedTriggers(i);o.getMeta&&this.updateLayerMeta(r,a);return{data:!o.getData&&t&&t.data?t.data:this.calculateDataAttribute(n,a),triggerChanged:o}}},{key:"updateLayerDomain",value:function(e,t){var n=this,r=this.getDataset(e);return r?(Object.values(this.visualChannels).forEach((function(e){var a=e.scale,i=n.config[a];if(!t||i!==v.SCALE_TYPES.ordinal){var l=e.domain,u=n.calculateLayerDomain(r,e);n.updateLayerConfig((0,o.default)({},l,u))}})),this):this}},{key:"getDataset",value:function(e){return this.config.dataId?e[this.config.dataId]:null}},{key:"validateVisualChannel",value:function(e){this.validateFieldType(e),this.validateScale(e)}},{key:"validateFieldType",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.channelScaleType,a=t.supportedFieldTypes;this.config[n]&&((a||v.CHANNEL_SCALE_SUPPORTED_FIELDS[r]).includes(this.config[n].type)||this.updateLayerConfig((0,o.default)({},n,null)))}},{key:"validateScale",value:function(e){var t=this.visualChannels[e].scale;if(t){var n=this.getScaleOptions(e);n.includes(this.config[t])||this.updateLayerConfig((0,o.default)({},t,n[0]))}}},{key:"getScaleOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.scale,a=t.channelScaleType;return this.config[n]?v.FIELD_OPTS[this.config[n].type].scale[a]:[this.getDefaultLayerConfig()[r]]}},{key:"updateLayerVisualChannel",value:function(e,t){var n=this.visualChannels[t];this.validateVisualChannel(t);var r=this.calculateLayerDomain(e,n);this.updateLayerConfig((0,o.default)({},n.domain,r))}},{key:"getVisualChannelUpdateTriggers",value:function(){var e=this,t={};return Object.values(this.visualChannels).forEach((function(n){var r,a=n.accessor,i=n.field,l=n.scale,u=n.domain,s=n.range,c=n.defaultValue,d=n.fixed;t[a]=w((r={},(0,o.default)(r,i,e.config[i]),(0,o.default)(r,l,e.config[l]),(0,o.default)(r,u,e.config[u]),(0,o.default)(r,s,e.config.visConfig[s]),(0,o.default)(r,"defaultValue","function"==typeof c?c(e.config):c),r),d?(0,o.default)({},d,e.config.visConfig[d]):{})})),t}},{key:"calculateLayerDomain",value:function(e,t){var n=t.scale,r=this.config[n],a=this.config[t.field];return a&&e.getColumnLayerDomain(a,r)||T}},{key:"hasHoveredObject",value:function(e){return this.isLayerHovered(e)&&e.object?e.object:null}},{key:"isLayerHovered",value:function(e){var t,n;return(null==e?void 0:e.picked)&&(null==e||null===(t=e.layer)||void 0===t||null===(n=t.props)||void 0===n?void 0:n.id)===this.id}},{key:"getRadiusScaleByZoom",value:function(e,t){var n=Object.values(this.visualChannels).find((function(e){return"radius"===e.property}));if(!n)return 1;var r=n.field,a=void 0===t?this.config.visConfig.fixedRadius:t,i=this.config.visConfig.radius;return a?1:(this.config[r]?1:i)*this.getZoomFactor(e)}},{key:"shouldCalculateLayerData",value:function(e){var t=this;return e.some((function(e){return!t.noneLayerDataAffectingProps.includes(e)}))}},{key:"getBrushingExtensionProps",value:function(e,t){var n=e.brush;return{autoHighlight:!n.enabled,brushingRadius:1e3*n.config.size,brushingTarget:t||"source",brushingEnabled:n.enabled}}},{key:"getDefaultDeckLayerProps",value:function(e){var t=e.idx,n=e.gpuFilter,r=e.mapState,a=e.visible;return{id:this.id,idx:t,coordinateSystem:p.COORDINATE_SYSTEM.LNGLAT,pickable:!0,wrapLongitude:!0,parameters:{depthTest:Boolean(r.dragRotate||this.config.visConfig.enable3d)},hidden:this.config.hidden,opacity:this.config.visConfig.opacity,highlightColor:this.config.highlightColor,extensions:[C],filterRange:n?n.filterRange:void 0,visible:this.config.isVisible&&a}}},{key:"getDefaultHoverLayerProps",value:function(){return{id:"".concat(this.id,"-hovered"),pickable:!1,wrapLongitude:!0,coordinateSystem:p.COORDINATE_SYSTEM.LNGLAT}}},{key:"renderTextLabelLayer",value:function(e,t){var n=this,r=e.getPosition,a=e.getPixelOffset,i=e.updateTriggers,o=e.sharedProps,l=t.data,u=t.mapState,s=this.config.textLabel;return l.textLabels.reduce((function(e,t,c){var d,f;t.getText&&e.push(new h.TextLayer(w(w({},o),{},{id:"".concat(n.id,"-label-").concat(null===(d=s[c].field)||void 0===d?void 0:d.name),data:l.data,getText:t.getText,getPosition:r,characterSet:t.characterSet,getPixelOffset:a(s[c]),getSize:1,sizeScale:s[c].size,getTextAnchor:s[c].anchor,getAlignmentBaseline:s[c].alignment,getColor:s[c].color,parameters:{depthTest:!1},getFilterValue:l.getFilterValue,updateTriggers:w(w({},i),{},{getText:null===(f=s[c].field)||void 0===f?void 0:f.name,getPixelOffset:w(w({},i.getRadius),{},{mapState:u,anchor:s[c].anchor,alignment:s[c].alignment}),getTextAnchor:s[c].anchor,getAlignmentBaseline:s[c].alignment,getColor:s[c].color})})));return e}),[])}},{key:"calculateDataAttribute",value:function(e,t){return[]}},{key:"updateLayerMeta",value:function(e,t){}},{key:"getPositionAccessor",value:function(e){return function(){return null}}}],[{key:"findDefaultLayerProps",value:function(e,t){return{props:[],foundLayers:t}}},{key:"findDefaultColumnField",value:function(e,t){var n=Object.keys(e).reduce((function(n,r){var a=t.filter((function(t){return t.name===e[r]||e[r].includes(t.name)}));return n[r]=a.length?a.map((function(e){return{value:e.name,fieldIdx:e.fieldIdx}})):null,n}),{});return Object.values(n).every(Boolean)?this.getAllPossibleColumnParis(n):null}},{key:"getAllPossibleColumnParis",value:function(e){for(var t=Object.keys(e),n=t.map((function(e,n){return n===t.length-1?-1:0})),r=t.map((function(t){return e[t].length})),a=[];o(n,r,n.length-1);){var i=n.reduce((function(n,r,a){return n[t[a]]=e[t[a]][r],n}),{});a.push(i)}function o(e,t,n){return(0!==n||e[0]!==t[0]-1)&&(e[n]+10&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(this,e),this.id=t.id||(0,_.generateHashId)(6),this.meta={},this.visConfigSettings={},this.config=this.getDefaultLayerConfig(w({columns:this.getLayerColumns()},t))}return(0,u.default)(e,[{key:"layerIcon",get:function(){return m.default}},{key:"overlayType",get:function(){return k.deckgl}},{key:"type",get:function(){return null}},{key:"name",get:function(){return this.type}},{key:"isAggregated",get:function(){return!1}},{key:"requiredLayerColumns",get:function(){return[]}},{key:"optionalColumns",get:function(){return[]}},{key:"noneLayerDataAffectingProps",get:function(){return["label","opacity","thickness","isVisible","hidden"]}},{key:"visualChannels",get:function(){return{color:{property:"color",field:"colorField",scale:"colorScale",domain:"colorDomain",range:"colorRange",key:"color",channelScaleType:v.CHANNEL_SCALES.color,nullValue:v.NO_VALUE_COLOR,defaultValue:function(e){return e.color}},size:{property:"size",field:"sizeField",scale:"sizeScale",domain:"sizeDomain",range:"sizeRange",key:"size",channelScaleType:v.CHANNEL_SCALES.size,nullValue:0,defaultValue:1}}}},{key:"columnPairs",get:function(){return null}},{key:"defaultPointColumnPairs",get:function(){return{lat:{pair:"lng",fieldPairKey:"lat"},lng:{pair:"lat",fieldPairKey:"lng"}}}},{key:"defaultLinkColumnPairs",get:function(){return{lat0:{pair:"lng0",fieldPairKey:"lat"},lng0:{pair:"lat0",fieldPairKey:"lng"},lat1:{pair:"lng1",fieldPairKey:"lat"},lng1:{pair:"lat1",fieldPairKey:"lng"}}}},{key:"layerInfoModal",get:function(){return null}},{key:"getDefaultLayerConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dataId:e.dataId||null,label:e.label||A.DEFAULT_LAYER_LABEL,color:e.color||j.next().value,columns:e.columns||null,isVisible:e.isVisible||!1,isConfigActive:e.isConfigActive||!1,highlightColor:e.highlightColor||A.DEFAULT_HIGHLIGHT_COLOR,hidden:e.hidden||!1,colorField:null,colorDomain:[0,1],colorScale:v.SCALE_TYPES.quantile,sizeDomain:[0,1],sizeScale:v.SCALE_TYPES.linear,sizeField:null,visConfig:{},textLabel:[A.DEFAULT_TEXT_LABEL],colorUI:{color:A.DEFAULT_COLOR_UI,colorRange:A.DEFAULT_COLOR_UI},animation:{enabled:!1}}}},{key:"getVisualChannelDescription",value:function(e){return{label:this.visConfigSettings[this.visualChannels[e].range].label,measure:this.config[this.visualChannels[e].field]?this.config[this.visualChannels[e].field].displayName||this.config[this.visualChannels[e].field].name:this.visualChannels[e].defaultMeasure}}},{key:"assignColumn",value:function(e,t){var n=t?{value:t.name,fieldIdx:t.fieldIdx}:{value:null,fieldIdx:-1};return w(w({},this.config.columns),{},(0,o.default)({},e,w(w({},this.config.columns[e]),n)))}},{key:"assignColumnPairs",value:function(e,t){var n,r,a,i;if(!this.columnPairs||null===(n=this.columnPairs)||void 0===n||!n[e])return this.config.columns;var l=null===(r=this.columnPairs)||void 0===r?void 0:r[e],u=l.pair,s=l.fieldPairKey,c=(null===(a=this.columnPairs)||void 0===a?void 0:a[u]).fieldPairKey;return w(w({},this.config.columns),{},(i={},(0,o.default)(i,e,t[s]),(0,o.default)(i,u,t[c]),i))}},{key:"getZoomFactor",value:function(e){var t=e.zoom,n=e.zoomOffset,r=void 0===n?0:n;return Math.pow(2,Math.max(14-t+r,0))}},{key:"getElevationZoomFactor",value:function(e){var t=e.zoom,n=e.zoomOffset,r=void 0===n?0:n;return this.config.visConfig.enableElevationZoomFactor?Math.pow(2,Math.max(8-t+r,0)):1}},{key:"formatLayerData",value:function(e,t){return{}}},{key:"renderLayer",value:function(){return[]}},{key:"getHoverData",value:function(e,t){return e?t.row(e.index):null}},{key:"assignConfigToLayer",value:function(e,t){var n=this,r=["colorRange","strokeColorRange"].concat(Object.values(this.visualChannels).map((function(e){return e.field}))),a=["animation"].concat(Object.values(this.visualChannels).map((function(e){return e.domain})));Object.values(this.visualChannels).forEach((function(r){e.visConfig[r.range]&&n.visConfigSettings[r.range]&&t[r.range].group!==n.visConfigSettings[r.range].group&&a.push(r.range)}));var i=this.config,o=this.copyLayerConfig(i,e,{shallowCopy:r,notToCopy:a});this.updateLayerConfig(o),Object.keys(this.visualChannels).forEach((function(e){n.validateVisualChannel(e)}))}},{key:"copyLayerConfig",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.shallowCopy,i=void 0===a?[]:a,o=r.notToCopy,l=void 0===o?[]:o,u={};return Object.keys(e).forEach((function(r){(0,_.isPlainObject)(e[r])&&(0,_.isPlainObject)(t[r])&&!i.includes(r)&&!l.includes(r)?u[r]=n.copyLayerConfig(e[r],t[r],{shallowCopy:i,notToCopy:l}):(0,O.notNullorUndefined)(t[r])&&!l.includes(r)?u[r]=t[r]:u[r]=e[r]})),u}},{key:"registerVisConfig",value:function(e){var t=this;Object.keys(e).forEach((function(n){"string"==typeof n&&A.LAYER_VIS_CONFIGS[e[n]]?(t.config.visConfig[n]=A.LAYER_VIS_CONFIGS[e[n]].defaultValue,t.visConfigSettings[n]=A.LAYER_VIS_CONFIGS[e[n]]):["type","defaultValue"].every((function(t){return e[n].hasOwnProperty(t)}))&&(t.config.visConfig[n]=e[n].defaultValue,t.visConfigSettings[n]=e[n])}))}},{key:"getLayerColumns",value:function(){var e=this.columnValidators||{},t=this.requiredLayerColumns.reduce((function(t,n){return w(w({},t),{},(0,o.default)({},n,e[n]?{value:null,fieldIdx:-1,validator:e[n]}:{value:null,fieldIdx:-1}))}),{}),n=this.optionalColumns.reduce((function(e,t){return w(w({},e),{},(0,o.default)({},t,{value:null,fieldIdx:-1,optional:!0}))}),{});return w(w({},t),n)}},{key:"updateLayerConfig",value:function(e){return this.config=w(w({},this.config),e),this}},{key:"updateLayerVisConfig",value:function(e){return this.config.visConfig=w(w({},this.config.visConfig),e),this}},{key:"updateLayerColorUI",value:function(e,t){var n=this.config,r=n.colorUI,a=n.visConfig;if(!(0,_.isPlainObject)(t)||"string"!=typeof e)return this;var l=Object.entries(t).reduce((function(e,t){var n=(0,i.default)(t,2),r=n[0],a=n[1];return w(w({},e),{},(0,o.default)({},r,(0,_.isPlainObject)(e[r])&&(0,_.isPlainObject)(a)?w(w({},e[r]),a):a))}),r[e]||A.DEFAULT_COLOR_UI),u=w(w({},r),{},(0,o.default)({},e,l));return this.updateLayerConfig({colorUI:u}),a[e]&&a[e].colors&&(this.updateColorUIByColorRange(t,e),this.updateColorRangeByColorUI(t,r,e),this.updateCustomPalette(t,r,e)),this}},{key:"updateCustomPalette",value:function(e,t,n){if(e.colorRangeConfig&&e.colorRangeConfig.custom){var r=this.config,i=r.colorUI,l=r.visConfig;if(l[n]){var u=l[n].colors,s=w(w({},i[n].customPalette),{},{name:"Custom Palette",colors:(0,a.default)(u)});this.updateLayerConfig({colorUI:w(w({},i),{},(0,o.default)({},n,w(w({},i[n]),{},{customPalette:s})))})}}}},{key:"updateColorUIByColorRange",value:function(e,t){if("number"==typeof e.showDropdown){var n=this.config,r=n.colorUI,a=n.visConfig;this.updateLayerConfig({colorUI:w(w({},r),{},(0,o.default)({},t,w(w({},r[t]),{},{colorRangeConfig:w(w({},r[t].colorRangeConfig),{},{steps:a[t].colors.length,reversed:Boolean(a[t].reversed)})})))})}}},{key:"updateColorRangeByColorUI",value:function(e,t,n){if(e.colorRangeConfig&&["reversed","steps"].some((function(r){return e.colorRangeConfig.hasOwnProperty(r)&&e.colorRangeConfig[r]!==(t[n]||A.DEFAULT_COLOR_UI).colorRangeConfig[r]}))){var r,a=this.config,i=a.colorUI,l=a.visConfig,u=i[n].colorRangeConfig,s=u.steps,c=u.reversed,d=l[n];if(e.colorRangeConfig.hasOwnProperty("steps")){var f=(0,x.getColorGroupByName)(d);if(f)(r=y.COLOR_RANGES.filter((function(e){return(0,x.getColorGroupByName)(e)===f})).find((function(e){return e.colors.length===s})))&&d.reversed&&(r=(0,x.reverseColorRange)(!0,r))}e.colorRangeConfig.hasOwnProperty("reversed")&&(r=(0,x.reverseColorRange)(c,r||d)),r&&this.updateLayerVisConfig((0,o.default)({},n,r))}}},{key:"hasAllColumns",value:function(){var e=this.config.columns;return e&&Object.values(e).every((function(e){return Boolean(e.optional||e.value&&e.fieldIdx>-1)}))}},{key:"hasLayerData",value:function(e){return!!e&&Boolean(e.data&&e.data.length)}},{key:"isValidToSave",value:function(){return this.type&&this.hasAllColumns()}},{key:"shouldRenderLayer",value:function(e){return this.type&&this.hasAllColumns()&&this.hasLayerData(e)&&"function"==typeof this.renderLayer}},{key:"getColorScale",value:function(e,t,n){if(Array.isArray(n.colorMap)){var r=new Map;return n.colorMap.forEach((function(e){var t=(0,i.default)(e,2),n=t[0],a=t[1];r.set(n,"string"==typeof a?(0,x.hexToRgb)(a):a)})),v.SCALE_FUNC[v.SCALE_TYPES.ordinal]().domain(r.keys()).range(r.values()).unknown(r.get(A.UNKNOWN_COLOR_KEY)||v.NO_VALUE_COLOR)}return this.getVisChannelScale(e,t,n.colors.map(x.hexToRgb))}},{key:"getAttributeAccessors",value:function(e){var t=this,n=e.dataAccessor,r=void 0===n?L:n,a=e.dataContainer,i={};return Object.keys(this.visualChannels).forEach((function(e){var n=t.visualChannels[e],o=n.field,l=n.fixed,u=n.scale,s=n.domain,d=n.range,f=n.accessor,p=n.defaultValue,h=n.getAttributeValue,m=n.nullValue,g=n.channelScaleType;if(t.config[o]){var y=[t.config[u],t.config[s],t.config.visConfig[d]],b=l&&t.config.visConfig[l],A=g===v.CHANNEL_SCALES.color?t.getColorScale.apply(t,y):t.getVisChannelScale.apply(t,y.concat([b]));i[f]=function(e){return t.getEncodedChannelValue(A,r(a)(e),t.config[o],m)}}else i[f]="function"==typeof h?h(t.config):"function"==typeof p?p(t.config):p;i[f]||c.console.warn("Failed to provide accessor function for ".concat(f||e))})),i}},{key:"getVisChannelScale",value:function(e,t,n,r){return v.SCALE_FUNC[r?"linear":e]().domain(t).range(r?t:n)}},{key:"getPointsBounds",value:function(e,t){var n=(e.numRows()>5e3?(0,E.getSampleData)(e,5e3):e).mapIndex(t),r=(0,O.getLatLngBounds)(n,1,[-90,90]),a=(0,O.getLatLngBounds)(n,0,[-180,180]);return r&&a?[a[0],r[0],a[1],r[1]]:null}},{key:"getChangedTriggers",value:function(e){var t=(0,g.diffUpdateTriggers)(e,this._oldDataUpdateTriggers);return this._oldDataUpdateTriggers=e,t}},{key:"getEncodedChannelValue",value:function(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v.NO_VALUE_COLOR,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:P,o=n.type,l=i(n,t);return(0,O.notNullorUndefined)(l)?(r=o===v.ALL_FIELD_TYPES.timestamp?e(new Date(l)):e(l),(0,O.notNullorUndefined)(r)||(r=a),r):a}},{key:"updateMeta",value:function(e){this.meta=w(w({},this.meta),e)}},{key:"getDataUpdateTriggers",value:function(e){var t=e.filteredIndex,n=e.id,r=e.allData,a=this.config.columns;return w({getData:{datasetId:n,allData:r,columns:a,filteredIndex:t},getMeta:{datasetId:n,allData:r,columns:a}},(this.config.textLabel||[]).reduce((function(e,t,n){return w(w({},e),{},(0,o.default)({},"getLabelCharacterSet-".concat(n),t.field?t.field.name:null))}),{}))}},{key:"updateData",value:function(e,t){if(!this.config.dataId)return{};var n=e[this.config.dataId],r=n.dataContainer,a=this.getPositionAccessor(r),i=this.getDataUpdateTriggers(n),o=this.getChangedTriggers(i);o.getMeta&&this.updateLayerMeta(r,a);return{data:!o.getData&&t&&t.data?t.data:this.calculateDataAttribute(n,a),triggerChanged:o}}},{key:"updateLayerDomain",value:function(e,t){var n=this,r=this.getDataset(e);return r?(Object.values(this.visualChannels).forEach((function(e){var a=e.scale,i=n.config[a];if(!t||i!==v.SCALE_TYPES.ordinal){var l=e.domain,u=n.calculateLayerDomain(r,e);n.updateLayerConfig((0,o.default)({},l,u))}})),this):this}},{key:"getDataset",value:function(e){return this.config.dataId?e[this.config.dataId]:null}},{key:"validateVisualChannel",value:function(e){this.validateFieldType(e),this.validateScale(e)}},{key:"validateFieldType",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.channelScaleType,a=t.supportedFieldTypes;this.config[n]&&((a||v.CHANNEL_SCALE_SUPPORTED_FIELDS[r]).includes(this.config[n].type)||this.updateLayerConfig((0,o.default)({},n,null)))}},{key:"validateScale",value:function(e){var t=this.visualChannels[e].scale;if(t){var n=this.getScaleOptions(e);n.includes(this.config[t])||this.updateLayerConfig((0,o.default)({},t,n[0]))}}},{key:"getScaleOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.scale,a=t.channelScaleType;return this.config[n]?v.FIELD_OPTS[this.config[n].type].scale[a]:[this.getDefaultLayerConfig()[r]]}},{key:"updateLayerVisualChannel",value:function(e,t){var n=this.visualChannels[t];this.validateVisualChannel(t);var r=this.calculateLayerDomain(e,n);this.updateLayerConfig((0,o.default)({},n.domain,r))}},{key:"getVisualChannelUpdateTriggers",value:function(){var e=this,t={};return Object.values(this.visualChannels).forEach((function(n){var r,a=n.accessor,i=n.field,l=n.scale,u=n.domain,s=n.range,c=n.defaultValue,d=n.fixed;t[a]=w((r={},(0,o.default)(r,i,e.config[i]),(0,o.default)(r,l,e.config[l]),(0,o.default)(r,u,e.config[u]),(0,o.default)(r,s,e.config.visConfig[s]),(0,o.default)(r,"defaultValue","function"==typeof c?c(e.config):c),r),d?(0,o.default)({},d,e.config.visConfig[d]):{})})),t}},{key:"calculateLayerDomain",value:function(e,t){var n=t.scale,r=this.config[n],a=this.config[t.field];return a&&e.getColumnLayerDomain(a,r)||T}},{key:"hasHoveredObject",value:function(e){return this.isLayerHovered(e)&&e.object?e.object:null}},{key:"isLayerHovered",value:function(e){var t,n;return(null==e?void 0:e.picked)&&(null==e||null===(t=e.layer)||void 0===t||null===(n=t.props)||void 0===n?void 0:n.id)===this.id}},{key:"getRadiusScaleByZoom",value:function(e,t){var n=Object.values(this.visualChannels).find((function(e){return"radius"===e.property}));if(!n)return 1;var r=n.field,a=void 0===t?this.config.visConfig.fixedRadius:t,i=this.config.visConfig.radius;return a?1:(this.config[r]?1:i)*this.getZoomFactor(e)}},{key:"shouldCalculateLayerData",value:function(e){var t=this;return e.some((function(e){return!t.noneLayerDataAffectingProps.includes(e)}))}},{key:"getBrushingExtensionProps",value:function(e,t){var n=e.brush;return{autoHighlight:!n.enabled,brushingRadius:1e3*n.config.size,brushingTarget:t||"source",brushingEnabled:n.enabled}}},{key:"getDefaultDeckLayerProps",value:function(e){var t=e.idx,n=e.gpuFilter,r=e.mapState,a=e.visible;return{id:this.id,idx:t,coordinateSystem:p.COORDINATE_SYSTEM.LNGLAT,pickable:!0,wrapLongitude:!0,parameters:{depthTest:Boolean(r.dragRotate||this.config.visConfig.enable3d)},hidden:this.config.hidden,opacity:this.config.visConfig.opacity,highlightColor:this.config.highlightColor,extensions:[C],filterRange:n?n.filterRange:void 0,visible:this.config.isVisible&&a}}},{key:"getDefaultHoverLayerProps",value:function(){return{id:"".concat(this.id,"-hovered"),pickable:!1,wrapLongitude:!0,coordinateSystem:p.COORDINATE_SYSTEM.LNGLAT}}},{key:"renderTextLabelLayer",value:function(e,t){var n=this,r=e.getPosition,a=e.getPixelOffset,i=e.updateTriggers,o=e.sharedProps,l=t.data,u=t.mapState,s=this.config.textLabel;return l.textLabels.reduce((function(e,t,c){var d,f;t.getText&&e.push(new h.TextLayer(w(w({},o),{},{id:"".concat(n.id,"-label-").concat(null===(d=s[c].field)||void 0===d?void 0:d.name),data:l.data,getText:t.getText,getPosition:r,characterSet:t.characterSet,getPixelOffset:a(s[c]),getSize:1,sizeScale:s[c].size,getTextAnchor:s[c].anchor,getAlignmentBaseline:s[c].alignment,getColor:s[c].color,parameters:{depthTest:!1},getFilterValue:l.getFilterValue,updateTriggers:w(w({},i),{},{getText:null===(f=s[c].field)||void 0===f?void 0:f.name,getPixelOffset:w(w({},i.getRadius),{},{mapState:u,anchor:s[c].anchor,alignment:s[c].alignment}),getTextAnchor:s[c].anchor,getAlignmentBaseline:s[c].alignment,getColor:s[c].color})})));return e}),[])}},{key:"calculateDataAttribute",value:function(e,t){return[]}},{key:"updateLayerMeta",value:function(e,t){}},{key:"getPositionAccessor",value:function(e){return function(){return null}}}],[{key:"findDefaultLayerProps",value:function(e,t){return{props:[],foundLayers:t}}},{key:"findDefaultColumnField",value:function(e,t){var n=Object.keys(e).reduce((function(n,r){var a=t.filter((function(t){return t.name===e[r]||e[r].includes(t.name)}));return n[r]=a.length?a.map((function(e){return{value:e.name,fieldIdx:e.fieldIdx}})):null,n}),{});return Object.values(n).every(Boolean)?this.getAllPossibleColumnParis(n):null}},{key:"getAllPossibleColumnParis",value:function(e){for(var t=Object.keys(e),n=t.map((function(e,n){return n===t.length-1?-1:0})),r=t.map((function(t){return e[t].length})),a=[];o(n,r,n.length-1);){var i=n.reduce((function(n,r,a){return n[t[a]]=e[t[a]][r],n}),{});a.push(i)}function o(e,t,n){return(0!==n||e[0]!==t[0]-1)&&(e[n]+1=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n=a)&&(n=a)}return n}function A(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}var _=n(302);function O(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}var E=n(351);function x(e,t,n){if(r=(e=Float64Array.from(Object(E.b)(e,n))).length){if((t=+t)<=0||r<2)return A(e);if(t>=1)return b(e);var r,a=(r-1)*t,i=Math.floor(a),o=b(function e(t,n,r=0,a=t.length-1,i=_.a){for(;a>r;){if(a-r>600){const o=a-r+1,l=n-r+1,u=Math.log(o),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(o-s)/o)*(l-o/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-l*s/o+c)),Math.min(a,Math.floor(n+(o-l)*s/o+c)),i)}const o=t[n];let l=r,u=a;for(O(t,r,n),i(t[a],o)>0&&O(t,r,a);l0;)--u}0===i(t[r],o)?O(t,r,u):(++u,O(t,u,a)),u<=n&&(r=u+1),n<=u&&(a=u-1)}return t}(e,i).subarray(0,i+1));return o+(A(e.subarray(i+1))-o)*(a-i)}}function M(e,t,n=E.a){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e);return o+(+n(e[i+1],i+1,e)-o)*(a-i)}}var w=n(1926);function S(){var e,t=[],n=[],r=[];function a(){var e=0,a=Math.max(1,n.length);for(r=new Array(a-1);++e0?r[a-1]:t[0],a=r?[i[r-1],n]:[i[a-1],i[a]]},l.unknown=function(t){return arguments.length?(e=t,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return T().domain([t,n]).range(o).unknown(e)},s.b.apply(Object(a.b)(l),arguments)}function C(){var e,t=[.5],n=[0,1],r=1;function a(a){return a<=a?n[Object(w.a)(t,a,0,r)]:e}return a.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),a):t.slice()},a.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),a):n.slice()},a.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},a.unknown=function(t){return arguments.length?(e=t,a):e},a.copy=function(){return C().domain(t).range(n).unknown(e)},s.b.apply(a,arguments)}var L=n(452),P=n(1198),k=n(1230),D=n(1927);function R(){var e,t,n,r,a,i=0,o=1,l=u.c,s=!1;function c(t){return isNaN(t=+t)?a:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function d(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),c):[l(0),l(1)]}}return c.domain=function(a){return arguments.length?([i,o]=a,e=r(i=+i),t=r(o=+o),n=e===t?0:1/(t-e),c):[i,o]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=d(k.a),c.rangeRound=d(D.a),c.unknown=function(e){return arguments.length?(a=e,c):a},function(a){return r=a,e=a(i),t=a(o),n=e===t?0:1/(t-e),c}}function j(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function I(){var e=Object(a.b)(R()(u.c));return e.copy=function(){return j(e,I())},s.a.apply(e,arguments)}function F(){var e=Object(l.b)(R()).domain([1,10]);return e.copy=function(){return j(e,F()).base(e.base())},s.a.apply(e,arguments)}function N(){var e=f(R());return e.copy=function(){return j(e,N()).constant(e.constant())},s.a.apply(e,arguments)}function B(){var e=Object(m.b)(R());return e.copy=function(){return j(e,B()).exponent(e.exponent())},s.a.apply(e,arguments)}function z(){return B.apply(null,arguments).exponent(.5)}function U(){var e=[],t=u.c;function n(n){if(!isNaN(n=+n))return t((Object(w.a)(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(_.a),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>x(e,r/t))},n.copy=function(){return U(t).domain(e)},s.a.apply(n,arguments)}function V(e,t){void 0===t&&(t=e,e=k.a);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({},u,e)).responseType=e.responseType||e.dataType,e}(t),e.startsWith("data:"),t.nothrow||Object(l.a)(!1),null}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=Object(a.b)(e),!i.c&&o.readFileSync?o.readFileSync(e,t):s(e,t)}var d=n(363);function f(e,t,n){return e=Object(a.b)(e),!i.c&&d.writeFile?d.writeFile(e,t,n):Object(l.a)(!1)}function p(e,t,n){return e=Object(a.b)(e),!i.c&&d.writeFileSync?d.writeFileSync(e,t,n):Object(l.a)(!1)}var h=n(122);function m(e){Object(h.d)(e)}var g=n(289),v=n(300),y=n(197),b=n(128),A=n(227),_=n(226),O=n(165);function E(e,t,n,r){Object(l.a)(!r||"string"!=typeof r,"parseSync no longer accepts final url"),Array.isArray(t)||Object(b.a)(t)||(r=n,n=t,t=null),n=n||{};var a=Object(_.b)(t,r),i=Object(y.b)(e,a,n);if(!i)return null;n=Object(h.c)(n,i,a);var o=Object(O.b)(e).url;return function(e,t,n,r){if(t=Object(A.b)(t,e),e.parseTextSync&&"string"==typeof t)return e.parseTextSync(t,n,r,e);if(e.parseSync)return e.parseSync(t,n,r,e);throw new Error("".concat(e.name," loader: 'parseSync' not supported by this loader, use 'parse' instead. ").concat(r.url||""))}(i,e,n,r=Object(_.a)({url:o,parseSync:E,loaders:t},n))}var x=n(13),M=n.n(x),w=n(21),S=n(107),T=n(69),C=n(103);function L(e,t){var n={},r=!1;function a(n,a){return r=!0,a=new Promise((function(t){t(e[n](a))})),{done:!1,value:t(a)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return r?(r=!1,e):a("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return a("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return r?(r=!1,e):a("return",e)}),n}var P=n(435),k=n(826);function D(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==s[2]?s[2]:function(){},a=s.length>3&&void 0!==s[3]?s[3]:function(){},e.next=4,t;case 4:if((t=e.sent).ok){e.next=7;break}return e.abrupt("return",t);case 7:if(i=t.body){e.next=10;break}return e.abrupt("return",t);case 10:if(o=t.headers.get("content-length"),l=o&&parseInt(o,10),o>0){e.next=14;break}return e.abrupt("return",t);case 14:if("undefined"!=typeof ReadableStream&&i.getReader){e.next=16;break}return e.abrupt("return",t);case 16:return u=new ReadableStream({start:function(e){de(e,i.getReader(),0,l,n,r,a)}}),e.abrupt("return",new Response(u));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e,t,n,r,a,i,o){return fe.apply(this,arguments)}function fe(){return(fe=Object(w.a)(M.a.mark((function e(t,n,r,a,i,o,l){var u,s,c,d;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.read();case 3:if(u=e.sent,s=u.done,c=u.value,!s){e.next=10;break}return o(),t.close(),e.abrupt("return");case 10:return r+=c.byteLength,d=Math.round(r/a*100),i(d,{loadedBytes:r,totalBytes:a}),t.enqueue(c),e.next=16,de(t,n,r,a,i,o,l);case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),t.error(e.t0),l(e.t0);case 22:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)}var pe=n(11),he=n(12),me=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(pe.a)(this,e),this._fetch=n.fetch||fetch,this.files={};for(var r=0;r1&&void 0!==i[1]?i[1]:{},!t.includes("://")){e.next=4;break}return r=n.fetch||this._fetch,e.abrupt("return",r(t,n));case 4:if(!this.files[t]){e.next=9;break}return a=new Response(this.files[t]),Object.defineProperty(a,"url",{value:t}),e.abrupt("return",a);case 9:return e.abrupt("return",new Response(t,{status:400,statusText:"NOT FOUND"}));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"readdir",value:(o=Object(w.a)(M.a.mark((function e(){var t,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n in t=[],this.files)t.push(n);return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"stat",value:(i=Object(w.a)(M.a.mark((function e(t,n){var r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.files[t]){e.next=3;break}throw new Error("No such file: ".concat(t));case 3:return e.abrupt("return",{size:r.size});case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"unlink",value:(a=Object(w.a)(M.a.mark((function e(t){return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.files[t];case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"open",value:(r=Object(w.a)(M.a.mark((function e(t){return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.files[t]);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"read",value:(n=Object(w.a)(M.a.mark((function e(t,n){var r,a,i,o,l,u,s,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.buffer,a=void 0===r?null:r,n.offset,i=n.length,o=void 0===i?a.byteLength:i,l=n.position,u=void 0===l?null:l,s=t,e.next=4,ge(s,u,u+o);case 4:return c=e.sent,e.abrupt("return",c);case 6:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"close",value:(t=Object(w.a)(M.a.mark((function e(t){return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}();function ge(e,t,n){return ve.apply(this,arguments)}function ve(){return(ve=Object(w.a)(M.a.mark((function e(t,n,r){var a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.slice(n,r),e.next=3,new Promise((function(e,t){var n=new FileReader;n.onload=function(t){return e(t.target&&t.target.result)},n.onerror=function(e){return t(e)},n.readAsArrayBuffer(a)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ye=n(326),be=n(66)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(11),a=n(19),i=n(14),o=n(12),l=n(18),u=n(117),s=n(108),c=n(203),d=n(25),f=n(82),p=n(173),h=n(265),m=n(73),g=[9729,9728],v=f.global.WebGLBuffer||function(){},y=function(e){function t(e,n){var o;Object(r.a)(this,t);var l=n.id,u=void 0===l?Object(h.c)("texture"):l,s=n.handle,c=n.target;return(o=Object(a.a)(this,Object(i.a)(t).call(this,e,{id:u,handle:s}))).target=c,o.textureUnit=void 0,o.loaded=!1,o.width=void 0,o.height=void 0,o.depth=void 0,o.format=void 0,o.type=void 0,o.dataFormat=void 0,o.border=void 0,o.textureUnit=void 0,o.mipmaps=void 0,o}return Object(l.a)(t,e),Object(o.a)(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format,r=t.linearFiltering,a=!0;return n&&(a=(a=a&&Object(c.d)(e,n))&&(!r||Object(c.e)(e,n))),a}}]),Object(o.a)(t,[{key:"toString",value:function(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}},{key:"initialize",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data;if(n instanceof Promise)return n.then((function(n){return e.initialize(Object.assign({},t,{pixels:n,data:n}))})),this;var r=t.pixels,a=void 0===r?null:r,i=t.format,o=void 0===i?6408:i,l=t.border,u=void 0===l?0:l,s=t.recreate,c=void 0!==s&&s,f=t.parameters,p=void 0===f?{}:f,h=t.pixelStore,m=void 0===h?{}:h,g=t.textureUnit,v=void 0===g?void 0:g,y=t.mipmaps,b=void 0===y||y;n||(n=a);var A=t.width,_=t.height,O=t.dataFormat,E=t.type,x=t.depth,M=void 0===x?0:x,w=this._deduceParameters({format:o,type:E,dataFormat:O,compressed:!1,data:n,width:A,height:_});return A=w.width,_=w.height,O=w.dataFormat,E=w.type,this.width=A,this.height=_,this.depth=M,this.format=o,this.type=E,this.dataFormat=O,this.border=u,this.textureUnit=v,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),b&&this._isNPOT()&&(d.h.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),b=!1,this._updateForNPOT(p)),this.mipmaps=b,this.setImageData({data:n,width:A,height:_,depth:M,format:o,type:E,dataFormat:O,border:u,mipmaps:b,parameters:m}),b&&this.generateMipmap(),this.setParameters(p),c&&(this.data=n),this}},{key:"resize",value:function(e){var t=e.height,n=e.width,r=e.mipmaps,a=void 0!==r&&r;return n!==this.width||t!==this.height?this.initialize({width:n,height:t,format:this.format,type:this.type,dataFormat:this.dataFormat,border:this.border,mipmaps:a}):this}},{key:"generateMipmap",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(d.h.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),Object(d.l)(this.gl,t,(function(){e.gl.generateMipmap(e.target)})),this.gl.bindTexture(this.target,null),this)}},{key:"setImageData",value:function(e){this._trackDeallocatedMemory("Texture");var t=e.target,n=void 0===t?this.target:t,r=e.pixels,a=void 0===r?null:r,i=e.level,o=void 0===i?0:i,l=e.format,u=void 0===l?this.format:l,s=e.border,f=void 0===s?this.border:s,h=e.offset,g=void 0===h?0:h,v=e.parameters,y=void 0===v?{}:v,b=e.data,A=void 0===b?null:b,_=e.type,O=void 0===_?this.type:_,E=e.width,x=void 0===E?this.width:E,M=e.height,w=void 0===M?this.height:M,S=e.dataFormat,T=void 0===S?this.dataFormat:S,C=e.compressed,L=void 0!==C&&C;A||(A=a);var P=this._deduceParameters({format:u,type:O,dataFormat:T,compressed:L,data:A,width:x,height:w});O=P.type,T=P.dataFormat,L=P.compressed,x=P.width,w=P.height;var k=this.gl;k.bindTexture(this.target,this.handle);var D,R=this._getDataType({data:A,compressed:L});if(A=R.data,D=R.dataType,Object(d.l)(this.gl,y,(function(){switch(D){case"null":k.texImage2D(n,o,u,x,w,f,T,O,A);break;case"typed-array":k.texImage2D(n,o,u,x,w,f,T,O,A,g);break;case"buffer":Object(p.a)(k),k.bindBuffer(35052,A.handle||A),k.texImage2D(n,o,u,x,w,f,T,O,g),k.bindBuffer(35052,null);break;case"browser-object":Object(d.g)(k)?k.texImage2D(n,o,u,x,w,f,T,O,A):k.texImage2D(n,o,u,T,O,A);break;case"compressed":k.compressedTexImage2D(n,o,u,x,w,f,A);break;default:Object(m.a)(!1,"Unknown image data type")}})),A&&A.byteLength)this._trackAllocatedMemory(A.byteLength,"Texture");else{var j=c.a[this.dataFormat]||4,I=c.c[this.type]||1;this._trackAllocatedMemory(this.width*this.height*j*I,"Texture")}return this.loaded=!0,this}},{key:"setSubImageData",value:function(e){var t=this,n=e.target,r=void 0===n?this.target:n,a=e.pixels,i=void 0===a?null:a,o=e.data,l=void 0===o?null:o,u=e.x,c=void 0===u?0:u,f=e.y,h=void 0===f?0:f,g=e.width,y=void 0===g?this.width:g,b=e.height,A=void 0===b?this.height:b,_=e.level,O=void 0===_?0:_,E=e.format,x=void 0===E?this.format:E,M=e.type,w=void 0===M?this.type:M,S=e.dataFormat,T=void 0===S?this.dataFormat:S,C=e.compressed,L=void 0!==C&&C,P=e.offset,k=void 0===P?0:P,D=e.border,R=(void 0===D&&this.border,e.parameters),j=void 0===R?{}:R,I=this._deduceParameters({format:x,type:w,dataFormat:T,compressed:L,data:l,width:y,height:A});if(w=I.type,T=I.dataFormat,L=I.compressed,y=I.width,A=I.height,Object(m.a)(0===this.depth,"texSubImage not supported for 3D textures"),l||(l=i),l&&l.data){var F=l;l=F.data,y=F.shape[0],A=F.shape[1]}l instanceof s.a&&(l=l.handle),this.gl.bindTexture(this.target,this.handle),Object(d.l)(this.gl,j,(function(){L?t.gl.compressedTexSubImage2D(r,O,c,h,y,A,x,l):null===l?t.gl.texSubImage2D(r,O,c,h,y,A,T,w,null):ArrayBuffer.isView(l)?t.gl.texSubImage2D(r,O,c,h,y,A,T,w,l,k):l instanceof v?(Object(p.a)(t.gl),t.gl.bindBuffer(35052,l),t.gl.texSubImage2D(r,O,c,h,y,A,T,w,k),t.gl.bindBuffer(35052,null)):Object(d.g)(t.gl)?t.gl.texSubImage2D(r,O,c,h,y,A,T,w,l):t.gl.texSubImage2D(r,O,c,h,T,w,l)})),this.gl.bindTexture(this.target,null)}},{key:"copyFramebuffer",value:function(){return d.h.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}},{key:"getActiveUnit",value:function(){return this.gl.getParameter(34016)-33984}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit,t=this.gl;return void 0!==e&&(this.textureUnit=e,t.activeTexture(33984+e)),t.bindTexture(this.target,this.handle),e}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit,t=this.gl;return void 0!==e&&(this.textureUnit=e,t.activeTexture(33984+e)),t.bindTexture(this.target,null),e}},{key:"_getDataType",value:function(e){var t=e.data,n=e.compressed;return void 0!==n&&n?{data:t,dataType:"compressed"}:null===t?{data:t,dataType:"null"}:ArrayBuffer.isView(t)?{data:t,dataType:"typed-array"}:t instanceof s.a?{data:t.handle,dataType:"buffer"}:t instanceof v?{data:t,dataType:"buffer"}:{data:t,dataType:"browser-object"}}},{key:"_deduceParameters",value:function(e){var t=e.format,n=e.data,r=e.width,a=e.height,i=e.dataFormat,o=e.type,l=e.compressed,u=c.b[t];i=i||u&&u.dataFormat,o=o||u&&u.types[0],l=l||u&&u.compressed;var s=this._deduceImageSize(n,r,a);return{dataFormat:i,type:o,compressed:l,width:r=s.width,height:a=s.height,format:t,data:n}}},{key:"_deduceImageSize",value:function(e,t,n){var r;return r="undefined"!=typeof ImageData&&e instanceof ImageData?{width:e.width,height:e.height}:"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?{width:e.width,height:e.height}:"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e?{width:t,height:n}:{width:t>=0?t:1,height:n>=0?n:1},Object(m.a)(r,"Could not deduced texture size"),Object(m.a)(void 0===t||r.width===t,"Deduced texture width does not match supplied width"),Object(m.a)(void 0===n||r.height===n,"Deduced texture height does not match supplied height"),r}},{key:"_createHandle",value:function(){return this.gl.createTexture()}},{key:"_deleteHandle",value:function(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}},{key:"_getParameter",value:function(e){switch(e){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);var t=this.gl.getTexParameter(this.target,e);return this.gl.bindTexture(this.target,null),t}}},{key:"_setParameter",value:function(e,t){switch(this.gl.bindTexture(this.target,this.handle),t=this._getNPOTParam(e,t),e){case 33082:case 33083:this.gl.texParameterf(this.handle,e,t);break;case 4096:case 4097:Object(m.a)(!1);break;default:this.gl.texParameteri(this.target,e,t)}return this.gl.bindTexture(this.target,null),this}},{key:"_isNPOT",value:function(){return!Object(d.g)(this.gl)&&(!(!this.width||!this.height)&&(!Object(h.b)(this.width)||!Object(h.b)(this.height)))}},{key:"_updateForNPOT",value:function(e){void 0===e[this.gl.TEXTURE_MIN_FILTER]&&(e[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===e[this.gl.TEXTURE_WRAP_S]&&(e[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===e[this.gl.TEXTURE_WRAP_T]&&(e[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}},{key:"_getNPOTParam",value:function(e,t){if(this._isNPOT())switch(e){case 10241:-1===g.indexOf(t)&&(t=9729);break;case 10242:case 10243:33071!==t&&(t=33071)}return t}}]),t}(u.a)},function(e,t,n){"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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="undefined"!=typeof window?window:e,a=(void 0!==e||window,"undefined"!=typeof document?document:{})}).call(this,n(67))},function(e,t,n){"use strict";e.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=function(e){var t=u(e);if(!t)return[0,0,0];var n=parseInt(t[1],16),r=parseInt(t[2],16),a=parseInt(t[3],16);return[n,r,a]},t.isHexColor=u,t.rgbToHex=function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],a=t[2];return"#".concat([n,r,a].map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join("")).toUpperCase()},t.getColorGroupByName=function(e){if(!e||"string"!=typeof e.name)return null;return e.name.replace(/\b[^a-zA-Z]+$/,"")},t.reverseColorRange=function(e,t){return t?l(l({},t),{},{reversed:e,colors:t.colors.slice().reverse()}):null},t.createLinearGradient=function(e,t){var n=parseFloat((100/t.length).toFixed(2)),r=t.map((function(e,t){return"rgba(".concat(e.join(","),", 1) ").concat(n*t,"%, rgba(").concat(e.join(","),", 1) ").concat(n*(t+1),"%")}));return"linear-gradient(to ".concat(e,", ").concat(r.join(","),")")};var a=r(n(4)),i=r(n(55));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t-1},A.prototype.set=function(e,t){var n=this.__data__,r=O(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(v||A),string:new b}},_.prototype.delete=function(e){return x(this,e).delete(e)},_.prototype.get=function(e){return x(this,e).get(e)},_.prototype.has=function(e){return x(this,e).has(e)},_.prototype.set=function(e,t){return x(this,e).set(e,t),this},w.Cache=_,e.exports=w}).call(this,n(67))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=function(e){var t=u(e);if(!t)return[0,0,0];var n=parseInt(t[1],16),r=parseInt(t[2],16),a=parseInt(t[3],16);return[n,r,a]},t.isHexColor=u,t.rgbToHex=function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],a=t[2];return"#".concat([n,r,a].map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join("")).toUpperCase()},t.getColorGroupByName=function(e){if(!e||"string"!=typeof e.name)return null;return e.name.replace(/\b[^a-zA-Z]+$/,"")},t.reverseColorRange=function(e,t){return t?l(l({},t),{},{reversed:e,colors:t.colors.slice().reverse()}):null},t.createLinearGradient=function(e,t){var n=parseFloat((100/t.length).toFixed(2)),r=t.map((function(e,t){return"rgba(".concat(e.join(","),", 1) ").concat(n*t,"%, rgba(").concat(e.join(","),", 1) ").concat(n*(t+1),"%")}));return"linear-gradient(to ".concat(e,", ").concat(r.join(","),")")};var a=r(n(4)),i=r(n(55));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),this.ControllerState=t,this.props=Object.assign({},s,n),this.propsInTransition=null,this.transition=new o.a(n.timeline),this.onViewStateChange=n.onViewStateChange,this._onTransitionUpdate=this._onTransitionUpdate.bind(this)}return Object(a.a)(e,[{key:"finalize",value:function(){this.transition.cancel()}},{key:"getViewportInTransition",value:function(){return this.propsInTransition}},{key:"processViewStateChange",value:function(e){var t=!1,n=this.props;if(e=Object.assign({},s,e),this.props=e,this._shouldIgnoreViewportChange(n,e))return t;if(this._isTransitionEnabled(e)){var r=this.transition.settings,a=r.interruption,i=r.endProps,o=Object.assign({},n,a===u.SNAP_TO_END?i:this.propsInTransition||n);this._triggerTransition(o,e),t=!0}else this.transition.cancel();return t}},{key:"updateTransition",value:function(){this.transition.update()}},{key:"_isTransitionEnabled",value:function(e){var t=e.transitionDuration,n=e.transitionInterpolator;return(t>0||"auto"===t)&&Boolean(n)}},{key:"_isUpdateDueToCurrentTransition",value:function(e){return!!this.transition.inProgress&&this.transition.settings.interpolator.arePropsEqual(e,this.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(e,t){return this.transition.inProgress?this.transition.settings.interruption===u.IGNORE||this._isUpdateDueToCurrentTransition(t):!this._isTransitionEnabled(t)||t.transitionInterpolator.arePropsEqual(e,t)}},{key:"_triggerTransition",value:function(e,t){var n=new this.ControllerState(e),r=new this.ControllerState(t).shortestPathFrom(n),a=t.transitionInterpolator,i=a.getDuration?a.getDuration(e,t):t.transitionDuration;if(0!==i){var o=t.transitionInterpolator.initializeProps(e,r);this.propsInTransition={},this.duration=i,this.transition.start({duration:i,easing:t.transitionEasing,interpolator:t.transitionInterpolator,interruption:t.transitionInterruption,startProps:o.start,endProps:o.end,onStart:t.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(t.onTransitionInterrupt),onEnd:this._onTransitionEnd(t.onTransitionEnd)}),this.updateTransition()}}},{key:"_onTransitionEnd",value:function(e){var t=this;return function(n){t.propsInTransition=null,e(n)}}},{key:"_onTransitionUpdate",value:function(e){var t=e.time,n=e.settings,r=n.interpolator,a=n.startProps,i=n.endProps,o=n.duration,l=(0,n.easing)(t/o),u=r.interpolateProps(a,i,l);this.propsInTransition=new this.ControllerState(Object.assign({},this.props,u)).getViewportProps(),this.onViewStateChange&&this.onViewStateChange({viewState:this.propsInTransition,interactionState:{inTransition:!0},oldViewState:this.props})}}]),e}();c.defaultProps=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(63),a=n(24),i=n(26),o=n(161),l=n(81);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s={transitionDuration:0},c=["wheel"],d=["panstart","panmove","panend"],f=["pinchstart","pinchmove","pinchend"],p=["doubletap"],h=["keydown"],m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),Object(l.a)(t),this.ControllerState=t,this.controllerState=null,this.controllerStateProps=null,this.eventManager=null,this.transitionManager=new o.b(t,n),this._events=null,this._state={isDragging:!1},this._customEvents=[],this.onViewStateChange=null,this.onStateChange=null,this.invertPan=!1,this.handleEvent=this.handleEvent.bind(this),this.setProps(n)}return Object(i.a)(e,[{key:"finalize",value:function(){for(var e in this._events)this._events[e]&&this.eventManager.off(e,this.handleEvent);this.transitionManager.finalize()}},{key:"handleEvent",value:function(e){var t=this.ControllerState;switch(this.controllerState=new t(function(e){for(var t=1;t=0&&e[0]<=r&&e[1]>=0&&e[1]<=a;return i&&t&&t.stopPropagation(),i}},{key:"isFunctionKeyPressed",value:function(e){var t=e.srcEvent;return Boolean(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},{key:"isDragging",value:function(){return this._state.isDragging}},{key:"setProps",value:function(e){"onViewStateChange"in e&&(this.onViewStateChange=e.onViewStateChange),"onStateChange"in e&&(this.onStateChange=e.onStateChange),"makeViewport"in e&&(this.makeViewport=e.makeViewport),this.controllerStateProps=e,"eventManager"in e&&this.eventManager!==e.eventManager&&(this.eventManager=e.eventManager,this._events={},this.toggleEvents(this._customEvents,!0)),this.transitionManager.processViewStateChange(this.controllerStateProps);var t=e.scrollZoom,n=void 0===t||t,r=e.dragPan,a=void 0===r||r,i=e.dragRotate,o=void 0===i||i,l=e.doubleClickZoom,u=void 0===l||l,s=e.touchZoom,m=void 0===s||s,g=e.touchRotate,v=void 0!==g&&g,y=e.keyboard,b=void 0===y||y,A=Boolean(this.onViewStateChange);this.toggleEvents(c,A&&n),this.toggleEvents(d,A&&(a||o)),this.toggleEvents(f,A&&(m||v)),this.toggleEvents(p,A&&u),this.toggleEvents(h,A&&b),this.scrollZoom=n,this.dragPan=a,this.dragRotate=o,this.doubleClickZoom=u,this.touchZoom=m,this.touchRotate=v,this.keyboard=b}},{key:"updateTransition",value:function(){this.transitionManager.updateTransition()}},{key:"toggleEvents",value:function(e,t){var n=this;this.eventManager&&e.forEach((function(e){n._events[e]!==t&&(n._events[e]=t,t?n.eventManager.on(e,n.handleEvent):n.eventManager.off(e,n.handleEvent))}))}},{key:"updateViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({},e.getViewportProps(),t),a=this.controllerState!==e;if(a){var i=this.controllerState?this.controllerState.getViewportProps():null;this.onViewStateChange&&this.onViewStateChange({viewState:r,interactionState:n,oldViewState:i})}Object.assign(this._state,e.getInteractiveState(),n),this.onStateChange&&this.onStateChange(this._state)}},{key:"_onPanStart",value:function(e){var t=this.getCenter(e);if(!this.isPointInBounds(t,e))return!1;var n=this.controllerState.panStart({pos:t}).rotateStart({pos:t});return this.updateViewport(n,s,{isDragging:!0}),!0}},{key:"_onPan",value:function(e){if(!this.isDragging())return!1;var t=this.isFunctionKeyPressed(e)||e.rightButton;return(t=this.invertPan?!t:t)?this._onPanMove(e):this._onPanRotate(e)}},{key:"_onPanEnd",value:function(e){var t=this.controllerState.panEnd().rotateEnd();return this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isRotating:!1}),!0}},{key:"_onPanMove",value:function(e){if(!this.dragPan)return!1;var t=this.getCenter(e),n=this.controllerState.pan({pos:t});return this.updateViewport(n,s,{isDragging:!0,isPanning:!0}),!0}},{key:"_onPanRotate",value:function(e){if(!this.dragRotate)return!1;var t=e.deltaX,n=e.deltaY,r=this.controllerState.getViewportProps(),a=t/r.width,i=n/r.height,o=this.controllerState.rotate({deltaScaleX:a,deltaScaleY:i});return this.updateViewport(o,s,{isDragging:!0,isRotating:!0}),!0}},{key:"_onWheel",value:function(e){if(!this.scrollZoom)return!1;e.preventDefault();var t=this.getCenter(e);if(!this.isPointInBounds(t,e))return!1;var n=e.delta,r=2/(1+Math.exp(-Math.abs(.01*n)));n<0&&0!==r&&(r=1/r);var a=this.controllerState.zoom({pos:t,scale:r});return this.updateViewport(a,s,{isZooming:!0,isPanning:!0}),!0}},{key:"_onPinchStart",value:function(e){var t=this.getCenter(e);if(!this.isPointInBounds(t,e))return!1;var n=this.controllerState.zoomStart({pos:t}).rotateStart({pos:t});return this._state.startPinchRotation=e.rotation,this.updateViewport(n,s,{isDragging:!0}),!0}},{key:"_onPinch",value:function(e){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;var t=this.controllerState;if(this.touchZoom){var n=e.scale,r=this.getCenter(e);t=t.zoom({pos:r,scale:n})}if(this.touchRotate){var a=e.rotation,i=this._state.startPinchRotation;t=t.rotate({deltaScaleX:-(a-i)/180})}return this.updateViewport(t,s,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),!0}},{key:"_onPinchEnd",value:function(e){var t=this.controllerState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1}),!0}},{key:"_onDoubleTap",value:function(e){if(!this.doubleClickZoom)return!1;var t=this.getCenter(e);if(!this.isPointInBounds(t,e))return!1;var n=this.isFunctionKeyPressed(e),r=this.controllerState.zoom({pos:t,scale:n?.5:2});return this.updateViewport(r,this._getTransitionProps(),{isZooming:!0,isPanning:!0}),!0}},{key:"_onKeyDown",value:function(e){if(!this.keyboard)return!1;var t,n=this.isFunctionKeyPressed(e),r=this.controllerState,a={};switch(e.srcEvent.keyCode){case 189:t=n?r.zoomOut().zoomOut():r.zoomOut(),a.isZooming=!0;break;case 187:t=n?r.zoomIn().zoomIn():r.zoomIn(),a.isZooming=!0;break;case 37:n?(t=r.rotateLeft(),a.isRotating=!0):(t=r.moveLeft(),a.isPanning=!0);break;case 39:n?(t=r.rotateRight(),a.isRotating=!0):(t=r.moveRight(),a.isPanning=!0);break;case 38:n?(t=r.rotateUp(),a.isRotating=!0):(t=r.moveUp(),a.isPanning=!0);break;case 40:n?(t=r.rotateDown(),a.isRotating=!0):(t=r.moveDown(),a.isPanning=!0);break;default:return!1}return this.updateViewport(t,this._getTransitionProps(),a),!0}},{key:"_getTransitionProps",value:function(){return s}},{key:"events",set:function(e){this.toggleEvents(this._customEvents,!1),this.toggleEvents(e,!0),this._customEvents=e,this.setProps(this.controllerStateProps)}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(153),a=n(63),i=n(24),o=n(26),l=n(118),u=/([0-9]+\.?[0-9]*)(%|px)/;function s(e){switch(Object(r.a)(e)){case"number":return{position:e,relative:!1};case"string":var t=e.match(u);if(t&&t.length>=3){var n="%"===t[2],a=parseFloat(t[1]);return{position:n?a/100:a,relative:n}}default:throw new Error("Could not parse position string ".concat(e))}}function c(e,t){return e.relative?Math.round(e.position*t):e.position}var d=n(185),f=n(81);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(i.a)(this,e);var n=t.id,r=void 0===n?null:n,a=t.x,o=void 0===a?0:a,u=t.y,s=void 0===u?0:u,c=t.width,d=void 0===c?"100%":c,p=t.height,h=void 0===p?"100%":p,m=t.projectionMatrix,g=void 0===m?null:m,v=t.fovy,y=void 0===v?50:v,b=t.near,A=void 0===b?.1:b,_=t.far,O=void 0===_?1e3:_,E=t.modelMatrix,x=void 0===E?null:E,M=t.viewportInstance,w=void 0===M?null:M,S=t.type,T=void 0===S?l.a:S;Object(f.a)(!w||w instanceof l.a),this.viewportInstance=w,this.id=r||this.constructor.displayName||"view",this.type=T,this.props=Object.assign({},t,{id:this.id,projectionMatrix:g,fovy:y,near:A,far:O,modelMatrix:x}),this._parseDimensions({x:o,y:s,width:d,height:h}),this.equals=this.equals.bind(this),Object.seal(this)}return Object(o.a)(e,[{key:"equals",value:function(e){return this===e||(this.viewportInstance?e.viewportInstance&&this.viewportInstance.equals(e.viewportInstance):Object(d.a)(this.props,e.props))}},{key:"makeViewport",value:function(e){var t=e.width,n=e.height,r=e.viewState;if(this.viewportInstance)return this.viewportInstance;r=this.filterViewState(r);var i=this.getDimensions({width:t,height:n}),o=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e);var n=t.id,r=void 0===n?Object(o.c)("geometry"):n,i=t.drawMode,l=void 0===i?u.TRIANGLES:i,s=t.attributes,c=void 0===s?{}:s,d=t.indices,f=void 0===d?null:d,p=t.vertexCount,h=void 0===p?null:p;this.id=r,this.drawMode=0|l,this.attributes={},this.userData={},this._setAttributes(c,f),this.vertexCount=h||this._calculateVertexCount(this.attributes,this.indices)}return Object(i.a)(e,null,[{key:"DRAW_MODE",get:function(){return u}}]),Object(i.a)(e,[{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"getAttributes",value:function(){return this.indices?Object(r.a)({indices:this.indices},this.attributes):this.attributes}},{key:"_print",value:function(e){return"Geometry ".concat(this.id," attribute ").concat(e)}},{key:"_setAttributes",value:function(e,t){for(var n in t&&(this.indices=ArrayBuffer.isView(t)?{value:t,size:1}:t),e){var r=e[n];r=ArrayBuffer.isView(r)?{value:r}:r,Object(l.a)(ArrayBuffer.isView(r.value),"".concat(this._print(n),": must be typed array or object with value as typed array")),"POSITION"!==n&&"positions"!==n||r.size||(r.size=3),"indices"===n?(Object(l.a)(!this.indices),this.indices=r):this.attributes[n]=r}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}},{key:"_calculateVertexCount",value:function(e,t){if(t)return t.value.length;var n=1/0;for(var r in e){var a=e[r],i=a.value,o=a.size;!a.constant&&i&&o>=1&&(n=Math.min(n,i.length/o))}return Object(l.a)(Number.isFinite(n)),n}},{key:"mode",get:function(){return this.drawMode}}]),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));var r=n(66),a=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,i=/^([-\w.]+\/[-\w.+]+)/;function o(e){if("string"!=typeof e)return"";var t=e.match(a);return t?t[1]:""}var l=/\?.*/;function u(e){if(Object(r.j)(e)){var t=function(e){if("string"!=typeof e)return"";var t=e.match(i);return t?t[1]:e}(e.headers.get("content-type")),n=o(e.url);return{url:c(e.url||""),type:t||n||null}}return Object(r.b)(e)?{url:c(e.name||""),type:e.type||""}:"string"==typeof e?{url:c(e),type:o(e)}:{url:"",type:""}}function s(e){return Object(r.j)(e)?e.headers["content-length"]||-1:Object(r.b)(e)?e.size:"string"==typeof e?e.length:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:-1}function c(e){return e.replace(l,"")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return d}));var r=n(111),a=["SCALAR","VEC2","VEC3","VEC4"],i=new Map([[Int8Array,5120],[Uint8Array,5121],[Int16Array,5122],[Uint16Array,5123],[Uint32Array,5125],[Float32Array,5126]]),o={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},l={5120:1,5121:1,5122:2,5123:2,5125:4,5126:4},u={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};function s(e){return a[e-1]||a[0]}function c(e){var t=i.get(e.constructor);if(!t)throw new Error("Illegal typed array");return t}function d(e,t){var n=u[e.componentType],a=o[e.type],i=l[e.componentType],s=e.count*a,c=e.count*a*i;return Object(r.a)(c>=0&&c<=t.byteLength),{ArrayType:n,length:s,byteLength:c}}},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(311),a=n(11),i=n(12),o=n(204),l=n(73),u=n(661),s={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},c={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}},d=function(){function e(){var t=this;Object(a.a)(this,e);for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};return void 0!==(e=Object(u.a)("Accessor",e,c)).type&&(this.type=e.type,5124!==e.type&&5125!==e.type||(this.integer=!0)),void 0!==e.size&&(this.size=e.size),void 0!==e.offset&&(this.offset=e.offset),void 0!==e.stride&&(this.stride=e.stride),void 0!==e.normalized&&(this.normalized=e.normalized),void 0!==e.integer&&(this.integer=e.integer),void 0!==e.divisor&&(this.divisor=e.divisor),void 0!==e.buffer&&(this.buffer=e.buffer),void 0!==e.index&&("boolean"==typeof index?this.index=e.index?1:0:this.index=e.index),void 0!==e.instanced&&(this.divisor=e.instanced?1:0),void 0!==e.isInstanced&&(this.divisor=e.isInstanced?1:0),this}},{key:"BYTES_PER_ELEMENT",get:function(){return e.getBytesPerElement(this)}},{key:"BYTES_PER_VERTEX",get:function(){return e.getBytesPerVertex(this)}}]),e}()},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return Array.isArray(e)?a(e,t,[]):t(e)?[e]:[]}function a(e,t,n){for(var r=-1;++r-1},ie.prototype.set=function(e,t){var n=this.__data__,r=ce(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},oe.prototype.clear=function(){this.__data__={hash:new ae,map:new(G||ie),string:new ae}},oe.prototype.delete=function(e){return me(this,e).delete(e)},oe.prototype.get=function(e){return me(this,e).get(e)},oe.prototype.has=function(e){return me(this,e).has(e)},oe.prototype.set=function(e,t){return me(this,e).set(e,t),this},le.prototype.clear=function(){this.__data__=new ie},le.prototype.delete=function(e){return this.__data__.delete(e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this;n=this.__data__=new oe(r)}return n.set(e,t),this};var ve=V?E(V,Object):function(){return[]},ye=function(e){return D.call(e)};function be(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!we(e)}var Me=H||function(){return!1};function we(e){var t=Se(e)?D.call(e):"";return t==a||t==i}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return xe(e)?ue(e):function(e){if(!Ae(e))return Y(e);var t=[];for(var n in Object(e))k.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return de(e,!0,!0)}}).call(this,n(67),n(175)(e))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_COLOR_RANGE",{enumerable:!0,get:function(){return o.DEFAULT_COLOR_RANGE}}),t.LAYER_TEXT_CONFIGS=t.LAYER_VIS_CONFIGS=t.DEFAULT_COLOR_UI=t.UNKNOWN_COLOR_KEY=t.DEFAULT_CUSTOM_PALETTE=t.DEFAULT_TEXT_LABEL=t.DEFAULT_LAYER_LABEL=t.DEFAULT_HIGHLIGHT_COLOR=t.DEFAULT_LAYER_OPACITY=t.PROPERTY_GROUPS=void 0;var a=r(n(155)),i=n(39),o=n(328),l=(0,a.default)({color:null,stroke:null,radius:null,height:null,angle:null,cell:null,precision:null});t.PROPERTY_GROUPS=l;t.DEFAULT_LAYER_OPACITY=.8;t.DEFAULT_HIGHLIGHT_COLOR=[252,242,26,255];t.DEFAULT_LAYER_LABEL="new layer";t.DEFAULT_TEXT_LABEL={field:null,color:[255,255,255],size:18,offset:[0,0],anchor:"start",alignment:"center"};var u={name:"color.customPalette",type:"custom",category:"Custom",colors:[]};t.DEFAULT_CUSTOM_PALETTE=u;t.UNKNOWN_COLOR_KEY="__unknownColor__";var s={customPalette:u,showSketcher:!1,showDropdown:!1,colorRangeConfig:{type:"all",steps:6,reversed:!1,custom:!1}};t.DEFAULT_COLOR_UI=s;var c={thickness:{type:"number",defaultValue:2,label:"layerVisConfigs.strokeWidth",isRanged:!1,range:[0,100],step:.1,group:l.stroke,property:"thickness"},strokeWidthRange:{type:"number",defaultValue:[0,10],label:"layerVisConfigs.strokeWidthRange",isRanged:!0,range:[0,200],step:.1,group:l.stroke,property:"sizeRange"},trailLength:{type:"number",defaultValue:180,label:"layerVisConfigs.strokeWidth",isRanged:!1,range:[1,1e3],step:1,group:l.stroke,property:"trailLength"},radius:{type:"number",defaultValue:10,label:"layerVisConfigs.radius",isRanged:!1,range:[0,100],step:.1,group:l.radius,property:"radius"},fixedRadius:{defaultValue:!1,type:"boolean",label:"layerVisConfigs.fixedRadius",description:"layerVisConfigs.fixedRadiusDescription",group:l.radius,property:"fixedRadius"},radiusRange:{type:"number",defaultValue:[0,50],isRanged:!0,range:[0,500],step:.1,label:"layerVisConfigs.radiusRange",group:l.radius,property:"radiusRange"},clusterRadius:{type:"number",label:"layerVisConfigs.clusterRadius",defaultValue:40,isRanged:!1,range:[1,500],step:.1,group:l.radius,property:"clusterRadius"},clusterRadiusRange:{type:"number",label:"layerVisConfigs.radiusRangePixels",defaultValue:[1,40],isRanged:!0,range:[1,150],step:.1,group:l.radius,property:"radiusRange"},opacity:{type:"number",defaultValue:.8,label:"layerVisConfigs.opacity",isRanged:!1,range:[0,1],step:.01,group:l.color,property:"opacity"},coverage:{type:"number",defaultValue:1,label:"layerVisConfigs.coverage",isRanged:!1,range:[0,1],step:.01,group:l.cell,property:"coverage"},outline:{type:"boolean",defaultValue:!1,label:"layer.outline",group:l.display,property:"outline"},colorRange:{type:"color-range-select",defaultValue:o.DEFAULT_COLOR_RANGE,label:"layerVisConfigs.colorRange",group:l.color,property:"colorRange"},strokeColorRange:{type:"color-range-select",defaultValue:o.DEFAULT_COLOR_RANGE,label:"layerVisConfigs.strokeColorRange",group:l.color,property:"strokeColorRange"},targetColor:{type:"color-select",label:"layerVisConfigs.targetColor",defaultValue:null,group:l.color,property:"targetColor"},strokeColor:{type:"color-select",label:"layerVisConfigs.strokeColor",defaultValue:null,group:l.color,property:"strokeColor"},aggregation:{type:"select",defaultValue:i.AGGREGATION_TYPES.average,label:"layerVisConfigs.colorAggregation",options:Object.keys(i.AGGREGATION_TYPES),group:l.color,property:"colorAggregation",condition:function(e){return e.colorField}},sizeAggregation:{type:"select",defaultValue:i.AGGREGATION_TYPES.average,label:"layerVisConfigs.heightAggregation",options:Object.keys(i.AGGREGATION_TYPES),group:l.height,property:"sizeAggregation",condition:function(e){return e.sizeField}},percentile:{type:"number",defaultValue:[0,100],label:function(e){return"Filter by ".concat(e.colorField?"".concat(e.visConfig.colorAggregation," ").concat(e.colorField.name):"count"," percentile")},isRanged:!0,range:[0,100],step:.01,group:l.color,property:"percentile",condition:function(e){return"ordinal"!==e.colorScale}},elevationPercentile:{type:"number",defaultValue:[0,100],label:function(e){return"Filter by ".concat(e.sizeField?"".concat(e.visConfig.sizeAggregation," ").concat(e.sizeField.name):"count"," percentile")},isRanged:!0,range:[0,100],step:.01,group:l.height,property:"elevationPercentile",condition:function(e){return e.visConfig.enable3d&&(e.colorField||e.sizeField)}},resolution:{type:"number",defaultValue:8,label:"layerVisConfigs.resolution",isRanged:!1,range:[0,13],step:1,group:l.cell,property:"resolution"},sizeScale:{type:"number",defaultValue:10,label:"layerVisConfigs.sizeScale",isRanged:!1,range:[1,1e3],step:1,group:l.stroke,property:"sizeScale"},angle:{type:"number",label:"layerVisConfigs.angle",defaultValue:0,isRanged:!1,range:[0,360],group:l.angle,step:1,property:"angle"},worldUnitSize:{type:"number",defaultValue:1,label:"layerVisConfigs.worldUnitSize",isRanged:!1,range:[0,500],step:1e-4,group:l.cell,property:"worldUnitSize"},elevationScale:{type:"number",defaultValue:5,label:"layerVisConfigs.elevationScale",isRanged:!1,range:[0,100],step:.1,group:l.height,property:"elevationScale"},enableElevationZoomFactor:{type:"boolean",defaultValue:!0,label:"layerVisConfigs.enableElevationZoomFactor",group:l.height,property:"enableElevationZoomFactor",description:"layerVisConfigs.enableElevationZoomFactorDescription"},elevationRange:{type:"number",defaultValue:[0,500],label:"layerVisConfigs.heightScale",isRanged:!0,range:[0,1e3],step:.01,group:l.height,property:"sizeRange"},heightRange:{type:"number",defaultValue:[0,500],label:"Height Scale",isRanged:!0,range:[0,1e3],step:.01,group:l.height,property:"heightRange"},coverageRange:{type:"number",defaultValue:[0,1],label:"layerVisConfigs.coverageRange",isRanged:!0,range:[0,1],step:.01,group:l.radius,property:"coverageRange"},"hi-precision":{type:"boolean",defaultValue:!1,label:"layerVisConfigs.highPrecisionRendering",group:l.precision,property:"hi-precision",description:"layerVisConfigs.highPrecisionRenderingDescription"},enable3d:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.height",group:l.height,property:"enable3d",description:"layerVisConfigs.heightDescription"},stroked:{type:"boolean",label:"layerVisConfigs.stroke",defaultValue:!0,group:l.display,property:"stroked"},filled:{type:"boolean",label:"layerVisConfigs.fill",defaultValue:!1,group:l.display,property:"filled"},extruded:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.enablePolygonHeight",group:l.display,property:"extruded"},wireframe:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.showWireframe",group:l.display,property:"wireframe"},weight:{type:"number",defaultValue:1,label:"layerVisConfigs.weightIntensity",isRanged:!1,range:[.01,500],step:.01,group:l.cell,property:"weight",condition:function(e){return e.weightField}},heatmapRadius:{type:"number",defaultValue:20,label:"layerVisConfigs.radius",isRanged:!1,range:[0,100],step:.1,group:l.cell,property:"radius"}};t.LAYER_VIS_CONFIGS=c;t.LAYER_TEXT_CONFIGS={fontSize:{type:"number",range:[1,100],value0:1,step:1,isRanged:!1,label:"Font size",showInput:!0},textAnchor:{type:"select",options:["start","middle","end"],multiSelect:!1,searchable:!1},textAlignment:{type:"select",options:["top","center","bottom"],multiSelect:!1,searchable:!1}}},function(e,t,n){(function(t){var r,a=void 0!==t?t:"undefined"!=typeof window?window:{},i=n(1419);"undefined"!=typeof document?r=document:(r=a["__GLOBAL_DOCUMENT_CACHE@4"])||(r=a["__GLOBAL_DOCUMENT_CACHE@4"]=i),e.exports=r}).call(this,n(67))},function(e,t,n){var r=n(924),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DEFAULT_COLOR_RANGE",{enumerable:!0,get:function(){return o.DEFAULT_COLOR_RANGE}}),t.LAYER_TEXT_CONFIGS=t.LAYER_VIS_CONFIGS=t.DEFAULT_COLOR_UI=t.UNKNOWN_COLOR_KEY=t.DEFAULT_CUSTOM_PALETTE=t.DEFAULT_TEXT_LABEL=t.DEFAULT_LAYER_LABEL=t.DEFAULT_HIGHLIGHT_COLOR=t.DEFAULT_LAYER_OPACITY=t.PROPERTY_GROUPS=void 0;var a=r(n(155)),i=n(41),o=n(339),l=(0,a.default)({color:null,stroke:null,radius:null,height:null,angle:null,cell:null,precision:null});t.PROPERTY_GROUPS=l;t.DEFAULT_LAYER_OPACITY=.8;t.DEFAULT_HIGHLIGHT_COLOR=[252,242,26,255];t.DEFAULT_LAYER_LABEL="new layer";t.DEFAULT_TEXT_LABEL={field:null,color:[255,255,255],size:18,offset:[0,0],anchor:"start",alignment:"center"};var u={name:"color.customPalette",type:"custom",category:"Custom",colors:[]};t.DEFAULT_CUSTOM_PALETTE=u;t.UNKNOWN_COLOR_KEY="__unknownColor__";var s={customPalette:u,showSketcher:!1,showDropdown:!1,colorRangeConfig:{type:"all",steps:6,reversed:!1,custom:!1}};t.DEFAULT_COLOR_UI=s;var c={thickness:{type:"number",defaultValue:2,label:"layerVisConfigs.strokeWidth",isRanged:!1,range:[0,100],step:.1,group:l.stroke,property:"thickness"},strokeWidthRange:{type:"number",defaultValue:[0,10],label:"layerVisConfigs.strokeWidthRange",isRanged:!0,range:[0,200],step:.1,group:l.stroke,property:"sizeRange"},trailLength:{type:"number",defaultValue:180,label:"layerVisConfigs.strokeWidth",isRanged:!1,range:[1,1e3],step:1,group:l.stroke,property:"trailLength"},radius:{type:"number",defaultValue:10,label:"layerVisConfigs.radius",isRanged:!1,range:[0,100],step:.1,group:l.radius,property:"radius"},fixedRadius:{defaultValue:!1,type:"boolean",label:"layerVisConfigs.fixedRadius",description:"layerVisConfigs.fixedRadiusDescription",group:l.radius,property:"fixedRadius"},radiusRange:{type:"number",defaultValue:[0,50],isRanged:!0,range:[0,500],step:.1,label:"layerVisConfigs.radiusRange",group:l.radius,property:"radiusRange"},clusterRadius:{type:"number",label:"layerVisConfigs.clusterRadius",defaultValue:40,isRanged:!1,range:[1,500],step:.1,group:l.radius,property:"clusterRadius"},clusterRadiusRange:{type:"number",label:"layerVisConfigs.radiusRangePixels",defaultValue:[1,40],isRanged:!0,range:[1,150],step:.1,group:l.radius,property:"radiusRange"},opacity:{type:"number",defaultValue:.8,label:"layerVisConfigs.opacity",isRanged:!1,range:[0,1],step:.01,group:l.color,property:"opacity"},coverage:{type:"number",defaultValue:1,label:"layerVisConfigs.coverage",isRanged:!1,range:[0,1],step:.01,group:l.cell,property:"coverage"},outline:{type:"boolean",defaultValue:!1,label:"layer.outline",group:l.display,property:"outline"},colorRange:{type:"color-range-select",defaultValue:o.DEFAULT_COLOR_RANGE,label:"layerVisConfigs.colorRange",group:l.color,property:"colorRange"},strokeColorRange:{type:"color-range-select",defaultValue:o.DEFAULT_COLOR_RANGE,label:"layerVisConfigs.strokeColorRange",group:l.color,property:"strokeColorRange"},targetColor:{type:"color-select",label:"layerVisConfigs.targetColor",defaultValue:null,group:l.color,property:"targetColor"},strokeColor:{type:"color-select",label:"layerVisConfigs.strokeColor",defaultValue:null,group:l.color,property:"strokeColor"},aggregation:{type:"select",defaultValue:i.AGGREGATION_TYPES.average,label:"layerVisConfigs.colorAggregation",options:Object.keys(i.AGGREGATION_TYPES),group:l.color,property:"colorAggregation",condition:function(e){return e.colorField}},sizeAggregation:{type:"select",defaultValue:i.AGGREGATION_TYPES.average,label:"layerVisConfigs.heightAggregation",options:Object.keys(i.AGGREGATION_TYPES),group:l.height,property:"sizeAggregation",condition:function(e){return e.sizeField}},percentile:{type:"number",defaultValue:[0,100],label:function(e){return"Filter by ".concat(e.colorField?"".concat(e.visConfig.colorAggregation," ").concat(e.colorField.name):"count"," percentile")},isRanged:!0,range:[0,100],step:.01,group:l.color,property:"percentile",condition:function(e){return"ordinal"!==e.colorScale}},elevationPercentile:{type:"number",defaultValue:[0,100],label:function(e){return"Filter by ".concat(e.sizeField?"".concat(e.visConfig.sizeAggregation," ").concat(e.sizeField.name):"count"," percentile")},isRanged:!0,range:[0,100],step:.01,group:l.height,property:"elevationPercentile",condition:function(e){return e.visConfig.enable3d&&(e.colorField||e.sizeField)}},resolution:{type:"number",defaultValue:8,label:"layerVisConfigs.resolution",isRanged:!1,range:[0,13],step:1,group:l.cell,property:"resolution"},sizeScale:{type:"number",defaultValue:10,label:"layerVisConfigs.sizeScale",isRanged:!1,range:[1,1e3],step:1,group:l.stroke,property:"sizeScale"},angle:{type:"number",label:"layerVisConfigs.angle",defaultValue:0,isRanged:!1,range:[0,360],group:l.angle,step:1,property:"angle"},worldUnitSize:{type:"number",defaultValue:1,label:"layerVisConfigs.worldUnitSize",isRanged:!1,range:[0,500],step:1e-4,group:l.cell,property:"worldUnitSize"},elevationScale:{type:"number",defaultValue:5,label:"layerVisConfigs.elevationScale",isRanged:!1,range:[0,100],step:.1,group:l.height,property:"elevationScale"},enableElevationZoomFactor:{type:"boolean",defaultValue:!0,label:"layerVisConfigs.enableElevationZoomFactor",group:l.height,property:"enableElevationZoomFactor",description:"layerVisConfigs.enableElevationZoomFactorDescription"},elevationRange:{type:"number",defaultValue:[0,500],label:"layerVisConfigs.heightScale",isRanged:!0,range:[0,1e3],step:.01,group:l.height,property:"sizeRange"},heightRange:{type:"number",defaultValue:[0,500],label:"Height Scale",isRanged:!0,range:[0,1e3],step:.01,group:l.height,property:"heightRange"},coverageRange:{type:"number",defaultValue:[0,1],label:"layerVisConfigs.coverageRange",isRanged:!0,range:[0,1],step:.01,group:l.radius,property:"coverageRange"},"hi-precision":{type:"boolean",defaultValue:!1,label:"layerVisConfigs.highPrecisionRendering",group:l.precision,property:"hi-precision",description:"layerVisConfigs.highPrecisionRenderingDescription"},enable3d:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.height",group:l.height,property:"enable3d",description:"layerVisConfigs.heightDescription"},stroked:{type:"boolean",label:"layerVisConfigs.stroke",defaultValue:!0,group:l.display,property:"stroked"},filled:{type:"boolean",label:"layerVisConfigs.fill",defaultValue:!1,group:l.display,property:"filled"},extruded:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.enablePolygonHeight",group:l.display,property:"extruded"},wireframe:{type:"boolean",defaultValue:!1,label:"layerVisConfigs.showWireframe",group:l.display,property:"wireframe"},weight:{type:"number",defaultValue:1,label:"layerVisConfigs.weightIntensity",isRanged:!1,range:[.01,500],step:.01,group:l.cell,property:"weight",condition:function(e){return e.weightField}},heatmapRadius:{type:"number",defaultValue:20,label:"layerVisConfigs.radius",isRanged:!1,range:[0,100],step:.1,group:l.cell,property:"radius"}};t.LAYER_VIS_CONFIGS=c;t.LAYER_TEXT_CONFIGS={fontSize:{type:"number",range:[1,100],value0:1,step:1,isRanged:!1,label:"Font size",showInput:!0},textAnchor:{type:"select",options:["start","middle","end"],multiSelect:!1,searchable:!1},textAlignment:{type:"select",options:["top","center","bottom"],multiSelect:!1,searchable:!1}}},function(e,t,n){"use strict";n.r(t),n.d(t,"BrushingExtension",(function(){return f})),n.d(t,"DataFilterExtension",(function(){return A})),n.d(t,"Fp64Extension",(function(){return C})),n.d(t,"PathStyleExtension",(function(){return D})),n.d(t,"FillStyleExtension",(function(){return V})),n.d(t,"project64",(function(){return w}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(18),u=n(841),s=n(257),c={source:0,target:1,custom:2,source_target:3},d={name:"brushing",dependencies:[s.a],vs:"\n uniform bool brushing_enabled;\n uniform int brushing_target;\n uniform vec2 brushing_mousePos;\n uniform float brushing_radius;\n\n #ifdef NON_INSTANCED_MODEL\n attribute vec2 brushingTargets;\n #else\n attribute vec2 instanceBrushingTargets;\n #endif\n\n varying float brushing_isVisible;\n\n bool brushing_isPointInRange(vec2 position) {\n if (!brushing_enabled) {\n return true;\n }\n vec2 source_commonspace = project_position(position);\n vec2 target_commonspace = project_position(brushing_mousePos);\n float distance = length((target_commonspace - source_commonspace) / project_uCommonUnitsPerMeter.xy);\n\n return distance <= brushing_radius;\n }\n\n bool brushing_arePointsInRange(vec2 sourcePos, vec2 targetPos) {\n return brushing_isPointInRange(sourcePos) || brushing_isPointInRange(targetPos);\n }\n\n void brushing_setVisible(bool visible) {\n brushing_isVisible = float(visible);\n }\n",fs:"\n uniform bool brushing_enabled;\n varying float brushing_isVisible;\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n vec2 brushingTarget;\n vec2 brushingSource;\n if (brushing_target == 3) {\n brushingTarget = geometry.worldPositionAlt.xy;\n brushingSource = geometry.worldPosition.xy;\n } else if (brushing_target == 0) {\n brushingTarget = geometry.worldPosition.xy;\n } else if (brushing_target == 1) {\n brushingTarget = geometry.worldPositionAlt.xy;\n } else {\n #ifdef NON_INSTANCED_MODEL\n brushingTarget = brushingTargets;\n #else\n brushingTarget = instanceBrushingTargets;\n #endif\n }\n bool visible;\n if (brushing_target == 3) {\n visible = brushing_arePointsInRange(brushingSource, brushingTarget);\n } else {\n visible = brushing_isPointInRange(brushingTarget);\n }\n brushing_setVisible(visible);\n ","fs:DECKGL_FILTER_COLOR":"\n if (brushing_enabled && brushing_isVisible < 0.5) {\n discard;\n }\n "},getUniforms:function(e){if(!e||!e.viewport)return{};var t=e.brushingEnabled,n=void 0===t||t,r=e.brushingRadius,a=void 0===r?1e4:r,i=e.brushingTarget,o=void 0===i?"source":i,l=e.mousePosition,u=e.viewport;return{brushing_enabled:Boolean(n&&l&&u.containsPixel(l)),brushing_radius:a,brushing_target:c[o]||0,brushing_mousePos:l?u.unproject([l.x-u.x,l.y-u.y]):[0,0]}}},f=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"getShaders",value:function(e){return{modules:[d]}}},{key:"initializeState",value:function(e,t){var n=this,r=this.getAttributeManager();r&&r.add({brushingTargets:{size:2,accessor:"getBrushingTarget",update:!this.props.getBrushingTarget&&t.useConstantTargetPositions,shaderAttributes:{brushingTargets:{divisor:0},instanceBrushingTargets:{divisor:1}}}}),t.onMouseMove=function(){n.getCurrentLayer().setNeedsRedraw()},this.context.deck&&this.context.deck.eventManager.on({pointermove:t.onMouseMove,pointerleave:t.onMouseMove})}},{key:"finalizeState",value:function(e){this.context.deck&&this.context.deck.eventManager.off({pointermove:e.onMouseMove,pointerleave:e.onMouseMove})}},{key:"useConstantTargetPositions",value:function(e){e.constant=!0,e.value=new Float32Array(2)}}]),t}(u.a);f.extensionName="BrushingExtension",f.defaultProps={getBrushingTarget:{type:"accessor",value:[0,0]},brushingTarget:"source",brushingEnabled:!0,brushingRadius:1e4};var p="\nuniform DATAFILTER_TYPE filter_min;\nuniform DATAFILTER_TYPE filter_softMin;\nuniform DATAFILTER_TYPE filter_softMax;\nuniform DATAFILTER_TYPE filter_max;\nuniform bool filter_useSoftMargin;\nuniform bool filter_enabled;\nuniform bool filter_transformSize;\n\n#ifdef NON_INSTANCED_MODEL\n #define DATAFILTER_ATTRIB filterValues\n #define DATAFILTER_ATTRIB_64LOW filterValues64Low\n#else\n #define DATAFILTER_ATTRIB instanceFilterValues\n #define DATAFILTER_ATTRIB_64LOW instanceFilterValues64Low\n#endif\n\nattribute DATAFILTER_TYPE DATAFILTER_ATTRIB;\n#ifdef DATAFILTER_DOUBLE\n attribute DATAFILTER_TYPE DATAFILTER_ATTRIB_64LOW;\n\n uniform DATAFILTER_TYPE filter_min64High;\n uniform DATAFILTER_TYPE filter_max64High;\n#endif\n\nvarying float dataFilter_value;\n\nfloat dataFilter_reduceValue(float value) {\n return value;\n}\nfloat dataFilter_reduceValue(vec2 value) {\n return min(value.x, value.y);\n}\nfloat dataFilter_reduceValue(vec3 value) {\n return min(min(value.x, value.y), value.z);\n}\nfloat dataFilter_reduceValue(vec4 value) {\n return min(min(value.x, value.y), min(value.z, value.w));\n}\nvoid dataFilter_setValue(DATAFILTER_TYPE valueFromMin, DATAFILTER_TYPE valueFromMax) {\n if (filter_enabled) {\n if (filter_useSoftMargin) {\n dataFilter_value = dataFilter_reduceValue(\n smoothstep(filter_min, filter_softMin, valueFromMin) *\n (1.0 - smoothstep(filter_softMax, filter_max, valueFromMax))\n );\n } else {\n dataFilter_value = dataFilter_reduceValue(\n step(filter_min, valueFromMin) * step(valueFromMax, filter_max)\n );\n }\n } else {\n dataFilter_value = 1.0;\n }\n}\n",h="\nuniform bool filter_transformColor;\nvarying float dataFilter_value;\n",m=function(e){if(!e||!e.extensions)return{};var t=e.filterRange,n=void 0===t?[-1,1]:t,r=e.filterEnabled,a=void 0===r||r,i=e.filterTransformSize,o=void 0===i||i,l=e.filterTransformColor,u=void 0===l||l,s=e.filterSoftRange||n,c=Number.isFinite(n[0])?{filter_min:n[0],filter_softMin:s[0],filter_softMax:s[1],filter_max:n[1]}:{filter_min:n.map((function(e){return e[0]})),filter_softMin:s.map((function(e){return e[0]})),filter_softMax:s.map((function(e){return e[1]})),filter_max:n.map((function(e){return e[1]}))};return c.filter_enabled=a,c.filter_useSoftMargin=Boolean(e.filterSoftRange),c.filter_transformSize=a&&o,c.filter_transformColor=a&&u,c},g={"vs:#main-start":"\n #ifdef DATAFILTER_DOUBLE\n dataFilter_setValue(\n DATAFILTER_ATTRIB - filter_min64High + DATAFILTER_ATTRIB_64LOW,\n DATAFILTER_ATTRIB - filter_max64High + DATAFILTER_ATTRIB_64LOW\n );\n #else\n dataFilter_setValue(DATAFILTER_ATTRIB, DATAFILTER_ATTRIB);\n #endif\n ","vs:DECKGL_FILTER_SIZE":"\n if (filter_transformSize) {\n size = size * dataFilter_value;\n }\n ","fs:DECKGL_FILTER_COLOR":"\n if (dataFilter_value == 0.0) discard;\n if (filter_transformColor) {\n color.a *= dataFilter_value;\n }\n "},v={name:"data-filter",vs:p,fs:h,inject:g,getUniforms:m},y={name:"data-filter-fp64",vs:p,fs:h,inject:g,getUniforms:function(e){if(!e||!e.extensions)return{};var t=m(e);if(Number.isFinite(t.filter_min)){var n=Math.fround(t.filter_min);t.filter_min-=n,t.filter_softMin-=n,t.filter_min64High=n;var r=Math.fround(t.filter_max);t.filter_max-=r,t.filter_softMax-=r,t.filter_max64High=r}else{var a=t.filter_min.map(Math.fround);t.filter_min=t.filter_min.map((function(e,t){return e-a[t]})),t.filter_softMin=t.filter_softMin.map((function(e,t){return e-a[t]})),t.filter_min64High=a;var i=t.filter_max.map(Math.fround);t.filter_max=t.filter_max.map((function(e,t){return e-i[t]})),t.filter_softMax=t.filter_softMax.map((function(e,t){return e-i[t]})),t.filter_max64High=i}return t}},b={1:"float",2:"vec2",3:"vec3",4:"vec4"},A=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.filterSize,a=void 0===n?1:n,l=e.fp64,u=void 0!==l&&l;if(Object(r.a)(this,t),!b[a])throw new Error("filterSize out of range");return Object(i.a)(this,Object(o.a)(t).call(this,{filterSize:a,fp64:u}))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"getShaders",value:function(e){var t=e.opts,n=t.filterSize,r=t.fp64;return{modules:[r?y:v],defines:{DATAFILTER_TYPE:b[n],DATAFILTER_DOUBLE:Boolean(r)}}}},{key:"initializeState",value:function(e,t){var n=this.getAttributeManager();n&&n.add({filterValues:{size:t.opts.filterSize,type:t.opts.fp64?5130:5126,accessor:"getFilterValue",shaderAttributes:{filterValues:{divisor:0},instanceFilterValues:{divisor:1}}}})}}]),t}(u.a);A.extensionName="DataFilterExtension",A.defaultProps={getFilterValue:{type:"accessor",value:0},filterEnabled:!0,filterRange:[-1,1],filterSoftRange:null,filterTransformSize:!0,filterTransformColor:!0};var _=n(54),O=n(1945),E=n(198),x=O.a.fp64ify,M=O.a.fp64ifyMatrix4,w={name:"project64",dependencies:[s.a,O.a],vs:"\nconst vec2 WORLD_SCALE_FP64 = vec2(81.4873275756836, 0.0000032873668232014097);\n\nuniform vec2 project_uViewProjectionMatrixFP64[16];\nvoid mercatorProject_fp64(vec4 lnglat_fp64, out vec2 out_val[2]) {\n\n#if defined(NVIDIA_FP64_WORKAROUND)\n out_val[0] = sum_fp64(radians_fp64(lnglat_fp64.xy), PI_FP64 * ONE);\n#else\n out_val[0] = sum_fp64(radians_fp64(lnglat_fp64.xy), PI_FP64);\n#endif\n out_val[1] = sum_fp64(PI_FP64,\n log_fp64(tan_fp64(sum_fp64(PI_4_FP64, radians_fp64(lnglat_fp64.zw) / 2.0))));\n return;\n}\n\nvoid project_position_fp64(vec4 position_fp64, out vec2 out_val[2]) {\n vec2 pos_fp64[2];\n mercatorProject_fp64(position_fp64, pos_fp64);\n out_val[0] = mul_fp64(pos_fp64[0], WORLD_SCALE_FP64);\n out_val[1] = mul_fp64(pos_fp64[1], WORLD_SCALE_FP64);\n\n return;\n}\n\nvoid project_position_fp64(vec2 position, vec2 position64xyLow, out vec2 out_val[2]) {\n vec4 position64xy = vec4(\n position.x, position64xyLow.x,\n position.y, position64xyLow.y);\n\n project_position_fp64(position64xy, out_val);\n}\n\nvec4 project_common_position_to_clipspace_fp64(vec2 vertex_pos_modelspace[4]) {\n vec2 vertex_pos_clipspace[4];\n mat4_vec4_mul_fp64(project_uViewProjectionMatrixFP64, vertex_pos_modelspace,\n vertex_pos_clipspace);\n return vec4(\n vertex_pos_clipspace[0].x,\n vertex_pos_clipspace[1].x,\n vertex_pos_clipspace[2].x,\n vertex_pos_clipspace[3].x\n );\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64xyLow, vec3 offset, out vec4 commonPosition\n) {\n vec2 offset64[4];\n vec4_fp64(vec4(offset, 0.0), offset64);\n\n float z = project_size(position.z);\n vec2 projectedPosition64xy[2];\n project_position_fp64(position.xy, position64xyLow.xy, projectedPosition64xy);\n\n vec2 commonPosition64[4];\n commonPosition64[0] = sum_fp64(offset64[0], projectedPosition64xy[0]);\n commonPosition64[1] = sum_fp64(offset64[1], projectedPosition64xy[1]);\n commonPosition64[2] = sum_fp64(offset64[2], vec2(z, 0.0));\n commonPosition64[3] = vec2(1.0, 0.0);\n\n commonPosition = vec4(projectedPosition64xy[0].x, projectedPosition64xy[1].x, z, 1.0);\n\n return project_common_position_to_clipspace_fp64(commonPosition64);\n}\n\nvec4 project_position_to_clipspace(\n vec3 position, vec3 position64xyLow, vec3 offset\n) {\n vec4 commonPosition;\n return project_position_to_clipspace(\n position, position64xyLow, offset, commonPosition\n );\n}\n",getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;if(e.viewport){var t=e.viewport,n=t.viewProjectionMatrix,r=t.scale;return T({viewProjectionMatrix:n,scale:r})}return{}}},S={},T=Object(E.a)((function(e){var t=e.viewProjectionMatrix,n=e.scale,r=M(t),a=x(n);return{project_uViewProjectionMatrixFP64:r,project64_uViewProjectionMatrix:r,project64_uScale:a}}));var C=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"getShaders",value:function(e){var t=this.props.coordinateSystem;if(t!==_.a.LNGLAT&&t!==_.a.DEFAULT)throw new Error("fp64: coordinateSystem must be LNGLAT");return{modules:[w]}}}]),t}(u.a);C.extensionName="Fp64Extension";var L=n(438),P={inject:{"vs:#decl":"\nattribute vec2 instanceDashArrays;\nvarying vec2 vDashArray;\n","vs:#main-end":"\nvDashArray = instanceDashArrays;\n","fs:#decl":"\nuniform float dashAlignMode;\nvarying vec2 vDashArray;\nfloat mod2(float a, float b) {\n return a - floor(a / b) * b;\n}\n\nfloat round(float x) {\n return floor(x + 0.5);\n}\n","fs:#main-start":"\n float solidLength = vDashArray.x;\n float gapLength = vDashArray.y;\n float unitLength = solidLength + gapLength;\n\n if (unitLength > 0.0) {\n unitLength = mix(\n unitLength,\n vPathLength / round(vPathLength / unitLength),\n dashAlignMode\n );\n\n float offset = dashAlignMode * solidLength / 2.0;\n\n if (\n gapLength > 0.0 &&\n vPathPosition.y >= 0.0 &&\n vPathPosition.y <= vPathLength &&\n mod2(vPathPosition.y + offset, unitLength) > solidLength\n ) {\n discard;\n }\n } \n"}},k={inject:{"vs:#decl":"\nattribute float instanceOffsets;\n","vs:DECKGL_FILTER_SIZE":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n size *= offsetWidth;\n","vCornerOffset = offsetVec;":"\n float offsetWidth = abs(instanceOffsets * 2.0) + 1.0;\n vec2 offsetCenter = -instanceOffsets * (isCap ? perp : miterVec * miterSize) * 2.0;\n vCornerOffset = vCornerOffset * offsetWidth - offsetCenter;\n","fs:#main-start":"\n float isInside;\n isInside = step(-1.0, vPathPosition.x) * step(vPathPosition.x, 1.0);\n if (isInside == 0.0) {\n discard;\n }\n"}},D=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dash,a=void 0!==n&&n,l=e.offset,u=void 0!==l&&l;return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).call(this,{dash:a,offset:u}))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"isEnabled",value:function(e){return e.state.pathTesselator}},{key:"getShaders",value:function(e){if(!e.isEnabled(this))return null;var t={};return e.opts.dash&&(t=Object(L.a)(t,P)),e.opts.offset&&(t=Object(L.a)(t,k)),t}},{key:"initializeState",value:function(e,t){var n=this.getAttributeManager();n&&t.isEnabled(this)&&(t.enabled=!0,t.opts.dash&&n.addInstanced({instanceDashArrays:{size:2,accessor:"getDashArray"}}),t.opts.offset&&n.addInstanced({instanceOffsets:{size:1,accessor:"getOffset"}}))}},{key:"updateState",value:function(e,t){if(t.isEnabled(this)){var n={};t.opts.dash&&(n.dashAlignMode=this.props.dashJustified?1:0),this.state.model.setUniforms(n)}}}]),t}(u.a);D.extensionName="PathStyleExtension",D.defaultProps={getDashArray:{type:"accessor",value:[0,0]},getOffset:{type:"accessor",value:0},dashJustified:!1};var R=n(13),j=n.n(R),I=n(21),F=n(2),N=n(310);var B,z={name:"fill-pattern",vs:"\n#ifdef NON_INSTANCED_MODEL\n #define FILL_PATTERN_FRAME_ATTRIB fillPatternFrames\n #define FILL_PATTERN_SCALE_ATTRIB fillPatternScales\n #define FILL_PATTERN_OFFSET_ATTRIB fillPatternOffsets\n#else\n #define FILL_PATTERN_FRAME_ATTRIB instanceFillPatternFrames\n #define FILL_PATTERN_SCALE_ATTRIB instanceFillPatternScales\n #define FILL_PATTERN_OFFSET_ATTRIB instanceFillPatternOffsets\n#endif\n\nattribute vec4 FILL_PATTERN_FRAME_ATTRIB;\nattribute float FILL_PATTERN_SCALE_ATTRIB;\nattribute vec2 FILL_PATTERN_OFFSET_ATTRIB;\n\nuniform bool fill_patternEnabled;\nuniform vec2 fill_patternTextureSize;\n\nvarying vec2 fill_uv;\nvarying vec4 fill_patternBounds;\nvarying vec3 fill_patternPlacement;\n",fs:"\nuniform bool fill_patternEnabled;\nuniform bool fill_patternMask;\nuniform sampler2D fill_patternTexture;\nuniform vec2 fill_uvCoordinateOrigin;\n\nvarying vec4 fill_patternBounds;\nvarying vec3 fill_patternPlacement;\nvarying vec2 fill_uv;\n\nconst float FILL_UV_SCALE = 512.0 / 40000000.0;\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n fill_uv = geometry.position.xy;\n ","vs:DECKGL_FILTER_COLOR":"\n if (fill_patternEnabled) {\n fill_patternBounds = FILL_PATTERN_FRAME_ATTRIB / vec4(fill_patternTextureSize, fill_patternTextureSize);\n fill_patternPlacement.xy = FILL_PATTERN_OFFSET_ATTRIB;\n fill_patternPlacement.z = FILL_PATTERN_SCALE_ATTRIB * FILL_PATTERN_FRAME_ATTRIB.w;\n }\n ","fs:DECKGL_FILTER_COLOR":"\n if (fill_patternEnabled) {\n float scale = FILL_UV_SCALE * fill_patternPlacement.z;\n vec2 patternUV = mod(mod(fill_uvCoordinateOrigin, scale) + fill_uv, scale) / scale;\n patternUV = mod(fill_patternPlacement.xy + patternUV, 1.0);\n\n vec2 texCoords = fill_patternBounds.xy + fill_patternBounds.zw * patternUV;\n texCoords.y = 1.0 - texCoords.y;\n\n vec4 patternColor = texture2D(fill_patternTexture, texCoords);\n if (fill_patternMask) {\n color.a *= patternColor.a;\n } else {\n color.rgb = patternColor.rgb;\n }\n }\n "},dependencies:[s.a],getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("fillPatternTexture"in e){var n=e.fillPatternTexture;return{fill_patternTexture:n,fill_patternTextureSize:[n.width,n.height]}}if(e.viewport){var r=e.viewport,a=e.fillPatternMask,i=void 0===a||a,o=e.fillPatternEnabled,l=void 0===o||o,u=t.project_uCoordinateOrigin,s=t.project_uCoordinateSystem,c=s===_.a.CARTESIAN?u:r.projectPosition(u);return{fill_uvCoordinateOrigin:c.slice(0,2),fill_patternMask:i,fill_patternEnabled:l}}return{}}},U=(B={},Object(F.a)(B,10241,9729),Object(F.a)(B,10240,9729),Object(F.a)(B,10242,33071),Object(F.a)(B,10243,33071),B),V=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.pattern,a=void 0!==n&&n;return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).call(this,{pattern:a}))}var n,u;return Object(l.a)(t,e),Object(a.a)(t,[{key:"isEnabled",value:function(e){return e.getAttributeManager()&&!e.state.pathTesselator}},{key:"getShaders",value:function(e){return e.isEnabled(this)?{modules:[e.opts.pattern&&z].filter(Boolean)}:null}},{key:"initializeState",value:function(e,t){if(t.isEnabled(this)){var n=this.getAttributeManager();t.opts.pattern&&n.add({fillPatternFrames:{size:4,accessor:"getFillPattern",transform:t.getPatternFrame.bind(this),shaderAttributes:{fillPatternFrames:{divisor:0},instanceFillPatternFrames:{divisor:1}}},fillPatternScales:{size:1,accessor:"getFillPatternScale",defaultValue:1,shaderAttributes:{fillPatternScales:{divisor:0},instanceFillPatternScales:{divisor:1}}},fillPatternOffsets:{size:2,accessor:"getFillPatternOffset",shaderAttributes:{fillPatternOffsets:{divisor:0},instanceFillPatternOffsets:{divisor:1}}}}),this.setState({emptyTexture:new N.a(this.context.gl,{data:new Uint8Array(4),width:1,height:1})})}}},{key:"updateState",value:function(e,t){var n=e.props,r=e.oldProps;t.isEnabled(this)&&(n.fillPatternAtlas&&n.fillPatternAtlas!==r.fillPatternAtlas&&t.loadPatternAtlas.call(this,n),n.fillPatternMapping&&n.fillPatternMapping!==r.fillPatternMapping&&t.loadPatternMapping.call(this,n))}},{key:"draw",value:function(e,t){if(t.isEnabled(this)){var n=this.state.patternTexture;this.setModuleParameters({fillPatternTexture:n||this.state.emptyTexture})}}},{key:"finalizeState",value:function(){var e=this.state,t=e.patternTexture,n=e.emptyTexture;t&&t.delete(),n&&n.delete()}},{key:"loadPatternAtlas",value:(u=Object(I.a)(j.a.mark((function e(t){var n,r,a,i;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.fillPatternAtlas,r=t.fetch,this.state.patternTexture&&this.state.patternTexture.delete(),this.setState({patternTexture:null}),"string"!=typeof(a=n)){e.next=8;break}return e.next=7,r(a,{propName:"fillPatternAtlas",layer:this});case 7:a=e.sent;case 8:i=a instanceof N.a?a:new N.a(this.context.gl,{data:a,parameters:U}),this.setState({patternTexture:i});case 10:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"loadPatternMapping",value:(n=Object(I.a)(j.a.mark((function e(t){var n,r,a;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.fillPatternMapping,r=t.fetch,this.setState({patternMapping:null}),"string"!=typeof(a=n)){e.next=7;break}return e.next=6,r(a,{propName:"fillPatternMapping",layer:this});case 6:a=e.sent;case 7:this.setState({patternMapping:a}),this.getAttributeManager().invalidate("getFillPattern"),this.setNeedsUpdate();case 10:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getPatternFrame",value:function(e){var t=this.state.patternMapping,n=t&&t[e];return n?[n.x,n.y,n.width,n.height]:[0,0,0,0]}}]),t}(u.a);V.extensionName="FillStyleExtension",V.defaultProps={fillPatternEnabled:!0,fillPatternAtlas:null,fillPatternMapping:null,fillPatternMask:!0,getFillPattern:{type:"accessor",value:function(e){return e.pattern}},getFillPatternScale:{type:"accessor",value:1},getFillPatternOffset:{type:"accessor",value:[0,0]}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return I})),n.d(t,"WebMercatorViewport",(function(){return I})),n.d(t,"fitBounds",(function(){return j})),n.d(t,"normalizeViewportProps",(function(){return F})),n.d(t,"flyToViewport",(function(){return z})),n.d(t,"getFlyToDuration",(function(){return U})),n.d(t,"lngLatToWorld",(function(){return x})),n.d(t,"worldToLngLat",(function(){return M})),n.d(t,"worldToPixels",(function(){return k})),n.d(t,"pixelsToWorld",(function(){return D})),n.d(t,"getMeterZoom",(function(){return w})),n.d(t,"getDistanceScales",(function(){return S})),n.d(t,"addMetersToLngLat",(function(){return T})),n.d(t,"getViewMatrix",(function(){return C})),n.d(t,"getProjectionMatrix",(function(){return P})),n.d(t,"getProjectionParameters",(function(){return L})),n.d(t,"PerspectiveMercatorViewport",(function(){return I})),n.d(t,"getUncenteredViewMatrix",(function(){return C})),n.d(t,"projectFlat",(function(){return x})),n.d(t,"unprojectFlat",(function(){return M}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(18),u=n(20),s=n(28),c=n(64);function d(e,t){var n=c.n([],t,e);return c.k(n,n,1/n[3]),n}function f(e,t){var n=e%t;return n<0?t+n:n}function p(e,t,n){return n*t+(1-n)*e}var h=n(22),m=n(45),g=n(31);function v(e,t){if(!e)throw new Error(t||"viewport-mercator-project: assertion failed.")}var y=Math.PI,b=y/4,A=y/180,_=180/y;function O(e){return Math.pow(2,e)}function E(e){return Math.log2(e)}function x(e,t){var n=Object(s.a)(e,2),r=n[0],a=n[1];v(Number.isFinite(r)&&Number.isFinite(t)),v(Number.isFinite(a)&&a>=-90&&a<=90,"invalid latitude");var i=a*A;return[(t*=512)*(r*A+y)/(2*y),t*(y-Math.log(Math.tan(b+.5*i)))/(2*y)]}function M(e,t){var n=Object(s.a)(e,2),r=n[0],a=n[1],i=r/(t*=512)*(2*y)-y,o=2*(Math.atan(Math.exp(y-a/t*(2*y)))-b);return[i*_,o*_]}function w(e){var t=e.latitude;return v(Number.isFinite(t)),E(4003e4*Math.cos(t*A))-9}function S(e){var t=e.latitude,n=e.longitude,r=e.zoom,a=e.scale,i=e.highPrecision,o=void 0!==i&&i;a=void 0!==a?a:O(r),v(Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(a));var l={},u=512*a,s=Math.cos(t*A),c=u/360,d=c/s,f=u/4003e4/s;if(l.pixelsPerMeter=[f,-f,f],l.metersPerPixel=[1/f,-1/f,1/f],l.pixelsPerDegree=[c,-d,f],l.degreesPerPixel=[1/c,-1/d,1/f],o){var p=A*Math.tan(t*A)/s,h=c*p/2,m=u/4003e4*p,g=m/d*f;l.pixelsPerDegree2=[0,-h,m],l.pixelsPerMeter2=[g,0,g]}return l}function T(e,t){var n=Object(s.a)(e,3),r=n[0],a=n[1],i=n[2],o=Object(s.a)(t,3),l=o[0],u=o[1],c=o[2],d=S({longitude:r,latitude:a,scale:1,highPrecision:!0}),f=d.pixelsPerMeter,p=d.pixelsPerMeter2,h=x(e,1);h[0]+=l*(f[0]+p[0]*u),h[1]+=u*(f[1]+p[1]*u);var m=M(h,1),g=(i||0)+(c||0);return Number.isFinite(i)||Number.isFinite(c)?[m[0],m[1],g]:m}function C(e){var t=e.height,n=e.pitch,r=e.bearing,a=e.altitude,i=e.center,o=void 0===i?null:i,l=e.flipY,u=void 0!==l&&l,s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return h.p(s,s,[0,0,-a]),h.o(s,s,[1,1,1/t]),h.l(s,s,-n*A),h.n(s,s,r*A),u&&h.o(s,s,[1,-1,1]),o&&h.p(s,s,g.k([],o)),s}function L(e){var t=e.width,n=e.height,r=e.altitude,a=void 0===r?1.5:r,i=e.pitch,o=void 0===i?0:i,l=e.nearZMultiplier,u=void 0===l?1:l,s=e.farZMultiplier,c=void 0===s?1:s,d=o*A,f=Math.atan(.5/a),p=Math.sin(f)*a/Math.sin(Math.PI/2-d-f),h=Math.cos(Math.PI/2-d)*p+a;return{fov:2*Math.atan(n/2/a),aspect:t/n,focalDistance:a,near:u,far:h*c}}function P(e){var t=e.width,n=e.height,r=e.pitch,a=L({width:t,height:n,altitude:e.altitude,pitch:r,nearZMultiplier:e.nearZMultiplier,farZMultiplier:e.farZMultiplier}),i=a.fov,o=a.aspect,l=a.near,u=a.far;return h.j([],i,o,l,u)}function k(e,t){var n=Object(s.a)(e,3),r=n[0],a=n[1],i=n[2],o=void 0===i?0:i;return v(Number.isFinite(r)&&Number.isFinite(a)&&Number.isFinite(o)),d(t,[r,a,o,1])}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Object(s.a)(e,3),a=r[0],i=r[1],o=r[2];if(v(Number.isFinite(a)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(o)){var l=d(t,[a,i,o,1]);return l}var u=d(t,[a,i,0,1]),c=d(t,[a,i,1,1]),f=u[2],p=c[2],h=f===p?0:((n||0)-f)/(p-f);return m.c([],u,c,h)}var R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function j(e){var t=e.width,n=e.height,r=e.bounds,a=e.minExtent,i=void 0===a?0:a,o=e.maxZoom,l=void 0===o?24:o,u=e.padding,c=void 0===u?0:u,d=e.offset,f=void 0===d?[0,0]:d,p=Object(s.a)(r,2),h=Object(s.a)(p[0],2),m=h[0],g=h[1],y=Object(s.a)(p[1],2),b=y[0],A=y[1];if(Number.isFinite(c)){c={top:c,bottom:c,left:c,right:c}}else v(Number.isFinite(c.top)&&Number.isFinite(c.bottom)&&Number.isFinite(c.left)&&Number.isFinite(c.right));var _=new I({width:t,height:n,longitude:0,latitude:0,zoom:0}),O=_.project([m,A]),E=_.project([b,g]),x=[Math.max(Math.abs(E[0]-O[0]),i),Math.max(Math.abs(E[1]-O[1]),i)],M=[t-c.left-c.right-2*Math.abs(f[0]),n-c.top-c.bottom-2*Math.abs(f[1])];v(M[0]>0&&M[1]>0);var w=M[0]/x[0],S=M[1]/x[1],T=(c.right-c.left)/2/w,C=(c.bottom-c.top)/2/S,L=[(E[0]+O[0])/2+T,(E[1]+O[1])/2+C],P=_.unproject(L),k=_.zoom+Math.log2(Math.abs(Math.min(w,S)));return{longitude:P[0],latitude:P[1],zoom:Math.min(k,l)}}var I=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.width,l=n.height,s=n.latitude,c=void 0===s?0:s,d=n.longitude,f=void 0===d?0:d,p=n.zoom,h=void 0===p?0:p,m=n.pitch,g=void 0===m?0:m,v=n.bearing,y=void 0===v?0:v,b=n.altitude,A=void 0===b?1.5:b,_=n.nearZMultiplier,E=n.farZMultiplier;Object(r.a)(this,t),a=a||1,l=l||1;var M=O(h);A=Math.max(.75,A);var w=x([f,c],M);w[2]=0;var T=P({width:a,height:l,pitch:g,bearing:y,altitude:A,nearZMultiplier:_||1/l,farZMultiplier:E||1.01}),L=C({height:l,center:w,pitch:g,bearing:y,altitude:A,flipY:!0});return(e=Object(i.a)(this,Object(o.a)(t).call(this,{width:a,height:l,viewMatrix:L,projectionMatrix:T}))).latitude=c,e.longitude=f,e.zoom=h,e.pitch=g,e.bearing=y,e.altitude=A,e.scale=M,e.center=w,e.pixelsPerMeter=S(Object(u.a)(Object(u.a)(e))).pixelsPerMeter[2],Object.freeze(Object(u.a)(Object(u.a)(e))),e}return Object(l.a)(t,e),Object(a.a)(t,[{key:"projectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return x(e,t)}},{key:"unprojectFlat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return M(e,t)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=D(e.pos,this.pixelUnprojectionMatrix),r=x(t,this.scale),a=m.a([],r,m.d([],n));return M(m.a([],this.center,a),this.scale)}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,a=this.height,i=j(Object.assign({width:r,height:a,bounds:e},n)),o=i.longitude,l=i.latitude,u=i.zoom;return new t({width:r,height:a,longitude:o,latitude:l,zoom:u})}}]),t}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width,a=t.height,i=t.viewMatrix,o=void 0===i?R:i,l=t.projectionMatrix,u=void 0===l?R:l;Object(r.a)(this,e),this.width=n||1,this.height=a||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=o,this.projectionMatrix=u;var s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];h.h(s,s,this.projectionMatrix),h.h(s,s,this.viewMatrix),this.viewProjectionMatrix=s;var c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];h.o(c,c,[this.width/2,-this.height/2,1]),h.p(c,c,[1,-1,0]),h.h(c,c,this.viewProjectionMatrix);var d=h.f([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],c);if(!d)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=c,this.pixelUnprojectionMatrix=d,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return Object(a.a)(e,[{key:"equals",value:function(t){return t instanceof e&&(t.width===this.width&&t.height===this.height&&h.b(t.projectionMatrix,this.projectionMatrix)&&h.b(t.viewMatrix,this.viewMatrix))}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,a=this.projectPosition(e),i=k(a,this.pixelProjectionMatrix),o=Object(s.a)(i,2),l=o[0],u=o[1],c=r?u:this.height-u;return 2===e.length?[l,c]:[l,c,i[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,a=t.targetZ,i=Object(s.a)(e,3),o=i[0],l=i[1],u=i[2],c=r?l:this.height-l,d=a&&a*this.pixelsPerMeter,f=D([o,c,u],this.pixelUnprojectionMatrix,d),p=this.unprojectPosition(f),h=Object(s.a)(p,3),m=h[0],g=h[1],v=h[2];return Number.isFinite(u)?[m,g,v]:Number.isFinite(a)?[m,g,a]:[m,g]}},{key:"projectPosition",value:function(e){var t=this.projectFlat(e),n=Object(s.a)(t,2);return[n[0],n[1],(e[2]||0)*this.pixelsPerMeter]}},{key:"unprojectPosition",value:function(e){var t=this.unprojectFlat(e),n=Object(s.a)(t,2);return[n[0],n[1],(e[2]||0)/this.pixelsPerMeter]}},{key:"projectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]||this.scale;return e}},{key:"unprojectFlat",value:function(e){arguments.length>1&&void 0!==arguments[1]||this.scale;return e}}]),e}());function F(e){var t=e.width,n=e.height,r=e.longitude,a=e.latitude,i=e.zoom,o=e.pitch,l=void 0===o?0:o,u=e.bearing,s=void 0===u?0:u;(r<-180||r>180)&&(r=f(r+180,360)-180),(s<-180||s>180)&&(s=f(s+180,360)-180);var c=new I({width:t,height:n,longitude:r,latitude:a,zoom:i}),d=c.project([r,85.05113])[1],p=c.project([r,-85.05113])[1],h=0;return p-d0?h=d:p3&&void 0!==arguments[3]?arguments[3]:{},a={},i=V(e,t,r),o=i.startZoom,l=i.startCenterXY,u=i.uDelta,s=i.w0,c=i.u1,d=i.S,f=i.rho,h=i.rho2,g=i.r0;if(c<.01){for(var v=0;v2&&void 0!==arguments[2]?arguments[2]:{},a=r=Object.assign({},B,r),i=a.screenSpeed,o=a.speed,l=a.maxDuration,u=V(e,t,r),s=u.S,c=u.rho,d=1e3*s;return n=Number.isFinite(i)?d/(i/c):d/o,Number.isFinite(l)&&n>l?0:n}function V(e,t,n){var r=(n=Object.assign({},B,n)).curve,a=e.zoom,i=[e.longitude,e.latitude],o=O(a),l=t.zoom,u=[t.longitude,t.latitude],s=O(l-a),c=x(i,o),d=x(u,o),f=m.f([],d,c),p=Math.max(e.width,e.height),h=p/s,g=m.b(f),v=Math.max(g,.01),y=r*r,b=(h*h-p*p+y*y*v*v)/(2*p*y*v),A=(h*h-p*p-y*y*v*v)/(2*h*y*v),_=Math.log(Math.sqrt(b*b+1)-b),E=Math.log(Math.sqrt(A*A+1)-A);return{startZoom:a,startCenterXY:c,uDelta:f,w0:p,u1:g,S:(E-_)/r,rho:r,rho2:y,r0:_,r1:E}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var r=n(37),a=n(119),i=n(654);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},a=n.copyState,l=void 0!==a&&a,u=n.log,s=void 0===u?function(){}:u;Object(r.a)(this,e),this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=l?Object(o.a)(t):Object.assign({},i.c),this.log=s,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return Object(a.a)(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){Object(l.a)(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];Object(o.c)(this.gl,e,this.cache),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var a in e){Object(l.a)(void 0!==a);var i=e[a],o=this.cache[a];Object(l.d)(i,o)||(n=!0,t=o,r&&!(a in r)&&(r[a]=o),this.cache[a]=i)}return{valueChanged:n,oldValue:t}}}]),e}();function f(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enable,a=void 0===r||r,o=n.copyState;if(Object(l.a)(void 0!==o),!t.state){var f=void 0!==e?e:window;for(var p in f.polyfillContext&&f.polyfillContext(t),t.state=new d(t,{copyState:o,enable:a}),c(t),i.b){var h=i.b[p];s(t,p,h)}u(t,"getParameter"),u(t,"isEnabled")}return t.state.enable=a,t}function p(e){e.state||f(e,{copyState:!1}),e.state.push()}function h(e){Object(l.a)(e.state),e.state.pop()}}).call(this,n(67))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;for(var n in e){var a=e[n],i=t[n];if(!(a===i||Array.isArray(a)&&Array.isArray(i)&&r(a,i)))return!1}return!0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(2),a=n(28),i=n(11),o=n(19),l=n(20),u=n(14),s=n(29),c=n(12),d=n(18),f=n(25),p=n(117),h=n(310),m=n(263),g=n(483),v=n(660),y=n(1900),b=n(173),A=n(232),_=n(73),O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(this,t),(n=Object(o.a)(this,Object(u.a)(t).call(this,e,r))).width=null,n.height=null,n.attachments={},n.readBuffer=36064,n.drawBuffers=[36064],n.ownResources=[],n.initialize(r),Object.seal(Object(l.a)(n)),n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"MAX_COLOR_ATTACHMENTS",get:function(){return this.gl.getParameter(this.gl.MAX_COLOR_ATTACHMENTS)}},{key:"MAX_DRAW_BUFFERS",get:function(){return this.gl.getParameter(this.gl.MAX_DRAW_BUFFERS)}}],[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.colorBufferFloat,r=t.colorBufferHalfFloat,a=!0;return n&&(a=Boolean(e.getExtension("EXT_color_buffer_float")||e.getExtension("WEBGL_color_buffer_float")||e.getExtension("OES_texture_float"))),r&&(a=a&&Boolean(e.getExtension("EXT_color_buffer_float")||e.getExtension("EXT_color_buffer_half_float"))),a}},{key:"getDefaultFramebuffer",value:function(e){return e.luma=e.luma||{},e.luma.defaultFramebuffer=e.luma.defaultFramebuffer||new t(e,{id:"default-framebuffer",handle:null,attachments:{}}),e.luma.defaultFramebuffer}}]),Object(c.a)(t,[{key:"initialize",value:function(e){var t=e.width,n=void 0===t?1:t,r=e.height,a=void 0===r?1:r,i=e.attachments,o=void 0===i?null:i,l=e.color,u=void 0===l||l,s=e.depth,c=void 0===s||s,d=e.stencil,f=void 0!==d&&d,p=e.check,h=void 0===p||p,m=e.readBuffer,g=e.drawBuffers;if(Object(_.a)(n>=0&&a>=0,"Width and height need to be integers"),this.width=n,this.height=a,o)for(var v in o){var y=o[v];(Array.isArray(y)?y[0]:y).resize({width:n,height:a})}else o=this._createDefaultAttachments(u,c,f,n,a);this.update({clearAttachments:!0,attachments:o,readBuffer:m,drawBuffers:g}),o&&h&&this.checkStatus()}},{key:"delete",value:function(){var e=!0,n=!1,r=void 0;try{for(var a,i=this.ownResources[Symbol.iterator]();!(e=(a=i.next()).done);e=!0){a.value.delete()}}catch(e){n=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}Object(s.a)(Object(u.a)(t.prototype),"delete",this).call(this)}},{key:"update",value:function(e){var t=e.attachments,n=void 0===t?{}:t,r=e.readBuffer,a=e.drawBuffers,i=e.clearAttachments,o=void 0!==i&&i,l=e.resizeAttachments,u=void 0===l||l;this.attach(n,{clearAttachments:o,resizeAttachments:u});var s=this.gl,c=s.bindFramebuffer(36160,this.handle);return r&&this._setReadBuffer(r),a&&this._setDrawBuffers(a),s.bindFramebuffer(36160,c||null),this}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height;if(null===this.handle)return Object(_.a)(void 0===t&&void 0===n),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;for(var r in void 0===t&&(t=this.gl.drawingBufferWidth),void 0===n&&(n=this.gl.drawingBufferHeight),t!==this.width&&n!==this.height&&f.h.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(t,"x").concat(n))(),this.attachments)this.attachments[r].resize({width:t,height:n});return this.width=t,this.height=n,this}},{key:"attach",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clearAttachments,i=void 0!==r&&r,o=n.resizeAttachments,l=void 0===o||o,u={};i&&Object.keys(this.attachments).forEach((function(e){u[e]=null})),Object.assign(u,e);var s=this.gl.bindFramebuffer(36160,this.handle);for(var c in u){Object(_.a)(void 0!==c,"Misspelled framebuffer binding point?");var d=Number(c),f=u[d],p=f;if(p)if(p instanceof m.a)this._attachRenderbuffer({attachment:d,renderbuffer:p});else if(Array.isArray(f)){var h=Object(a.a)(f,3),g=h[0],v=h[1],y=void 0===v?0:v,b=h[2],A=void 0===b?0:b;p=g,this._attachTexture({attachment:d,texture:g,layer:y,level:A})}else this._attachTexture({attachment:d,texture:p,layer:0,level:0});else this._unattach(d);l&&p&&p.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,s||null),Object.assign(this.attachments,e),Object.keys(this.attachments).filter((function(e){return!t.attachments[e]})).forEach((function(e){delete t.attachments[e]}))}},{key:"checkStatus",value:function(){this.gl;var e=this.getStatus();if(36053!==e)throw new Error(E(e));return this}},{key:"getStatus",value:function(){var e=this.gl,t=e.bindFramebuffer(36160,this.handle),n=e.checkFramebufferStatus(36160);return e.bindFramebuffer(36160,t||null),n}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.color,n=e.depth,r=e.stencil,a=e.drawBuffers,i=void 0===a?[]:a,o=this.gl.bindFramebuffer(36160,this.handle);return(t||n||r)&&Object(g.a)(this.gl,{color:t,depth:n,stencil:r}),i.forEach((function(e,t){Object(g.b)({drawBuffer:t,value:e})})),this.gl.bindFramebuffer(36160,o||null),this}},{key:"readPixels",value:function(){return f.h.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}},{key:"readPixelsToBuffer",value:function(){return f.h.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}},{key:"copyToDataUrl",value:function(){return f.h.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}},{key:"copyToImage",value:function(){return f.h.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}},{key:"copyToTexture",value:function(){return f.h.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}},{key:"blit",value:function(){return f.h.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}},{key:"invalidate",value:function(e){var t=e.attachments,n=void 0===t?[]:t,r=e.x,a=void 0===r?0:r,i=e.y,o=void 0===i?0:i,l=e.width,u=e.height,s=this.gl;Object(b.a)(s);var c=s.bindFramebuffer(36008,this.handle);return 0===a&&0===o&&void 0===l&&void 0===u?s.invalidateFramebuffer(36008,n):s.invalidateFramebuffer(36008,n,a,o,l,u),s.bindFramebuffer(36008,c),this}},{key:"getAttachmentParameter",value:function(e,t,n){var r=this._getAttachmentParameterFallback(t);return null===r&&(this.gl.bindFramebuffer(36160,this.handle),r=this.gl.getFramebufferAttachmentParameter(36160,e,t),this.gl.bindFramebuffer(36160,null)),n&&r>1e3&&(r=Object(A.a)(this.gl,r)),r}},{key:"getAttachmentParameters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[],r={},a=!0,i=!1,o=void 0;try{for(var l,u=n[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value,c=t?Object(A.a)(this.gl,s):s;r[c]=this.getAttachmentParameter(e,s,t)}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return r}},{key:"getParameters",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Object.keys(this.attachments),n={},r=0,a=t;r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e>f.h.level||"undefined"==typeof window)return this;t=t||"Framebuffer ".concat(this.id);var n=Object(v.a)(this,{maxHeight:100});return f.h.image({logLevel:e,message:t,image:n},t)(),this}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?36160:t;return this.gl.bindFramebuffer(n,this.handle),this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=void 0===t?36160:t;return this.gl.bindFramebuffer(n,null),this}},{key:"_createDefaultAttachments",value:function(e,t,n,a,i){var o,l=null;e&&((l=l||{})[36064]=new h.a(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:a,height:i,mipmaps:!1,parameters:(o={},Object(r.a)(o,10241,9729),Object(r.a)(o,10240,9729),Object(r.a)(o,10242,33071),Object(r.a)(o,10243,33071),o)}),this.ownResources.push(l[36064]));return t&&n?((l=l||{})[33306]=new m.a(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:a,height:111}),this.ownResources.push(l[33306])):t?((l=l||{})[36096]=new m.a(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:a,height:i}),this.ownResources.push(l[36096])):n&&Object(_.a)(!1),l}},{key:"_unattach",value:function(e){var t=this.attachments[e];t&&(t instanceof m.a?this.gl.framebufferRenderbuffer(36160,e,36161,null):this.gl.framebufferTexture2D(36160,e,3553,null,0),delete this.attachments[e])}},{key:"_attachRenderbuffer",value:function(e){var t=e.attachment,n=void 0===t?36064:t,r=e.renderbuffer;this.gl.framebufferRenderbuffer(36160,n,36161,r.handle),this.attachments[n]=r}},{key:"_attachTexture",value:function(e){var t=e.attachment,n=void 0===t?36064:t,r=e.texture,a=e.layer,i=e.level,o=this.gl;switch(o.bindTexture(r.target,r.handle),r.target){case 35866:case 32879:o.framebufferTextureLayer(36160,n,r.target,i,a);break;case 34067:var l=function(e){return e<34069?e+34069:e}(a);o.framebufferTexture2D(36160,n,l,r.handle,i);break;case 3553:o.framebufferTexture2D(36160,n,3553,r.handle,i);break;default:Object(_.a)(!1,"Illegal texture type")}o.bindTexture(r.target,null),this.attachments[n]=r}},{key:"_setReadBuffer",value:function(e){var t=this.gl;Object(f.g)(t)?t.readBuffer(e):Object(_.a)(36064===e||1029===e,"Multiple render targets not supported"),this.readBuffer=e}},{key:"_setDrawBuffers",value:function(e){var t=this.gl;if(Object(f.g)(t))t.drawBuffers(e);else{var n=t.getExtension("WEBGL.draw_buffers");n?n.drawBuffersWEBGL(e):Object(_.a)(1===e.length&&(36064===e[0]||1029===e[0]),"Multiple render targets not supported")}this.drawBuffers=e}},{key:"_getAttachmentParameterFallback",value:function(e){var t=Object(y.a)(this.gl);switch(e){case 36052:return t.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return t.WEBGL2?null:8;case 33297:return t.WEBGL2?null:5125;case 33296:return t.WEBGL2||t.EXT_sRGB?null:9729;default:return null}}},{key:"_createHandle",value:function(){return this.gl.createFramebuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteFramebuffer(this.handle)}},{key:"_bindHandle",value:function(e){return this.gl.bindFramebuffer(36160,e)}},{key:"color",get:function(){return this.attachments[36064]||null}},{key:"texture",get:function(){return this.attachments[36064]||null}},{key:"depth",get:function(){return this.attachments[36096]||this.attachments[33306]||null}},{key:"stencil",get:function(){return this.attachments[36128]||this.attachments[33306]||null}}]),t}(p.a);function E(e){return(O.STATUS||{})[e]||"Framebuffer error ".concat(e)}O.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),a=n(26);function i(){}var o={onStart:i,onUpdate:i,onInterrupt:i,onEnd:i},l=function(){function e(t){Object(r.a)(this,e),this._inProgress=!1,this._handle=null,this.timeline=t,this.settings={}}return Object(a.a)(e,[{key:"start",value:function(e){this.cancel(),this.settings=Object.assign({},o,e),this._inProgress=!0,this.settings.onStart(this)}},{key:"end",value:function(){this._inProgress&&(this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,this.settings.onEnd(this))}},{key:"cancel",value:function(){this._inProgress&&(this.settings.onInterrupt(this),this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}},{key:"update",value:function(){if(!this._inProgress)return!1;if(null===this._handle){var e=this.timeline,t=this.settings;this._handle=e.addChannel({delay:e.getTime(),duration:t.duration})}return this.time=this.timeline.getTime(this._handle),this._onUpdate(),this.settings.onUpdate(this),this.timeline.isFinished(this._handle)&&this.end(),!0}},{key:"_onUpdate",value:function(){}},{key:"inProgress",get:function(){return this._inProgress}}]),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(0),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.n(r).a.version.split("."),2),i=a[0],o=a[1],l=Number(o)>13||Number(i)>13,u=function(e){return l?e:e&&e.getDOMNode()},s={},c=!0;function d(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.process&&c||n&&s[t]||(console.warn(t),s[t]=!0)}}).call(this,n(67))},function(e,t,n){"use strict";var r=n(199);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";function r(e,t,n){var r=t[0],a=t[1],i=n[3]*r+n[7]*a||1;return e[0]=(n[0]*r+n[4]*a)/i,e[1]=(n[1]*r+n[5]*a)/i,e}function a(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[3]*r+n[7]*a+n[11]*i||1;return e[0]=(n[0]*r+n[4]*a+n[8]*i)/o,e[1]=(n[1]*r+n[5]*a+n[9]*i)/o,e[2]=(n[2]*r+n[6]*a+n[10]*i)/o,e}function i(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a,e[1]=n[1]*r+n[3]*a,e[2]=t[2],e}function o(e,t,n){var r=t[0],a=t[1],i=t[2];return e[0]=n[0]*r+n[3]*a+n[6]*i,e[1]=n[1]*r+n[4]*a+n[7]*i,e[2]=n[2]*r+n[5]*a+n[8]*i,e[3]=t[3],e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return re})),n.d(t,"a",(function(){return ae}));var r=n(295),a=n(307),i=n(447);var o=n(223),l=Array.prototype.find;function u(){return this.firstElementChild}var s=Array.prototype.filter;function c(){return this.children}var d=function(e){return new Array(e.length)};function f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}f.prototype={constructor:f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var p=function(e){return function(){return e}};function h(e,t,n,r,a,i){for(var o,l=0,u=t.length,s=i.length;lt?1:e>=t?0:NaN}var y=n(296);function b(e){return function(){this.removeAttribute(e)}}function A(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _(e,t){return function(){this.setAttribute(e,t)}}function O(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function E(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function x(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var M=n(448);function w(e){return function(){delete this[e]}}function S(e,t){return function(){this[e]=t}}function T(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function C(e){return e.trim().split(/^|\s+/)}function L(e){return e.classList||new P(e)}function P(e){this._node=e,this._names=C(e.getAttribute("class")||"")}function k(e,t){for(var n=L(e),r=-1,a=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function F(){this.textContent=""}function N(e){return function(){this.textContent=e}}function B(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function z(){this.innerHTML=""}function U(e){return function(){this.innerHTML=e}}function V(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function H(){this.nextSibling&&this.parentNode.appendChild(this)}function Y(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var W=n(224);function G(){return null}function q(){var e=this.parentNode;e&&e.removeChild(this)}function X(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Z(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function J(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r=w&&(w=M+1);!(x=_[w])&&++w=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=v);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i1?this.each((null==t?w:"function"==typeof t?T:S)(e,t)):this.node()[e]},classed:function(e,t){var n=C(e+"");if(arguments.length<2){for(var r=L(this.node()),a=-1,i=n.length;++a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==l[1]?l[1]:[],r=l.length>2&&void 0!==l[2]?l[2]:{},i=l.length>3&&void 0!==l[3]?l[3]:{},!(o=O(t,n,g(g({},r),{},{nothrow:!0}),i))){e.next=6;break}return e.abrupt("return",o);case 6:if(!Object(h.b)(t)){e.next=11;break}return e.next=9,Object(p.b)(t,0,10);case 9:t=e.sent,o=O(t,n,r,i);case 11:if(o||r.nothrow){e.next=13;break}throw new Error(E(t));case 13:return e.abrupt("return",o);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&!Array.isArray(t))return Object(c.b)(t);x(t=[].concat(Object(l.a)(t||[]),Object(l.a)(Object(f.b)())));var a=Object(d.b)(e),i=a.url,o=a.type,u=M(t,i||r.url);if(!(u=(u=u||w(t,o))||S(t,e))&&!n.nothrow)throw new Error(E(e));return u}function E(e){var t=Object(d.b)(e),n=t.url,r=t.type,a="No valid loader found";return e&&(a+=' data: "'.concat(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof e)return e.slice(0,t);if(ArrayBuffer.isView(e))return L(e.buffer,e.byteOffset,t);if(e instanceof ArrayBuffer){var n=0;return L(e,n,t)}return""}(e),'", contentType: "').concat(r,'"')),n&&(a+=" url: ".concat(n)),a}function x(e){var t,n=v(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;Object(c.b)(r)}}catch(e){n.e(e)}finally{n.f()}}function M(e,t){var n=t&&t.match(b),r=n&&n[1];return r&&function(e,t){t=t.toLowerCase();var n,r=v(e);try{for(r.s();!(n=r.n()).done;){var a,i=n.value,o=v(i.extensions);try{for(o.s();!(a=o.n()).done;){if(a.value.toLowerCase()===t)return i}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return null}(e,r)}function w(e,t){var n,r=v(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.mimeTypes&&a.mimeTypes.includes(t))return a;if(t==="application/x.".concat(a.id))return a}}catch(e){r.e(e)}finally{r.f()}return null}function S(e,t){if(!t)return null;var n,r=v(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("string"==typeof t){if(T(t,a))return a}else if(ArrayBuffer.isView(t)){if(C(t.buffer,t.byteOffset,a))return a}else if(t instanceof ArrayBuffer){if(C(t,0,a))return a}}}catch(e){r.e(e)}finally{r.f()}return null}function T(e,t){return t.testText&&t.testText(e)}function C(e,t,n){return(Array.isArray(n.tests)?n.tests:[n.tests]).some((function(r){return function(e,t,n,r){if(r instanceof ArrayBuffer)return Object(s.a)(r,e,r.byteLength);switch(Object(o.a)(r)){case"function":return r(e,n);case"string":var a=L(e,t,r.length);return r===a;default:return!1}}(e,t,n,r)}))}function L(e,t,n){if(e.byteLength1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r,a=n(28),i=n(2),o=n(73),l=(r={},Object(i.a)(r,5126,[5126,1,"float"]),Object(i.a)(r,35664,[5126,2,"vec2"]),Object(i.a)(r,35665,[5126,3,"vec3"]),Object(i.a)(r,35666,[5126,4,"vec4"]),Object(i.a)(r,5124,[5124,1,"int"]),Object(i.a)(r,35667,[5124,2,"ivec2"]),Object(i.a)(r,35668,[5124,3,"ivec3"]),Object(i.a)(r,35669,[5124,4,"ivec4"]),Object(i.a)(r,5125,[5125,1,"uint"]),Object(i.a)(r,36294,[5125,2,"uvec2"]),Object(i.a)(r,36295,[5125,3,"uvec3"]),Object(i.a)(r,36296,[5125,4,"uvec4"]),Object(i.a)(r,35670,[5126,1,"bool"]),Object(i.a)(r,35671,[5126,2,"bvec2"]),Object(i.a)(r,35672,[5126,3,"bvec3"]),Object(i.a)(r,35673,[5126,4,"bvec4"]),Object(i.a)(r,35674,[5126,8,"mat2"]),Object(i.a)(r,35685,[5126,8,"mat2x3"]),Object(i.a)(r,35686,[5126,8,"mat2x4"]),Object(i.a)(r,35675,[5126,12,"mat3"]),Object(i.a)(r,35687,[5126,12,"mat3x2"]),Object(i.a)(r,35688,[5126,12,"mat3x4"]),Object(i.a)(r,35676,[5126,16,"mat4"]),Object(i.a)(r,35689,[5126,16,"mat4x2"]),Object(i.a)(r,35690,[5126,16,"mat4x3"]),r);function u(e){switch(e){case 0:return 0;case 1:case 3:case 2:return 1;case 4:case 5:case 6:return 4;default:return Object(o.a)(!1),0}}function s(e){var t=l[e];if(!t)return null;var n=Object(a.a)(t,2);return{type:n[0],components:n[1]}}function c(e,t){switch(e){case 5120:case 5121:case 5122:case 5123:e=5126}for(var n in l){var r=Object(a.a)(l[n],3),i=r[0],o=r[1],u=r[2];if(i===e&&o===t)return{glType:n,name:u}}return null}},function(e,t,n){"use strict";var r=n(24),a=n(26),i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.overAlloc,a=void 0===n?2:n,i=t.poolSize,o=void 0===i?100:i;Object(r.a)(this,e),this.overAlloc=a,this.poolSize=o,this._pool=[]}return Object(a.a)(e,[{key:"allocate",value:function(e,t,n){var r=n.size,a=void 0===r?1:r,i=n.type,o=n.padding,l=void 0===o?0:o,u=n.copy,s=void 0!==u&&u,c=n.initialize,d=void 0!==c&&c,f=i||e&&e.constructor||Float32Array,p=t*a+l;if(ArrayBuffer.isView(e)){if(p<=e.length)return e;if(p*e.BYTES_PER_ELEMENT<=e.buffer.byteLength)return new f(e.buffer,0,p)}var h=this._allocate(f,p,d);return e&&s?h.set(e):d||h.fill(0,0,4),this._release(e),h}},{key:"release",value:function(e){this._release(e)}},{key:"_allocate",value:function(e,t,n){t=Math.max(Math.ceil(t*this.overAlloc),1);var r=this._pool,a=e.BYTES_PER_ELEMENT*t,i=r.findIndex((function(e){return e.byteLength>=a}));if(i>=0){var o=new e(r.splice(i,1)[0],0,t);return n&&o.fill(0),o}return new e(t)}},{key:"_release",value:function(e){if(ArrayBuffer.isView(e)){var t=this._pool,n=e.buffer,r=n.byteLength,a=t.findIndex((function(e){return e.byteLength>=r}));a<0?t.push(n):(a>0||t.lengththis.poolSize&&t.shift()}}}]),e}();t.a=new i},function(e,t,n){"use strict";function r(e){return e[0]}function a(e){return e[1]}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f}));var r,a,i,o=n(2),l=n(25),u=(r={},Object(o.a)(r,6407,{dataFormat:6407,types:[5121,33635]}),Object(o.a)(r,6408,{dataFormat:6408,types:[5121,32819,32820]}),Object(o.a)(r,6406,{dataFormat:6406,types:[5121]}),Object(o.a)(r,6409,{dataFormat:6409,types:[5121]}),Object(o.a)(r,6410,{dataFormat:6410,types:[5121]}),Object(o.a)(r,33326,{dataFormat:6403,types:[5126],gl2:!0}),Object(o.a)(r,33328,{dataFormat:33319,types:[5126],gl2:!0}),Object(o.a)(r,34837,{dataFormat:6407,types:[5126],gl2:!0}),Object(o.a)(r,34836,{dataFormat:6408,types:[5126],gl2:!0}),r),s=(a={},Object(o.a)(a,6403,1),Object(o.a)(a,36244,1),Object(o.a)(a,33319,2),Object(o.a)(a,33320,2),Object(o.a)(a,6407,3),Object(o.a)(a,36248,3),Object(o.a)(a,6408,4),Object(o.a)(a,36249,4),Object(o.a)(a,6402,1),Object(o.a)(a,34041,1),Object(o.a)(a,6406,1),Object(o.a)(a,6409,1),Object(o.a)(a,6410,2),a),c=(i={},Object(o.a)(i,5126,4),Object(o.a)(i,5125,4),Object(o.a)(i,5124,4),Object(o.a)(i,5123,2),Object(o.a)(i,5122,2),Object(o.a)(i,5131,2),Object(o.a)(i,5120,1),Object(o.a)(i,5121,1),i);function d(e,t){var n=u[t];if(!n)return!1;if(void 0===n.gl1&&void 0===n.gl2)return!0;var r=Object(l.g)(e)&&n.gl2||n.gl1;return"string"==typeof r?e.getExtension(r):r}function f(e,t){var n=u[t];switch(n&&n.types[0]){case 5126:return e.getExtension("OES_texture_float_linear");case 5131:return e.getExtension("OES_texture_half_float_linear");default:return!0}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o}));function r(e){switch(ArrayBuffer.isView(e)?e.constructor:e){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error("Failed to deduce GL constant from typed array")}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clamped,r=void 0===n||n;switch(e){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return r?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function i(e){var t=e.data,n=e.width,r=e.height,a=e.bytesPerPixel,i=void 0===a?4:a,o=e.temp,l=n*i;o=o||new Uint8Array(l);for(var u=0;u-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?s.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&u.call(e,"callee")&&(!d.call(e,"callee")||"[object Arguments]"==s.call(e))}(e)||!!(f&&e&&e[f])}function m(e){if("string"==typeof e||function(e){return"symbol"==typeof e||v(e)&&"[object Symbol]"==s.call(e)}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var g=Array.isArray;function v(e){return!!e&&"object"==typeof e}var y,b,A=(y=function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var r=-1,a=t.length,i={};++r0&&r(s)?n>1?e(s,n-1,r,a,i):o(i,s):a||(i[i.length]=s)}return i}(t,1),m))},b=p(void 0===b?y.length-1:b,0),function(){for(var e=arguments,t=-1,n=p(e.length-b,0),r=Array(n);++t2&&void 0!==arguments[2]?arguments[2]:{},r={dynamicDomain:[],fixedDomain:[],cpu:[],gpu:[]};return t.forEach((function(t){$(t.type,t.value)&&(0,x.toArray)(t.dataId).includes(e)&&((t.fixedDomain||n.ignoreDomain?r.fixedDomain:r.dynamicDomain).push(t),(t.gpu&&!n.cpuOnly?r.gpu:r.cpu).push(t))})),r},t.diffFilters=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.entries(e).forEach((function(e){var r=(0,c.default)(e,2),a=r[0],i=r[1];i.forEach((function(e){var r=(t[a]||[]).find((function(t){return t.id===e.id}));r?["name","value","dataId"].forEach((function(t){e[t]!==r[t]&&(n=(0,x.set)([a,e.id],"".concat(t,"_changed"),n))})):n=(0,x.set)([a,e.id],"added",n)})),(t[a]||[]).forEach((function(e){i.find((function(t){return t.id===e.id}))||(n=(0,x.set)([a,e.id],"deleted",n))})),n[a]||(n[a]=null)})),n},t.adjustValueToFilterDomain=Y,t.getNumericFieldDomain=function(e,t){var n=[0,1],r=.1,a=e.mapIndex(t);if(e.numRows()>1){var i=(n=O.getLinearDomain(a))[1]-n[0];i||(n[1]=n[0]+1),r=W(i)||r,n[0]=X(n[0],r,"floor"),n[1]=X(n[1],r,"ceil")}var o=q(n,a),l=o.histogram,u=o.enlargedHistogram;return{domain:n,step:r,histogram:l,enlargedHistogram:u}},t.getNumericStepSize=W,t.getTimestampFieldDomain=function(e,t){var n=e.mapIndex(t),r=O.getLinearDomain(n),a=Q(r),i=.01,o=r[1]-r[0],l=T.find((function(e){return e.max>=o}));l&&(i=l.step);var u=q(r,n),s=u.histogram,c=u.enlargedHistogram;return{domain:r,step:i,mappedValue:n,histogram:s,enlargedHistogram:c,defaultTimeFormat:a}},t.histogramConstruct=G,t.getHistogram=q,t.formatNumberByStep=X,t.isInRange=Z,t.isInPolygon=K,t.isValidTimeDomain=J,t.getTimeWidgetTitleFormatter=Q,t.getTimeWidgetHintFormatter=function(e){if(!J(e))return null;var t=e[1]-e[0];return t>6048e5?"L":t>864e5?"L LT":t>36e5?"LT":"LTS"},t.isValidFilterValue=$,t.getFilterPlot=ee,t.getDefaultFilterPlotType=function(e){var t=k[e.type];if(!t)return null;if(!e.yAxis)return t.default;return t[e.yAxis.type]||null},t.applyFiltersToDatasets=function(e,t,n,r){return(0,x.toArray)(e).reduce((function(e,a){var i=(r||[]).filter((function(e){return e.config.dataId===a})),o=n.filter((function(e){return F(e,a)})),l=t[a];return S(S({},e),{},(0,d.default)({},a,l.filterTable(o,i,{})))}),t)},t.applyFilterFieldName=te,t.mergeFilterDomainStep=ne,t.generatePolygonFilter=function(e,t){var n=e.map((function(e){return e.config.dataId})).filter((function(e){return e})),r=e.map((function(e){return e.id})),a=e.map((function(e){return e.config.label})),i=I(n);return S(S({},i),{},{fixedDomain:!0,type:A.FILTER_TYPES.polygon,name:a,layerId:r,value:re(t,i.id,{isVisible:!0})})},t.filterDatasetCPU=function(e,t){var n=e.filters.filter((function(e){return e.dataId.includes(t)})),r=e.datasets[t];if(!r)return e;var a=r.filterTableCPU(n,e.layers);return(0,x.set)(["datasets",t],a,e)},t.validateFiltersUpdateDatasets=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],a=e.datasets,i=a;return t.forEach((function(t){var o=(0,x.toArray)(t.dataId);if(o.every((function(e){return a[e]}))){var l=o.reduce((function(n,r){var a=i[r],o=e.layers.filter((function(e){return e.config.dataId===a.id})),l=U(n.augmentedDatasets[r]||a,t,o),u=l.filter,c=l.dataset;return u?S(S({},n),{},{filter:n.filter?S(S({},n.filter),ne(n,u)):u,applyToDatasets:[].concat((0,s.default)(n.applyToDatasets),[r]),augmentedDatasets:S(S({},n.augmentedDatasets),{},(0,d.default)({},r,c))}):n}),{filter:null,applyToDatasets:[],augmentedDatasets:{}}),u=l.filter,c=l.applyToDatasets,f=l.augmentedDatasets;u&&(0,g.default)(o,c)&&(n.push(u),i=S(S({},i),f))}else r.push(t)})),{validated:n,failed:r,updatedDatasets:i}},t.getIntervalBins=function(e){var t,n=e.bins,r=null===(t=e.plotType)||void 0===t?void 0:t.interval;if(!r||!n||0===Object.keys(n).length)return null;var a=Object.values(n);return a[0]?a[0][r]:null},t.getFilterIdInFeature=t.featureToFilterValue=t.getPolygonFilterFunctor=t.LAYER_FILTERS=t.FILTER_ID_LENGTH=t.DEFAULT_FILTER_STRUCTURE=t.FILTER_COMPONENTS=t.LIMITED_FILTER_EFFECT_PROPS=t.FILTER_UPDATER_PROPS=t.PLOT_TYPES=t.enlargedHistogramBins=t.histogramBins=t.TimestampStepMap=void 0;var i,o,l,u,s=r(n(36)),c=r(n(55)),d=r(n(4)),f=n(113),p=r(n(155)),h=n(98),m=r(n(96)),g=r(n(274)),v=r(n(833)),y=n(379),b=n(834),A=n(39),_=n(75),O=a(n(835)),E=n(269),x=n(85),M=n(504);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t100)return 1;if(e>3)return.01;if(e>1)return.001;var t=(e/1e3).toExponential(),n=parseFloat(t.split("e")[1]);return new b.Decimal(10).pow(n).toNumber()}function G(e,t,n){return(0,f.histogram)().thresholds((0,f.ticks)(e[0],e[1],n)).domain(e)(t).map((function(e){return{count:e.length,x0:e.x0,x1:e.x1}}))}function q(e,t){return{histogram:G(e,t,30),enlargedHistogram:G(e,t,100)}}function X(e,t,n){return"floor"===n?Math.floor(e*(1/t))/(1/t):Math.ceil(e*(1/t))/(1/t)}function Z(e,t){return!!Array.isArray(t)&&(e>=t[0]&&e<=t[1])}function K(e,t){return(0,v.default)((0,y.point)(e),t)}function J(e){return Array.isArray(e)&&e.every(Number.isFinite)}function Q(e){if(!J(e))return null;var t=e[1]-e[0];return t>31536e6?"L":t>864e5?"L LT":"L LTS"}function $(e,t){if(!e)return!1;switch(e){case A.FILTER_TYPES.select:return!0===t||!1===t;case A.FILTER_TYPES.range:case A.FILTER_TYPES.timeRange:return Array.isArray(t)&&t.every((function(e){return null!==e&&!isNaN(e)}));case A.FILTER_TYPES.multiSelect:return Array.isArray(t)&&Boolean(t.length);case A.FILTER_TYPES.input:return Boolean(t.length);case A.FILTER_TYPES.polygon:var n=(0,m.default)(t,["geometry","coordinates"]);return Boolean(t&&t.id&&n);default:return!0}}function ee(e,t){if(e.plotType===C.histogram||!e.yAxis)return{};var n=e.mappedValue,r=void 0===n?[]:n,a=e.yAxis,i=t.getColumnFieldIdx(a.name);if(i<0)return h.console.warn("yAxis ".concat(a.name," does not exist in dataset")),{lineChart:{},yAxis:a};var o=t.dataContainer.map((function(e,t){return{x:r[t],y:e.valueAt(i)}}),!0).filter((function(e){var t=e.x,n=e.y;return Number.isFinite(t)&&Number.isFinite(n)})).sort((function(e,t){return(0,f.ascending)(e.x,t.x)}));return{lineChart:{series:o,yDomain:(0,f.extent)(o,(function(e){return e.y})),xDomain:[o[0].x,o[o.length-1].x]},yAxis:a}}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,i=!(!a||!a.hasOwnProperty("mergeDomain"))&&a.mergeDomain,o=t.getColumnFieldIdx(n);if(-1===o)return{filter:null,dataset:t};var l=t.getColumnFilterProps(n),u=S(S({},i?ne(e,l):S(S({},e),l)),{},{name:Object.assign((0,s.default)((0,x.toArray)(e.name)),(0,d.default)({},r,n)),fieldIdx:Object.assign((0,s.default)((0,x.toArray)(e.fieldIdx)),(0,d.default)({},r,o)),freeze:!0});return{filter:u,dataset:t}}function ne(e,t){if(!e)return null;if(!t)return e;if(e.fieldType&&e.fieldType!==t.fieldType||!t.domain)return e;var n=e.domain?[].concat((0,s.default)(e.domain||[]),(0,s.default)(t.domain||[])).sort((function(e,t){return e-t})):t.domain,r=S(S(S({},e),t),{},{domain:[n[0],n[n.length-1]]});switch(t.fieldType){case A.ALL_FIELD_TYPES.string:case A.ALL_FIELD_TYPES.date:return S(S({},r),{},{domain:(0,_.unique)(n).sort()});case A.ALL_FIELD_TYPES.timestamp:var a=e.step2&&void 0!==arguments[2]?arguments[2]:{};return S(S({},e),{},{id:e.id,properties:S(S(S({},e.properties),n),{},{filterId:t})})};t.featureToFilterValue=re;t.getFilterIdInFeature=function(e){return(0,m.default)(e,["properties","filterId"])}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),i=r(n(0)),o=r(n(1)),l=r(n(539));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0],n=function(n){var r=n.value,a=n.displayOption,i=void 0===a?M:a;return m.default.createElement(T,{className:"field-selector_list-item"},t?m.default.createElement(S,null,m.default.createElement(e,{type:r.type})):null,m.default.createElement("span",{className:A.classList.listItemAnchor},i(r)))};return n}}C.deps=[E.default];var L=function(){return m.default.createElement("div",null,"Suggested Field")},P=v.default.oneOfType([v.default.string,v.default.arrayOf(v.default.string),v.default.arrayOf(v.default.shape({name:v.default.string,format:v.default.string})),v.default.shape({format:v.default.string,id:v.default.string,name:v.default.string,fieldIdx:v.default.number,type:v.default.number})]);function k(e){var t=function(t){(0,c.default)(r,t);var n=x(r);function r(){var t;(0,l.default)(this,r);for(var a=arguments.length,i=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},r={dynamicDomain:[],fixedDomain:[],cpu:[],gpu:[]};return t.forEach((function(t){$(t.type,t.value)&&(0,x.toArray)(t.dataId).includes(e)&&((t.fixedDomain||n.ignoreDomain?r.fixedDomain:r.dynamicDomain).push(t),(t.gpu&&!n.cpuOnly?r.gpu:r.cpu).push(t))})),r},t.diffFilters=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return Object.entries(e).forEach((function(e){var r=(0,c.default)(e,2),a=r[0],i=r[1];i.forEach((function(e){var r=(t[a]||[]).find((function(t){return t.id===e.id}));r?["name","value","dataId"].forEach((function(t){e[t]!==r[t]&&(n=(0,x.set)([a,e.id],"".concat(t,"_changed"),n))})):n=(0,x.set)([a,e.id],"added",n)})),(t[a]||[]).forEach((function(e){i.find((function(t){return t.id===e.id}))||(n=(0,x.set)([a,e.id],"deleted",n))})),n[a]||(n[a]=null)})),n},t.adjustValueToFilterDomain=Y,t.getNumericFieldDomain=function(e,t){var n=[0,1],r=.1,a=e.mapIndex(t);if(e.numRows()>1){var i=(n=O.getLinearDomain(a))[1]-n[0];i||(n[1]=n[0]+1),r=W(i)||r,n[0]=X(n[0],r,"floor"),n[1]=X(n[1],r,"ceil")}var o=q(n,a),l=o.histogram,u=o.enlargedHistogram;return{domain:n,step:r,histogram:l,enlargedHistogram:u}},t.getNumericStepSize=W,t.getTimestampFieldDomain=function(e,t){var n=e.mapIndex(t),r=O.getLinearDomain(n),a=Q(r),i=.01,o=r[1]-r[0],l=T.find((function(e){return e.max>=o}));l&&(i=l.step);var u=q(r,n),s=u.histogram,c=u.enlargedHistogram;return{domain:r,step:i,mappedValue:n,histogram:s,enlargedHistogram:c,defaultTimeFormat:a}},t.histogramConstruct=G,t.getHistogram=q,t.formatNumberByStep=X,t.isInRange=Z,t.isInPolygon=K,t.isValidTimeDomain=J,t.getTimeWidgetTitleFormatter=Q,t.getTimeWidgetHintFormatter=function(e){if(!J(e))return null;var t=e[1]-e[0];return t>6048e5?"L":t>864e5?"L LT":t>36e5?"LT":"LTS"},t.isValidFilterValue=$,t.getFilterPlot=ee,t.getDefaultFilterPlotType=function(e){var t=k[e.type];if(!t)return null;if(!e.yAxis)return t.default;return t[e.yAxis.type]||null},t.applyFiltersToDatasets=function(e,t,n,r){return(0,x.toArray)(e).reduce((function(e,a){var i=(r||[]).filter((function(e){return e.config.dataId===a})),o=n.filter((function(e){return F(e,a)})),l=t[a];return S(S({},e),{},(0,d.default)({},a,l.filterTable(o,i,{})))}),t)},t.applyFilterFieldName=te,t.mergeFilterDomainStep=ne,t.generatePolygonFilter=function(e,t){var n=e.map((function(e){return e.config.dataId})).filter((function(e){return e})),r=e.map((function(e){return e.id})),a=e.map((function(e){return e.config.label})),i=I(n);return S(S({},i),{},{fixedDomain:!0,type:A.FILTER_TYPES.polygon,name:a,layerId:r,value:re(t,i.id,{isVisible:!0})})},t.filterDatasetCPU=function(e,t){var n=e.filters.filter((function(e){return e.dataId.includes(t)})),r=e.datasets[t];if(!r)return e;var a=r.filterTableCPU(n,e.layers);return(0,x.set)(["datasets",t],a,e)},t.validateFiltersUpdateDatasets=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],a=e.datasets,i=a;return t.forEach((function(t){var o=(0,x.toArray)(t.dataId);if(o.every((function(e){return a[e]}))){var l=o.reduce((function(n,r){var a=i[r],o=e.layers.filter((function(e){return e.config.dataId===a.id})),l=U(n.augmentedDatasets[r]||a,t,o),u=l.filter,c=l.dataset;return u?S(S({},n),{},{filter:n.filter?S(S({},n.filter),ne(n,u)):u,applyToDatasets:[].concat((0,s.default)(n.applyToDatasets),[r]),augmentedDatasets:S(S({},n.augmentedDatasets),{},(0,d.default)({},r,c))}):n}),{filter:null,applyToDatasets:[],augmentedDatasets:{}}),u=l.filter,c=l.applyToDatasets,f=l.augmentedDatasets;u&&(0,g.default)(o,c)&&(n.push(u),i=S(S({},i),f))}else r.push(t)})),{validated:n,failed:r,updatedDatasets:i}},t.getIntervalBins=function(e){var t,n=e.bins,r=null===(t=e.plotType)||void 0===t?void 0:t.interval;if(!r||!n||0===Object.keys(n).length)return null;var a=Object.values(n);return a[0]?a[0][r]:null},t.getFilterIdInFeature=t.featureToFilterValue=t.getPolygonFilterFunctor=t.LAYER_FILTERS=t.FILTER_ID_LENGTH=t.DEFAULT_FILTER_STRUCTURE=t.FILTER_COMPONENTS=t.LIMITED_FILTER_EFFECT_PROPS=t.FILTER_UPDATER_PROPS=t.PLOT_TYPES=t.enlargedHistogramBins=t.histogramBins=t.TimestampStepMap=void 0;var i,o,l,u,s=r(n(36)),c=r(n(55)),d=r(n(4)),f=n(113),p=r(n(155)),h=n(98),m=r(n(96)),g=r(n(274)),v=r(n(833)),y=n(379),b=n(834),A=n(41),_=n(76),O=a(n(987)),E=n(282),x=n(86),M=n(572);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t100)return 1;if(e>3)return.01;if(e>1)return.001;var t=(e/1e3).toExponential(),n=parseFloat(t.split("e")[1]);return new b.Decimal(10).pow(n).toNumber()}function G(e,t,n){return(0,f.histogram)().thresholds((0,f.ticks)(e[0],e[1],n)).domain(e)(t).map((function(e){return{count:e.length,x0:e.x0,x1:e.x1}}))}function q(e,t){return{histogram:G(e,t,30),enlargedHistogram:G(e,t,100)}}function X(e,t,n){return"floor"===n?Math.floor(e*(1/t))/(1/t):Math.ceil(e*(1/t))/(1/t)}function Z(e,t){return!!Array.isArray(t)&&(e>=t[0]&&e<=t[1])}function K(e,t){return(0,v.default)((0,y.point)(e),t)}function J(e){return Array.isArray(e)&&e.every(Number.isFinite)}function Q(e){if(!J(e))return null;var t=e[1]-e[0];return t>31536e6?"L":t>864e5?"L LT":"L LTS"}function $(e,t){if(!e)return!1;switch(e){case A.FILTER_TYPES.select:return!0===t||!1===t;case A.FILTER_TYPES.range:case A.FILTER_TYPES.timeRange:return Array.isArray(t)&&t.every((function(e){return null!==e&&!isNaN(e)}));case A.FILTER_TYPES.multiSelect:return Array.isArray(t)&&Boolean(t.length);case A.FILTER_TYPES.input:return Boolean(t.length);case A.FILTER_TYPES.polygon:var n=(0,m.default)(t,["geometry","coordinates"]);return Boolean(t&&t.id&&n);default:return!0}}function ee(e,t){if(e.plotType===C.histogram||!e.yAxis)return{};var n=e.mappedValue,r=void 0===n?[]:n,a=e.yAxis,i=t.getColumnFieldIdx(a.name);if(i<0)return h.console.warn("yAxis ".concat(a.name," does not exist in dataset")),{lineChart:{},yAxis:a};var o=t.dataContainer.map((function(e,t){return{x:r[t],y:e.valueAt(i)}}),!0).filter((function(e){var t=e.x,n=e.y;return Number.isFinite(t)&&Number.isFinite(n)})).sort((function(e,t){return(0,f.ascending)(e.x,t.x)}));return{lineChart:{series:o,yDomain:(0,f.extent)(o,(function(e){return e.y})),xDomain:[o[0].x,o[o.length-1].x]},yAxis:a}}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,i=!(!a||!a.hasOwnProperty("mergeDomain"))&&a.mergeDomain,o=t.getColumnFieldIdx(n);if(-1===o)return{filter:null,dataset:t};var l=t.getColumnFilterProps(n),u=S(S({},i?ne(e,l):S(S({},e),l)),{},{name:Object.assign((0,s.default)((0,x.toArray)(e.name)),(0,d.default)({},r,n)),fieldIdx:Object.assign((0,s.default)((0,x.toArray)(e.fieldIdx)),(0,d.default)({},r,o)),freeze:!0});return{filter:u,dataset:t}}function ne(e,t){if(!e)return null;if(!t)return e;if(e.fieldType&&e.fieldType!==t.fieldType||!t.domain)return e;var n=e.domain?[].concat((0,s.default)(e.domain||[]),(0,s.default)(t.domain||[])).sort((function(e,t){return e-t})):t.domain,r=S(S(S({},e),t),{},{domain:[n[0],n[n.length-1]]});switch(t.fieldType){case A.ALL_FIELD_TYPES.string:case A.ALL_FIELD_TYPES.date:return S(S({},r),{},{domain:(0,_.unique)(n).sort()});case A.ALL_FIELD_TYPES.timestamp:var a=e.step2&&void 0!==arguments[2]?arguments[2]:{};return S(S({},e),{},{id:e.id,properties:S(S(S({},e.properties),n),{},{filterId:t})})};t.featureToFilterValue=re;t.getFilterIdInFeature=function(e){return(0,m.default)(e,["properties","filterId"])}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),i=r(n(0)),o=r(n(1)),l=r(n(597));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0],n=function(n){var r=n.value,a=n.displayOption,i=void 0===a?M:a;return m.default.createElement(T,{className:"field-selector_list-item"},t?m.default.createElement(S,null,m.default.createElement(e,{type:r.type})):null,m.default.createElement("span",{className:A.classList.listItemAnchor},i(r)))};return n}}C.deps=[E.default];var L=function(){return m.default.createElement("div",null,"Suggested Field")},P=v.default.oneOfType([v.default.string,v.default.arrayOf(v.default.string),v.default.arrayOf(v.default.shape({name:v.default.string,format:v.default.string})),v.default.shape({format:v.default.string,id:v.default.string,name:v.default.string,fieldIdx:v.default.number,type:v.default.number})]);function k(e){var t=function(t){(0,c.default)(r,t);var n=x(r);function r(){var t;(0,l.default)(this,r);for(var a=arguments.length,i=new Array(a),o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))}function E(e){return[O(e[0]),O(e[1])]}function x(e,t){var n=v(t,2),r=n[0],a=n[1];switch(e){case 0:return[1,r,a];case 1:return[-r,1,a];case 2:return[-r,-a,1];case 3:return[-1,-a,-r];case 4:return[a,-1,-r];case 5:return[a,r,-1];default:throw new Error("Invalid face")}}function M(e,t,n,r){if(0===r){1===n&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);var a=t[0];t[0]=t[1],t[1]=a}}function w(e){if("string"==typeof e){if(e.indexOf("/")>0)return e;e=function(e){var t=e.padEnd(16,"0");return b.a.fromString(t,16)}(e)}return function(e){for(var t=b.a.fromString(e,!0,10).toString(2);t.length<64;)t="0"+t;for(var n=t.lastIndexOf("1"),r=t.substring(0,3),a=t.substring(3,n),i=a.length/2,o=b.a.fromString(r,!0,2).toString(10),l=b.a.fromString(a,!0,2).toString(4);l.length=0;l--){t=i-l;var u=a[l],s=0,c=0;"1"===u?c=1:"2"===u?(s=1,c=1):"3"===u&&(s=1);var d=Math.pow(2,t-1);M(d,o,s,c),o[0]+=d*s,o[1]+=d*c}if(r%2==1){var f=o[0];o[0]=o[1],o[1]=f}return{face:r,ij:o,level:t}}(w(e)))}var T=Object.assign({getS2Token:{type:"accessor",value:function(e){return e.token}}},h.a.defaultProps),C=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"renderLayers",value:function(){var e=this.props,t=e.data,n=e.getS2Token,r=this.props,a=r.elevationScale,i=r.extruded,o=r.wireframe,l=r.filled,u=r.stroked,s=r.lineWidthUnits,c=r.lineWidthScale,d=r.lineWidthMinPixels,f=r.lineWidthMaxPixels,p=r.lineJointRounded,m=r.lineMiterLimit,g=r.lineDashJustified,v=r.getElevation,y=r.getFillColor,b=r.getLineColor,A=r.getLineWidth,_=r.getLineDashArray,O=this.props,E=O.updateTriggers,x=O.material;return new(this.getSubLayerClass("cell",h.a))({filled:l,wireframe:o,extruded:i,elevationScale:a,stroked:u,lineWidthUnits:s,lineWidthScale:c,lineWidthMinPixels:d,lineWidthMaxPixels:f,lineJointRounded:p,lineMiterLimit:m,lineDashJustified:g,material:x,getElevation:v,getFillColor:y,getLineColor:b,getLineWidth:A,getLineDashArray:_},this.getSubLayerProps({id:"cell",updateTriggers:{getElevation:E.getElevation,getFillColor:E.getFillColor,getLineColor:E.getLineColor,getLineWidth:E.getLineWidth,getLineDashArray:E.getLineDashArray}}),{data:t,_normalize:!1,positionFormat:"XY",getPolygon:function(e,t){return S(n(e,t))}})}}]),t}(p.a);C.layerName="S2Layer",C.defaultProps=T;var L=n(170),P=n(1204),k=n(317),D=n.n(k);function R(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){R(i,r,a,o,l,"next",e)}function l(e){R(i,r,a,o,l,"throw",e)}o(void 0)}))}}var I=n(62),F=function(){function e(t){var n=t.x,a=t.y,i=t.z,o=t.onTileLoad,l=t.onTileError;r(this,e),this.x=n,this.y=a,this.z=i,this.isVisible=!1,this.isSelected=!1,this.parent=null,this.children=[],this.content=null,this._isLoaded=!1,this._isCancelled=!1,this.onTileLoad=o,this.onTileError=l}var t;return f(e,[{key:"_loadData",value:(t=j(D.a.mark((function e(t,n){var r,a,i,o,l,u,s;return D.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.x,a=this.y,i=this.z,o=this.bbox,e.next=3,n.scheduleRequest(this,(function(e){return e.isSelected?1:-1}));case 3:if(l=e.sent){e.next=7;break}return this._isCancelled=!0,e.abrupt("return");case 7:return this._isCancelled=!1,e.prev=8,e.next=11,t({x:r,y:a,z:i,bbox:o});case 11:u=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),s=e.t0||!0;case 17:return e.prev=17,l.done(),this._isLoaded=!0,e.finish(17);case 21:s?this.onTileError(s,this):(this.content=u,this.onTileLoad(this));case 22:case"end":return e.stop()}}),e,this,[[8,14,17,21]])}))),function(e,n){return t.apply(this,arguments)})},{key:"loadData",value:function(e,t){e&&(this._loader=this._loadData(e,t))}},{key:"data",get:function(){return this._isLoaded?this.content:this._loader}},{key:"isLoaded",get:function(){return this._isLoaded}},{key:"isCancelled",get:function(){return this._isCancelled}},{key:"byteLength",get:function(){var e=this.content?this.content.byteLength:0;return Number.isFinite(e)||I.a.error("byteLength not defined in tile data")(),e}}]),e}();const N=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1});function B(e,t){if(!e)throw new Error("math.gl assertion "+t)}Math.PI,Math.PI;const z={};function U(e,{precision:t=z.precision||4}={}){return e=function(e){return Math.round(e/z.EPSILON)*z.EPSILON}(e),""+parseFloat(e.toPrecision(t))}function V(e){return Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView)}function H(e,t,n){const r=z.EPSILON;n&&(z.EPSILON=n);try{if(e===t)return!0;if(V(e)&&V(t)){if(e.length!==t.length)return!1;for(let n=0;n0?", ":"")+U(this[n],e);return`${e.printTypes?this.constructor.name:""}[${t}]`}equals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t=0&&e=0&&e0?N.INSIDE:a+r<0?N.OUTSIDE:N.INTERSECTING}distanceTo(e){return Math.sqrt(this.distanceSquaredTo(e))}distanceSquaredTo(e){const t=te.from(e).subtract(this.center),{halfDiagonal:n}=this;let r,a=0;return r=Math.abs(t.x)-n.x,r>0&&(a+=r*r),r=Math.abs(t.y)-n.y,r>0&&(a+=r*r),r=Math.abs(t.z)-n.z,r>0&&(a+=r*r),a}}var ae=n(22);new ee,new ee;class ie extends Y{get ELEMENTS(){return B(!1),0}get RANK(){return B(!1),0}toString(){let e="[";if(z.printRowMajor){e+="row-major:";for(let t=0;te instanceof me))}fromBoundingSphere(e){this.planes.length=2*ge.length;const t=e.center,n=e.radius;let r=0;for(const e of ge){let a=this.planes[r],i=this.planes[r+1];a||(a=this.planes[r]=new me),i||(i=this.planes[r+1]=new me);const o=ve.copy(e).scale(-n).add(t);e.dot(o);a.fromPointNormal(o,e);const l=ve.copy(e).scale(n).add(t),u=ye.copy(e).negate();u.dot(l);i.fromPointNormal(l,u),r+=2}return this}computeVisibility(e){B(e);let t=N.INSIDE;for(const n of this.planes){switch(e.intersectPlane(n)){case N.OUTSIDE:return N.OUTSIDE;case N.INTERSECTING:t=N.INTERSECTING}}return t}computeVisibilityWithPlaneMask(e,t){if(B(e,"boundingVolume is required."),B(Number.isFinite(t),"parentPlaneMask is required."),t===be.MASK_OUTSIDE||t===be.MASK_INSIDE)return t;let n=be.MASK_INSIDE;const r=this.planes;for(let a=0;a=a){var s=l.distanceTo(t.cameraPosition)*t.scale/t.height;u+=Math.floor(Math.log2(s))}if(u>=i)return this.selected=!0,!0}this.selected=!1,this.childVisible=!0;var c=!0,d=!1,f=void 0;try{for(var p,h=this.children[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){p.value.update(e)}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return!0}},{key:"getSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.selected&&e.push(this),this._children){var t=!0,n=!1,r=void 0;try{for(var a,i=this._children[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o.getSelected(e)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}return e}},{key:"getBoundingVolume",value:function(e,t){var n=512/Math.pow(2,this.z),r=this.x*n+512*t,a=512-(this.y+1)*n;return new re([r,a,e[0]],[r+n,a+n,e[1]])}},{key:"children",get:function(){if(!this._children){var t=2*this.x,n=2*this.y,r=this.z+1;this._children=[new e(t,n,r),new e(t,n+1,r),new e(t+1,n,r),new e(t+1,n+1,r)]}return this._children}}]),e}();var _e=[-1/0,-1/0,1/0,1/0],Oe={type:"url",value:"",validate:function(e){return"string"==typeof e||Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},equals:function(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;rn&&(u=n),t.isGeospatial?function(e,t,n){var r=Object.values(e.getFrustumPlanes()).map((function(e){var t=e.normal,n=e.distance;return new me(t.clone().negate(),n)})),a=new be(r),i=e.distanceScales.unitsPerMeter[2],o=n&&n[0]*i||0,l=n&&n[1]*i||0,u=e.pitch<=60?t:0,s=new Ae(0,0,0),c={viewport:e,cullingVolume:a,elevationBounds:[o,l],minZ:u,maxZ:t,offset:0};if(s.update(c),e.subViewports&&e.subViewports.length>1){for(c.offset=-1;s.update(c)&&!(--c.offset<-3););for(c.offset=1;s.update(c)&&!(++c.offset>3););}return s.getSelected()}(t,u,a):Ce(t,u,i||_e)}var Pe=n(828),ke=function(){function e(t){var n=this;r(this,e),this.opts=t,this._getTileData=t.getTileData,this.onTileError=t.onTileError,this.onTileLoad=function(e){t.onTileLoad(e),n.opts.maxCacheByteSize&&(n._cacheByteSize+=e.byteLength,n._resizeCache())},this._requestScheduler=new Pe.a({maxRequests:t.maxRequests,throttleRequests:t.maxRequests>0}),this._cache=new Map,this._tiles=[],this._dirty=!1,this._cacheByteSize=0,this._viewport=null,this._selectedTiles=null,this._frameNumber=0,this.setOptions(t)}return f(e,[{key:"setOptions",value:function(e){Object.assign(this.opts,e),Number.isFinite(e.maxZoom)&&(this._maxZoom=Math.floor(e.maxZoom)),Number.isFinite(e.minZoom)&&(this._minZoom=Math.ceil(e.minZoom))}},{key:"update",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.zRange;if(!e.equals(this._viewport)){this._viewport=e;var a=this.getTileIndices({viewport:e,maxZoom:this._maxZoom,minZoom:this._minZoom,zRange:r});this._selectedTiles=a.map((function(e){return t._getTile(e,!0)})),this._dirty&&this._rebuildTree()}var i=this.updateTileStates();return this._dirty&&this._resizeCache(),i&&this._frameNumber++,this._frameNumber}},{key:"getTileIndices",value:function(e){var t=e.viewport,n=e.maxZoom,r=e.minZoom,a=e.zRange,i=this.opts;return Le({viewport:t,maxZoom:n,minZoom:r,zRange:a,tileSize:i.tileSize,extent:i.extent})}},{key:"getTileMetadata",value:function(e){var t=e.x,n=e.y,r=e.z;return{bbox:Te(this._viewport,t,n,r)}}},{key:"getParentIndex",value:function(e){return e.x=Math.floor(e.x/2),e.y=Math.floor(e.y/2),e.z-=1,e}},{key:"updateTileStates",value:function(){this._updateTileStates(this.selectedTiles);var e=!1,t=!0,n=!1,r=void 0;try{for(var a,i=this._cache.values()[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value,l=Boolean(1&o.state);o.isVisible!==l&&(e=!0,o.isVisible=l),o.isSelected=5===o.state}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}return e}},{key:"_rebuildTree",value:function(){var e=this._cache,t=!0,n=!1,r=void 0;try{for(var a,i=e.values()[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o.parent=null,o.children.length=0}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}var l=!0,u=!1,s=void 0;try{for(var c,d=e.values()[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var f=c.value,p=this._getNearestAncestor(f.x,f.y,f.z);f.parent=p,p&&p.children.push(f)}}catch(e){u=!0,s=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw s}}}},{key:"_updateTileStates",value:function(e){var t=this._cache,n=this.opts.refinementStrategy||"best-available",r=!0,a=!1,i=void 0;try{for(var o,l=t.values()[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){o.value.state=0}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var u=!0,s=!1,c=void 0;try{for(var d,f=e[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){d.value.state=5}}catch(e){s=!0,c=e}finally{try{u||null==f.return||f.return()}finally{if(s)throw c}}if("never"!==n){var p=!0,h=!1,m=void 0;try{for(var g,v=e[Symbol.iterator]();!(p=(g=v.next()).done);p=!0){Re(g.value,n)}}catch(e){h=!0,m=e}finally{try{p||null==v.return||v.return()}finally{if(h)throw m}}var y=!0,b=!1,A=void 0;try{for(var _,O=e[Symbol.iterator]();!(y=(_=O.next()).done);y=!0){var E=_.value;De(E)&&je(E)}}catch(e){b=!0,A=e}finally{try{y||null==O.return||O.return()}finally{if(b)throw A}}}}},{key:"_resizeCache",value:function(){var e=this._cache,t=this.opts,n=t.maxCacheSize||(t.maxCacheByteSize?1/0:5*this.selectedTiles.length),r=t.maxCacheByteSize||1/0;if(e.size>n||this._cacheByteSize>r){var a=!0,i=!1,o=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=v(l.value,2),c=s[0],d=s[1];if(d.isVisible||(this._cacheByteSize-=t.maxCacheByteSize?d.byteLength:0,e.delete(c)),e.size<=n&&this._cacheByteSize<=r)break}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}this._rebuildTree(),this._dirty=!0}this._dirty&&(this._tiles=Array.from(this._cache.values()).sort((function(e,t){return e.z-t.z})),this._dirty=!1)}},{key:"_getTile",value:function(e,t){var n=e.x,r=e.y,a=e.z,i="".concat(n,",").concat(r,",").concat(a),o=this._cache.get(i);return!o&&t?(o=new F({x:n,y:r,z:a,onTileLoad:this.onTileLoad,onTileError:this.onTileError}),Object.assign(o,this.getTileMetadata(o)),o.loadData(this._getTileData,this._requestScheduler),this._cache.set(i,o),this._dirty=!0):o&&o.isCancelled&&o.loadData(this._getTileData,this._requestScheduler),o}},{key:"_getNearestAncestor",value:function(e,t,n){for(var r=this._minZoom,a=void 0===r?0:r,i={x:e,y:t,z:n};i.z>a;){i=this.getParentIndex(i);var o=this._getTile(i);if(o)return o}return null}},{key:"tiles",get:function(){return this._tiles}},{key:"selectedTiles",get:function(){return this._selectedTiles}},{key:"isLoaded",get:function(){return this._selectedTiles.every((function(e){return e.isLoaded}))}}]),e}();function De(e){for(var t=e;t;){if(!1&t.state)return!0;if(t.isLoaded)return!1;t=t.parent}return!0}function Re(e,t){for(var n,r=3;n=e.parent;){if(e.isLoaded&&(r=4,"best-available"===t))return;n.state=Math.max(n.state,r),e=n}}function je(e){var t=!0,n=!1,r=void 0;try{for(var a,i=e.children[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o.state=Math.max(o.state,3),o.isLoaded||je(o)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}var Ie={data:[],dataComparator:Oe.equals,renderSubLayers:{type:"function",value:function(e){return new P.a(e)},compare:!1},getTileData:{type:"function",optional:!0,value:null,compare:!1},onViewportLoad:{type:"function",optional:!0,value:null,compare:!1},onTileLoad:{type:"function",value:function(e){},compare:!1},onTileError:{type:"function",value:function(e){return console.error(e)},compare:!1},extent:{type:"array",optional:!0,value:null,compare:!0},tileSize:512,maxZoom:null,minZoom:0,maxCacheSize:null,maxCacheByteSize:null,refinementStrategy:"best-available",zRange:null,maxRequests:8},Fe=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"initializeState",value:function(){this.state={tiles:[],isLoaded:!1}}},{key:"shouldUpdateState",value:function(e){return e.changeFlags.somethingChanged}},{key:"updateState",value:function(e){var t=e.props,n=(e.oldProps,e.context,e.changeFlags),r=this.state.tileset;if(!r||n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getTileData)){var a=t.maxZoom,i=t.minZoom,o=t.tileSize,l=t.maxCacheSize,u=t.maxCacheByteSize,s=t.refinementStrategy,c=t.extent,d=t.maxRequests;r=new ke({getTileData:this.getTileData.bind(this),maxCacheSize:l,maxCacheByteSize:u,maxZoom:a,minZoom:i,tileSize:o,refinementStrategy:s,extent:c,onTileLoad:this._onTileLoad.bind(this),onTileError:this._onTileError.bind(this),maxRequests:d}),this.setState({tileset:r})}else(n.propsChanged||n.updateTriggersChanged)&&(r.setOptions(t),this.state.tileset.tiles.forEach((function(e){e.layers=null})));this._updateTileset()}},{key:"_updateTileset",value:function(){var e=this.state.tileset,t=this.props,n=t.onViewportLoad,r=t.zRange,a=e.update(this.context.viewport,{zRange:r}),i=e.isLoaded,o=this.state.isLoaded!==i,l=this.state.frameNumber!==a;i&&n&&(o||l)&&n(e.selectedTiles.map((function(e){return e.data}))),l&&this.setState({frameNumber:a}),this.state.isLoaded=i}},{key:"_onTileLoad",value:function(e){this.getCurrentLayer().props.onTileLoad(e),e.isVisible&&this.setNeedsUpdate()}},{key:"_onTileError",value:function(e,t){var n=this.getCurrentLayer();n.props.onTileError(e),n._updateTileset(),t.isVisible&&this.setNeedsUpdate()}},{key:"getTileData",value:function(e){var t=this.props,n=t.getTileData,r=t.fetch,a=t.data;return e.url=Ee(a,e),n?n(e):e.url?r(e.url,{layer:this}):null}},{key:"renderSubLayers",value:function(e){return this.props.renderSubLayers(e)}},{key:"getHighlightedObjectIndex",value:function(){return-1}},{key:"getPickingInfo",value:function(e){var t=e.info,n=e.sourceLayer;return t.sourceLayer=n,t.tile=n.props.tile,t}},{key:"renderLayers",value:function(){var e=this,t=this.props.visible;return this.state.tileset.tiles.map((function(n){var r=t&&n.isVisible,a=e.getHighlightedObjectIndex(n);if(n.isLoaded)if(n.layers)!n.layers[0]||n.layers[0].props.visible===r&&n.layers[0].props.highlightedObjectIndex===a||(n.layers=n.layers.map((function(e){return e.clone({visible:r,highlightedObjectIndex:a})})));else{var i=e.renderSubLayers(Object.assign({},e.props,{id:"".concat(e.id,"-").concat(n.x,"-").concat(n.y,"-").concat(n.z),data:n.data,visible:r,_offset:0,tile:n,highlightedObjectIndex:a}));n.layers=Object(L.b)(i,Boolean)}else;return n.layers}))}},{key:"isLoaded",get:function(){return this.state.tileset.selectedTiles.every((function(e){return e.layers&&e.layers.every((function(e){return e.isLoaded}))}))}}]),t}(p.a);function Ne(e,t,n){return(Ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}Fe.layerName="TileLayer",Fe.defaultProps=Ie;var Be=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"getShaders",value:function(){var e=Ne(l(t.prototype),"getShaders",this).call(this);return e.inject={"vs:#decl":"uniform float trailLength;\nattribute float instanceTimestamps;\nattribute float instanceNextTimestamps;\nvarying float vTime;\n","vs:#main-end":"vTime = instanceTimestamps + (instanceNextTimestamps - instanceTimestamps) * vPathPosition.y / vPathLength;\n","fs:#decl":"uniform float trailLength;\nuniform float currentTime;\nvarying float vTime;\n","fs:#main-start":"if(vTime > currentTime || vTime < currentTime - trailLength) {\n discard;\n}\n","fs:DECKGL_FILTER_COLOR":"color.a *= 1.0 - (currentTime - vTime) / trailLength;"},e}},{key:"initializeState",value:function(e){Ne(l(t.prototype),"initializeState",this).call(this,e),this.getAttributeManager().addInstanced({timestamps:{size:1,accessor:"getTimestamps",shaderAttributes:{instanceTimestamps:{vertexOffset:0},instanceNextTimestamps:{vertexOffset:1}}}})}},{key:"draw",value:function(e){var n=this.props,r=n.trailLength,a=n.currentTime;e.uniforms=Object.assign({},e.uniforms,{trailLength:r,currentTime:a}),Ne(l(t.prototype),"draw",this).call(this,e)}}]),t}(n(255).a);Be.layerName="TripsLayer",Be.defaultProps={trailLength:{type:"number",value:120,min:0},currentTime:{type:"number",value:0,min:0},getTimestamps:{type:"accessor",value:null}};var ze=n(130),Ue=n(137),Ve=Object.assign({getHexagons:{type:"accessor",value:function(e){return e.hexagons}}},h.a.defaultProps),He=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"updateState",value:function(e){var t=e.props,n=(e.oldProps,e.changeFlags);if(n.dataChanged||n.updateTriggers&&n.updateTriggers.getHexagons){var r=t.data,a=t.getHexagons,i=[],o=Object(Ue.a)(r),l=o.iterable,u=o.objectInfo,s=!0,c=!1,d=void 0;try{for(var f,p=l[Symbol.iterator]();!(s=(f=p.next()).done);s=!0){var h=f.value;u.index++;var m=a(h,u),g=Object(ze.h3SetToMultiPolygon)(m,!0),v=!0,y=!1,b=void 0;try{for(var A,_=g[Symbol.iterator]();!(v=(A=_.next()).done);v=!0){var O=A.value;i.push(this.getSubLayerRow({polygon:O},h,u.index))}}catch(e){y=!0,b=e}finally{try{v||null==_.return||_.return()}finally{if(y)throw b}}}}catch(e){c=!0,d=e}finally{try{s||null==p.return||p.return()}finally{if(c)throw d}}this.setState({polygons:i})}}},{key:"renderLayers",value:function(){var e=this.props,t=e.elevationScale,n=e.extruded,r=e.wireframe,a=e.filled,i=e.stroked,o=e.lineWidthScale,l=e.lineWidthMinPixels,u=e.lineWidthMaxPixels,s=e.lineJointRounded,c=e.lineMiterLimit,d=e.lineDashJustified,f=e.material,p=e.getFillColor,m=e.getLineColor,g=e.getLineWidth,v=e.getLineDashArray,y=e.getElevation,b=e.updateTriggers;return new(this.getSubLayerClass("cluster-region",h.a))({filled:a,wireframe:r,extruded:n,elevationScale:t,stroked:i,lineWidthScale:o,lineWidthMinPixels:l,lineWidthMaxPixels:u,lineJointRounded:s,lineMiterLimit:c,lineDashJustified:d,material:f,getFillColor:this.getSubLayerAccessor(p),getLineColor:this.getSubLayerAccessor(m),getLineWidth:this.getSubLayerAccessor(g),getLineDashArray:this.getSubLayerAccessor(v),getElevation:this.getSubLayerAccessor(y)},this.getSubLayerProps({id:"cluster-region",updateTriggers:b}),{data:this.state.polygons,getPolygon:function(e){return e.polygon}})}}]),t}(p.a);function Ye(e){return(Ye="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)}He.defaultProps=Ve,He.layerName="H3ClusterLayer";var We=n(873),Ge=n(453);function qe(e,t){t=void 0===t?e[0][0]:t;var n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var l=i.value,u=l[0]-t;u>180?l[0]-=360:u<-180&&(l[0]+=360)}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}function Xe(e,t,n){var r=v(Object(ze.h3ToGeo)(e),2),a=r[0],i=r[1],o=t.length;qe(t,i);for(var l=t[0]===t[o-1]?o-1:o,u=0;u1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=Object(ze.h3ToGeoBoundary)(e,!0);if(1!==t?Xe(e,r,t):qe(r),n){var a=new Float64Array(2*r.length),i=0,o=!0,l=!1,u=void 0;try{for(var s,c=r[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var d=s.value;a[i++]=d[0],a[i++]=d[1]}}catch(e){l=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(l)throw u}}return a}return r}var Je=Object.assign({},h.a.defaultProps,{highPrecision:!1,coverage:{type:"number",min:0,max:1,value:1},centerHexagon:null,getHexagon:{type:"accessor",value:function(e){return e.hexagon}},extruded:!0});delete Je.getLineDashArray;var Qe=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"shouldUpdateState",value:function(e){var t=e.changeFlags;return this._shouldUseHighPrecision()?t.propsOrDataChanged:t.somethingChanged}},{key:"updateState",value:function(e){var t=e.props,n=(e.oldProps,e.changeFlags);if(n.dataChanged||n.updateTriggers&&n.updateTriggers.getHexagon){var r=-1,a=!1,i=!1,o=Object(Ue.a)(t.data),l=o.iterable,u=o.objectInfo,s=!0,c=!1,d=void 0;try{for(var f,p=l[Symbol.iterator]();!(s=(f=p.next()).done);s=!0){var h=f.value;u.index++;var m=t.getHexagon(h,u),g=Object(ze.h3GetResolution)(m);if(r<0)r=g;else if(r!==g){i=!0;break}if(Object(ze.h3IsPentagon)(m)){a=!0;break}}}catch(e){c=!0,d=e}finally{try{s||null==p.return||p.return()}finally{if(c)throw d}}this.setState({resolution:r,edgeLengthKM:r>=0?Object(ze.edgeLength)(r,ze.UNITS.km):0,hasMultipleRes:i,hasPentagon:a})}this._updateVertices(this.context.viewport)}},{key:"_shouldUseHighPrecision",value:function(){var e=this.state,t=e.resolution,n=e.hasPentagon,r=e.hasMultipleRes;return this.props.highPrecision||r||n||t>=0&&t<=5}},{key:"_updateVertices",value:function(e){if(!this._shouldUseHighPrecision()){var t=this.state,n=t.resolution,r=t.edgeLengthKM,a=t.centerHex;if(!(n<0)){var i=this.props.centerHexagon||Object(ze.geoToH3)(e.latitude,e.longitude,n);if(a!==i){if(a){var o=Object(ze.h3Distance)(a,i);if(o>=0&&o*r<10)return}var l=e.distanceScales.unitsPerMeter,u=Ke(i),s=v(Object(ze.h3ToGeo)(i),2),c=s[0],d=s[1],f=v(e.projectFlat([d,c]),2),p=f[0],h=f[1];u=u.map((function(t){var n=e.projectFlat(t);return n[0]=(n[0]-p)/l[0],n[1]=(n[1]-h)/l[1],n})),this.setState({centerHex:i,vertices:u})}}}}},{key:"renderLayers",value:function(){return this._shouldUseHighPrecision()?this._renderPolygonLayer():this._renderColumnLayer()}},{key:"_getForwardProps",value:function(){var e=this.props,t=e.elevationScale,n=e.material,r=e.coverage,a=e.extruded,i=e.wireframe,o=e.stroked,l=e.filled,u=e.lineWidthUnits,s=e.lineWidthScale,c=e.lineWidthMinPixels,d=e.lineWidthMaxPixels,f=e.getFillColor,p=e.getElevation,h=e.getLineColor,m=e.getLineWidth,g=e.updateTriggers;return{elevationScale:t,extruded:a,coverage:r,wireframe:i,stroked:o,filled:l,lineWidthUnits:u,lineWidthScale:s,lineWidthMinPixels:c,lineWidthMaxPixels:d,material:n,getElevation:p,getFillColor:f,getLineColor:h,getLineWidth:m,updateTriggers:{getFillColor:g.getFillColor,getElevation:g.getElevation,getLineColor:g.getLineColor,getLineWidth:g.getLineWidth}}}},{key:"_renderPolygonLayer",value:function(){var e=this.props,t=e.data,n=e.getHexagon,r=e.updateTriggers,a=e.coverage,i=this.getSubLayerClass("hexagon-cell-hifi",h.a),o=this._getForwardProps();return o.updateTriggers.getPolygon=function(e,t){return null==e?t:"object"===Ye(e)?Object.assign({},e,{coverage:t}):{getHexagon:e,coverage:t}}(r.getHexagon,a),new i(o,this.getSubLayerProps({id:"hexagon-cell-hifi",updateTriggers:o.updateTriggers}),{data:t,_normalize:!1,positionFormat:"XY",getPolygon:function(e,t){return Ke(n(e,t),a,!0)}})}},{key:"_renderColumnLayer",value:function(){var e=this.props,t=e.data,n=e.getHexagon,r=e.updateTriggers,a=this.getSubLayerClass("hexagon-cell",Ge.a),i=this._getForwardProps();return i.updateTriggers.getPosition=r.getHexagon,new a(i,this.getSubLayerProps({id:"hexagon-cell",updateTriggers:i.updateTriggers}),{data:t,diskResolution:6,radius:1,vertices:this.state.vertices,getPosition:Ze.bind(null,n)})}}]),t}(p.a);function $e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Qe.defaultProps=Je,Qe.layerName="H3HexagonLayer";var et=n(164),tt=n(54),nt=n(1201),rt=n(1187),at=n(1202),it=n(827),ot=n(13),lt=n.n(ot),ut=n(21),st=n(2),ct=n(11),dt=n(12),ft=n(851),pt=n(850),ht=n(28),mt=n(138),gt=n(875),vt=n(70),yt=(Math.max(6378137,6378137,6356752.314245179),function(e){return e}),bt=new pt.a;function At(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt;return Object(vt.f)(e)?(t[0]=n(e[0]),t[1]=n(e[1]),t[2]=e[2]):"longitude"in e?(t[0]=n(e.longitude),t[1]=n(e.latitude),t[2]=e.height):(t[0]=n(e.x),t[1]=n(e.y),t[2]=e.z),t}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt;return At(e,t,vt.b._cartographicRadians?yt:vt.i)}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yt;return Object(vt.f)(t)?(t[0]=n(e[0]),t[1]=n(e[1]),t[2]=e[2]):"longitude"in t?(t.longitude=n(e[0]),t.latitude=n(e[1]),t.height=e[2]):(t.x=n(e[0]),t.y=n(e[1]),t.z=e[2]),t}function Et(e,t){return Ot(e,t,vt.b._cartographicRadians?yt:vt.h)}var xt=new pt.a,Mt=new pt.a,wt=new pt.a;var St=new pt.a,Tt={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},Ct={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},Lt={east:new pt.a,north:new pt.a,up:new pt.a,west:new pt.a,south:new pt.a,down:new pt.a},Pt=new pt.a,kt=new pt.a,Dt=new pt.a;function Rt(e,t,n,r,a,i){var o,l,u,s=Tt[t]&&Tt[t][n];Object(mt.a)(s&&(!r||r===s));var c=St.copy(a);if(Object(vt.d)(c.x,0,1e-14)&&Object(vt.d)(c.y,0,1e-14)){var d=Math.sign(c.z);o=Pt.fromArray(Ct[t]),"east"!==t&&"west"!==t&&o.scale(d),l=kt.fromArray(Ct[n]),"east"!==n&&"west"!==n&&l.scale(d),u=Dt.fromArray(Ct[r]),"east"!==r&&"west"!==r&&u.scale(d)}else{var f=Lt.up,p=Lt.east,h=Lt.north;p.set(-c.y,c.x,0).normalize(),e.geodeticSurfaceNormal(c,f),h.copy(f).cross(p);var m=Lt.west,g=Lt.south;Lt.down.copy(f).scale(-1),m.copy(p).scale(-1),g.copy(h).scale(-1),o=Lt[t],l=Lt[n],u=Lt[r]}return i[0]=o.x,i[1]=o.y,i[2]=o.z,i[3]=0,i[4]=l.x,i[5]=l.y,i[6]=l.z,i[7]=0,i[8]=u.x,i[9]=u.y,i[10]=u.z,i[11]=0,i[12]=c.x,i[13]=c.y,i[14]=c.z,i[15]=1,i}var jt,It=new pt.a,Ft=new pt.a,Nt=new pt.a,Bt=new pt.a,zt=new pt.a,Ut=new pt.a,Vt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Object(ct.a)(this,e),Object(mt.a)(t>=0),Object(mt.a)(n>=0),Object(mt.a)(r>=0),this.radii=new pt.a(t,n,r),this.radiiSquared=new pt.a(t*t,n*n,r*r),this.radiiToTheFourth=new pt.a(t*t*t*t,n*n*n*n,r*r*r*r),this.oneOverRadii=new pt.a(0===t?0:1/t,0===n?0:1/n,0===r?0:1/r),this.oneOverRadiiSquared=new pt.a(0===t?0:1/(t*t),0===n?0:1/(n*n),0===r?0:1/(r*r)),this.minimumRadius=Math.min(t,n,r),this.maximumRadius=Math.max(t,n,r),this.centerToleranceSquared=gt.a.EPSILON1,0!==this.radiiSquared.z&&(this.squaredXOverSquaredZ=this.radiiSquared.x/this.radiiSquared.z),Object.freeze(this)}return Object(dt.a)(e,null,[{key:"WGS84",get:function(){return jt=jt||new e(6378137,6378137,6356752.314245179)}}]),Object(dt.a)(e,[{key:"equals",value:function(e){return this===e||Boolean(e&&this.radii.equals(e.radii))}},{key:"toString",value:function(){return this.radii.toString()}},{key:"cartographicToCartesian",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],n=Ft,r=Nt,a=Object(ht.a)(e,3),i=a[2];this.geodeticSurfaceNormalCartographic(e,n),r.copy(this.radiiSquared).scale(n);var o=Math.sqrt(n.dot(r));return r.scale(1/o),n.scale(i),r.add(n),r.to(t)}},{key:"cartesianToCartographic",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];Ut.from(e);var n=this.scaleToGeodeticSurface(Ut,Bt);if(n){var r=this.geodeticSurfaceNormal(n,Ft),a=zt;a.copy(Ut).subtract(n);var i=Math.atan2(r.y,r.x),o=Math.asin(r.z),l=Math.sign(K.e(a,Ut))*K.h(a);return Et([i,o,l],t)}}},{key:"eastNorthUpToFixedFrame",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new ft.a;return Rt(this,"east","north","up",e,t)}},{key:"localFrameToFixedFrame",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new ft.a;return Rt(this,e,t,n,r,a)}},{key:"geocentricSurfaceNormal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return It.from(e).normalize().to(t)}},{key:"geodeticSurfaceNormalCartographic",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],n=_t(e),r=n[0],a=n[1],i=Math.cos(a);return It.set(i*Math.cos(r),i*Math.sin(r),Math.sin(a)).normalize(),It.to(t)}},{key:"geodeticSurfaceNormal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return It.from(e).scale(this.oneOverRadiiSquared).normalize().to(t)}},{key:"scaleToGeodeticSurface",value:function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new pt.a,r=t.oneOverRadii,a=t.oneOverRadiiSquared,i=t.centerToleranceSquared;xt.from(e);var o=e.x,l=e.y,u=e.z,s=r.x,c=r.y,d=r.z,f=o*o*s*s,p=l*l*c*c,h=u*u*d*d,m=f+p+h,g=Math.sqrt(1/m);if(Number.isFinite(g)){var v=Mt;if(v.copy(e).scale(g),mgt.a.EPSILON12);return xt.scale([O,E,x]).to(n)}}(e,this,t)}},{key:"scaleToGeocentricSurface",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];Bt.from(e);var n=Bt.x,r=Bt.y,a=Bt.z,i=this.oneOverRadiiSquared,o=1/Math.sqrt(n*n*i.x+r*r*i.y+a*a*i.z);return Bt.multiplyScalar(o).to(t)}},{key:"transformPositionToScaledSpace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return Bt.from(e).scale(this.oneOverRadii).to(t)}},{key:"transformPositionFromScaledSpace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return Bt.from(e).scale(this.radii).to(t)}},{key:"getSurfaceNormalIntersectionWithZAxis",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,0];Object(mt.a)(Object(vt.d)(this.radii.x,this.radii.y,gt.a.EPSILON15)),Object(mt.a)(this.radii.z>0),Bt.from(e);var r=Bt.z*(1-this.squaredXOverSquaredZ);if(!(Math.abs(r)>=this.radii.z-t))return Bt.set(0,0,r).to(n)}}]),e}(),Ht=n(358),Yt=n(119),Wt=n(60),Gt=function e(t,n,r){Object(ct.a)(this,e),this.item=t,this.previous=n,this.next=r},qt=function(){function e(){Object(ct.a)(this,e),this.head=null,this.tail=null,this._length=0}return Object(dt.a)(e,[{key:"add",value:function(e){var t=new Gt(e,this.tail,null);return this.tail?(this.tail.next=t,this.tail=t):(this.head=t,this.tail=t),++this._length,t}},{key:"remove",value:function(e){e&&(e.previous&&e.next?(e.previous.next=e.next,e.next.previous=e.previous):e.previous?(e.previous.next=null,this.tail=e.previous):e.next?(e.next.previous=null,this.head=e.next):(this.head=null,this.tail=null),e.next=null,e.previous=null,--this._length)}},{key:"splice",value:function(e,t){e!==t&&(this.remove(t),this._insert(e,t))}},{key:"_insert",value:function(e,t){var n=e.next;e.next=t,this.tail===e?this.tail=t:n.previous=t,t.next=n,t.previous=e,++this._length}},{key:"length",get:function(){return this._length}}]),e}();function Xt(e){return null!=e}var Zt=function(){function e(){Object(ct.a)(this,e),this._list=new qt,this._sentinel=this._list.add("sentinel"),this._trimTiles=!1}return Object(dt.a)(e,[{key:"reset",value:function(){this._list.splice(this._list.tail,this._sentinel)}},{key:"touch",value:function(e){var t=e._cacheNode;Xt(t)&&this._list.splice(this._sentinel,t)}},{key:"add",value:function(e,t,n){Xt(t._cacheNode)||(t._cacheNode=this._list.add(t),n&&n(e,t))}},{key:"unloadTile",value:function(e,t,n){var r=t._cacheNode;Xt(r)&&(this._list.remove(r),t._cacheNode=void 0,n&&n(e,t))}},{key:"unloadTiles",value:function(e,t){var n=this._trimTiles;this._trimTiles=!1;for(var r=this._list,a=1024*e.maximumMemoryUsage*1024,i=this._sentinel,o=r.head;o!==i&&(e.gpuMemoryUsageInBytes>a||n);){var l=o.item;o=o.next,this.unloadTile(e,l,t)}}},{key:"trim",value:function(){this._trimTiles=!0}}]),e}();var Kt=Object.freeze({OUTSIDE:-1,INTERSECTING:0,INSIDE:1}),Jt=new pt.a,Qt=new pt.a,$t=(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object(ct.a)(this,e),r=r||Jt.copy(t).add(n).scale(.5),this.center=new pt.a(r),this.halfDiagonal=new pt.a(n).subtract(this.center),this.minimum=new pt.a(t),this.maximum=new pt.a(n)}Object(dt.a)(e,[{key:"clone",value:function(){return new e(this.minimum,this.maximum,this.center)}},{key:"equals",value:function(e){return this===e||Boolean(e)&&this.minimum.equals(e.minimum)&&this.maximum.equals(e.maximum)}},{key:"intersectPlane",value:function(e){var t=this.halfDiagonal,n=Qt.from(e.normal),r=t.x*Math.abs(n.x)+t.y*Math.abs(n.y)+t.z*Math.abs(n.z),a=this.center.dot(n)+e.distance;return a-r>0?Kt.INSIDE:a+r<0?Kt.OUTSIDE:Kt.INTERSECTING}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceSquaredTo(e))}},{key:"distanceSquaredTo",value:function(e){var t,n=Jt.from(e).subtract(this.center),r=this.halfDiagonal,a=0;return(t=Math.abs(n.x)-r.x)>0&&(a+=t*t),(t=Math.abs(n.y)-r.y)>0&&(a+=t*t),(t=Math.abs(n.z)-r.z)>0&&(a+=t*t),a}}])}(),new pt.a),en=new pt.a,tn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(ct.a)(this,e),this.radius=-0,this.center=new pt.a,this.fromCenterRadius(t,n)}return Object(dt.a)(e,[{key:"fromCenterRadius",value:function(e,t){return this.center.from(e),this.radius=t,this}},{key:"fromCornerPoints",value:function(e,t){return t=$t.from(t),this.center=(new pt.a).from(e).add(t).scale(.5),this.radius=this.center.distance(t),this}},{key:"equals",value:function(e){return this===e||Boolean(e)&&this.center.equals(e.center)&&this.radius===e.radius}},{key:"clone",value:function(){return new e(this.center,this.radius)}},{key:"union",value:function(e){var t=this.center,n=this.radius,r=e.center,a=e.radius,i=$t.copy(r).subtract(t),o=i.magnitude();if(n>=o+a)return this.clone();if(a>=o+n)return e.clone();var l=.5*(n+o+a);return en.copy(i).scale((-n+l)/o).add(t),this.center.copy(en),this.radius=l,this}},{key:"expand",value:function(e){var t=(e=$t.from(e)).subtract(this.center).magnitude();return t>this.radius&&(this.radius=t),this}},{key:"intersectPlane",value:function(e){var t=this.center,n=this.radius,r=e.normal.dot(t)+e.distance;return r<-n?Kt.OUTSIDE:r0&&void 0!==arguments[0]?arguments[0]:[0,0,0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0,0,0,0,0,0];Object(ct.a)(this,e),this.center=(new pt.a).from(t),this.halfAxes=new rn.a(n)}return Object(dt.a)(e,[{key:"fromCenterHalfSizeQuaternion",value:function(e,t,n){var r=new an.a(n),a=(new rn.a).fromQuaternion(r);return a[0]=a[0]*t[0],a[1]=a[1]*t[0],a[2]=a[2]*t[0],a[3]=a[3]*t[1],a[4]=a[4]*t[1],a[5]=a[5]*t[1],a[6]=a[6]*t[2],a[7]=a[7]*t[2],a[8]=a[8]*t[2],this.center=(new pt.a).from(e),this.halfAxes=a,this}},{key:"clone",value:function(){return new e(this.center,this.halfAxes)}},{key:"equals",value:function(e){return this===e||Boolean(e)&&this.center.equals(e.center)&&this.halfAxes.equals(e.halfAxes)}},{key:"getBoundingSphere",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new tn,t=this.halfAxes,n=t.getColumn(0,pn),r=t.getColumn(1,hn),a=t.getColumn(2,mn),i=on.copy(n).add(r).add(a);return e.center.copy(this.center),e.radius=i.magnitude(),e}},{key:"intersectPlane",value:function(e){var t=this.center,n=e.normal,r=this.halfAxes,a=n.x,i=n.y,o=n.z,l=Math.abs(a*r[gn]+i*r[vn]+o*r[yn])+Math.abs(a*r[bn]+i*r[An]+o*r[_n])+Math.abs(a*r[On]+i*r[En]+o*r[xn]),u=n.dot(t)+e.distance;return u<=-l?Kt.OUTSIDE:u>=l?Kt.INSIDE:Kt.INTERSECTING}},{key:"distanceTo",value:function(e){return Math.sqrt(this.distanceSquaredTo(e))}},{key:"distanceSquaredTo",value:function(e){var t=ln.from(e).subtract(this.center),n=this.halfAxes,r=n.getColumn(0,un),a=n.getColumn(1,sn),i=n.getColumn(2,cn),o=r.magnitude(),l=a.magnitude(),u=i.magnitude();r.normalize(),a.normalize(),i.normalize();var s,c=0;return(s=Math.abs(t.dot(r))-o)>0&&(c+=s*s),(s=Math.abs(t.dot(a))-l)>0&&(c+=s*s),(s=Math.abs(t.dot(i))-u)>0&&(c+=s*s),c}},{key:"computePlaneDistances",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[-0,-0],r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,i=this.center,o=this.halfAxes,l=o.getColumn(0,un),u=o.getColumn(1,sn),s=o.getColumn(2,cn),c=dn.copy(l).add(u).add(s).add(i),d=fn.copy(c).subtract(e),f=t.dot(d);return r=Math.min(f,r),a=Math.max(f,a),c.copy(i).add(l).add(u).subtract(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),c.copy(i).add(l).subtract(u).add(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),c.copy(i).add(l).subtract(u).subtract(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),i.copy(c).subtract(l).add(u).add(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),i.copy(c).subtract(l).add(u).subtract(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),i.copy(c).subtract(l).subtract(u).add(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),i.copy(c).subtract(l).subtract(u).subtract(s),d.copy(c).subtract(e),f=t.dot(d),r=Math.min(f,r),a=Math.max(f,a),n[0]=r,n[1]=a,n}},{key:"getTransform",value:function(){}},{key:"halfSize",get:function(){var e=this.halfAxes.getColumn(0),t=this.halfAxes.getColumn(1),n=this.halfAxes.getColumn(2);return[new pt.a(e).len(),new pt.a(t).len(),new pt.a(n).len()]}},{key:"quaternion",get:function(){var e=this.halfAxes.getColumn(0),t=this.halfAxes.getColumn(1),n=this.halfAxes.getColumn(2),r=new pt.a(e).normalize(),a=new pt.a(t).normalize(),i=new pt.a(n).normalize();return(new an.a).fromMatrix3(new rn.a([].concat(Object(nn.a)(r),Object(nn.a)(a),Object(nn.a)(i))))}}]),e}(),wn=new pt.a,Sn=new pt.a,Tn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,1],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(ct.a)(this,e),this.normal=new pt.a,this.distance=-0,this.fromNormalDistance(t,n)}return Object(dt.a)(e,[{key:"fromNormalDistance",value:function(e,t){return Object(mt.a)(Number.isFinite(t)),this.normal.from(e).normalize(),this.distance=t,this}},{key:"fromPointNormal",value:function(e,t){e=wn.from(e),this.normal.from(t).normalize();var n=-this.normal.dot(e);return this.distance=n,this}},{key:"fromCoefficients",value:function(e,t,n,r){return this.normal.set(e,t,n),Object(mt.a)(Object(vt.d)(this.normal.len(),1)),this.distance=r,this}},{key:"clone",value:function(t){return new e(this.normal,this.distance)}},{key:"equals",value:function(e){return Object(vt.d)(this.distance,e.distance)&&Object(vt.d)(this.normal,e.normal)}},{key:"getPointDistance",value:function(e){return this.normal.dot(e)+this.distance}},{key:"transform",value:function(e){var t=Sn.copy(this.normal).transformAsVector(e).normalize(),n=this.normal.scale(-this.distance).transform(e);return this.fromPointNormal(n,t)}},{key:"projectPointOntoPlane",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];e=wn.from(e);var n=this.getPointDistance(e),r=Sn.copy(this.normal).scale(n);return e.subtract(r).to(t)}}]),e}();function Cn(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];Object(ct.a)(this,e),this.planes=t,Object(mt.a)(this.planes.every((function(e){return e instanceof Tn})))}return Object(dt.a)(e,null,[{key:"MASK_OUTSIDE",get:function(){return 4294967295}},{key:"MASK_INSIDE",get:function(){return 0}},{key:"MASK_INDETERMINATE",get:function(){return 2147483647}}]),Object(dt.a)(e,[{key:"fromBoundingSphere",value:function(e){this.planes.length=2*Pn.length;var t,n=e.center,r=e.radius,a=0,i=Cn(Pn);try{for(i.s();!(t=i.n()).done;){var o=t.value,l=this.planes[a],u=this.planes[a+1];l||(l=this.planes[a]=new Tn),u||(u=this.planes[a+1]=new Tn);var s=kn.copy(o).scale(-r).add(n);o.dot(s);l.fromPointNormal(s,o);var c=kn.copy(o).scale(r).add(n),d=Dn.copy(o).negate();d.dot(c);u.fromPointNormal(c,d),a+=2}}catch(e){i.e(e)}finally{i.f()}return this}},{key:"computeVisibility",value:function(e){Object(mt.a)(e);var t,n=Kt.INSIDE,r=Cn(this.planes);try{for(r.s();!(t=r.n()).done;){var a=t.value;switch(e.intersectPlane(a)){case Kt.OUTSIDE:return Kt.OUTSIDE;case Kt.INTERSECTING:n=Kt.INTERSECTING}}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"computeVisibilityWithPlaneMask",value:function(t,n){if(Object(mt.a)(t,"boundingVolume is required."),Object(mt.a)(Number.isFinite(n),"parentPlaneMask is required."),n===e.MASK_OUTSIDE||n===e.MASK_INSIDE)return n;for(var r=e.MASK_INSIDE,a=this.planes,i=0;i0&&void 0!==arguments[0]?arguments[0]:{};Object(ct.a)(this,e),t=In({near:1,far:5e8},t),this.left=t.left,this._left=void 0,this.right=t.right,this._right=void 0,this.top=t.top,this._top=void 0,this.bottom=t.bottom,this._bottom=void 0,this.near=t.near,this._near=this.near,this.far=t.far,this._far=this.far,this._cullingVolume=new Rn([new Tn,new Tn,new Tn,new Tn,new Tn,new Tn]),this._perspectiveMatrix=new ft.a,this._infinitePerspective=new ft.a}return Object(dt.a)(e,[{key:"clone",value:function(){return new e({right:this.right,left:this.left,top:this.top,bottom:this.bottom,near:this.near,far:this.far})}},{key:"equals",value:function(t){return t&&t instanceof e&&this.right===t.right&&this.left===t.left&&this.top===t.top&&this.bottom===t.bottom&&this.near===t.near&&this.far===t.far}},{key:"computeCullingVolume",value:function(e,t,n){Object(mt.a)(e,"position is required."),Object(mt.a)(t,"direction is required."),Object(mt.a)(n,"up is required.");var r=this._cullingVolume.planes;n=Fn.copy(n).normalize();var a=Nn.copy(t).cross(n).normalize(),i=Bn.copy(t).multiplyByScalar(this.near).add(e),o=zn.copy(t).multiplyByScalar(this.far).add(e),l=Un;return l.copy(a).multiplyByScalar(this.left).add(i).subtract(e).cross(n),r[0].fromPointNormal(e,l),l.copy(a).multiplyByScalar(this.right).add(i).subtract(e).cross(n).negate(),r[1].fromPointNormal(e,l),l.copy(n).multiplyByScalar(this.bottom).add(i).subtract(e).cross(a).negate(),r[2].fromPointNormal(e,l),l.copy(n).multiplyByScalar(this.top).add(i).subtract(e).cross(a),r[3].fromPointNormal(e,l),l=(new pt.a).copy(t),r[4].fromPointNormal(i,l),l.negate(),r[5].fromPointNormal(o,l),this._cullingVolume}},{key:"getPixelDimensions",value:function(e,t,n,r){Hn(this),Object(mt.a)(Number.isFinite(e)&&Number.isFinite(t)),Object(mt.a)(e>0),Object(mt.a)(t>0),Object(mt.a)(n>0),Object(mt.a)(r);var a=1/this.near,i=this.top*a,o=2*n*i/t,l=2*n*(i=this.right*a)/e;return r.x=l,r.y=o,r}},{key:"projectionMatrix",get:function(){return Hn(this),this._perspectiveMatrix}},{key:"infiniteProjectionMatrix",get:function(){return Hn(this),this._infinitePerspective}}]),e}();function Hn(e){Object(mt.a)(Number.isFinite(e.right)&&Number.isFinite(e.left)&&Number.isFinite(e.top)&&Number.isFinite(e.bottom)&&Number.isFinite(e.near)&&Number.isFinite(e.far));var t=e.top,n=e.bottom,r=e.right,a=e.left,i=e.near,o=e.far;t===e._top&&n===e._bottom&&a===e._left&&r===e._right&&i===e._near&&o===e._far||(Object(mt.a)(e.near>0&&e.near0&&void 0!==arguments[0]?arguments[0]:{};Object(ct.a)(this,e),t=Wn({near:1,far:5e8,xOffset:0,yOffset:0},t),this._offCenterFrustum=new Vn,this.fov=t.fov,this._fov=void 0,this._fovy=void 0,this._sseDenominator=void 0,this.aspectRatio=t.aspectRatio,this._aspectRatio=void 0,this.near=t.near,this._near=this.near,this.far=t.far,this._far=this.far,this.xOffset=t.xOffset,this._xOffset=this.xOffset,this.yOffset=t.yOffset,this._yOffset=this.yOffset}Object(dt.a)(e,[{key:"clone",value:function(){return new e({aspectRatio:this.aspectRatio,fov:this.fov,near:this.near,far:this.far})}},{key:"equals",value:function(t){return null!=t&&t instanceof e&&(Gn(this),Gn(t),this.fov===t.fov&&this.aspectRatio===t.aspectRatio&&this.near===t.near&&this.far===t.far&&this._offCenterFrustum.equals(t._offCenterFrustum))}},{key:"computeCullingVolume",value:function(e,t,n){return Gn(this),this._offCenterFrustum.computeCullingVolume(e,t,n)}},{key:"getPixelDimensions",value:function(e,t,n,r){return Gn(this),this._offCenterFrustum.getPixelDimensions(e,t,n,r)}},{key:"projectionMatrix",get:function(){return Gn(this),this._offCenterFrustum.projectionMatrix}},{key:"infiniteProjectionMatrix",get:function(){return Gn(this),this._offCenterFrustum.infiniteProjectionMatrix}},{key:"fovy",get:function(){return Gn(this),this._fovy}},{key:"sseDenominator",get:function(){return Gn(this),this._sseDenominator}}])}();function Gn(e){Object(mt.a)(Number.isFinite(e.fov)&&Number.isFinite(e.aspectRatio)&&Number.isFinite(e.near)&&Number.isFinite(e.far));var t=e._offCenterFrustum;e.fov===e._fov&&e.aspectRatio===e._aspectRatio&&e.near===e._near&&e.far===e._far&&e.xOffset===e._xOffset&&e.yOffset===e._yOffset||(Object(mt.a)(e.fov>=0&&e.fov0),Object(mt.a)(e.near>=0&&e.near0&&void 0!==arguments[0]?arguments[0]:new ft.a,t=e.clone().multiplyRight(this.transform),n=!t.equals(this.computedTransform);n&&(this.computedTransform=t,this._updateBoundingVolume(this.header))}},{key:"updateExpiration",value:function(){if(null!=this._expireDate&&this.contentReady&&!this.hasEmptyContent){var e=Date.now();Date.lessThan(this._expireDate,e)&&(this.contentState=nr,this._expiredContent=this.content)}}},{key:"selected",get:function(){return this._selectedFrame===this.tileset._frameNumber}},{key:"isVisible",get:function(){return this._visible}},{key:"isVisibleAndInRequestVolume",get:function(){return this._visible&&this._inRequestVolume}},{key:"hasRenderContent",get:function(){return!this.hasEmptyContent&&!this.hasTilesetContent}},{key:"hasChildren",get:function(){return this.children.length>0||this.header.children&&this.header.children.length>0}},{key:"contentReady",get:function(){return this.contentState===tr||this.hasEmptyContent}},{key:"contentAvailable",get:function(){return Boolean(this.contentReady&&this.hasRenderContent||this._expiredContent&&!this.contentFailed)}},{key:"hasUnloadedContent",get:function(){return this.hasRenderContent&&this.contentUnloaded}},{key:"contentUnloaded",get:function(){return this.contentState===$n}},{key:"contentExpired",get:function(){return this.contentState===nr}},{key:"contentFailed",get:function(){return this.contentState===rr}},{key:"extras",get:function(){return this.header.extras}}]),e}(),Cr=n(18),Lr=n(19),Pr=n(14),kr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Object(ct.a)(this,e),this._array=new Array(t),this._map=new Map,this._length=t}return Object(dt.a)(e,[{key:"get",value:function(e){return Object(Yt.a)(e=0),e>=this.length&&(this.length=e+1),this._map.has(this._array[e])&&this._map.delete(this._array[e]),this._array[e]=t,this._map.set(t,e)}},{key:"delete",value:function(e){var t=this._map.get(e);t>=0&&(this._array.splice(t,1),this._map.delete(e),this.length--)}},{key:"peek",value:function(){return this._array[this._length-1]}},{key:"push",value:function(e){if(!this._map.has(e)){var t=this.length++;this._array[t]=e,this._map.set(e,t)}}},{key:"pop",value:function(){var e=this._array[--this.length];return this._map.delete(e),e}},{key:"reserve",value:function(e){Object(Yt.a)(e>=0),e>this._array.length&&(this._array.length=e)}},{key:"resize",value:function(e){Object(Yt.a)(e>=0),this.length=e}},{key:"trim",value:function(e){null==e&&(e=this.length),this._array.length=e}},{key:"reset",value:function(){this._array=[],this._map=new Map,this._length=0}},{key:"find",value:function(e){return this._map.has(e)}},{key:"length",get:function(){return this._length},set:function(e){this._length=e,e>this._array.length&&(this._array.length=e)}},{key:"values",get:function(){return this._array}}]),e}();function Dr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;){var r=n.pop(),a=!1;this.canTraverse(r,t)&&(this.updateChildTiles(r,t),a=this.updateAndPushChildren(r,t,n));var i=r.parent,o=Boolean(!i||i._shouldRefine),l=!a;r.hasRenderContent?r.refine===ar?(this.loadTile(r,t),this.selectTile(r,t)):r.refine===ir&&(this.loadTile(r,t),l&&this.selectTile(r,t)):(this.emptyTiles[r.id]=r,this.loadTile(r,t),l&&this.selectTile(r,t)),this.touchTile(r,t),r._shouldRefine=a&&o}this.options.onTraversalEnd&&this.options.onTraversalEnd(t)}},{key:"updateChildTiles",value:function(e,t){var n,r=Dr(e.children);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.updateTile(a,t)}}catch(e){r.e(e)}finally{r.f()}return!0}},{key:"updateAndPushChildren",value:function(e,t,n){var r=this.options,a=r.loadSiblings,i=r.skipLevelOfDetail,o=e.children;o.sort(this.compareDistanceToCamera);var l,u=!i&&e.refine===ir&&e.hasRenderContent,s=!1,c=Dr(o);try{for(c.s();!(l=c.n()).done;){var d=l.value;if(d.isVisibleAndInRequestVolume?(n.find(d)&&n.delete(d),n.push(d),s=!0):(u||a)&&(this.loadTile(d,t),this.touchTile(d,t)),u){var f=void 0;if(!(f=!!d._inRequestVolume&&(d.hasRenderContent?d.contentAvailable:this.executeEmptyTraversal(d,t))))return f}}}catch(e){c.e(e)}finally{c.f()}return s}},{key:"updateTile",value:function(e,t){this.updateTileVisibility(e,t)}},{key:"selectTile",value:function(e,t){this.shouldSelectTile(e,t)&&(e._selectedFrame=t.frameNumber,this.selectedTiles[e.id]=e)}},{key:"loadTile",value:function(e,t){this.shouldLoadTile(e,t)&&(e._requestedFrame=t.frameNumber,e._priority=this.getPriority(e),this.requestedTiles[e.id]=e)}},{key:"touchTile",value:function(e,t){e.tileset._cache.touch(e),e._touchedFrame=t.frameNumber}},{key:"canTraverse",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return!(!r&&!e.isVisibleAndInRequestVolume)&&(!!e.hasChildren&&(e.hasTilesetContent?!e.contentExpired:this.shouldRefine(e,t,n)))}},{key:"shouldLoadTile",value:function(e,t){return e.hasUnloadedContent||e.contentExpired}},{key:"shouldSelectTile",value:function(e,t){return e.contentAvailable&&!this.options.skipLevelOfDetail}},{key:"shouldRefine",value:function(e,t,n){var r=e._screenSpaceError;return n&&(r=e.getScreenSpaceError(t,!0)),r>this.options.maximumScreenSpaceError}},{key:"updateTileVisibility",value:function(e,t){e.updateVisibility(t)}},{key:"compareDistanceToCamera",value:function(e,t){return e._distanceToCamera-t._distanceToCamera}},{key:"getPriority",value:function(e){var t=this.options;switch(e.refine){case ar:return e._distanceToCamera;case ir:var n=e.parent,r=n&&(!t.skipLevelOfDetail||0===e._screenSpaceError||n.hasTilesetContent)?n._screenSpaceError:e._screenSpaceError;return this.root._screenSpaceError-r;default:return Object(Yt.a)(!1)}}},{key:"anyChildrenVisible",value:function(e,t){var n,r=!1,a=Dr(e.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.updateVisibility(t),r=r||i.isVisibleAndInRequestVolume}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"executeEmptyTraversal",value:function(e,t){for(var n=!0,r=this._emptyTraversalStack;r.length>0;){var a=r.pop();this.updateTile(a,t),a.isVisibleAndInRequestVolume||(this.loadTile(a,t),this.touchTile(a,t));var i=!a.hasRenderContent&&this.canTraverse(a,t,!1,!0);if(i||a.contentAvailable||(n=!1),i){var o,l=Dr(a.children.filter((function(e){return e})));try{for(l.s();!(o=l.n()).done;){var u=o.value;r.find(u)&&r.delete(u),r.push(u)}}catch(e){l.e(e)}finally{l.f()}}}return n}}]),e}();function Br(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Pr.a)(e);if(t){var a=Object(Pr.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var zr=function(e){Object(Cr.a)(n,e);var t=Br(n);function n(){return Object(ct.a)(this,n),t.apply(this,arguments)}return Object(dt.a)(n,[{key:"compareDistanceToCamera",value:function(e,t){return 0===t._distanceToCamera&&0===e._distanceToCamera?t._centerZDepth-e._centerZDepth:t._distanceToCamera-e._distanceToCamera}},{key:"updateTileVisibility",value:function(e,t){if(e.updateVisibility(t),e.isVisibleAndInRequestVolume){var n=e.children.length>0;if(e.hasTilesetContent&&n){var r=e.children[0];return this.updateTileVisibility(r,t),void(e._visible=r._visible)}if(this.meetsScreenSpaceErrorEarly(e,t))e._visible=!1;else{var a=e.refine===ir,i=e._optimChildrenWithinParent===pr;a&&i&&n&&!this.anyChildrenVisible(e,t)&&(e._visible=!1)}}}},{key:"meetsScreenSpaceErrorEarly",value:function(e,t){var n=e.parent;return!(!n||n.hasTilesetContent||n.refine!==ar)&&!this.shouldRefine(e,t,!0)}}]),n}(Nr),Ur="REQUESTED",Vr="COMPLETED",Hr="ERROR",Yr=function(){function e(){Object(ct.a)(this,e),this._statusMap={}}return Object(dt.a)(e,[{key:"add",value:function(e,t,n,r){var a=this;this._statusMap[t]||(this._statusMap[t]={request:e,callback:n,key:t,frameState:r,status:Ur},e().then((function(e){a._statusMap[t].status=Vr,a._statusMap[t].callback(e,r)})).catch((function(e){a._statusMap[t].status=Hr,n(e)})))}},{key:"update",value:function(e,t){this._statusMap[e]&&(this._statusMap[e].frameState=t)}},{key:"find",value:function(e){return this._statusMap[e]}}]),e}();function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ng+l/6378137)return"OUT";if(Er(f,h)>v)return"OUT";if(Er(f,m)>y)return"OUT";if(0===e.lodMetricValue)return"DIG";var b=xr(e,t);return(b*=_r)<.5?"OUT":!e.header.children||b<=e.lodMetricValue?"DRAW":e.header.children?"DIG":"OUT"}(e,t),"DIG"===e._lodJudge}},{key:"updateChildTiles",value:function(e,t){var n,r=this,a=e.header.children||[],i=e.children,o=e.tileset,l=qr(a);try{var u=function(){var a=n.value,l=i&&i.find((function(e){return e.id===a.id}));if(l)l&&r.updateTile(l,t);else{var u=function(){return r._loadTile(a.id,o)};r._tileManager.find(a.id)?r._tileManager.update(a.id,t):(o.tileset.nodePages&&(u=function(){return o.tileset.nodePagesTile.formTileFromNodePages(a.id)}),r._tileManager.add(u,a.id,(function(t){return r._onTileLoad(t,e)}),t))}};for(l.s();!(n=l.n()).done;)u()}catch(e){l.e(e)}finally{l.f()}}},{key:"_loadTile",value:(t=Object(ut.a)(lt.a.mark((function e(t,n){var r,a,i;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.loader,a=n.getTileUrl("".concat(n.url,"/nodes/").concat(t)),i={i3s:Gr(Gr({},n.fetchOptions),{},{isTileHeader:!0,loadContent:!1})},e.next=5,Object(it.a)(a,r,i);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"_onTileLoad",value:function(e,t){var n=this.options.basePath,r=new Tr(t.tileset,e,t,n);t.children.push(r);var a=this._tileManager.find(r.id).frameState;this.updateTile(r,a),this._frameNumber===a.frameNumber&&this.executeTraversal(r,a)}}]),r}(Nr);function Jr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};Object(ct.a)(this,e),Object(Yt.a)(t),this.options=ea(ea({},ta),n),this.tileset=t,this.loader=t.loader,this.type=t.type,this.url=t.url,this.basePath=t.basePath||Wt.a.dirname(this.url),this.modelMatrix=this.options.modelMatrix,this.ellipsoid=this.options.ellipsoid,this.lodMetricType=t.lodMetricType,this.lodMetricValue=t.lodMetricValue,this.refine=t.root.refine,this.fetchOptions=this.options.fetchOptions||{},this.options.headers&&(this.fetchOptions.headers=this.options.headers),this.options.token&&(this.fetchOptions.token=this.options.token),this.root=null,this.cartographicCenter=null,this.cartesianCenter=null,this.zoom=1,this.boundingVolume=null,this._traverser=this._initializeTraverser(),this._cache=new Zt,this._requestScheduler=new Pe.a({throttleRequests:this.options.throttleRequests}),this._frameNumber=0,this._updateFrameNumber=0,this._pendingCount=0,this._tiles={},this.selectedTiles=[],this._emptyTiles=[],this._requestedTiles=[],this._selectedTilesToStyle=[],this._queryParams={},this._queryParamsString=null,this.maximumMemoryUsage=this.options.maximumMemoryUsage,this.gpuMemoryUsageInBytes=0,this.stats=new Ht.a({id:this.url}),this._initializeStats(),this._hasMixedContent=!1,this._maximumScreenSpaceError=this.options.maximumScreenSpaceError,this._properties=void 0,this._extensionsUsed=void 0,this._gltfUpAxis=void 0,this._dynamicScreenSpaceErrorComputedDensity=0,this.extras=null,this.asset={},this.credits={},this.description=this.options.description,this._defaultGeometrySchema=[],this._initializeTileSet(t,this.options)}var t;return Object(dt.a)(e,[{key:"isLoaded",value:function(){return 0===this._pendingCount}},{key:"destroy",value:function(){this._destroy()}},{key:"getTileUrl",value:function(e){return e.startsWith("data:")?e:"".concat(e).concat(this.queryParams)}},{key:"update",value:function(e){this._cache.reset(),this._frameNumber++,this._frameState=Kn(e,this._frameNumber),this._traverser.traverse(this.root,this._frameState,this.options)}},{key:"_onTraversalEnd",value:function(){var e=Object.values(this._traverser.selectedTiles);this._tilesChanged(this.selectedTiles,e)&&this._updateFrameNumber++,this.selectedTiles=e;var t,n=Jr(this.selectedTiles);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._tiles[r.id]=r}}catch(e){n.e(e)}finally{n.f()}return this._requestedTiles=Object.values(this._traverser.requestedTiles),this._emptyTiles=Object.values(this._traverser.emptyTiles),this._loadTiles(this._frameState),this._unloadTiles(),this._updateStats(),this._updateFrameNumber}},{key:"_tilesChanged",value:function(e,t){if(e.length!==t.length)return!0;var n=new Set(e.map((function(e){return e.id}))),r=new Set(t.map((function(e){return e.id}))),a=e.filter((function(e){return!r.has(e.id)})).length>0;return a=a||t.filter((function(e){return!n.has(e.id)})).length>0}},{key:"_loadTiles",value:function(e){var t,n=Jr(this._requestedTiles);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.contentUnloaded&&this._loadTile(r,e)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_unloadTiles",value:function(){this._cache.unloadTiles(this,(function(e,t){return e._unloadTile(t)}))}},{key:"_updateStats",value:function(){var e,t=0,n=0,r=Jr(this.selectedTiles);try{for(r.s();!(e=r.n()).done;){var a=e.value;a.contentAvailable&&(t++,a.content.pointCount&&(n+=a.content.pointCount))}}catch(e){r.e(e)}finally{r.f()}this.stats.get("Tiles In View").count=this.selectedTiles.length,this.stats.get("Tiles To Render").count=t,this.stats.get("Points").count=n}},{key:"_initializeTileSet",value:function(e){this.root=this._initializeTileHeaders(e,null,this.basePath),this.type===dr&&this._initializeCesiumTileset(e),this.type===cr&&this._initializeI3STileset(e),this._calculateViewProps()}},{key:"_calculateViewProps",value:function(){var e=this.root,t=e.boundingVolume.center;if(!t)return console.warn("center was not pre-calculated for the root tile"),this.cartographicCenter=new pt.a,void(this.zoom=1);this.cartographicCenter=Vt.WGS84.cartesianToCartographic(t,new pt.a),this.cartesianCenter=t,this.zoom=function(e){var t=e.halfAxes,n=e.radius,r=e.width,a=e.height;if(t){t.getColumn(0,Jn);var i=Jn.len();t.getColumn(1,Jn);var o=Jn.len();t.getColumn(2,Jn);var l=i/2,u=o/2,s=Jn.len()/2;return(Math.log2(6378137/l)+Math.log2(6378137/u)+Math.log2(6356752.314245179/s))/3}return n?Math.log2(6356752.314245179/n):a&&r?(Math.log2(6378137/r)+Math.log2(6378137/a))/2:1}(e.boundingVolume)}},{key:"_initializeStats",value:function(){this.stats.get("Tiles In Tileset(s)"),this.stats.get("Tiles Loading"),this.stats.get("Tiles In Memory"),this.stats.get("Tiles In View"),this.stats.get("Tiles To Render"),this.stats.get("Tiles Loaded"),this.stats.get("Tiles Unloaded"),this.stats.get("Failed Tile Loads"),this.stats.get("Points","memory"),this.stats.get("Tile Memory Use","memory")}},{key:"_initializeTileHeaders",value:function(e,t,n){var r=new Tr(this,e.root,t,n);if(t&&(t.children.push(r),r.depth=t.depth+1),this.type===dr){var a=[];for(a.push(r);a.length>0;){var i=a.pop();this.stats.get("Tiles In Tileset(s)").incrementCount();var o,l=Jr(i.header.children||[]);try{for(l.s();!(o=l.n()).done;){var u=o.value,s=new Tr(this,u,i,n);i.children.push(s),s.depth=i.depth+1,a.push(s)}}catch(e){l.e(e)}finally{l.f()}}}return r}},{key:"_initializeTraverser",value:function(){var e;switch(this.type){case dr:e=zr;break;case cr:e=Kr;break;default:e=Nr}return new e({basePath:this.basePath,onTraversalEnd:this._onTraversalEnd.bind(this)})}},{key:"_destroyTileHeaders",value:function(e){this._destroySubtree(e)}},{key:"_loadTile",value:(t=Object(ut.a)(lt.a.mark((function e(t,n){var r;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this._onStartTileLoading(),e.next=4,t.loadContent(n);case 4:r=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this._onTileLoadError(t,e.t0);case 10:return e.prev=10,this._onEndTileLoading(),this._onTileLoad(t,r),e.finish(10);case 14:case"end":return e.stop()}}),e,this,[[0,7,10,14]])}))),function(e,n){return t.apply(this,arguments)})},{key:"_onTileLoadError",value:function(e,t){this.stats.get("Failed Tile Loads").incrementCount();var n=t.message||t.toString(),r=e.url;console.error("A 3D tile failed to load: ".concat(e.url," ").concat(n)),this.options.onTileError(e,n,r)}},{key:"_onTileLoad",value:function(e,t){t&&(e&&e.content&&function(e,t){Object(Yt.a)(e),Object(Yt.a)(t);var n=t.rtcCenter,r=t.gltfUpAxis,a=e.computedTransform,i=e.boundingVolume.center,o=new ft.a(a);switch(n&&o.translate(n),r){case"Z":break;case"Y":var l=(new ft.a).rotateX(Math.PI/2);o=o.multiplyRight(l);break;case"X":var u=(new ft.a).rotateY(-Math.PI/2);o=o.multiplyRight(u)}t.isQuantized&&o.translate(t.quantizedVolumeOffset).scale(t.quantizedVolumeScale);var s=new pt.a(i);t.cartesianModelMatrix=o,t.cartesianOrigin=s;var c=Vt.WGS84.cartesianToCartographic(s,new pt.a),d=Vt.WGS84.eastNorthUpToFixedFrame(s).invert();t.cartographicModelMatrix=d.multiplyRight(o),t.cartographicOrigin=c,t.modelMatrix=t.cartographicModelMatrix}(e,e.content),this._addTileToCache(e),this.options.onTileLoad(e))}},{key:"_onStartTileLoading",value:function(){this._pendingCount++,this.stats.get("Tiles Loading").incrementCount()}},{key:"_onEndTileLoading",value:function(){this._pendingCount--,this.stats.get("Tiles Loading").decrementCount()}},{key:"_addTileToCache",value:function(e){this._cache.add(this,e,(function(t){return t._updateCacheStats(e)}))}},{key:"_updateCacheStats",value:function(e){this.stats.get("Tiles Loaded").incrementCount(),this.stats.get("Tiles In Memory").incrementCount(),this.gpuMemoryUsageInBytes+=e.content.byteLength||0,this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes}},{key:"_unloadTile",value:function(e){this.gpuMemoryUsageInBytes-=e.content.byteLength||0,this.stats.get("Tiles In Memory").decrementCount(),this.stats.get("Tiles Unloaded").incrementCount(),this.stats.get("Tile Memory Use").count=this.gpuMemoryUsageInBytes,this.options.onTileUnload(e),e.unloadContent()}},{key:"_destroy",value:function(){var e=[];for(this.root&&e.push(this.root);e.length>0;){var t,n=e.pop(),r=Jr(n.children);try{for(r.s();!(t=r.n()).done;){var a=t.value;e.push(a)}}catch(e){r.e(e)}finally{r.f()}this._destroyTile(n)}this.root=null}},{key:"_destroySubtree",value:function(e){var t=e,n=[];for(n.push(t);n.length>0;){var r,a=Jr((e=n.pop()).children);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.push(i)}}catch(e){a.e(e)}finally{a.f()}e!==t&&this._destroyTile(e)}t.children=[]}},{key:"_destroyTile",value:function(e){this._cache.unloadTile(this,e),this._unloadTile(e),e.destroy()}},{key:"_initializeCesiumTileset",value:function(e){if(this.asset=e.asset,!this.asset)throw new Error("Tileset must have an asset property.");if("0.0"!==this.asset.version&&"1.0"!==this.asset.version)throw new Error("The tileset must be 3D Tiles version 0.0 or 1.0.");"tilesetVersion"in this.asset&&(this._queryParams.v=this.asset.tilesetVersion),this.credits={attributions:this.options.attributions||[]},this.description=this.options.description,this.properties=e.properties,this.geometricError=e.geometricError,this._extensionsUsed=e.extensionsUsed,this.extras=e.extras}},{key:"_initializeI3STileset",value:function(e){"token"in this.options&&(this._queryParams.token=this.options.token),this._defaultGeometrySchema=e.store.defaultGeometrySchema}},{key:"hasExtension",value:function(e){return Boolean(this._extensionsUsed&&this._extensionsUsed.indexOf(e)>-1)}},{key:"tiles",get:function(){return Object.values(this._tiles)}},{key:"queryParams",get:function(){return this._queryParamsString||(this._queryParamsString=function(e){for(var t=[],n=0,r=Object.keys(e);n1&&void 0!==arguments[1]?arguments[1]:0,n=new DataView(e);return"".concat(String.fromCharCode(n.getUint8(t+0))).concat(String.fromCharCode(n.getUint8(t+1))).concat(String.fromCharCode(n.getUint8(t+2))).concat(String.fromCharCode(n.getUint8(t+3)))}var oa,la=n(517),ua=n(124);function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};this.metadataQuerier=new this.draco.MetadataQuerier;var n=new this.draco.DecoderBuffer;n.Init(new Int8Array(e),e.byteLength);var r,a,i,o=new this.draco.Decoder,l={};try{var u=o.GetEncodedGeometryType(n);switch(u){case this.draco.TRIANGULAR_MESH:a=new this.draco.Mesh,r=o.DecodeBufferToMesh(n,a),i={type:va,faceCount:a.num_faces(),attributeCount:a.num_attributes(),vertexCount:a.num_points()};break;case this.draco.POINT_CLOUD:a=new this.draco.PointCloud,r=o.DecodeBufferToPointCloud(n,a),i={type:ya,attributeCount:a.num_attributes(),vertexCount:a.num_points()};break;default:throw new Error("Unknown DRACO geometry type.")}if(!r.ok()||!a.ptr){var s="DRACO decompression failed: ".concat(r.error_msg());throw a&&this.draco.destroy(a),new Error(s)}l.loaderData={header:i},this._extractDRACOGeometry(o,a,u,l,t);var c=this._getGeometryMetadata(o,a);l.header={vertexCount:i.vertexCount,boundingBox:Object(ga.a)(l.attributes),metadata:c}}finally{this.draco.destroy(o),this.draco.destroy(n),this.draco.destroy(a),this.draco.destroy(this.metadataQuerier)}return l}},{key:"_extractDRACOGeometry",value:function(e,t,n,r,a){var i=this._getAttributes(e,t,a);if(!i.POSITION)throw new Error("DRACO decompressor: No position attribute found.");return n===this.draco.TRIANGULAR_MESH?(i.indices="TRIANGLE_STRIP"===this.drawMode?this._getMeshStripIndices(e,t):this._getMeshFaceIndices(e,t),r.mode="TRIANGLE_STRIP"===this.drawMode?5:4):r.mode=0,i.indices&&(r.indices={value:i.indices,size:1},delete i.indices),r.attributes=i,r}},{key:"getPositionAttributeMetadata",value:function(e){this.metadata=this.metadata||{},this.metadata.attributes=this.metadata.attributes||{};var t=new this.draco.AttributeQuantizationTransform;if(t.InitFromAttribute(e)){this.metadata.attributes.position.isQuantized=!0,this.metadata.attributes.position.maxRange=t.range(),this.metadata.attributes.position.numQuantizationBits=t.quantization_bits(),this.metadata.attributes.position.minValues=new Float32Array(3);for(var n=0;n<3;++n)this.metadata.attributes.position.minValues[n]=t.min_value(n)}this.draco.destroy(t)}},{key:"_getAttributes",value:function(e,t,n){for(var r={},a=t.num_points(),i=0;i2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0;void 0===a&&(a=(n.byteLength-r)/e.getByteSize(t));var i=e.getArrayType(t);return new i(n,r,a)}}]),e}(),Ra=function(){function e(t,n){Object(ct.a)(this,e),this.json=t,this.buffer=n,this.featuresLength=0,this._cachedTypedArrays={}}return Object(dt.a)(e,[{key:"getExtension",value:function(e){return this.json.extensions&&this.json.extensions[e]}},{key:"hasProperty",value:function(e){return Boolean(this.json[e])}},{key:"getGlobalProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:La.UNSIGNED_INT,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.json[e];return r&&Number.isFinite(r.byteOffset)?this._getTypedArrayFromBinary(e,t,n,1,r.byteOffset):r}},{key:"getPropertyArray",value:function(e,t,n){var r=this.json[e];return r&&Number.isFinite(r.byteOffset)?("componentType"in r&&(t=Da.fromName(r.componentType)),this._getTypedArrayFromBinary(e,t,n,this.featuresLength,r.byteOffset)):this._getTypedArrayFromArray(e,t,r)}},{key:"getProperty",value:function(e,t,n,r,a){var i=this.json[e];if(!i)return i;var o=this.getPropertyArray(e,t,n);if(1===n)return o[r];for(var l=0;l0?function(e,t,n){var r=e.classIds,a=e.parentCounts,i=e.parentIds,o=e.parentIndexes,l=r.length,u=scratchVisited;u.length=Math.max(u.length,l);var s=++marker,c=scratchStack;c.length=0,c.push(t);for(;c.length>0;)if(t=c.pop(),u[t]!==s){u[t]=s;var d=n(e,t);if(Ba(d))return d;for(var f=a[t],p=o[t],h=0;h3&&void 0!==arguments[3]?arguments[3]:{};for(var i in Object(ct.a)(this,e),Object(Yt.a)(r>=0),this.json=t||{},this.binary=n,this.featureCount=r,this._extensions=this.json&&this.json.extensions||{},this._properties={},this.json)Wa[i]||(this._properties[i]=this.json[i]);this._binaryProperties=this._initializeBinaryProperties(),a["3DTILES_batch_table_hierarchy"]&&(this._hierarchy=za(this,this.json,this.binary))}return Object(dt.a)(e,[{key:"getExtension",value:function(e){return this.json&&this.json.extensions&&this.json.extensions[e]}},{key:"memorySizeInBytes",value:function(){return 0}},{key:"isClass",value:function(e,t){return this._checkBatchId(e),Object(Yt.a)("string"==typeof t,t),!!this._hierarchy&&Ha(Ua(this._hierarchy,e,(function(e,n){var r=e.classIds[n];return e.classes[r].name===t})))}},{key:"isExactClass",value:function(e,t){return Object(Yt.a)("string"==typeof t,t),this.getExactClassName(e)===t}},{key:"getExactClassName",value:function(e){if(this._checkBatchId(e),this._hierarchy){var t=this._hierarchy.classIds[e];return this._hierarchy.classes[t].name}}},{key:"hasProperty",value:function(e,t){return this._checkBatchId(e),Object(Yt.a)("string"==typeof t,t),Ha(this._properties[t])||this._hasPropertyInHierarchy(e,t)}},{key:"getPropertyNames",value:function(e,t){var n;this._checkBatchId(e),(t=Ha(t)?t:[]).length=0;var r=Object.keys(this._properties);return(n=t).push.apply(n,Object(nn.a)(r)),this._hierarchy&&this._getPropertyNamesInHierarchy(e,t),t}},{key:"getProperty",value:function(e,t){if(this._checkBatchId(e),Object(Yt.a)("string"==typeof t,t),this._binaryProperties){var n=this._binaryProperties[t];if(Ha(n))return this._getBinaryProperty(n,e)}var r=this._properties[t];if(Ha(r))return Ya(r[e]);if(this._hierarchy){var a=this._getHierarchyProperty(e,t);if(Ha(a))return a}}},{key:"setProperty",value:function(e,t,n){var r=this.featureCount;if(this._checkBatchId(e),Object(Yt.a)("string"==typeof t,t),this._binaryProperties){var a=this._binaryProperties[t];if(a)return void this._setBinaryProperty(a,e,n)}if(!this._hierarchy||!this._setHierarchyProperty(this,e,t,n)){var i=this._properties[t];Ha(i)||(this._properties[t]=new Array(r),i=this._properties[t]),i[e]=Ya(n)}}},{key:"_checkBatchId",value:function(e){if(!(e>=0&&e2&&void 0!==arguments[2]?arguments[2]:0,r=new DataView(t);if(e.magic=r.getUint32(n,!0),n+=4,e.version=r.getUint32(n,!0),n+=4,e.byteLength=r.getUint32(n,!0),n+=4,1!==e.version)throw new Error("3D Tile Version ".concat(e.version," not supported"));return n}function Xa(e,t,n){var r=new DataView(t);return e.header=e.header||{},e.header.featureTableJsonByteLength=r.getUint32(n,!0),n+=4,e.header.featureTableBinaryByteLength=r.getUint32(n,!0),n+=4,e.header.batchTableJsonByteLength=r.getUint32(n,!0),n+=4,e.header.batchTableBinaryByteLength=r.getUint32(n,!0),n+=4}function Za(e,t,n,r){return n=function(e,t,n,r){var a=e.header,i=a.featureTableJsonByteLength,o=a.featureTableBinaryByteLength;if(e.featureTableJson={BATCH_LENGTH:0},i>0){var l=aa(t,n,i);e.featureTableJson=JSON.parse(l)}return n+=i,e.featureTableBinary=new Uint8Array(t,n,o),n+=o}(e,t,n),n=function(e,t,n,r){var a=e.header,i=a.batchTableJsonByteLength,o=a.batchTableBinaryByteLength;if(i>0){var l=aa(t,n,i);e.batchTableJson=JSON.parse(l),n+=i,o>0&&(e.batchTableBinary=new Uint8Array(t,n,o),e.batchTableBinary=new Uint8Array(e.batchTableBinary),n+=o)}return n}(e,t,n)}function Ka(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],n=e>>11&31,r=e>>5&63,a=31&e;return t[0]=n<<3,t[1]=r<<2,t[2]=a<<3,t}function Ja(e,t,n){if(!(t||e&&e.batchIds&&n))return null;var r=e.batchIds,a=e.isRGB565,i=e.pointCount;if(r&&n){for(var o=new Uint8ClampedArray(3*i),l=0;l1&&void 0!==arguments[1]?arguments[1]:255;return Object(vt.a)(e,0,t)/t*2-1}function ti(e){return e<0?-1:1}function ni(e,t,n,r){if($a(r),e<0||e>n||t<0||t>n)throw new Error("x and y must be unsigned normalized integers between 0 and ".concat(n));if(r.x=ei(e,n),r.y=ei(t,n),r.z=1-(Math.abs(r.x)+Math.abs(r.y)),r.z<0){var a=r.x;r.x=(1-Math.abs(r.y))*ti(a),r.y=(1-Math.abs(a))*ti(r.y)}return r.normalize()}function ri(e,t,n){return ni(e,t,255,n)}var ai=new pt.a;function ii(e,t,n){return e.isQuantized?n["3d-tiles"]&&n["3d-tiles"].decodeQuantizedPositions?(e.isQuantized=!1,function(e,t){for(var n=new pt.a,r=new Float32Array(3*e.pointCount),a=0;a12)){e.next=13;break}return u={},t.tiles.push(u),e.next=10,o(n,r,a,i,u);case 10:r=e.sent,e.next=5;break;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ji(e){return Ii.apply(this,arguments)}function Ii(){return(Ii=Object(ut.a)(lt.a.mark((function e(t){var n,r,a,i,o=arguments;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o.length>1&&void 0!==o[1]?o[1]:0,r=o.length>2?o[2]:void 0,a=o.length>3?o[3]:void 0,(i=o.length>4&&void 0!==o[4]?o[4]:{}).byteOffset=n,i.type=ia(t,n),e.t0=i.type,e.next=e.t0===ra.COMPOSITE?9:e.t0===ra.BATCHED_3D_MODEL?12:e.t0===ra.INSTANCED_3D_MODEL?15:e.t0===ra.POINT_CLOUD?18:21;break;case 9:return e.next=11,Di(i,t,n,r,a,ji);case 11:return e.abrupt("return",e.sent);case 12:return e.next=14,Si(i,t,n,r,a);case 14:return e.abrupt("return",e.sent);case 15:return e.next=17,Li(i,t,n,r,a);case 17:return e.abrupt("return",e.sent);case 18:return e.next=20,ui(i,t,n,r,a);case 20:return e.abrupt("return",e.sent);case 21:throw new Error("3DTileLoader: unknown type ".concat(i.type));case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ni(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;){var a,i=Fi(r.pop().children||[]);try{for(i.s();!(a=i.n()).done;){var o=a.value;Bi(o,{basePath:t}),r.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}function Ui(e){return Wt.a.dirname(e.url)}function Vi(e,t,n){return Hi.apply(this,arguments)}function Hi(){return(Hi=Object(ut.a)(lt.a.mark((function e(t,n,r){var a;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a={}).content=a.content||{},0,e.next=5,ji(t,0,n,r,a.content);case 5:return e.abrupt("return",a.content);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yi(e,t,n){return Wi.apply(this,arguments)}function Wi(){return(Wi=Object(ut.a)(lt.a.mark((function e(t,n,r){var a;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=JSON.parse((new TextDecoder).decode(t))).loader=n.loader||qi,a.url=r.url,a.basePath=Ui(a),a.root=zi(a),a.type=dr,a.lodMetricType=fr,a.lodMetricValue=a.root.lodMetricValue,e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gi(){return(Gi=Object(ut.a)(lt.a.mark((function e(t,n,r,a){var i;return lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n["3d-tiles"]||{},!("auto"===i.isTileset?r.url&&-1!==r.url.indexOf(".json"):i.isTileset)){e.next=8;break}return e.next=5,Yi(t,n,r);case 5:t=e.sent,e.next=11;break;case 8:return e.next=10,Vi(t,n,r);case 10:t=e.sent;case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var qi={id:"3d-tiles",name:"3D Tiles",version:"2.3.13",extensions:["cmpt","pnts","b3dm","i3dm"],mimeTypes:["application/octet-stream"],tests:["cmpt","pnts","b3dm","i3dm"],parse:function(e,t,n,r){return Gi.apply(this,arguments)},options:{"3d-tiles":{loadGLTF:!0,decodeQuantizedPositions:!1,isTileset:"auto",tile:null,tileset:null,assetGltfUpAxis:null}}},Xi=qi;function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t>=1)>1;){const e=r+i>>1,t=a+o>>1;1&n?(i=r,o=a,r=l,a=u):(r=i,a=o,i=l,o=u),l=e,u=t}const s=4*e;this.coords[s+0]=r,this.coords[s+1]=a,this.coords[s+2]=i,this.coords[s+3]=o}}createTile(e){return new ro(e,this)}}class ro{constructor(e,t){const n=t.gridSize;if(e.length!==n*n)throw new Error(`Expected terrain data of length ${n*n} (${n} x ${n}), got ${e.length}.`);this.terrain=e,this.martini=t,this.errors=new Float32Array(e.length),this.update()}update(){const{numTriangles:e,numParentTriangles:t,coords:n,gridSize:r}=this.martini,{terrain:a,errors:i}=this;for(let o=e-1;o>=0;o--){const e=4*o,l=n[e+0],u=n[e+1],s=n[e+2],c=n[e+3],d=l+s>>1,f=u+c>>1,p=d+f-u,h=f+l-d,m=(a[u*r+l]+a[c*r+s])/2,g=f*r+d,v=Math.abs(m-a[g]);if(i[g]=Math.max(i[g],v),o>1)*r+(l+p>>1),t=(c+h>>1)*r+(s+p>>1);i[g]=Math.max(i[g],i[e],i[t])}}}getMesh(e=0){const{gridSize:t,indices:n}=this.martini,{errors:r}=this;let a=0,i=0;const o=t-1;function l(o,u,s,c,d,f){const p=o+s>>1,h=u+c>>1;Math.abs(o-d)+Math.abs(u-f)>1&&r[h*t+p]>e?(l(d,f,o,u,p,h),l(s,c,d,f,p,h)):(n[u*t+o]=n[u*t+o]||++a,n[c*t+s]=n[c*t+s]||++a,n[f*t+d]=n[f*t+d]||++a,i++)}n.fill(0),l(0,0,o,o,o,0),l(o,o,0,0,0,o);const u=new Uint16Array(2*a),s=new Uint32Array(3*i);let c=0;function d(a,i,o,l,f,p){const h=a+o>>1,m=i+l>>1;if(Math.abs(a-f)+Math.abs(i-p)>1&&r[m*t+h]>e)d(f,p,a,i,h,m),d(o,l,f,p,h,m);else{const e=n[i*t+a]-1,r=n[l*t+o]-1,d=n[p*t+f]-1;u[2*e]=a,u[2*e+1]=i,u[2*r]=o,u[2*r+1]=l,u[2*d]=f,u[2*d+1]=p,s[c++]=e,s[c++]=r,s[c++]=d}}return d(0,0,o,o,o,0),d(o,o,0,0,0,o),{vertices:u,triangles:s}}}function ao(e,t){if(null===e)return null;var n=t.meshMaxError,r=t.bounds,a=t.elevationDecoder,i=e.data,o=e.width,l=o+1,u=function(e,t,n){for(var r=n.rScaler,a=n.bScaler,i=n.gScaler,o=n.offset,l=t+1,u=new Float32Array(l*l),s=0,c=0;ct[1])&&this.setState({zRange:[r,a]})}}},{key:"renderLayers",value:function(){var e=this.props,t=e.color,n=e.material,r=e.elevationData,a=e.texture,i=e.wireframe,o=e.meshMaxError,l=e.elevationDecoder;return this.state.isTiled?new Fe(this.getSubLayerProps({id:"tiles"}),{wireframe:i,color:t,material:n,getTileData:this.getTiledTerrainData.bind(this),renderSubLayers:this.renderSubLayers.bind(this),updateTriggers:{getTileData:{elevationData:po(r),texture:po(a),meshMaxError:o,elevationDecoder:l}},onViewportLoad:this.onViewportLoad.bind(this),zRange:this.state.zRange||null}):new(this.getSubLayerClass("mesh",at.a))(this.getSubLayerProps({id:"mesh"}),{data:co,mesh:this.state.terrain,texture:a,_instanced:!1,getPosition:function(e){return[0,0,0]},getColor:t,material:n,wireframe:i})}}]),t}(p.a);ho.layerName="TerrainLayer",ho.defaultProps=fo;var mo=n(644),go=n.n(mo),vo=function(){function e(t,n,r,a,i){Object(ct.a)(this,e),this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=a,this._values=i,t.readFields(bo,this,n)}return Object(dt.a)(e,null,[{key:"types",get:function(){return["Unknown","Point","LineString","Polygon"]}}]),Object(dt.a)(e,[{key:"loadGeometry",value:function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,a=0,i=0,o=0,l=[];e.pos>3}if(a--,1===r||2===r)i+=e.readSVarint(),o+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new go.a(i,o));else{if(7!==r)throw new Error("unknown command ".concat(r));t&&t.push(t[0].clone())}}return t&&l.push(t),l}},{key:"bbox",value:function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,i=0,o=1/0,l=-1/0,u=1/0,s=-1/0;e.pos>3}if(r--,1===n||2===n)(a+=e.readSVarint())l&&(l=a),(i+=e.readSVarint())s&&(s=i);else if(7!==n)throw new Error("unknown command ".concat(n))}return[o,u,l,s]}},{key:"toGeoJSON",value:function(t,n,r){var a,i,o=this.extent*Math.pow(2,r),l=this.extent*t,u=this.extent*n,s=this.loadGeometry(),c=e.types[this.type];function d(e){for(var t=0;t=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new vo(this._pbf,t,this.extent,this._keys,this._values)}}]),e}();function _o(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){var t=null,n=e.readVarint()+e.pos;for(;e.pos>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}var Oo=function e(t,n){Object(ct.a)(this,e),this.layers=t.readFields(Eo,{},n)};function Eo(e,t,n){if(3===e){var r=new Ao(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}function xo(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Math.max.apply(Math,Object(nn.a)(f)),polygonPositionsCount:u,polygonObjectsCount:s,polygonRingsCount:c,polygonFeaturesCount:d,numericPropKeys:Object.keys(p).filter((function(e){return p[e]}))}}function So(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.pointPositionsCount,a=t.pointFeaturesCount,i=t.linePositionsCount,o=t.linePathsCount,l=t.lineFeaturesCount,u=t.polygonPositionsCount,s=t.polygonObjectsCount,c=t.polygonRingsCount,d=t.polygonFeaturesCount,f=n.coordLength,p=n.numericPropKeys,h=n.PositionDataType,m=void 0===h?Float32Array:h,g=e.length>65535?Uint32Array:Uint16Array,v={positions:new m(r*f),globalFeatureIds:new g(r),featureIds:a>65535?new Uint32Array(r):new Uint16Array(r),numericProps:{},properties:[]},y={pathIndices:i>65535?new Uint32Array(o+1):new Uint16Array(o+1),positions:new m(i*f),globalFeatureIds:new g(i),featureIds:l>65535?new Uint32Array(i):new Uint16Array(i),numericProps:{},properties:[]},b={polygonIndices:u>65535?new Uint32Array(s+1):new Uint16Array(s+1),primitivePolygonIndices:u>65535?new Uint32Array(c+1):new Uint16Array(c+1),positions:new m(u*f),globalFeatureIds:new g(u),featureIds:d>65535?new Uint32Array(u):new Uint16Array(u),numericProps:{},properties:[]},A=0,_=[v,y,b];A<_.length;A++){var O,E=_[A],x=xo(p);try{for(x.s();!(O=x.n()).done;){var M=O.value;E.numericProps[M]=new Float32Array(E.positions.length/f)}}catch(e){x.e(e)}finally{x.f()}}y.pathIndices[o]=i,b.polygonIndices[s]=u,b.primitivePolygonIndices[c]=u;var w,S={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0},T=xo(e);try{for(T.s();!(w=T.n()).done;){var C=w.value,L=C.geometry,P=C.properties||{};switch(L.type){case"Point":To(L.coordinates,v,S,f,P),v.properties.push(Io(P,p)),S.pointFeature++;break;case"MultiPoint":Co(L.coordinates,v,S,f,P),v.properties.push(Io(P,p)),S.pointFeature++;break;case"LineString":Lo(L.coordinates,y,S,f,P),y.properties.push(Io(P,p)),S.lineFeature++;break;case"MultiLineString":Po(L.coordinates,y,S,f,P),y.properties.push(Io(P,p)),S.lineFeature++;break;case"Polygon":ko(L.coordinates,b,S,f,P),b.properties.push(Io(P,p)),S.polygonFeature++;break;case"MultiPolygon":Do(L.coordinates,b,S,f,P),b.properties.push(Io(P,p)),S.polygonFeature++;break;default:throw new Error("Invalid geometry type")}S.feature++}}catch(e){T.e(e)}finally{T.f()}return Ro(v,y,b,f)}function To(e,t,n,r,a){t.positions.set(e,n.pointPosition*r),t.globalFeatureIds[n.pointPosition]=n.feature,t.featureIds[n.pointPosition]=n.pointFeature,jo(t,a,n.pointPosition,1),n.pointPosition++}function Co(e,t,n,r,a){var i,o=xo(e);try{for(o.s();!(i=o.n()).done;){To(i.value,t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}function Lo(e,t,n,r,a){t.pathIndices[n.linePath]=n.linePosition,n.linePath++,Fo(t.positions,e,n.linePosition,r);var i=e.length;jo(t,a,n.linePosition,i),t.globalFeatureIds.set(new Uint32Array(i).fill(n.feature),n.linePosition),t.featureIds.set(new Uint32Array(i).fill(n.lineFeature),n.linePosition),n.linePosition+=i}function Po(e,t,n,r,a){var i,o=xo(e);try{for(o.s();!(i=o.n()).done;){Lo(i.value,t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}function ko(e,t,n,r,a){t.polygonIndices[n.polygonObject]=n.polygonPosition,n.polygonObject++;var i,o=xo(e);try{for(o.s();!(i=o.n()).done;){var l=i.value;t.primitivePolygonIndices[n.polygonRing]=n.polygonPosition,n.polygonRing++,Fo(t.positions,l,n.polygonPosition,r);var u=l.length;jo(t,a,n.polygonPosition,u),t.globalFeatureIds.set(new Uint32Array(u).fill(n.feature),n.polygonPosition),t.featureIds.set(new Uint32Array(u).fill(n.polygonFeature),n.polygonPosition),n.polygonPosition+=u}}catch(e){o.e(e)}finally{o.f()}}function Do(e,t,n,r,a){var i,o=xo(e);try{for(o.s();!(i=o.n()).done;){ko(i.value,t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}function Ro(e,t,n,r){var a={points:{positions:{value:e.positions,size:r},globalFeatureIds:{value:e.globalFeatureIds,size:1},featureIds:{value:e.featureIds,size:1},numericProps:e.numericProps,properties:e.properties},lines:{pathIndices:{value:t.pathIndices,size:1},positions:{value:t.positions,size:r},globalFeatureIds:{value:t.globalFeatureIds,size:1},featureIds:{value:t.featureIds,size:1},numericProps:t.numericProps,properties:t.properties},polygons:{polygonIndices:{value:n.polygonIndices,size:1},primitivePolygonIndices:{value:n.primitivePolygonIndices,size:1},positions:{value:n.positions,size:r},globalFeatureIds:{value:n.globalFeatureIds,size:1},featureIds:{value:n.featureIds,size:1},numericProps:n.numericProps,properties:n.properties}};for(var i in a)for(var o in a[i].numericProps)a[i].numericProps[o]={value:a[i].numericProps[o],size:1};return a}function jo(e,t,n,r){for(var a in e.numericProps)a in t&&e.numericProps[a].set(new Array(r).fill(t[a]),n)}function Io(e,t){var n={};for(var r in e)t.includes(r)||(n[r]=e[r]);return n}function Fo(e,t,n,r){var a,i=n*r,o=xo(t);try{for(o.s();!(a=o.n()).done;){var l=a.value;e.set(l,i),i+=r}}catch(e){o.e(e)}finally{o.f()}}function No(e){var t;return(t=[]).concat.apply(t,Object(nn.a)(e))}var Bo=n(445),zo=n.n(Bo),Uo=["Unknown","Point","LineString","Polygon"];function Vo(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e},n=Uo[e.type],r=e.loadGeometry();switch(e.type){case 1:for(var a=[],i=0;i0){var r=new Oo(new zo.a(e)),a=t.mvt;(Array.isArray(a.layers)?a.layers:Object.keys(r.layers)).forEach((function(e){var t=r.layers[e],i=Xo(Xo({},a),{},{layerName:e});if(t)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=wo(e);return So(e,n,{coordLength:t.coordLength||n.coordLength||2,numericPropKeys:t.numericPropKeys||n.numericPropKeys,PositionDataType:t.PositionDataType||Float32Array})}(n);return i.byteLength=e.byteLength,i}return n}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="wgs84"===t.coordinates,r=t.tileIndex&&Number.isFinite(t.tileIndex.x)&&Number.isFinite(t.tileIndex.y)&&Number.isFinite(t.tileIndex.z);if(n&&!r)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property. Check documentation.");var a=n&&r?e.toGeoJSON(t.tileIndex.x,t.tileIndex.y,t.tileIndex.z):Ho(e,Vo);return t.layerProperty&&(a.properties[t.layerProperty]=t.layerName),a}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t= clip_bounds[0] && position.y >= clip_bounds[1] && position.x < clip_bounds[2] && position.y < clip_bounds[3];\n}\n",al={name:"clip-vs",vs:rl},il={"vs:#decl":"\nvarying float clip_isVisible;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_isVisible = float(clip_isInBounds(geometry.worldPosition.xy));\n","fs:#decl":"\nvarying float clip_isVisible;\n","fs:DECKGL_FILTER_COLOR":"\n if (clip_isVisible < 0.5) discard;\n"},ol={name:"clip-fs",fs:rl},ll={"vs:#decl":"\nvarying vec2 clip_commonPosition;\n","vs:DECKGL_FILTER_GL_POSITION":"\n clip_commonPosition = geometry.position.xy;\n","fs:#decl":"\nvarying vec2 clip_commonPosition;\n","fs:DECKGL_FILTER_COLOR":"\n if (!clip_isInBounds(clip_commonPosition)) discard;\n"},ul=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"getShaders",value:function(){var e="instancePositions"in this.getAttributeManager().attributes;return"clipByInstance"in this.props&&(e=this.props.clipByInstance),this.state.clipByInstance=e,e?{modules:[al],inject:il}:{modules:[ol],inject:ll}}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props.clipBounds,r=void 0===n?nl.clipBounds:n;if(this.state.clipByInstance)t.clip_bounds=r;else{var a=this.projectPosition([r[0],r[1],0]),i=this.projectPosition([r[2],r[3],0]);t.clip_bounds=[Math.min(a[0],i[0]),Math.min(a[1],i[1]),Math.max(a[0],i[0]),Math.max(a[1],i[1])]}}}]),t}(tl.a);ul.extensionName="ClipExtension",ul.defaultProps=nl;var sl=function(e){function t(){return r(this,t),o(this,l(t).apply(this,arguments))}return s(t,e),f(t,[{key:"getTileData",value:function(e){var t=Ee(this.props.data,e);return t?Object(it.a)(t,el,this.getLoadOptions()):Promise.reject("Invalid URL")}},{key:"renderSubLayers",value:function(e){var n=e.tile,r=Math.pow(2,n.z),a=512/r,i=-a,o=512*n.x/r,u=512*(1-n.y/r),s=(new We.a).scale([a,i,1]);return e.autoHighlight=!1,e.modelMatrix=s,e.coordinateOrigin=[o,u,0],e.coordinateSystem=tt.a.CARTESIAN,e.extensions=[].concat(eo(e.extensions||[]),[new ul]),Ne(l(t.prototype),"renderSubLayers",this).call(this,e)}},{key:"onHover",value:function(e,n){var r=this.props,a=r.uniqueIdProperty;if(r.autoHighlight){var i,o=this.state.hoveredFeatureId,u=e.object;u&&(i=cl(u,a)),o!==i&&this.setState({hoveredFeatureId:i})}return Ne(l(t.prototype),"onHover",this).call(this,e,n)}},{key:"getHighlightedObjectIndex",value:function(e){var t=this.state.hoveredFeatureId,n=this.props,r=n.uniqueIdProperty,a=n.highlightedFeatureId,i=e.data;if(!(dl(t)||dl(a))||!Array.isArray(i))return-1;var o=dl(a)?a:t;return i.findIndex((function(e){return cl(e,r)===o}))}}]),t}(Fe);function cl(e,t){return t?e.properties[t]:"id"in e?e.id:-1}function dl(e){return null!=e&&""!==e}sl.layerName="MVTLayer",sl.defaultProps={uniqueIdProperty:{type:"string",value:""},highlightedFeatureId:null}},function(e,t,n){"use strict";n.r(t),n.d(t,"ScreenGridLayer",(function(){return ze})),n.d(t,"CPUGridLayer",(function(){return Ke})),n.d(t,"HexagonLayer",(function(){return nt})),n.d(t,"ContourLayer",(function(){return rn})),n.d(t,"GridLayer",(function(){return hn})),n.d(t,"GPUGridLayer",(function(){return fn})),n.d(t,"AGGREGATION_OPERATION",(function(){return O})),n.d(t,"HeatmapLayer",(function(){return kn})),n.d(t,"_GPUGridAggregator",(function(){return W})),n.d(t,"_CPUAggregator",(function(){return qe})),n.d(t,"_AggregationLayer",(function(){return ue})),n.d(t,"_BinSorter",(function(){return Se}));var r,a,i=n(2),o=n(11),l=n(12),u=n(19),s=n(14),c=n(29),d=n(18),f=n(62),p=n(655),h=n(1900),m=n(25),g=n(660),v=n(478),y=n(1944),b=n(1945),A=n(438),_=n(848),O={SUM:1,MEAN:2,MIN:3,MAX:4};function E(e,t){return e+t}function x(e,t){return t>e?t:e}function M(e,t){return t1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=void 0===n?1:n,a=t.height,i=void 0===a?1:a,o=t.data,l=void 0===o?null:o,u=t.unpackFlipY,s=void 0===u||u,c=t.parameters,d=void 0===c?F:c,f=new j.a(e,{data:l,format:Object(m.g)(e)?34836:6408,type:5126,border:0,mipmaps:!1,parameters:d,dataFormat:6408,width:r,height:i,unpackFlipY:s});return f}function B(e,t){var n=t.id,r=t.width,a=void 0===r?1:r,o=t.height,l=void 0===o?1:o,u=t.texture;return new I.a(e,{id:n,width:a,height:l,attachments:Object(i.a)({},36064,u)})}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};Object(o.a)(this,e),this.id=n.id||"gpu-grid-aggregator",this.gl=t,this.state={weightAttributes:{},textures:{},meanTextures:{},buffers:{},framebuffers:{},maxMinFramebuffers:{},minFramebuffers:{},maxFramebuffers:{},equations:{},resources:{},results:{}},this._hasGPUSupport=Object(m.g)(t)&&Object(h.c)(this.gl,p.a.BLEND_EQUATION_MINMAX,p.a.COLOR_ATTACHMENT_RGBA32F,p.a.TEXTURE_FLOAT),this._hasGPUSupport&&this._setupModels()}return Object(l.a)(e,null,[{key:"getAggregationData",value:function(e){var t=e.aggregationData,n=e.maxData,r=e.minData,a=e.maxMinData,i=4*e.pixelIndex,o={};return t&&(o.cellCount=t[i+3],o.cellWeight=t[i]),a?(o.maxCellWieght=a[0],o.minCellWeight=a[3]):(n&&(o.maxCellWieght=n[0],o.totalCount=n[3]),r&&(o.minCellWeight=r[0],o.totalCount=n[3])),o}},{key:"getCellData",value:function(e){for(var t=e.countsData,n=e.size,r=void 0===n?1:n,a=t.length/4,i=new Float32Array(a*r),o=new Uint32Array(a),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};this.setState({results:{}});var t=this._normalizeAggregationParams(e);return this._hasGPUSupport||f.a.log(1,"GPUGridAggregator: not supported")(),this._runAggregation(t)}},{key:"getData",value:function(e){var t={},n=this.state.results;for(var r in n[e].aggregationData||(n[e].aggregationData=n[e].aggregationBuffer.getData()),t.aggregationData=n[e].aggregationData,H){var a=H[r];(n[e][r]||n[e][a])&&(n[e][r]=n[e][r]||n[e][a].getData(),t[r]=n[e][r])}return t}},{key:"updateShaders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setState({shaderOptions:e,modelDirty:!0})}},{key:"_normalizeAggregationParams",value:function(e){var t=Object.assign({},T,e),n=t.weights;return n&&(t.weights=function(e){var t={};for(var n in e)t[n]=Object.assign({},R,e[n]);return t}(n)),t}},{key:"setState",value:function(e){Object.assign(this.state,e)}},{key:"_getAggregateData",value:function(e){var t={},n=this.state,r=n.textures,a=n.framebuffers,i=n.maxMinFramebuffers,o=n.minFramebuffers,l=n.maxFramebuffers,u=n.resources,s=e.weights;for(var c in s){t[c]={};var d=s[c],f=d.needMin,p=d.needMax,h=d.combineMaxMin;t[c].aggregationTexture=r[c],t[c].aggregationBuffer=Object(g.d)(a[c],{target:s[c].aggregationBuffer,sourceType:5126}),f&&p&&h?(t[c].maxMinBuffer=Object(g.d)(i[c],{target:s[c].maxMinBuffer,sourceType:5126}),t[c].maxMinTexture=u["".concat(c,"-maxMinTexture")]):(f&&(t[c].minBuffer=Object(g.d)(o[c],{target:s[c].minBuffer,sourceType:5126}),t[c].minTexture=u["".concat(c,"-minTexture")]),p&&(t[c].maxBuffer=Object(g.d)(l[c],{target:s[c].maxBuffer,sourceType:5126}),t[c].maxTexture=u["".concat(c,"-maxTexture")]))}return this._trackGPUResultBuffers(t,s),t}},{key:"_renderAggregateData",value:function(e){var t=e.cellSize,n=e.projectPoints,r=e.attributes,a=e.moduleSettings,i=e.numCol,o=e.numRow,l=e.weights,u=e.translation,s=e.scaling,c=this.state,d=c.maxMinFramebuffers,f=c.minFramebuffers,p=c.maxFramebuffers,h=[i,o],m={blend:!0,depthTest:!1,blendFunc:[1,1]},g={cellSize:t,gridSize:h,projectPoints:n,translation:u,scaling:s};for(var v in l){var y=l[v],b=y.needMin,A=y.needMax,_=b&&A&&l[v].combineMaxMin;this._renderToWeightsTexture({id:v,parameters:m,moduleSettings:a,uniforms:g,gridSize:h,attributes:r,weights:l}),_?this._renderToMaxMinTexture({id:v,parameters:Object.assign({},m,{blendEquation:k}),gridSize:h,minOrMaxFb:d[v],clearParams:{clearColor:[0,0,0,C]},combineMaxMin:_}):(b&&this._renderToMaxMinTexture({id:v,parameters:Object.assign({},m,{blendEquation:L}),gridSize:h,minOrMaxFb:f[v],clearParams:{clearColor:[C,C,C,0]},combineMaxMin:_}),A&&this._renderToMaxMinTexture({id:v,parameters:Object.assign({},m,{blendEquation:P}),gridSize:h,minOrMaxFb:p[v],clearParams:{clearColor:[0,0,0,0]},combineMaxMin:_}))}}},{key:"_renderToMaxMinTexture",value:function(e){var t=e.id,n=e.parameters,r=e.gridSize,a=e.minOrMaxFb,i=e.combineMaxMin,o=e.clearParams,l=void 0===o?{}:o,u=this.state.framebuffers,s=this.gl,c=this.allAggregationModel;Object(m.l)(s,U({},l,{framebuffer:a,viewport:[0,0,r[0],r[1]]}),(function(){s.clear(16384),c.draw({parameters:n,uniforms:{uSampler:u[t].texture,gridSize:r,combineMaxMin:i}})}))}},{key:"_renderToWeightsTexture",value:function(e){var t=e.id,n=e.parameters,r=e.moduleSettings,a=e.uniforms,o=e.gridSize,l=e.weights,u=this.state,s=u.framebuffers,c=u.equations,d=u.weightAttributes,f=this.gl,p=this.gridAggregationModel,h=l[t].operation,g=h===O.MIN?[C,C,C,0]:[0,0,0,0];if(Object(m.l)(f,{framebuffer:s[t],viewport:[0,0,o[0],o[1]],clearColor:g},(function(){f.clear(16384);var e={weights:d[t]};p.draw({parameters:Object.assign({},n,{blendEquation:c[t]}),moduleSettings:r,uniforms:a,attributes:e})})),h===O.MEAN){var v=this.state,b=v.meanTextures,A=v.textures,_={_sourceTextures:{aggregationValues:b[t]},_targetTexture:A[t],elementCount:A[t].width*A[t].height};this.meanTransform?this.meanTransform.update(_):this.meanTransform=function(e,t){return new y.a(e,Object.assign({},{vs:"#define SHADER_NAME gpu-aggregation-transform-mean-vs\nattribute vec4 aggregationValues;\nvarying vec4 meanValues;\n\nvoid main()\n{\n bool isCellValid = bool(aggregationValues.w > 0.);\n meanValues.xyz = isCellValid ? aggregationValues.xyz/aggregationValues.w : vec3(0, 0, 0);\n meanValues.w = aggregationValues.w;\n}\n",_targetTextureVarying:"meanValues"},t))}(f,_),this.meanTransform.run({parameters:{blend:!1,depthTest:!1}}),s[t].attach(Object(i.a)({},36064,A[t]))}}},{key:"_runAggregation",value:function(e){this._updateModels(e),this._setupFramebuffers(e),this._renderAggregateData(e);var t=this._getAggregateData(e);return this.setState({results:t}),t}},{key:"_setupFramebuffers",value:function(e){var t=this.state,n=t.textures,r=t.framebuffers,a=t.maxMinFramebuffers,o=t.minFramebuffers,l=t.maxFramebuffers,u=t.meanTextures,s=t.equations,c=e.weights,d=e.numCol,f=e.numRow,p={width:d,height:f};for(var h in c){var m=c[h],g=m.needMin,v=m.needMax,y=m.combineMaxMin,b=m.operation;n[h]=c[h].aggregationTexture||n[h]||N(this.gl,{id:"".concat(h,"-texture"),width:d,height:f}),n[h].resize(p);var A=n[h];b===O.MEAN&&(u[h]=u[h]||N(this.gl,{id:"".concat(h,"-mean-texture"),width:d,height:f}),u[h].resize(p),A=u[h]),r[h]?r[h].attach(Object(i.a)({},36064,A)):r[h]=B(this.gl,{id:"".concat(h,"-fb"),width:d,height:f,texture:A}),r[h].resize(p),s[h]=D[b]||D.SUM,(g||v)&&(g&&v&&y?a[h]||(A=c[h].maxMinTexture||this._getMinMaxTexture("".concat(h,"-maxMinTexture")),a[h]=B(this.gl,{id:"".concat(h,"-maxMinFb"),texture:A})):(g&&(o[h]||(A=c[h].minTexture||this._getMinMaxTexture("".concat(h,"-minTexture")),o[h]=B(this.gl,{id:"".concat(h,"-minFb"),texture:A}))),v&&(l[h]||(A=c[h].maxTexture||this._getMinMaxTexture("".concat(h,"-maxTexture")),l[h]=B(this.gl,{id:"".concat(h,"-maxFb"),texture:A})))))}}},{key:"_getMinMaxTexture",value:function(e){var t=this.state.resources;return t[e]||(t[e]=N(this.gl,{id:"resourceName"})),t[e]}},{key:"_setupModels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numCol,n=void 0===t?0:t,r=e.numRow,a=void 0===r?0:r,i=this.gl,o=this.state.shaderOptions;if(this.gridAggregationModel&&this.gridAggregationModel.delete(),this.gridAggregationModel=G(i,o),!this.allAggregationModel){var l=n*a;this.allAggregationModel=q(i,l)}}},{key:"_setupWeightAttributes",value:function(e){var t=this.state.weightAttributes,n=e.weights;for(var r in n)t[r]=e.attributes[r]}},{key:"_trackGPUResultBuffers",value:function(e,t){var n=this.state.resources;for(var r in e)if(e[r]){var a=!0,i=!1,o=void 0;try{for(var l,u=V[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value;if(e[r][s]&&t[r][s]!==e[r][s]){var c="gpu-result-".concat(r,"-").concat(s);n[c]&&n[c].delete(),n[c]=e[r][s]}}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}}}},{key:"_updateModels",value:function(e){var t=e.vertexCount,n=e.attributes,r=e.numCol,a=e.numRow;this.state.modelDirty&&(this._setupModels(e),this.setState({modelDirty:!1})),this._setupWeightAttributes(e),this.gridAggregationModel.setVertexCount(t),this.gridAggregationModel.setAttributes(n),this.allAggregationModel.setInstanceCount(r*a)}}]),e}();function G(e,t){var n=Object(A.a)({vs:"#define SHADER_NAME gpu-aggregation-to-grid-vs\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute vec3 weights;\nuniform vec2 cellSize;\nuniform vec2 gridSize;\nuniform bool projectPoints;\nuniform vec2 translation;\nuniform vec3 scaling;\n\nvarying vec3 vWeights;\n\nvec2 project_to_pixel(vec4 pos) {\n vec4 result;\n pos.xy = pos.xy/pos.w;\n result = pos + vec4(translation, 0., 0.);\n result.xy = scaling.z > 0. ? result.xy * scaling.xy : result.xy;\n return result.xy;\n}\n\nvoid main(void) {\n\n vWeights = weights;\n\n vec4 windowPos = vec4(positions, 1.);\n if (projectPoints) {\n windowPos = project_position_to_clipspace(positions, positions64Low, vec3(0));\n }\n\n vec2 pos = project_to_pixel(windowPos);\n\n vec2 pixelXY64[2];\n pixelXY64[0] = vec2(pos.x, 0.);\n pixelXY64[1] = vec2(pos.y, 0.);\n vec2 gridXY64[2];\n gridXY64[0] = div_fp64(pixelXY64[0], vec2(cellSize.x, 0));\n gridXY64[1] = div_fp64(pixelXY64[1], vec2(cellSize.y, 0));\n float x = floor(gridXY64[0].x);\n float y = floor(gridXY64[1].x);\n pos = vec2(x, y);\n pos = (pos * (2., 2.) / (gridSize)) - (1., 1.);\n vec2 offset = 1.0 / gridSize;\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n",fs:"#define SHADER_NAME gpu-aggregation-to-grid-fs\n\nprecision highp float;\n\nvarying vec3 vWeights;\n\nvoid main(void) {\n gl_FragColor = vec4(vWeights, 1.0);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[b.b,_.a]},t);return new v.a(e,U({id:"Gird-Aggregation-Model",vertexCount:1,drawMode:0},n))}function q(e,t){return new v.a(e,{id:"All-Aggregation-Model",vs:"#version 300 es\n#define SHADER_NAME gpu-aggregation-all-vs-64\n\nin vec2 position;\nuniform ivec2 gridSize;\nout vec2 vTextureCoord;\n\nvoid main(void) {\n vec2 pos = vec2(-1.0, -1.0);\n vec2 offset = 1.0 / vec2(gridSize);\n pos = pos + offset;\n\n gl_Position = vec4(pos, 0.0, 1.0);\n\n int yIndex = gl_InstanceID / gridSize[0];\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 yIndexFP64 = vec2(float(yIndex), 0.);\n vec2 xIndexFP64 = vec2(float(xIndex), 0.);\n vec2 gridSizeYFP64 = vec2(gridSize[1], 0.);\n vec2 gridSizeXFP64 = vec2(gridSize[0], 0.);\n\n vec2 texCoordXFP64 = div_fp64(yIndexFP64, gridSizeYFP64);\n vec2 texCoordYFP64 = div_fp64(xIndexFP64, gridSizeXFP64);\n\n vTextureCoord = vec2(texCoordYFP64.x, texCoordXFP64.x);\n gl_PointSize = 1.0;\n}\n",fs:"#version 300 es\n#define SHADER_NAME gpu-aggregation-all-fs\n\nprecision highp float;\n\nin vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform bool combineMaxMin;\nout vec4 fragColor;\nvoid main(void) {\n vec4 textureColor = texture(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));\n if (textureColor.a == 0.) {\n discard;\n }\n fragColor.rgb = textureColor.rgb;\n fragColor.a = combineMaxMin ? textureColor.r : textureColor.a;\n}\n",modules:[b.b],vertexCount:1,drawMode:0,isInstanced:!0,instanceCount:t,attributes:{position:[0,0]}})}var X=n(164),Z=n(847),K=n(298),J=[[255,255,178],[254,217,118],[254,178,76],[253,141,60],[240,59,32],[189,0,38]];function Q(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float32Array;if(Number.isFinite(e[0]))t=new r(e);else{t=new r(4*e.length);for(var a=0,i=0;i= domain.x && value <= domain.y) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n outColor = outColor / 255.;\n return outColor;\n}\n\nvoid main(void) {\n vSampleCount = instanceCounts.a;\n\n float weight = instanceCounts.r;\n float maxWeight = texture2D(maxTexture, vec2(0.5)).r;\n\n float step = weight / maxWeight;\n vec4 minMaxColor = mix(minColor, maxColor, step) / 255.;\n\n vec2 domain = colorDomain;\n float domainMaxValid = float(colorDomain.y != 0.);\n domain.y = mix(maxWeight, colorDomain.y, domainMaxValid);\n vec4 rangeColor = quantizeScale(domain, colorRange, weight);\n\n float rangeMinMax = float(shouldUseMinMax);\n vec4 color = mix(rangeColor, minMaxColor, rangeMinMax);\n vColor = vec4(color.rgb, color.a * opacity);\n picking_setPickingColor(instancePickingColors);\n\n gl_Position = vec4(instancePositions + positions * cellScale, 1.);\n}\n",fs:"#define SHADER_NAME screen-grid-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying float vSampleCount;\n\nvoid main(void) {\n if (vSampleCount <= 0.0) {\n discard;\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[Z.a]}}},{key:"initializeState",value:function(){var e=this.context.gl;this.getAttributeManager().addInstanced({instancePositions:{size:3,update:this.calculateInstancePositions},instanceCounts:{size:4,noAlloc:!0}}),this.setState({model:this._getModel(e)})}},{key:"shouldUpdateState",value:function(e){return e.changeFlags.somethingChanged}},{key:"updateState",value:function(e){var n=e.oldProps,r=e.props,a=e.changeFlags;Object(c.a)(Object(s.a)(t.prototype),"updateState",this).call(this,{oldProps:n,props:r,changeFlags:a});var i=this.getAttributeManager();r.numInstances!==n.numInstances?i.invalidateAll():n.cellSizePixels!==r.cellSizePixels&&i.invalidate("instancePositions"),this._updateUniforms(n,r,a)}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.parameters,a=n.maxTexture,i=this.props.minColor||$,o=this.props.maxColor||ee,l=this.props.colorDomain||[1,0],u=this.state.model,s={minColor:i,maxColor:o,maxTexture:a,colorDomain:l};t=Object.assign(s,t),u.draw({uniforms:t,parameters:Object.assign({depthTest:!1,depthMask:!1},r)})}},{key:"calculateInstancePositions",value:function(e,t){for(var n=t.numInstances,r=this.context.viewport,a=r.width,i=r.height,o=this.props.cellSizePixels,l=Math.ceil(a/o),u=e.value,s=e.size,c=0;cs?s:0,d=new Float32Array([(u-c)/i*2,-(u-c)/o*2,1]);r.setUniforms({cellScale:d})}}}],[{key:"isSupported",value:function(e){return Object(h.c)(e,[p.a.TEXTURE_FLOAT])}}]),t}(K.a);re.layerName="ScreenGridCellLayer",re.defaultProps=ne;var ae=n(347),ie=n(450),oe=n(643);function le(e,t){var n={};for(var r in e)t.includes(r)||(n[r]=e[r]);return n}var ue=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"initializeState",value:function(e){Object(c.a)(Object(s.a)(t.prototype),"initializeState",this).call(this),this.setState({ignoreProps:le(this.constructor._propTypes,e.data.props),dimensions:e})}},{key:"updateState",value:function(e){if(Object(c.a)(Object(s.a)(t.prototype),"updateState",this).call(this,e),e.changeFlags.extensionsChanged){var n=this.getShaders({});n&&n.defines&&(n.defines.NON_INSTANCED_MODEL=1),this.updateShaders(n)}this._updateAttributes(e.props)}},{key:"updateAttributes",value:function(e){this.setState({changedAttributes:e})}},{key:"getAttributes",value:function(){return this.getAttributeManager().getShaderAttributes()}},{key:"getModuleSettings",value:function(){var e=this.context,t=e.viewport,n=e.mousePosition,r=e.gl;return Object.assign(Object.create(this.props),{viewport:t,mousePosition:n,pickingActive:0,devicePixelRatio:Object(m.c)(r)})}},{key:"updateShaders",value:function(e){}},{key:"isAggregationDirty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props,r=e.oldProps,a=e.changeFlags,i=t.compareAll,o=void 0!==i&&i,l=t.dimension,u=this.state.ignoreProps,s=l.props,c=l.accessors,d=void 0===c?[]:c,f=a.updateTriggersChanged;if(f){if(f.all)return!0;var p=!0,h=!1,m=void 0;try{for(var g,v=d[Symbol.iterator]();!(p=(g=v.next()).done);p=!0){var y=g.value;if(f[y])return!0}}catch(e){h=!0,m=e}finally{try{p||null==v.return||v.return()}finally{if(h)throw m}}}if(o)return!!a.extensionsChanged||Object(ae.a)({oldProps:r,newProps:n,ignoreProps:u,propTypes:this.constructor._propTypes});var b=!0,A=!1,_=void 0;try{for(var O,E=s[Symbol.iterator]();!(b=(O=E.next()).done);b=!0){var x=O.value;if(n[x]!==r[x])return!0}}catch(e){A=!0,_=e}finally{try{b||null==E.return||E.return()}finally{if(A)throw _}}return!1}},{key:"isAttributeChanged",value:function(e){var t=this.state.changedAttributes;return e?t&&void 0!==t[e]:!function(e){var t=!0;for(var n in e){t=!1;break}return t}(t)}},{key:"_getAttributeManager",value:function(){return new ie.a(this.context.gl,{id:this.props.id,stats:this.context.stats})}}]),t}(oe.a);ue.layerName="AggregationLayer";var se=n(108),ce=n(28);function de(e,t,n){var r=n;return r.domain=function(){return e},r.range=function(){return t},r}function fe(e,t){return de(e,t,(function(n){return function(e,t,n){var r=e[1]-e[0];if(r<=0)return f.a.warn("quantizeScale: invalid domain, returning range[0]")(),t[0];var a=r/t.length,i=Math.floor((n-e[0])/a),o=Math.max(Math.min(i,t.length-1),0);return t[o]}(e,t,n)}))}function pe(e,t){return de(e,t,(function(n){return function(e,t,n){return(n-e[0])/(e[1]-e[0])*(t[1]-t[0])+t[0]}(e,t,n)}))}function he(e,t){for(var n=e.sort(me),r=0,a=Math.max(1,t.length),i=new Array(a-1);++r>>1;me(e[a],t)>0?r=a:n=a+1}return n}(e,n)]}(i,t,e)};return o.thresholds=function(){return i},de(e,t,o)}function me(e,t){return e-t}function ge(e,t){var n=e.length;if(t<=0||n<2)return e[0];if(t>=1)return e[n-1];var r=(n-1)*t,a=Math.floor(r),i=e[a];return i+(e[a+1]-i)*(r-a)}function ve(e,t){var n=new Map,r=[],a=!0,i=!1,o=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value,c="".concat(s);n.has(c)||n.set(c,r.push(s))}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}return de(e,t,(function(e){return function(e,t,n,r){var a="".concat(r),i=t.get(a);return void 0===i&&(i=e.push(r),t.set(a,i)),n[(i-1)%n.length]}(r,n,t,e)}))}function ye(e){return null!=e}function be(e,t){return("function"==typeof t?e.map(t):e).filter(ye)}function Ae(e,t){return be(e,t)}function _e(e,t){return n=be(e,t),r=[],n.forEach((function(e){!r.includes(e)&&ye(e)&&r.push(e)})),r;var n,r}var Oe=function(e){return e.length},Ee=function(e){return e.points},xe=function(e){return e.index},Me=function(e,t){return et?1:e>=t?0:NaN},we={getValue:Oe,getPoints:Ee,getIndex:xe,filterData:null},Se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we;Object(o.a)(this,e),this.aggregatedBins=this.getAggregatedBins(t,n),this._updateMinMaxValues(),this.binMap=this.getBinMap()}return Object(l.a)(e,[{key:"getAggregatedBins",value:function(e,t){for(var n=t.getValue,r=void 0===n?Oe:n,a=t.getPoints,i=void 0===a?Ee:a,o=t.getIndex,l=void 0===o?xe:o,u=t.filterData,s="function"==typeof u,c=e.length,d=[],f=0,p=0;ps.counts?e:s.counts,t=t>s.value?t:s.value,n=n1&&void 0!==arguments[1]?arguments[1]:[],n=Object(ce.a)(t,2),r=n[0],a=void 0===r?0:r,i=n[1],o=void 0===i?100:i;if(this.sortedBins||(this.sortedBins=this.aggregatedBins.sort((function(e,t){return Me(e.value,t.value)}))),!this.sortedBins.length)return[];var l=this._percentileToIndex([a,o]);return this._getScaleDomain(e,l)}},{key:"_getScaleDomain",value:function(e,t){var n=Object(ce.a)(t,2),r=n[0],a=n[1],i=this.sortedBins;switch(e){case"quantize":case"linear":return[i[r].value,i[a].value];case"quantile":return Ae(i.slice(r,a+1),(function(e){return e.value}));case"ordinal":return _e(i,(function(e){return e.value}));default:return[i[r].value,i[a].value]}}}]),e}(),Te=n(137),Ce=n(54);function Le(e){return Number.isFinite(e)?e:0}function Pe(e,t){for(var n,r,a=e.positions.value,i=1/0,o=-1/0,l=1/0,u=-1/0,s=0;so?n:o,l=ru?r:u;return{xMin:Le(l),xMax:Le(u),yMin:Le(i),yMax:Le(o)}}function ke(e,t){var n=e<0?-1:1,r=n<0?Math.abs(e)+t:Math.abs(e);return(r=Math.floor(r/t)*t)*n}function De(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return{xOffset:t,yOffset:t};var r=e.yMin,a=e.yMax,i=(r+a)/2;return je(t,i)}function Re(e,t,n,r){var a=De(e,t,r!==Ce.a.CARTESIAN),i=function(e,t,n,r){var a=r.width,i=r.height,o=n===Ce.a.CARTESIAN?[-a/2,-i/2]:[-180,-90];f.a.assert([Ce.a.CARTESIAN,Ce.a.LNGLAT,Ce.a.DEFAULT].includes(n));var l=e.xMin,u=e.yMin;return[-1*(ke(l-o[0],t.xOffset)+o[0]),-1*(ke(u-o[1],t.yOffset)+o[1])]}(e,a,r,n),o=e.xMin,l=e.yMin,u=e.xMax,s=e.yMax,c=u-o+a.xOffset,d=s-l+a.yOffset;return{gridOffset:a,translation:i,width:c,height:d,numCol:Math.ceil(c/a.xOffset),numRow:Math.ceil(d/a.yOffset)}}function je(e,t){var n;return{yOffset:e/6378e3*(180/Math.PI),xOffset:(n=t,e/6378e3*(180/Math.PI)/Math.cos(n*Math.PI/180))}}function Ie(e,t){var n=function(e,t){var n=e.data,r=void 0===n?[]:n,a=e.cellSize,i=t.attributes,o=t.viewport,l=t.projectPoints,u=t.numInstances,s=i.positions.value,c=i.positions.getAccessor().size,d=t.boundingBox||function(e,t){for(var n,r,a=e.value,i=e.getAccessor().size,o=1/0,l=-1/0,u=1/0,s=-1/0,c=0;cl?n:l,u=rs?r:s);return{xMin:u,xMax:s,yMin:o,yMax:l}}(i.positions,u),f=t.posOffset||[180,90],p=t.gridOffset||De(d,a);if(p.xOffset<=0||p.yOffset<=0)return{gridHash:{},gridOffset:p};var h=o.width,m=o.height,g=Math.ceil(h/p.xOffset),v=Math.ceil(m/p.yOffset),y={},b=Object(Te.a)(r),A=b.iterable,_=b.objectInfo,O=new Array(3),E=!0,x=!1,M=void 0;try{for(var w,S=A[Symbol.iterator]();!(E=(w=S.next()).done);E=!0){var T=w.value;_.index++,O[0]=s[_.index*c],O[1]=s[_.index*c+1],O[2]=c>=3?s[_.index*c+2]:0;var C=l?o.project(O):O,L=Object(ce.a)(C,2),P=L[0],k=L[1];if(Number.isFinite(P)&&Number.isFinite(k)){var D=Math.floor((k+f[1])/p.yOffset),R=Math.floor((P+f[0])/p.xOffset);if(!l||R>=0&&R=0&&D=0){var r=this.state.gpuGridAggregator.getData("count");t.object=W.getAggregationData(Object.assign({pixelIndex:n},r))}return t}},{key:"updateResults",value:function(e){var t=e.aggregationData,n=e.maxData,r=this.state.weights.count;r.aggregationData=t,r.aggregationBuffer.setData({data:t}),r.maxData=n,r.maxTexture.setImageData({data:n})}},{key:"updateAggregationState",value:function(e){var t=e.props.cellSizePixels,n=e.oldProps.cellSizePixels!==t,r=e.changeFlags.viewportChanged,a=e.props.gpuAggregation;this.state.gpuAggregation!==e.props.gpuAggregation&&a&&!W.isSupported(this.context.gl)&&(f.a.warn("GPU Grid Aggregation not supported, falling back to CPU")(),a=!1);var i=a!==this.state.gpuAggregation;this.setState({gpuAggregation:a});var o=this.isAttributeChanged("positions"),l=this.state.dimensions,u=l.data,s=l.weights,c=o||i||r||this.isAggregationDirty(e,{compareAll:a,dimension:u}),d=this.isAggregationDirty(e,{dimension:s});this.setState({aggregationDataDirty:c,aggregationWeightsDirty:d});var p=this.context.viewport;if(r||n){var h=p.width,m=p.height,g=Math.ceil(h/t),v=Math.ceil(m/t);this.allocateResources(v,g),this.setState({scaling:[h/2,-m/2,1],gridOffset:{xOffset:t,yOffset:t},width:h,height:m,numCol:g,numRow:v})}d&&this._updateAccessors(e),(c||d)&&this._resetResults()}},{key:"_updateAccessors",value:function(e){var t=e.props,n=t.getWeight,r=t.aggregation,a=this.state.weights.count;a&&(a.getWeight=n,a.operation=O[r]),this.setState({getValue:w(r,n)})}},{key:"_resetResults",value:function(){var e=this.state.weights.count;e&&(e.aggregationData=null)}}]),t}(Fe);ze.layerName="ScreenGridLayer",ze.defaultProps=Ne;var Ue=n(852),Ve=n(37);function He(){}var Ye=["getBins","getDomain","getScaleFunc"],We=[{key:"fillColor",accessor:"getFillColor",pickingInfo:"colorValue",getBins:{triggers:{value:{prop:"getColorValue",updateTrigger:"getColorValue"},weight:{prop:"getColorWeight",updateTrigger:"getColorWeight"},aggregation:{prop:"colorAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"lowerPercentile"},upperPercentile:{prop:"upperPercentile"},scaleType:{prop:"colorScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"colorDomain"},range:{prop:"colorRange"}},onSet:{props:"onSetColorDomain"}},nullValue:[0,0,0,0]},{key:"elevation",accessor:"getElevation",pickingInfo:"elevationValue",getBins:{triggers:{value:{prop:"getElevationValue",updateTrigger:"getElevationValue"},weight:{prop:"getElevationWeight",updateTrigger:"getElevationWeight"},aggregation:{prop:"elevationAggregation"},filterData:{prop:"_filterData",updateTrigger:"_filterData"}}},getDomain:{triggers:{lowerPercentile:{prop:"elevationLowerPercentile"},upperPercentile:{prop:"elevationUpperPercentile"},scaleType:{prop:"elevationScaleType"}}},getScaleFunc:{triggers:{domain:{prop:"elevationDomain"},range:{prop:"elevationRange"}},onSet:{props:"onSetElevationDomain"}},nullValue:-1}],Ge=function(e){return e.cellSize},qe=function(){function e(t){Object(o.a)(this,e),this.state={layerData:{},dimensions:{}},this.changeFlags={},this.dimensionUpdaters={},this._getCellSize=t.getCellSize||Ge,this._getAggregator=t.getAggregator,this._addDimension(t.dimensions||We)}return Object(l.a)(e,[{key:"updateState",value:function(e,t){var n=e.oldProps,r=e.props,a=e.changeFlags;this.updateGetValueFuncs(n,r,a);var i=this.needsReProjectPoints(n,r,a),o=!1;a.dataChanged||i?(this.getAggregatedData(r,t),o=!0):((this.getDimensionChanges(n,r,a)||[]).forEach((function(e){return"function"==typeof e&&e()})),o=!0);return this.setState({aggregationDirty:o}),this.state}},{key:"setState",value:function(e){this.state=Object.assign({},this.state,e)}},{key:"setDimensionState",value:function(e,t){this.setState({dimensions:Object.assign({},this.state.dimensions,Object(i.a)({},e,Object.assign({},this.state.dimensions[e],t)))})}},{key:"normalizeResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.hexagons?Object.assign({data:e.hexagons},e):e.layerData?Object.assign({data:e.layerData},e):e}},{key:"getAggregatedData",value:function(e,t){var n=this._getAggregator(e)(e,t);this.setState({layerData:this.normalizeResult(n)}),this.changeFlags={layerData:!0},this.getSortedBins(e)}},{key:"updateGetValueFuncs",value:function(e,t,n){for(var r in this.dimensionUpdaters){var a=this.dimensionUpdaters[r].getBins.triggers,i=a.value,o=a.weight,l=a.aggregation,u=t[i.prop];this.needUpdateDimensionStep(this.dimensionUpdaters[r].getBins,e,t,n)&&null===u&&(u=w(t[l.prop],t[o.prop])),u&&this.setDimensionState(r,{getValue:u})}}},{key:"needsReProjectPoints",value:function(e,t,n){return this._getCellSize(e)!==this._getCellSize(t)||this._getAggregator(e)!==this._getAggregator(t)||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPosition)}},{key:"addDimension",value:function(e){this._addDimension(e)}},{key:"_addDimension",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var n=t.key;e.dimensionUpdaters[n]=e.getDimensionUpdaters(t),e.state.dimensions[n]={getValue:null,domain:null,sortedBins:null,scaleFunc:He}}))}},{key:"getDimensionUpdaters",value:function(e){var t=e.key,n=e.accessor,r=e.pickingInfo,a=e.getBins,i=e.getDomain,o=e.getScaleFunc,l=e.nullValue;return{key:t,accessor:n,pickingInfo:r,getBins:Object.assign({updater:this.getDimensionSortedBins},a),getDomain:Object.assign({updater:this.getDimensionValueDomain},i),getScaleFunc:Object.assign({updater:this.getDimensionScale},o),attributeAccessor:this.getSubLayerDimensionAttribute(t,l)}}},{key:"needUpdateDimensionStep",value:function(e,t,n,r){return Object.values(e.triggers).some((function(e){return e.updateTrigger?r.updateTriggersChanged&&(r.updateTriggersChanged.all||r.updateTriggersChanged[e.updateTrigger]):t[e.prop]!==n[e.prop]}))}},{key:"getDimensionChanges",value:function(e,t,n){var r=this,a=[],i=function(i){var o=Ye.find((function(a){return r.needUpdateDimensionStep(r.dimensionUpdaters[i][a],e,t,n)}));o&&a.push(r.dimensionUpdaters[i][o].updater.bind(r,t,r.dimensionUpdaters[i]))};for(var o in this.dimensionUpdaters)i(o);return a.length?a:null}},{key:"getUpdateTriggers",value:function(e){var t=this,n=e.updateTriggers||{},r={},a=function(a){var i=t.dimensionUpdaters[a].accessor;r[i]={},Ye.forEach((function(o){Object.values(t.dimensionUpdaters[a][o].triggers).forEach((function(t){var a=t.prop,o=t.updateTrigger;if(o){var l=n[o];"object"!==Object(Ve.a)(l)||Array.isArray(l)?void 0!==l&&(r[i][a]=l):Object.assign(r[i],l)}else r[i][a]=e[a]}))}))};for(var i in this.dimensionUpdaters)a(i);return r}},{key:"getSortedBins",value:function(e){for(var t in this.dimensionUpdaters)this.getDimensionSortedBins(e,this.dimensionUpdaters[t])}},{key:"getDimensionSortedBins",value:function(e,t){var n=t.key,r=this.state.dimensions[n].getValue,a=new Se(this.state.layerData.data||[],{getValue:r,filterData:e._filterData});this.setDimensionState(n,{sortedBins:a}),this.getDimensionValueDomain(e,t)}},{key:"getDimensionValueDomain",value:function(e,t){var n=t.getDomain,r=t.key,a=n.triggers,i=a.lowerPercentile,o=a.upperPercentile,l=a.scaleType,u=this.state.dimensions[r].sortedBins.getValueDomainByScale(e[l.prop],[e[i.prop],e[o.prop]]);this.setDimensionState(r,{valueDomain:u}),this.getDimensionScale(e,t)}},{key:"getDimensionScale",value:function(e,t){var n=t.key,r=t.getScaleFunc,a=t.getDomain,i=r.triggers,o=i.domain,l=i.range,u=a.triggers.scaleType,s=r.onSet,c=e[l.prop],d=e[o.prop]||this.state.dimensions[n].valueDomain,f=function(e){switch(e){case"quantize":return fe;case"linear":return pe;case"quantile":return he;case"ordinal":return ve;default:return fe}}(u&&e[u.prop])(d,c);"object"===Object(Ve.a)(s)&&"function"==typeof e[s.props]&&e[s.props](f.domain()),this.setDimensionState(n,{scaleFunc:f})}},{key:"getSubLayerDimensionAttribute",value:function(e,t){var n=this;return function(r){var a=n.state.dimensions[e],i=a.sortedBins,o=a.scaleFunc,l=i.binMap[r.index];if(l&&0===l.counts)return t;var u=l&&l.value,s=o.domain();return u>=s[0]&&u<=s[s.length-1]?o(u):t}}},{key:"getSubLayerAccessors",value:function(e){var t={};for(var n in this.dimensionUpdaters){t[this.dimensionUpdaters[n].accessor]=this.getSubLayerDimensionAttribute(e,n)}return t}},{key:"getPickingInfo",value:function(e){var t=e.info,n=null;if(t.picked&&t.index>-1){var r=this.state.layerData.data[t.index],a={};for(var i in this.dimensionUpdaters){var o=this.dimensionUpdaters[i].pickingInfo,l=this.state.dimensions[i].sortedBins,u=l.binMap[r.index]&&l.binMap[r.index].value;a[o]=u}n=Object.assign(a,r,{points:r.filteredPoints||r.points})}return Object.assign(t,{picked:Boolean(n),object:n})}},{key:"getAccessor",value:function(e){return this.dimensionUpdaters.hasOwnProperty(e)?this.dimensionUpdaters[e].attributeAccessor:He}}],[{key:"defaultDimensions",value:function(){return We}}]),e}();function Xe(){}var Ze={colorDomain:null,colorRange:J,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:function(e){return 1}},colorAggregation:"SUM",lowerPercentile:{type:"number",min:0,max:100,value:0},upperPercentile:{type:"number",min:0,max:100,value:100},colorScaleType:"quantize",onSetColorDomain:Xe,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:function(e){return 1}},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",min:0,max:100,value:0},elevationUpperPercentile:{type:"number",min:0,max:100,value:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:Xe,gridAggregator:Ie,cellSize:{type:"number",min:0,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:function(e){return e.position}},extruded:!1,material:!0,_filterData:{type:"function",value:null,optional:!0}},Ke=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"initializeState",value:function(){var e=new qe({getAggregator:function(e){return e.gridAggregator},getCellSize:function(e){return e.cellSize}});this.state={cpuAggregator:e,aggregatorState:e.state},this.getAttributeManager().add({positions:{size:3,accessor:"getPosition"}})}},{key:"updateState",value:function(e){Object(c.a)(Object(s.a)(t.prototype),"updateState",this).call(this,e),this.setState({aggregatorState:this.state.cpuAggregator.updateState(e,{viewport:this.context.viewport,attributes:this.getAttributes(),numInstances:this.getNumInstances(e.props)})})}},{key:"getPickingInfo",value:function(e){var t=e.info;return this.state.cpuAggregator.getPickingInfo({info:t})}},{key:"_onGetSublayerColor",value:function(e){return this.state.cpuAggregator.getAccessor("fillColor")(e)}},{key:"_onGetSublayerElevation",value:function(e){return this.state.cpuAggregator.getAccessor("elevation")(e)}},{key:"_getSublayerUpdateTriggers",value:function(){return this.state.cpuAggregator.getUpdateTriggers(this.props)}},{key:"renderLayers",value:function(){var e=this.props,t=e.elevationScale,n=e.extruded,r=e.cellSize,a=e.coverage,i=e.material,o=e.transitions,l=this.state.cpuAggregator,u=this.getSubLayerClass("grid-cell",Ue.a),s=this._getSublayerUpdateTriggers();return new u({cellSize:r,coverage:a,material:i,elevationScale:t,extruded:n,getFillColor:this._onGetSublayerColor.bind(this),getElevation:this._onGetSublayerElevation.bind(this),transitions:o&&{getFillColor:o.getColorValue||o.getColorWeight,getElevation:o.getElevationValue||o.getElevationWeight}},this.getSubLayerProps({id:"grid-cell",updateTriggers:s}),{data:l.state.layerData.data})}}]),t}(ue);Ke.layerName="CPUGridLayer",Ke.defaultProps=Ze;var Je=n(453),Qe=n(479);function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(){}var tt={colorDomain:null,colorRange:J,getColorValue:{type:"accessor",value:null},getColorWeight:{type:"accessor",value:function(e){return 1}},colorAggregation:"SUM",lowerPercentile:{type:"number",value:0,min:0,max:100},upperPercentile:{type:"number",value:100,min:0,max:100},colorScaleType:"quantize",onSetColorDomain:et,elevationDomain:null,elevationRange:[0,1e3],getElevationValue:{type:"accessor",value:null},getElevationWeight:{type:"accessor",value:function(e){return 1}},elevationAggregation:"SUM",elevationLowerPercentile:{type:"number",value:0,min:0,max:100},elevationUpperPercentile:{type:"number",value:100,min:0,max:100},elevationScale:{type:"number",min:0,value:1},elevationScaleType:"linear",onSetElevationDomain:et,radius:{type:"number",value:1e3,min:1},coverage:{type:"number",min:0,max:1,value:1},extruded:!1,hexagonAggregator:function(e,t){var n=e.data,r=e.radius,a=t.viewport,i=t.attributes,o=n.length?function(e,t){var n,r=t.attributes,a=r.positions.value,i=r.positions.getAccessor().size,o=1/0,l=1/0,u=-1/0,s=-1/0;for(n=0;n=t?1:0}function Qt(e){var t=e.cellWeights,n=e.x,r=e.y,a=e.width,i=e.height,o=e.threshold;e.thresholdValue&&(f.a.deprecated("thresholdValue","threshold")(),o=e.thresholdValue);var l=n<0,u=n>=a-1,s=r<0,c=r>=i-1,d=l||u||s||c,p={},h={};l||c?h.top=0:(p.top=t[(r+1)*a+n],h.top=Jt(p.top,o)),u||c?h.topRight=0:(p.topRight=t[(r+1)*a+n+1],h.topRight=Jt(p.topRight,o)),u||s?h.right=0:(p.right=t[r*a+n+1],h.right=Jt(p.right,o)),l||s?h.current=0:(p.current=t[r*a+n],h.current=Jt(p.current,o));var m=h.top,g=h.topRight,v=h.right,y=h.current,b=-1;Number.isFinite(o)&&(b=m<<3|g<<2|v<<1|y),Array.isArray(o)&&(b=m<<6|g<<4|v<<2|y);var A=0;return d||(A=Jt((p.top+p.topRight+p.right+p.current)/4,o)),{code:b,meanCode:A}}function $t(e){var t=e.gridOrigin,n=e.cellSize,r=e.x,a=e.y,i=e.code,o=e.meanCode,l=e.type,u=void 0===l?Xt:l,s=Object.assign({},Kt,e.thresholdData),c=u===Zt?qt[i]:Wt[i];Array.isArray(c)||(c=c[o]);var d=s.zIndex*s.zOffset,f=(r+1)*n[0],p=(a+1)*n[1],h=t[0]+f,m=t[1]+p;if(u===Zt){var g=[];return c.forEach((function(e){var t=[];e.forEach((function(e){var r=h+e[0]*n[0],a=m+e[1]*n[1];t.push([r,a,d])})),g.push(t)})),g}var v=[];return c.forEach((function(e){e.forEach((function(e){var t=h+e[0]*n[0],r=m+e[1]*n[1];v.push([t,r,d])}))})),v}var en=[255,255,255,255],tn={cellSize:{type:"number",min:1,max:1e3,value:1e3},getPosition:{type:"accessor",value:function(e){return e.position}},getWeight:{type:"accessor",value:function(e){return 1}},gpuAggregation:!0,aggregation:"SUM",contours:[{threshold:1}],zOffset:.005},nn={data:{props:["cellSize"]},weights:{props:["aggregation"],accessors:["getWeight"]}},rn=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"initializeState",value:function(){var e;Object(c.a)(Object(s.a)(t.prototype),"initializeState",this).call(this,{dimensions:nn}),this.setState({contourData:{},projectPoints:!1,weights:{count:{size:1,operation:O.SUM}}}),this.getAttributeManager().add((e={},Object(i.a)(e,"positions",{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()}),Object(i.a)(e,"count",{size:3,accessor:"getWeight"}),e))}},{key:"updateState",value:function(e){Object(c.a)(Object(s.a)(t.prototype),"updateState",this).call(this,e);var n=!1,r=e.oldProps,a=e.props,i=this.state.aggregationDirty;r.contours===a.contours&&r.zOffset===a.zOffset||(n=!0,this._updateThresholdData(e.props)),this.getNumInstances()>0&&(i||n)&&this._generateContours()}},{key:"renderLayers",value:function(){var e=this.state.contourData,t=e.contourSegments,n=e.contourPolygons,r=this.getSubLayerClass("lines",at.a),a=this.getSubLayerClass("bands",it.a);return[t&&t.length>0&&new r(this.getSubLayerProps({id:"lines"}),{data:this.state.contourData.contourSegments,getSourcePosition:function(e){return e.start},getTargetPosition:function(e){return e.end},getColor:function(e){return e.contour.color||en},getWidth:function(e){return e.contour.strokeWidth||1}}),n&&n.length>0&&new a(this.getSubLayerProps({id:"bands"}),{data:this.state.contourData.contourPolygons,getPolygon:function(e){return e.vertices},getFillColor:function(e){return e.contour.color||en}})]}},{key:"updateAggregationState",value:function(e){var t=e.props,n=e.oldProps,r=t.cellSize,a=t.coordinateSystem,i=this.context.viewport,o=n.cellSize!==r,l=t.gpuAggregation;this.state.gpuAggregation!==t.gpuAggregation&&l&&!W.isSupported(this.context.gl)&&(f.a.warn("GPU Grid Aggregation not supported, falling back to CPU")(),l=!1);var u=l!==this.state.gpuAggregation;this.setState({gpuAggregation:l});var s=this.state.dimensions,c=this.isAttributeChanged("positions"),d=s.data,p=s.weights,h=this.state.boundingBox;if(c&&(h=Pe(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:h})),c||o){var m=Re(h,r,i,a),g=m.gridOffset,v=m.translation,y=m.width,b=m.height,A=m.numCol,_=m.numRow;this.allocateResources(_,A),this.setState({gridOffset:g,boundingBox:h,translation:v,posOffset:v.slice(),gridOrigin:[-1*v[0],-1*v[1]],width:y,height:b,numCol:A,numRow:_})}var O=c||u||this.isAggregationDirty(e,{dimension:d,compareAll:l}),E=this.isAggregationDirty(e,{dimension:p});E&&this._updateAccessors(e),(O||E)&&this._resetResults(),this.setState({aggregationDataDirty:O,aggregationWeightsDirty:E})}},{key:"_updateAccessors",value:function(e){var t=e.props,n=t.getWeight,r=t.aggregation,a=this.state.weights.count;a&&(a.getWeight=n,a.operation=O[r]),this.setState({getValue:w(r,n)})}},{key:"_resetResults",value:function(){var e=this.state.weights.count;e&&(e.aggregationData=null)}},{key:"_generateContours",value:function(){var e=this.state,t=e.numCol,n=e.numRow,r=e.gridOrigin,a=e.gridOffset,i=e.thresholdData,o=this.state.weights.count,l=o.aggregationData;l||(l=o.aggregationBuffer.getData(),o.aggregationData=l);var u=function(e){var t=e.thresholdData,n=(e.colors,e.cellWeights),r=e.gridSize,a=e.gridOrigin,i=e.cellSize,o=[],l=[],u=r[0],s=r[1],c=0,d=0,f=!0,p=!1,h=void 0;try{for(var m,g=t[Symbol.iterator]();!(f=(m=g.next()).done);f=!0)for(var v=m.value,y=v.contour,b=y.threshold,A=-1;A= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n float domainRange = domain.y - domain.x;\n if (domainRange <= 0.) {\n outColor = colorRange[0];\n } else {\n float rangeCount = float(RANGE_COUNT);\n float rangeStep = domainRange / rangeCount;\n float idx = floor((value - domain.x) / rangeStep);\n idx = clamp(idx, 0., rangeCount - 1.);\n int intIdx = int(idx);\n outColor = colorRange[intIdx];\n }\n }\n return outColor;\n}\n\nfloat linearScale(vec2 domain, vec2 range, float value) {\n if (value >= (domain.x - EPSILON) && value <= (domain.y + EPSILON)) {\n return ((value - domain.x) / (domain.y - domain.x)) * (range.y - range.x) + range.x;\n }\n return -1.;\n}\n\nvoid main(void) {\n\n vec2 clrDomain = colorDomainValid ? colorDomain : vec2(colorData.maxMinCount.a, colorData.maxMinCount.r);\n vec4 color = quantizeScale(clrDomain, colorRange, colors.r);\n\n float elevation = 0.0;\n\n if (extruded) {\n vec2 elvDomain = elevationDomainValid ? elevationDomain : vec2(elevationData.maxMinCount.a, elevationData.maxMinCount.r);\n elevation = linearScale(elvDomain, elevationRange, elevations.r);\n elevation = elevation * (positions.z + 1.0) / 2.0 * elevationScale;\n }\n float shouldRender = float(color.r > 0.0 && elevations.r >= 0.0);\n float dotRadius = cellSize / 2. * coverage * shouldRender;\n\n int yIndex = (gl_InstanceID / gridSize[0]);\n int xIndex = gl_InstanceID - (yIndex * gridSize[0]);\n\n vec2 instancePositionXFP64 = mul_fp64(vec2(gridOffset[0], gridOffsetLow[0]), vec2(float(xIndex), 0.));\n instancePositionXFP64 = sum_fp64(instancePositionXFP64, vec2(gridOrigin[0], gridOriginLow[0]));\n vec2 instancePositionYFP64 = mul_fp64(vec2(gridOffset[1], gridOffsetLow[1]), vec2(float(yIndex), 0.));\n instancePositionYFP64 = sum_fp64(instancePositionYFP64, vec2(gridOrigin[1], gridOriginLow[1]));\n\n vec3 centroidPosition = vec3(instancePositionXFP64[0], instancePositionYFP64[0], elevation);\n vec3 centroidPosition64Low = vec3(instancePositionXFP64[1], instancePositionYFP64[1], 0.0);\n vec3 pos = vec3(project_size(positions.xy + offset) * dotRadius, 0.);\n picking_setPickingColor(instancePickingColors);\n\n vec4 position_commonspace;\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, position_commonspace);\n\n vec3 normals_commonspace = project_normal(normals);\n\n if (extruded) {\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, position_commonspace.xyz, normals_commonspace);\n vColor = vec4(lightColor, color.a * opacity) / 255.;\n } else {\n vColor = vec4(color.rgb, color.a * opacity) / 255.;\n }\n}\n",fs:"#version 300 es\n#define SHADER_NAME gpu-grid-cell-layer-fragment-shader\n\nprecision highp float;\n\nin vec4 vColor;\n\nout vec4 fragColor;\n\nvoid main(void) {\n fragColor = vColor;\n fragColor = picking_filterColor(fragColor);\n}\n",modules:[_.a,an.a,Z.a,b.b]})}},{key:"initializeState",value:function(){var e=this.context.gl;this.getAttributeManager().addInstanced({colors:{size:4,noAlloc:!0},elevations:{size:4,noAlloc:!0}});var t=this._getModel(e);this._setupUniformBuffer(t),this.setState({model:t})}},{key:"_getModel",value:function(e){return new v.a(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new ln.a,isInstanced:!0}))}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.cellSize,a=n.offset,i=n.extruded,o=n.elevationScale,l=n.coverage,u=n.gridSize,s=n.gridOrigin,c=n.gridOffset,d=n.elevationRange,f=n.colorMaxMinBuffer,p=n.elevationMaxMinBuffer,h=[Object(on.c)(s[0]),Object(on.c)(s[1])],m=[Object(on.c)(c[0]),Object(on.c)(c[1])],g=this.getDomainUniforms(),v=Q(this.props.colorRange);this.bindUniformBuffers(f,p),this.state.model.setUniforms(Object.assign({},t,g,{cellSize:r,offset:a,extruded:i,elevationScale:o,coverage:l,gridSize:u,gridOrigin:s,gridOriginLow:h,gridOffset:c,gridOffsetLow:m,colorRange:v,elevationRange:d})).draw(),this.unbindUniformBuffers(f,p)}},{key:"bindUniformBuffers",value:function(e,t){e.bind({target:35345,index:0}),t.bind({target:35345,index:1})}},{key:"unbindUniformBuffers",value:function(e,t){e.unbind({target:35345,index:0}),t.unbind({target:35345,index:1})}},{key:"getDomainUniforms",value:function(){var e=this.props,t=e.colorDomain,n=e.elevationDomain,r={};return null!==t?(r.colorDomainValid=!0,r.colorDomain=t):r.colorDomainValid=!1,null!==n?(r.elevationDomainValid=!0,r.elevationDomain=n):r.elevationDomainValid=!1,r}},{key:"_setupUniformBuffer",value:function(e){var t=this.context.gl,n=e.program.handle,r=t.getUniformBlockIndex(n,"ColorData"),a=t.getUniformBlockIndex(n,"ElevationData");t.uniformBlockBinding(n,r,0),t.uniformBlockBinding(n,a,1)}}]),t}(K.a);sn.layerName="GPUGridCellLayer",sn.defaultProps=un;var cn={colorDomain:null,colorRange:J,getColorWeight:{type:"accessor",value:function(e){return 1}},colorAggregation:"SUM",elevationDomain:null,elevationRange:[0,1e3],getElevationWeight:{type:"accessor",value:function(e){return 1}},elevationAggregation:"SUM",elevationScale:{type:"number",min:0,value:1},cellSize:{type:"number",min:1,max:1e3,value:1e3},coverage:{type:"number",min:0,max:1,value:1},getPosition:{type:"accessor",value:function(e){return e.position}},extruded:!1,material:!0},dn={data:{props:["cellSize","colorAggregation","elevationAggregation"]}},fn=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"initializeState",value:function(){var e,n=this.context.gl,r=W.isSupported(n);r||f.a.error("GPUGridLayer is not supported on this browser, use GridLayer instead")(),Object(c.a)(Object(s.a)(t.prototype),"initializeState",this).call(this,{dimensions:dn}),this.setState({gpuAggregation:!0,projectPoints:!1,isSupported:r,weights:{color:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new se.a(n,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})},elevation:{needMin:!0,needMax:!0,combineMaxMin:!0,maxMinBuffer:new se.a(n,{byteLength:16,accessor:{size:4,type:5126,divisor:1}})}},positionAttributeName:"positions"}),this.getAttributeManager().add((e={},Object(i.a)(e,"positions",{size:3,accessor:"getPosition",type:5130,fp64:this.use64bitPositions()}),Object(i.a)(e,"color",{size:3,accessor:"getColorWeight"}),Object(i.a)(e,"elevation",{size:3,accessor:"getElevationWeight"}),e))}},{key:"updateState",value:function(e){!1!==this.state.isSupported&&(Object(c.a)(Object(s.a)(t.prototype),"updateState",this).call(this,e),this.state.aggregationDirty&&this.setState({gridHash:null}))}},{key:"getHashKeyForIndex",value:function(e){var t=this.state,n=t.numRow,r=t.numCol,a=t.boundingBox,i=t.gridOffset,o=[r,n],l=[a.xMin,a.yMin],u=[i.xOffset,i.yOffset],s=Math.floor(e/o[0]),c=e-s*o[0],d=Math.floor((s*u[1]+l[1]+90+u[1]/2)/u[1]),f=Math.floor((c*u[0]+l[0]+180+u[0]/2)/u[0]);return"".concat(d,"-").concat(f)}},{key:"getPositionForIndex",value:function(e){var t=this.state,n=t.numRow,r=t.numCol,a=t.boundingBox,i=t.gridOffset,o=[r,n],l=[a.xMin,a.yMin],u=[i.xOffset,i.yOffset],s=Math.floor(e/o[0]);return[(e-s*o[0])*u[0]+l[0],s*u[1]+l[1]]}},{key:"getPickingInfo",value:function(e){var t=e.info,n=e.mode,r=t.index,a=null;if(r>=0){var i=this.state.gpuGridAggregator,o=this.getPositionForIndex(r),l=W.getAggregationData(Object.assign({pixelIndex:r},i.getData("color"))),u=W.getAggregationData(Object.assign({pixelIndex:r},i.getData("elevation")));if(a={colorValue:l.cellWeight,elevationValue:u.cellWeight,count:l.cellCount||u.cellCount,position:o,totalCount:l.totalCount||u.totalCount},"hover"!==n){var s=this.props,c=this.state.gridHash;if(!c){var d=this.state,f=d.gridOffset,p=d.translation,h=d.boundingBox,m=this.context.viewport;c=Ie(s,{gridOffset:f,attributes:this.getAttributes(),viewport:m,translation:p,boundingBox:h}).gridHash,this.setState({gridHash:c})}var g=c[this.getHashKeyForIndex(r)];Object.assign(a,g)}}return Object.assign(t,{picked:Boolean(a),object:a})}},{key:"renderLayers",value:function(){if(!this.state.isSupported)return null;var e=this.props,t=e.elevationScale,n=e.extruded,r=e.cellSize,a=e.coverage,i=e.material,o=e.elevationRange,l=e.colorDomain,u=e.elevationDomain,s=this.state,c=s.weights,d=s.numRow,f=s.numCol,p=s.gridOrigin,h=s.gridOffset,m=c.color,g=c.elevation,v=Q(this.props.colorRange);return new(this.getSubLayerClass("gpu-grid-cell",sn))({gridSize:[f,d],gridOrigin:p,gridOffset:[h.xOffset,h.yOffset],colorRange:v,elevationRange:o,colorDomain:l,elevationDomain:u,cellSize:r,coverage:a,material:i,elevationScale:t,extruded:n},this.getSubLayerProps({id:"gpu-grid-cell"}),{data:{attributes:{colors:m.aggregationBuffer,elevations:g.aggregationBuffer}},colorMaxMinBuffer:m.maxMinBuffer,elevationMaxMinBuffer:g.maxMinBuffer,numInstances:f*d})}},{key:"finalizeState",value:function(){var e=this.state.weights;[e.color,e.elevation].forEach((function(e){var t=e.aggregationBuffer;e.maxMinBuffer.delete(),t&&t.delete()})),Object(c.a)(Object(s.a)(t.prototype),"finalizeState",this).call(this)}},{key:"updateAggregationState",value:function(e){var t=e.props,n=e.oldProps,r=t.cellSize,a=t.coordinateSystem,i=this.context.viewport,o=n.cellSize!==r,l=this.state.dimensions,u=this.isAttributeChanged("positions"),s=u||this.isAttributeChanged(),c=this.state.boundingBox;if(u&&(c=Pe(this.getAttributes(),this.getNumInstances()),this.setState({boundingBox:c})),u||o){var d=Re(c,r,i,a),f=d.gridOffset,p=d.translation,h=d.width,m=d.height,g=d.numCol,v=d.numRow;this.allocateResources(v,g),this.setState({gridOffset:f,translation:p,gridOrigin:[-1*p[0],-1*p[1]],width:h,height:m,numCol:g,numRow:v})}var y=s||this.isAggregationDirty(e,{dimension:l.data,compareAll:!0});y&&this._updateAccessors(e),this.setState({aggregationDataDirty:y})}},{key:"_updateAccessors",value:function(e){var t=e.props,n=t.colorAggregation,r=t.elevationAggregation,a=this.state.weights,i=a.color,o=a.elevation;i.operation=O[n],o.operation=O[r]}}]),t}(Fe);fn.layerName="GPUGridLayer",fn.defaultProps=cn;var pn=Object.assign({},fn.defaultProps,Ke.defaultProps,{gpuAggregation:!1}),hn=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(l.a)(t,[{key:"initializeState",value:function(){this.state={useGPUAggregation:!0}}},{key:"updateState",value:function(e){e.oldProps;var t=e.props,n=(e.changeFlags,{});n.useGPUAggregation=this.canUseGPUAggregation(t),this.setState(n)}},{key:"renderLayers",value:function(){var e=this.props,t=e.data,n=e.updateTriggers,r=this.state.useGPUAggregation?"GPU":"CPU";return new(this.state.useGPUAggregation?this.getSubLayerClass("GPU",fn):this.getSubLayerClass("CPU",Ke))(this.props,this.getSubLayerProps({id:r,updateTriggers:n}),{data:t})}},{key:"canUseGPUAggregation",value:function(e){var t=e.gpuAggregation,n=e.lowerPercentile,r=e.upperPercentile,a=e.getColorValue,i=e.getElevationValue,o=e.colorScaleType;return!!t&&(!!W.isSupported(this.context.gl)&&(0===n&&100===r&&(null===a&&null===i&&("quantile"!==o&&"ordinal"!==o))))}}]),t}(oe.a);function mn(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(null,t),a=Math.max.apply(null,t);return[r,Math.min.apply(null,n),a,Math.max.apply(null,n)]}function gn(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}hn.layerName="GridLayer",hn.defaultProps=pn;var vn=new Float32Array(12);function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=0,r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0)for(var u=o.value,s=0;s 0.) {\n maxValue = colorDomain[1];\n minValue = colorDomain[0];\n }\n vIntensityMax = intensity / maxValue;\n vIntensityMin = intensity / minValue;\n}\n",fs:"#define SHADER_NAME triangle-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D texture;\nvarying vec2 vTexCoords;\nuniform sampler2D colorTexture;\n\nvarying float vIntensityMin;\nvarying float vIntensityMax;\n\nvec4 getLinearColor(float value) {\n float factor = clamp(value * vIntensityMax, 0., 1.);\n vec4 color = texture2D(colorTexture, vec2(factor, 0.5));\n color.a *= min(value * vIntensityMin, 1.0);\n return color;\n}\n\nvoid main(void) {\n float weight = texture2D(texture, vTexCoords).r;\n if (weight <= 0.) {\n discard;\n }\n\n vec4 linearColor = getLinearColor(weight);\n linearColor.a *= opacity;\n gl_FragColor =linearColor;\n}\n",modules:[_.a]}}},{key:"initializeState",value:function(){var e=this.context.gl;this.getAttributeManager().add({positions:{size:3,noAlloc:!0},texCoords:{size:2,noAlloc:!0}}),this.setState({model:this._getModel(e)})}},{key:"_getModel",value:function(e){var t=this.props.vertexCount;return new v.a(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new X.a({drawMode:6,vertexCount:t})}))}},{key:"draw",value:function(e){var t=e.uniforms,n=this.state.model,r=this.props,a=r.texture,o=r.maxTexture,l=r.colorTexture,u=r.intensity,s=r.threshold,c=r.colorDomain;n.setUniforms(function(e){for(var t=1;t0&&o<1){var d=Math.min(u[1],1);u[0]*=d/u[1],u[1]=d}this.setState({colorDomain:u})}this.setState({zoom:e.context.viewport.zoom})}}},{key:"renderLayers",value:function(){if(!this.state.supported)return[];var e=this.state,t=e.weightsTexture,n=e.triPositionBuffer,r=e.triTexCoordBuffer,a=e.maxWeightsTexture,i=e.colorTexture,o=e.colorDomain,l=this.props,u=l.updateTriggers,s=l.intensity,c=l.threshold;return new(this.getSubLayerClass("triangle",_n))(this.getSubLayerProps({id:"triangle-layer",updateTriggers:u}),{data:{attributes:{positions:n,texCoords:r}},vertexCount:4,maxTexture:a,colorTexture:i,texture:t,intensity:s,threshold:c,colorDomain:o})}},{key:"finalizeState",value:function(){Object(c.a)(Object(s.a)(t.prototype),"finalizeState",this).call(this);var e=this.state,n=e.weightsTransform,r=e.weightsTexture,a=e.maxWeightTransform,i=e.maxWeightsTexture,o=e.triPositionBuffer,l=e.triTexCoordBuffer,u=e.colorTexture,d=e.updateTimer;n&&n.delete(),r&&r.delete(),a&&a.delete(),i&&i.delete(),o&&o.delete(),l&&l.delete(),u&&u.delete(),d&&clearTimeout(d)}},{key:"_getAttributeManager",value:function(){return new ie.a(this.context.gl,{id:this.props.id,stats:this.context.stats})}},{key:"_getChangeFlags",value:function(e){var t={},n=this.state.dimensions;t.dataChanged=this.isAttributeChanged()||this.isAggregationDirty(e,{compareAll:!0,dimension:n.data}),t.viewportChanged=e.changeFlags.viewportChanged;var r=this.state.zoom;return e.context.viewport&&e.context.viewport.zoom===r||(t.viewportZoomChanged=!0),t}},{key:"_createTextures",value:function(){var e=this.context.gl,t=this.state,n=t.textureSize,r=t.format,a=t.type;this.setState({weightsTexture:new j.a(e,wn({width:n,height:n,format:r,type:a},Sn)),maxWeightsTexture:new j.a(e,wn({format:r,type:a},Sn))})}},{key:"_setupAttributes",value:function(){this.getAttributeManager().add({positions:{size:3,accessor:"getPosition"},weights:{size:1,accessor:"getWeight"}}),this.setState({positionAttributeName:"positions"})}},{key:"_setupTextureParams",value:function(){var e=this.context.gl,t=Math.min(2048,Object(m.d)(e,3379)),n=Object(h.c)(e,p.a.COLOR_ATTACHMENT_RGBA32F),r=function(e){var t=e.gl,n=e.floatTargetSupport;return{format:Object(m.g)(t)?34836:6408,type:n?5126:5121}}({gl:e,floatTargetSupport:n}),a=r.format,i=r.type,o=n?1:1/255;this.setState({textureSize:t,format:a,type:i,weightsScale:o}),n||f.a.warn("HeatmapLayer: ".concat(this.id," rendering to float texture not supported, fallingback to low precession format"))()}},{key:"_createWeightsTransform",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.context.gl,n=this.state.weightsTransform,r=this.state.weightsTexture;n&&n.delete();var a=Object(A.a)({vs:En,_fs:xn,modules:[_.a]},e);n=new y.a(t,wn({id:"".concat(this.id,"-weights-transform"),elementCount:1,_targetTexture:r,_targetTextureVarying:"weightsTexture"},a)),this.setState({weightsTransform:n})}},{key:"_setupResources",value:function(){var e=this.context.gl;this._createTextures();var t=this.state,n=t.textureSize,r=t.weightsTexture,a=t.maxWeightsTexture;this._createWeightsTransform();var i=new y.a(e,{id:"".concat(this.id,"-max-weights-transform"),_sourceTextures:{inTexture:r},_targetTexture:a,_targetTextureVarying:"outTexture",vs:"attribute vec4 inTexture;\nvarying vec4 outTexture;\n\nvoid main()\n{\noutTexture = inTexture;\ngl_Position = vec4(0, 0, 0, 1.);\ngl_PointSize = 1.0;\n}\n",elementCount:n*n});this.setState({weightsTexture:r,maxWeightsTexture:a,maxWeightTransform:i,zoom:null,triPositionBuffer:new se.a(e,{byteLength:48,accessor:{size:3}}),triTexCoordBuffer:new se.a(e,{byteLength:48,accessor:{size:2}})})}},{key:"updateShaders",value:function(e){this._createWeightsTransform(e)}},{key:"_updateMaxWeightValue",value:function(){this.state.maxWeightTransform.run({parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32776}})}},{key:"_updateBounds",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.context.viewport,n=[t.unproject([0,0]),t.unproject([t.width,0]),t.unproject([t.width,t.height]),t.unproject([0,t.height])],r=mn(n),a={visibleWorldBounds:r,viewportCorners:n},i=!1;if(e||!this.state.worldBounds||!gn(this.state.worldBounds,r)){var o=this._worldToCommonBounds(r),l=this._commonToWorldBounds(o);this.props.coordinateSystem===Ce.a.LNGLAT&&(l[1]=Math.max(l[1],-85.051129),l[3]=Math.min(l[3],85.051129),l[0]=Math.max(l[0],-360),l[2]=Math.min(l[2],360));var u=this._worldToCommonBounds(l);a.worldBounds=l,a.normalizedCommonBounds=u,i=!0}return this.setState(a),i}},{key:"_updateTextureRenderingBounds",value:function(){var e=this.state,t=e.triPositionBuffer,n=e.triTexCoordBuffer,r=e.normalizedCommonBounds,a=e.viewportCorners,i=this.context.viewport;t.subData(yn(a,3));var o=a.map((function(e){return t=i.projectPosition(e),n=r,a=Object(ce.a)(n,4),o=a[0],l=a[1],u=a[2],s=a[3],[(t[0]-o)/(u-o),(t[1]-l)/(s-l)];var t,n,a,o,l,u,s}));n.subData(yn(o,2))}},{key:"_updateColorTexture",value:function(e){var t=e.props.colorRange,n=this.state.colorTexture,r=Q(t,!0);n?n.setImageData({data:r,width:t.length}):n=new j.a(this.context.gl,wn({data:r,width:t.length,height:1,format:Object(m.g)(this.context.gl)?34836:6408,type:5126},Sn)),this.setState({colorTexture:n})}},{key:"_updateWeightmap",value:function(){var e,t=this.props.radiusPixels,n=this.state,r=n.weightsTransform,a=n.worldBounds,o=n.textureSize,l=n.weightsTexture,u=n.weightsScale,s={radiusPixels:t,commonBounds:this._worldToCommonBounds(a,{useLayerCoordinateSystem:!0}),textureWidth:o,weightsScale:u};r.update({elementCount:this.getNumInstances()}),r.run({uniforms:s,parameters:{blend:!0,depthTest:!1,blendFunc:[1,1],blendEquation:32774},clearRenderTarget:!0,attributes:this.getAttributes(),moduleSettings:this.getModuleSettings()}),this._updateMaxWeightValue(),l.setParameters((e={},Object(i.a)(e,10240,9729),Object(i.a)(e,10241,9729),e)),this.setState({lastUpdate:Date.now()})}},{key:"_debouncedUpdateWeightmap",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.updateTimer,n=Date.now()-this.state.lastUpdate;e&&(t=null),n>=500?(this._updateBounds(!0),this._updateWeightmap(),this._updateTextureRenderingBounds()):t||(t=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),500-n)),this.setState({updateTimer:t})}},{key:"_worldToCommonBounds",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.useLayerCoordinateSystem,i=void 0!==a&&a,o=Object(ce.a)(e,4),l=o[0],u=o[1],s=o[2],c=o[3],d=this.context.viewport,f=this.state.textureSize,p=2*f/d.scale;i?(t=this.projectPosition([l,u,0]),n=this.projectPosition([s,c,0])):(t=d.projectPosition([l,u,0]),n=d.projectPosition([s,c,0]));var h=t.slice(0,2).concat(n.slice(0,2));return h=bn(h,p,p)}},{key:"_commonToWorldBounds",value:function(e){var t=Object(ce.a)(e,4),n=t[0],r=t[1],a=t[2],i=t[3],o=this.context.viewport,l=o.unprojectPosition([n,r]),u=o.unprojectPosition([a,i]);return l.slice(0,2).concat(u.slice(0,2))}}]),t}(ue);kn.layerName="HeatmapLayer",kn.defaultProps=Cn},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s}));var r=n(172),a=n(184),i=n(57);function o(e,t){if(Object(i.a)(Object(i.g)(e),"setParameters requires a WebGL context"),!Object(i.f)(t)){var n={};for(var a in t){var o=Number(a),l=r.e[a];l&&("string"==typeof l?n[l]=!0:l(e,t[a],o))}var u=e.state&&e.state.cache;if(u)for(var s in n){(0,r.a[s])(e,t,u)}}}function l(e,t){if("number"==typeof(t=t||r.c)){var n=t,a=r.d[n];return a?a(e,n):e.getParameter(n)}var i=Array.isArray(t)?t:Object.keys(t),o={},l=!0,u=!1,s=void 0;try{for(var c,d=i[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var f=c.value,p=r.d[f];o[f]=p?p(e,Number(f)):e.getParameter(Number(f))}}catch(e){u=!0,s=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw s}}return o}function u(e){o(e,r.c)}function s(e,t,n){if(Object(i.f)(t))return n(e);var r,l=t.nocatch,u=void 0===l||l;if(Object(a.c)(e),o(e,t),u)r=n(e),Object(a.b)(e);else try{r=n(e)}finally{Object(a.b)(e)}return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(24),a=n(26),i=n(47),o=n(38),l=n(48),u=n(469),s=n(25),c=n(483),d=n(62),f=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"render",value:function(e){var t=this.gl;return Object(s.k)(t,{framebuffer:e.target}),this._drawLayers(e)}},{key:"_drawLayers",value:function(e){var t=e.viewports,n=e.views,r=e.onViewportActive,a=e.clearCanvas,i=void 0===a||a,o=this.gl;i&&function(e){var t=e.drawingBufferWidth,n=e.drawingBufferHeight;Object(s.k)(e,{viewport:[0,0,t,n]}),e.clear(16640)}(o);var l=[],u=!0,c=!1,d=void 0;try{for(var f,p=t[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value,m=h.viewport||h,g=n&&n[m.id];r(m),e.view=g;var v=m.subViewports||[m],y=!0,b=!1,A=void 0;try{for(var _,O=v[Symbol.iterator]();!(y=(_=O.next()).done);y=!0){var E=_.value;e.viewport=E;var x=this._drawLayersInViewport(o,e);l.push(x)}}catch(e){b=!0,A=e}finally{try{y||null==O.return||O.return()}finally{if(b)throw A}}}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}return l}},{key:"_drawLayersInViewport",value:function(e,t){var n=t.layers,r=t.layerFilter,a=t.onError,i=t.viewport,o=t.view,l=t.pass,u=void 0===l?"unknown":l,f=t.effects,p=t.moduleParameters,h=function(e,t){var n=t.viewport,r=e.canvas?e.canvas.clientHeight||e.canvas.height:100,a=n,i=Object(s.c)(e);return[a.x*i,(r-a.y-a.height)*i,a.width*i,a.height*i]}(e,{viewport:i});if(o&&o.props.clear){var m=!0===o.props.clear?{color:!0,depth:!0}:o.props.clear;Object(s.l)(e,{scissorTest:!0,scissor:h},(function(){return Object(c.a)(e,m)}))}var g={totalCount:n.length,visibleCount:0,compositeCount:0,pickableCount:0};Object(s.k)(e,{viewport:h});for(var v=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return function(a,i){var o,l=a.props._offset,u=a.id,s=a.parent&&a.parent.id;if(s in r){var c=r[s]=r[s]||e(n[s],n);o=c(a,i),r[u]=c}else Number.isFinite(l)?(o=l+(n[s]||0),r[u]=null):o=t;return i&&o>=t&&(t=o+1),n[u]=o,o}}(),y=0;y0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e);var n=t.id,a=void 0===n?"effect":n;this.id=a,this.props={},Object.assign(this.props,t)}return Object(a.a)(e,[{key:"preRender",value:function(){}},{key:"getModuleParameters",value:function(){}},{key:"cleanup",value:function(){}}]),e}()},function(e,t,n){"use strict";function r(e){this._context=e}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},t.a=function(e){return new r(e)}},function(e,t,n){"use strict";function r(e){return function(t){return t.matches(e)}}n.d(t,"a",(function(){return r})),t.b=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";var r=n(296),a=n(225);function i(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===a.b&&t.documentElement.namespaceURI===a.b?t.createElement(e):t.createElementNS(n,e)}}function o(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}t.a=function(e){var t=Object(r.a)(e);return(t.local?o:i)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n(46),a=n(2),i=n(122);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null;return n||(e=l({fetch:Object(i.a)(t||{},e)},e),Array.isArray(e.loaders)||(e.loaders=null),e)}function s(e,t){if(!t&&e&&!Array.isArray(e))return e;var n;if(e&&(n=Array.isArray(e)?e:[e]),t&&t.loaders){var a=Array.isArray(t.loaders)?t.loaders:[t.loaders];n=n?[].concat(Object(r.a)(n),Object(r.a)(a)):a}return n&&n.length?n:null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return v}));var r=n(13),a=n.n(r),i=n(21),o=n(435),l=n(66),u=n(309),s=n(262),c="Cannot convert supplied data type";function d(e,t){if(t.text&&"string"==typeof e)return e;if(e instanceof ArrayBuffer){var n=e;return t.text&&!t.binary?new TextDecoder("utf8").decode(n):n}if(ArrayBuffer.isView(e)||Object(l.c)(e)){if(t.text&&!t.binary)return new TextDecoder("utf8").decode(e);var r=e.buffer,a=e.byteLength||e.length;return 0===e.byteOffset&&a===r.byteLength||(r=r.slice(e.byteOffset,e.byteOffset+a)),r}throw new Error(c)}function f(e,t){return p.apply(this,arguments)}function p(){return(p=Object(i.a)(a.a.mark((function e(t,n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof ArrayBuffer||ArrayBuffer.isView(t),"string"!=typeof t&&!r){e.next=3;break}return e.abrupt("return",d(t,n));case 3:if(!Object(l.b)(t)){e.next=7;break}return e.next=6,Object(s.b)(t);case 6:t=e.sent;case 7:if(!Object(l.j)(t)){e.next=21;break}return i=t,e.next=11,Object(s.a)(i);case 11:if(!n.binary){e.next=17;break}return e.next=14,i.arrayBuffer();case 14:e.t0=e.sent,e.next=20;break;case 17:return e.next=19,i.text();case 19:e.t0=e.sent;case 20:return e.abrupt("return",e.t0);case 21:if(Object(l.i)(t)&&(t=Object(u.a)(t)),!Object(l.d)(t)&&!Object(l.a)(t)){e.next=24;break}return e.abrupt("return",Object(o.a)(t));case 24:throw new Error(c);case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return(m=Object(i.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(l.e)(t)){e.next=2;break}return e.abrupt("return",t);case 2:if(!Object(l.j)(t)){e.next=6;break}return e.next=5,Object(s.a)(t);case 5:return e.abrupt("return",Object(u.a)(t.body));case 6:if(!Object(l.b)(t)&&!Object(l.i)(t)){e.next=8;break}return e.abrupt("return",Object(u.a)(t));case 8:if(!Object(l.a)(t)){e.next=10;break}return e.abrupt("return",t[Symbol.asyncIterator]());case 10:return e.abrupt("return",g(t));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){if(ArrayBuffer.isView(e))return a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.buffer;case 2:case"end":return t.stop()}}),t)}))();if(e instanceof ArrayBuffer)return a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}}),t)}))();if(Object(l.e)(e))return e;if(Object(l.d)(e))return e[Symbol.iterator]();throw new Error(c)}function v(e){return y.apply(this,arguments)}function y(){return(y=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(l.i)(t)){e.next=2;break}return e.abrupt("return",t);case 2:if(!Object(l.j)(t)){e.next=4;break}return e.abrupt("return",t.body);case 4:return e.next=6,Object(s.b)(t);case 6:return n=e.sent,e.abrupt("return",n.body);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";function r(e,t,n){const r=t[0],a=t[1],i=n[3]*r+n[7]*a||1;return e[0]=(n[0]*r+n[4]*a)/i,e[1]=(n[1]*r+n[5]*a)/i,e}function a(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[3]*r+n[7]*a+n[11]*i||1;return e[0]=(n[0]*r+n[4]*a+n[8]*i)/o,e[1]=(n[1]*r+n[5]*a+n[9]*i)/o,e[2]=(n[2]*r+n[6]*a+n[10]*i)/o,e}function i(e,t,n){const r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a,e[1]=n[1]*r+n[3]*a,e[2]=t[2],e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";var r=n(89);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){var t=a(e);return function(e){var t=a(e);if(!(t.byteLength>=24&&2303741511===t.getUint32(0,!1)))return null;return{mimeType:"image/png",width:t.getUint32(16,!1),height:t.getUint32(20,!1)}}(t)||function(e){var t=a(e);if(!(t.byteLength>=3&&65496===t.getUint16(0,!1)&&255===t.getUint8(2)))return null;var n=function(){for(var e=new Set([65499,65476,65484,65501,65534]),t=65504;t<65520;++t)e.add(t);var n=new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502]);return{tableMarkers:e,sofMarkers:n}}(),r=n.tableMarkers,i=n.sofMarkers,o=2;for(;o+9=10&&1195984440===t.getUint32(0,!1)))return null;return{mimeType:"image/gif",width:t.getUint16(6,!0),height:t.getUint16(8,!0)}}(t)||function(e){var t=a(e);if(!(t.byteLength>=14&&16973===t.getUint16(0,!1)&&t.getUint32(2,!0)===t.byteLength))return null;return{mimeType:"image/bmp",width:t.getUint32(18,!0),height:t.getUint32(22,!0)}}(t)}function a(e){if(e instanceof DataView)return e;if(ArrayBuffer.isView(e))return new DataView(e.buffer);if(e instanceof ArrayBuffer)return new DataView(e);throw new Error("toDataView")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var a=n(1430);t.Motion=r(a);var i=n(1432);t.StaggeredMotion=r(i);var o=n(1433);t.TransitionMotion=r(o);var l=n(1435);t.spring=r(l);var u=n(897);t.presets=r(u);var s=n(391);t.stripStyle=r(s);var c=n(1436);t.reorderKeys=r(c)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(73);function a(e,t){if("string"!=typeof t)return t;var n=Number(t);if(!isNaN(n))return n;var a=e[t=t.replace(/^.*\./,"")];return Object(r.a)(void 0!==a,"Accessing undefined constant GL.".concat(t)),a}function i(e,t){for(var n in t=Number(t),e)if(e[n]===t)return"GL.".concat(n);return String(t)}},,function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.CURRENT_VERSION=t.VERSIONS=void 0;var a=(0,r(n(155)).default)({v0:null,v1:null});t.VERSIONS=a;var i=a.v1;t.CURRENT_VERSION=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.media=void 0;var a,i,o,l=r(n(16)),u=n(15),s={palm:588,desk:768},c={palm:function(){return(0,u.css)(a||(a=(0,l.default)(["\n @media (max-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).palm}),u.css.apply(void 0,arguments))},portable:function(){return(0,u.css)(i||(i=(0,l.default)(["\n @media (max-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).desk}),u.css.apply(void 0,arguments))},desk:function(){return(0,u.css)(o||(o=(0,l.default)(["\n @media (min-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).desk+1}),u.css.apply(void 0,arguments))}};t.media=c},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=k;var i,o,l,u=r(n(5)),s=r(n(7)),c=r(n(17)),d=r(n(9)),f=r(n(10)),p=r(n(8)),h=r(n(4)),m=r(n(16)),g=a(n(0)),v=n(115),y=n(68),b=r(n(1)),A=r(n(15)),_=r(n(893)),O=r(n(535)),E=n(40),x=n(75),M=n(536);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0?p.default.createElement("div",{className:y.listSection},n.map((function(t,n){return p.default.createElement("div",{className:(0,m.default)(y.listItem,{hover:e.props.selectionIndex===n,fixed:!0}),key:"".concat(a(t),"_").concat(n),onMouseDown:function(n){return e._onClick(t,n)},onClick:function(n){return e._onClick(t,n)}},p.default.createElement(e.props.customListItemComponent,{value:t,displayOption:a}))}))):null,this.props.options.map((function(t,n){return p.default.createElement("div",{className:(0,m.default)(y.listItem,{hover:e.props.selectionIndex===n+i}),key:"".concat(a(t),"_").concat(n),onMouseDown:function(n){return e._onClick(t,n)},onClick:function(n){return e._onClick(t,n)}},p.default.createElement(e.props.customListItemComponent,{value:t,displayOption:a}))})))}}]),n}(p.Component);t.default=O,(0,d.default)(O,"propTypes",{options:h.default.arrayOf(h.default.any),allowCustomValues:h.default.number,customClasses:h.default.object,customValues:h.default.arrayOf(h.default.any),customListItemComponent:h.default.oneOfType([h.default.element,h.default.func]),customListHeaderComponent:h.default.oneOfType([h.default.element,h.default.func]),selectionIndex:h.default.number,onOptionSelected:h.default.func,displayOption:h.default.func.isRequired,defaultClassNames:h.default.bool,areResultsTruncated:h.default.bool,resultsTruncatedMessage:h.default.string,listItemComponent:h.default.func}),(0,d.default)(O,"defaultProps",{customClasses:{},customListItemComponent:A,customListHeaderComponent:null,allowCustomValues:0,customValues:[],displayOption:b,onOptionSelected:function(){},defaultClassNames:!0,selectionIndex:null})},function(e,t,n){var r=n(334),a=n(1470),i=n(1471),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(1496),a=n(1499);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var i,o=r(n(5)),l=r(n(7)),u=r(n(9)),s=r(n(10)),c=r(n(8)),d=r(n(4)),f=r(n(16)),p=a(n(0)),h=r(n(1)),m=r(n(49)),g=r(n(15)),v=n(51),y=n(40);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 n,r=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var A=g.default.div(i||(i=(0,f.default)(["\n margin-left: ","px;\n display: flex;\n align-items: center;\n color: ",";\n\n :hover {\n cursor: pointer;\n color: ",";\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.3;\n }\n"])),(function(e){return e.flush?0:8}),(function(e){return e.active?e.theme.panelHeaderIconActive:e.theme.panelHeaderIcon}),(function(e){return e.hoverColor?e.theme[e.hoverColor]:e.theme.panelHeaderIconHover}));function _(){var e=function(e){(0,u.default)(n,e);var t=b(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.onClick,n=e.tooltip,r=e.id,a=e.active,i=e.flush,o=e.hoverColor,l=e.tooltipType,u=e.disabled,s=e.className;return p.default.createElement(A,{className:(0,m.default)("panel--header__action",(0,d.default)({disabled:u},s,s)),active:a,hoverColor:o,flush:i},p.default.createElement(this.props.IconComponent,{"data-tip":!0,"data-for":"".concat(n,"_").concat(r),height:"16px",onClick:t}),n?p.default.createElement(y.Tooltip,{id:"".concat(n,"_").concat(r),effect:"solid",delayShow:500,type:l},p.default.createElement("span",null,p.default.createElement(v.FormattedMessage,{id:n}))):null)}}]),n}(p.Component);return(0,d.default)(e,"propTypes",{id:h.default.string,flush:h.default.bool,tooltip:h.default.string,onClick:h.default.func,active:h.default.bool,disabled:h.default.bool,hoverColor:h.default.string,className:h.default.string,tooltipType:h.default.string}),(0,d.default)(e,"defaultProps",{onClick:function(){},hoverColor:null,active:!1}),e}_.deps=[]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=n(1586),o=n(51);var l=function(){var e=a.default.memo((function(e){var t=e.id,n=e.message;return a.default.createElement(i.Tooltip,{id:t,place:"left",effect:"solid"},a.default.createElement("span",null,a.default.createElement(o.FormattedMessage,{id:n})))}));return e.displayName="MapControlTooltip",e};t.default=l},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.CURRENT_VERSION=t.VERSIONS=void 0;var a=(0,r(n(155)).default)({v0:null,v1:null});t.VERSIONS=a;var i=a.v1;t.CURRENT_VERSION=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.media=void 0;var a,i,o,l=r(n(16)),u=n(15),s={palm:588,desk:768},c={palm:function(){return(0,u.css)(a||(a=(0,l.default)(["\n @media (max-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).palm}),u.css.apply(void 0,arguments))},portable:function(){return(0,u.css)(i||(i=(0,l.default)(["\n @media (max-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).desk}),u.css.apply(void 0,arguments))},desk:function(){return(0,u.css)(o||(o=(0,l.default)(["\n @media (min-width: ","px) {\n ",";\n }\n "])),(function(e){return(e.theme.breakPoints||s).desk+1}),u.css.apply(void 0,arguments))}};t.media=c},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=k;var i,o,l,u=r(n(5)),s=r(n(7)),c=r(n(17)),d=r(n(9)),f=r(n(10)),p=r(n(8)),h=r(n(4)),m=r(n(16)),g=a(n(0)),v=n(115),y=n(68),b=r(n(1)),A=r(n(15)),_=r(n(1016)),O=r(n(593)),E=n(42),x=n(76),M=n(594);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0?p.default.createElement("div",{className:y.listSection},n.map((function(t,n){return p.default.createElement("div",{className:(0,m.default)(y.listItem,{hover:e.props.selectionIndex===n,fixed:!0}),key:"".concat(a(t),"_").concat(n),onMouseDown:function(n){return e._onClick(t,n)},onClick:function(n){return e._onClick(t,n)}},p.default.createElement(e.props.customListItemComponent,{value:t,displayOption:a}))}))):null,this.props.options.map((function(t,n){return p.default.createElement("div",{className:(0,m.default)(y.listItem,{hover:e.props.selectionIndex===n+i}),key:"".concat(a(t),"_").concat(n),onMouseDown:function(n){return e._onClick(t,n)},onClick:function(n){return e._onClick(t,n)}},p.default.createElement(e.props.customListItemComponent,{value:t,displayOption:a}))})))}}]),n}(p.Component);t.default=O,(0,d.default)(O,"propTypes",{options:h.default.arrayOf(h.default.any),allowCustomValues:h.default.number,customClasses:h.default.object,customValues:h.default.arrayOf(h.default.any),customListItemComponent:h.default.oneOfType([h.default.element,h.default.func]),customListHeaderComponent:h.default.oneOfType([h.default.element,h.default.func]),selectionIndex:h.default.number,onOptionSelected:h.default.func,displayOption:h.default.func.isRequired,defaultClassNames:h.default.bool,areResultsTruncated:h.default.bool,resultsTruncatedMessage:h.default.string,listItemComponent:h.default.func}),(0,d.default)(O,"defaultProps",{customClasses:{},customListItemComponent:A,customListHeaderComponent:null,allowCustomValues:0,customValues:[],displayOption:b,onOptionSelected:function(){},defaultClassNames:!0,selectionIndex:null})},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var i,o=r(n(5)),l=r(n(7)),u=r(n(9)),s=r(n(10)),c=r(n(8)),d=r(n(4)),f=r(n(16)),p=a(n(0)),h=r(n(1)),m=r(n(49)),g=r(n(15)),v=n(52),y=n(42);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 n,r=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var A=g.default.div(i||(i=(0,f.default)(["\n margin-left: ","px;\n display: flex;\n align-items: center;\n color: ",";\n\n :hover {\n cursor: pointer;\n color: ",";\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.3;\n }\n"])),(function(e){return e.flush?0:8}),(function(e){return e.active?e.theme.panelHeaderIconActive:e.theme.panelHeaderIcon}),(function(e){return e.hoverColor?e.theme[e.hoverColor]:e.theme.panelHeaderIconHover}));function _(){var e=function(e){(0,u.default)(n,e);var t=b(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,l.default)(n,[{key:"render",value:function(){var e=this.props,t=e.onClick,n=e.tooltip,r=e.id,a=e.active,i=e.flush,o=e.hoverColor,l=e.tooltipType,u=e.disabled,s=e.className;return p.default.createElement(A,{className:(0,m.default)("panel--header__action",(0,d.default)({disabled:u},s,s)),active:a,hoverColor:o,flush:i},p.default.createElement(this.props.IconComponent,{"data-tip":!0,"data-for":"".concat(n,"_").concat(r),height:"16px",onClick:t}),n?p.default.createElement(y.Tooltip,{id:"".concat(n,"_").concat(r),effect:"solid",delayShow:500,type:l},p.default.createElement("span",null,p.default.createElement(v.FormattedMessage,{id:n}))):null)}}]),n}(p.Component);return(0,d.default)(e,"propTypes",{id:h.default.string,flush:h.default.bool,tooltip:h.default.string,onClick:h.default.func,active:h.default.bool,disabled:h.default.bool,hoverColor:h.default.string,className:h.default.string,tooltipType:h.default.string}),(0,d.default)(e,"defaultProps",{onClick:function(){},hoverColor:null,active:!1}),e}_.deps=[]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=n(591),o=n(52);var l=function(){var e=a.default.memo((function(e){var t=e.id,n=e.message;return a.default.createElement(i.Tooltip,{id:t,place:"left",effect:"solid"},a.default.createElement("span",null,a.default.createElement(o.FormattedMessage,{id:n})))}));return e.displayName="MapControlTooltip",e};t.default=l},function(e,t){e.exports=function(e,t,n,r){var a,i,o=e.length,l=0;t=t<0?-t>o?0:o+t:t>o?o:t;if(n=n>0?n:0,r.length<1e4)return(i=Array.from(r)).unshift(t,n),[].splice.apply(e,i);a=[].splice.apply(e,[t,n]);for(;l=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=-90&&r<=90,"invalid latitude");var a=r*k;return[512*(n*k+L)/(2*L),512*(L+Math.log(Math.tan(P+.5*a)))/(2*L)]}function F(e){var t=Object(_.a)(e,2),n=t[0],r=t[1],a=n/512*(2*L)-L,i=2*(Math.atan(Math.exp(r/512*(2*L)-L))-P);return[a*D,i*D]}function N(e){var t=e.latitude,n=e.longitude,r=e.highPrecision,a=void 0!==r&&r;C(Number.isFinite(t)&&Number.isFinite(n));var i={},o=Math.cos(t*k),l=512/360/o,u=512/4003e4/o;if(i.unitsPerMeter=[u,u,u],i.metersPerUnit=[1/u,1/u,1/u],i.unitsPerDegree=[512/360,l,u],i.degreesPerUnit=[.703125,1/l,1/u],a){var s=k*Math.tan(t*k)/o,c=512/360*s/2,d=512/4003e4*s,f=d/l*u;i.unitsPerDegree2=[0,c,d],i.unitsPerMeter2=[f,0,f]}return i}function B(e){var t=e.height,n=e.pitch,r=e.bearing,a=e.altitude,i=e.scale,o=e.center,l=void 0===o?null:o,u=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return w.p(u,u,[0,0,-a]),w.l(u,u,-n*k),w.n(u,u,r*k),i/=t,w.o(u,u,[i,i,i]),l&&w.p(u,u,T.k([],l)),u}function z(e){var t=e.width,n=e.height,r=e.pitch,a=function(e){var t=e.width,n=e.height,r=e.altitude,a=void 0===r?1.5:r,i=e.pitch,o=void 0===i?0:i,l=e.nearZMultiplier,u=void 0===l?1:l,s=e.farZMultiplier,c=void 0===s?1:s,d=o*k,f=Math.atan(.5/a),p=Math.sin(f)*a/Math.sin(Math.min(Math.max(Math.PI/2-d-f,.01),Math.PI-.01));return{fov:2*f,aspect:t/n,focalDistance:a,near:u,far:(Math.sin(d)*p+a)*c}}({width:t,height:n,altitude:e.altitude,pitch:r,nearZMultiplier:e.nearZMultiplier,farZMultiplier:e.farZMultiplier}),i=a.fov,o=a.aspect,l=a.near,u=a.far;return w.j([],i,o,l,u)}function U(e,t){var n=Object(_.a)(e,3),r=n[0],a=n[1],i=n[2],o=void 0===i?0:i;return C(Number.isFinite(r)&&Number.isFinite(a)&&Number.isFinite(o)),E(t,[r,a,o,1])}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Object(_.a)(e,3),a=r[0],i=r[1],o=r[2];if(C(Number.isFinite(a)&&Number.isFinite(i),"invalid pixel coordinate"),Number.isFinite(o)){var l=E(t,[a,i,o,1]);return l}var u=E(t,[a,i,0,1]),s=E(t,[a,i,1,1]),c=u[2],d=s[2],f=c===d?0:((n||0)-c)/(d-c);return S.c([],u,s,f)}function H(e){var t=e.width,n=e.height,r=e.bounds,a=e.minExtent,i=void 0===a?0:a,o=e.maxZoom,l=void 0===o?24:o,u=e.padding,s=void 0===u?0:u,c=e.offset,d=void 0===c?[0,0]:c,f=Object(_.a)(r,2),p=Object(_.a)(f[0],2),h=p[0],m=p[1],g=Object(_.a)(f[1],2),v=g[0],y=g[1];if(Number.isFinite(s)){s={top:s,bottom:s,left:s,right:s}}else C(Number.isFinite(s.top)&&Number.isFinite(s.bottom)&&Number.isFinite(s.left)&&Number.isFinite(s.right));var b=new q({width:t,height:n,longitude:0,latitude:0,zoom:0}),A=b.project([h,y]),O=b.project([v,m]),E=[Math.max(Math.abs(O[0]-A[0]),i),Math.max(Math.abs(O[1]-A[1]),i)],x=[t-s.left-s.right-2*Math.abs(d[0]),n-s.top-s.bottom-2*Math.abs(d[1])];C(x[0]>0&&x[1]>0);var M=x[0]/E[0],w=x[1]/E[1],S=(s.right-s.left)/2/M,T=(s.bottom-s.top)/2/w,L=[(O[0]+A[0])/2+S,(O[1]+A[1])/2+T],P=b.unproject(L),k=Math.min(l,b.zoom+Math.log2(Math.abs(Math.min(M,w))));return C(Number.isFinite(k)),{longitude:P[0],latitude:P[1],zoom:k}}var Y=Math.PI/180;function W(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=e.width,i=e.height,o=e.unproject,l={targetZ:r},u=o([0,i],l),s=o([a,i],l),c=Math.atan(.5/e.altitude),d=(90-e.pitch)*Y;return c>d-.01?(t=G(e,0,r),n=G(e,a,r)):(t=o([0,0],l),n=o([a,0],l)),[u,s,n,t]}function G(e,t,n){var r=e.pixelUnprojectionMatrix,a=E(r,[t,0,1,1]),i=E(r,[t,e.height,1,1]),o=(n*e.distanceScales.unitsPerMeter[2]-a[2])/(i[2]-a[2]),l=F(S.c([],a,i,o));return l[2]=n,l}var q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:1,height:1},n=t.width,r=t.height,i=t.latitude,o=void 0===i?0:i,l=t.longitude,u=void 0===l?0:l,s=t.zoom,c=void 0===s?0:s,d=t.pitch,f=void 0===d?0:d,p=t.bearing,h=void 0===p?0:p,m=t.altitude,g=void 0===m?1.5:m,v=t.nearZMultiplier,y=void 0===v?.02:v,b=t.farZMultiplier,A=void 0===b?1.01:b;Object(a.a)(this,e),n=n||1,r=r||1;var _=R(c);g=Math.max(.75,g);var O=I([u,o]);O[2]=0,this.projectionMatrix=z({width:n,height:r,pitch:f,altitude:g,nearZMultiplier:y,farZMultiplier:A}),this.viewMatrix=B({height:r,scale:_,center:O,pitch:f,bearing:h,altitude:g}),this.width=n,this.height=r,this.scale=_,this.latitude=o,this.longitude=u,this.zoom=c,this.pitch=f,this.bearing=h,this.altitude=g,this.center=O,this.distanceScales=N(this),this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}return Object(o.a)(e,[{key:"_initMatrices",value:function(){var e=this.width,t=this.height,n=this.projectionMatrix,r=this.viewMatrix,a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];w.h(a,a,n),w.h(a,a,r),this.viewProjectionMatrix=a;var i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];w.o(i,i,[e/2,-t/2,1]),w.p(i,i,[1,-1,0]),w.h(i,i,a);var o=w.f([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],i);if(!o)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=i,this.pixelUnprojectionMatrix=o}},{key:"equals",value:function(t){return t instanceof e&&(t.width===this.width&&t.height===this.height&&w.b(t.projectionMatrix,this.projectionMatrix)&&w.b(t.viewMatrix,this.viewMatrix))}},{key:"project",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,a=this.projectPosition(e),i=U(a,this.pixelProjectionMatrix),o=Object(_.a)(i,2),l=o[0],u=o[1],s=r?u:this.height-u;return 2===e.length?[l,s]:[l,s,i[2]]}},{key:"unproject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.topLeft,r=void 0===n||n,a=t.targetZ,i=void 0===a?void 0:a,o=Object(_.a)(e,3),l=o[0],u=o[1],s=o[2],c=r?u:this.height-u,d=i&&i*this.distanceScales.unitsPerMeter[2],f=V([l,c,s],this.pixelUnprojectionMatrix,d),p=this.unprojectPosition(f),h=Object(_.a)(p,3),m=h[0],g=h[1],v=h[2];return Number.isFinite(s)?[m,g,v]:Number.isFinite(i)?[m,g,i]:[m,g]}},{key:"projectPosition",value:function(e){var t=I(e),n=Object(_.a)(t,2);return[n[0],n[1],(e[2]||0)*this.distanceScales.unitsPerMeter[2]]}},{key:"unprojectPosition",value:function(e){var t=F(e),n=Object(_.a)(t,2);return[n[0],n[1],(e[2]||0)*this.distanceScales.metersPerUnit[2]]}},{key:"projectFlat",value:function(e){return I(e)}},{key:"unprojectFlat",value:function(e){return F(e)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=V(e.pos,this.pixelUnprojectionMatrix),r=I(t),a=S.a([],r,S.d([],n));return F(S.a([],this.center,a))}},{key:"getLocationAtPoint",value:function(e){var t=e.lngLat,n=e.pos;return this.getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"fitBounds",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,a=this.height,i=H(Object.assign({width:r,height:a,bounds:t},n)),o=i.longitude,l=i.latitude,u=i.zoom;return new e({width:r,height:a,longitude:o,latitude:l,zoom:u})}},{key:"getBounds",value:function(e){var t=this.getBoundingRegion(e),n=Math.min.apply(Math,Object(A.a)(t.map((function(e){return e[0]})))),r=Math.max.apply(Math,Object(A.a)(t.map((function(e){return e[0]}))));return[[n,Math.min.apply(Math,Object(A.a)(t.map((function(e){return e[1]}))))],[r,Math.max.apply(Math,Object(A.a)(t.map((function(e){return e[1]}))))]]}},{key:"getBoundingRegion",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return W(this,e.z||0)}}]),e}();function X(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n180&&(n=n<0?n+360:n-360),n}function he(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(this,n),e=t.call(this),Object(c.a)(Object(i.a)(e),"speed",void 0),Object(c.a)(Object(i.a)(e),"propNames",ve),Object(c.a)(Object(i.a)(e),"props",void 0),e.props=Object.assign({},Ae,r),e}return Object(o.a)(n,[{key:"initializeProps",value:function(e,t){var n,r={},a={},i=he(ye);try{for(i.s();!(n=i.n()).done;){var o=n.value,l=e[o],u=t[o];le(fe(l)&&fe(u),"".concat(o," must be supplied for transition")),r[o]=l,a[o]=pe(o,l,u)}}catch(e){i.e(e)}finally{i.f()}var s,c=he(be);try{for(c.s();!(s=c.n()).done;){var d=s.value,f=e[d]||0,p=t[d]||0;r[d]=f,a[d]=pe(d,f,p)}}catch(e){c.e(e)}finally{c.f()}return{start:r,end:a}}},{key:"interpolateProps",value:function(e,t,n){var r,a=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={},i=Q(e,t,r),o=i.startZoom,l=i.startCenterXY,u=i.uDelta,s=i.w0,c=i.u1,d=i.S,f=i.rho,p=i.rho2,h=i.r0;if(c<.01){var m,g=X(K);try{for(g.s();!(m=g.n()).done;){var v=m.value,y=e[v],b=t[v];a[v]=M(y,b,n)}}catch(e){g.e(e)}finally{g.f()}return a}var A=n*d,_=Math.cosh(h)/Math.cosh(h+f*A),O=s*((Math.cosh(h)*Math.tanh(h+f*A)-Math.sinh(h))/p)/c,E=1/_,x=o+j(E),w=S.e([],u,O);S.a(w,w,l);var T=F(w);return a.longitude=T[0],a.latitude=T[1],a.zoom=x,a}(e,t,n,this.props),i=he(be);try{for(i.s();!(r=i.n()).done;){var o=r.value;a[o]=oe(e[o],t[o],n)}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"getDuration",value:function(e,t){var n=t.transitionDuration;return"auto"===n&&(n=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r=Object.assign({},J,r),i=a.screenSpeed,o=a.speed,l=a.maxDuration,u=Q(e,t,r),s=u.S,c=u.rho,d=1e3*s;return n=Number.isFinite(i)?d/(i/c):d/o,Number.isFinite(l)&&n>l?0:n}(e,t,this.props)),n}}]),n}(ce);function Oe(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(this,n),e=t.call(this),Object(c.a)(Object(i.a)(e),"around",void 0),Array.isArray(r)&&(r={transitionProps:r}),e.propNames=r.transitionProps||Me,r.around&&(e.around=r.around),e}return Object(o.a)(n,[{key:"initializeProps",value:function(e,t){var n={},r={};if(this.around){n.around=this.around;var a=new q(e).unproject(this.around);Object.assign(r,t,{around:new q(t).project(a),aroundLngLat:a})}var i,o=Oe(this.propNames);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=e[l],s=t[l];le(fe(u)&&fe(s),"".concat(l," must be supplied for transition")),n[l]=u,r[l]=pe(l,u,s)}}catch(e){o.e(e)}finally{o.f()}return{start:n,end:r}}},{key:"interpolateProps",value:function(e,t,n){var r,a={},i=Oe(this.propNames);try{for(i.s();!(r=i.n()).done;){var o=r.value;a[o]=oe(e[o],t[o],n)}}catch(e){i.e(e)}finally{i.f()}if(t.around){var l=new q(Object.assign({},t,a)).getMapCenterByLngLatPosition({lngLat:t.aroundLngLat,pos:oe(e.around,t.around,n)}),u=Object(_.a)(l,2),s=u[0],c=u[1];a.longitude=s,a.latitude=c}return a}}]),n}(ce),Se={minZoom:0,maxZoom:24,minPitch:0,maxPitch:60},Te=0,Ce=0,Le=1.5,Pe=function(){function e(t){var n=t.width,r=t.height,i=t.latitude,o=t.longitude,l=t.zoom,u=t.bearing,s=void 0===u?Ce:u,d=t.pitch,f=void 0===d?Te:d,p=t.altitude,h=void 0===p?Le:p,m=t.maxZoom,g=void 0===m?Se.maxZoom:m,v=t.minZoom,y=void 0===v?Se.minZoom:v,b=t.maxPitch,A=void 0===b?Se.maxPitch:b,_=t.minPitch,O=void 0===_?Se.minPitch:_,E=t.transitionDuration,x=t.transitionEasing,M=t.transitionInterpolator,w=t.transitionInterruption,S=t.startPanLngLat,T=t.startZoomLngLat,C=t.startBearing,L=t.startPitch,P=t.startZoom;Object(a.a)(this,e),Object(c.a)(this,"_viewportProps",void 0),Object(c.a)(this,"_interactiveState",void 0),le(Number.isFinite(n),"`width` must be supplied"),le(Number.isFinite(r),"`height` must be supplied"),le(Number.isFinite(o),"`longitude` must be supplied"),le(Number.isFinite(i),"`latitude` must be supplied"),le(Number.isFinite(l),"`zoom` must be supplied"),this._viewportProps=this._applyConstraints({width:n,height:r,latitude:i,longitude:o,zoom:l,bearing:s,pitch:f,altitude:h,maxZoom:g,minZoom:y,maxPitch:A,minPitch:O,transitionDuration:E,transitionEasing:x,transitionInterpolator:M,transitionInterruption:w}),this._interactiveState={startPanLngLat:S,startZoomLngLat:T,startBearing:C,startPitch:L,startZoom:P}}return Object(o.a)(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startPanLngLat:this._unproject(t)})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,r=this._interactiveState.startPanLngLat||this._unproject(n);if(!r)return this;var a=this._calculateNewLngLat({startPanLngLat:r,pos:t}),i=Object(_.a)(a,2),o=i[0],l=i[1];return this._getUpdatedMapState({longitude:o,latitude:l})}},{key:"panEnd",value:function(){return this._getUpdatedMapState({startPanLngLat:null})}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedMapState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=void 0===t?0:t,r=e.deltaScaleY,a=void 0===r?0:r,i=this._interactiveState,o=i.startBearing,l=i.startPitch;if(!Number.isFinite(o)||!Number.isFinite(l))return this;var u=this._calculateNewPitchAndBearing({deltaScaleX:n,deltaScaleY:a,startBearing:o||0,startPitch:l||0}),s=u.pitch,c=u.bearing;return this._getUpdatedMapState({bearing:c,pitch:s})}},{key:"rotateEnd",value:function(){return this._getUpdatedMapState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedMapState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,r=e.scale;le(r>0,"`scale` must be a positive number");var a=this._interactiveState,i=a.startZoom,o=a.startZoomLngLat;Number.isFinite(i)||(i=this._viewportProps.zoom,o=this._unproject(n)||this._unproject(t)),le(o,"`startZoomLngLat` prop is required for zoom behavior to calculate where to position the map.");var l=this._calculateNewZoom({scale:r,startZoom:i||0}),u=new q(Object.assign({},this._viewportProps,{zoom:l})).getMapCenterByLngLatPosition({lngLat:o,pos:t}),s=Object(_.a)(u,2),c=s[0],d=s[1];return this._getUpdatedMapState({zoom:l,longitude:c,latitude:d})}},{key:"zoomEnd",value:function(){return this._getUpdatedMapState({startZoomLngLat:null,startZoom:null})}},{key:"_getUpdatedMapState",value:function(t){return new e(Object.assign({},this._viewportProps,this._interactiveState,t))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=ie(r,n,t);var a=e.maxPitch,i=e.minPitch,o=e.pitch;return e.pitch=ie(o,i,a),Object.assign(e,function(e){var t=e.width,n=e.height,r=e.longitude,a=e.latitude,i=e.zoom,o=e.pitch,l=void 0===o?0:o,u=e.bearing,s=void 0===u?0:u;(r<-180||r>180)&&(r=x(r+180,360)-180),(s<-180||s>180)&&(s=x(s+180,360)-180);var c=new q({width:t,height:n,longitude:r,latitude:a,zoom:i}),d=c.project([r,85.05113])[1],f=c.project([r,-85.05113])[1],p=0;return f-d0?p=d:f0?u=a+n*(l-a):n<0&&(u=a-n*(o-a)),{pitch:u,bearing:r+180*t}}}]),e}();function ke(e){return e[0].toLowerCase()+e.slice(1)}var De=Object(d.createContext)({viewport:null,map:null,mapContainer:null,onViewportChange:null,onViewStateChange:null,eventManager:null,isDragging:!1});function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return e._map.queryRenderedFeatures(t,n)})),Object(c.a)(Object(i.a)(e),"_mapboxMapError",(function(t){401!==(t.error&&t.error.status||t.status)||e.state.accessTokenInvalid||(console.error(Fe),e.setState({accessTokenInvalid:!0})),e.props.onError(t)})),e}return Object(o.a)(n,[{key:"componentDidMount",value:function(){if(n.supported()){var e=this.props.mapStyle;this._mapbox=new ee.a(Object.assign({},this.props,{mapboxgl:ne.a,width:this._width,height:this._height,container:this._mapboxMapRef.current,onError:this._mapboxMapError,mapStyle:b(e)})),this._map=this._mapbox.getMap()}}},{key:"componentDidUpdate",value:function(e){this._mapbox&&(this._updateMapStyle(e,this.props),this._updateMapProps(this.props))}},{key:"componentWillUnmount",value:function(){this._mapbox&&(this._mapbox.finalize(),this._mapbox=null,this._map=null)}},{key:"_updateMapSize",value:function(e,t){this._width===e&&this._height===t||(this._width=e,this._height=t,this._updateMapProps(this.props))}},{key:"_updateMapStyle",value:function(e,t){var n=t.mapStyle;n!==e.mapStyle&&n&&this._map.setStyle(b(n),{diff:!this.props.preventStyleDiffing})}},{key:"_updateMapProps",value:function(e){this._mapbox&&this._mapbox.setProps(Object.assign({},e,{width:this._width,height:this._height}))}},{key:"_renderNoTokenWarning",value:function(){if(this.state.accessTokenInvalid&&!this.props.disableTokenWarning){return d.createElement("div",{key:"warning",id:"no-token-warning",style:{position:"absolute",left:0,top:0}},d.createElement("h3",{key:"header"},"NO_TOKEN_WARNING"),d.createElement("div",{key:"text"},"For information on setting up your basemap, read"),d.createElement("a",{key:"link",href:"https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens"},"Note on Map Tokens"))}return null}},{key:"_renderOverlays",value:function(e){var t=this,n=e.width,r=e.height;return this._updateMapSize(n,r),d.createElement(De.Consumer,null,(function(e){var a=je(je({},e),{},{viewport:new q(je(je(je({},t.props),t.props.viewState),{},{width:n,height:r})),map:t._map,mapContainer:e.mapContainer||t._mapContainerRef.current});return d.createElement(De.Provider,{value:a},d.createElement("div",{key:"map-overlays",className:"overlays",style:Ne},t.props.children))}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,r=e.height,a=e.style,i=e.visibilityConstraints,o=Object.assign({position:"relative"},a,{width:n,height:r}),l=this.props.visible&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;for(var n in t){var r=n.slice(0,3),a=ke(n.slice(3));if("min"===r&&e[a]t[n])return!1}return!0}(this.props.viewState||this.props,i),u=Object.assign({},Ne,{visibility:l?"inherit":"hidden"});return d.createElement("div",{key:"map-container",style:o,ref:this._mapContainerRef},d.createElement("div",{key:"map-mapbox",ref:this._mapboxMapRef,style:u,className:t}),d.createElement($.a,{key:"autosizer",onResize:this.props.onResize},this._renderOverlays.bind(this)),this._renderNoTokenWarning())}}],[{key:"supported",value:function(){return ne.a&&ne.a.supported()}}]),n}(d.PureComponent);Object(c.a)(Ue,"propTypes",Be),Object(c.a)(Ue,"defaultProps",ze);var Ve=function(){};var He={BREAK:1,SNAP_TO_END:2,IGNORE:3,UPDATE:4},Ye={transitionDuration:0,transitionEasing:function(e){return e},transitionInterpolator:new we,transitionInterruption:He.BREAK,onTransitionStart:Ve,onTransitionInterrupt:Ve,onTransitionEnd:Ve,onViewportChange:Ve,onStateChange:Ve},We=function(){function e(t,n){var r=this;Object(a.a)(this,e),Object(c.a)(this,"props",void 0),Object(c.a)(this,"state",void 0),Object(c.a)(this,"time",void 0),Object(c.a)(this,"_animationFrame",null),Object(c.a)(this,"_onTransitionFrame",(function(){r._animationFrame=requestAnimationFrame(r._onTransitionFrame),r._updateViewport()})),t&&(this.props=t),this.time=n||Date.now}return Object(o.a)(e,[{key:"getViewportInTransition",value:function(){return this._animationFrame?this.state.propsInTransition:null}},{key:"processViewportChange",value:function(e){var t=this.props;if(this.props=e,this._shouldIgnoreViewportChange(t,e))return!1;if(this._isTransitionEnabled(e)){var n=Object.assign({},t),r=Object.assign({},e);if(this._isTransitionInProgress()&&(t.onTransitionInterrupt(),this.state.interruption===He.SNAP_TO_END?Object.assign(n,this.state.endProps):Object.assign(n,this.state.propsInTransition),this.state.interruption===He.UPDATE)){var a=this.time(),i=(a-this.state.startTime)/this.state.duration;r.transitionDuration=this.state.duration-(a-this.state.startTime),r.transitionEasing=function(e,t){var n=e(t);return function(r){return 1/(1-n)*(e(r*(1-t)+t)-n)}}(this.state.easing,i),r.transitionInterpolator=n.transitionInterpolator}return r.onTransitionStart(),this._triggerTransition(n,r),!0}return this._isTransitionInProgress()&&(t.onTransitionInterrupt(),this._endTransition()),!1}},{key:"_isTransitionInProgress",value:function(){return Boolean(this._animationFrame)}},{key:"_isTransitionEnabled",value:function(e){var t=e.transitionDuration,n=e.transitionInterpolator;return(t>0||"auto"===t)&&Boolean(n)}},{key:"_isUpdateDueToCurrentTransition",value:function(e){return!!this.state.propsInTransition&&this.state.interpolator.arePropsEqual(e,this.state.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(e,t){return!e||(this._isTransitionInProgress()?this.state.interruption===He.IGNORE||this._isUpdateDueToCurrentTransition(t):!this._isTransitionEnabled(t)||t.transitionInterpolator.arePropsEqual(e,t))}},{key:"_triggerTransition",value:function(e,t){le(this._isTransitionEnabled(t)),this._animationFrame&&cancelAnimationFrame(this._animationFrame);var n=t.transitionInterpolator,r=n.getDuration?n.getDuration(e,t):t.transitionDuration;if(0!==r){var a=t.transitionInterpolator.initializeProps(e,t),i={inTransition:!0,isZooming:e.zoom!==t.zoom,isPanning:e.longitude!==t.longitude||e.latitude!==t.latitude,isRotating:e.bearing!==t.bearing||e.pitch!==t.pitch};this.state={duration:r,easing:t.transitionEasing,interpolator:t.transitionInterpolator,interruption:t.transitionInterruption,startTime:this.time(),startProps:a.start,endProps:a.end,animation:null,propsInTransition:{},interactionState:i},this._onTransitionFrame(),this.props.onStateChange(i)}}},{key:"_endTransition",value:function(){this._animationFrame&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=null),this.props.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1})}},{key:"_updateViewport",value:function(){var e=this.time(),t=this.state,n=t.startTime,r=t.duration,a=t.easing,i=t.interpolator,o=t.startProps,l=t.endProps,u=!1,s=(e-n)/r;s>=1&&(s=1,u=!0),s=a(s);var c=i.interpolateProps(o,l,s),d=new Pe(Object.assign({},this.props,c));this.state.propsInTransition=d.getViewportProps(),this.props.onViewportChange(this.state.propsInTransition,this.state.interactionState,this.props),u&&(this._endTransition(),this.props.onTransitionEnd())}}]),e}();Object(c.a)(We,"defaultProps",Ye);var Ge=n(348);var qe={transitionDuration:0},Xe={transitionDuration:300,transitionEasing:function(e){return e},transitionInterpolator:new we,transitionInterruption:He.BREAK},Ze=["wheel"],Ke=["panstart","panmove","panend"],Je=["pinchstart","pinchmove","pinchend","pinchcancel"],Qe=["doubletap"],$e=["keydown"],et=function(){function e(){var t=this;Object(a.a)(this,e),Object(c.a)(this,"events",[]),Object(c.a)(this,"mapState",void 0),Object(c.a)(this,"onViewportChange",void 0),Object(c.a)(this,"onStateChange",void 0),Object(c.a)(this,"mapStateProps",void 0),Object(c.a)(this,"eventManager",void 0),Object(c.a)(this,"scrollZoom",!0),Object(c.a)(this,"dragPan",!0),Object(c.a)(this,"dragRotate",!0),Object(c.a)(this,"doubleClickZoom",!0),Object(c.a)(this,"touchZoom",!0),Object(c.a)(this,"touchRotate",!1),Object(c.a)(this,"keyboard",!0),Object(c.a)(this,"_state",{isDragging:!1}),Object(c.a)(this,"_events",{}),Object(c.a)(this,"_transitionManager",new We),Object(c.a)(this,"setState",(function(e){Object.assign(t._state,e),t.onStateChange&&t.onStateChange(t._state)})),this.handleEvent=this.handleEvent.bind(this),this._onWheelEnd=function(e,t){var n,r,a,i=function(){return a=null,e.apply(n,r)};return function(){n=this,r=arguments,a&&clearTimeout(a),a=setTimeout(i,t)}}(this._onWheelEnd,100)}return Object(o.a)(e,[{key:"handleEvent",value:function(e){switch(this.mapState=this.getMapState(),e.type){case"panstart":return this._onPanStart(e);case"panmove":return this._onPan(e);case"panend":return this._onPanEnd(e);case"pinchstart":return this._onPinchStart(e);case"pinchmove":return this._onPinch(e);case"pinchcancel":case"pinchend":return this._onPinchEnd(e);case"doubletap":return this._onDoubleTap(e);case"wheel":return this._onWheel(e);case"keydown":return this._onKeyDown(e);default:return!1}}},{key:"getCenter",value:function(e){var t=e.offsetCenter;return[t.x,t.y]}},{key:"isFunctionKeyPressed",value:function(e){var t=e.srcEvent;return Boolean(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},{key:"updateViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.mapState?this.mapState.getViewportProps():{},a=Object.assign({},e.getViewportProps(),t),i=Object.keys(a).some((function(e){return r[e]!==a[e]}));i&&this.onViewportChange(a,n,r),this.setState(Object.assign({},e.getInteractiveState(),n))}},{key:"getMapState",value:function(e){return new Pe(Object.assign({},this.mapStateProps,this._state,e))}},{key:"setOptions",value:function(e){var t=e.onViewportChange,n=e.onStateChange,r=e.eventManager,a=void 0===r?this.eventManager:r,i=e.isInteractive,o=void 0===i||i,l=e.scrollZoom,u=void 0===l?this.scrollZoom:l,s=e.dragPan,c=void 0===s?this.dragPan:s,d=e.dragRotate,f=void 0===d?this.dragRotate:d,p=e.doubleClickZoom,h=void 0===p?this.doubleClickZoom:p,m=e.touchZoom,g=void 0===m?this.touchZoom:m,v=e.touchRotate,y=void 0===v?this.touchRotate:v,b=e.keyboard,A=void 0===b?this.keyboard:b;this.onViewportChange=t,this.onStateChange=n;var _=!this.mapStateProps||this.mapStateProps.height!==e.height;this.mapStateProps=e,_&&this.updateViewport(new Pe(e)),this._transitionManager.processViewportChange(Object.assign({},e,{onStateChange:this.setState})),this.eventManager!==a&&(this.eventManager=a,this._events={},this.toggleEvents(this.events,!0)),this.toggleEvents(Ze,o&&u),this.toggleEvents(Ke,o&&(c||f)),this.toggleEvents(Je,o&&(g||y)),this.toggleEvents(Qe,o&&h),this.toggleEvents($e,o&&A),this.scrollZoom=u,this.dragPan=c,this.dragRotate=f,this.doubleClickZoom=h,this.touchZoom=g,this.touchRotate=y,this.keyboard=A}},{key:"toggleEvents",value:function(e,t){var n=this;this.eventManager&&e.forEach((function(e){n._events[e]!==t&&(n._events[e]=t,t?n.eventManager.on(e,n.handleEvent):n.eventManager.off(e,n.handleEvent))}))}},{key:"_onPanStart",value:function(e){var t=this.getCenter(e),n=this.mapState.panStart({pos:t}).rotateStart({pos:t});return this.updateViewport(n,qe,{isDragging:!0}),!0}},{key:"_onPan",value:function(e){return this.isFunctionKeyPressed(e)||e.rightButton?this._onPanRotate(e):this._onPanMove(e)}},{key:"_onPanEnd",value:function(e){var t=this.mapState.panEnd().rotateEnd();return this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isRotating:!1}),!0}},{key:"_onPanMove",value:function(e){if(!this.dragPan)return!1;var t=this.getCenter(e),n=this.mapState.pan({pos:t});return this.updateViewport(n,qe,{isPanning:!0}),!0}},{key:"_onPanRotate",value:function(e){if(!this.dragRotate)return!1;var t=e.deltaX,n=e.deltaY,r=this.getCenter(e),a=Object(_.a)(r,2)[1],i=a-n,o=this.mapState.getViewportProps(),l=o.width,u=o.height,s=t/l,c=0;n>0?Math.abs(u-i)>5&&(c=n/(i-u)*1.2):n<0&&i>5&&(c=1-a/i),c=Math.min(1,Math.max(-1,c));var d=this.mapState.rotate({deltaScaleX:s,deltaScaleY:c});return this.updateViewport(d,qe,{isRotating:!0}),!0}},{key:"_onWheel",value:function(e){if(!this.scrollZoom)return!1;e.preventDefault();var t=this.getCenter(e),n=e.delta,r=2/(1+Math.exp(-Math.abs(.01*n)));n<0&&0!==r&&(r=1/r);var a=this.mapState.zoom({pos:t,scale:r});return this.updateViewport(a,qe,{isZooming:!0}),this._onWheelEnd(),!0}},{key:"_onWheelEnd",value:function(){this.setState({isZooming:!1})}},{key:"_onPinchStart",value:function(e){var t=this.getCenter(e),n=this.mapState.zoomStart({pos:t}).rotateStart({pos:t});return this._state.startPinchRotation=e.rotation,this.updateViewport(n,qe,{isDragging:!0}),!0}},{key:"_onPinch",value:function(e){if(!this.touchZoom&&!this.touchRotate)return!1;var t=this.mapState;if(this.touchZoom){var n=e.scale,r=this.getCenter(e);t=t.zoom({pos:r,scale:n})}if(this.touchRotate){var a=e.rotation,i=this._state.startPinchRotation;t=t.rotate({deltaScaleX:-(a-i)/180})}return this.updateViewport(t,qe,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),!0}},{key:"_onPinchEnd",value:function(e){var t=this.mapState.zoomEnd().rotateEnd();return this._state.startPinchRotation=0,this.updateViewport(t,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1}),!0}},{key:"_onDoubleTap",value:function(e){if(!this.doubleClickZoom)return!1;var t=this.getCenter(e),n=this.isFunctionKeyPressed(e),r=this.mapState.zoom({pos:t,scale:n?.5:2});return this.updateViewport(r,Object.assign({},Xe,{transitionInterpolator:new we({around:t})}),{isZooming:!0}),!0}},{key:"_onKeyDown",value:function(e){if(!this.keyboard)return!1;var t,n=this.isFunctionKeyPressed(e),r=this.mapStateProps;switch(e.srcEvent.keyCode){case 189:t=n?this.getMapState({zoom:r.zoom-2}):this.getMapState({zoom:r.zoom-1});break;case 187:t=n?this.getMapState({zoom:r.zoom+2}):this.getMapState({zoom:r.zoom+1});break;case 37:t=n?this.getMapState({bearing:r.bearing-15}):this.mapState.pan({pos:[100,0],startPos:[0,0]});break;case 39:t=n?this.getMapState({bearing:r.bearing+15}):this.mapState.pan({pos:[-100,0],startPos:[0,0]});break;case 38:t=n?this.getMapState({pitch:r.pitch+10}):this.mapState.pan({pos:[0,100],startPos:[0,0]});break;case 40:t=n?this.getMapState({pitch:r.pitch-10}):this.mapState.pan({pos:[0,-100],startPos:[0,0]});break;default:return!1}return this.updateViewport(t,Xe)}}]),e}(),tt=[{old:"onChangeViewport",new:"onViewportChange"},{old:"perspectiveEnabled",new:"dragRotate"},{old:"onHoverFeatures",new:"onHover"},{old:"onClickFeatures",new:"onClick"},{old:"touchZoomRotate",new:"touchZoom, touchRotate"},{old:"mapControls",new:"controller"}];function nt(e){return"react-map-gl: `".concat(e,"` is removed.")}function rt(e){return"Use `".concat(e,"` instead.")}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tt.forEach((function(t){if(e.hasOwnProperty(t.old)){var n=nt(t.old);t.new&&(n="".concat(n," ").concat(rt(t.new))),console.warn(n)}}))}function it(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var ot=Object.assign({},Ue.propTypes,{maxZoom:p.a.number,minZoom:p.a.number,maxPitch:p.a.number,minPitch:p.a.number,onViewStateChange:p.a.func,onViewportChange:p.a.func,onInteractionStateChange:p.a.func,transitionDuration:p.a.oneOfType([p.a.number,p.a.string]),transitionInterpolator:p.a.object,transitionInterruption:p.a.number,transitionEasing:p.a.func,onTransitionStart:p.a.func,onTransitionInterrupt:p.a.func,onTransitionEnd:p.a.func,scrollZoom:p.a.bool,dragPan:p.a.bool,dragRotate:p.a.bool,doubleClickZoom:p.a.bool,touchZoom:p.a.bool,touchRotate:p.a.bool,keyboard:p.a.bool,onHover:p.a.func,onClick:p.a.func,onDblClick:p.a.func,onContextMenu:p.a.func,onMouseDown:p.a.func,onMouseMove:p.a.func,onMouseUp:p.a.func,onTouchStart:p.a.func,onTouchMove:p.a.func,onTouchEnd:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseOut:p.a.func,onWheel:p.a.func,touchAction:p.a.string,clickRadius:p.a.number,interactiveLayerIds:p.a.array,getCursor:p.a.func,controller:p.a.instanceOf(et)}),lt=Object.assign({},Ue.defaultProps,Se,We.defaultProps,{onViewStateChange:null,onViewportChange:null,onClick:null,onNativeClick:null,onHover:null,onContextMenu:function(e){return e.preventDefault()},scrollZoom:!0,dragPan:!0,dragRotate:!0,doubleClickZoom:!0,touchZoom:!0,touchRotate:!1,keyboard:!0,touchAction:"none",clickRadius:0,getCursor:function(e){var t=e.isDragging,n=e.isHovering;return t?"grabbing":n?"pointer":"grab"}}),ut=function(e){Object(l.a)(n,e);var t=it(n);function n(e){var r;return Object(a.a)(this,n),r=t.call(this,e),Object(c.a)(Object(i.a)(r),"state",{isLoaded:!1,isDragging:!1,isHovering:!1}),Object(c.a)(Object(i.a)(r),"_controller",void 0),Object(c.a)(Object(i.a)(r),"_eventManager",void 0),Object(c.a)(Object(i.a)(r),"_interactiveContext",void 0),Object(c.a)(Object(i.a)(r),"_width",0),Object(c.a)(Object(i.a)(r),"_height",0),Object(c.a)(Object(i.a)(r),"_eventCanvasRef",Object(d.createRef)()),Object(c.a)(Object(i.a)(r),"_staticMapRef",Object(d.createRef)()),Object(c.a)(Object(i.a)(r),"getMap",(function(){return r._staticMapRef.current?r._staticMapRef.current.getMap():null})),Object(c.a)(Object(i.a)(r),"queryRenderedFeatures",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.getMap();return n&&n.queryRenderedFeatures(e,t)})),Object(c.a)(Object(i.a)(r),"_onInteractionStateChange",(function(e){var t=e.isDragging,n=void 0!==t&&t;n!==r.state.isDragging&&(r._updateInteractiveContext({isDragging:n}),r.setState({isDragging:n}));var a=r.props.onInteractionStateChange;a&&a(e)})),Object(c.a)(Object(i.a)(r),"_onResize",(function(e){var t=e.width,n=e.height;r._width=t,r._height=n,r._setControllerProps(r.props),r.props.onResize({width:t,height:n})})),Object(c.a)(Object(i.a)(r),"_onViewportChange",(function(e,t,n){var a=r.props,i=a.onViewStateChange,o=a.onViewportChange;i&&i({viewState:e,interactionState:t,oldViewState:n}),o&&o(e,t,n)})),Object(c.a)(Object(i.a)(r),"_onLoad",(function(e){r.setState({isLoaded:!0}),r.props.onLoad(e)})),Object(c.a)(Object(i.a)(r),"_onEvent",(function(e,t){var n=r.props[e];n&&n(r._normalizeEvent(t))})),Object(c.a)(Object(i.a)(r),"_onPointerDown",(function(e){switch(e.pointerType){case"touch":r._onEvent("onTouchStart",e);break;default:r._onEvent("onMouseDown",e)}})),Object(c.a)(Object(i.a)(r),"_onPointerUp",(function(e){switch(e.pointerType){case"touch":r._onEvent("onTouchEnd",e);break;default:r._onEvent("onMouseUp",e)}})),Object(c.a)(Object(i.a)(r),"_onPointerMove",(function(e){switch(e.pointerType){case"touch":r._onEvent("onTouchMove",e);break;default:r._onEvent("onMouseMove",e)}if(!r.state.isDragging){var t,n=r.props,a=n.onHover,i=n.interactiveLayerIds;e=r._normalizeEvent(e),r.state.isLoaded&&(i||a)&&(t=r._getFeatures({pos:e.point,radius:r.props.clickRadius})),a&&(e.features=t,a(e));var o=Boolean(i&&t&&t.length>0),l=o&&!r.state.isHovering,u=!o&&r.state.isHovering;l&&r._onEvent("onMouseEnter",e),u&&r._onEvent("onMouseLeave",e),(l||u)&&r.setState({isHovering:o})}})),Object(c.a)(Object(i.a)(r),"_onClick",(function(e){var t=r.props,n=t.onClick,a=t.onNativeClick,i=t.onDblClick,o=t.doubleClickZoom,l=[],u=i||o;switch(e.type){case"anyclick":l.push(a),u||l.push(n);break;case"click":u&&l.push(n)}(l=l.filter(Boolean)).length&&((e=r._normalizeEvent(e)).features=r._getFeatures({pos:e.point,radius:r.props.clickRadius}),l.forEach((function(t){return t(e)})))})),at(e),r._controller=e.controller||new et,r._eventManager=new Ge.EventManager(null,{touchAction:e.touchAction}),r._updateInteractiveContext({isDragging:!1,eventManager:r._eventManager}),r}return Object(o.a)(n,null,[{key:"supported",value:function(){return Ue.supported()}}]),Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this._eventManager,t=this._eventCanvasRef.current;e.setElement(t),e.on({pointerdown:this._onPointerDown,pointermove:this._onPointerMove,pointerup:this._onPointerUp,pointerleave:this._onEvent.bind(this,"onMouseOut"),click:this._onClick,anyclick:this._onClick,dblclick:this._onEvent.bind(this,"onDblClick"),wheel:this._onEvent.bind(this,"onWheel"),contextmenu:this._onEvent.bind(this,"onContextMenu")}),this._setControllerProps(this.props),this._updateInteractiveContext({mapContainer:t})}},{key:"componentDidUpdate",value:function(){this._setControllerProps(this.props)}},{key:"componentWillUnmount",value:function(){this._eventManager.destroy()}},{key:"_setControllerProps",value:function(e){e=Object.assign({},e,e.viewState,{isInteractive:Boolean(e.onViewStateChange||e.onViewportChange),onViewportChange:this._onViewportChange,onStateChange:this._onInteractionStateChange,eventManager:this._eventManager,width:this._width,height:this._height}),this._controller.setOptions(e);var t=this._interactiveContext;t.onViewportChange=e.onViewportChange,t.onViewStateChange=e.onViewStateChange}},{key:"_getFeatures",value:function(e){var t,n=e.pos,r=e.radius,a={},i=this.getMap();if(this.props.interactiveLayerIds&&(a.layers=this.props.interactiveLayerIds),r){var o=r,l=[[n[0]-o,n[1]+o],[n[0]+o,n[1]-o]];t=i&&i.queryRenderedFeatures(l,a)}else t=i&&i.queryRenderedFeatures(n,a);return t}},{key:"_updateInteractiveContext",value:function(e){this._interactiveContext=Object.assign({},this._interactiveContext,e)}},{key:"_normalizeEvent",value:function(e){if(e.lngLat)return e;var t=e.offsetCenter,n=[t.x,t.y],r=new q(Object.assign({},this.props,{width:this._width,height:this._height}));return e.point=n,e.lngLat=r.unproject(n),e}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,a=e.style,i=e.getCursor,o=Object.assign({position:"relative"},a,{width:t,height:n,cursor:i(this.state)});return d.createElement(De.Provider,{value:this._interactiveContext},d.createElement("div",{key:"event-canvas",ref:this._eventCanvasRef,style:o},d.createElement(Ue,Object(r.a)({},this.props,{width:"100%",height:"100%",style:null,onResize:this._onResize,onLoad:this._onLoad,ref:this._staticMapRef}),this.props.children)))}}]),n}(d.PureComponent);Object(c.a)(ut,"propTypes",ot),Object(c.a)(ut,"defaultProps",lt);var st=n(37);function ct(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n prop: ".concat(l));else c.setCoordinates(a.coordinates)}else r._createSource(a)}})),r.id=e.id||"jsx-source-".concat(pt++),r.type=e.type,r}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){var e=this,t=this._map;t&&(t.off("styledata",this._updateSource),requestAnimationFrame((function(){t.style&&t.style._loaded&&t.removeSource(e.id)})))}},{key:"getSource",value:function(){var e=this._map;return e&&e.style&&e.getSource(this.id)}},{key:"_createSource",value:function(e){var t=this._map;t.style&&t.style._loaded&&t.addSource(this.id,e)}},{key:"_render",value:function(e){var t=this;return!this._map&&e.map&&(this._map=e.map,this._map.on("styledata",this._updateSource)),this._updateSource(),d.Children.map(this.props.children,(function(e){return e&&Object(d.cloneElement)(e,{source:t.id})}))}},{key:"render",value:function(){return d.createElement(De.Consumer,null,this._render.bind(this))}}]),n}(d.PureComponent);function mt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function gt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}Object(c.a)(ht,"propTypes",ft);var vt={type:p.a.oneOf(Object.keys({fill:"fill",line:"line",symbol:"symbol",circle:"circle","fill-extrusion":"fill-extrusion",raster:"raster",background:"background",heatmap:"heatmap",hillshade:"hillshade"})).isRequired,id:p.a.string,source:p.a.string,beforeId:p.a.string};var yt=0,bt=function(e){Object(l.a)(n,e);var t=gt(n);function n(e){var r;return Object(a.a)(this,n),r=t.call(this,e),Object(c.a)(Object(i.a)(r),"id",void 0),Object(c.a)(Object(i.a)(r),"type",void 0),Object(c.a)(Object(i.a)(r),"_map",null),Object(c.a)(Object(i.a)(r),"_layerOptions",{}),Object(c.a)(Object(i.a)(r),"_updateLayer",(function(){var e=r._map;if(e){var t=Object(i.a)(r),n=t.props,a=t._layerOptions;if(le(!n.id||n.id===r.id,"layer id changed"),le(n.type===r.type,"layer type changed"),r.getLayer())try{!function(e,t,n,r){var a=n.layout,i=void 0===a?{}:a,o=n.paint,l=void 0===o?{}:o,u=n.filter,s=n.minzoom,c=n.maxzoom,d=n.beforeId,f=mt(n,["layout","paint","filter","minzoom","maxzoom","beforeId"]);if(d!==r.beforeId&&e.moveLayer(t,d),i!==r.layout){for(var p in i)ct(i[p],r.layout[p])||e.setLayoutProperty(t,p,i[p]);for(var h in r.layout)i.hasOwnProperty(h)||e.setLayoutProperty(t,h,void 0)}if(l!==r.paint){for(var m in l)ct(l[m],r.paint[m])||e.setPaintProperty(t,m,l[m]);for(var g in r.paint)l.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}for(var v in ct(u,r.filter)||e.setFilter(t,u),s===r.minzoom&&c===r.maxzoom||e.setLayerZoomRange(t,s,c),f)ct(f[v],r[v])||e.setLayerProperty(t,v,f[v])}(e,r.id,n,a),Object.assign(a,n)}catch(e){console.warn(e)}else r._createLayer()}})),r.id=e.id||"jsx-layer-".concat(yt++),r.type=e.type,r}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this._updateLayer()}},{key:"componentDidUpdate",value:function(){this._updateLayer()}},{key:"componentWillUnmount",value:function(){var e=this._map;e&&(e.off("styledata",this._updateLayer),e.style&&e.style._loaded&&e.removeLayer(this.id))}},{key:"getLayer",value:function(){var e=this._map;return e&&e.style&&e.getLayer(this.id)}},{key:"_createLayer",value:function(){var e=this._map;if(e.style&&e.style._loaded){var t=Object.assign({},this.props);t.id=this.id,delete t.beforeId,e.addLayer(t,this.props.beforeId),this._layerOptions=t}}},{key:"_render",value:function(e){return!this._map&&e.map&&(this._map=e.map,this._map.on("styledata",this._updateLayer)),null}},{key:"render",value:function(){return d.createElement(De.Consumer,null,this._render.bind(this))}}]),n}(d.PureComponent);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}Object(c.a)(bt,"propTypes",vt);var _t={captureScroll:p.a.bool,captureDrag:p.a.bool,captureClick:p.a.bool,captureDoubleClick:p.a.bool,capturePointerMove:p.a.bool},Ot=function(e){Object(l.a)(n,e);var t=At(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),l=0;l2&&void 0!==arguments[2]?arguments[2]:"x";if(null===e)return t;var r="x"===n?e.offsetWidth:e.offsetHeight;return Ct(t/100*r)/r*100};function Pt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var kt=Object.assign({},St.propTypes,{className:p.a.string,longitude:p.a.number.isRequired,latitude:p.a.number.isRequired}),Dt=Object.assign({},St.defaultProps,{className:""}),Rt=function(e){Object(l.a)(n,e);var t=Pt(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),l=0;l=.5;)f-=.5,p+=.5*o;else if(h>a-s)for(;h>a-s&&f<=.5;)f+=.5,h-=.5*o;var m=t-d*i,g=m+i,v=.5;if(.5===f&&(d=Math.floor(d),v=1),m=v;)d-=v,m+=v*i;else if(g>r-s)for(;g>r-s&&d<=1-v;)d+=v,g-=v*i;return It.find((function(e){var t=jt[e];return t.x===d&&t.y===f}))||l}({x:e,y:t,anchor:a,padding:o,width:n.width,height:n.height,selfWidth:l.clientWidth,selfHeight:l.clientHeight}):a}},{key:"_getContainerStyle",value:function(e,t,n,r){var a=this._context.viewport,i=this.props,o=i.offsetLeft,l=i.offsetTop,u=i.sortByDepth,s=jt[r],c=e+o,d=t+l,f=this._containerRef.current,p=Lt(f,100*-s.x),h=Lt(f,100*-s.y,"y"),m={position:"absolute",transform:"\n translate(".concat(p,"%, ").concat(h,"%)\n translate(").concat(Ct(c),"px, ").concat(Ct(d),"px)\n "),display:void 0,zIndex:void 0};return u?(n>1||n<-1||e<0||e>a.width||t<0||t>a.height?m.display="none":m.zIndex=Math.floor((1-n)/2*1e5),m):m}},{key:"_renderTip",value:function(e){var t=this.props.tipSize;return d.createElement("div",{key:"tip",className:"mapboxgl-popup-tip",style:{borderWidth:t}})}},{key:"_renderContent",value:function(){var e=this.props,t=e.closeButton,n=e.children,r=this._context.eventManager?null:this._onClick;return d.createElement("div",{key:"content",ref:this._contentRef,className:"mapboxgl-popup-content",onClick:r},t&&d.createElement("button",{key:"close-button",className:"mapboxgl-popup-close-button",type:"button"},"×"),n)}},{key:"_render",value:function(){var e=this.props,t=e.className,n=e.longitude,r=e.latitude,a=e.altitude,i=this._context.viewport.project([n,r,a]),o=Object(_.a)(i,3),l=o[0],u=o[1],s=o[2],c=this._getPosition(l,u),f=this._getContainerStyle(l,u,s,c);return d.createElement("div",{className:"mapboxgl-popup mapboxgl-popup-anchor-".concat(c," ").concat(t),style:f,ref:this._containerRef},this._renderTip(c),this._renderContent())}}]),n}(Ot);Object(c.a)(zt,"propTypes",Nt),Object(c.a)(zt,"defaultProps",Bt);var Ut=n(154);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var Ht,Yt=Object.assign({},Ot.propTypes,{className:p.a.string,container:p.a.object,label:p.a.string}),Wt=Object.assign({},Ot.defaultProps,{className:"",container:null,label:"Toggle fullscreen"}),Gt=function(e){Object(l.a)(n,e);var t=Vt(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),l=0;lo)return 1}return 0}(e,"1.6.0")>=0?2:1}var an=function(e){Object(l.a)(n,e);var t=$t(n);function n(e){var r;return Object(a.a)(this,n),r=t.call(this,e),Object(c.a)(Object(i.a)(r),"_uiVersion",void 0),Object(c.a)(Object(i.a)(r),"_onZoomIn",(function(){r._updateViewport({zoom:r._context.viewport.zoom+1})})),Object(c.a)(Object(i.a)(r),"_onZoomOut",(function(){r._updateViewport({zoom:r._context.viewport.zoom-1})})),Object(c.a)(Object(i.a)(r),"_onResetNorth",(function(){r._updateViewport({bearing:0,pitch:0})})),at(e),r}return Object(o.a)(n,[{key:"_updateViewport",value:function(e){var t=this._context.viewport,n=new Pe(Object.assign({},t,e)),r=Object.assign({},n.getViewportProps(),Xe),a=this.props.onViewportChange||this._context.onViewportChange||en;(this.props.onViewStateChange||this._context.onViewStateChange||en)({viewState:r}),a(r)}},{key:"_renderCompass",value:function(){var e=this._context.viewport.bearing,t={transform:"rotate(".concat(-e,"deg)")};return 2===this._uiVersion?d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true",style:t}):d.createElement("span",{className:"mapboxgl-ctrl-compass-arrow",style:t})}},{key:"_renderButton",value:function(e,t,n,r){return d.createElement("button",{key:e,className:"mapboxgl-ctrl-icon mapboxgl-ctrl-".concat(e),type:"button",title:t,onClick:n},r||d.createElement("span",{className:"mapboxgl-ctrl-icon","aria-hidden":"true"}))}},{key:"_render",value:function(){var e=this.props,t=e.className,n=e.showCompass,r=e.showZoom,a=e.zoomInLabel,i=e.zoomOutLabel,o=e.compassLabel;if(!this._uiVersion){var l=this._context.map;this._uiVersion=l?rn(l.version):2}return d.createElement("div",{className:"mapboxgl-ctrl mapboxgl-ctrl-group ".concat(t),ref:this._containerRef},r&&this._renderButton("zoom-in",a,this._onZoomIn),r&&this._renderButton("zoom-out",i,this._onZoomOut),n&&this._renderButton("compass",o,this._onResetNorth,this._renderCompass()))}}]),n}(Ot);function on(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var a=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}Object(c.a)(an,"propTypes",tn),Object(c.a)(an,"defaultProps",nn);var ln=Object.assign({},Ot.propTypes,{maxWidth:p.a.number,unit:p.a.oneOf(["imperial","metric","nautical"])}),un=Object.assign({},Ot.defaultProps,{maxWidth:100,unit:"metric"}),sn=function(e){Object(l.a)(n,e);var t=on(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),l=0;l.008856451679035631?Math.pow(e,1/3):e/u+4/29}function h(e){return e>l?e*e*e:u*(e-4/29)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function g(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function v(e){if(e instanceof A)return new A(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=s(e)),0===e.a&&0===e.b)return new A(NaN,0=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}a.prototype=i.prototype,i.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l}));var r,a,i,o=n(451);function l(e){return r=Object(o.a)(e),a=r.format,i=r.formatPrefix,r}l({thousands:",",grouping:[3],currency:["$",""]})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(24),a=n(26),i=n(44),o=[255,255,255],l=[0,0,-1],u=0,s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e);var n=t.color,a=void 0===n?o:n,s=t.intensity,c=void 0===s?1:s,d=t.direction,f=void 0===d?l:d,p=t._shadow,h=void 0!==p&&p;this.id=t.id||"directional-".concat(u++),this.color=a,this.intensity=c,this.type="directional",this.direction=new i.c(f).normalize().toArray(),this.shadow=h}return Object(a.a)(e,[{key:"getProjectedLight",value:function(){return this}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(29),u=n(18),s=n(848),c=n(847),d=n(62),f=n(298),p=n(478),h=n(164),m=n(2),g=n(849),v=n(321);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=function(e){function t(e){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).call(this,function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[],r=this.positionSize;t*r>=e.length&&(t+=1-e.length/r);var a=t*r;return n[0]=e[a],n[1]=e[a+1],n[2]=3===r&&e[a+2]||0,n}},{key:"isClosed",value:function(e){if(!this.normalize)return this.opts.loop;var t=this.positionSize,n=e.length-t;return e[0]===e[n]&&e[1]===e[n+1]&&(2===t||e[2]===e[n+2])}}]),t}(g.a),A=[0,0,0,255],_={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},rounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:function(e){return e.path}},getColor:{type:"accessor",value:A},getWidth:{type:"accessor",value:1}},O={enter:function(e,t){return t.length?t.subarray(t.length-e.length):e}},E=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(a.a)(t,[{key:"getShaders",value:function(){return Object(l.a)(Object(o.a)(t.prototype),"getShaders",this).call(this,{vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float miterLimit;\nuniform bool billboard;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\nvec3 lineJoin(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n vec2 dir = isEnd ? dirA : dirB;\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * jointType * 4.0 * flipIfTrue(isStartCap), isJoint);\n }\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return currPoint + offset;\n}\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.worldPosition = instanceStartPositions;\n geometry.worldPositionAlt = instanceEndPositions;\n geometry.pickingColor = instancePickingColors;\n\n vec2 widthPixels = vec2(clamp(project_size_to_pixel(instanceStrokeWidths * widthScale),\n widthMinPixels, widthMaxPixels) / 2.0);\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n if (billboard) {\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n vec2 width = project_pixel_size_to_clipspace(widthPixels);\n\n vec3 pos = lineJoin(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n width\n );\n\n gl_Position = vec4(pos * currPositionScreen.w, currPositionScreen.w);\n } else {\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n vec2 width = project_pixel_size(widthPixels);\n\n vec4 pos = vec4(\n lineJoin(prevPosition, currPosition, nextPosition, width),\n 1.0);\n geometry.position = pos;\n gl_Position = project_common_position_to_clipspace(pos);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float jointType;\nuniform float miterLimit;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n if (jointType > 0.0 && length(vCornerOffset) > 1.0) {\n discard;\n }\n if (jointType == 0.0 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[s.a,c.a]})}},{key:"initializeState",value:function(){var e=this;this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:O,accessor:"getPath",update:this.calculatePositions,noAlloc:!0,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:!0},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:O,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:O,defaultValue:A},instancePickingColors:{size:3,type:5121,accessor:function(t,n){var r=n.index,a=n.target;return e.encodePickingColor(t&&t.__source?t.__source.index:r,a)}}}),this.setState({pathTesselator:new b({fp64:this.use64bitPositions()})}),this.props.getDashArray&&!this.props.extensions.length&&d.a.removed("getDashArray","PathStyleExtension")()}},{key:"updateState",value:function(e){var n=e.oldProps,r=e.props,a=e.changeFlags;Object(l.a)(Object(o.a)(t.prototype),"updateState",this).call(this,{props:r,oldProps:n,changeFlags:a});var i=this.getAttributeManager();if(a.dataChanged||a.updateTriggersChanged&&(a.updateTriggersChanged.all||a.updateTriggersChanged.getPath)){var u=this.state.pathTesselator,s=r.data.attributes||{};u.updateGeometry({data:r.data,geometryBuffer:s.getPath,buffers:s,normalize:!r._pathType,loop:"loop"===r._pathType,getGeometry:r.getPath,positionFormat:r.positionFormat,wrapLongitude:r.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:a.dataChanged}),this.setState({numInstances:u.instanceCount,startIndices:u.vertexStarts}),a.dataChanged||i.invalidateAll()}if(a.extensionsChanged){var c=this.context.gl;this.state.model&&this.state.model.delete(),this.setState({model:this._getModel(c)}),i.invalidateAll()}}},{key:"getPickingInfo",value:function(e){var n=Object(l.a)(Object(o.a)(t.prototype),"getPickingInfo",this).call(this,e),r=n.index,a=this.props.data;return a[0]&&a[0].__source&&(n.object=a.find((function(e){return e.__source.index===r}))),n}},{key:"draw",value:function(e){var t=e.uniforms,n=this.context.viewport,r=this.props,a=r.rounded,i=r.billboard,o=r.miterLimit,l=r.widthUnits,u=r.widthScale,s=r.widthMinPixels,c=r.widthMaxPixels,d="pixels"===l?n.metersPerPixel:1;this.state.model.setUniforms(Object.assign({},t,{jointType:Number(a),billboard:i,widthScale:u*d,miterLimit:o,widthMinPixels:s,widthMaxPixels:c})).draw()}},{key:"_getModel",value:function(e){return new p.a(e,Object.assign({},this.getShaders(),{id:this.props.id,geometry:new h.a({drawMode:4,attributes:{indices:new Uint16Array([0,1,2,1,4,2,1,3,4,3,5,4]),positions:{value:new Float32Array([0,0,0,-1,0,1,1,-1,1,1,1,0]),size:2}}}),isInstanced:!0}))}},{key:"calculatePositions",value:function(e){var t=this.state.pathTesselator;e.startIndices=t.vertexStarts,e.value=t.get("positions")}},{key:"calculateSegmentTypes",value:function(e){var t=this.state.pathTesselator;e.startIndices=t.vertexStarts,e.value=t.get("segmentTypes")}},{key:"wrapLongitude",get:function(){return!1}}]),t}(f.a);E.layerName="PathLayer",E.defaultProps=_},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),a=n.n(r),i=n(21),o=n(271),l=n(262);function u(e){return s.apply(this,arguments)}function s(){return(s=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="Failed to fetch resource ".concat(t.url," (").concat(t.status,"): "),e.prev=1,!t.headers.get("Content-Type").includes("application/json")){e.next=10;break}return e.t0=n,e.next=7,t.text();case 7:n=e.t0+=e.sent,e.next=11;break;case 10:n+=t.statusText;case 11:e.next=16;break;case 13:return e.prev=13,e.t1=e.catch(1),e.abrupt("return",n);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})))).apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return(d=Object(i.a)(a.a.mark((function e(t){var n,r,i=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:{},"string"==typeof t){e.next=5;break}return e.next=4,Object(l.b)(t);case 4:return e.abrupt("return",e.sent);case 5:return t=Object(o.b)(t),e.next=8,fetch(t,n);case 8:if((r=e.sent).ok||!n.throws){e.next=15;break}return e.t0=Error,e.next=13,u(r);case 13:throw e.t1=e.sent,new e.t0(e.t1);case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(1938),a=n(54),i=Object.keys(a.a).map((function(e){return"const int COORDINATE_SYSTEM_".concat(e," = ").concat(a.a[e],";")})).join(""),o=Object.keys(a.c).map((function(e){return"const int PROJECTION_MODE_".concat(e," = ").concat(a.c[e],";")})).join(""),l="".concat(i,"\n").concat(o,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform float project_uAntimeridian;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z;\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy;\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter;\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n return normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n dy = clamp(dy, -1., 1.);\n }\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x - project_uAntimeridian, 360.0) + project_uAntimeridian;\n }\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(lnglat.y) * 0.5))\n );\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy) * WORLD_SCALE,\n project_size(position_world.z),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n position_world += project_uModelMatrix * vec4(position64Low, 0.0);\n }\n\n return project_offset_(position_world);\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n"),u=n(303),s={};t.a={name:"project",dependencies:[r.a],vs:l,getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return e.viewport?Object(u.b)(e):{}}}},function(e,t,n){"use strict";function r(e){return+e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}},function(e,t,n){"use strict";(function(e){var r=n(106),a=n(1225),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=o&&o.exports===i?r.a.Buffer:void 0,u=(l?l.isBuffer:void 0)||a.a;t.a=u}).call(this,n(562)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return i}));function r(){}function a(e,t){var n=new r;if(e instanceof r)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var a,i=-1,o=e.length;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var s,c,d,f=-1,p=n.length,h=r[a++],m=i(),g=l();++fr.length)return n;var o,l=a[i-1];return null!=t&&i>=r.length?o=n.entries():(o=[],n.each((function(t,n){o.push({key:n,values:e(t,i)})}))),null!=l?o.sort((function(e,t){return l(e.key,t.key)})):o}(o(e,0,s,c),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return a[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function l(){return{}}function u(e,t,n){e[t]=n}function s(){return i()}function c(e,t,n){e.set(t,n)}function d(){}var f=i.prototype;function p(e,t){var n=new d;if(e instanceof d)e.each((function(e){n.add(e)}));else if(e){var r=-1,a=e.length;if(null==t)for(;++r=0&&(n["content-length"]=String(r)),i=Object(l.b)(t),u=i.url,(s=i.type)&&(n["content-type"]=s),e.next=9,h(t);case 9:return(c=e.sent)&&(n["x-first-bytes"]=c),"string"==typeof t&&(t=(new TextEncoder).encode(t)),d=new Response(t,{headers:n}),Object.defineProperty(d,"url",{value:u}),e.abrupt("return",d);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return(d=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=5;break}return e.next=3,f(t);case 3:throw n=e.sent,new Error(n);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return p.apply(this,arguments)}function p(){return(p=Object(i.a)(a.a.mark((function e(t){var n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="Failed to fetch resource ".concat(t.url," (").concat(t.status,"): "),e.prev=1,r=t.headers.get("Content-Type"),i=t.statusText,!r.includes("application/json")){e.next=11;break}return e.t0=i,e.t1=" ",e.next=9,t.text();case 9:e.t2=e.sent,i=e.t0+=e.t1.concat.call(e.t1,e.t2);case 11:n=(n+=i).length>60?"".concat(n.slice(60),"..."):n,e.next=17;break;case 15:e.prev=15,e.t3=e.catch(1);case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[1,15]])})))).apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return(m=Object(i.a)(a.a.mark((function e(t){var n,r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=5,"string"!=typeof t){e.next=3;break}return e.abrupt("return","data:,".concat(t.slice(0,n)));case 3:if(!(t instanceof Blob)){e.next=8;break}return r=t.slice(0,5),e.next=7,new Promise((function(e){var t=new FileReader;t.onload=function(t){return e(t.target&&t.target.result)},t.readAsDataURL(r)}));case 7:return e.abrupt("return",e.sent);case 8:if(!(t instanceof ArrayBuffer)){e.next=12;break}return i=t.slice(0,n),o=g(i),e.abrupt("return","data:base64,".concat(o));case 12:return e.abrupt("return",null);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){for(var t="",n=new Uint8Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),(n=Object(i.a)(this,Object(o.a)(t).call(this,e,r))).initialize(r),Object.seal(Object(l.a)(n)),n}return Object(s.a)(t,e),Object(u.a)(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{format:null},n=t.format;return!n||g(e,n,p)}},{key:"getSamplesForFormat",value:function(e,t){var n=t.format;return e.getInternalformatParameter(36161,n,32937)}}]),Object(u.a)(t,[{key:"initialize",value:function(e){var t=e.format,n=e.width,r=void 0===n?1:n,a=e.height,i=void 0===a?1:a,o=e.samples,l=void 0===o?0:o;return Object(m.a)(t,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==l&&Object(h.g)(this.gl)?this.gl.renderbufferStorageMultisample(36161,l,t,r,i):this.gl.renderbufferStorage(36161,t,r,i),this.format=t,this.width=r,this.height=i,this.samples=l,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*p[this.format].bpp),this}},{key:"resize",value:function(e){var t=e.width,n=e.height;return t!==this.width||n!==this.height?this.initialize({width:t,height:n,format:this.format,samples:this.samples}):this}},{key:"_createHandle",value:function(){return this.gl.createRenderbuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}},{key:"_bindHandle",value:function(e){this.gl.bindRenderbuffer(36161,e)}},{key:"_syncHandle",value:function(e){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}},{key:"_getParameter",value:function(e){return this.gl.bindRenderbuffer(36161,this.handle),this.gl.getRenderbufferParameter(36161,e)}}]),t}(c.a)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",a="undefined"!=typeof window?window:e,i=(void 0!==e||window,"undefined"!=typeof document&&document,!1);try{var o={get passive(){return i=!0,!0}};a.addEventListener("test",o,o),a.removeEventListener("test",o,o)}catch(e){}}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l}));var r=n(73),a={};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";a[e]=a[e]||1;var t=a[e]++;return"".concat(e,"-").concat(t)}function o(e){return Object(r.a)("number"==typeof e,"Input must be a number"),e&&0==(e&e-1)}function l(e){var t=!0;for(var n in e){t=!1;break}return t}},,,function(e,t){e.exports=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.LAYER_TYPES=void 0;var a=(0,r(n(155)).default)({point:null,arc:null,line:null,grid:null,hexagon:null,geojson:null,cluster:null,icon:null,heatmap:null,hexagonId:null,"3D":null,trip:null,s2:null});t.LAYER_TYPES=a},function(e,t){function n(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function l(e){n(o,a,i,l,u,"next",e)}function u(e){n(o,a,i,l,u,"throw",e)}l(void 0)}))}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return l}));var r="",a={};function i(e){r=e}function o(){return r}function l(e){for(var t in a)if(e.startsWith(t)){var n=a[t];e=e.replace(t,n)}return e.startsWith("http://")||e.startsWith("https://")||(e="".concat(r).concat(e)),e}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.processCsvData=S,t.parseRowsByFields=T,t.getSampleForTypeAnalyze=C,t.parseCsvRowsByFieldType=P,t.getFieldsFromData=k,t.renameDuplicateFields=D,t.analyzerTypeToFieldType=R,t.processRowObject=j,t.processGeojson=I,t.formatCsv=F,t.validateInputData=function(e){if(!(0,y.isPlainObject)(e))return(0,d.default)("addDataToMap Error: dataset.data cannot be null"),null;if(!Array.isArray(e.fields))return(0,d.default)("addDataToMap Error: expect dataset.data.fields to be an array"),null;if(!Array.isArray(e.rows))return(0,d.default)("addDataToMap Error: expect dataset.data.rows to be an array"),null;var t=e.fields,n=e.rows;if(t.every((function(e,r){if((0,y.isPlainObject)(e)||((0,d.default)("fields needs to be an array of object, but find ".concat((0,o.default)(e))),t[r]={}),e.name||((0,d.default)("field.name is required but missing in ".concat(JSON.stringify(e))),t[r].name="column_".concat(r)),!h.ALL_FIELD_TYPES[e.type])return(0,d.default)("unknown field type ".concat(e.type)),!1;if(!t.every((function(e){return e.analyzerType})))return(0,d.default)("field missing analyzerType"),!1;if(e.type===h.ALL_FIELD_TYPES.timestamp){var a=function(e,t,n){var r=[],a=0;for(;r.length=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.length)o[a][e]=null,a++;else if((0,m.notNullorUndefined)(n[r][t])){var l=n[r][t];o[a][e]="string"==typeof l?l.trim():l,a++,r++}else r++})),o}function L(e){for(var t=new RegExp(x,"g"),n=0;n-1&&e[t]&&e[t].properties&&(e[t].properties[n.name]=e[r]))}))}}function k(e,t){var n=f.Analyzer.computeColMeta(e,[{regex:/.*geojson|all_points/g,dataType:"GEOMETRY"},{regex:/.*census/g,dataType:"STRING"}],{ignoredDataTypes:M}),r=D(t).fieldByIndex;return t.map((function(e,t){var a=r[t],i=n.find((function(t){return t.key===e}))||{},o=i.type;return{name:a,id:a,displayName:a,format:i.format,fieldIdx:t,type:R(o),analyzerType:o,valueAccessor:function(e){return function(n){return e.valueAt(n.index,t)}}}}))}function D(e){return e.reduce((function(e,t,n){var r=e.allNames,a=t;if(r.includes(t)){for(var i=0;r.includes("".concat(t,"-").concat(i));)i++;a="".concat(t,"-").concat(i)}return e.fieldByIndex[n]=a,e.allNames.push(a),e}),{allNames:[],fieldByIndex:{}})}function R(e){var t=f.DATA_TYPES.DATE,n=f.DATA_TYPES.TIME,r=f.DATA_TYPES.DATETIME,a=f.DATA_TYPES.NUMBER,i=f.DATA_TYPES.INT,o=f.DATA_TYPES.FLOAT,l=f.DATA_TYPES.BOOLEAN,u=f.DATA_TYPES.STRING,s=f.DATA_TYPES.GEOMETRY,d=f.DATA_TYPES.GEOMETRY_FROM_STRING,p=f.DATA_TYPES.PAIR_GEOMETRY_FROM_STRING,m=f.DATA_TYPES.ZIPCODE,g=f.DATA_TYPES.ARRAY,v=f.DATA_TYPES.OBJECT;switch(e){case t:return h.ALL_FIELD_TYPES.date;case n:case r:return h.ALL_FIELD_TYPES.timestamp;case o:return h.ALL_FIELD_TYPES.real;case i:return h.ALL_FIELD_TYPES.integer;case l:return h.ALL_FIELD_TYPES.boolean;case s:case d:case p:case g:case v:return h.ALL_FIELD_TYPES.geojson;case a:case u:case m:return h.ALL_FIELD_TYPES.string;default:return c.console.warn("Unsupported analyzer type: ".concat(e)),h.ALL_FIELD_TYPES.string}}function j(e){if(!Array.isArray(e)||!e.length)return null;var t=Object.keys(e[0]),n=e.map((function(e){return t.map((function(t){return e[t]}))}));return L(n),S(n,t)}function I(e){var t=(0,p.default)(e);if(!t||!Array.isArray(t.features))throw new Error("Read File Failed: File is not a valid GeoJSON. Read more about [supported file format](".concat(v.GUIDES_FILE_FORMAT_DOC,")"));for(var n=[],r=0;rl))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,d=!0,f=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++c-1},re.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Y||re),string:new ne}},ae.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return ge(this,e).get(e)},ae.prototype.has=function(e){return ge(this,e).has(e)},ae.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.clear=function(){this.__data__=new re,this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},oe.prototype.get=function(e){return this.__data__.get(e)},oe.prototype.has=function(e){return this.__data__.has(e)},oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!Y||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ae(r)}return n.set(e,t),this.size=n.size,this};var ye=z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var Le=y?function(e){return function(t){return e(t)}}(y):function(e){return Ce(e)&&Se(e.length)&&!!s[se(e)]};function Pe(e){return function(e){return null!=e&&Se(e.length)&&!we(e)}(e)?le(e):pe(e)}n.exports=function(e,t){return de(e,t)}}).call(this,n(67),n(175)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUG_REPORT_LINK=t.GUIDES_FILE_FORMAT_DOC=t.EXPORT_HTML_MAP_MODES_DOC=t.MAPBOX_ACCESS_TOKEN=t.ADD_DATA_TO_MAP_DOC=t.EXPORT_HTML_MAP_DOC=t.API_REFERENCE_DOC=t.ACTIONS_DOC=t.USER_GUIDE_DOC=void 0;var r="https://docs.kepler.gl/docs/user-guides";t.USER_GUIDE_DOC=r;var a="https://docs.kepler.gl/docs/api-reference/actions/actions";t.ACTIONS_DOC=a;t.API_REFERENCE_DOC="https://docs.kepler.gl/docs/api-reference";var i="".concat(r,"/k-save-and-export");t.EXPORT_HTML_MAP_DOC=i;var o="".concat(a,"#adddatatomap");t.ADD_DATA_TO_MAP_DOC=o;t.MAPBOX_ACCESS_TOKEN="https://docs.mapbox.com/help/how-mapbox-works/access-tokens/";var l="".concat(r,"/k-save-and-export#export-html-map");t.EXPORT_HTML_MAP_MODES_DOC=l;var u="".concat(r,"/b-kepler-gl-workflow/a-add-data-to-the-map#supported-file-formats");t.GUIDES_FILE_FORMAT_DOC=u;t.BUG_REPORT_LINK="https://github.com/keplergl/kepler.gl/issues/new?assignees=&labels=bug&template=bug_report.md&title=%5BBug%5D"},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.createDataContainer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if((t=u(u({},c),t)).inputDataFormat===s.ROWS_ARRAY)return new i.RowDataContainer({rows:e,fields:t.fields});throw Error("Failed to create a data container: not implemented format")},t.createIndexedDataContainer=d,t.getSampleData=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=e.numRows(),r=Math.max(Math.floor(n/t),1),a=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(_)}}]),e}();function _(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function O(e,t,n){return(e=e.slice()).splice(n<0?e.length+n:n,0,e.splice(t,1)[0]),e}function E(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},M=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function w(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function S(e,t){e.style["".concat(M,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function T(e,t){e.style["".concat(M,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function C(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function L(e,t,n){return Math.max(e,Math.min(n,t))}function P(e){return"px"===e.substr(-2)?parseFloat(e):0}function k(e){var t=window.getComputedStyle(e);return{bottom:P(t.marginBottom),left:P(t.marginLeft),right:P(t.marginRight),top:P(t.marginTop)}}function D(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function R(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function j(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function I(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function F(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:F(e.parentNode,t,r)}}function N(e,t,n){return et?e-1:e>n&&e0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),r}function re(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Object(o.a)(this,n),Object(u.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(l.a)(n,[{key:"componentDidMount",value:function(){Object(g.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(p.createElement)(e,Object(r.a)({ref:t},this.props))}}]),n}(p.Component),Object(f.a)(t,"displayName",D("sortableHandle",e)),n}function ae(e){return null!=e.sortableHandle}var ie=function(){function e(t,n){Object(o.a)(this,e),this.container=t,this.onScrollCallback=n}return Object(l.a)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,a=e.maxTranslate,i=e.width,o=e.height,l={x:0,y:0},u={x:1,y:1},s=10,c=10,d=this.container,f=d.scrollTop,p=d.scrollLeft,h=d.scrollHeight,m=d.scrollWidth,g=0===f,v=h-f-d.clientHeight==0,y=0===p,b=m-p-d.clientWidth==0;n.y>=a.y-o/2&&!v?(l.y=1,u.y=c*Math.abs((a.y-o/2-n.y)/o)):n.x>=a.x-i/2&&!b?(l.x=1,u.x=s*Math.abs((a.x-i/2-n.x)/i)):n.y<=r.y+o/2&&!g?(l.y=-1,u.y=c*Math.abs((n.y-o/2-r.y)/o)):n.x<=r.x+i/2&&!y&&(l.x=-1,u.x=s*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:u.x*l.x,top:u.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var oe={axis:m.a.oneOf(["x","y","xy"]),contentWindow:m.a.any,disableAutoscroll:m.a.bool,distance:m.a.number,getContainer:m.a.func,getHelperDimensions:m.a.func,helperClass:m.a.string,helperContainer:m.a.oneOfType([m.a.func,"undefined"==typeof HTMLElement?m.a.any:m.a.instanceOf(HTMLElement)]),hideSortableGhost:m.a.bool,keyboardSortingTransitionDuration:m.a.number,lockAxis:m.a.string,lockOffset:m.a.oneOfType([m.a.number,m.a.string,m.a.arrayOf(m.a.oneOfType([m.a.number,m.a.string]))]),lockToContainerEdges:m.a.bool,onSortEnd:m.a.func,onSortMove:m.a.func,onSortOver:m.a.func,onSortStart:m.a.func,pressDelay:m.a.number,pressThreshold:m.a.number,keyCodes:m.a.shape({lift:m.a.arrayOf(m.a.number),drop:m.a.arrayOf(m.a.number),cancel:m.a.arrayOf(m.a.number),up:m.a.arrayOf(m.a.number),down:m.a.arrayOf(m.a.number)}),shouldCancelStart:m.a.func,transitionDuration:m.a.number,updateBeforeSortStart:m.a.func,useDragHandle:m.a.bool,useWindowAsScrollContainer:m.a.bool},le={lift:[Y],drop:[Y],cancel:[H],up:[G,W],down:[X,q]},ue={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:le,shouldCancelStart:function(e){return-1!==[Q,ee,te,$,K].indexOf(e.target.tagName)||!!C(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},se=Object.keys(oe);function ce(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function de(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}function fe(e){var t,n,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return Object(o.a)(this,n),t=Object(u.a)(this,Object(s.a)(n).call(this,e)),Object(f.a)(Object(d.a)(Object(d.a)(t)),"state",{}),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,a=n.shouldCancelStart;if(2!==e.button&&!a(e)){t.touched=!0,t.position=j(e);var i=C(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var o=t.props.useDragHandle,l=i.sortableInfo,u=l.index,s=l.collection;if(l.disabled)return;if(o&&!C(e.target,ae))return;t.manager.active={collection:s,index:u},I(e)||e.target.tagName!==Z||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=j(e),o={x:t.position.x-i.x,y:t.position.y-i.y},l=Math.abs(o.x)+Math.abs(o.y);t.delta=o,r||a&&!(l>=a)?r&&l>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=p.sortableInfo.index,r=k(p),a=V(t.container),c=t.scrollContainer.getBoundingClientRect(),g=l({index:n,node:p,collection:h});if(t.node=p,t.margin=r,t.gridGap=a,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=F(p,t.container),t.initialOffset=j(m?Object(i.a)({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(ne(p)),w(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),m&&t.helper.focus(),s&&(t.sortableGhost=p,w(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},m){var v=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,y=v.top,b=v.left,A=v.width,_=y+v.height,O=b+A;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=O-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=y-t.boundingClientRect.top,t.maxTranslate.y=_-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);u&&u.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?p:t.contentWindow,m?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(x.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),x.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:p,index:n,collection:h,isKeySorting:m,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),m&&t.keyMove(0)},a=t.props,o=a.axis,l=a.getHelperDimensions,u=a.helperClass,s=a.hideSortableGhost,c=a.updateBeforeSortStart,d=a.onSortStart,f=a.useWindowAsScrollContainer,p=n.node,h=n.collection,m=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=de((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:m},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Object(f.a)(Object(d.a)(Object(d.a)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,a=n.onSortEnd,i=t.manager,o=i.active.collection,l=i.isKeySorting,u=t.manager.getOrderedRefs();t.listenerNode&&(l?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(x.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),x.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&w(t.sortableGhost,{opacity:"",visibility:""});for(var s=0,c=u.length;sr)){t.prevIndex=i,t.newIndex=a;var o=N(t.newIndex,t.prevIndex,t.index),l=n.find((function(e){return e.node.sortableInfo.index===o})),u=l.node,s=t.containerScrollDelta,c=l.boundingClientRect||R(u,s),d=l.translate||{x:0,y:0},f=c.top+d.y-s.top,p=c.left+d.x-s.left,h=ig?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=s&&h>this.index&&h<=c,b=s&&h=c,A={x:0,y:0},_=o[d].edgeOffset;_||(_=F(p,this.container),o[d].edgeOffset=_,s&&(o[d].boundingClientRect=R(p,a)));var O=d0&&o[d-1];O&&!O.edgeOffset&&(O.edgeOffset=F(O.node,this.container),s&&(O.boundingClientRect=R(O.node,a))),h!==this.index?(t&&T(p,t),this.axis.x?this.axis.y?b||hthis.containerBoundingRect.width-v.width&&O&&(A.x=O.edgeOffset.left-_.left,A.y=O.edgeOffset.top-_.top),null===this.newIndex&&(this.newIndex=h)):(y||h>this.index&&(l+i.left+v.width>=_.left&&u+i.top+v.height>=_.top||u+i.top+v.height>=_.top+g))&&(A.x=-(this.width+this.marginOffset.x),_.left+A.xthis.index&&l+i.left+v.width>=_.left?(A.x=-(this.width+this.marginOffset.x),this.newIndex=h):(b||hthis.index&&u+i.top+v.height>=_.top?(A.y=-(this.height+this.marginOffset.y),this.newIndex=h):(b||h1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Object(o.a)(this,n),Object(u.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(l.a)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,a=Object(g.findDOMNode)(this);a.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=a,this.ref={node:a},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(a.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=a.withRef?"wrappedInstance":null;return Object(p.createElement)(e,Object(r.a)({ref:t},E(this.props,he)))}}]),n}(p.Component),Object(f.a)(t,"displayName",D("sortableElement",e)),Object(f.a)(t,"contextTypes",{manager:m.a.object.isRequired}),Object(f.a)(t,"propTypes",pe),Object(f.a)(t,"defaultProps",{collection:0}),n}},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,s=l||u||Function("return this")(),c=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return s.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=a.test(e);return l||i.test(e)?o(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,a,i,o,l,u,s=0,c=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=a;return r=a=void 0,s=t,o=e.apply(i,n)}function b(e){return s=e,l=setTimeout(_,t),c?y(e):o}function A(e){var n=e-u;return void 0===u||n>=t||n<0||g&&e-s>=i}function _(){var e=p();if(A(e))return O(e);l=setTimeout(_,function(e){var n=t-(e-u);return g?f(n,i-(e-s)):n}(e))}function O(e){return l=void 0,v&&r?y(e):(r=a=void 0,o)}function E(){var e=p(),n=A(e);if(r=arguments,a=this,u=e,n){if(void 0===l)return b(u);if(g)return l=setTimeout(_,t),y(u)}return void 0===l&&(l=setTimeout(_,t)),o}return t=m(t)||0,h(n)&&(c=!!n.leading,i=(g="maxWait"in n)?d(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=a=l=void 0},E.flush=function(){return void 0===l?o:O(p())},E}}).call(this,n(67))},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.LAYER_TYPES=void 0;var a=(0,r(n(155)).default)({point:null,arc:null,line:null,grid:null,hexagon:null,geojson:null,cluster:null,icon:null,heatmap:null,hexagonId:null,"3D":null,trip:null,s2:null});t.LAYER_TYPES=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.processCsvData=S,t.parseRowsByFields=T,t.getSampleForTypeAnalyze=C,t.parseCsvRowsByFieldType=P,t.getFieldsFromData=k,t.renameDuplicateFields=D,t.analyzerTypeToFieldType=R,t.processRowObject=j,t.processGeojson=I,t.formatCsv=F,t.validateInputData=function(e){if(!(0,y.isPlainObject)(e))return(0,d.default)("addDataToMap Error: dataset.data cannot be null"),null;if(!Array.isArray(e.fields))return(0,d.default)("addDataToMap Error: expect dataset.data.fields to be an array"),null;if(!Array.isArray(e.rows))return(0,d.default)("addDataToMap Error: expect dataset.data.rows to be an array"),null;var t=e.fields,n=e.rows;if(t.every((function(e,r){if((0,y.isPlainObject)(e)||((0,d.default)("fields needs to be an array of object, but find ".concat((0,o.default)(e))),t[r]={}),e.name||((0,d.default)("field.name is required but missing in ".concat(JSON.stringify(e))),t[r].name="column_".concat(r)),!h.ALL_FIELD_TYPES[e.type])return(0,d.default)("unknown field type ".concat(e.type)),!1;if(!t.every((function(e){return e.analyzerType})))return(0,d.default)("field missing analyzerType"),!1;if(e.type===h.ALL_FIELD_TYPES.timestamp){var a=function(e,t,n){var r=[],a=0;for(;r.length=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.length)o[a][e]=null,a++;else if((0,m.notNullorUndefined)(n[r][t])){var l=n[r][t];o[a][e]="string"==typeof l?l.trim():l,a++,r++}else r++})),o}function L(e){for(var t=new RegExp(x,"g"),n=0;n-1&&e[t]&&e[t].properties&&(e[t].properties[n.name]=e[r]))}))}}function k(e,t){var n=f.Analyzer.computeColMeta(e,[{regex:/.*geojson|all_points/g,dataType:"GEOMETRY"},{regex:/.*census/g,dataType:"STRING"}],{ignoredDataTypes:M}),r=D(t).fieldByIndex;return t.map((function(e,t){var a=r[t],i=n.find((function(t){return t.key===e}))||{},o=i.type;return{name:a,id:a,displayName:a,format:i.format,fieldIdx:t,type:R(o),analyzerType:o,valueAccessor:function(e){return function(n){return e.valueAt(n.index,t)}}}}))}function D(e){return e.reduce((function(e,t,n){var r=e.allNames,a=t;if(r.includes(t)){for(var i=0;r.includes("".concat(t,"-").concat(i));)i++;a="".concat(t,"-").concat(i)}return e.fieldByIndex[n]=a,e.allNames.push(a),e}),{allNames:[],fieldByIndex:{}})}function R(e){var t=f.DATA_TYPES.DATE,n=f.DATA_TYPES.TIME,r=f.DATA_TYPES.DATETIME,a=f.DATA_TYPES.NUMBER,i=f.DATA_TYPES.INT,o=f.DATA_TYPES.FLOAT,l=f.DATA_TYPES.BOOLEAN,u=f.DATA_TYPES.STRING,s=f.DATA_TYPES.GEOMETRY,d=f.DATA_TYPES.GEOMETRY_FROM_STRING,p=f.DATA_TYPES.PAIR_GEOMETRY_FROM_STRING,m=f.DATA_TYPES.ZIPCODE,g=f.DATA_TYPES.ARRAY,v=f.DATA_TYPES.OBJECT;switch(e){case t:return h.ALL_FIELD_TYPES.date;case n:case r:return h.ALL_FIELD_TYPES.timestamp;case o:return h.ALL_FIELD_TYPES.real;case i:return h.ALL_FIELD_TYPES.integer;case l:return h.ALL_FIELD_TYPES.boolean;case s:case d:case p:case g:case v:return h.ALL_FIELD_TYPES.geojson;case a:case u:case m:return h.ALL_FIELD_TYPES.string;default:return c.console.warn("Unsupported analyzer type: ".concat(e)),h.ALL_FIELD_TYPES.string}}function j(e){if(!Array.isArray(e)||!e.length)return null;var t=Object.keys(e[0]),n=e.map((function(e){return t.map((function(t){return e[t]}))}));return L(n),S(n,t)}function I(e){var t=(0,p.default)(e);if(!t||!Array.isArray(t.features))throw new Error("Read File Failed: File is not a valid GeoJSON. Read more about [supported file format](".concat(v.GUIDES_FILE_FORMAT_DOC,")"));for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:c;if((t=u(u({},c),t)).inputDataFormat===s.ROWS_ARRAY)return new i.RowDataContainer({rows:e,fields:t.fields});throw Error("Failed to create a data container: not implemented format")},t.createIndexedDataContainer=d,t.getSampleData=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=e.numRows(),r=Math.max(Math.floor(n/t),1),a=[],i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,l=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){for(;f<=p;++f)for(c=1,s=n(f);cu)break;g.push(d)}}else for(;f<=p;++f)for(c=h-1,s=n(f);c>=1;--c)if(!((d=s*c)u)break;g.push(d)}2*g.length0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,t);var r=n.latitude,i=void 0===r?0:r,s=n.longitude,c=void 0===s?0:s,f=n.zoom,h=void 0===f?11:f,m=n.pitch,g=void 0===m?0:m,v=n.bearing,y=void 0===v?0:v,b=n.nearZMultiplier,A=void 0===b?.1:b,_=n.farZMultiplier,O=void 0===_?1.01:_,E=n.orthographic,x=void 0!==E&&E,M=n.repeat,w=void 0!==M&&M,S=n.worldOffset,T=void 0===S?0:S,C=n.width,L=n.height,P=n.altitude,k=void 0===P?1.5:P,D=Math.pow(2,h);C=C||1,L=L||1,k=Math.max(.75,k);var R=Object(d.h)({width:C,height:L,pitch:g,altitude:k,nearZMultiplier:A,farZMultiplier:O}),j=R.fov,I=R.aspect,F=R.focalDistance,N=R.near,B=R.far,z=Object(d.i)({height:L,pitch:g,bearing:y,scale:D,altitude:k});if(T){var U=(new p.a).translate([512*T,0,0]);z=U.multiplyLeft(z)}var V=Object.assign({},n,{width:C,height:L,viewMatrix:z,longitude:c,latitude:i,zoom:h,orthographic:x,fovyRadians:j,aspect:I,focalDistance:x?F:1,near:N,far:B});return(e=Object(o.a)(this,Object(l.a)(t).call(this,V))).latitude=i,e.longitude=c,e.zoom=h,e.pitch=g,e.bearing=y,e.altitude=k,e.orthographic=x,e._subViewports=w?[]:null,Object.freeze(Object(u.a)(e)),e}return Object(s.a)(t,e),Object(i.a)(t,[{key:"addMetersToLngLat",value:function(e,t){return Object(d.a)(e,t)}},{key:"getMapCenterByLngLatPosition",value:function(e){var t=e.lngLat,n=e.pos,r=Object(d.l)(n,this.pixelUnprojectionMatrix),a=this.projectFlat(t),i=f.a([],a,f.d([],r)),o=f.a([],this.center,i);return this.unprojectFlat(o)}},{key:"getBounds",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(d.d)(this,e.z||0);return[Math.min(t[0][0],t[1][0],t[2][0],t[3][0]),Math.min(t[0][1],t[1][1],t[2][1],t[3][1]),Math.max(t[0][0],t[1][0],t[2][0],t[3][0]),Math.max(t[0][1],t[1][1],t[2][1],t[3][1])]}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,a=this.height,i=Object(d.b)(Object.assign({width:r,height:a,bounds:e},n)),o=i.longitude,l=i.latitude,u=i.zoom;return new t({width:r,height:a,longitude:o,latitude:l,zoom:u})}},{key:"subViewports",get:function(){if(this._subViewports&&!this._subViewports.length)for(var e=this.getBounds(),n=Math.floor((e[0]+180)/360),r=Math.ceil((e[2]-180)/360),a=n;a<=r;a++){var i=a?new t(m({},this,{worldOffset:a})):this;this._subViewports.push(i)}return this._subViewports}}]),t}(c.a);g.displayName="WebMercatorViewport"},function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return C}));var r=n(63),a=n(84),i=n(24),o=n(26),l=n(47),u=n(38),s=n(48),c=n(44),d=n(162),f=n(304),p=n(92),h=n(81),m=n(160),g=n(161);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=n.makeViewport,a=n.width,o=n.height,s=n.latitude,c=n.longitude,d=n.zoom,f=n.bearing,p=void 0===f?w:f,m=n.pitch,g=void 0===m?M:m,v=n.altitude,y=void 0===v?S:v,b=n.maxZoom,A=void 0===b?O:b,T=n.minZoom,C=void 0===T?_:T,L=n.maxPitch,P=void 0===L?x:L,k=n.minPitch,D=void 0===k?E:k,R=n.startPanLngLat,j=n.startZoomLngLat,I=n.startBearing,F=n.startPitch,N=n.startZoom;return Object(i.a)(this,t),Object(h.a)(Number.isFinite(c),"`longitude` must be supplied"),Object(h.a)(Number.isFinite(s),"`latitude` must be supplied"),Object(h.a)(Number.isFinite(d),"`zoom` must be supplied"),(e=Object(l.a)(this,Object(u.a)(t).call(this,{width:a,height:o,latitude:s,longitude:c,zoom:d,bearing:p,pitch:g,altitude:y,maxZoom:A,minZoom:C,maxPitch:P,minPitch:D})))._interactiveState={startPanLngLat:R,startZoomLngLat:j,startBearing:I,startPitch:F,startZoom:N},e.makeViewport=r,e}return Object(s.a)(t,e),Object(o.a)(t,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getInteractiveState",value:function(){return this._interactiveState}},{key:"panStart",value:function(e){var t=e.pos;return this._getUpdatedState({startPanLngLat:this._unproject(t)})}},{key:"pan",value:function(e){var t=e.pos,n=e.startPos,r=this._interactiveState.startPanLngLat||this._unproject(n);if(!r)return this;var i=this._calculateNewLngLat({startPanLngLat:r,pos:t}),o=Object(a.a)(i,2),l=o[0],u=o[1];return this._getUpdatedState({longitude:l,latitude:u})}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanLngLat:null})}},{key:"rotateStart",value:function(e){e.pos;return this._getUpdatedState({startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(e){var t=e.deltaScaleX,n=void 0===t?0:t,r=e.deltaScaleY,a=void 0===r?0:r,i=this._interactiveState,o=i.startBearing,l=i.startPitch;if(!Number.isFinite(o)||!Number.isFinite(l))return this;var u=this._calculateNewPitchAndBearing({deltaScaleX:n,deltaScaleY:a,startBearing:o,startPitch:l}),s=u.pitch,c=u.bearing;return this._getUpdatedState({bearing:c,pitch:s})}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(e){var t=e.pos;return this._getUpdatedState({startZoomLngLat:this._unproject(t),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(e){var t=e.pos,n=e.startPos,r=e.scale,i=this._interactiveState,o=i.startZoom,l=i.startZoomLngLat;Number.isFinite(o)||(o=this._viewportProps.zoom,l=this._unproject(n)||this._unproject(t));var u=this._calculateNewZoom({scale:r,startZoom:o}),s=this.makeViewport(y({},this._viewportProps,{zoom:u})).getMapCenterByLngLatPosition({lngLat:l,pos:t}),c=Object(a.a)(s,2),d=c[0],f=c[1];return this._getUpdatedState({zoom:u,longitude:d,latitude:f})}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}},{key:"zoomIn",value:function(){return this._zoomFromCenter(2)}},{key:"zoomOut",value:function(){return this._zoomFromCenter(.5)}},{key:"moveLeft",value:function(){return this._panFromCenter([100,0])}},{key:"moveRight",value:function(){return this._panFromCenter([-100,0])}},{key:"moveUp",value:function(){return this._panFromCenter([0,100])}},{key:"moveDown",value:function(){return this._panFromCenter([0,-100])}},{key:"rotateLeft",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing-15})}},{key:"rotateRight",value:function(){return this._getUpdatedState({bearing:this._viewportProps.bearing+15})}},{key:"rotateUp",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch+10})}},{key:"rotateDown",value:function(){return this._getUpdatedState({pitch:this._viewportProps.pitch-10})}},{key:"shortestPathFrom",value:function(e){var t=e.getViewportProps(),n=Object.assign({},this._viewportProps),r=n.bearing,a=n.longitude;return Math.abs(r-t.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(a-t.longitude)>180&&(n.longitude=a<0?a+360:a-360),n}},{key:"_zoomFromCenter",value:function(e){var t=this._viewportProps,n=t.width,r=t.height;return this.zoom({pos:[n/2,r/2],scale:e})}},{key:"_panFromCenter",value:function(e){var t=this._viewportProps,n=t.width,r=t.height;return this.pan({startPos:[n/2,r/2],pos:[n/2+e[0],r/2+e[1]]})}},{key:"_getUpdatedState",value:function(e){return new this.constructor(y({makeViewport:this.makeViewport},this._viewportProps,{},this._interactiveState,{},e))}},{key:"_applyConstraints",value:function(e){var t=e.maxZoom,n=e.minZoom,r=e.zoom;e.zoom=Object(c.e)(r,n,t);var a=e.maxPitch,i=e.minPitch,o=e.pitch;return e.pitch=Object(c.e)(o,i,a),Object.assign(e,Object(p.k)(e)),e}},{key:"_unproject",value:function(e){var t=this.makeViewport(this._viewportProps);return e&&t.unproject(e)}},{key:"_calculateNewLngLat",value:function(e){var t=e.startPanLngLat,n=e.pos;return this.makeViewport(this._viewportProps).getMapCenterByLngLatPosition({lngLat:t,pos:n})}},{key:"_calculateNewZoom",value:function(e){var t=e.scale,n=e.startZoom,r=this._viewportProps,a=r.maxZoom,i=r.minZoom,o=n+Math.log2(t);return Object(c.e)(o,i,a)}},{key:"_calculateNewPitchAndBearing",value:function(e){var t=e.deltaScaleX,n=e.deltaScaleY,r=e.startBearing,a=e.startPitch;n=Object(c.e)(n,-1,1);var i=this._viewportProps,o=i.minPitch,l=i.maxPitch,u=a;return n>0?u=a+n*(l-a):n<0&&(u=a-n*(o-a)),{pitch:u,bearing:r+180*t}}}]),t}(f.a),C=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,T,e))).invertPan=!0,n}return Object(s.a)(t,e),Object(o.a)(t,[{key:"_getTransitionProps",value:function(){return b}},{key:"_onPanRotate",value:function(e){if(!this.dragRotate)return!1;var t=e.deltaX,n=e.deltaY,r=this.getCenter(e),i=Object(a.a)(r,2)[1],o=i-n,l=this.controllerState.getViewportProps(),u=l.width,s=l.height,c=t/u,d=0;n>0?Math.abs(s-o)>5&&(d=n/(o-s)*1.2):n<0&&o>5&&(d=1-i/o),d=Math.min(1,Math.max(-1,d));var f=this.controllerState.rotate({deltaScaleX:c,deltaScaleY:d});return this.updateViewport(f,A,{isDragging:!0,isRotating:!0})}}]),t}(d.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(24),a=n(26),i=n(44),o=n(81),l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e),Array.isArray(t)&&(t={compare:t,extract:t,required:t});var n=t,a=n.compare,i=n.extract,o=n.required;this._propsToCompare=a,this._propsToExtract=i,this._requiredProps=o}return Object(a.a)(e,[{key:"arePropsEqual",value:function(e,t){var n=!0,r=!1,a=void 0;try{for(var o,l=(this._propsToCompare||Object.keys(t))[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var u=o.value;if(!(u in e)||!(u in t)||!Object(i.f)(e[u],t[u]))return!1}}catch(e){r=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw a}}return!0}},{key:"initializeProps",value:function(e,t){var n;if(this._propsToExtract){var r={},a={},i=!0,o=!1,l=void 0;try{for(var u,s=this._propsToExtract[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){var c=u.value;r[c]=e[c],a[c]=t[c]}}catch(e){o=!0,l=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}n={start:r,end:a}}else n={start:e,end:t};return this._checkRequiredProps(n.start),this._checkRequiredProps(n.end),n}},{key:"interpolateProps",value:function(e,t,n){return t}},{key:"getDuration",value:function(e,t){return t.transitionDuration}},{key:"_checkRequiredProps",value:function(e){this._requiredProps&&this._requiredProps.forEach((function(t){var n=e[t];Object(o.a)(Number.isFinite(n)||Array.isArray(n),"".concat(t," is required for transition"))}))}}]),e}()},function(e,t,n){"use strict";var r=n(485),a=n(65),i=n(222),o=n(202);t.a=function(){var e=o.a,t=o.b,n=Object(a.a)(!0),l=null,u=i.a,s=null;function c(a){var i,o,c,d=a.length,f=!1;for(null==l&&(s=u(c=Object(r.a)())),i=0;i<=d;++i)!(i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ve}));var r=n(84),a=n(24),i=n(26),o=n(47),l=n(38),u=n(48),s=n(54),c=n(450),d=n(63),f=n(125),p=n(44),h=n(187),m=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"_onUpdate",value:function(){var e=this.time,t=this.settings,n=t.fromValue,r=t.toValue,a=t.duration,i=(0,t.easing)(e/a);this._value=Object(p.g)(n,r,i)}},{key:"value",get:function(){return this._value}}]),t}(h.a);function g(e,t,n,r,a){var i=t-e;return(n-t)*a+-i*r+i+t}function v(e,t){if(Array.isArray(e)){for(var n=0,r=0;r0}}]),e}(),E=n(347),x=n(442),M=n(104),w=n(25),S=n(81),T=n(198),C=n(438),L=n(353),P=n(201),k=n(105),D=n(137),R=n(153),j={boolean:{validate:function(e,t){return!0},equal:function(e,t,n){return Boolean(e)===Boolean(t)}},number:{validate:function(e,t){return Number.isFinite(e)&&(!("max"in t)||e<=t.max)&&(!("min"in t)||e>=t.min)}},color:{validate:function(e,t){return t.optional&&!e||B(e)&&(3===e.length||4===e.length)},equal:function(e,t,n){return I(e,t)}},accessor:{validate:function(e,t){var n=z(e);return"function"===n||n===z(t.value)},equal:function(e,t,n){return"function"==typeof t||I(e,t)}},array:{validate:function(e,t){return t.optional&&!e||B(e)},equal:function(e,t,n){return n.compare?I(e,t):e===t}},function:{validate:function(e,t){return t.optional&&!e||"function"==typeof e},equal:function(e,t,n){return!n.compare||e===t}}};function I(e,t){if(e===t)return!0;if(!B(e)||!B(t))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;Object(a.a)(this,e),this.component=t,this.asyncProps={},this.onAsyncPropUpdated=function(){},this.oldProps=re,this.oldAsyncProps=null}var t,n;return Object(i.a)(e,[{key:"getOldProps",value:function(){return this.oldAsyncProps||this.oldProps}},{key:"resetOldProps",value:function(){this.oldAsyncProps=null,this.oldProps=this.component.props}},{key:"freezeAsyncOldProps",value:function(){if(!this.oldAsyncProps)for(var e in this.oldProps=this.oldProps||this.component.props,this.oldAsyncProps=Object.create(this.oldProps),this.asyncProps)Object.defineProperty(this.oldAsyncProps,e,{enumerable:!0,value:this.oldProps[e]})}},{key:"hasAsyncProp",value:function(e){return e in this.asyncProps}},{key:"getAsyncProp",value:function(e){var t=this.asyncProps[e];return t&&t.resolvedValue}},{key:"isAsyncPropLoading",value:function(e){if(e){var t=this.asyncProps[e];return Boolean(t&&t.pendingLoadCount>0&&t.pendingLoadCount!==t.resolvedLoadCount)}for(var n in this.asyncProps)if(this.isAsyncPropLoading(n))return!0;return!1}},{key:"reloadAsyncProp",value:function(e,t){this._watchPromise(e,Promise.resolve(t))}},{key:"setAsyncProps",value:function(e){var t=e[te]||{},n=e[ee]||e,r=e[ne]||{};for(var a in t){var i=t[a];this._createAsyncPropData(a,i,r[a]),this._updateAsyncProp(a,i)}for(var o in n){var l=n[o];this._createAsyncPropData(o,l,r[o]),this._updateAsyncProp(o,l)}}},{key:"_updateAsyncProp",value:function(e,t){if(this._didAsyncInputValueChange(e,t)){if("string"==typeof t){var n=this.layer&&this.layer.props.fetch;n&&(t=n(t,{propName:e,layer:this.layer}))}t instanceof Promise?this._watchPromise(e,t):Object(D.c)(t)?this._resolveAsyncIterable(e,t):this._setPropValue(e,t)}}},{key:"_didAsyncInputValueChange",value:function(e,t){var n=this.asyncProps[e];return t!==n.lastValue&&(n.lastValue=t,!0)}},{key:"_setPropValue",value:function(e,t){var n=this.asyncProps[e];n.value=t,n.resolvedValue=t,n.pendingLoadCount++,n.resolvedLoadCount=n.pendingLoadCount}},{key:"_setAsyncPropValue",value:function(e,t,n){var r=this.asyncProps[e];r&&n>=r.resolvedLoadCount&&void 0!==t&&(this.freezeAsyncOldProps(),r.resolvedValue=t,r.resolvedLoadCount=n,this.onAsyncPropUpdated(e,t))}},{key:"_watchPromise",value:function(e,t){var n=this,r=this.asyncProps[e];r.pendingLoadCount++;var a=r.pendingLoadCount;t.then((function(t){t=n._postProcessValue(e,t),n._setAsyncPropValue(e,t,a);var r=n.layer&&n.layer.props.onDataLoad;"data"===e&&r&&r(t,{propName:e,layer:n.layer})})).catch((function(e){return b.a.error(e)()}))}},{key:"_resolveAsyncIterable",value:(t=J.a.mark((function e(t,n){var r,a,i,o,l,u,s,c,d,f,p,h;return J.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"data"!==t&&this._setPropValue(t,n),(r=this.asyncProps[t]).pendingLoadCount++,a=r.pendingLoadCount,i=[],o=0,l=!0,u=!1,e.prev=8,c=$(n);case 10:return e.next=12,c.next();case 12:return d=e.sent,l=d.done,e.next=16,d.value;case 16:if(f=e.sent,l){e.next=26;break}p=f,i=this._postProcessValue(t,p,i),Object.defineProperty(i,"__diff",{enumerable:!1,value:[{startRow:o,endRow:i.length}]}),o=i.length,this._setAsyncPropValue(t,i,a);case 23:l=!0,e.next=10;break;case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(8),u=!0,s=e.t0;case 32:if(e.prev=32,e.prev=33,l||null==c.return){e.next=37;break}return e.next=37,c.return();case 37:if(e.prev=37,!u){e.next=40;break}throw s;case 40:return e.finish(37);case 41:return e.finish(32);case 42:(h=this.layer&&this.layer.props.onDataLoad)&&h(i,{propName:t,layer:this.layer});case 44:case"end":return e.stop()}}),e,this,[[8,28,32,42],[33,,37,41]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){Q(i,r,a,o,l,"next",e)}function l(e){Q(i,r,a,o,l,"throw",e)}o(void 0)}))},function(e,t){return n.apply(this,arguments)})},{key:"_postProcessValue",value:function(e,t,n){var r=(this.component?this.component.props:{}).dataTransform;return"data"!==e?t:r?r(t,n):n?n.concat(t):t}},{key:"_createAsyncPropData",value:function(e,t,n){this.asyncProps[e]||(this.asyncProps[e]={lastValue:null,resolvedValue:n,pendingLoadCount:0,resolvedLoadCount:0})}}]),e}(),ie=k.b.ASYNC_ORIGINAL,oe=k.b.ASYNC_RESOLVED,le=k.b.ASYNC_DEFAULTS,ue=0,se=function(){function e(){Object(a.a)(this,e),this.props=W.apply(this,arguments),this.id=this.props.id,this.count=ue++,this.lifecycle=k.a.NO_STATE,this.parent=null,this.context=null,this.state=null,this.internalState=null,Object.seal(this)}return Object(i.a)(e,[{key:"clone",value:function(e){var t=this.props,n={};for(var r in t[le])r in t[oe]?n[r]=t[oe][r]:r in t[ie]&&(n[r]=t[ie][r]);return new this.constructor(Object.assign({},t,n,e))}},{key:"_initState",value:function(){this.internalState=new ae({})}},{key:"stats",get:function(){return this.internalState.stats}}]),e}();se.componentName="Component",se.defaultProps={};var ce=function(e){function t(e){var n,r=e.attributeManager,i=e.layer;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(l.a)(t).call(this,i))).attributeManager=r,n.model=null,n.needsRedraw=!0,n.subLayers=null,n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"layer",get:function(){return this.component},set:function(e){this.component=e}}]),t}(ae),de=n(92),fe=n(827),pe=Object.freeze([]),he=Object(T.a)((function(e){var t=e.oldViewport,n=e.viewport;return t.equals(n)})),me=new Uint8ClampedArray(0),ge={data:{type:"data",value:pe,async:!0},dataComparator:null,_dataDiff:{type:"function",value:function(e){return e&&e.__diff},compare:!1,optional:!0},dataTransform:{type:"function",value:null,compare:!1,optional:!0},onDataLoad:{type:"function",value:null,compare:!1,optional:!0},fetch:{type:"function",value:function(e,t){var n=t.propName,r=t.layer,a=r.context.resourceManager,i=r.getLoadOptions(),o=a.contains(e);return o||i||(a.add({resourceId:e,data:e,persistent:!1}),o=!0),o?a.subscribe({resourceId:e,onChange:function(e){return r.internalState.reloadAsyncProp(n,e)},consumerId:r.id,requestId:n}):Object(fe.a)(e,i)},compare:!1},updateTriggers:{},visible:!0,pickable:!1,opacity:{type:"number",min:0,max:1,value:1},onHover:{type:"function",value:null,compare:!1,optional:!0},onClick:{type:"function",value:null,compare:!1,optional:!0},onDragStart:{type:"function",value:null,compare:!1,optional:!0},onDrag:{type:"function",value:null,compare:!1,optional:!0},onDragEnd:{type:"function",value:null,compare:!1,optional:!0},coordinateSystem:s.a.DEFAULT,coordinateOrigin:{type:"array",value:[0,0,0],compare:!0},modelMatrix:{type:"array",value:null,compare:!0,optional:!0},wrapLongitude:!1,positionFormat:"XYZ",colorFormat:"RGBA",parameters:{},uniforms:{},extensions:[],getPolygonOffset:{type:"function",value:function(e){return[0,100*-e.layerIndex]},compare:!1},highlightedObjectIndex:null,autoHighlight:!1,highlightColor:{type:"accessor",value:[0,0,128,128]}},ve=function(e){function t(){return Object(a.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"toString",value:function(){var e=this.constructor.layerName||this.constructor.name;return"".concat(e,"({id: '").concat(this.props.id,"'})")}},{key:"setState",value:function(e){this.setChangeFlags({stateChanged:!0}),Object.assign(this.state,e),this.setNeedsRedraw()}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.internalState&&(this.internalState.needsRedraw=e)}},{key:"setNeedsUpdate",value:function(){this.context.layerManager.setNeedsUpdate(String(this)),this.internalState.needsUpdate=!0}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clearRedrawFlags:!1};return this._getNeedsRedraw(e)}},{key:"needsUpdate",value:function(){return this.internalState.needsUpdate||this.hasUniformTransition()||this.shouldUpdateState(this._getUpdateParams())}},{key:"hasUniformTransition",value:function(){return this.internalState.uniformTransitions.active}},{key:"isPickable",value:function(){return this.props.pickable&&this.props.visible}},{key:"getModels",value:function(){return this.state&&(this.state.models||(this.state.model?[this.state.model]:[]))}},{key:"getAttributeManager",value:function(){return this.internalState&&this.internalState.attributeManager}},{key:"getCurrentLayer",value:function(){return this.internalState&&this.internalState.layer}},{key:"getLoadOptions",value:function(){return this.props.loadOptions}},{key:"project",value:function(e){var t=this.context.viewport,n=Object(L.a)(e,{viewport:t,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem}),a=Object(de.n)(n,t.pixelProjectionMatrix),i=Object(r.a)(a,3),o=i[0],l=i[1],u=i[2];return 2===e.length?[o,l]:[o,l,u]}},{key:"unproject",value:function(e){return this.context.viewport.unproject(e)}},{key:"projectPosition",value:function(e){return Object(L.b)(e,{viewport:this.context.viewport,modelMatrix:this.props.modelMatrix,coordinateOrigin:this.props.coordinateOrigin,coordinateSystem:this.props.coordinateSystem})}},{key:"use64bitPositions",value:function(){var e=this.props.coordinateSystem;return e===s.a.DEFAULT||e===s.a.LNGLAT||e===s.a.CARTESIAN}},{key:"onHover",value:function(e,t){return!!this.props.onHover&&this.props.onHover(e,t)}},{key:"onClick",value:function(e,t){return!!this.props.onClick&&this.props.onClick(e,t)}},{key:"nullPickingColor",value:function(){return[0,0,0]}},{key:"encodePickingColor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t[0]=e+1&255,t[1]=e+1>>8&255,t[2]=e+1>>8>>8&255,t}},{key:"decodePickingColor",value:function(e){Object(S.a)(e instanceof Uint8Array);var t=Object(r.a)(e,3);return t[0]+256*t[1]+65536*t[2]-1}},{key:"initializeState",value:function(){throw new Error("Layer ".concat(this," has not defined initializeState"))}},{key:"getShaders",value:function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=this.props.extensions[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;e=Object(C.a)(e,o.getShaders.call(this,o))}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}return e}},{key:"shouldUpdateState",value:function(e){e.oldProps,e.props,e.context;return e.changeFlags.propsOrDataChanged}},{key:"updateState",value:function(e){e.oldProps,e.props,e.context;var t=e.changeFlags,n=this.getAttributeManager();if(t.dataChanged&&n){var r=t.dataChanged;if(Array.isArray(r)){var a=!0,i=!1,o=void 0;try{for(var l,u=r[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value;n.invalidateAll(s)}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}}else n.invalidateAll()}}},{key:"finalizeState",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,a=this.getModels()[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){r.value.delete()}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}var i=this.getAttributeManager();i&&i.finalize(),this.context.resourceManager.unsubscribe({consumerId:this.id}),this.internalState.uniformTransitions.clear()}},{key:"draw",value:function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=this.getModels()[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){a.value.draw(e)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}},{key:"getPickingInfo",value:function(e){var t=e.info,n=(e.mode,t.index);return n>=0&&Array.isArray(this.props.data)&&(t.object=this.props.data[n]),t}},{key:"activateViewport",value:function(e){var t=this.internalState.viewport;this.internalState.viewport=e,t&&he({oldViewport:t,viewport:e})||(this.setChangeFlags({viewportChanged:!0}),this._update())}},{key:"invalidateAttribute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",t=this.getAttributeManager();t&&("all"===e?t.invalidateAll():t.invalidate(e))}},{key:"updateAttributes",value:function(e){var t=!0,n=!1,r=void 0;try{for(var a,i=this.getModels()[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;this._setModelAttributes(o,e)}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}},{key:"_updateAttributes",value:function(e){var t=this.getAttributeManager();if(t){var n=this.getNumInstances(e),r=this.getStartIndices(e);t.update({data:e.data,numInstances:n,startIndices:r,props:e,transitions:e.transitions,buffers:e.data.attributes,context:this,ignoreUnknownAttributes:!0});var a=t.getChangedAttributes({clearChangedFlags:!0});this.updateAttributes(a)}}},{key:"_updateAttributeTransition",value:function(){var e=this.getAttributeManager();e&&e.updateTransition()}},{key:"_updateUniformTransition",value:function(){var e=this.internalState.uniformTransitions;if(e.active){var t=e.update(),n=Object.create(this.props);for(var r in t)Object.defineProperty(n,r,{value:t[r]});return n}return this.props}},{key:"calculateInstancePickingColors",value:function(e,t){var n=t.numInstances,r=me.length/3;if(r=0?this.encodePickingColor(a):null),this.setModuleParameters(o)}}},{key:"_getUpdateParams",value:function(){return{props:this.props,oldProps:this.internalState.getOldProps(),context:this.context,changeFlags:this.internalState.changeFlags}}},{key:"_getNeedsRedraw",value:function(e){if(!this.internalState)return!1;var t=!1;t=t||this.internalState.needsRedraw&&this.id,this.internalState.needsRedraw=this.internalState.needsRedraw&&!e.clearRedrawFlags;var n=this.getAttributeManager(),r=n&&n.getNeedsRedraw(e);return t=t||r}},{key:"_getAttributeManager",value:function(){return new c.a(this.context.gl,{id:this.props.id,stats:this.context.stats,timeline:this.context.timeline})}},{key:"_initState",value:function(){Object(S.a)(!this.internalState&&!this.state),Object(S.a)(isFinite(this.props.coordinateSystem),"".concat(this.id,": invalid coordinateSystem"));var e=this._getAttributeManager();e&&e.addInstanced({instancePickingColors:{type:5121,size:3,noAlloc:!0,update:this.calculateInstancePickingColors}}),this.internalState=new ce({attributeManager:e,layer:this}),this.clearChangeFlags(),this.state={},Object.defineProperty(this.state,"attributeManager",{get:function(){return b.a.deprecated("layer.state.attributeManager","layer.getAttributeManager()"),e}}),this.internalState.layer=this,this.internalState.uniformTransitions=new O(this.context.timeline),this.internalState.onAsyncPropUpdated=this._onAsyncPropUpdated.bind(this),this.internalState.setAsyncProps(this.props)}},{key:"_transferState",value:function(e){Object(M.a)("layer.matched",this,this===e);var t=e.state,n=e.internalState;Object(S.a)(t&&n),this!==e&&(this.internalState=n,this.internalState.layer=this,this.state=t,this.internalState.setAsyncProps(this.props),this.diffProps(this.props,this.internalState.getOldProps()))}},{key:"_onAsyncPropUpdated",value:function(){this.diffProps(this.props,this.internalState.getOldProps()),this.setNeedsUpdate()}},{key:"isLoaded",get:function(){return this.internalState&&!this.internalState.isAsyncPropLoading()}},{key:"wrapLongitude",get:function(){return this.props.wrapLongitude}}]),t}(se);ve.layerName="Layer",ve.defaultProps=ge},function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(29),u=n(18),s=n(848),c=n(1949),d=n(847),f=n(54),p=n(298),h=n(1900),m=n(655),g=n(478),v=n(164),y=n(2),b=n(355),A=n(849),_=n(321);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var E=function(e){function t(e){Object(r.a)(this,t);var n=e.fp64,a=e.IndexType,l=void 0===a?Uint32Array:a;return Object(i.a)(this,Object(o.a)(t).call(this,function(e){for(var t=1;t2?o[u*i+2]:0;a[3*l]=s,a[3*l+1]=c,a[3*l+2]=d}}},{key:"_updateVertexValid",value:function(e,t){var n=t.vertexStart,r=t.geometrySize,a=this.attributes.vertexValid,i=this.positionSize,o=e&&e.holeIndices;if(e&&e.edgeTypes?a.set(e.edgeTypes,n):a.fill(1,n,n+r),o)for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:{},t={};e.maxConcurrency&&(t.maxConcurrency=e.maxConcurrency);e.onDebug&&(t.onDebug=e.onDebug);v||(v=new f.a({onMessage:y}));return v.setProps(t),v}(n);n=JSON.parse(JSON.stringify(n));var c="2.3.5"!==e.version?"(core version ".concat("2.3.5",")"):"";return s.process(l,"".concat(u,"-worker@").concat(e.version).concat(c),{arraybuffer:Object(p.d)(t),options:n,source:"loaders.gl@".concat("2.3.5"),type:"parse"})}var v=null;function y(e){return b.apply(this,arguments)}function b(){return(b=Object(i.a)(a.a.mark((function e(t){var n,r,i,o,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.worker,r=t.data,i=t.resolve,o=t.reject,e.t0=r.type,e.next="done"===e.t0?4:"parse"===e.t0?6:"error"===e.t0?17:19;break;case 4:return i(r.result),e.abrupt("break",19);case 6:return e.prev=6,e.next=9,O(r.arraybuffer,r.options,r.url);case 9:l=e.sent,n.postMessage({type:"parse-done",id:r.id,result:l},Object(h.a)(l)),e.next=16;break;case 13:e.prev=13,e.t1=e.catch(6),n.postMessage({type:"parse-error",id:r.id,message:e.t1.message});case 16:return e.abrupt("break",19);case 17:return o(r.message),e.abrupt("break",19);case 19:case"end":return e.stop()}}),e,null,[[6,13]])})))).apply(this,arguments)}var A=n(165),_=n(197);function O(e,t,n,r){return E.apply(this,arguments)}function E(){return(E=Object(i.a)(a.a.mark((function e(t,n,r,i){var l,c,f,p;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(o.a)(!i||"string"!=typeof i,"parse no longer accepts final url"),!n||Array.isArray(n)||Object(u.a)(n)||(i=r,r=n,n=null),e.next=4,t;case 4:return t=e.sent,r=r||{},l=Object(A.b)(t),c=l.url,f=Object(d.b)(n,i),e.next=10,Object(_.a)(t,f,r);case 10:if(p=e.sent){e.next=13;break}return e.abrupt("return",null);case 13:return r=Object(s.c)(r,p,f,c),i=Object(d.a)({url:c,parse:O,loaders:f},r,i),e.next=17,x(p,t,r,i);case 17:return e.abrupt("return",e.sent);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e,t,n,r){return M.apply(this,arguments)}function M(){return(M=Object(i.a)(a.a.mark((function e(t,n,r,i){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(l.a)(t),e.next=3,Object(c.a)(n,t);case 3:if(n=e.sent,!t.parseTextSync||"string"!=typeof n){e.next=7;break}return r.dataType="text",e.abrupt("return",t.parseTextSync(n,r,i,t));case 7:if(!m(t,0,r)){e.next=11;break}return e.next=10,g(t,n,r);case 10:return e.abrupt("return",e.sent);case 11:if(!t.parseText||"string"!=typeof n){e.next=15;break}return e.next=14,t.parseText(n,r,i,t);case 14:return e.abrupt("return",e.sent);case 15:if(!t.parse){e.next=19;break}return e.next=18,t.parse(n,r,i,t);case 18:return e.abrupt("return",e.sent);case 19:return Object(o.a)(!t.parseSync),e.abrupt("return",Object(o.a)(!1));case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){return et?1:e>=t?0:NaN}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));var r=n(22),a=n(64),i=n(54),o=n(198),l=n(81),u=[0,0,0,0],s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],d=[0,0,0],f=[0,0,0],p=Object(o.a)((function(e){var t=e.viewport,n=e.devicePixelRatio,o=e.coordinateSystem,l=e.coordinateOrigin,c=function(e,t,n){var i=e.viewMatrixUncentered,o=e.projectionMatrix,l=e.viewMatrix,c=e.viewProjectionMatrix,d=u,f=e.cameraPosition,p=h(e,t,n),m=p.geospatialOrigin,g=p.shaderCoordinateOrigin;if(p.offsetMode){var v=e.projectPosition(m||g);f=[f[0]-v[0],f[1]-v[1],f[2]-v[2]],v[3]=1,d=a.n([],v,c),l=i||l,c=r.h([],o,l),c=r.h([],c,s)}return{viewMatrix:l,viewProjectionMatrix:c,projectionCenter:d,cameraPosCommon:f,shaderCoordinateOrigin:g,geospatialOrigin:m}}(t,o,l),f=c.projectionCenter,p=c.viewProjectionMatrix,m=c.cameraPosCommon,g=c.shaderCoordinateOrigin,v=c.geospatialOrigin,y=t.getDistanceScales(),b=[t.width*n,t.height*n],A={project_uCoordinateSystem:o,project_uProjectionMode:t.projectionMode,project_uCoordinateOrigin:g,project_uCenter:f,project_uAntimeridian:(t.longitude||0)-180,project_uViewportSize:b,project_uDevicePixelRatio:n,project_uFocalDistance:t.focalDistance||1,project_uCommonUnitsPerMeter:y.unitsPerMeter,project_uCommonUnitsPerWorldUnit:y.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:d,project_uScale:t.scale,project_uViewProjectionMatrix:p,project_uCameraPosition:m};if(v){var _=t.getDistanceScales(v);switch(o){case i.a.METER_OFFSETS:A.project_uCommonUnitsPerWorldUnit=_.unitsPerMeter,A.project_uCommonUnitsPerWorldUnit2=_.unitsPerMeter2;break;case i.a.LNGLAT:case i.a.LNGLAT_OFFSETS:A.project_uCommonUnitsPerWorldUnit=_.unitsPerDegree,A.project_uCommonUnitsPerWorldUnit2=_.unitsPerDegree2;break;case i.a.CARTESIAN:A.project_uCommonUnitsPerWorldUnit=[1,1,_.unitsPerMeter[2]],A.project_uCommonUnitsPerWorldUnit2=[0,0,_.unitsPerMeter2[2]]}}return A}));function h(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,a=r,o=!0;switch(n=t===i.a.LNGLAT_OFFSETS||t===i.a.METER_OFFSETS?r:e.isGeospatial?[Math.fround(e.longitude),Math.fround(e.latitude),0]:null,e.projectionMode){case i.c.WEB_MERCATOR:t!==i.a.LNGLAT&&t!==i.a.CARTESIAN||(o=!1);break;case i.c.WEB_MERCATOR_AUTO_OFFSET:t===i.a.LNGLAT?a=n:t===i.a.CARTESIAN&&(a=[Math.fround(e.center[0]),Math.fround(e.center[1]),0],n=e.unprojectPosition(a),a[0]-=r[0],a[1]-=r[1],a[2]-=r[2]);break;case i.c.IDENTITY:a=e.position.map(Math.fround);break;case i.c.GLOBE:o=!1;break;default:o=!1}return a[2]=a[2]||0,{geospatialOrigin:n,shaderCoordinateOrigin:a,offsetMode:o}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.viewport,n=e.devicePixelRatio,r=void 0===n?1:n,a=e.modelMatrix,o=void 0===a?null:a,u=e.coordinateSystem,s=void 0===u?i.a.DEFAULT:u,d=e.coordinateOrigin,f=e.autoWrapLongitude,h=void 0!==f&&f;e.projectionMode,e.positionOrigin;Object(l.a)(t),s===i.a.DEFAULT&&(s=t.isGeospatial?i.a.LNGLAT:i.a.CARTESIAN);var m=p({viewport:t,devicePixelRatio:r,coordinateSystem:s,coordinateOrigin:d});return m.project_uWrapLongitude=h,m.project_uModelMatrix=o||c,m}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(24),a=n(26),i=n(81),o=function(){function e(t){Object(r.a)(this,e),Object(i.a)(Number.isFinite(t.width),"`width` must be supplied"),Object(i.a)(Number.isFinite(t.height),"`height` must be supplied"),this._viewportProps=this._applyConstraints(t)}return Object(a.a)(e,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"shortestPathFrom",value:function(e){return this._viewportProps}},{key:"_applyConstraints",value:function(e){return e}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(11),a=n(12),i=n(18),o=n(19),l=n(14),u=n(480),s=n(70),c=n(138);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var f=function(e){Object(i.a)(n,e);var t=d(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"from",value:function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}},{key:"fromArray",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n0?", ":"")+Object(s.e)(this[n],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(t,"]")}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={shadow_uDrawShadowMap:Boolean(e.drawToShadowMap),shadow_uUseShadowMap:!!e.shadowMaps&&e.shadowMaps.length>0,shadow_uColor:e.shadowColor||h,shadow_uLightId:e.shadowLightId||0,shadow_uLightCount:e.shadowMatrices.length},r=f({viewport:e.viewport,center:t.project_uCenter}),a=[],i=p({shadowMatrices:e.shadowMatrices,viewport:e.viewport}).slice(),o=0;o0?n["shadow_uShadowMap".concat(d)]=e.shadowMaps[d]:n["shadow_uShadowMap".concat(d)]=e.dummyShadowMap;return n}t.a={name:"shadow",dependencies:[u.a],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.drawToShadowMap||e.shadowMaps&&e.shadowMaps.length>0){var n={},r=e.shadowEnabled,a=void 0===r||r;return a&&e.shadowMatrices&&e.shadowMatrices.length>0?Object.assign(n,g(e,t)):Object.assign(n,{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1}),n}return{}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(13),a=n.n(r),i=a.a.mark(o);function o(e){var t,n,r,o,l,u,s,c=arguments;return a.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=c.length>1&&void 0!==c[1]?c[1]:{},n=t.chunkSize,r=void 0===n?262144:n,o=0,l=new TextEncoder;case 4:if(!(o1&&void 0!==c[1]?c[1]:{},n=t.chunkSize,r=void 0===n?262144:n,i=0;case 3:if(!(i=10){if("function"==typeof e[Symbol.asyncIterator])return function(e){return y.apply(this,arguments)}(e);if("function"==typeof e.getIterator)return e.getIterator()}return m.c?function(e){return b.apply(this,arguments)}(e):function(e){return A.apply(this,arguments)}(e)}function y(){return(y=Object(p.a)(a.a.mark((function e(t){var n,r,i,o,l,u,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!0,r=!1,e.prev=2,o=Object(h.a)(t);case 4:return e.next=6,Object(f.a)(o.next());case 6:return l=e.sent,n=l.done,e.next=10,Object(f.a)(l.value);case 10:if(u=e.sent,n){e.next=18;break}return s=u,e.next=15,Object(g.d)(s);case 15:n=!0,e.next=4;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(2),r=!0,i=e.t0;case 24:if(e.prev=24,e.prev=25,n||null==o.return){e.next=29;break}return e.next=29,Object(f.a)(o.return());case 29:if(e.prev=29,!r){e.next=32;break}throw i;case 32:return e.finish(29);case 33:return e.finish(24);case 34:case"end":return e.stop()}}),e,null,[[2,20,24,34],[25,,29,33]])})))).apply(this,arguments)}function b(){return(b=Object(p.a)(a.a.mark((function e(t){var n,r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.getReader(),e.prev=1;case 2:return e.next=5,Object(f.a)(n.read());case 5:if(r=e.sent,i=r.done,o=r.value,!i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Object(g.d)(o);case 12:e.next=2;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),n.releaseLock();case 19:case"end":return e.stop()}}),e,null,[[1,16]])})))).apply(this,arguments)}function A(){return(A=Object(p.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.a)(t);case 2:t=e.sent;case 3:if(null===(n=t.read())){e.next=9;break}return e.next=8,Object(g.d)(n);case 8:return e.abrupt("continue",3);case 9:if(!t._readableState.ended){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,Object(f.a)(_(t));case 13:e.next=3;break;case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return O.apply(this,arguments)}function O(){return(O=Object(d.a)(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.once("readable",e)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var E=n(66);function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?o(e,t):e instanceof ArrayBuffer?u(e,t):Object(E.b)(e)?Object(s.a)(e,t):Object(E.i)(e)?v(e):Object(E.j)(e)?v(e.body):Object(c.a)(!1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(11),a=n(19),i=n(14),o=n(20),l=n(12),u=n(18),s=n(152),c=n(173),d=n(73),f="";function p(e,t){return Object(d.a)("string"==typeof e),e=f+e,new Promise((function(n,r){try{var a=new Image;a.onload=function(){return n(a)},a.onerror=function(){return r(new Error("Could not load image ".concat(e,".")))},a.crossOrigin=t&&t.crossOrigin||"anonymous",a.src=e}catch(e){r(e)}}))}var h=function(e){function t(e){var n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)(this,t),Object(c.b)(e),(l instanceof Promise||"string"==typeof l)&&(l={data:l}),"string"==typeof l.data&&(l=Object.assign({},l,{data:p(l.data)})),(n=Object(a.a)(this,Object(i.a)(t).call(this,e,Object.assign({},l,{target:3553})))).initialize(l),Object.seal(Object(o.a)(n)),n}return Object(u.a)(t,e),Object(l.a)(t,null,[{key:"isSupported",value:function(e,t){return s.a.isSupported(e,t)}}]),t}(s.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(301);function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function i(e,t,n){return(i=a()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return n&&Object(r.a)(i,n.prototype),i}).apply(null,arguments)}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t()=>e},function(e,t){ +/* @license +Papa Parse +v5.0.0-beta.0 +https://github.com/mholt/PapaParse +License: MIT +*/ +var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},r={};function a(e){this._handle=null,this._finished=!1,this._completed=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=s(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new o(t),this._handle.streamer=this,this._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&c(this._config.beforeFirstChunk)){var n=this._config.beforeFirstChunk(e);void 0!==n&&(e=n)}this.isFirstChunk=!1;var r=this._partialLine+e;this._partialLine="";var a=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var i=a.meta.cursor;this._finished||(this._partialLine=r.substring(i-this._baseIndex),this._baseIndex=i),a&&a.data&&(this._rowCount+=a.data.length);var o=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(c(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!o||!c(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),o||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){c(this._config.error)&&this._config.error(e)}}function i(e){var t;e=e||{},a.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,n=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(n)}}}function o(e){var t,n,a,i=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,o=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,d=this,f=0,p=0,h=!1,m=!1,g=[],v={data:[],errors:[],meta:{}};if(c(e.step)){var y=e.step;e.step=function(t){if(v=t,_())A();else{if(A(),0===v.data.length)return;f+=t.data.length,e.preview&&f>e.preview?n.abort():y(v,d)}}}function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function A(){if(v&&a&&(E("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+r.DefaultDelimiter+"'"),a=!1),e.skipEmptyLines)for(var t=0;t=g.length?"__parsed_extra":g[r]),e.transform&&(o=e.transform(o,i)),o=O(i,o),"__parsed_extra"===i?(a[i]=a[i]||[],a[i].push(o)):a[i]=o}return e.header&&(r>g.length?E("FieldMismatch","TooManyFields","Too many fields: expected "+g.length+" fields but parsed "+r,p+n):r1&&a[0].length=r.length/2?"\r\n":"\r"}(i,f)),a=!1,e.delimiter)c(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter);else{var p=function(t,n,a,i,o){var l,s,c;o=o||[",","\t","|",";",r.RECORD_SEP,r.UNIT_SEP];for(var d=0;d1&&(p+=Math.abs(y-c),c=y):c=0}g.data.length>0&&(h/=g.data.length-m),(void 0===s||p>s)&&h>1.99&&(s=p,l=f)}return e.delimiter=l,{successful:!!l,bestDelimiter:l}}(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);p.successful?e.delimiter=p.bestDelimiter:(a=!0,e.delimiter=r.DefaultDelimiter),v.meta.delimiter=e.delimiter}var m=s(e);return e.preview&&e.header&&m.preview++,t=i,n=new u(m),v=n.parse(t,o,d),A(),h?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,n.abort(),t=t.substr(n.getCharIndex())},this.resume=function(){h=!1,d.streamer.parseChunk(t,!0)},this.aborted=function(){return m},this.abort=function(){m=!0,n.abort(),v.meta.aborted=!0,c(e.complete)&&e.complete(v),t=""}}function l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(e){var t,n=(e=e||{}).delimiter,a=e.newline,i=e.comments,o=e.step,u=e.preview,s=e.fastMode,d=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof n||r.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||r.BAD_DELIMITERS.indexOf(i)>-1)&&(i=!1),"\n"!==a&&"\r"!==a&&"\r\n"!==a&&(a="\n");var f=0,p=!1;this.parse=function(e,r,h){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,g=n.length,v=a.length,y=i.length,b=c(o);f=0;var A=[],_=[],O=[],E=0;if(!e)return I();if(s||!1!==s&&-1===e.indexOf(t)){for(var x=e.split(a),M=0;M=u)return A=A.slice(0,u),I(!0)}}return I()}for(var w,S=e.indexOf(n,f),T=e.indexOf(a,f),C=new RegExp(l(d)+l(t),"g");;)if(e[f]!==t)if(i&&0===O.length&&e.substr(f,y)===i){if(-1===T)return I();f=T+v,T=e.indexOf(a,f),S=e.indexOf(n,f)}else if(-1!==S&&(S=u)return I(!0)}else for(w=f,f++;;){if(-1===(w=e.indexOf(t,w+1)))return h||_.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:A.length,index:f}),R();if(w===m-1)return R(e.substring(f,w).replace(C,t));if(t!==d||e[w+1]!==d){if(t===d||0===w||e[w-1]!==d){var L=D(-1===T?S:Math.min(S,T));if(e[w+1+L]===n){O.push(e.substring(f,w).replace(C,t)),f=w+1+L+g,S=e.indexOf(n,f),T=e.indexOf(a,f);break}var P=D(T);if(e.substr(w+1+P,v)===a){if(O.push(e.substring(f,w).replace(C,t)),j(w+1+P+v),S=e.indexOf(n,f),b&&(F(),p))return I();if(u&&A.length>=u)return I(!0);break}_.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:A.length,index:f}),w++}}else w++}return R();function k(e){A.push(e),E=f}function D(t){var n=0;if(-1!==t){var r=e.substring(w+1,t);r&&""===r.trim()&&(n=r.length)}return n}function R(t){return h||(void 0===t&&(t=e.substr(f)),O.push(t),f=m,k(O),b&&F()),I()}function j(t){f=t,k(O),O=[],T=e.indexOf(a,f)}function I(e,t){return{data:t||!1?A[0]:A,errors:_,meta:{delimiter:n,linebreak:a,aborted:p,truncated:!!e,cursor:E+(r||0)}}}function F(){o(I(void 0,!0)),A=[],_=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return f}}function s(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=s(e[n]);return t}function c(e){return"function"==typeof e}e.exports=r,r.parse=function(e,t,n){var a=(t=t||{}).dynamicTyping||!1;c(a)&&(t.dynamicTypingFunction=a,a={});if(t.dynamicTyping=a,t.transform=!!c(t.transform)&&t.transform,t.worker&&r.WORKERS_SUPPORTED){var o=newWorker();return o.userStep=t.step,o.userChunk=t.chunk,o.userComplete=t.complete,o.userError=t.error,t.step=c(t.step),t.chunk=c(t.chunk),t.complete=c(t.complete),t.error=c(t.error),delete t.worker,void o.postMessage({input:e,config:t,workerId:o.id})}var l=null;"string"==typeof e&&(l=new i(t));l||(l=new n(t));return l.stream(e)},r.unparse=function(e,t){var n=!1,a=!0,i=",",o="\r\n",u='"',s=u+u,c=!1,d=null;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||r.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(i=t.delimiter);("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines);"string"==typeof t.newline&&(o=t.newline);"string"==typeof t.quoteChar&&(u=t.quoteChar);"boolean"==typeof t.header&&(a=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(s=t.escapeChar+u)}();var f=new RegExp(l(u),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,c);if("object"==typeof e[0])return h(d||p(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:p(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function p(e){if("object"!=typeof e)return[];var t=[];for(var n in e)t.push(n);return t}function h(e,t,n){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var l=Array.isArray(e)&&e.length>0,u=!Array.isArray(t[0]);if(l&&a){for(var s=0;s0&&(r+=i),r+=m(e[s],s);t.length>0&&(r+=o)}for(var c=0;c0&&!p&&(r+=i);var b=l&&u?e[y]:y;r+=m(t[c][b],y)}c0&&!p)&&(r+=o)}}return r}function m(e,t){return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(e=e.toString().replace(f,s),"boolean"==typeof n&&n||Array.isArray(n)&&n[t]||function(e,t){for(var n=0;n-1)return!0;return!1}(e,r.BAD_DELIMITERS)||e.indexOf(i)>-1||" "===e.charAt(0)||" "===e.charAt(e.length-1)?u+e+u:e)}},r.RECORD_SEP=String.fromCharCode(30),r.UNIT_SEP=String.fromCharCode(31),r.BYTE_ORDER_MARK="\ufeff",r.BAD_DELIMITERS=["\r","\n",'"',r.BYTE_ORDER_MARK],r.WORKERS_SUPPORTED=!1,r.NODE_STREAM_INPUT=1,r.LocalChunkSize=10485760,r.RemoteChunkSize=5242880,r.DefaultDelimiter=",",r.Parser=u,r.ParserHandle=o,r.ChunkStreamer=a,r.StringStreamer=i,i.prototype=Object.create(i.prototype),i.prototype.constructor=i},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i + * Released under the Apache License, Version 2.0 + * see: https://github.com/dcodeIO/long.js for details + */a=[],void 0===(i="function"==typeof(r=function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var n={},r={};function a(e,t){var a,i,l;return t?(l=0<=(e>>>=0)&&e<256)&&(i=r[e])?i:(a=o(e,(0|e)<0?-1:0,!0),l&&(r[e]=a),a):(l=-128<=(e|=0)&&e<128)&&(i=n[e])?i:(a=o(e,e<0?-1:0,!1),l&&(n[e]=a),a)}function i(e,t){if(isNaN(e)||!isFinite(e))return t?m:h;if(t){if(e<0)return m;if(e>=d)return A}else{if(e<=-f)return _;if(e+1>=f)return b}return e<0?i(-e,t).neg():o(e%c|0,e/c|0,t)}function o(t,n,r){return new e(t,n,r)}e.fromInt=a,e.fromNumber=i,e.fromBits=o;var l=Math.pow;function u(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return h;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return u(e.substring(1),t,n).neg();for(var a=i(l(n,8)),o=h,s=0;s>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*c+(this.low>>>0):this.high*c+(this.low>>>0)},O.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},O.isOdd=function(){return 1==(1&this.low)},O.isEven=function(){return 0==(1&this.low)},O.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},O.eq=O.equals,O.notEquals=function(e){return!this.eq(e)},O.neq=O.notEquals,O.lessThan=function(e){return this.comp(e)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(e){return this.comp(e)<=0},O.lte=O.lessThanOrEqual,O.greaterThan=function(e){return this.comp(e)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(e){return this.comp(e)>=0},O.gte=O.greaterThanOrEqual,O.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(_)?_:this.not().add(g)},O.neg=O.negate,O.add=function(e){t(e)||(e=s(e));var n=this.high>>>16,r=65535&this.high,a=this.low>>>16,i=65535&this.low,l=e.high>>>16,u=65535&e.high,c=e.low>>>16,d=0,f=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,f+=(p+=a+c)>>>16,d+=(f+=r+u)>>>16,d+=n+l,o((p&=65535)<<16|(h&=65535),(d&=65535)<<16|(f&=65535),this.unsigned)},O.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},O.sub=O.subtract,O.multiply=function(e){if(this.isZero())return h;if(t(e)||(e=s(e)),e.isZero())return h;if(this.eq(_))return e.isOdd()?_:h;if(e.eq(_))return this.isOdd()?_:h;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(p)&&e.lt(p))return i(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,a=this.low>>>16,l=65535&this.low,u=e.high>>>16,c=65535&e.high,d=e.low>>>16,f=65535&e.low,m=0,g=0,v=0,y=0;return v+=(y+=l*f)>>>16,g+=(v+=a*f)>>>16,v&=65535,g+=(v+=l*d)>>>16,m+=(g+=r*f)>>>16,g&=65535,m+=(g+=a*d)>>>16,g&=65535,m+=(g+=l*c)>>>16,m+=n*f+r*d+a*c+l*u,o((v&=65535)<<16|(y&=65535),(m&=65535)<<16|(g&=65535),this.unsigned)},O.mul=O.multiply,O.divide=function(e){if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?m:h;var n,r,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return m;if(e.gt(this.shru(1)))return v;a=m}else{if(this.eq(_))return e.eq(g)||e.eq(y)?_:e.eq(_)?g:(n=this.shr(1).div(e).shl(1)).eq(h)?e.isNegative()?g:y:(r=this.sub(e.mul(n)),a=n.add(r.div(e)));if(e.eq(_))return this.unsigned?m:h;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=h}for(r=this;r.gte(e);){n=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),u=o<=48?1:l(2,o-48),c=i(n),d=c.mul(e);d.isNegative()||d.gt(r);)d=(c=i(n-=u,this.unsigned)).mul(e);c.isZero()&&(c=g),a=a.add(c),r=r.sub(d)}return a},O.div=O.divide,O.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},O.mod=O.modulo,O.not=function(){return o(~this.low,~this.high,this.unsigned)},O.and=function(e){return t(e)||(e=s(e)),o(this.low&e.low,this.high&e.high,this.unsigned)},O.or=function(e){return t(e)||(e=s(e)),o(this.low|e.low,this.high|e.high,this.unsigned)},O.xor=function(e){return t(e)||(e=s(e)),o(this.low^e.low,this.high^e.high,this.unsigned)},O.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?o(this.low<>>32-e,this.unsigned):o(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):o(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),0==(e&=63))return this;var n=this.high;return e<32?o(this.low>>>e|n<<32-e,n>>>e,this.unsigned):o(32===e?n:n>>>e-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.toSigned=function(){return this.unsigned?o(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:o(this.low,this.high,!0)},O.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},O.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},e})?r.apply(t,a):r)||(e.exports=i)},function(e,t,n){e.exports=n(501)},function(e,t,n){"use strict";function r(e,t,n){const r=t[0],a=t[1],i=n[3]*r+n[7]*a||1;return e[0]=(n[0]*r+n[4]*a)/i,e[1]=(n[1]*r+n[5]*a)/i,e}function a(e,t,n){const r=t[0],a=t[1],i=t[2],o=n[3]*r+n[7]*a+n[11]*i||1;return e[0]=(n[0]*r+n[4]*a+n[8]*i)/o,e[1]=(n[1]*r+n[5]*a+n[9]*i)/o,e[2]=(n[2]*r+n[6]*a+n[10]*i)/o,e}function i(e,t,n){const r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a,e[1]=n[1]*r+n[3]*a,e[2]=t[2],e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l}));var r=n(119),a=n(171);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(String.fromCharCode(e.getUint8(t+0))).concat(String.fromCharCode(e.getUint8(t+1))).concat(String.fromCharCode(e.getUint8(t+2))).concat(String.fromCharCode(e.getUint8(t+3)))}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new DataView(e),a=n.magic,i=void 0===a?1735152710:a,o=r.getUint32(t,!1);return o===i||1735152710===o}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=new DataView(t);e.type=i(r,n+0),e.version=r.getUint32(n+4,!0);var a=r.getUint32(n+8,!0);switch(e.header={byteOffset:n,byteLength:a},e.json={},e.binChunks=[],n+=12,e.version){case 1:return u(e,r,n,{});case 2:return s(e,r,n,{});default:throw new Error("Invalid GLB version ".concat(e.version,". Only supports v1 and v2."))}}function u(e,t,n,a){Object(r.a)(e.header.byteLength>20);var i=t.getUint32(n+0,!0),o=t.getUint32(n+4,!0);return n+=8,Object(r.a)(0===o),c(e,t,n,i,a),n+=i,n+=d(e,t,n,e.header.byteLength,a)}function s(e,t,n,i){return Object(r.a)(e.header.byteLength>20),function(e,t,n,r){for(;n+8<=e.header.byteLength;){var i=t.getUint32(n+0,!0),o=t.getUint32(n+4,!0);switch(n+=8,o){case 1313821514:c(e,t,n,i,r);break;case 5130562:d(e,t,n,i,r);break;case 0:r.glb.strict||c(e,t,n,i,r);break;case 1:r.glb.strict||d(e,t,n,i,r)}n+=Object(a.c)(i)}}(e,t,n,i),n+e.header.byteLength}function c(e,t,n,r,i){var o=new Uint8Array(t.buffer,n,r),l=new TextDecoder("utf8").decode(o);return e.json=JSON.parse(l),Object(a.c)(r)}function d(e,t,n,r,i){return e.header.hasBinChunk=!0,e.binChunks.push({byteOffset:n,byteLength:r,arrayBuffer:t.buffer}),Object(a.c)(r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var r=n(137),a=n(54),i=Math.PI/180,o=new Float32Array(16),l=new Float32Array(12);function u(e,t,n){var r=t[0]*i,a=t[1]*i,o=t[2]*i,l=Math.sin(o),u=Math.sin(r),s=Math.sin(a),c=Math.cos(o),d=Math.cos(r),f=Math.cos(a),p=n[0],h=n[1],m=n[2];e[0]=p*f*d,e[1]=p*s*d,e[2]=p*-u,e[3]=h*(-s*c+f*u*l),e[4]=h*(f*c+s*u*l),e[5]=h*d*l,e[6]=m*(s*l+f*u*c),e[7]=m*(-f*l+s*u*c),e[8]=m*d*c}function s(e){return e[0]=e[0],e[1]=e[1],e[2]=e[2],e[3]=e[4],e[4]=e[5],e[5]=e[6],e[6]=e[8],e[7]=e[9],e[8]=e[10],e[9]=e[12],e[10]=e[13],e[11]=e[14],e.subarray(0,12)}var c={size:12,accessor:["getOrientation","getScale","getTranslation","getTransformMatrix"],shaderAttributes:{instanceModelMatrix__LOCATION_0:{size:3,elementOffset:0},instanceModelMatrix__LOCATION_1:{size:3,elementOffset:3},instanceModelMatrix__LOCATION_2:{size:3,elementOffset:6},instanceTranslation:{size:3,elementOffset:9}},update:function(e,t){var n=t.startRow,a=t.endRow,i=this.props,c=i.data,d=i.getOrientation,f=i.getScale,p=i.getTranslation,h=i.getTransformMatrix,m=Array.isArray(h),g=m&&16===h.length,v=Array.isArray(f),y=Array.isArray(d),b=Array.isArray(p),A=g||!m&&Boolean(h(c[0]));e.constant=A?g:y&&v&&b;var _=e.value;if(e.constant){var O;if(A)o.set(h),O=s(o);else u(O=l,d,f),O.set(p,9);e.value=new Float32Array(O)}else{var E=n*e.size,x=Object(r.a)(c,n,a),M=x.iterable,w=x.objectInfo,S=!0,T=!1,C=void 0;try{for(var L,P=M[Symbol.iterator]();!(S=(L=P.next()).done);S=!0){var k=L.value;w.index++;var D=void 0;if(A)o.set(g?h:h(k,w)),D=s(o);else u(D=l,y?d:d(k,w),v?f:f(k,w)),D.set(b?p:p(k,w),9);_[E++]=D[0],_[E++]=D[1],_[E++]=D[2],_[E++]=D[3],_[E++]=D[4],_[E++]=D[5],_[E++]=D[6],_[E++]=D[7],_[E++]=D[8],_[E++]=D[9],_[E++]=D[10],_[E++]=D[11]}}catch(e){T=!0,C=e}finally{try{S||null==P.return||P.return()}finally{if(T)throw C}}}}};function d(e,t){return t===a.a.CARTESIAN||t===a.a.METER_OFFSETS||t===a.a.DEFAULT&&!e.isGeospatial}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return v}));Math.PI,Math.PI;const r={};r.EPSILON=1e-12,r.debug=!1,r.precision=4,r.printTypes=!1,r.printDegrees=!1,r.printRowMajor=!0;function a(e,t){const n=t.length,r=e.length;if(r>0){let a=!0;for(let i=0;it[2]&&(n|=2),e[1]t[3]&&(n|=8),n}function s(e,t={}){const{size:n=2,broken:r=!1,gridResolution:s=10,gridOffset:c=[0,0],startIndex:d=0,endIndex:f=e.length}=t,m=(f-d)/n;let g=[];const v=[g],y=o(e,0,n,d);let b,A;const _=p(y,s,c,[]),O=[];a(g,y);for(let t=1;tn&&(g=[],v.push(g),a(g,y)),A=u(b,_)}a(g,b),i(y,b)}return r?v:v[0]}function c(e,t){for(let n=0;n=0?(a(p,v)&&m.push(b),x+=y):m.length&&(m[m.length-1]=0),i(A,v),_=y,O=b;return[E?{pos:f,types:t&&h}:null,x?{pos:p,types:t&&m}:null]}function p(e,t,n,r){const a=Math.floor((e[0]-n[0])/t)*t+n[0],i=Math.floor((e[1]-n[1])/t)*t+n[1];return r[0]=a,r[1]=i,r[2]=a+t,r[3]=i+t,r}function h(e,t,n){8&n?(e[1]+=t,e[3]+=t):4&n?(e[1]-=t,e[3]-=t):2&n?(e[0]+=t,e[2]+=t):1&n&&(e[0]-=t,e[2]-=t)}function m(e,t,n,r){let a=1/0,i=-1/0,o=1/0,l=-1/0;for(let r=0;ri?t:i,o=nl?n:l}return r[0][0]=a,r[0][1]=o,r[1][0]=i,r[1][1]=l,r}function g(e,t={}){const{size:n=2,startIndex:r=0,endIndex:a=e.length,normalize:i=!0}=t,o=e.slice(r,a);A(o,n,0,a-r);const l=s(o,{size:n,broken:!0,gridResolution:360,gridOffset:[-180,-180]});if(i)for(const e of l)_(e,n);return l}function v(e,t,n={}){const{size:r=2,normalize:a=!0,edgeTypes:i=!1}=n;t=t||[];const o=[],l=[];let u=0,s=0;for(let a=0;a<=t.length;a++){const i=t[a]||e.length,c=s,d=y(e,r,u,i);for(let t=d;ta&&(a=t,i=o-1)}return i}function b(e,t,n,r,i=85.051129){const l=e[n],u=e[r-t];if(Math.abs(l-u)>180){const r=o(e,0,t,n);r[0]+=360*Math.round((u-l)/360),a(e,r),r[1]=Math.sign(r[1])*i,a(e,r),r[0]=l,a(e,r)}}function A(e,t,n,r){let a,i=e[0];for(let o=n;o180||t<-180)&&(a-=360*Math.round(t/360)),e[o]=i=a}}function _(e,t){let n;const r=e.length/t;for(let a=0;a=0)){e.next=23;break}return p=n.slice(0,f+1),n=n.slice(f+1),e.next=21,p;case 21:e.next=16;break;case 23:r=!0,e.next=5;break;case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(3),o=!0,u=e.t0;case 32:if(e.prev=32,e.prev=33,r||null==s.return){e.next=37;break}return e.next=37,Object(i.a)(s.return());case 37:if(e.prev=37,!o){e.next=40;break}throw u;case 40:return e.finish(37);case 41:return e.finish(32);case 42:if(!(n.length>0)){e.next=45;break}return e.next=45,n;case 45:case"end":return e.stop()}}),e,null,[[3,28,32,42],[33,,37,41]])})))).apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return(m=Object(o.a)(a.a.mark((function e(t){var n,r,o,u,s,c,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=1,r=!0,o=!1,e.prev=3,s=Object(l.a)(t);case 5:return e.next=7,Object(i.a)(s.next());case 7:return c=e.sent,r=c.done,e.next=11,Object(i.a)(c.value);case 11:if(d=e.sent,r){e.next=20;break}return f=d,e.next=16,{counter:n,line:f};case 16:n++;case 17:r=!0,e.next=5;break;case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(3),o=!0,u=e.t0;case 26:if(e.prev=26,e.prev=27,r||null==s.return){e.next=31;break}return e.next=31,Object(i.a)(s.return());case 31:if(e.prev=31,!o){e.next=34;break}throw u;case 34:return e.finish(31);case 35:return e.finish(26);case 36:case"end":return e.stop()}}),e,null,[[3,22,26,36],[27,,31,35]])})))).apply(this,arguments)}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"KeplerGlSchema",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"reducerSchema",{enumerable:!0,get:function(){return i.reducerSchema}}),Object.defineProperty(t,"KeplerGLSchemaClass",{enumerable:!0,get:function(){return i.KeplerGLSchema}}),Object.defineProperty(t,"CURRENT_VERSION",{enumerable:!0,get:function(){return o.CURRENT_VERSION}}),Object.defineProperty(t,"VERSIONS",{enumerable:!0,get:function(){return o.VERSIONS}}),Object.defineProperty(t,"visStateSchemaV1",{enumerable:!0,get:function(){return l.visStateSchemaV1}}),Object.defineProperty(t,"FilterSchemaV0",{enumerable:!0,get:function(){return l.FilterSchemaV0}}),Object.defineProperty(t,"LayerSchemaV0",{enumerable:!0,get:function(){return l.LayerSchemaV0}}),Object.defineProperty(t,"InteractionSchemaV1",{enumerable:!0,get:function(){return l.InteractionSchemaV1}}),Object.defineProperty(t,"DimensionFieldSchema",{enumerable:!0,get:function(){return l.DimensionFieldSchema}}),Object.defineProperty(t,"SplitMapsSchema",{enumerable:!0,get:function(){return l.SplitMapsSchema}}),Object.defineProperty(t,"filterPropsV1",{enumerable:!0,get:function(){return l.filterPropsV1}}),Object.defineProperty(t,"visStateSchema",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"datasetSchema",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"mapStyleSchema",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"mapStateSchema",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Schema",{enumerable:!0,get:function(){return d.default}});var i=a(n(1362)),o=n(234),l=a(n(832)),u=r(n(837)),s=r(n(838)),c=r(n(839)),d=r(n(329))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COLOR_RANGE=t.COLOR_RANGES=void 0;var a=r(n(36)),i=r(n(4)),o=r(n(55)),l=r(n(836)),u=n(505);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.version,r=void 0===n?s.CURRENT_VERSION:n,a=t.key,i=void 0===a?"":a,l=t.properties,u=void 0===l?null:l;(0,o.default)(this,e),this.version=r,this.properties=u,this.key=i}return(0,l.default)(e,[{key:"loadPropertiesOrApplySchema",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return this._getPropertyValueFromSchema("load",e,t,n)}},{key:"savePropertiesOrApplySchema",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return this._getPropertyValueFromSchema("save",e,t,n)}},{key:"_getPropertyValueFromSchema",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o="_".concat(e);return(0,i.default)({},this.key,this.properties?Object.keys(this.properties).reduce((function(l,u){return d(d({},l),u in t?n.properties[u]?n.properties[u][e]?n.properties[u][o](t[u],[].concat((0,a.default)(r),[t]),l):{}:(0,i.default)({},u,t[u]):{})}),{}):t)}},{key:"_isCurrentVersion",value:function(){return this.version===s.CURRENT_VERSION}},{key:"outdatedVersionError",value:function(){this._isCurrentVersion()||u.console.error("".concat(this.key," ").concat(this.version," is outdated. save should not be called anymore"))}},{key:"_save",value:function(){return this.outdatedVersionError(),this.save.apply(this,arguments)}},{key:"save",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.savePropertiesOrApplySchema(e,t,n)}},{key:"_load",value:function(){return this.load.apply(this,arguments)}},{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.loadPropertiesOrApplySchema(e,t,n)}}]),e}();t.default=f},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(61)),i=Object.assign({},a.default.KeyEvent);i.DOM_VK_UP=i.DOM_VK_UP||38,i.DOM_VK_DOWN=i.DOM_VK_DOWN||40,i.DOM_VK_BACK_SPACE=i.DOM_VK_BACK_SPACE||8,i.DOM_VK_RETURN=i.DOM_VK_RETURN||13,i.DOM_VK_ENTER=i.DOM_VK_ENTER||14,i.DOM_VK_ESCAPE=i.DOM_VK_ESCAPE||27,i.DOM_VK_TAB=i.DOM_VK_TAB||9,i.DOM_VK_DELETE=i.DOM_VK_DELETE||46;var o=i;t.default=o},function(e,t,n){"use strict";var r=n(898),a="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,o=Array.prototype.concat,l=Object.defineProperty,u=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,r){var a;(!(t in e)||"function"==typeof(a=r)&&"[object Function]"===i.call(a)&&r())&&(u?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:{},n=t.version,r=void 0===n?s.CURRENT_VERSION:n,a=t.key,i=void 0===a?"":a,l=t.properties,u=void 0===l?null:l;(0,o.default)(this,e),this.version=r,this.properties=u,this.key=i}return(0,l.default)(e,[{key:"loadPropertiesOrApplySchema",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return this._getPropertyValueFromSchema("load",e,t,n)}},{key:"savePropertiesOrApplySchema",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return this._getPropertyValueFromSchema("save",e,t,n)}},{key:"_getPropertyValueFromSchema",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o="_".concat(e);return(0,i.default)({},this.key,this.properties?Object.keys(this.properties).reduce((function(l,u){return d(d({},l),u in t?n.properties[u]?n.properties[u][e]?n.properties[u][o](t[u],[].concat((0,a.default)(r),[t]),l):{}:(0,i.default)({},u,t[u]):{})}),{}):t)}},{key:"_isCurrentVersion",value:function(){return this.version===s.CURRENT_VERSION}},{key:"outdatedVersionError",value:function(){this._isCurrentVersion()||u.console.error("".concat(this.key," ").concat(this.version," is outdated. save should not be called anymore"))}},{key:"_save",value:function(){return this.outdatedVersionError(),this.save.apply(this,arguments)}},{key:"save",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.savePropertiesOrApplySchema(e,t,n)}},{key:"_load",value:function(){return this.load.apply(this,arguments)}},{key:"load",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.loadPropertiesOrApplySchema(e,t,n)}}]),e}();t.default=f},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(61)),i=Object.assign({},a.default.KeyEvent);i.DOM_VK_UP=i.DOM_VK_UP||38,i.DOM_VK_DOWN=i.DOM_VK_DOWN||40,i.DOM_VK_BACK_SPACE=i.DOM_VK_BACK_SPACE||8,i.DOM_VK_RETURN=i.DOM_VK_RETURN||13,i.DOM_VK_ENTER=i.DOM_VK_ENTER||14,i.DOM_VK_ESCAPE=i.DOM_VK_ESCAPE||27,i.DOM_VK_TAB=i.DOM_VK_TAB||9,i.DOM_VK_DELETE=i.DOM_VK_DELETE||46;var o=i;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RootContext=void 0;var r=n(0),a=(0,r.createContext)({selector:function(e){return e},id:"map"}),i=(0,r.createContext)(null);t.RootContext=i;var o=a;t.default=o},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=b;var i=a(n(5)),o=a(n(7)),l=a(n(17)),u=a(n(9)),s=a(n(10)),c=a(n(8)),d=a(n(4)),f=r(n(0)),p=n(68),h=n(42),m=a(n(148)),g=a(n(416)),v=n(52);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 n,r=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function b(e){var t=function(t){var n=t.value;return f.default.createElement(e,{dataset:n})},n=function(e){(0,u.default)(r,e);var n=y(r);function r(){var e;(0,i.default)(this,r);for(var t=arguments.length,a=new Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof e)return e.slice(0,t);if(ArrayBuffer.isView(e))return a(e.buffer,e.byteOffset,t);if(e instanceof ArrayBuffer){var n=0;return a(e,n,t)}return""}function a(e,t,n){if(e.byteLength<=t+n)return"";for(var r=new DataView(e),a="",i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.newProps,n=e.oldProps,a=e.ignoreProps,i=void 0===a?{}:a,o=e.propTypes,l=void 0===o?{}:o,u=e.triggerName,c=void 0===u?"props":u;if(n===t)return null;if("object"!==Object(r.a)(t)||null===t)return"".concat(c," changed shallowly");if("object"!==Object(r.a)(n)||null===n)return"".concat(c," changed shallowly");for(var d=0,f=Object.keys(t);d0&&(function(e,t){for(var n=0;n=0&&(this.pressed=!0),2&t&&0===e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))};var d=s.a.Manager,f=s.a,p=f?[[f.Rotate,{enable:!1}],[f.Pinch,{enable:!1}],[f.Swipe,{enable:!1}],[f.Pan,{threshold:0,enable:!1}],[f.Press,{enable:!1}],[f.Tap,{event:"doubletap",taps:2,enable:!1}],[f.Tap,{event:"anytap",enable:!1}],[f.Tap,{enable:!1}]]:null,h={rotate:["pinch"],pinch:["pan"],pan:["press","doubletap","anytap","tap"],doubletap:["anytap"],anytap:["tap"]},m={doubletap:["tap"]},g={pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup"},v=["keydown","keyup"],y=["mousedown","mousemove","mouseup","mouseover","mouseout","mouseleave"],b=["wheel","mousewheel","DOMMouseScroll"],A={tap:"tap",anytap:"anytap",doubletap:"doubletap",press:"press",pinch:"pinch",pinchin:"pinch",pinchout:"pinch",pinchstart:"pinch",pinchmove:"pinch",pinchend:"pinch",pinchcancel:"pinch",rotate:"rotate",rotatestart:"rotate",rotatemove:"rotate",rotateend:"rotate",rotatecancel:"rotate",pan:"pan",panstart:"pan",panmove:"pan",panup:"pan",pandown:"pan",panleft:"pan",panright:"pan",panend:"pan",pancancel:"pan",swipe:"swipe",swipeleft:"swipe",swiperight:"swipe",swipeup:"swipe",swipedown:"swipe"},_={click:"tap",anyclick:"anytap",dblclick:"doubletap",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseover:"pointerover",mouseout:"pointerout",mouseleave:"pointerleave"},O=n(264),E=-1!==O.b.indexOf("firefox"),x=b,M=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(o.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},a),this.events=x.concat(a.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent,!!O.a&&{passive:!1})}))}return Object(l.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){"wheel"===e&&(this.options.enable=t)}},{key:"handleEvent",value:function(e){if(this.options.enable){var t=e.deltaY;O.c.WheelEvent&&(E&&e.deltaMode===O.c.WheelEvent.DOM_DELTA_PIXEL&&(t/=O.c.devicePixelRatio),e.deltaMode===O.c.WheelEvent.DOM_DELTA_LINE&&(t*=40));var n={x:e.clientX,y:e.clientY};0!==t&&t%4.000244140625==0&&(t=Math.floor(t/4.000244140625)),e.shiftKey&&t&&(t*=.25),this._onWheel(e,-t,n)}}},{key:"_onWheel",value:function(e,t,n){this.callback({type:"wheel",center:n,delta:t,srcEvent:e,pointerType:"mouse",target:e.target})}}]),e}(),w=y,S=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(o.a)(this,e),this.element=t,this.callback=n,this.pressed=!1,this.options=Object.assign({enable:!0},a),this.enableMoveEvent=this.options.enable,this.enableLeaveEvent=this.options.enable,this.enableOutEvent=this.options.enable,this.enableOverEvent=this.options.enable,this.events=w.concat(a.events||[]),this.handleEvent=this.handleEvent.bind(this),this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent)}))}return Object(l.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){"pointermove"===e&&(this.enableMoveEvent=t),"pointerover"===e&&(this.enableOverEvent=t),"pointerout"===e&&(this.enableOutEvent=t),"pointerleave"===e&&(this.enableLeaveEvent=t)}},{key:"handleEvent",value:function(e){this.handleOverEvent(e),this.handleOutEvent(e),this.handleLeaveEvent(e),this.handleMoveEvent(e)}},{key:"handleOverEvent",value:function(e){this.enableOverEvent&&"mouseover"===e.type&&this.callback({type:"pointerover",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleOutEvent",value:function(e){this.enableOutEvent&&"mouseout"===e.type&&this.callback({type:"pointerout",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleLeaveEvent",value:function(e){this.enableLeaveEvent&&"mouseleave"===e.type&&this.callback({type:"pointerleave",srcEvent:e,pointerType:"mouse",target:e.target})}},{key:"handleMoveEvent",value:function(e){if(this.enableMoveEvent)switch(e.type){case"mousedown":e.button>=0&&(this.pressed=!0);break;case"mousemove":0===e.which&&(this.pressed=!1),this.pressed||this.callback({type:"pointermove",srcEvent:e,pointerType:"mouse",target:e.target});break;case"mouseup":this.pressed=!1}}}]),e}(),T=v,C=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(o.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},a),this.enableDownEvent=this.options.enable,this.enableUpEvent=this.options.enable,this.events=T.concat(a.events||[]),this.handleEvent=this.handleEvent.bind(this),t.tabIndex=a.tabIndex||0,t.style.outline="none",this.events.forEach((function(e){return t.addEventListener(e,r.handleEvent)}))}return Object(l.a)(e,[{key:"destroy",value:function(){var e=this;this.events.forEach((function(t){return e.element.removeEventListener(t,e.handleEvent)}))}},{key:"enableEventType",value:function(e,t){"keydown"===e&&(this.enableDownEvent=t),"keyup"===e&&(this.enableUpEvent=t)}},{key:"handleEvent",value:function(e){var t=e.target||e.srcElement;"INPUT"===t.tagName&&"text"===t.type||"TEXTAREA"===t.tagName||(this.enableDownEvent&&"keydown"===e.type&&this.callback({type:"keydown",srcEvent:e,key:e.key,target:e.target}),this.enableUpEvent&&"keyup"===e.type&&this.callback({type:"keyup",srcEvent:e,key:e.key,target:e.target}))}}]),e}(),L=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(o.a)(this,e),this.element=t,this.callback=n,this.options=Object.assign({enable:!0},r),this.handleEvent=this.handleEvent.bind(this),t.addEventListener("contextmenu",this.handleEvent)}return Object(l.a)(e,[{key:"destroy",value:function(){this.element.removeEventListener("contextmenu",this.handleEvent)}},{key:"enableEventType",value:function(e,t){"contextmenu"===e&&(this.options.enable=t)}},{key:"handleEvent",value:function(e){this.options.enable&&this.callback({type:"contextmenu",center:{x:e.clientX,y:e.clientY},srcEvent:e,pointerType:"mouse",target:e.target})}}]),e}(),P=n(37),k={pointerdown:1,pointermove:2,pointerup:4,mousedown:1,mousemove:2,mouseup:4};var D={srcElement:"root",priority:0},R=function(){function e(t){Object(o.a)(this,e),this.eventManager=t,this.handlers=[],this.handlersByElement=new Map,this.handleEvent=this.handleEvent.bind(this),this._active=!1}return Object(l.a)(e,[{key:"isEmpty",value:function(){return!this._active}},{key:"add",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.handlers,o=this.handlersByElement;n&&("object"!==Object(P.a)(n)||n.addEventListener)&&(n={srcElement:n}),n=n?Object.assign({},D,n):D;var l=o.get(n.srcElement);l||(l=[],o.set(n.srcElement,l));var u={type:e,handler:t,srcElement:n.srcElement,priority:n.priority};r&&(u.once=!0),a&&(u.passive=!0),i.push(u),this._active=this._active||!u.passive;for(var s=l.length-1;s>=0&&!(l[s].priority>=u.priority);)s--;l.splice(s+1,0,u)}},{key:"remove",value:function(e,t){for(var n=this.handlers,r=this.handlersByElement,a=n.length-1;a>=0;a--){var i=n[a];if(i.type===e&&i.handler===t){n.splice(a,1);var o=r.get(i.srcElement);o.splice(o.indexOf(i),1),0===o.length&&r.delete(i.srcElement)}}this._active=n.some((function(e){return!e.passive}))}},{key:"handleEvent",value:function(e){if(!this.isEmpty()){for(var t=this._normalizeEvent(e),n=e.srcEvent.target;n&&n!==t.rootElement;){if(this._emit(t,n),t.handled)return;n=n.parentNode}this._emit(t,"root")}}},{key:"_emit",value:function(e,t){var n=this.handlersByElement.get(t);if(n){for(var r=!1,a=function(){e.handled=!0},i=function(){e.handled=!0,r=!0},o=[],l=0;l0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.a)(this,e),this.options=Object.assign({},j,n),this.events=new Map,this._onBasicInput=this._onBasicInput.bind(this),this._onOtherEvent=this._onOtherEvent.bind(this),this.setElement(t);var r=n.events;r&&this.on(r)}return Object(l.a)(e,[{key:"setElement",value:function(e){var t=this;if(this.element&&this.destroy(),this.element=e,e){var n=this.options,r=n.Manager;for(var a in this.manager=new r(e,{touchAction:n.touchAction,recognizers:n.recognizers||p}).on("hammer.input",this._onBasicInput),n.recognizers||Object.keys(h).forEach((function(e){var n=t.manager.get(e);n&&h[e].forEach((function(e){n.recognizeWith(e)}))})),n.recognizerOptions){var o=this.manager.get(a);if(o){var l=n.recognizerOptions[a];delete l.enable,o.set(l)}}this.wheelInput=new M(e,this._onOtherEvent,{enable:!1}),this.moveInput=new S(e,this._onOtherEvent,{enable:!1}),this.keyInput=new C(e,this._onOtherEvent,{enable:!1,tabIndex:n.tabIndex}),this.contextmenuInput=new L(e,this._onOtherEvent,{enable:!1});var u=!0,s=!1,c=void 0;try{for(var d,f=this.events[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var m=Object(i.a)(d.value,2),g=m[0],v=m[1];v.isEmpty()||(this._toggleRecognizer(v.recognizerName,!0),this.manager.on(g,v.handleEvent))}}catch(e){s=!0,c=e}finally{try{u||null==f.return||f.return()}finally{if(s)throw c}}}}},{key:"destroy",value:function(){this.element&&(this.wheelInput.destroy(),this.moveInput.destroy(),this.keyInput.destroy(),this.contextmenuInput.destroy(),this.manager.destroy(),this.wheelInput=null,this.moveInput=null,this.keyInput=null,this.contextmenuInput=null,this.manager=null,this.element=null)}},{key:"on",value:function(e,t,n){this._addEventHandler(e,t,n,!1)}},{key:"once",value:function(e,t,n){this._addEventHandler(e,t,n,!0)}},{key:"watch",value:function(e,t,n){this._addEventHandler(e,t,n,!1,!0)}},{key:"off",value:function(e,t){this._removeEventHandler(e,t)}},{key:"_toggleRecognizer",value:function(e,t){var n=this.manager;if(n){var r=n.get(e);if(r&&r.options.enable!==t){r.set({enable:t});var a=m[e];a&&!this.options.recognizers&&a.forEach((function(a){var i=n.get(a);t?(i.requireFailure(e),r.dropRequireFailure(a)):i.dropRequireFailure(e)}))}this.wheelInput.enableEventType(e,t),this.moveInput.enableEventType(e,t),this.keyInput.enableEventType(e,t),this.contextmenuInput.enableEventType(e,t)}}},{key:"_addEventHandler",value:function(e,t,n,r,a){if("string"==typeof e){var i=this.manager,o=this.events,l=_[e]||e,u=o.get(l);u||(u=new R(this),o.set(l,u),u.recognizerName=A[l]||l,i&&i.on(l,u.handleEvent)),u.add(e,t,n,r,a),u.isEmpty()||this._toggleRecognizer(u.recognizerName,!0)}else for(var s in n=t,e)this._addEventHandler(s,e[s],n,r,a)}},{key:"_removeEventHandler",value:function(e,t){if("string"==typeof e){var n=this.events,r=_[e]||e,a=n.get(r);if(a&&(a.remove(e,t),a.isEmpty())){var i=a.recognizerName,o=!1,l=!0,u=!1,s=void 0;try{for(var c,d=n.values()[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var f=c.value;if(f.recognizerName===i&&!f.isEmpty()){o=!0;break}}}catch(e){u=!0,s=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw s}}o||this._toggleRecognizer(i,!1)}}else for(var p in e)this._removeEventHandler(p,e[p])}},{key:"_onBasicInput",value:function(e){var t=e.srcEvent,n=g[t.type];n&&this.manager.emit(n,e)}},{key:"_onOtherEvent",value:function(e){this.manager.emit(e.type,e)}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(24),a=n(26),i=n(47),o=n(38),l=n(48),u=n(1229),s=n(310),c=n(440),d=n(254),f=n(221),p=n(44),h=n(63),m=n(140),g=n(220),v=n(263),y=n(186),b=n(25);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _=function(e){function t(e,n){var a,l,u;return Object(r.a)(this,t),(u=Object(i.a)(this,Object(o.a)(t).call(this,e,n))).shadowMap=new s.a(e,{width:1,height:1,parameters:(a={},Object(h.a)(a,10241,9729),Object(h.a)(a,10240,9729),Object(h.a)(a,10242,33071),Object(h.a)(a,10243,33071),a)}),u.depthBuffer=new v.a(e,{format:33189,width:1,height:1}),u.fbo=new y.a(e,{id:"shadowmap",width:1,height:1,attachments:(l={},Object(h.a)(l,36064,u.shadowMap),Object(h.a)(l,36096,u.depthBuffer),l)}),u}return Object(l.a)(t,e),Object(a.a)(t,[{key:"render",value:function(e){var n=this,r=this.fbo;Object(b.l)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},(function(){var a=e.viewports[0],i=Object(b.c)(n.gl),l=a.width*i,u=a.height*i;l===r.width&&u===r.height||r.resize({width:l,height:u}),Object(m.a)(Object(o.a)(t.prototype),"render",n).call(n,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,"b",(function(){return r})),t.a=function(e){return null===e?NaN:+e}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],a=t.projectPosition(e);if(n&&t instanceof o.a){var i=Object(r.a)(e,3),l=i[0],u=i[1],s=i[2],c=void 0===s?0:s,d=t.getDistanceScales([l,u]);a[2]=c*d.unitsPerMeter[2]}return a}function d(e,t){var n=t.viewport,i=t.modelMatrix,o=t.coordinateSystem,u=t.coordinateOrigin,d=t.offsetMode,f=Object(r.a)(e,3),p=f[0],h=f[1],m=f[2];if(i){var g=l.n([],[p,h,m,1],i),v=Object(r.a)(g,3);p=v[0],h=v[1],m=v[2]}switch(o){case a.a.LNGLAT:return c([p,h,m],n,d);case a.a.LNGLAT_OFFSETS:return c([p+u[0],h+u[1],m+(u[2]||0)],n,d);case a.a.METER_OFFSETS:return c(Object(s.a)(u,[p,h,m]),n,d);case a.a.CARTESIAN:default:return n.isGeospatial?[p+u[0],h+u[1],m+u[2]]:n.projectPosition([p,h,m])}}function f(e,t){var n=function(e){var t=Object.assign({},e),n=e.coordinateSystem,r=e.viewport,i=e.coordinateOrigin,o=e.fromCoordinateSystem,l=e.fromCoordinateOrigin;return n===a.a.DEFAULT&&(n=r.isGeospatial?a.a.LNGLAT:a.a.CARTESIAN),void 0===o&&(t.fromCoordinateSystem=n),void 0===l&&(t.fromCoordinateOrigin=i),t.coordinateSystem=n,t}(t),r=n.viewport,o=n.coordinateSystem,l=n.coordinateOrigin,s=n.modelMatrix,c=n.fromCoordinateSystem,f=n.fromCoordinateOrigin,p=Object(i.a)(r,o,l),h=p.geospatialOrigin,m=p.shaderCoordinateOrigin,g=p.offsetMode,v=d(e,{viewport:r,modelMatrix:s,coordinateSystem:c,coordinateOrigin:f,offsetMode:g});if(g){var y=r.projectPosition(h||m);u.q(v,v,y)}return v}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return l}));var a=n(37),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document},o=i.global||i.self||i.window,l="object"!==(void 0===r?"undefined":Object(a.a)(r))||"[object process]"!==String(r)||r.browser,u=void 0!==r&&r.version&&r.version.match(/v([0-9]*)/);u&&parseFloat(u[1])}).call(this,n(67),n(112))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));var r=n(1220),a=n.n(r);function i(e,t,n,r){for(var a=0;a4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,l=(o=o||n.length)-a;if(l<=0)return t;for(var u=t,s=0;s=1&&e[0].length>=2&&Number.isFinite(e[0][0])}(e)){var d=0,f=!0,p=!1,h=void 0;try{for(var m,g=e[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){d=o(n,d,m.value,t),r.push(d)}}catch(e){p=!0,h=e}finally{try{f||null==g.return||g.return()}finally{if(p)throw h}}return r.pop(),{positions:n,holeIndices:r}}return o(n,0,e,t),n}function s(e,t,n){var r=null;e.holeIndices&&(r=e.holeIndices.map((function(e){return e/t})));var i=e.positions||e;if(n){var o=i.length;i=i.slice();for(var l=[],u=0;u0?this.lastSampleCount/this.sampleSize:0}},{key:"getSampleAverageTime",value:function(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}},{key:"getSampleHz",value:function(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}},{key:"getAverageCount",value:function(){return this.samples>0?this.count/this.samples:0}},{key:"getAverageTime",value:function(){return this.samples>0?this.time/this.samples:0}},{key:"getHz",value:function(){return this.time>0?this.samples/(this.time/1e3):0}},{key:"reset",value:function(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}},{key:"_checkSampling",value:function(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}]),e}(),l=function(){function e(t){var n=t.id,a=t.stats;Object(r.a)(this,e),this.id=n,this.stats={},this._initializeStats(a),Object.seal(this)}return Object(a.a)(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:e,type:t})}},{key:"reset",value:function(){for(var e in this.stats)this.stats[e].reset();return this}},{key:"forEach",value:function(e){for(var t in this.stats)e(this.stats[t])}},{key:"getTable",value:function(){var e={};return this.forEach((function(t){e[t.name]={time:t.time||0,count:t.count||0,average:t.getAverageTime()||0,hz:t.getHz()||0}})),e}},{key:"_initializeStats",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){return e._getOrCreate(t)}))}},{key:"_getOrCreate",value:function(e){if(!e||!e.name)return null;var t=e.name,n=e.type;return this.stats[t]||(this.stats[t]=e instanceof o?e:new o(t,n)),this.stats[t]}},{key:"size",get:function(){return Object.keys(this.stats).length}}]),e}()},function(e,t,n){"use strict";var r="#if (defined(SHADER_TYPE_FRAGMENT) && defined(LIGHTING_FRAGMENT)) || (defined(SHADER_TYPE_VERTEX) && defined(LIGHTING_VERTEX))\n\nstruct AmbientLight {\n vec3 color;\n};\n\nstruct PointLight {\n vec3 color;\n vec3 position;\n vec3 attenuation;\n};\n\nstruct DirectionalLight {\n vec3 color;\n vec3 direction;\n};\n\nuniform AmbientLight lighting_uAmbientLight;\nuniform PointLight lighting_uPointLight[MAX_LIGHTS];\nuniform DirectionalLight lighting_uDirectionalLight[MAX_LIGHTS];\nuniform int lighting_uPointLightCount;\nuniform int lighting_uDirectionalLightCount;\n\nuniform bool lighting_uEnabled;\n\nfloat getPointLightAttenuation(PointLight pointLight, float distance) {\n return pointLight.attenuation.x\n + pointLight.attenuation.y * distance\n + pointLight.attenuation.z * distance * distance;\n}\n\n#endif\n",a=(t.a={name:"lights",vs:r,fs:r,getUniforms:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;if("lightSources"in t){var n=t.lightSources||{},r=n.ambientLight,i=n.pointLights,l=n.directionalLights,u=r||i&&i.length>0||l&&l.length>0;return u?Object.assign({},o({ambientLight:r,pointLights:i,directionalLights:l}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in t){var s={pointLights:[],directionalLights:[]},c=!0,d=!1,f=void 0;try{for(var p,h=(t.lights||[])[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var m=p.value;switch(m.type){case"ambient":s.ambientLight=m;break;case"directional":s.directionalLights.push(m);break;case"point":s.pointLights.push(m)}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}return e({lightSources:s})}return{}},defines:{MAX_LIGHTS:3}},{});function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.color,n=void 0===t?[0,0,0]:t,r=e.intensity,a=void 0===r?1:r;return n.map((function(e){return e*a/255}))}function o(e){var t=e.ambientLight,n=e.pointLights,r=void 0===n?[]:n,a=e.directionalLights,o=void 0===a?[]:a,l={};return l["lighting_uAmbientLight.color"]=t?i(t):[0,0,0],r.forEach((function(e,t){l["lighting_uPointLight[".concat(t,"].color")]=i(e),l["lighting_uPointLight[".concat(t,"].position")]=e.position,l["lighting_uPointLight[".concat(t,"].attenuation")]=e.attenuation||[1,0,0]})),l.lighting_uPointLightCount=r.length,o.forEach((function(e,t){l["lighting_uDirectionalLight[".concat(t,"].color")]=i(e),l["lighting_uDirectionalLight[".concat(t,"].direction")]=e.direction})),l.lighting_uDirectionalLightCount=o.length,l}},function(e,t,n){var r; +/*! Hammer.JS - v2.0.7 - 2016-04-22 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */!function(a,i,o,l){"use strict";var u,s=["","webkit","Moz","MS","ms","o"],c=i.createElement("div"),d=Math.round,f=Math.abs,p=Date.now;function h(e,t,n){return setTimeout(_(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=a.console&&(a.console.warn||a.console.log);return i&&i.call(a.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function T(e){return e.trim().split(/\s+/g)}function C(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function k(e,t){for(var n,r,a=t[0].toUpperCase()+t.slice(1),i=0;i1&&!n.firstMultiple?n.firstMultiple=V(t):1===a&&(n.firstMultiple=!1);var i=n.firstInput,o=n.firstMultiple,l=o?o.center:i.center,u=t.center=H(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=q(l,u),t.distance=G(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},a=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(a=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=a.x+(n.x-r.x),t.deltaY=a.y+(n.y-r.y)}(n,t),t.offsetDirection=W(t.deltaX,t.deltaY);var s=Y(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=f(s.x)>f(s.y)?s.x:s.y,t.scale=o?(c=o.pointers,d=r,G(d[0],d[1],B)/G(c[0],c[1],B)):1,t.rotation=o?function(e,t){return q(t[1],t[0],B)+q(e[1],e[0],B)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,a,i,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(l>25||void 0===o.velocity)){var u=t.deltaX-o.deltaX,s=t.deltaY-o.deltaY,c=Y(l,u,s);r=c.x,a=c.y,n=f(c.x)>f(c.y)?c.x:c.y,i=W(u,s),e.lastInterval=t}else n=o.velocity,r=o.velocityX,a=o.velocityY,i=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=a,t.direction=i}(n,t);var c,d;var h=e.element;w(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(var t=[],n=0;n=f(t)?e<0?2:4:t<0?8:16}function G(e,t,n){n||(n=N);var r=t[n[0]]-e[n[0]],a=t[n[1]]-e[n[1]];return Math.sqrt(r*r+a*a)}function q(e,t,n){n||(n=N);var r=t[n[0]]-e[n[0]],a=t[n[1]]-e[n[1]];return 180*Math.atan2(a,r)/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(R(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4};function Z(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,z.apply(this,arguments)}A(Z,z,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:"touch",3:"pen",4:"mouse",5:"kinect"},Q="pointerdown",$="pointermove pointerup pointercancel";function ee(){this.evEl=Q,this.evWin=$,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}a.MSPointerEvent&&!a.PointerEvent&&(Q="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel"),A(ee,z,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),a=K[r],i=J[e.pointerType]||e.pointerType,o="touch"==i,l=C(t,e.pointerId,"pointerId");1&a&&(0===e.button||o)?l<0&&(t.push(e),l=t.length-1):12&a&&(n=!0),l<0||(t[l]=e,this.callback(this.manager,a,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(l,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,z.apply(this,arguments)}function re(e,t){var n=L(e.touches),r=L(e.changedTouches);return 12&t&&(n=P(n.concat(r),"identifier",!0)),[n,r]}A(ne,z,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},z.apply(this,arguments)}function oe(e,t){var n=L(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var a,i,o=L(e.changedTouches),l=[],u=this.target;if(i=n.filter((function(e){return w(e.target,u)})),1===t)for(a=0;a-1&&r.splice(e,1)}),2500)}}function ce(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ge(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ge(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;et.threshold&&a&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),A(_e,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),A(Oe,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||12&e.eventType&&!a)this.reset();else if(1&e.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),A(Ee,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),A(xe,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ae.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),A(Me,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance>6*n)+r];n>0;){var o=t>>6*(n-1);i.push(128|63&o),n-=1}return i}}function w(e,t){var n=t.fatal;this.handler=function(t,r){if(-1===r)return-1;if(l(r))return r;var a=e[r-128];return null===a?c(n):a}}function S(e,t){t.fatal;this.handler=function(t,n){if(-1===n)return-1;if(u(n))return n;var r=A(n,e);return null===r&&d(n),r+128}}function T(e){var t=e.fatal,n=0,r=0,i=0;this.handler=function(e,o){if(-1===o&&0===n&&0===r&&0===i)return-1;var u;if(-1!==o||0===n&&0===r&&0===i||(n=0,r=0,i=0,c(t)),0!==i){u=null,a(o,48,57)&&(u=function(e){if(e>39419&&e<189e3||e>1237575)return null;if(7457===e)return 59335;var t,n=0,r=0,a=_("gb18030-ranges");for(t=0;t>8,r=255&e;return t?[n,r]:[r,n]}function U(e,t){var n=t.fatal,r=null,i=null;this.handler=function(t,o){if(-1===o&&(null!==r||null!==i))return c(n);if(-1===o&&null===r&&null===i)return-1;if(null===r)return r=o,null;var l;if(l=e?(r<<8)+o:(o<<8)+r,r=null,null!==i){var u=i;return i=null,a(l,56320,57343)?65536+1024*(u-55296)+(l-56320):(t.prepend(z(l,e)),c(n))}return a(l,55296,56319)?(i=l,null):a(l,56320,57343)?c(n):l}}function V(e,t){t.fatal;this.handler=function(t,n){if(-1===n)return-1;if(a(n,0,65535))return z(n,e);var r=z(55296+(n-65536>>10),e),i=z(56320+(n-65536&1023),e);return r.concat(i)}}function H(e){e.fatal;this.handler=function(e,t){return-1===t?-1:l(t)?t:63360+t-128}}function Y(e){e.fatal;this.handler=function(e,t){return-1===t?-1:u(t)?t:a(t,63360,63487)?t-63360+128:d(t)}}Object.defineProperty&&(Object.defineProperty(O.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),Object.defineProperty(O.prototype,"fatal",{get:function(){return"fatal"===this._error_mode}}),Object.defineProperty(O.prototype,"ignoreBOM",{get:function(){return this._ignoreBOM}})),O.prototype.decode=function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=o(t),this._do_not_flush||(this._decoder=y[this._encoding.name]({fatal:"fatal"===this._error_mode}),this._BOMseen=!1),this._do_not_flush=Boolean(t.stream);for(var r,a=new s(n),i=[];;){var l=a.read();if(-1===l)break;if(-1===(r=this._decoder.handler(a,l)))break;null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r))}if(!this._do_not_flush){do{if(-1===(r=this._decoder.handler(a,a.read())))break;null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r))}while(!a.endOfStream());this._decoder=null}return function(e){var t,n;return t=["UTF-8","UTF-16LE","UTF-16BE"],n=this._encoding.name,-1===t.indexOf(n)||this._ignoreBOM||this._BOMseen||(e.length>0&&65279===e[0]?(this._BOMseen=!0,e.shift()):e.length>0&&(this._BOMseen=!0)),function(e){for(var t="",n=0;n>10),56320+(1023&r)))}return t}(e)}.call(this,i)},Object.defineProperty&&Object.defineProperty(E.prototype,"encoding",{get:function(){return this._encoding.name.toLowerCase()}}),E.prototype.encode=function(e,t){e=void 0===e?"":String(e),t=o(t),this._do_not_flush||(this._encoder=v[this._encoding.name]({fatal:"fatal"===this._fatal})),this._do_not_flush=Boolean(t.stream);for(var n,r=new s(function(e){for(var t=String(e),n=t.length,r=0,a=[];r57343)a.push(i);else if(56320<=i&&i<=57343)a.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)a.push(65533);else{var o=t.charCodeAt(r+1);if(56320<=o&&o<=57343){var l=1023&i,u=1023&o;a.push(65536+(l<<10)+u),r+=1}else a.push(65533)}r+=1}return a}(e)),a=[];;){var i=r.read();if(-1===i)break;if(-1===(n=this._encoder.handler(r,i)))break;Array.isArray(n)?a.push.apply(a,n):a.push(n)}if(!this._do_not_flush){for(;-1!==(n=this._encoder.handler(r,r.read()));)Array.isArray(n)?a.push.apply(a,n):a.push(n);this._encoder=null}return new Uint8Array(a)},v["UTF-8"]=function(e){return new M(e)},y["UTF-8"]=function(e){return new x(e)},"encoding-indexes"in t&&p.forEach((function(e){"Legacy single-byte encodings"===e.heading&&e.encodings.forEach((function(e){var t=e.name,n=_(t.toLowerCase());y[t]=function(e){return new w(n,e)},v[t]=function(e){return new S(n,e)}}))})),y.GBK=function(e){return new T(e)},v.GBK=function(e){return new C(e,!0)},v.gb18030=function(e){return new C(e)},y.gb18030=function(e){return new T(e)},v.Big5=function(e){return new P(e)},y.Big5=function(e){return new L(e)},v["EUC-JP"]=function(e){return new D(e)},y["EUC-JP"]=function(e){return new k(e)},v["ISO-2022-JP"]=function(e){return new j(e)},y["ISO-2022-JP"]=function(e){return new R(e)},v.Shift_JIS=function(e){return new F(e)},y.Shift_JIS=function(e){return new I(e)},v["EUC-KR"]=function(e){return new B(e)},y["EUC-KR"]=function(e){return new N(e)},v["UTF-16BE"]=function(e){return new V(!0,e)},y["UTF-16BE"]=function(e){return new U(!0,e)},v["UTF-16LE"]=function(e){return new V(!1,e)},y["UTF-16LE"]=function(e){return new U(!1,e)},v["x-user-defined"]=function(e){return new Y(e)},y["x-user-defined"]=function(e){return new H(e)},e.exports={TextEncoder:E,TextDecoder:O}}).call(this,n(67))},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(11),a=n(12),i=n(25),o=n(358),l=n(82),u=new(function(){function e(){Object(r.a)(this,e),this.stats=new Map}return Object(a.a)(e,[{key:"get",value:function(e){return this.stats.has(e)||this.stats.set(e,new o.a({id:e})),this.stats.get(e)}}]),e}());if(l.global.luma&&"8.3.1"!==l.global.luma.VERSION)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(l.global.luma.VERSION," vs ").concat("8.3.1"));l.global.luma||(Object(l.isBrowser)()&&i.h.log(1,"luma.gl ".concat("8.3.1"," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),l.global.luma=l.global.luma||{VERSION:"8.3.1",version:"8.3.1",log:i.h,stats:u,globals:{modules:{},nodeIO:{}}});l.global.luma},function(e,t){},function(e,t,n){var r;!function(a){var i=/^\s+/,o=/\s+$/,l=0,u=a.round,s=a.min,c=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,u=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(L[e])e=L[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:B(t[4]),format:n?"name":"hex8"};if(t=H.hex6.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"};if(t=H.hex4.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=H.hex3.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(p=e.r,h=e.g,m=e.b,t={r:255*D(p,255),g:255*D(h,255),b:255*D(m,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(r=F(e.s),l=F(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=a.floor(e),i=e-r,o=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),s=r%6;return{r:255*[n,l,o,o,u,n][s],g:255*[u,n,n,l,o,o][s],b:255*[o,o,u,n,n,l][s]}}(e.h,r,l),d=!0,f="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(r=F(e.s),u=F(e.l),t=function(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=a=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=o(u,l,e+1/3),a=o(u,l,e),i=o(u,l,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(e.h,r,u),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,m;return n=k(n),{ok:d,format:e.format||f,r:s(255,c(t.r,0)),g:s(255,c(t.g,0)),b:s(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,a,i=c(e,t,n),o=s(e,t,n),l=(i+o)/2;if(i==o)r=a=0;else{var u=i-o;switch(a=l>.5?u/(2-i-o):u/(i+o),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(f(r));return i}function C(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,a=n.s,i=n.v,o=[],l=1/t;t--;)o.push(f({h:r,s:a,v:i})),i=(i+l)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var i=[I(u(e).toString(16)),I(u(t).toString(16)),I(u(n).toString(16)),I(N(r))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*D(this._r,255))+"%",g:u(100*D(this._g,255))+"%",b:u(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*D(this._r,255))+"%, "+u(100*D(this._g,255))+"%, "+u(100*D(this._b,255))+"%)":"rgba("+u(100*D(this._r,255))+"%, "+u(100*D(this._g,255))+"%, "+u(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);n="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),a=f(t).toRgb(),i=n/100;return f({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,a,i=f.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,n){var r,a,i,o,l=null,u=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var s=0;su&&(u=r,l=f(t[s]));return f.isReadable(e,l,{level:i,size:o})||!a?l:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var L=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(L);function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,c(0,e))}function j(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function N(e){return a.round(255*parseFloat(e)).toString(16)}function B(e){return j(e)/255}var z,U,V,H=(U="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",V="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Y(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l}));var r=Math.sqrt(50),a=Math.sqrt(10),i=Math.sqrt(2);function o(e,t,n){var o=(t-e)/Math.max(0,n),l=Math.floor(Math.log(o)/Math.LN10),u=o/Math.pow(10,l);return l>=0?(u>=r?10:u>=a?5:u>=i?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(u>=r?10:u>=a?5:u>=i?2:1)}function l(e,t,n){var o=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(o)/Math.LN10)),u=o/l;return u>=r?l*=10:u>=a?l*=5:u>=i&&(l*=2),t0)return[e];if((r=t0)for(e=Math.ceil(e/l),t=Math.floor(t/l),i=new Array(a=Math.ceil(t-e+1));++u1&&a.splice(e,1);return a}(r,a,i,s);return H(e,{oldLayer:n,newConfig:{textLabel:s}})},t.layerDataIdChangeUpdater=Y,t.layerTypeChangeUpdater=function(e,t){var n=t.oldLayer,r=t.newType;if(!n)return e;var a=n.id,i=e.layers.findIndex((function(e){return e.id===a}));if(!e.layerClasses[r])return s.console.error("".concat(r," is not a valid layer type")),e;var o=new e.layerClasses[r];o.assignConfigToLayer(n.config,n.visConfigSettings),o.updateLayerDomain(e.datasets);var c=(0,M.calculateLayerData)(o,e),d=c.layerData,f=c.layer,p=U(e,{layerData:d,layer:f,idx:i});(f.config.animation.enabled||n.config.animation.enabled)&&(p=ue(p));e.splitMaps.length&&(p=F(F({},p),{},{splitMaps:p.splitMaps.map((function(e){var t=e.layers,n=t[a],r=(0,l.default)(t,[a].map(j));return a in e.layers?F(F({},e),{},{layers:F(F({},r),{},(0,u.default)({},f.id,n))}):e}))}));return p},t.layerVisualChannelChangeUpdater=function(e,t){var n=t.oldLayer,r=t.newConfig,a=t.channel;if(!n.config.dataId)return e;var i=e.datasets[n.config.dataId],o=e.layers.findIndex((function(e){return e.id===n.id})),l=n.updateLayerConfig(r);l.updateLayerVisualChannel(i,a);var u=e.layerData[o],s=(0,M.calculateLayerData)(l,e,u),c=s.layerData,d=s.layer;return U(e,{layerData:c,layer:d,idx:o})},t.layerVisConfigChangeUpdater=W,t.setFilterAnimationTimeUpdater=function(e,t){return G(e,t)},t.setFilterAnimationWindowUpdater=function(e,t){var n=t.id,r=t.animationWindow;return F(F({},e),{},{filters:e.filters.map((function(e){return e.id===n?F(F({},e),{},{animationWindow:r}):e}))})},t.setFilterUpdater=G,t.interactionConfigChangeUpdater=function(e,t){var n=t.config,r=F(F({},e.interactionConfig),(0,u.default)({},n.id,n)),a=["brush","tooltip"];a.includes(n.id)&&n.enabled&&!e.interactionConfig[n.id].enabled&&a.forEach((function(e){e!==n.id&&(r[e]=F(F({},r[e]),{},{enabled:!1}))}));var i=F(F({},e),{},{interactionConfig:r});if("geocoder"===n.id&&!n.enabled)return K(i,{dataId:"geocoder_dataset"});return i},t.renameDatasetUpdater=function(e,t){var n=t.dataId,r=t.label,a=e.datasets,i=a[n];return i?F(F({},e),{},{datasets:F(F({},a),{},(0,u.default)({},n,F(F({},i),{},{label:r})))}):e},t.closeSpecificMapAtIndex=$,t.loadFileStepSuccessUpdater=function(e,t){if(!e.fileLoading)return e;var n=t.fileName,r=t.fileCache,a=e.fileLoading,i=a.filesToLoad,o=a.onFinish,l=oe(e,{fileName:n,progress:{percent:1,message:"Done"}}),u=(0,P.pick_)("fileLoading")((0,P.merge_)({fileCache:r}))(l);return(0,c.withTask)(u,(0,v.DELAY_TASK)(200).map(i.length?y.loadNextFile:function(){return o(r)}))},t.loadNextFileUpdater=ee,t.makeLoadFileTask=te,t.processFileContentUpdater=function(e,t){var n=t.payload,r=n.content,a=n.fileCache,i=oe(e,{fileName:r.fileName,progress:{percent:1,message:"processing..."}});return(0,c.withTask)(i,(0,v.PROCESS_FILE_DATA)({content:r,fileCache:a}).bimap((function(e){return(0,y.loadFileStepSuccess)({fileName:r.fileName,fileCache:e})}),(function(e){return(0,y.loadFilesErr)(r.fileName,e)})))},t.parseProgress=ne,t.addDefaultLayers=re,t.addDefaultTooltips=ae,t.initialFileLoadingProgress=ie,t.updateFileLoadingProgressUpdater=oe,t.updateAllLayerDomainData=le,t.updateAnimationDomain=ue,t.setFeaturesUpdater=function(e,t){var n=t.features,r=void 0===n?[]:n,a=r.length&&r[r.length-1],i=F(F({},e),{},{editor:F(F({},e.editor),{},{features:r.filter((function(e){return!(0,A.getFilterIdInFeature)(e)})),mode:a&&a.properties.isClosed?L.EDITOR_MODES.EDIT:e.editor.mode})}),o=e.editor.selectedFeature;if(!o)return i;var l=r.find((function(e){return e.id===o.id})),u=l&&(0,A.getFilterIdInFeature)(l);if(u&&l){var s=(0,A.featureToFilterValue)(l,u),c=e.filters.findIndex((function(e){return e.id===u}));return G(i,{idx:c,prop:"value",value:s})}return i},t.deleteFeatureUpdater=function(e,t){var n=t.feature;if(!n)return e;var r=F(F({},e),{},{editor:F(F({},e.editor),{},{selectedFeature:null})});if((0,A.getFilterIdInFeature)(n)){var a=r.filters.findIndex((function(e){return e.id===(0,A.getFilterIdInFeature)(n)}));return a>-1?q(r,{idx:a}):r}var i=F(F({},e.editor),{},{features:e.editor.features.filter((function(e){return e.id!==n.id})),selectedFeature:null});return F(F({},e),{},{editor:i})},t.setPolygonFilterLayerUpdater=function(e,t){var n,r=t.layer,a=t.feature,i=(0,A.getFilterIdInFeature)(a),l=[r.id],u=e;if(i){if(n=e.filters.findIndex((function(e){return e.id===i})),!e.filters[n]){var s=F(F({},a),{},{properties:F(F({},a.properties),{},{filterId:null})});return F(F({},e),{},{editor:F(F({},e.editor),{},{features:[].concat((0,o.default)(e.editor.features),[s]),selectedFeature:s})})}var c=e.filters[n].layerId,d=void 0===c?[]:c,f=d.includes(r.id);l=f?d.filter((function(e){return e!==r.id})):[].concat((0,o.default)(d),[r.id])}else{var p=(0,A.generatePolygonFilter)([],a);n=e.filters.length,u=F(F({},e),{},{filters:[].concat((0,o.default)(e.filters),[p]),editor:F(F({},e.editor),{},{features:e.editor.features.filter((function(e){return e.id!==a.id})),selectedFeature:p.value})})}return G(u,{idx:n,prop:"layerId",value:l})},t.sortTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=t.mode,i=e.datasets[n];if(!i)return e;var o=a;if(!o){var l=(0,p.default)(i,["sortColumn",r]);o=l?Object.keys(L.SORT_ORDER).find((function(e){return e!==l})):L.SORT_ORDER.ASCENDING}var u=(0,E.sortDatasetByColumn)(i,r,o);return(0,x.set)(["datasets",n],u,e)},t.pinTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=e.datasets[n];if(!a)return e;var i,o=a.fields.find((function(e){return e.name===r}));if(!o)return e;i=Array.isArray(a.pinnedColumns)&&a.pinnedColumns.includes(o.name)?a.pinnedColumns.filter((function(e){return e!==o.name})):(a.pinnedColumns||[]).concat(o.name);return(0,x.set)(["datasets",n,"pinnedColumns"],i,e)},t.copyTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=e.datasets[n];if(!a)return e;var i=a.fields.findIndex((function(e){return e.name===r}));if(i<0)return e;var o=a.fields[i].type,l=a.dataContainer.map((function(e){return(0,g.parseFieldValue)(e.valueAt(i),o)}),!0).join("\n");return(0,m.default)(l),e},t.toggleEditorVisibilityUpdater=function(e){return F(F({},e),{},{editor:F(F({},e.editor),{},{visible:!e.editor.visible})})},t.setFilterAnimationTimeConfigUpdater=function(e,t){var n=t.idx,r=t.config,a=e.filters[n];if(!a)return s.console.error("filters.".concat(n," is undefined")),e;if(a.type!==L.FILTER_TYPES.timeRange)return s.console.error("setFilterAnimationTimeConfig can only be called to update a time filter. check filter.type === 'timeRange'"),e;var i=se(r);return(0,P.pick_)("filters")((0,P.swap_)((0,P.merge_)(i)(a)))(e)},t.setLayerAnimationTimeConfigUpdater=function(e,t){var n=t.config;if(!n)return e;var r=se(n);return(0,P.pick_)("animationConfig")((0,P.merge_)(r))(e)},t.setSelectedFeatureUpdater=t.setEditorModeUpdater=t.setMapInfoUpdater=t.applyCPUFilterUpdater=t.loadFilesErrUpdater=t.nextFileBatchUpdater=t.loadFilesUpdater=t.updateVisDataUpdater=t.toggleLayerForMapUpdater=t.toggleSplitMapUpdater=t.mouseMoveUpdater=t.mapClickUpdater=t.layerClickUpdater=t.layerHoverUpdater=t.receiveMapConfigUpdater=t.resetMapConfigUpdater=t.showDatasetTableUpdater=t.updateLayerBlendingUpdater=t.removeDatasetUpdater=t.reorderLayerUpdater=t.duplicateLayerUpdater=t.removeLayerUpdater=t.addLayerUpdater=t.removeFilterUpdater=t.toggleFilterFeatureUpdater=t.enlargeFilterUpdater=t.updateLayerAnimationSpeedUpdater=t.setLayerAnimationTimeUpdater=t.updateFilterAnimationSpeedUpdater=t.toggleLayerAnimationControlUpdater=t.toggleLayerAnimationUpdater=t.toggleFilterAnimationUpdater=t.layerColorUIChangeUpdater=t.addFilterUpdater=t.setFilterPlotUpdater=t.INITIAL_VIS_STATE=t.DEFAULT_EDITOR=t.DEFAULT_ANIMATION_CONFIG=void 0;var i=r(n(372)),o=r(n(36)),l=r(n(72)),u=r(n(4)),s=n(61),c=n(174),d=r(n(176)),f=r(n(132)),p=r(n(96)),h=r(n(675)),m=r(n(324)),g=n(75),v=n(499),y=n(506),b=n(507),A=n(208),_=n(380),O=n(381),E=n(508),x=n(85),M=n(509),w=n(511),S=n(855),T=n(856),C=n(177),L=n(39),P=n(386),k=r(n(327));function D(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn?e-1:e})),clicked:u.isLayerHovered(i)?void 0:i,hoverInfo:u.isLayerHovered(l)?void 0:l,splitMaps:s}))};t.removeLayerUpdater=Z;t.duplicateLayerUpdater=function(e,t){var n=t.idx,r=e.layers,a=e.layers[n],i=e.layerOrder.findIndex((function(e){return e===n}));if(!a)return s.console.warn("layer.".concat(n," is undefined")),e;for(var o="Copy of ".concat(a.config.label),l=0;r.find((function(e){return e.config.label===o}));)o="Copy of ".concat(a.config.label," ").concat(++l);var u=(0,w.serializeLayer)(a);if(!u.config)return e;u.config.label=o,u.id=(0,x.generateHashId)(T.LAYER_ID_LENGTH);var c=X(e,{config:u}),d=c.layerOrder.length-1,f=(0,x.arrayInsert)(c.layerOrder.slice(0,d),i,d);return ue(c=F(F({},c),{},{layerOrder:f}))};t.reorderLayerUpdater=function(e,t){var n=t.order;return F(F({},e),{},{layerOrder:n})};var K=function(e,t){var n=t.dataId;if(!e.datasets[n])return e;var r=e.layers,a=e.datasets,i=(a[n],(0,l.default)(a,[n].map(j))),o=r.reduce((function(e,t,r){return t.config.dataId===n&&e.push(r),e}),[]).reduce((function(e,t){var n=e.newState,r=e.indexCounter;return{newState:n=Z(n,{idx:t-r}),indexCounter:++r}}),{newState:F(F({},e),{},{datasets:i}),indexCounter:0}).newState,u=e.filters.filter((function(e){return!e.dataId.includes(n)})),s=e.interactionConfig,c=s.tooltip;if(c){var d=c.config,f=d.fieldsToShow,p=(f[n],(0,l.default)(f,[n].map(j)));s=F(F({},s),{},{tooltip:F(F({},c),{},{config:F(F({},d),{},{fieldsToShow:p})})})}return F(F({},o),{},{filters:u,interactionConfig:s})};t.removeDatasetUpdater=K;t.updateLayerBlendingUpdater=function(e,t){return F(F({},e),{},{layerBlending:t.mode})};t.showDatasetTableUpdater=function(e,t){return F(F({},e),{},{editingDataset:t.dataId})};var J=function(e){return F(F(F({},z),e.initialState),{},{initialState:e.initialState})};t.resetMapConfigUpdater=J;var Q=function(e,t){var n=t.payload,r=n.config,a=void 0===r?{}:r,i=n.options,o=void 0===i?{}:i;if(!a.visState)return e;var l,u=o.keepExistingConfig?e:J(e),s=D(e.mergers);try{for(s.s();!(l=s.n()).done;){var c=l.value;(0,w.isValidMerger)(c)&&a.visState[c.prop]&&(u=c.merge(u,a.visState[c.prop],!0))}}catch(e){s.e(e)}finally{s.f()}return u};t.receiveMapConfigUpdater=Q;t.layerHoverUpdater=function(e,t){return F(F({},e),{},{hoverInfo:t.info})};t.layerClickUpdater=function(e,t){return F(F({},e),{},{mousePos:e.interactionConfig.coordinate.enabled?F(F({},e.mousePos),{},{pinned:e.mousePos.pinned?null:(0,d.default)(e.mousePos)}):e.mousePos,clicked:t.info&&t.info.picked?t.info:null})};t.mapClickUpdater=function(e){return F(F({},e),{},{clicked:null})};t.mouseMoveUpdater=function(e,t){var n=t.evt;return Object.values(e.interactionConfig).some((function(e){return e.enabled}))?F(F({},e),{},{mousePos:F(F({},e.mousePos),{},{mousePosition:(0,o.default)(n.point),coordinate:(0,o.default)(n.lngLat)})}):e};t.toggleSplitMapUpdater=function(e,t){return e.splitMaps&&0===e.splitMaps.length?F(F({},e),{},{splitMaps:(0,S.computeSplitMapLayers)(e.layers)}):$(e,t)};t.toggleLayerForMapUpdater=function(e,t){var n=t.mapIndex,r=t.layerId,a=e.splitMaps;return F(F({},e),{},{splitMaps:a.map((function(e,t){return t===n?F(F({},a[t]),{},{layers:F(F({},a[t].layers),{},(0,u.default)({},r,!a[t].layers[r]))}):e}))})};function $(e,t){var n=1-t.payload,r=e.splitMaps[n].layers,a=e.layers.map((function(e){return!r[e.id]&&e.config.isVisible?e.updateLayerConfig({isVisible:!1}):e}));return F(F({},e),{},{layers:a,splitMaps:[]})}t.updateVisDataUpdater=function(e,t){var n,r=t.config,a=t.options,i=(0,x.toArray)(t.datasets).reduce((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.info,a=void 0===r?{}:r,i=(0,l.default)(n,["info"]);return F(F({},t),(0,O.createNewDataEntry)(F({info:a},i),e.datasets)||{})}),{}),o=Object.keys(i).length<1,u=r?Q(e,{payload:{config:r,options:a}}):e,s=F(F({},u),{},{datasets:F(F({},u.datasets),i)}),c=D(s.mergers);try{for(c.s();!(n=c.n()).done;){var d=n.value;if((0,w.isValidMerger)(d)&&d.toMergeProp&&s[d.toMergeProp]){var f=s[d.toMergeProp];s[d.toMergeProp]=z[d.toMergeProp],s=d.merge(s,f)}}}catch(e){c.e(e)}finally{c.f()}var p=o?[]:s.layers.filter((function(e){return e.config.dataId&&e.config.dataId in i}));if(!p.length&&!1!==(a||{}).autoCreateLayers){var h=re(s,i);s=h.state,p=h.newLayers}s.splitMaps.length&&(p=s.layers.filter((function(e){return e.config.dataId&&e.config.dataId in i})),s=F(F({},s),{},{splitMaps:(0,S.addNewLayersToSplitMap)(s.splitMaps,p)})),Object.keys(i).forEach((function(e){var t=s.interactionConfig.tooltip.config.fieldsToShow[e];Array.isArray(t)&&t.length||(s=ae(s,i[e]))}));var m=le(s,o?Object.keys(s.datasets):Object.keys(i),void 0);return m=ue(m)};function ee(e){if(!e.fileLoading)return e;var t=e.fileLoading.filesToLoad,n=(0,i.default)(t),r=n[0],a=n.slice(1),o=(0,P.pick_)("fileLoading")((0,P.merge_)({filesToLoad:a}))(e),l=oe(o,{fileName:r.name,progress:{percent:0,message:"loading..."}}),u=e.loaders,s=e.loadOptions;return(0,c.withTask)(l,te(r,o.fileLoading.fileCache,u,s))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,v.LOAD_FILE_TASK)({file:e,fileCache:t,loaders:n,loadOptions:r}).bimap((function(n){return(0,y.nextFileBatch)({gen:n,fileName:e.name,onFinish:function(e){return(0,y.processFileContent)({content:e,fileCache:t})}})}),(function(t){return(0,y.loadFilesErr)(e.name,t)}))}function ne(){var e=arguments.length>1?arguments[1]:void 0;return e&&e.percent?{percent:e.percent}:{}}t.loadFilesUpdater=function(e,t){var n=t.files,r=t.onFinish,a=void 0===r?y.loadFilesSuccess:r;if(!n.length)return e;var i=Array.from(n).reduce((function(e,t,n){return(0,P.merge_)(ie(t,n))(e)}),{}),o={fileCache:[],filesToLoad:n,onFinish:a};return ee((0,P.merge_)({fileLoadingProgress:i,fileLoading:o})(e))};t.nextFileBatchUpdater=function(e,t){var n=t.payload,r=n.gen,a=n.fileName,i=n.progress,o=n.accumulated,l=n.onFinish,u=oe(e,{fileName:a,progress:ne(e.fileLoadingProgress[a],i)});return(0,c.withTask)(u,(0,v.UNWRAP_TASK)(r.next()).bimap((function(e){var t=e.value;return e.done?l(o):(0,y.nextFileBatch)({gen:r,fileName:a,progress:t.progress,accumulated:t,onFinish:l})}),(function(e){return(0,y.loadFilesErr)(a,e)})))};t.loadFilesErrUpdater=function(e,t){var n=t.error,r=t.fileName;if(s.console.warn(n),!e.fileLoading)return e;var a=e.fileLoading,i=a.filesToLoad,o=a.onFinish,l=a.fileCache,u=oe(e,{fileName:r,progress:{error:n}});return(0,c.withTask)(u,(0,v.DELAY_TASK)(200).map(i.length?y.loadNextFile:function(){return o(l)}))};t.applyCPUFilterUpdater=function(e,t){var n=t.dataId;return(0,x.toArray)(n).reduce((function(e,t){return(0,A.filterDatasetCPU)(e,t)}),e)};function re(e,t){var n=Object.values(t).reduce((function(t,n){var r=(0,M.findDefaultLayer)(n,e.layerClasses);return r&&r.length?t.concat(r):t}),[]);return{state:F(F({},e),{},{layers:[].concat((0,o.default)(e.layers),(0,o.default)(n)),layerOrder:[].concat((0,o.default)(n.map((function(t,n){return e.layers.length+n}))),(0,o.default)(e.layerOrder))}),newLayers:n}}function ae(e,t){var n=(0,b.findFieldsToShow)(t),r=F(F({},e.interactionConfig.tooltip.config.fieldsToShow),n);return(0,x.set)(["interactionConfig","tooltip","config","fieldsToShow"],r,e)}function ie(e,t){var n=e.name||"Untitled File ".concat(t);return(0,u.default)({},n,{percent:0,message:"",fileName:n,error:null})}function oe(e,t){var n=t.fileName,r=t.progress;return(0,P.pick_)("fileLoadingProgress")((0,P.pick_)(n)((0,P.merge_)(r)))(e)}function le(e,t,n){var r="string"==typeof t?[t]:t,a=[],i=[];return e.layers.forEach((function(t,o){if(t.config.dataId&&r.includes(t.config.dataId)){var l=n&&n.fixedDomain?t:t.updateLayerDomain(e.datasets,n),u=(0,M.calculateLayerData)(l,e,e.layerData[o]),s=u.layerData,c=u.layer;a.push(c),i.push(s)}else a.push(t),i.push(e.layerData[o])})),F(F({},e),{},{layers:a,layerData:i})}function ue(e){var t=e.layers.filter((function(e){return e.config.isVisible&&e.config.animation&&e.config.animation.enabled&&Array.isArray(e.animationDomain)}));if(!t.length)return F(F({},e),{},{animationConfig:F(F({},e.animationConfig),{},{domain:null,defaultTimeFormat:null})});var n=t.reduce((function(e,t){return[Math.min(e[0],t.animationDomain[0]),Math.max(e[1],t.animationDomain[1])]}),[Number(1/0),-1/0]),r=(0,A.getTimeWidgetTitleFormatter)(n);return F(F({},e),{},{animationConfig:F(F({},e.animationConfig),{},{currentTime:(0,A.isInRange)(e.animationConfig.currentTime,n)?e.animationConfig.currentTime:n[0],domain:n,defaultTimeFormat:r})})}t.setMapInfoUpdater=function(e,t){return F(F({},e),{},{mapInfo:F(F({},e.mapInfo),t.info)})};t.setEditorModeUpdater=function(e,t){var n=t.mode;return F(F({},e),{},{editor:F(F({},e.editor),{},{mode:n,selectedFeature:null})})};function se(e){var t=["timeFormat","timezone"];return Object.keys(e).reduce((function(n,r){return t.includes(r)?(n[r]=e[r],n):(s.console.error("setLayerAnimationTimeConfig takes timeFormat and/or timezone as options, found ".concat(r)),n)}),{})}t.setSelectedFeatureUpdater=function(e,t){var n=t.feature;return F(F({},e),{},{editor:F(F({},e.editor),{},{selectedFeature:n})})}},function(e,t,n){var r=n(670),a=n(671),i=n(498),o=n(673);e.exports=function(e){return r(e)||a(e)||i(e)||o()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._run=function(e,t,n,r,a){if("function"!=typeof e.run)throw new Error("Attempted to run something that is not a task.");return e.run(t,n,r,a)},t.fromPromise=function(e,t){var n=function(n){return a((function(t,r){return e(n).then(t,r)}),n,t)};return n.type=t,n},t.fromPromiseWithProgress=function(e,t){var n=function(n){var i=n.arg,o=n.onProgress;return a((function(t,n,a){return e({arg:i,onProgress:(a?function(e){return a.onProgress(o(e))}:r)||r}).then(t,n)}),{arg:i,onProgress:o},t)};return n.type=t,n},t.fromCallback=function(e,t){var n=function(n){return a((function(t,r){return e(n,(function(e,n){return e?r(e):t(n)}))}),n,t)};return n.type=t,n},t.taskCreator_=a,t.reportTasksForTesting=function(e){o=e},t.all=function(e){return i(e.map((function(e){return e.payload})),(function(t,n,r,a){if(0===e.length)return n([]);var i=Array(e.length),o=0,l=null;function u(e){if(e)return r(l=e)}return Promise.all(e.map((function(r,s){return r.run(t,function(t){return function(r){if(!l)return i[t]=r,(o+=1)===e.length?n(i):void 0}}(s),u,a)})))}),"Task.all("+e.map((function(e){return e.type})).join(", ")+")")},t.allSettled=function(e){return i(e.map((function(e){return e.payload})),(function(t,n,r,a){if(0===e.length)return n([]);var i=Array(e.length),o=0;function l(t,r){return function(a){if(i[t]={status:r,value:a},(o+=1)===e.length)return n(i)}}return Promise.allSettled(e.map((function(e,n){return e.run(t,l(n,"fulfilled"),l(n,"rejected"),a)})))}),"Task.allSettled("+e.map((function(e){return e.type})).join(", ")+")")};var r=function(){};function a(e,t,n){var r=function(n,r,i){return o("start",a,t),e((function(e){return o("success",a,e),n(e)}),(function(e){return o("error",a,e),r(e)}),i)};r.payload=t,r.type=n;var a=i(t,(function(e,t,n,a){return e(r,t,n,a)}),n);return a}function i(e,t,n){return{label:n,type:n,payload:e,run:t,chain:function(r){return i(e,(function(e,n,a,i){return t(e,(function(t){return r(t).run(e,n,a,i)}),a,i)}),"Chain(".concat(n,")"))},map:function(r){return i(e,(function(e,n,a,i){return t(e,(function(e){return n(r(e))}),a,i)}),n)},bimap:function(r,a){return i(e,(function(e,n,i,o){return t(e,(function(e){return n(r(e))}),(function(e){return i(a(e))}),o)}),n)}}}var o=function(e,t,n){}},function(e,t,n){"use strict";(function(t){var r=n(1271); +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function a(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a=0;s--)if(c[s]!==d[s])return!1;for(s=c.length-1;s>=0;s--)if(l=c[s],!b(e[l],t[l],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function A(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e,t,n,r){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&v(a,n,"Missing expected exception"+r);var i="string"==typeof r,l=!e&&a&&!n;if((!e&&o.isError(a)&&i&&_(a,n)||l)&&v(a,n,"Got unwanted exception"+r),e&&a&&n&&!_(a,n)||!e&&a)throw a}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=h(t),i=r.indexOf("\n"+a);if(i>=0){var o=r.indexOf("\n",i+1);r=r.substring(o+1)}this.stack=r}}},o.inherits(f.AssertionError,Error),f.fail=v,f.ok=y,f.equal=function(e,t,n){e!=t&&v(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&v(t,n,r,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){O(!0,e,t,n)},f.doesNotThrow=function(e,t,n){O(!1,e,t,n)},f.ifError=function(e){if(e)throw e},f.strict=r((function e(t,n){t||v(t,!0,n,"==",e)}),f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var E=Object.keys||function(e){var t=[];for(var n in e)l.call(e,n)&&t.push(n);return t}}).call(this,n(67))},function(e,t,n){"use strict";var r,a;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.ELEMENT_TYPE=t.STATIC_STYLE=t.OPERATIONS=t.RENDER_STATE=t.MODE_TO_RENDER_TYPE=t.RENDER_TYPE=t.MODE_TO_GEOJSON_TYPE=t.GEOJSON_TYPE=t.DRAWING_MODES=t.MODES=void 0;var o={READ_ONLY:"READ_ONLY",SELECT_FEATURE:"SELECT_FEATURE",EDIT_VERTEX:"EDIT_VERTEX",DRAW_POINT:"DRAW_POINT",DRAW_PATH:"DRAW_PATH",DRAW_POLYGON:"DRAW_POLYGON",DRAW_RECTANGLE:"DRAW_RECTANGLE"};t.MODES=o;var l=[o.DRAW_POINT,o.DRAW_PATH,o.DRAW_POLYGON,o.DRAW_RECTANGLE];t.DRAWING_MODES=l;var u={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon"};t.GEOJSON_TYPE=u;var s=(i(r={},o.DRAW_POINT,u.POINT),i(r,o.DRAW_PATH,u.LINE_STRING),i(r,o.DRAW_POLYGON,u.POLYGON),i(r,o.DRAW_RECTANGLE,u.POLYGON),r);t.MODE_TO_GEOJSON_TYPE=s;var c={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",RECTANGLE:"Rectangle"};t.RENDER_TYPE=c;var d=(i(a={},o.DRAW_POINT,c.POINT),i(a,o.DRAW_PATH,c.LINE_STRING),i(a,o.DRAW_POLYGON,c.POLYGON),i(a,o.DRAW_RECTANGLE,c.RECTANGLE),a);t.MODE_TO_RENDER_TYPE=d;t.RENDER_STATE={INACTIVE:"INACTIVE",UNCOMMITTED:"UNCOMMITTED",SELECTED:"SELECTED",HOVERED:"HOVERED",CLOSING:"CLOSING"};t.OPERATIONS={NONE:"NONE",SET:"SET",INTERSECT:"INTERSECT",INSERT:"INSERT"};t.STATIC_STYLE={cursor:"default",pointerEvents:"none"};t.ELEMENT_TYPE={FEATURE:"feature",SEGMENT:"segment",VERTEX:"vertex"}},function(e,t,n){(e.exports=n(1355)).tz.load(n(1357))},function(e,t,n){"use strict";var r={DATA_TYPES:{DATE:"DATE",TIME:"TIME",DATETIME:"DATETIME",NUMBER:"NUMBER",INT:"INT",FLOAT:"FLOAT",CURRENCY:"CURRENCY",PERCENT:"PERCENT",STRING:"STRING",ZIPCODE:"ZIPCODE",BOOLEAN:"BOOLEAN",GEOMETRY:"GEOMETRY",GEOMETRY_FROM_STRING:"GEOMETRY_FROM_STRING",PAIR_GEOMETRY_FROM_STRING:"PAIR_GEOMETRY_FROM_STRING",NONE:"NONE",ARRAY:"ARRAY",DATE_OBJECT:"DATE_OBJECT",OBJECT:"OBJECT"},CATEGORIES:{GEOMETRY:"GEOMETRY",TIME:"TIME",DIMENSION:"DIMENSION",MEASURE:"MEASURE"},BOOLEAN_TRUE_VALUES:["true","yes"],BOOLEAN_FALSE_VALUES:["false","no"],DB_NULL:"\\N",NULL:"NULL",POSSIBLE_TYPES:{}};r.POSSIBLE_TYPES[r.CATEGORIES.GEOMETRY]=[r.DATA_TYPES.GEOMETRY_FROM_STRING,r.DATA_TYPES.PAIR_GEOMETRY_FROM_STRING,r.DATA_TYPES.GEOMETRY],r.POSSIBLE_TYPES[r.CATEGORIES.TIME]=[r.DATA_TYPES.DATETIME,r.DATA_TYPES.DATE,r.DATA_TYPES.TIME],r.POSSIBLE_TYPES[r.CATEGORIES.DIMENSION]=[r.DATA_TYPES.STRING,r.DATA_TYPES.BOOLEAN,r.DATA_TYPES.ZIPCODE],r.POSSIBLE_TYPES[r.CATEGORIES.MEASURE]=[r.DATA_TYPES.NUMBER,r.DATA_TYPES.INT,r.DATA_TYPES.FLOAT,r.DATA_TYPES.CURRENCY,r.DATA_TYPES.PERCENT],r.TYPES_TO_CATEGORIES=Object.keys(r.POSSIBLE_TYPES).reduce((function(e,t){return r.POSSIBLE_TYPES[t].forEach((function(n){e[n]=t})),e}),{}),r.VALIDATORS=[r.DATA_TYPES.GEOMETRY,r.DATA_TYPES.GEOMETRY_FROM_STRING,r.DATA_TYPES.PAIR_GEOMETRY_FROM_STRING,r.DATA_TYPES.BOOLEAN,r.DATA_TYPES.ARRAY,r.DATA_TYPES.DATE_OBJECT,r.DATA_TYPES.OBJECT,r.DATA_TYPES.CURRENCY,r.DATA_TYPES.PERCENT,r.DATA_TYPES.DATETIME,r.DATA_TYPES.DATE,r.DATA_TYPES.TIME,r.DATA_TYPES.INT,r.DATA_TYPES.FLOAT,r.DATA_TYPES.NUMBER,r.DATA_TYPES.ZIPCODE,r.DATA_TYPES.STRING],r.TIME_VALIDATORS=[r.DATA_TYPES.DATETIME,r.DATA_TYPES.DATE,r.DATA_TYPES.TIME],e.exports=r},function(e,t){e.exports=function(e){if(!e||!e.type)return null;var t=n[e.type];if(!t)return null;if("geometry"===t)return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]};if("feature"===t)return{type:"FeatureCollection",features:[e]};if("featurecollection"===t)return e};var n={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"}},function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function a(e,t,n){return void 0===n&&(n={}),r({type:"Point",coordinates:e},t,n)}function i(e,t,n){void 0===n&&(n={});for(var a=0,i=e;a=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=d,t.lengthToRadians=f,t.lengthToDegrees=function(e,t){return p(f(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=p,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return d(f(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=t.areaFactors[n];if(!a)throw new Error("invalid original units");var i=t.areaFactors[r];if(!i)throw new Error("invalid final units");return e/a*i},t.isNumber=h,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!h(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")},t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.setFilterGpuMode=function(e,t){return e.dataId.forEach((function(n,r){var a=t.filter((function(e){return e.dataId.includes(n)&&e.gpu}));if(e.gpu&&a.length===o.MAX_GPU_FILTERS)return(0,i.set)(["gpu"],!1,e)})),e},t.assignGpuChannels=function(e){return e.reduce((function(e,t,n){var r=e;return t.gpu&&(t=d(t,e),r=(0,i.set)([n],t,e)),r}),e)},t.assignGpuChannel=d,t.resetFilterGpuMode=function(e){var t={};return e.map((function(e,n){if(e.gpu){var r=!0;if((0,i.toArray)(e.dataId).forEach((function(e){var n=t[e];n===o.MAX_GPU_FILTERS?r=!1:t[e]=n?n+1:1})),!r)return(0,i.set)(["gpu"],!1,e)}return e}))},t.getGpuFilterProps=function(e,t,n){for(var r=new Array(o.MAX_GPU_FILTERS).fill(0).map((function(e){return[0,0]})),a={},i=[],s=function(n){var o=e.find((function(e){return e.gpu&&e.dataId.includes(t)&&e.gpuChannel&&e.gpuChannel[e.dataId.indexOf(t)]===n}));r[n][0]=o?o.value[0]-o.domain[0]:0,r[n][1]=o?o.value[1]-o.domain[0]:0,a["gpuFilter_".concat(n)]=o?o.name[o.dataId.indexOf(t)]:null,i.push(o)},c=0;c0&&void 0!==arguments[0]?arguments[0]:f,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return function(s){return e.map((function(e){if(!e)return 0;var c=h(t,e),d=n[c],f=e.type===o.FILTER_TYPES.timeRange?d.filterProps&&Array.isArray(d.filterProps.mappedValue)?d.filterProps.mappedValue[a(s)]:u.default.utc(i(r,s,c)).valueOf():i(r,s,c);return(0,l.notNullorUndefined)(f)?f-e.domain[0]:Number.MIN_SAFE_INTEGER}))}}}}(i,t,n);return{filterRange:r,filterValueUpdateTriggers:a,filterValueAccessor:d}},t.getDatasetFieldIndexForFilter=h;var a=r(n(4)),i=n(85),o=n(39),l=n(75),u=r(n(23));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t-1&&n.gpu&&(0,i.toArray)(n.gpuChannel)[a]===t}};if(!Number.isFinite(n[a])||t.find(l(n[a])))for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:{},l=(0,c.validateInputData)(n);if(!l)return{};var u=(t=t||{}).color||y(o),s=new d.default(p({info:t,data:l,color:u},r));return(0,a.default)({},s.id,s)},t.findDefaultColorField=function(e){var t=e.fields,n=e.fieldPairs,r=void 0===n?[]:n,a=t.filter((function(e){if(e.type!==s.ALL_FIELD_TYPES.real&&e.type!==s.ALL_FIELD_TYPES.integer)return!1;if(r.find((function(t){return t.pair.lat.value===e.name||t.pair.lng.value===e.name})))return!1;var t=e.name.toLowerCase();if(""===t)return!1;var n=b.find((function(e){return t.startsWith(e)||t.endsWith(e)})),a=A.find((function(e){return t.startsWith(e)||t.endsWith(e)}));return!n||a})).sort((function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase(),a=A.findIndex((function(e){return n.startsWith(e)||n.endsWith(e)})),i=A.findIndex((function(e){return r.startsWith(e)||r.endsWith(e)}));return a!==i?-1===a?1:-1===i?-1:a-i:e.type!==t.type?e.type===s.ALL_FIELD_TYPES.real?-1:1:e.index-t.index}));if(a.length)return a[0];return null},t.datasetColorMaker=void 0;var a=r(n(4)),i=r(n(72)),o=r(n(13)),l=n(156),u=r(n(132)),s=n(39),c=n(272),d=r(n(508));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&(this.theta=Math.atan2(e[0],e[1]),this.phi=Math.acos(Object(r.a)(e[2]/this.radius,-1,1))),this.check()}toVector3(){return new a.a(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}check(){if(!(Number.isFinite(this.phi)&&Number.isFinite(this.theta)&&this.radius>0))throw new Error("SphericalCoordinates: some fields set to invalid numbers");return this}}},function(e,t,n){var r=n(1392),a={};function i(e){return a[e=e||256]||(a[e]=new r({size:e})),a[e]}e.exports.viewport=function(e,t,n,r,a,o){n=void 0===n?0:n,r=void 0===r?20:r;var l=i(a),u=r,s=l.px([e[0],e[1]],u),c=l.px([e[2],e[3]],u),d=c[0]-s[0],f=s[1]-c[1],p=s[0]+d/2,h=c[1]+f/2,m=[d/t[0],f/t[1]],g=function(e,t,n){var r=Math.min(e-Math.log(t[0])/Math.log(2),e-Math.log(t[1])/Math.log(2));return n?r:Math.floor(r)}(u,m,o),v=l.ll([p,h],u),y=Math.max(n,Math.min(r,g));return{center:v,zoom:y}},e.exports.bounds=function(e,t,n,r){void 0!==e.lon&&(e=[e.lon,e.lat]);var a=i(r),o=a.px(e,t),l=a.ll([o[0]-n[0]/2,o[1]-n[1]/2],t),u=a.ll([o[0]+n[0]/2,o[1]+n[1]/2],t);return[l[0],u[1],u[0],l[1]]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return g}));var r=n(485),a=n(356),i=n(65),o=n(202),l=n(259);function u(e){return e.source}function s(e){return e.target}function c(e){var t=u,n=s,l=o.a,c=o.b,d=null;function f(){var i,o=a.a.call(arguments),u=t.apply(this,o),s=n.apply(this,o);if(d||(d=i=Object(r.a)()),e(d,+l.apply(this,(o[0]=u,o)),+c.apply(this,o),+l.apply(this,(o[0]=s,o)),+c.apply(this,o)),i)return d=null,i+""||null}return f.source=function(e){return arguments.length?(t=e,f):t},f.target=function(e){return arguments.length?(n=e,f):n},f.x=function(e){return arguments.length?(l="function"==typeof e?e:Object(i.a)(+e),f):l},f.y=function(e){return arguments.length?(c="function"==typeof e?e:Object(i.a)(+e),f):c},f.context=function(e){return arguments.length?(d=null==e?null:e,f):d},f}function d(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function f(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function p(e,t,n,r,a){var i=Object(l.a)(t,n),o=Object(l.a)(t,n=(n+a)/2),u=Object(l.a)(r,n),s=Object(l.a)(r,a);e.moveTo(i[0],i[1]),e.bezierCurveTo(o[0],o[1],u[0],u[1],s[0],s[1])}function h(){return c(d)}function m(){return c(f)}function g(){var e=c(p);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},function(e,t,n){"use strict";n.r(t);var r=n(1202);n.d(t,"SimpleMeshLayer",(function(){return r.a}));var a=n(1187);n.d(t,"ScenegraphLayer",(function(){return a.a}))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(e){return function(t){return i.default.log(e,t)}},t.payload_=function(e){return{payload:e}},t.apply_=function(e,t){return function(n){return e(n,t)}},t.with_=function(e){return function(t){return e(t)(t)}},t.if_=function(e,t){return e?t:u},t.compose_=function(e){return function(t){return e.reduce((function(e,t){return t(e)}),t)}},t.merge_=function(e){return function(t){return l(l({},t),e)}},t.pick_=function(e){return function(t){return function(n){return l(l({},n),{},(0,a.default)({},e,t(n[e])))}}},t.swap_=function(e){return function(t){return t.map((function(t){return t.id===e.id?e:t}))}},t.findById=function(e){return function(t){return t.find((function(t){return t.id===e}))}},t.map_=function(e){return function(t){return t.map((function(t){return e(t)}))}};var a=r(n(4)),i=r(n(98));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if([e,t,n,r].some((function(e){return e<=0})))return 1;var a=e/t>1?e:t,i=e/t>1?n:r;return a/i},t.calculateExportImageSize=function(e){var t=e.mapW,n=e.mapH,r=e.ratio,a=e.resolution;if(t<=0||n<=0)return null;var i=l.EXPORT_IMG_RATIO_OPTIONS.find((function(e){return e.id===r}))||v,o=l.EXPORT_IMG_RESOLUTION_OPTIONS.find((function(e){return e.id===a}))||g,u=o.getSize(t,n),s=u.width,c=u.height,d=i.getSize(s,c),f=d.width,p=d.height;return{scale:(i.id===l.EXPORT_IMG_RATIOS.CUSTOM?{}:o).scale,imageW:f,imageH:p}},t.convertToPng=function(e,t){return i.default.toPng(e,t)},t.dataURItoBlob=b,t.downloadFile=A,t.exportImage=_,t.exportToJsonString=O,t.getMapJSON=E,t.exportJson=x,t.exportHtml=M,t.exportData=w,t.exportMap=function(e,t){var n=e.uiState.exportImage.imageDataUri,r=n?b(n):null;return{map:E(e,t),thumbnail:r}},t.default=t.DEFAULT_EXPORT_JSON_SETTINGS=t.DEFAULT_DATA_NAME=t.DEFAULT_JSON_NAME=t.DEFAULT_HTML_NAME=t.DEFAULT_IMAGE_NAME=void 0;var a=r(n(4)),i=r(n(1418)),o=n(61),l=n(39),u=n(1422),s=n(272),c=r(n(96)),d=n(85),f=n(276);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"kepler.gl.png",n=e.uiState.exportImage.imageDataUri;if(n){var r=b(n);A(r,t)}}function O(e){try{return JSON.stringify(e)}catch(e){return e.description}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=t.hasData,r=e.visState.schema;if(!n)return r.getConfigToSave(e);var a=r.save(e),i=(0,c.default)(a,["info","title"]);return i&&i.length||(a=(0,d.set)(["info","title"],"keplergl_".concat((0,d.generateHashId)(6)),a)),a}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(e,t),r=new o.Blob([O(n)],{type:"application/json"}),a=e.appName?"".concat(e.appName,".json"):"kepler.gl.json";A(r,a)}function M(e,t){var n=t.userMapboxToken,r=t.exportMapboxAccessToken,a=t.mode,i=h(h({},E(e)),{},{mapboxApiAccessToken:""!==(n||"")?n:r,mode:a});A(new o.Blob([(0,u.exportMapToHTML)(i)],{type:"text/html"}),e.appName?"".concat(e.appName,".html"):"kepler.gl.html")}function w(e,t){var n=e.visState,r=e.appName,a=n.datasets,i=t.selectedDataset,u=t.dataType,c=t.filtered,d=r||"kepler.gl",p=a[i]?[a[i]]:Object.values(a);p.length&&p.forEach((function(e){var t=e.dataContainer,n=e.fields,r=e.label,a=e.filteredIdxCPU,i=void 0===a?[]:a,p=c?(0,f.createIndexedDataContainer)(t,i):t;switch(u){case l.EXPORT_DATA_TYPE.CSV:var h=(0,s.formatCsv)(p,n);A(new o.Blob([h],{type:"text/csv"}),"".concat(d,"_").concat(r,".csv"))}}))}var S={exportImage:_,exportJson:x,exportHtml:M,exportData:w};t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSavedMapsError=t.getSavedMapsSuccess=t.getSavedMaps=t.loadCloudMapError=t.loadCloudMapSuccess=t.loadCloudMap=t.setCloudProvider=t.resetProviderStatus=t.postSaveLoadSuccess=t.exportFileError=t.exportFileSuccess=t.exportFileToCloud=t.ActionTypes=void 0;var r=n(100),a=n(131),i={EXPORT_FILE_TO_CLOUD:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_TO_CLOUD"),EXPORT_FILE_SUCCESS:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_SUCCESS"),EXPORT_FILE_ERROR:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_ERROR"),RESET_PROVIDER_STATUS:"".concat(a.ACTION_PREFIX,"RESET_PROVIDER_STATUS"),SET_CLOUD_PROVIDER:"".concat(a.ACTION_PREFIX,"SET_CLOUD_PROVIDER"),POST_SAVE_LOAD_SUCCESS:"".concat(a.ACTION_PREFIX,"POST_SAVE_LOAD_SUCCESS"),LOAD_CLOUD_MAP:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP"),LOAD_CLOUD_MAP_SUCCESS:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP_SUCCESS"),LOAD_CLOUD_MAP_ERROR:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP_ERROR"),GET_SAVED_MAPS:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS"),GET_SAVED_MAPS_SUCCESS:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS_SUCCESS"),GET_SAVED_MAPS_ERROR:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS_ERROR")};t.ActionTypes=i;var o=(0,r.createAction)(i.EXPORT_FILE_TO_CLOUD,(function(e){return e}));t.exportFileToCloud=o;var l=(0,r.createAction)(i.EXPORT_FILE_SUCCESS,(function(e){return e}));t.exportFileSuccess=l;var u=(0,r.createAction)(i.EXPORT_FILE_ERROR,(function(e){return e}));t.exportFileError=u;var s=(0,r.createAction)(i.POST_SAVE_LOAD_SUCCESS,(function(e){return e}));t.postSaveLoadSuccess=s;var c=(0,r.createAction)(i.RESET_PROVIDER_STATUS);t.resetProviderStatus=c;var d=(0,r.createAction)(i.SET_CLOUD_PROVIDER,(function(e){return e}));t.setCloudProvider=d;var f=(0,r.createAction)(i.LOAD_CLOUD_MAP,(function(e){return e}));t.loadCloudMap=f;var p=(0,r.createAction)(i.LOAD_CLOUD_MAP_SUCCESS,(function(e){return e}));t.loadCloudMapSuccess=p;var h=(0,r.createAction)(i.LOAD_CLOUD_MAP_ERROR,(function(e){return e}));t.loadCloudMapError=h;var m=(0,r.createAction)(i.GET_SAVED_MAPS,(function(e){return e}));t.getSavedMaps=m;var g=(0,r.createAction)(i.GET_SAVED_MAPS_SUCCESS,(function(e){return e}));t.getSavedMapsSuccess=g;var v=(0,r.createAction)(i.GET_SAVED_MAPS_ERROR,(function(e){return e}));t.getSavedMapsError=v},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,s=l||u||Function("return this")(),c=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return s.Date.now()};function h(e,t,n){var r,a,i,o,l,u,s=0,c=!1,h=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=a;return r=a=void 0,s=t,o=e.apply(i,n)}function b(e){return s=e,l=setTimeout(_,t),c?y(e):o}function A(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-s>=i}function _(){var e=p();if(A(e))return O(e);l=setTimeout(_,function(e){var n=t-(e-u);return h?f(n,i-(e-s)):n}(e))}function O(e){return l=void 0,v&&r?y(e):(r=a=void 0,o)}function E(){var e=p(),n=A(e);if(r=arguments,a=this,u=e,n){if(void 0===l)return b(u);if(h)return l=setTimeout(_,t),y(u)}return void 0===l&&(l=setTimeout(_,t)),o}return t=g(t)||0,m(n)&&(c=!!n.leading,i=(h="maxWait"in n)?d(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=a=l=void 0},E.flush=function(){return void 0===l?o:O(p())},E}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=a.test(e);return l||i.test(e)?o(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),h(e,t,{leading:r,maxWait:t,trailing:a})}}).call(this,n(67))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(0)),l=r(n(1)),u=n(74),s=n(51),c=n(40),d=n(58),f=r(n(15)),p=n(85),h=f.default.div(a||(a=(0,i.default)(["\n align-items: center;\n margin-left: 10px;\n color: ",";\n display: inline-flex;\n .info-helper__content {\n width: ",";\n max-width: ",";\n }\n :hover {\n cursor: pointer;\n color: ",";\n }\n"])),(function(e){return e.theme.labelColor}),(function(e){return e.width?"".concat(e.width,"px"):"auto"}),(function(e){return e.width?"auto":"100px"}),(function(e){return e.theme.textColorHl}));var m=function(){var e={description:l.default.string.isRequired,containerClass:l.default.string},t=function(e){var t=e.description,n=e.property,r=e.containerClass,a=e.width,i=e.id,l=(0,u.useIntl)();return o.default.createElement(h,{className:"info-helper ".concat(r||""),width:a,"data-tip":!0,"data-for":i},o.default.createElement(d.Docs,{height:"16px"}),o.default.createElement(c.Tooltip,{id:i,effect:"solid"},o.default.createElement("div",{className:"info-helper__content"},t&&o.default.createElement(s.FormattedMessage,{id:t,defaultValue:t,values:{property:l.formatMessage({id:n?"property.".concat((0,p.camelize)(n)):"misc.empty"})}}))))};return t.propTypes=e,t};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(1460),i=(r=a)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.inputColor=t.inputBorderActiveColorLT=t.inputBorderActiveColor=t.inputBorderHoverColorLT=t.inputBorderHoverColor=t.inputBorderColor=t.inputBgdActiveLT=t.inputBgdActive=t.inputBgdHover=t.inputBgd=t.inputFontWeight=t.inputFontSizeSmall=t.inputFontSize=t.inputPaddingTiny=t.inputPaddingSmall=t.inputPadding=t.inputBoxHeightTiny=t.inputBoxHeightSmall=t.inputBoxHeight=t.selectionBtnBorderActColor=t.selectionBtnBorderColor=t.selectionBtnBorder=t.selectionBtnBgdHover=t.selectionBtnActColor=t.selectionBtnColor=t.selectionBtnActBgd=t.selectionBtnBgd=t.floatingBtnActColor=t.floatingBtnColor=t.floatingBtnBorderHover=t.floatingBtnBorder=t.floatingBtnBgdHover=t.floatingBtnActBgd=t.floatingBtnBgd=t.negativeBtnActColor=t.negativeBtnColor=t.negativeBtnBorder=t.negativeBtnBgdHover=t.negativeBtnActBgd=t.negativeBtnBgd=t.linkBtnBorder=t.linkBtnActBgdHover=t.linkBtnActColor=t.linkBtnColor=t.linkBtnActBgd=t.linkBtnBgd=t.ctaBtnActColor=t.ctaBtnColor=t.ctaBtnActBgd=t.ctaBtnBgdHover=t.ctaBtnBgd=t.secondaryBtnBorder=t.secondaryBtnBgdHover=t.secondaryBtnActColor=t.secondaryBtnColor=t.secondaryBtnActBgd=t.secondaryBtnBgd=t.primaryBtnBorder=t.primaryBtnFontSizeLarge=t.primaryBtnFontSizeSmall=t.primaryBtnFontSizeDefault=t.primaryBtnRadius=t.primaryBtnBgdHover=t.primaryBtnActColor=t.primaryBtnColor=t.primaryBtnActBgd=t.primaryBtnBgd=t.btnFontFamily=t.logoColor=t.errorColor=t.activeColorHover=t.activeColorLT=t.activeColor=t.textColorHlLT=t.textColorHl=t.titleTextColor=t.panelTabWidth=t.panelToggleBorderColor=t.subtextColorActive=t.subtextColorLT=t.subtextColor=t.titleColorLT=t.dataTableTextColor=t.textColorLT=t.textColor=t.labelColorLT=t.labelHoverColor=t.labelColor=t.lineHeight=t.fontSize=t.fontWeight=t.fontFamily=t.borderColorLT=t.borderColor=t.borderRadius=t.boxSizing=t.boxShadow=t.transitionSlow=t.transitionFast=t.transition=void 0,t.panelBorderRadius=t.panelBoxShadow=t.layerPanelHeaderHeight=t.panelHeaderHeight=t.panelHeaderIconHover=t.panelHeaderIconActive=t.panelHeaderIcon=t.chickletBgdLT=t.chickletBgd=t.panelHeaderBorderRadius=t.panelBackgroundHover=t.panelContentBackground=t.panelBackground=t.sidePanelTitleLineHeight=t.sidePanelTitleFontsize=t.sideBarCloseBtnBgdHover=t.sideBarCloseBtnColor=t.sideBarCloseBtnBgd=t.sidePanelScrollBarHeight=t.sidePanelScrollBarWidth=t.sidePanelBg=t.sidePanelBorderColor=t.sidePanelBorder=t.sidePanelInnerPadding=t.layerConfigGroupPaddingLeft=t.layerConfigGroupMarginBottom=t.sidePanelHeaderBorder=t.sidePanelHeaderBg=t.radioButtonBgdColor=t.radioButtonRadius=t.radioBorderColor=t.radioBorderRadius=t.radioRadius=t.checkboxBoxBgdChecked=t.checkboxBoxBgd=t.checkboxBorderColorLT=t.checkboxBorderRadius=t.checkboxBorderColor=t.checkboxMargin=t.checkboxHeight=t.checkboxWidth=t.secondarySwitchBtnBgd=t.secondarySwitchTrackBgd=t.switchBtnHeight=t.switchBtnWidth=t.switchBtnBorderRadius=t.switchBtnBoxShadow=t.switchBtnBgdActive=t.switchBtnBgd=t.switchTrackBorderRadius=t.switchTrackBgdActive=t.switchTrackBgd=t.switchLabelMargin=t.switchHeight=t.switchWidth=t.dropdownWapperMargin=t.dropdownWrapperZ=t.dropdownListLineHeight=t.dropdownListBorderTopLT=t.dropdownListBorderTop=t.dropdownListBgdLT=t.toolbarItemBorderRaddius=t.toolbarItemBorderHover=t.toolbarItemIconHover=t.toolbarItemBgdHover=t.dropdownListBgd=t.dropdownListShadow=t.dropdownListHighlightBgLT=t.dropdownListHighlightBg=t.panelTabColor=t.selectBorder=t.selectBorderRadius=t.selectBorderColorLT=t.selectBorderColor=t.selectBackgroundHoverLT=t.selectBackgroundLT=t.selectBackgroundHover=t.selectBackground=t.selectColorPlaceHolderLT=t.selectColorPlaceHolder=t.selectFontWeightBold=t.selectFontWeight=t.selectFontSize=t.selectActiveBorderColor=t.selectColorLT=t.selectColor=t.dropdownSelectHeight=t.secondaryInputBorderActiveColor=t.secondaryInputBorderColor=t.secondaryInputColor=t.secondaryInputBgdActive=t.secondaryInputBgdHover=t.secondaryInputBgd=t.inputBoxShadowActiveLT=t.inputBoxShadowActive=t.inputBoxShadow=t.inputPlaceholderFontWeight=t.inputPlaceholderColorLT=t.inputPlaceholderColor=t.inputBorderRadius=void 0,t.breakPoints=t.layerConfiguratorPadding=t.layerConfiguratorMargin=t.layerConfiguratorBorderColor=t.layerConfiguratorBorder=t.styledConfigGroupHeaderBorder=t.layerConfigGroupLabelLabelFontSize=t.layerConfigGroupLabelLabelMargin=t.layerConfigGroupColor=t.layerConfigGroupLabelPadding=t.layerConfigGroupLabelMargin=t.layerConfigGroupLabelBorderLeft=t.textTruncate=t.fieldTokenRightMargin=t.actionPanelHeight=t.actionPanelWidth=t.notificationPanelItemHeight=t.notificationPanelItemWidth=t.notificationPanelWidth=t.notificationColors=t.rangePlotContainerHLarge=t.rangePlotHLarge=t.rangePlotContainerH=t.rangePlotH=t.rangePlotMarginLarge=t.rangePlotMargin=t.timeTitleFontSize=t.axisFontColor=t.axisFontSize=t.histogramFillOutRange=t.histogramFillInRange=t.rangeBrushBgd=t.geocoderInputHeight=t.geocoderRight=t.geocoderTop=t.geocoderWidth=t.sliderMarginBottom=t.sliderMarginTop=t.sliderMarginTopIsTime=t.sliderInputPadding=t.sliderInputFontSize=t.sliderInputWidth=t.sliderInputHeight=t.sliderHandleShadow=t.sliderHandleAfterContent=t.sliderHandleHoverColor=t.sliderBorderRadius=t.sliderInactiveBorderColor=t.sliderHandleTextColor=t.sliderHandleColor=t.sliderHandleWidth=t.sliderHandleHeight=t.sliderBarHeight=t.sliderBarRadius=t.sliderBarHoverColor=t.sliderBarBgd=t.sliderBarColor=t.modalDialogColor=t.modalDialogBgd=t.modalDropdownBackground=t.modalButtonZ=t.modalTitleZ=t.modalFooterZ=t.modalContentZ=t.modalOverlayBgd=t.modalOverLayZ=t.modalPortableLateralPadding=t.modalLateralPadding=t.modalPadding=t.modalImagePlaceHolder=t.modalFooterBgd=t.modalTitleFontSizeSmaller=t.modalTitleFontSize=t.modalTitleColor=t.bottomWidgetBgd=t.bottomWidgetPaddingLeft=t.bottomWidgetPaddingBottom=t.bottomWidgetPaddingRight=t.bottomWidgetPaddingTop=t.bottomPanelGap=t.bottomInnerPdVert=t.bottomInnerPdSide=t.sidepanelDividerHeight=t.sidepanelDividerMargin=t.sidepanelDividerBorder=t.layerTypeIconSizeSM=t.layerTypeIconPdL=t.layerTypeIconSizeL=t.tooltipFontSize=t.tooltipBoxShadow=t.tooltipColor=t.tooltipBg=t.mapPanelHeaderBackgroundColor=t.mapPanelBackgroundColor=t.panelBorderLT=t.panelBorder=t.panelBorderColor=t.panelToggleBottomPadding=t.panelToggleMarginRight=t.panelBackgroundLT=void 0,t.themeBS=t.themeLT=t.theme=t.modalScrollBar=void 0;var a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,x,M,w,S,T,C,L,P,k,D,R,j=r(n(4)),I=r(n(16)),F=n(15),N=n(39);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t0?"border-image: ".concat((0,d.createLinearGradient)("bottom",e.labelRCGColorValues)," 3;"):"border-color: transparent;"}));t.StyledFilterHeader=p;var h=u.default.div(i||(i=(0,o.default)(["\n display: flex;\n flex: 2;\n"])));function m(e){var t={delete:c.Trash};return function(n){var r=n.children,a=n.datasets,i=(n.allAvailableFields,n.setFilter,n.idx,n.filter),o=n.removeFilter,u=n.actionIcons,s=void 0===u?t:u;return l.default.createElement(p,{className:"filter-panel__header",labelRCGColorValues:a.map((function(e){return e.color}))},l.default.createElement(h,null,r),l.default.createElement(e,{id:i.id,tooltip:"tooltip.delete",tooltipType:"error",onClick:o,hoverColor:"errorColor",IconComponent:s.delete}))}}m.deps=[s.default];var g=m;t.default=g},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=n(40),l=r(n(405)),u=r(n(240)),s=r(n(336)),c=r(n(210)),d=n(966);function f(e,t,n,r){var a=i.default.memo((function(a){var l=a.allAvailableFields,u=a.children,s=a.datasets,c=a.filter,f=a.idx,p=a.removeFilter,h=a.setFilter,m=a.panelActions,g=void 0===m?[]:m,v=(0,i.useCallback)((function(e){return h(f,"name",e.name)}),[f,h]),y=(0,i.useCallback)((function(e){return h(f,"dataId",[e])}),[f,h]),b=(0,i.useMemo)((function(){return Array.isArray(c.name)?c.name[0]:c.name}),[c.name]),A=s[c.dataId[0]],_=(0,i.useMemo)((function(){return(0,d.getSupportedFilterFields)(A.supportedFilterTypes,l)}),[A.supportedFilterTypes,l]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(e,{datasets:[A],allAvailableFields:_,idx:f,filter:c,removeFilter:p},i.default.createElement(n,{inputTheme:"secondary",fields:_,value:b,erasable:!1,onSelect:v}),g&&g.map((function(e){return i.default.createElement(r,{id:e.id,key:e.id,onClick:e.onClick,tooltip:e.tooltip,IconComponent:e.iconComponent,active:e.active})}))),i.default.createElement(o.StyledFilterContent,{className:"filter-panel__content"},Object.keys(s).length>1&&i.default.createElement(t,{inputTheme:"secondary",datasets:s,disabled:c.freeze,dataId:c.dataId,onSelect:y}),u))}));return a.displayName="FilterPanelWithFieldSelect",a}f.deps=[l.default,s.default,c.default,u.default];var p=f;t.default=p},function(e,t,n){"use strict";var r=n(3),a=n(80);Object.defineProperty(t,"__esModule",{value:!0}),t.updateStateWithLayerAndData=U,t.updateStateOnLayerVisibilityChange=V,t.layerConfigChangeUpdater=H,t.layerTextLabelChangeUpdater=function(e,t){var n=t.oldLayer,r=t.idx,a=t.prop,i=t.value,l=n.config.textLabel,s=l.slice();l[r]||r!==l.length||(s=[].concat((0,o.default)(l),[C.DEFAULT_TEXT_LABEL]));s="all"===r&&"fields"===a?function(e,t){var n=t.slice(),r=t.map((function(e){return e.field&&e.field.name})).filter((function(e){return e})),a=e.filter((function(e){return!r.includes(e.name)})),i=r.filter((function(t){return!e.find((function(e){return e.name===t}))}));return n=(n=n.filter((function(e){return e.field&&!i.includes(e.field.name)}))).length?n:[C.DEFAULT_TEXT_LABEL],n=[].concat((0,o.default)(n.filter((function(e){return e.field}))),(0,o.default)(a.map((function(e){return F(F({},C.DEFAULT_TEXT_LABEL),{},{field:e})}))))}(i,l):function(e,t,n,r){if(!r[e].hasOwnProperty(t))return r;var a=r.slice();t&&(n||1===r.length)?a=r.map((function(r,a){return a===e?F(F({},r),{},(0,u.default)({},t,n)):r})):"field"===t&&null===n&&r.length>1&&a.splice(e,1);return a}(r,a,i,s);return H(e,{oldLayer:n,newConfig:{textLabel:s}})},t.layerDataIdChangeUpdater=Y,t.layerTypeChangeUpdater=function(e,t){var n=t.oldLayer,r=t.newType;if(!n)return e;var a=n.id,i=e.layers.findIndex((function(e){return e.id===a}));if(!e.layerClasses[r])return s.console.error("".concat(r," is not a valid layer type")),e;var o=new e.layerClasses[r];o.assignConfigToLayer(n.config,n.visConfigSettings),o.updateLayerDomain(e.datasets);var c=(0,M.calculateLayerData)(o,e),d=c.layerData,f=c.layer,p=U(e,{layerData:d,layer:f,idx:i});(f.config.animation.enabled||n.config.animation.enabled)&&(p=ue(p));e.splitMaps.length&&(p=F(F({},p),{},{splitMaps:p.splitMaps.map((function(e){var t=e.layers,n=t[a],r=(0,l.default)(t,[a].map(j));return a in e.layers?F(F({},e),{},{layers:F(F({},r),{},(0,u.default)({},f.id,n))}):e}))}));return p},t.layerVisualChannelChangeUpdater=function(e,t){var n=t.oldLayer,r=t.newConfig,a=t.channel;if(!n.config.dataId)return e;var i=e.datasets[n.config.dataId],o=e.layers.findIndex((function(e){return e.id===n.id})),l=n.updateLayerConfig(r);l.updateLayerVisualChannel(i,a);var u=e.layerData[o],s=(0,M.calculateLayerData)(l,e,u),c=s.layerData,d=s.layer;return U(e,{layerData:c,layer:d,idx:o})},t.layerVisConfigChangeUpdater=W,t.setFilterAnimationTimeUpdater=function(e,t){return G(e,t)},t.setFilterAnimationWindowUpdater=function(e,t){var n=t.id,r=t.animationWindow;return F(F({},e),{},{filters:e.filters.map((function(e){return e.id===n?F(F({},e),{},{animationWindow:r}):e}))})},t.setFilterUpdater=G,t.interactionConfigChangeUpdater=function(e,t){var n=t.config,r=F(F({},e.interactionConfig),(0,u.default)({},n.id,n)),a=["brush","tooltip"];a.includes(n.id)&&n.enabled&&!e.interactionConfig[n.id].enabled&&a.forEach((function(e){e!==n.id&&(r[e]=F(F({},r[e]),{},{enabled:!1}))}));var i=F(F({},e),{},{interactionConfig:r});if("geocoder"===n.id&&!n.enabled)return K(i,{dataId:"geocoder_dataset"});return i},t.renameDatasetUpdater=function(e,t){var n=t.dataId,r=t.label,a=e.datasets,i=a[n];return i?F(F({},e),{},{datasets:F(F({},a),{},(0,u.default)({},n,F(F({},i),{},{label:r})))}):e},t.closeSpecificMapAtIndex=$,t.loadFileStepSuccessUpdater=function(e,t){if(!e.fileLoading)return e;var n=t.fileName,r=t.fileCache,a=e.fileLoading,i=a.filesToLoad,o=a.onFinish,l=oe(e,{fileName:n,progress:{percent:1,message:"Done"}}),u=(0,P.pick_)("fileLoading")((0,P.merge_)({fileCache:r}))(l);return(0,c.withTask)(u,(0,v.DELAY_TASK)(200).map(i.length?y.loadNextFile:function(){return o(r)}))},t.loadNextFileUpdater=ee,t.makeLoadFileTask=te,t.processFileContentUpdater=function(e,t){var n=t.payload,r=n.content,a=n.fileCache,i=oe(e,{fileName:r.fileName,progress:{percent:1,message:"processing..."}});return(0,c.withTask)(i,(0,v.PROCESS_FILE_DATA)({content:r,fileCache:a}).bimap((function(e){return(0,y.loadFileStepSuccess)({fileName:r.fileName,fileCache:e})}),(function(e){return(0,y.loadFilesErr)(r.fileName,e)})))},t.parseProgress=ne,t.addDefaultLayers=re,t.addDefaultTooltips=ae,t.initialFileLoadingProgress=ie,t.updateFileLoadingProgressUpdater=oe,t.updateAllLayerDomainData=le,t.updateAnimationDomain=ue,t.setFeaturesUpdater=function(e,t){var n=t.features,r=void 0===n?[]:n,a=r.length&&r[r.length-1],i=F(F({},e),{},{editor:F(F({},e.editor),{},{features:r.filter((function(e){return!(0,A.getFilterIdInFeature)(e)})),mode:a&&a.properties.isClosed?L.EDITOR_MODES.EDIT:e.editor.mode})}),o=e.editor.selectedFeature;if(!o)return i;var l=r.find((function(e){return e.id===o.id})),u=l&&(0,A.getFilterIdInFeature)(l);if(u&&l){var s=(0,A.featureToFilterValue)(l,u),c=e.filters.findIndex((function(e){return e.id===u}));return G(i,{idx:c,prop:"value",value:s})}return i},t.deleteFeatureUpdater=function(e,t){var n=t.feature;if(!n)return e;var r=F(F({},e),{},{editor:F(F({},e.editor),{},{selectedFeature:null})});if((0,A.getFilterIdInFeature)(n)){var a=r.filters.findIndex((function(e){return e.id===(0,A.getFilterIdInFeature)(n)}));return a>-1?q(r,{idx:a}):r}var i=F(F({},e.editor),{},{features:e.editor.features.filter((function(e){return e.id!==n.id})),selectedFeature:null});return F(F({},e),{},{editor:i})},t.setPolygonFilterLayerUpdater=function(e,t){var n,r=t.layer,a=t.feature,i=(0,A.getFilterIdInFeature)(a),l=[r.id],u=e;if(i){if(n=e.filters.findIndex((function(e){return e.id===i})),!e.filters[n]){var s=F(F({},a),{},{properties:F(F({},a.properties),{},{filterId:null})});return F(F({},e),{},{editor:F(F({},e.editor),{},{features:[].concat((0,o.default)(e.editor.features),[s]),selectedFeature:s})})}var c=e.filters[n].layerId,d=void 0===c?[]:c,f=d.includes(r.id);l=f?d.filter((function(e){return e!==r.id})):[].concat((0,o.default)(d),[r.id])}else{var p=(0,A.generatePolygonFilter)([],a);n=e.filters.length,u=F(F({},e),{},{filters:[].concat((0,o.default)(e.filters),[p]),editor:F(F({},e.editor),{},{features:e.editor.features.filter((function(e){return e.id!==a.id})),selectedFeature:p.value})})}return G(u,{idx:n,prop:"layerId",value:l})},t.sortTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=t.mode,i=e.datasets[n];if(!i)return e;var o=a;if(!o){var l=(0,p.default)(i,["sortColumn",r]);o=l?Object.keys(L.SORT_ORDER).find((function(e){return e!==l})):L.SORT_ORDER.ASCENDING}var u=(0,E.sortDatasetByColumn)(i,r,o);return(0,x.set)(["datasets",n],u,e)},t.pinTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=e.datasets[n];if(!a)return e;var i,o=a.fields.find((function(e){return e.name===r}));if(!o)return e;i=Array.isArray(a.pinnedColumns)&&a.pinnedColumns.includes(o.name)?a.pinnedColumns.filter((function(e){return e!==o.name})):(a.pinnedColumns||[]).concat(o.name);return(0,x.set)(["datasets",n,"pinnedColumns"],i,e)},t.copyTableColumnUpdater=function(e,t){var n=t.dataId,r=t.column,a=e.datasets[n];if(!a)return e;var i=a.fields.findIndex((function(e){return e.name===r}));if(i<0)return e;var o=a.fields[i].type,l=a.dataContainer.map((function(e){return(0,g.parseFieldValue)(e.valueAt(i),o)}),!0).join("\n");return(0,m.default)(l),e},t.toggleEditorVisibilityUpdater=function(e){return F(F({},e),{},{editor:F(F({},e.editor),{},{visible:!e.editor.visible})})},t.setFilterAnimationTimeConfigUpdater=function(e,t){var n=t.idx,r=t.config,a=e.filters[n];if(!a)return s.console.error("filters.".concat(n," is undefined")),e;if(a.type!==L.FILTER_TYPES.timeRange)return s.console.error("setFilterAnimationTimeConfig can only be called to update a time filter. check filter.type === 'timeRange'"),e;var i=se(r);return(0,P.pick_)("filters")((0,P.swap_)((0,P.merge_)(i)(a)))(e)},t.setLayerAnimationTimeConfigUpdater=function(e,t){var n=t.config;if(!n)return e;var r=se(n);return(0,P.pick_)("animationConfig")((0,P.merge_)(r))(e)},t.setSelectedFeatureUpdater=t.setEditorModeUpdater=t.setMapInfoUpdater=t.applyCPUFilterUpdater=t.loadFilesErrUpdater=t.nextFileBatchUpdater=t.loadFilesUpdater=t.updateVisDataUpdater=t.toggleLayerForMapUpdater=t.toggleSplitMapUpdater=t.mouseMoveUpdater=t.mapClickUpdater=t.layerClickUpdater=t.layerHoverUpdater=t.receiveMapConfigUpdater=t.resetMapConfigUpdater=t.showDatasetTableUpdater=t.updateLayerBlendingUpdater=t.removeDatasetUpdater=t.reorderLayerUpdater=t.duplicateLayerUpdater=t.removeLayerUpdater=t.addLayerUpdater=t.removeFilterUpdater=t.toggleFilterFeatureUpdater=t.enlargeFilterUpdater=t.updateLayerAnimationSpeedUpdater=t.setLayerAnimationTimeUpdater=t.updateFilterAnimationSpeedUpdater=t.toggleLayerAnimationControlUpdater=t.toggleLayerAnimationUpdater=t.toggleFilterAnimationUpdater=t.layerColorUIChangeUpdater=t.addFilterUpdater=t.setFilterPlotUpdater=t.INITIAL_VIS_STATE=t.DEFAULT_EDITOR=t.DEFAULT_ANIMATION_CONFIG=void 0;var i=r(n(372)),o=r(n(36)),l=r(n(72)),u=r(n(4)),s=n(61),c=n(174),d=r(n(176)),f=r(n(132)),p=r(n(96)),h=r(n(675)),m=r(n(324)),g=n(76),v=n(570),y=n(574),b=n(575),A=n(211),_=n(408),O=n(409),E=n(576),x=n(86),M=n(577),w=n(578),S=n(992),T=n(993),C=n(180),L=n(41),P=n(410),k=r(n(338));function D(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn?e-1:e})),clicked:u.isLayerHovered(i)?void 0:i,hoverInfo:u.isLayerHovered(l)?void 0:l,splitMaps:s}))};t.removeLayerUpdater=Z;t.duplicateLayerUpdater=function(e,t){var n=t.idx,r=e.layers,a=e.layers[n],i=e.layerOrder.findIndex((function(e){return e===n}));if(!a)return s.console.warn("layer.".concat(n," is undefined")),e;for(var o="Copy of ".concat(a.config.label),l=0;r.find((function(e){return e.config.label===o}));)o="Copy of ".concat(a.config.label," ").concat(++l);var u=(0,w.serializeLayer)(a);if(!u.config)return e;u.config.label=o,u.id=(0,x.generateHashId)(T.LAYER_ID_LENGTH);var c=X(e,{config:u}),d=c.layerOrder.length-1,f=(0,x.arrayInsert)(c.layerOrder.slice(0,d),i,d);return ue(c=F(F({},c),{},{layerOrder:f}))};t.reorderLayerUpdater=function(e,t){var n=t.order;return F(F({},e),{},{layerOrder:n})};var K=function(e,t){var n=t.dataId;if(!e.datasets[n])return e;var r=e.layers,a=e.datasets,i=(a[n],(0,l.default)(a,[n].map(j))),o=r.reduce((function(e,t,r){return t.config.dataId===n&&e.push(r),e}),[]).reduce((function(e,t){var n=e.newState,r=e.indexCounter;return{newState:n=Z(n,{idx:t-r}),indexCounter:++r}}),{newState:F(F({},e),{},{datasets:i}),indexCounter:0}).newState,u=e.filters.filter((function(e){return!e.dataId.includes(n)})),s=e.interactionConfig,c=s.tooltip;if(c){var d=c.config,f=d.fieldsToShow,p=(f[n],(0,l.default)(f,[n].map(j)));s=F(F({},s),{},{tooltip:F(F({},c),{},{config:F(F({},d),{},{fieldsToShow:p})})})}return F(F({},o),{},{filters:u,interactionConfig:s})};t.removeDatasetUpdater=K;t.updateLayerBlendingUpdater=function(e,t){return F(F({},e),{},{layerBlending:t.mode})};t.showDatasetTableUpdater=function(e,t){return F(F({},e),{},{editingDataset:t.dataId})};var J=function(e){return F(F(F({},z),e.initialState),{},{initialState:e.initialState})};t.resetMapConfigUpdater=J;var Q=function(e,t){var n=t.payload,r=n.config,a=void 0===r?{}:r,i=n.options,o=void 0===i?{}:i;if(!a.visState)return e;var l,u=o.keepExistingConfig?e:J(e),s=D(e.mergers);try{for(s.s();!(l=s.n()).done;){var c=l.value;(0,w.isValidMerger)(c)&&a.visState[c.prop]&&(u=c.merge(u,a.visState[c.prop],!0))}}catch(e){s.e(e)}finally{s.f()}return u};t.receiveMapConfigUpdater=Q;t.layerHoverUpdater=function(e,t){return F(F({},e),{},{hoverInfo:t.info})};t.layerClickUpdater=function(e,t){return F(F({},e),{},{mousePos:e.interactionConfig.coordinate.enabled?F(F({},e.mousePos),{},{pinned:e.mousePos.pinned?null:(0,d.default)(e.mousePos)}):e.mousePos,clicked:t.info&&t.info.picked?t.info:null})};t.mapClickUpdater=function(e){return F(F({},e),{},{clicked:null})};t.mouseMoveUpdater=function(e,t){var n=t.evt;return Object.values(e.interactionConfig).some((function(e){return e.enabled}))?F(F({},e),{},{mousePos:F(F({},e.mousePos),{},{mousePosition:(0,o.default)(n.point),coordinate:(0,o.default)(n.lngLat)})}):e};t.toggleSplitMapUpdater=function(e,t){return e.splitMaps&&0===e.splitMaps.length?F(F({},e),{},{splitMaps:(0,S.computeSplitMapLayers)(e.layers)}):$(e,t)};t.toggleLayerForMapUpdater=function(e,t){var n=t.mapIndex,r=t.layerId,a=e.splitMaps;return F(F({},e),{},{splitMaps:a.map((function(e,t){return t===n?F(F({},a[t]),{},{layers:F(F({},a[t].layers),{},(0,u.default)({},r,!a[t].layers[r]))}):e}))})};function $(e,t){var n=1-t.payload,r=e.splitMaps[n].layers,a=e.layers.map((function(e){return!r[e.id]&&e.config.isVisible?e.updateLayerConfig({isVisible:!1}):e}));return F(F({},e),{},{layers:a,splitMaps:[]})}t.updateVisDataUpdater=function(e,t){var n,r=t.config,a=t.options,i=(0,x.toArray)(t.datasets).reduce((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.info,a=void 0===r?{}:r,i=(0,l.default)(n,["info"]);return F(F({},t),(0,O.createNewDataEntry)(F({info:a},i),e.datasets)||{})}),{}),o=Object.keys(i).length<1,u=r?Q(e,{payload:{config:r,options:a}}):e,s=F(F({},u),{},{datasets:F(F({},u.datasets),i)}),c=D(s.mergers);try{for(c.s();!(n=c.n()).done;){var d=n.value;if((0,w.isValidMerger)(d)&&d.toMergeProp&&s[d.toMergeProp]){var f=s[d.toMergeProp];s[d.toMergeProp]=z[d.toMergeProp],s=d.merge(s,f)}}}catch(e){c.e(e)}finally{c.f()}var p=o?[]:s.layers.filter((function(e){return e.config.dataId&&e.config.dataId in i}));if(!p.length&&!1!==(a||{}).autoCreateLayers){var h=re(s,i);s=h.state,p=h.newLayers}s.splitMaps.length&&(p=s.layers.filter((function(e){return e.config.dataId&&e.config.dataId in i})),s=F(F({},s),{},{splitMaps:(0,S.addNewLayersToSplitMap)(s.splitMaps,p)})),Object.keys(i).forEach((function(e){var t=s.interactionConfig.tooltip.config.fieldsToShow[e];Array.isArray(t)&&t.length||(s=ae(s,i[e]))}));var m=le(s,o?Object.keys(s.datasets):Object.keys(i),void 0);return m=ue(m)};function ee(e){if(!e.fileLoading)return e;var t=e.fileLoading.filesToLoad,n=(0,i.default)(t),r=n[0],a=n.slice(1),o=(0,P.pick_)("fileLoading")((0,P.merge_)({filesToLoad:a}))(e),l=oe(o,{fileName:r.name,progress:{percent:0,message:"loading..."}}),u=e.loaders,s=e.loadOptions;return(0,c.withTask)(l,te(r,o.fileLoading.fileCache,u,s))}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,v.LOAD_FILE_TASK)({file:e,fileCache:t,loaders:n,loadOptions:r}).bimap((function(n){return(0,y.nextFileBatch)({gen:n,fileName:e.name,onFinish:function(e){return(0,y.processFileContent)({content:e,fileCache:t})}})}),(function(t){return(0,y.loadFilesErr)(e.name,t)}))}function ne(){var e=arguments.length>1?arguments[1]:void 0;return e&&e.percent?{percent:e.percent}:{}}t.loadFilesUpdater=function(e,t){var n=t.files,r=t.onFinish,a=void 0===r?y.loadFilesSuccess:r;if(!n.length)return e;var i=Array.from(n).reduce((function(e,t,n){return(0,P.merge_)(ie(t,n))(e)}),{}),o={fileCache:[],filesToLoad:n,onFinish:a};return ee((0,P.merge_)({fileLoadingProgress:i,fileLoading:o})(e))};t.nextFileBatchUpdater=function(e,t){var n=t.payload,r=n.gen,a=n.fileName,i=n.progress,o=n.accumulated,l=n.onFinish,u=oe(e,{fileName:a,progress:ne(e.fileLoadingProgress[a],i)});return(0,c.withTask)(u,(0,v.UNWRAP_TASK)(r.next()).bimap((function(e){var t=e.value;return e.done?l(o):(0,y.nextFileBatch)({gen:r,fileName:a,progress:t.progress,accumulated:t,onFinish:l})}),(function(e){return(0,y.loadFilesErr)(a,e)})))};t.loadFilesErrUpdater=function(e,t){var n=t.error,r=t.fileName;if(s.console.warn(n),!e.fileLoading)return e;var a=e.fileLoading,i=a.filesToLoad,o=a.onFinish,l=a.fileCache,u=oe(e,{fileName:r,progress:{error:n}});return(0,c.withTask)(u,(0,v.DELAY_TASK)(200).map(i.length?y.loadNextFile:function(){return o(l)}))};t.applyCPUFilterUpdater=function(e,t){var n=t.dataId;return(0,x.toArray)(n).reduce((function(e,t){return(0,A.filterDatasetCPU)(e,t)}),e)};function re(e,t){var n=Object.values(t).reduce((function(t,n){var r=(0,M.findDefaultLayer)(n,e.layerClasses);return r&&r.length?t.concat(r):t}),[]);return{state:F(F({},e),{},{layers:[].concat((0,o.default)(e.layers),(0,o.default)(n)),layerOrder:[].concat((0,o.default)(n.map((function(t,n){return e.layers.length+n}))),(0,o.default)(e.layerOrder))}),newLayers:n}}function ae(e,t){var n=(0,b.findFieldsToShow)(t),r=F(F({},e.interactionConfig.tooltip.config.fieldsToShow),n);return(0,x.set)(["interactionConfig","tooltip","config","fieldsToShow"],r,e)}function ie(e,t){var n=e.name||"Untitled File ".concat(t);return(0,u.default)({},n,{percent:0,message:"",fileName:n,error:null})}function oe(e,t){var n=t.fileName,r=t.progress;return(0,P.pick_)("fileLoadingProgress")((0,P.pick_)(n)((0,P.merge_)(r)))(e)}function le(e,t,n){var r="string"==typeof t?[t]:t,a=[],i=[];return e.layers.forEach((function(t,o){if(t.config.dataId&&r.includes(t.config.dataId)){var l=n&&n.fixedDomain?t:t.updateLayerDomain(e.datasets,n),u=(0,M.calculateLayerData)(l,e,e.layerData[o]),s=u.layerData,c=u.layer;a.push(c),i.push(s)}else a.push(t),i.push(e.layerData[o])})),F(F({},e),{},{layers:a,layerData:i})}function ue(e){var t=e.layers.filter((function(e){return e.config.isVisible&&e.config.animation&&e.config.animation.enabled&&Array.isArray(e.animationDomain)}));if(!t.length)return F(F({},e),{},{animationConfig:F(F({},e.animationConfig),{},{domain:null,defaultTimeFormat:null})});var n=t.reduce((function(e,t){return[Math.min(e[0],t.animationDomain[0]),Math.max(e[1],t.animationDomain[1])]}),[Number(1/0),-1/0]),r=(0,A.getTimeWidgetTitleFormatter)(n);return F(F({},e),{},{animationConfig:F(F({},e.animationConfig),{},{currentTime:(0,A.isInRange)(e.animationConfig.currentTime,n)?e.animationConfig.currentTime:n[0],domain:n,defaultTimeFormat:r})})}t.setMapInfoUpdater=function(e,t){return F(F({},e),{},{mapInfo:F(F({},e.mapInfo),t.info)})};t.setEditorModeUpdater=function(e,t){var n=t.mode;return F(F({},e),{},{editor:F(F({},e.editor),{},{mode:n,selectedFeature:null})})};function se(e){var t=["timeFormat","timezone"];return Object.keys(e).reduce((function(n,r){return t.includes(r)?(n[r]=e[r],n):(s.console.error("setLayerAnimationTimeConfig takes timeFormat and/or timezone as options, found ".concat(r)),n)}),{})}t.setSelectedFeatureUpdater=function(e,t){var n=t.feature;return F(F({},e),{},{editor:F(F({},e.editor),{},{selectedFeature:n})})}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.setFilterGpuMode=function(e,t){return e.dataId.forEach((function(n,r){var a=t.filter((function(e){return e.dataId.includes(n)&&e.gpu}));if(e.gpu&&a.length===o.MAX_GPU_FILTERS)return(0,i.set)(["gpu"],!1,e)})),e},t.assignGpuChannels=function(e){return e.reduce((function(e,t,n){var r=e;return t.gpu&&(t=d(t,e),r=(0,i.set)([n],t,e)),r}),e)},t.assignGpuChannel=d,t.resetFilterGpuMode=function(e){var t={};return e.map((function(e,n){if(e.gpu){var r=!0;if((0,i.toArray)(e.dataId).forEach((function(e){var n=t[e];n===o.MAX_GPU_FILTERS?r=!1:t[e]=n?n+1:1})),!r)return(0,i.set)(["gpu"],!1,e)}return e}))},t.getGpuFilterProps=function(e,t,n){for(var r=new Array(o.MAX_GPU_FILTERS).fill(0).map((function(e){return[0,0]})),a={},i=[],s=function(n){var o=e.find((function(e){return e.gpu&&e.dataId.includes(t)&&e.gpuChannel&&e.gpuChannel[e.dataId.indexOf(t)]===n}));r[n][0]=o?o.value[0]-o.domain[0]:0,r[n][1]=o?o.value[1]-o.domain[0]:0,a["gpuFilter_".concat(n)]=o?o.name[o.dataId.indexOf(t)]:null,i.push(o)},c=0;c0&&void 0!==arguments[0]?arguments[0]:f,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return function(s){return e.map((function(e){if(!e)return 0;var c=h(t,e),d=n[c],f=e.type===o.FILTER_TYPES.timeRange?d.filterProps&&Array.isArray(d.filterProps.mappedValue)?d.filterProps.mappedValue[a(s)]:u.default.utc(i(r,s,c)).valueOf():i(r,s,c);return(0,l.notNullorUndefined)(f)?f-e.domain[0]:Number.MIN_SAFE_INTEGER}))}}}}(i,t,n);return{filterRange:r,filterValueUpdateTriggers:a,filterValueAccessor:d}},t.getDatasetFieldIndexForFilter=h;var a=r(n(4)),i=n(86),o=n(41),l=n(76),u=r(n(23));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t-1&&n.gpu&&(0,i.toArray)(n.gpuChannel)[a]===t}};if(!Number.isFinite(n[a])||t.find(l(n[a])))for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:{},l=(0,c.validateInputData)(n);if(!l)return{};var u=(t=t||{}).color||y(o),s=new d.default(p({info:t,data:l,color:u},r));return(0,a.default)({},s.id,s)},t.findDefaultColorField=function(e){var t=e.fields,n=e.fieldPairs,r=void 0===n?[]:n,a=t.filter((function(e){if(e.type!==s.ALL_FIELD_TYPES.real&&e.type!==s.ALL_FIELD_TYPES.integer)return!1;if(r.find((function(t){return t.pair.lat.value===e.name||t.pair.lng.value===e.name})))return!1;var t=e.name.toLowerCase();if(""===t)return!1;var n=b.find((function(e){return t.startsWith(e)||t.endsWith(e)})),a=A.find((function(e){return t.startsWith(e)||t.endsWith(e)}));return!n||a})).sort((function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase(),a=A.findIndex((function(e){return n.startsWith(e)||n.endsWith(e)})),i=A.findIndex((function(e){return r.startsWith(e)||r.endsWith(e)}));return a!==i?-1===a?1:-1===i?-1:a-i:e.type!==t.type?e.type===s.ALL_FIELD_TYPES.real?-1:1:e.index-t.index}));if(a.length)return a[0];return null},t.datasetColorMaker=void 0;var a=r(n(4)),i=r(n(72)),o=r(n(13)),l=n(158),u=r(n(132)),s=n(41),c=n(283),d=r(n(576));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if([e,t,n,r].some((function(e){return e<=0})))return 1;var a=e/t>1?e:t,i=e/t>1?n:r;return a/i},t.calculateExportImageSize=function(e){var t=e.mapW,n=e.mapH,r=e.ratio,a=e.resolution;if(t<=0||n<=0)return null;var i=l.EXPORT_IMG_RATIO_OPTIONS.find((function(e){return e.id===r}))||v,o=l.EXPORT_IMG_RESOLUTION_OPTIONS.find((function(e){return e.id===a}))||g,u=o.getSize(t,n),s=u.width,c=u.height,d=i.getSize(s,c),f=d.width,p=d.height;return{scale:(i.id===l.EXPORT_IMG_RATIOS.CUSTOM?{}:o).scale,imageW:f,imageH:p}},t.convertToPng=function(e,t){return i.default.toPng(e,t)},t.dataURItoBlob=b,t.downloadFile=A,t.exportImage=_,t.exportToJsonString=O,t.getMapJSON=E,t.exportJson=x,t.exportHtml=M,t.exportData=w,t.exportMap=function(e,t){var n=e.uiState.exportImage.imageDataUri,r=n?b(n):null;return{map:E(e,t),thumbnail:r}},t.default=t.DEFAULT_EXPORT_JSON_SETTINGS=t.DEFAULT_DATA_NAME=t.DEFAULT_JSON_NAME=t.DEFAULT_HTML_NAME=t.DEFAULT_IMAGE_NAME=void 0;var a=r(n(4)),i=r(n(1706)),o=n(61),l=n(41),u=n(1708),s=n(283),c=r(n(96)),d=n(86),f=n(285);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"kepler.gl.png",n=e.uiState.exportImage.imageDataUri;if(n){var r=b(n);A(r,t)}}function O(e){try{return JSON.stringify(e)}catch(e){return e.description}}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=t.hasData,r=e.visState.schema;if(!n)return r.getConfigToSave(e);var a=r.save(e),i=(0,c.default)(a,["info","title"]);return i&&i.length||(a=(0,d.set)(["info","title"],"keplergl_".concat((0,d.generateHashId)(6)),a)),a}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(e,t),r=new o.Blob([O(n)],{type:"application/json"}),a=e.appName?"".concat(e.appName,".json"):"kepler.gl.json";A(r,a)}function M(e,t){var n=t.userMapboxToken,r=t.exportMapboxAccessToken,a=t.mode,i=h(h({},E(e)),{},{mapboxApiAccessToken:""!==(n||"")?n:r,mode:a});A(new o.Blob([(0,u.exportMapToHTML)(i)],{type:"text/html"}),e.appName?"".concat(e.appName,".html"):"kepler.gl.html")}function w(e,t){var n=e.visState,r=e.appName,a=n.datasets,i=t.selectedDataset,u=t.dataType,c=t.filtered,d=r||"kepler.gl",p=a[i]?[a[i]]:Object.values(a);p.length&&p.forEach((function(e){var t=e.dataContainer,n=e.fields,r=e.label,a=e.filteredIdxCPU,i=void 0===a?[]:a,p=c?(0,f.createIndexedDataContainer)(t,i):t;switch(u){case l.EXPORT_DATA_TYPE.CSV:var h=(0,s.formatCsv)(p,n);A(new o.Blob([h],{type:"text/csv"}),"".concat(d,"_").concat(r,".csv"))}}))}var S={exportImage:_,exportJson:x,exportHtml:M,exportData:w};t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSavedMapsError=t.getSavedMapsSuccess=t.getSavedMaps=t.loadCloudMapError=t.loadCloudMapSuccess=t.loadCloudMap=t.setCloudProvider=t.resetProviderStatus=t.postSaveLoadSuccess=t.exportFileError=t.exportFileSuccess=t.exportFileToCloud=t.ActionTypes=void 0;var r=n(100),a=n(134),i={EXPORT_FILE_TO_CLOUD:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_TO_CLOUD"),EXPORT_FILE_SUCCESS:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_SUCCESS"),EXPORT_FILE_ERROR:"".concat(a.ACTION_PREFIX,"EXPORT_FILE_ERROR"),RESET_PROVIDER_STATUS:"".concat(a.ACTION_PREFIX,"RESET_PROVIDER_STATUS"),SET_CLOUD_PROVIDER:"".concat(a.ACTION_PREFIX,"SET_CLOUD_PROVIDER"),POST_SAVE_LOAD_SUCCESS:"".concat(a.ACTION_PREFIX,"POST_SAVE_LOAD_SUCCESS"),LOAD_CLOUD_MAP:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP"),LOAD_CLOUD_MAP_SUCCESS:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP_SUCCESS"),LOAD_CLOUD_MAP_ERROR:"".concat(a.ACTION_PREFIX,"LOAD_CLOUD_MAP_ERROR"),GET_SAVED_MAPS:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS"),GET_SAVED_MAPS_SUCCESS:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS_SUCCESS"),GET_SAVED_MAPS_ERROR:"".concat(a.ACTION_PREFIX,"GET_SAVED_MAPS_ERROR")};t.ActionTypes=i;var o=(0,r.createAction)(i.EXPORT_FILE_TO_CLOUD,(function(e){return e}));t.exportFileToCloud=o;var l=(0,r.createAction)(i.EXPORT_FILE_SUCCESS,(function(e){return e}));t.exportFileSuccess=l;var u=(0,r.createAction)(i.EXPORT_FILE_ERROR,(function(e){return e}));t.exportFileError=u;var s=(0,r.createAction)(i.POST_SAVE_LOAD_SUCCESS,(function(e){return e}));t.postSaveLoadSuccess=s;var c=(0,r.createAction)(i.RESET_PROVIDER_STATUS);t.resetProviderStatus=c;var d=(0,r.createAction)(i.SET_CLOUD_PROVIDER,(function(e){return e}));t.setCloudProvider=d;var f=(0,r.createAction)(i.LOAD_CLOUD_MAP,(function(e){return e}));t.loadCloudMap=f;var p=(0,r.createAction)(i.LOAD_CLOUD_MAP_SUCCESS,(function(e){return e}));t.loadCloudMapSuccess=p;var h=(0,r.createAction)(i.LOAD_CLOUD_MAP_ERROR,(function(e){return e}));t.loadCloudMapError=h;var m=(0,r.createAction)(i.GET_SAVED_MAPS,(function(e){return e}));t.getSavedMaps=m;var g=(0,r.createAction)(i.GET_SAVED_MAPS_SUCCESS,(function(e){return e}));t.getSavedMapsSuccess=g;var v=(0,r.createAction)(i.GET_SAVED_MAPS_ERROR,(function(e){return e}));t.getSavedMapsError=v},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(0)),l=r(n(1)),u=n(74),s=n(52),c=n(42),d=n(59),f=r(n(15)),p=n(86),h=f.default.div(a||(a=(0,i.default)(["\n align-items: center;\n margin-left: 10px;\n color: ",";\n display: inline-flex;\n .info-helper__content {\n width: ",";\n max-width: ",";\n }\n :hover {\n cursor: pointer;\n color: ",";\n }\n"])),(function(e){return e.theme.labelColor}),(function(e){return e.width?"".concat(e.width,"px"):"auto"}),(function(e){return e.width?"auto":"100px"}),(function(e){return e.theme.textColorHl}));var m=function(){var e={description:l.default.string.isRequired,containerClass:l.default.string},t=function(e){var t=e.description,n=e.property,r=e.containerClass,a=e.width,i=e.id,l=(0,u.useIntl)();return o.default.createElement(h,{className:"info-helper ".concat(r||""),width:a,"data-tip":!0,"data-for":i},o.default.createElement(d.Docs,{height:"16px"}),o.default.createElement(c.Tooltip,{id:i,effect:"solid"},o.default.createElement("div",{className:"info-helper__content"},t&&o.default.createElement(s.FormattedMessage,{id:t,defaultValue:t,values:{property:l.formatMessage({id:n?"property.".concat((0,p.camelize)(n)):"misc.empty"})}}))))};return t.propTypes=e,t};t.default=m},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.inputColor=t.inputBorderActiveColorLT=t.inputBorderActiveColor=t.inputBorderHoverColorLT=t.inputBorderHoverColor=t.inputBorderColor=t.inputBgdActiveLT=t.inputBgdActive=t.inputBgdHover=t.inputBgd=t.inputFontWeight=t.inputFontSizeSmall=t.inputFontSize=t.inputPaddingTiny=t.inputPaddingSmall=t.inputPadding=t.inputBoxHeightTiny=t.inputBoxHeightSmall=t.inputBoxHeight=t.selectionBtnBorderActColor=t.selectionBtnBorderColor=t.selectionBtnBorder=t.selectionBtnBgdHover=t.selectionBtnActColor=t.selectionBtnColor=t.selectionBtnActBgd=t.selectionBtnBgd=t.floatingBtnActColor=t.floatingBtnColor=t.floatingBtnBorderHover=t.floatingBtnBorder=t.floatingBtnBgdHover=t.floatingBtnActBgd=t.floatingBtnBgd=t.negativeBtnActColor=t.negativeBtnColor=t.negativeBtnBorder=t.negativeBtnBgdHover=t.negativeBtnActBgd=t.negativeBtnBgd=t.linkBtnBorder=t.linkBtnActBgdHover=t.linkBtnActColor=t.linkBtnColor=t.linkBtnActBgd=t.linkBtnBgd=t.ctaBtnActColor=t.ctaBtnColor=t.ctaBtnActBgd=t.ctaBtnBgdHover=t.ctaBtnBgd=t.secondaryBtnBorder=t.secondaryBtnBgdHover=t.secondaryBtnActColor=t.secondaryBtnColor=t.secondaryBtnActBgd=t.secondaryBtnBgd=t.primaryBtnBorder=t.primaryBtnFontSizeLarge=t.primaryBtnFontSizeSmall=t.primaryBtnFontSizeDefault=t.primaryBtnRadius=t.primaryBtnBgdHover=t.primaryBtnActColor=t.primaryBtnColor=t.primaryBtnActBgd=t.primaryBtnBgd=t.btnFontFamily=t.logoColor=t.errorColor=t.activeColorHover=t.activeColorLT=t.activeColor=t.textColorHlLT=t.textColorHl=t.titleTextColor=t.panelTabWidth=t.panelToggleBorderColor=t.subtextColorActive=t.subtextColorLT=t.subtextColor=t.titleColorLT=t.dataTableTextColor=t.textColorLT=t.textColor=t.labelColorLT=t.labelHoverColor=t.labelColor=t.lineHeight=t.fontSize=t.fontWeight=t.fontFamily=t.borderColorLT=t.borderColor=t.borderRadius=t.boxSizing=t.boxShadow=t.transitionSlow=t.transitionFast=t.transition=void 0,t.panelBorderRadius=t.panelBoxShadow=t.layerPanelHeaderHeight=t.panelHeaderHeight=t.panelHeaderIconHover=t.panelHeaderIconActive=t.panelHeaderIcon=t.chickletBgdLT=t.chickletBgd=t.panelHeaderBorderRadius=t.panelBackgroundHover=t.panelContentBackground=t.panelBackground=t.sidePanelTitleLineHeight=t.sidePanelTitleFontsize=t.sideBarCloseBtnBgdHover=t.sideBarCloseBtnColor=t.sideBarCloseBtnBgd=t.sidePanelScrollBarHeight=t.sidePanelScrollBarWidth=t.sidePanelBg=t.sidePanelBorderColor=t.sidePanelBorder=t.sidePanelInnerPadding=t.layerConfigGroupPaddingLeft=t.layerConfigGroupMarginBottom=t.sidePanelHeaderBorder=t.sidePanelHeaderBg=t.radioButtonBgdColor=t.radioButtonRadius=t.radioBorderColor=t.radioBorderRadius=t.radioRadius=t.checkboxBoxBgdChecked=t.checkboxBoxBgd=t.checkboxBorderColorLT=t.checkboxBorderRadius=t.checkboxBorderColor=t.checkboxMargin=t.checkboxHeight=t.checkboxWidth=t.secondarySwitchBtnBgd=t.secondarySwitchTrackBgd=t.switchBtnHeight=t.switchBtnWidth=t.switchBtnBorderRadius=t.switchBtnBoxShadow=t.switchBtnBgdActive=t.switchBtnBgd=t.switchTrackBorderRadius=t.switchTrackBgdActive=t.switchTrackBgd=t.switchLabelMargin=t.switchHeight=t.switchWidth=t.dropdownWapperMargin=t.dropdownWrapperZ=t.dropdownListLineHeight=t.dropdownListBorderTopLT=t.dropdownListBorderTop=t.dropdownListBgdLT=t.toolbarItemBorderRaddius=t.toolbarItemBorderHover=t.toolbarItemIconHover=t.toolbarItemBgdHover=t.dropdownListBgd=t.dropdownListShadow=t.dropdownListHighlightBgLT=t.dropdownListHighlightBg=t.panelTabColor=t.selectBorder=t.selectBorderRadius=t.selectBorderColorLT=t.selectBorderColor=t.selectBackgroundHoverLT=t.selectBackgroundLT=t.selectBackgroundHover=t.selectBackground=t.selectColorPlaceHolderLT=t.selectColorPlaceHolder=t.selectFontWeightBold=t.selectFontWeight=t.selectFontSize=t.selectActiveBorderColor=t.selectColorLT=t.selectColor=t.dropdownSelectHeight=t.secondaryInputBorderActiveColor=t.secondaryInputBorderColor=t.secondaryInputColor=t.secondaryInputBgdActive=t.secondaryInputBgdHover=t.secondaryInputBgd=t.inputBoxShadowActiveLT=t.inputBoxShadowActive=t.inputBoxShadow=t.inputPlaceholderFontWeight=t.inputPlaceholderColorLT=t.inputPlaceholderColor=t.inputBorderRadius=void 0,t.breakPoints=t.layerConfiguratorPadding=t.layerConfiguratorMargin=t.layerConfiguratorBorderColor=t.layerConfiguratorBorder=t.styledConfigGroupHeaderBorder=t.layerConfigGroupLabelLabelFontSize=t.layerConfigGroupLabelLabelMargin=t.layerConfigGroupColor=t.layerConfigGroupLabelPadding=t.layerConfigGroupLabelMargin=t.layerConfigGroupLabelBorderLeft=t.textTruncate=t.fieldTokenRightMargin=t.actionPanelHeight=t.actionPanelWidth=t.notificationPanelItemHeight=t.notificationPanelItemWidth=t.notificationPanelWidth=t.notificationColors=t.rangePlotContainerHLarge=t.rangePlotHLarge=t.rangePlotContainerH=t.rangePlotH=t.rangePlotMarginLarge=t.rangePlotMargin=t.timeTitleFontSize=t.axisFontColor=t.axisFontSize=t.histogramFillOutRange=t.histogramFillInRange=t.rangeBrushBgd=t.geocoderInputHeight=t.geocoderRight=t.geocoderTop=t.geocoderWidth=t.sliderMarginBottom=t.sliderMarginTop=t.sliderMarginTopIsTime=t.sliderInputPadding=t.sliderInputFontSize=t.sliderInputWidth=t.sliderInputHeight=t.sliderHandleShadow=t.sliderHandleAfterContent=t.sliderHandleHoverColor=t.sliderBorderRadius=t.sliderInactiveBorderColor=t.sliderHandleTextColor=t.sliderHandleColor=t.sliderHandleWidth=t.sliderHandleHeight=t.sliderBarHeight=t.sliderBarRadius=t.sliderBarHoverColor=t.sliderBarBgd=t.sliderBarColor=t.modalDialogColor=t.modalDialogBgd=t.modalDropdownBackground=t.modalButtonZ=t.modalTitleZ=t.modalFooterZ=t.modalContentZ=t.modalOverlayBgd=t.modalOverLayZ=t.modalPortableLateralPadding=t.modalLateralPadding=t.modalPadding=t.modalImagePlaceHolder=t.modalFooterBgd=t.modalTitleFontSizeSmaller=t.modalTitleFontSize=t.modalTitleColor=t.bottomWidgetBgd=t.bottomWidgetPaddingLeft=t.bottomWidgetPaddingBottom=t.bottomWidgetPaddingRight=t.bottomWidgetPaddingTop=t.bottomPanelGap=t.bottomInnerPdVert=t.bottomInnerPdSide=t.sidepanelDividerHeight=t.sidepanelDividerMargin=t.sidepanelDividerBorder=t.layerTypeIconSizeSM=t.layerTypeIconPdL=t.layerTypeIconSizeL=t.tooltipFontSize=t.tooltipBoxShadow=t.tooltipColor=t.tooltipBg=t.mapPanelHeaderBackgroundColor=t.mapPanelBackgroundColor=t.panelBorderLT=t.panelBorder=t.panelBorderColor=t.panelToggleBottomPadding=t.panelToggleMarginRight=t.panelBackgroundLT=void 0,t.themeBS=t.themeLT=t.theme=t.modalScrollBar=void 0;var a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,x,M,w,S,T,C,L,P,k,D,R,j=r(n(4)),I=r(n(16)),F=n(15),N=n(41);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t0?"border-image: ".concat((0,d.createLinearGradient)("bottom",e.labelRCGColorValues)," 3;"):"border-color: transparent;"}));t.StyledFilterHeader=p;var h=u.default.div(i||(i=(0,o.default)(["\n display: flex;\n flex: 2;\n"])));function m(e){var t={delete:c.Trash};return function(n){var r=n.children,a=n.datasets,i=(n.allAvailableFields,n.setFilter,n.idx,n.filter),o=n.removeFilter,u=n.actionIcons,s=void 0===u?t:u;return l.default.createElement(p,{className:"filter-panel__header",labelRCGColorValues:a.map((function(e){return e.color}))},l.default.createElement(h,null,r),l.default.createElement(e,{id:i.id,tooltip:"tooltip.delete",tooltipType:"error",onClick:o,hoverColor:"errorColor",IconComponent:s.delete}))}}m.deps=[s.default];var g=m;t.default=g},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=n(42),l=r(n(418)),u=r(n(246)),s=r(n(343)),c=r(n(213)),d=n(1050);function f(e,t,n,r){var a=i.default.memo((function(a){var l=a.allAvailableFields,u=a.children,s=a.datasets,c=a.filter,f=a.idx,p=a.removeFilter,h=a.setFilter,m=a.panelActions,g=void 0===m?[]:m,v=(0,i.useCallback)((function(e){return h(f,"name",e.name)}),[f,h]),y=(0,i.useCallback)((function(e){return h(f,"dataId",[e])}),[f,h]),b=(0,i.useMemo)((function(){return Array.isArray(c.name)?c.name[0]:c.name}),[c.name]),A=s[c.dataId[0]],_=(0,i.useMemo)((function(){return(0,d.getSupportedFilterFields)(A.supportedFilterTypes,l)}),[A.supportedFilterTypes,l]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(e,{datasets:[A],allAvailableFields:_,idx:f,filter:c,removeFilter:p},i.default.createElement(n,{inputTheme:"secondary",fields:_,value:b,erasable:!1,onSelect:v}),g&&g.map((function(e){return i.default.createElement(r,{id:e.id,key:e.id,onClick:e.onClick,tooltip:e.tooltip,IconComponent:e.iconComponent,active:e.active})}))),i.default.createElement(o.StyledFilterContent,{className:"filter-panel__content"},Object.keys(s).length>1&&i.default.createElement(t,{inputTheme:"secondary",datasets:s,disabled:c.freeze,dataId:c.dataId,onSelect:y}),u))}));return a.displayName="FilterPanelWithFieldSelect",a}f.deps=[l.default,s.default,c.default,u.default];var p=f;t.default=p},function(e,t,n){"use strict";var r=n(613),a=n(1747),i=n(1758),o=n(1),l=n(1803),u=n(1805),s=n(1809),c=n(1810),d=n(1811),f=n(1812),p=n(1813),h=n(1814),m=n(1815),g=Object.keys(h),v=function(e){var t=e.source||e.children||"";if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var n=r(h,e.renderers),o=a().use(i).use(e.plugins||[]),p=o.runSync(o.parse(t)),v=r(e,{renderers:n,definitions:f(p)});return function(e){var t=[d,l()],n=e.disallowedTypes;e.allowedTypes&&(n=g.filter((function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)})));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(s.ofType(n,r));e.allowNode&&t.push(s.ifNotMatch(e.allowNode,r));var a=(e.allowDangerousHtml||!1===e.escapeHtml)&&!e.skipHtml,i=(e.astPlugins||[]).some((function(e){return e.identity===m.HtmlParser}));a&&!i&&t.push(u);e.astPlugins&&(t=t.concat(e.astPlugins));return t.push(c),t}(e).forEach((function(e){p=e(p,v)})),p};v.defaultProps={transformLinkUri:p},v.propTypes={className:o.string,source:o.string,children:o.string,sourcePos:o.bool,rawSourcePos:o.bool,escapeHtml:o.bool,allowDangerousHtml:o.bool,skipHtml:o.bool,allowNode:o.func,allowedTypes:o.arrayOf(o.oneOf(g)),disallowedTypes:o.arrayOf(o.oneOf(g)),transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,astPlugins:o.arrayOf(o.func),unwrapDisallowed:o.bool,renderers:o.object,plugins:o.array},v.types=g,v.renderers=h,v.uriTransformer=p,e.exports=v},function(e,t){e.exports=String.fromCharCode},function(e,t,n){t.tokenize=function(e,t,n){return a(e,(function(e){return null===e||r(e)?t(e):n(e)}),"linePrefix")},t.partial=!0;var r=n(109),a=n(120)},function(e,t){e.exports=Object.assign},function(e,t,n){e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0};var r=n(1098)},function(e,t,n){var r=n(215);e.exports=r(/[\dA-Za-z]/)},function(e,t,n){"use strict";e.exports=l;var r=n(1806),a=r.CONTINUE,i=r.SKIP,o=r.EXIT;function l(e,t,n,a){"function"==typeof t&&"function"!=typeof n&&(a=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],a=r?r.children.indexOf(e):null;return n(e,a,r)}),a)}l.CONTINUE=a,l.SKIP=i,l.EXIT=o},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l,u=r(n(16)),s=r(n(0)),c=a(n(15)),d=(0,c.keyframes)(i||(i=(0,u.default)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),f=c.default.span(o||(o=(0,u.default)(["\n border-left-color: ",";\n animation: _preloader_spin_ 500ms linear infinite;\n border-radius: 50%;\n border-top-color: transparent;\n border-bottom-color: transparent;\n border-right-color: transparent;\n cursor: wait;\n border-style: solid;\n display: block;\n animation-name: ",";\n}"])),(function(e){return e.color||e.theme.primaryBtnBgd}),d),p=c.default.div(l||(l=(0,u.default)(["\n border-radius: 50%;\n border: 3px solid ",";\n padding: 2px;\n"])),(function(e){return e.borderColor||e.theme.borderColorLT})),h=function(e){var t=e.size,n=void 0===t?32:t,r=e.color,a=void 0===r?"":r,i=(e.borderColor,e.strokeWidth),o=void 0===i?3:i,l=e.gap,u=void 0===l?2:l;return s.default.createElement(p,{style:{width:"".concat(n,"px"),height:"".concat(n,"px"),padding:"".concat(u,"px")}},s.default.createElement(f,{color:a,style:{width:"".concat(n-2*o-2*u,"px"),height:"".concat(n-2*o-2*u,"px")}}))};t.default=h},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i,o,l,u=r(n(16)),s=r(n(0)),c=r(n(15)),d=n(59),f=n(42),p=r(n(427)),h=c.default.div.attrs({className:"provider-tile__wrapper"})(a||(a=(0,u.default)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n border-radius: 2px;\n border: 1px solid\n ",";\n color: ",";\n cursor: pointer;\n font-weight: 500;\n width: 120px;\n height: 168px;\n background-color: #ffffff;\n transition: ",";\n position: relative;\n :hover {\n border: 1px solid ",";\n color: ",";\n }\n\n .button {\n margin-top: 20px;\n }\n"])),(function(e){return e.selected?e.theme.primaryBtnBgd:e.theme.selectBorderColorLT}),(function(e){return e.selected?e.theme.primaryBtnBgd:e.theme.selectBorderColorLT}),(function(e){return e.theme.transition}),(function(e){return e.theme.primaryBtnBgd}),(function(e){return e.theme.primaryBtnBgd})),m=(0,c.default)(f.CenterVerticalFlexbox)(i||(i=(0,u.default)(["\n margin-right: 12px;\n"]))),g=c.default.div(o||(o=(0,u.default)(["\n font-size: 12px;\n margin-top: 12px;\n margin-bottom: 4px;\n"]))),v=c.default.div(l||(l=(0,u.default)(["\n font-size: 11px;\n margin-top: 8px;\n text-align: center;\n color: ",";\n overflow: hidden;\n width: 100px;\n text-overflow: ellipsis;\n"])),(function(e){return e.theme.primaryBtnActBgd})),y=function(e){var t=e.onClick;return s.default.createElement(f.Button,{className:"login-button",link:!0,small:!0,onClick:t},s.default.createElement(d.Login,null),"Login")},b=function(e){var t=e.onClick;return s.default.createElement(f.Button,{className:"logout-button",link:!0,small:!0,onClick:t},s.default.createElement(d.Logout,null),"Logout")},A=function(e){var t=e.isConnected,n=e.actionName,r=void 0===n?null:n,a=e.isReady;return t&&r?s.default.createElement(f.Button,{className:"cloud-tile__action",small:!0,secondary:!0,disabled:!a},a?r:s.default.createElement(p.default,{size:12})):null},_=function(e){var t=e.onSelect,n=e.onConnect,r=void 0===n?null:n,a=e.onLogout,i=void 0===a?null:a,o=e.actionName,l=void 0===o?null:o,u=e.cloudProvider,c=e.onSetCloudProvider,d=e.isSelected,p=e.isConnected,_=e.isReady,O=void 0===_||_,E="function"==typeof u.getUserName?u.getUserName():null,x="function"==typeof r?r:function(){return u.login((function(){return c(u.name)}))},M="function"==typeof i?i:function(){return u.logout((function(){return d?c(null):null}))};return s.default.createElement(m,null,s.default.createElement(h,{onClick:p?t:x,selected:d},s.default.createElement(g,null,u.displayName||u.name),u.icon?s.default.createElement(u.icon,{height:"64px"}):null,s.default.createElement(A,{isConnected:p,actionName:l,isReady:O}),E&&s.default.createElement(v,null,E),d&&s.default.createElement(f.CheckMark,null)),p?s.default.createElement(b,{onClick:M}):s.default.createElement(y,{onClick:x}))};t.default=_},function(e,t,n){"use strict"; +/* + * Copyright 2012-2016 the original author or authors + * @license MIT, see LICENSE.txt for details + * + * @author Scott Andrews + */var r={};e.exports=function(e){var t,n,a,i;for(e||(e={}),t=1,n=arguments.length;t=0&&u===l&&s())}var x=n(72),M=n.n(x),w=(n(1),function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;a()(this,e),g()(this,"_cellSizeAndPositionData",{}),g()(this,"_lastMeasuredIndex",-1),g()(this,"_lastBatchedIndex",-1),g()(this,"_cellCount",void 0),g()(this,"_cellSizeGetter",void 0),g()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=i}return o()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var a=this._cellSizeGetter({index:r});if(void 0===a||isNaN(a))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(a));null===a?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:a},n+=a,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,a=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var o,l=this.getSizeAndPositionOfCell(i),u=l.offset,s=u-r+l.size;switch(n){case"start":o=u;break;case"end":o=s;break;case"center":o=u-(r-l.size)/2;break;default:o=Math.max(s,Math.min(u,a))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,o))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,a=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(a);n=i.offset+i.size;for(var o=a;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}()),S=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},T=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?S():n,i=M()(t,["maxScrollSize"]);a()(this,e),g()(this,"_cellSizeAndPositionManager",void 0),g()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new w(i),this._maxScrollSize=r}return o()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:a});return Math.round(i*(a-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,a=e.currentOffset,i=e.targetIndex;a=this._safeOffsetToOffset({containerSize:r,offset:a});var o=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:a,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:o})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(r===a)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(a-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(r===a)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:a});return Math.round(i*(r-t))}}]),e}();function C(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,a=n.indices,i=Object.keys(a),o=!e||i.every((function(e){var t=a[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],r=a[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=a,o&&l&&r(a)}}function L(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,a=e.startIndex,i=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,a),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,a-n),overscanStopIndex:Math.min(t-1,i)}}function P(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,a=e.previousCellSize,i=e.previousScrollToAlignment,o=e.previousScrollToIndex,l=e.previousSize,u=e.scrollOffset,s=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=c>=0&&c0&&(dn.getTotalSize()-d&&p(h-1)}function k(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,a=e.columnStartIndex,i=e.columnStopIndex,o=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,u=e.isScrolling,s=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],b=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),A=!u&&!b,_=f;_<=p;_++)for(var O=d.getSizeAndPositionOfCell(_),E=a;E<=i;E++){var x=r.getSizeAndPositionOfCell(E),M=E>=g.start&&E<=g.stop&&_>=v.start&&_<=v.stop,w="".concat(_,"-").concat(E),S=void 0;A&&h[w]?S=h[w]:o&&!o.has(_,E)?S={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(S={height:O.size,left:x.offset+l,position:"absolute",top:O.offset+m,width:x.size},h[w]=S);var T={columnIndex:E,isScrolling:u,isVisible:M,key:w,parent:c,rowIndex:_,style:S},C=void 0;!s&&!u||l||m?C=n(T):(t[w]||(t[w]=n(T)),C=t[w]),null!=C&&!1!==C&&y.push(C)}return y}var D,R,j=!("undefined"==typeof window||!window.document||!window.document.createElement);function I(e){if((!D&&0!==D||e)&&j){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),D=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return D}var F,N,B=(R="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||function(e){return R.setTimeout(e,1e3/60)},z=R.cancelAnimationFrame||R.webkitCancelAnimationFrame||R.mozCancelAnimationFrame||R.oCancelAnimationFrame||R.msCancelAnimationFrame||function(e){R.clearTimeout(e)},U=B,V=z,H=function(e){return V(e.id)},Y=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var r={id:U((function a(){Date.now()-n>=t?e.call():r.id=U(a)}))};return r};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),o()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,a=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,o=void 0===i?this.props.scrollToRow:i,l=G({},this.props,{scrollToAlignment:n,scrollToColumn:a,scrollToRow:o});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,a=void 0===r?0:r;if(!(a<0)){this._debounceScrollEnded();var i=this.props,o=i.autoHeight,l=i.autoWidth,u=i.height,s=i.width,c=this.state.instanceProps,d=c.scrollbarSize,f=c.rowSizeAndPositionManager.getTotalSize(),p=c.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-s+d),n),m=Math.min(Math.max(0,f-u+d),a);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:q};o||(g.scrollTop=m),l||(g.scrollLeft=h),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,a=void 0===r?0:r,i=this.props,o=i.scrollToColumn,l=i.scrollToRow,u=this.state.instanceProps;u.columnSizeAndPositionManager.resetCell(n),u.rowSizeAndPositionManager.resetCell(a),this._recomputeScrollLeftFlag=o>=0&&(1===this.state.scrollDirectionHorizontal?n<=o:n>=o),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?a<=l:a>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,a=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(G({},a,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(G({},a,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,a=e.scrollLeft,i=e.scrollToColumn,o=e.scrollTop,l=e.scrollToRow,u=e.width,s=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),s.scrollbarSizeMeasured||this.setState((function(e){var t=G({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof a&&a>=0||"number"==typeof o&&o>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:o});c&&(c.needToResetStyleCache=!1,this.setState(c))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&u>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:o||0,totalColumnsWidth:s.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:s.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,a=r.autoHeight,i=r.autoWidth,o=r.columnCount,l=r.height,u=r.rowCount,s=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,f=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=o>0&&0===e.columnCount||u>0&&0===e.rowCount;m===X&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=h),!a&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var b=(0===e.width||0===e.height)&&l>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):P({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:s,scrollToIndex:c,size:f,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):P({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:s,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:b,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||g!==t.scrollTop){var A=v.rowSizeAndPositionManager.getTotalSize(),_=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:g,totalColumnsWidth:_,totalRowsHeight:A})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&H(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,a=e.className,i=e.containerProps,o=e.containerRole,l=e.containerStyle,u=e.height,s=e.id,c=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,h=e.width,m=this.state,g=m.instanceProps,y=m.needToResetStyleCache,b=this._isScrolling(),_={boxSizing:"border-box",direction:"ltr",height:n?"auto":u,position:"relative",width:r?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var E=g.columnSizeAndPositionManager.getTotalSize(),x=g.rowSizeAndPositionManager.getTotalSize(),M=x>u?g.scrollbarSize:0,w=E>h?g.scrollbarSize:0;w===this._horizontalScrollBarSize&&M===this._verticalScrollBarSize||(this._horizontalScrollBarSize=w,this._verticalScrollBarSize=M,this._scrollbarPresenceChanged=!0),_.overflowX=E+M<=h?"hidden":"auto",_.overflowY=x+w<=u?"hidden":"auto";var S=this._childrenToDisplay,T=0===S.length&&u>0&&h>0;return v.createElement("div",A()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:O("ReactVirtualized__Grid",a),id:s,onScroll:this._onScroll,role:d,style:G({},_,{},f),tabIndex:p}),S.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:o,style:G({width:t?"auto":E,height:x,maxWidth:E,maxHeight:x,overflow:"hidden",pointerEvents:b?"none":"",position:"relative"},l)},S),T&&c())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,a=e.columnCount,i=e.deferredMeasurementCache,o=e.height,l=e.overscanColumnCount,u=e.overscanIndicesGetter,s=e.overscanRowCount,c=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],o>0&&d>0){var b=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),A=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:o,offset:g}),_=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),O=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:o,offset:g});this._renderedColumnStartIndex=b.start,this._renderedColumnStopIndex=b.stop,this._renderedRowStartIndex=A.start,this._renderedRowStopIndex=A.stop;var E=u({direction:"horizontal",cellCount:a,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof b.start?b.start:0,stopIndex:"number"==typeof b.stop?b.stop:-1}),x=u({direction:"vertical",cellCount:c,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof A.start?A.start:0,stopIndex:"number"==typeof A.stop?A.stop:-1}),M=E.overscanStartIndex,w=E.overscanStopIndex,S=x.overscanStartIndex,T=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var C=S;C<=T;C++)if(!i.has(C,0)){M=0,w=a-1;break}if(!i.hasFixedWidth())for(var L=M;L<=w;L++)if(!i.has(0,L)){S=0,T=c-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:M,columnStopIndex:w,deferredMeasurementCache:i,horizontalOffsetAdjustment:_,isScrolling:y,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:S,rowStopIndex:T,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:O,visibleColumnIndices:b,visibleRowIndices:A}),this._columnStartIndex=M,this._columnStopIndex=w,this._rowStartIndex=S,this._rowStopIndex=T}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&H(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Y(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,a=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t.props,l=o.height;(0,o.onScroll)({clientHeight:l,clientWidth:o.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:a})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var a=this._columnStartIndex;a<=this._columnStopIndex;a++){var i="".concat(r,"-").concat(a);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var a,i,o=n.instanceProps;return r.needToResetStyleCache=!1,e.columnWidth===o.prevColumnWidth&&e.rowHeight===o.prevRowHeight||(r.needToResetStyleCache=!0),o.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),o.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==o.prevColumnCount&&0!==o.prevRowCount||(o.prevColumnCount=0,o.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===o.prevIsScrolling&&Object.assign(r,{isScrolling:!1}),E({cellCount:o.prevColumnCount,cellSize:"number"==typeof o.prevColumnWidth?o.prevColumnWidth:null,computeMetadataCallback:function(){return o.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:o.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){a=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),E({cellCount:o.prevRowCount,cellSize:"number"==typeof o.prevRowHeight?o.prevRowHeight:null,computeMetadataCallback:function(){return o.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:o.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),o.prevColumnCount=e.columnCount,o.prevColumnWidth=e.columnWidth,o.prevIsScrolling=!0===e.isScrolling,o.prevRowCount=e.rowCount,o.prevRowHeight=e.rowHeight,o.prevScrollToColumn=e.scrollToColumn,o.prevScrollToRow=e.scrollToRow,o.scrollbarSize=e.getScrollbarSize(),void 0===o.scrollbarSize?(o.scrollbarSizeMeasured=!1,o.scrollbarSize=0):o.scrollbarSizeMeasured=!0,r.instanceProps=o,G({},r,{},a,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,a={scrollPositionChangeReason:X};return"number"==typeof n&&n>=0&&(a.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,a.scrollLeft=n),"number"==typeof r&&r>=0&&(a.scrollDirectionVertical=r>t.scrollTop?1:-1,a.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?a:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,a=e.scrollToAlignment,i=e.scrollToColumn,o=e.width,l=t.scrollLeft,u=t.instanceProps;if(n>0){var s=n-1,c=i<0?s:Math.min(s,i),d=u.rowSizeAndPositionManager.getTotalSize(),f=u.scrollbarSizeMeasured&&d>r?u.scrollbarSize:0;return u.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:a,containerSize:o-f,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,a=t._getCalculatedScrollLeft(e,n);return"number"==typeof a&&a>=0&&r!==a?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,a=e.scrollToAlignment,i=e.scrollToRow,o=e.width,l=t.scrollTop,u=t.instanceProps;if(r>0){var s=r-1,c=i<0?s:Math.min(s,i),d=u.columnSizeAndPositionManager.getTotalSize(),f=u.scrollbarSizeMeasured&&d>o?u.scrollbarSize:0;return u.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:a,containerSize:n-f,currentOffset:l,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,a=t._getCalculatedScrollTop(e,n);return"number"==typeof a&&a>=0&&r!==a?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:a}):{}}}]),t}(v.PureComponent),g()(F,"propTypes",null),N);g()(Z,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:k,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:I,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:L,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(y.polyfill)(Z);var K=Z;function J(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,a=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===r?{overscanStartIndex:Math.max(0,a-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,a-n),overscanStopIndex:Math.min(t-1,i+1)}}var Q,$;function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var te=($=Q=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),g()(this,"_cellHeightCache",{}),g()(this,"_cellWidthCache",{}),g()(this,"_columnWidthCache",{}),g()(this,"_rowHeightCache",{}),g()(this,"_defaultHeight",void 0),g()(this,"_defaultWidth",void 0),g()(this,"_minHeight",void 0),g()(this,"_minWidth",void 0),g()(this,"_keyMapper",void 0),g()(this,"_hasFixedHeight",void 0),g()(this,"_hasFixedWidth",void 0),g()(this,"_columnCount",0),g()(this,"_rowCount",0),g()(this,"columnWidth",(function(e){var n=e.index,r=t._keyMapper(0,n);return void 0!==t._columnWidthCache[r]?t._columnWidthCache[r]:t._defaultWidth})),g()(this,"rowHeight",(function(e){var n=e.index,r=t._keyMapper(n,0);return void 0!==t._rowHeightCache[r]?t._rowHeightCache[r]:t._defaultHeight}));var r=n.defaultHeight,i=n.defaultWidth,o=n.fixedHeight,l=n.fixedWidth,u=n.keyMapper,s=n.minHeight,c=n.minWidth;this._hasFixedHeight=!0===o,this._hasFixedWidth=!0===l,this._minHeight=s||0,this._minWidth=c||0,this._keyMapper=u||he,this._defaultHeight=Math.max(this._minHeight,"number"==typeof r?r:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:100)}return o()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,r){var a=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[a]=r,this._cellWidthCache[a]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,r=0;r=0){var c=t.getScrollPositionForCell({align:a,cellIndex:i,height:r,scrollLeft:u,scrollTop:s,width:o});c.scrollLeft===u&&c.scrollTop===s||n._setScrollPosition(c)}})),g()(f()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,r=t.cellLayoutManager,a=t.height,i=t.isScrollingChange,o=t.width,l=n._scrollbarSize,u=r.getTotalSize(),s=u.height,c=u.width,d=Math.max(0,Math.min(c-o+l,e.target.scrollLeft)),f=Math.max(0,Math.min(s-a+l,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var p=e.cancelable?ve:ye;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:c,totalHeight:s})}})),n._scrollbarSize=I(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),o()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,r=e.scrollToCell,a=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=I(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(n>=0||a>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:a}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),o=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:a||0,totalHeight:o,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.height,a=n.scrollToAlignment,i=n.scrollToCell,o=n.width,l=this.state,u=l.scrollLeft,s=l.scrollPositionChangeReason,c=l.scrollTop;s===ye&&(u>=0&&u!==t.scrollLeft&&u!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=u),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),r===e.height&&a===e.scrollToAlignment&&i===e.scrollToCell&&o===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,r=e.cellLayoutManager,a=e.className,i=e.height,o=e.horizontalOverscanSize,l=e.id,u=e.noContentRenderer,s=e.style,c=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,h=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),y=g.height,b=g.width,A=Math.max(0,h-o),_=Math.max(0,m-c),E=Math.min(b,h+d+o),x=Math.min(y,m+i+c),M=i>0&&d>0?r.cellRenderers({height:x-_,isScrolling:p,width:E-A,x:A,y:_}):[],w={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},S=y>i?this._scrollbarSize:0,T=b>d?this._scrollbarSize:0;return w.overflowX=b+S<=d?"hidden":"auto",w.overflowY=y+T<=i?"hidden":"auto",v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:O("ReactVirtualized__Collection",a),id:l,onScroll:this._onScroll,role:"grid",style:ge({},w,{},s),tabIndex:0},n>0&&v.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:b,overflow:"hidden",pointerEvents:p?"none":"",width:b}},M),0===n&&u())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,a=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t.props,l=o.height;(0,o.onScroll)({clientHeight:l,clientWidth:o.width,scrollHeight:a,scrollLeft:n,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:ye};t>=0&&(r.scrollLeft=t),n>=0&&(r.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:ye}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:ye}}}]),t}(v.PureComponent);g()(be,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),be.propTypes={},Object(y.polyfill)(be);var Ae=be,_e=function(){function e(t){var n=t.height,r=t.width,i=t.x,o=t.y;a()(this,e),this.height=n,this.width=r,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return o()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),Oe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;a()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return o()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,r=e.x,a=e.y,i={};return this.getSections({height:t,width:n,x:r,y:a}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,r=e.x,a=e.y,i=Math.floor(r/this._sectionSize),o=Math.floor((r+n-1)/this._sectionSize),l=Math.floor(a/this._sectionSize),u=Math.floor((a+t-1)/this._sectionSize),s=[],c=i;c<=o;c++)for(var d=l;d<=u;d++){var f="".concat(c,".").concat(d);this._sections[f]||(this._sections[f]=new _e({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),s.push(this._sections[f])}return s}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function Ee(e){var t=e.align,n=void 0===t?"auto":t,r=e.cellOffset,a=e.cellSize,i=e.containerSize,o=e.currentOffset,l=r,u=l-i+a;switch(n){case"start":return l;case"end":return u;case"center":return l-(i-a)/2;default:return Math.max(u,Math.min(l,o))}}var xe=function(e){function t(e,n){var r;return a()(this,t),(r=u()(this,c()(t).call(this,e,n)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(f()(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(f()(r)),r}return h()(t,e),o()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=A()({},this.props);return v.createElement(Ae,A()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,r=e.sectionSize,a=[],i=new Oe(r),o=0,l=0,u=0;u=0&&na||o1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,r=this,a=this.props,i=a.isRowLoaded,o=a.minimumBatchSize,l=a.rowCount,u=a.threshold,s=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,r=e.rowCount,a=e.startIndex,i=e.stopIndex,o=[],l=null,u=null,s=a;s<=i;s++){t({index:s})?null!==u&&(o.push({startIndex:l,stopIndex:u}),l=u=null):(u=s,null===l&&(l=s))}if(null!==u){for(var c=Math.min(Math.max(u,l+n-1),r-1),d=u+1;d<=c&&!t({index:d});d++)u=d;o.push({startIndex:l,stopIndex:u})}if(o.length)for(var f=o[0];f.stopIndex-f.startIndex+10;){var p=f.startIndex-1;if(t({index:p}))break;f.startIndex=p}return o}({isRowLoaded:i,minimumBatchSize:o,rowCount:l,startIndex:Math.max(0,e-u),stopIndex:Math.min(l-1,t+u)}),c=(n=[]).concat.apply(n,Se()(s.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){r._loadUnloadedRanges(s)},indices:{squashedUnloadedRanges:c}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(v.PureComponent);g()(Te,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Te.propTypes={};var Ce,Le,Pe=(Le=Ce=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,a=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:a,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,r=e.scrollToIndex,a=e.width,i=O("ReactVirtualized__List",t);return v.createElement(K,A()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:a,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(v.PureComponent),g()(Ce,"propTypes",null),Le);g()(Pe,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:J,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var ke=n(55),De=n.n(ke);var Re={ge:function(e,t,n,r,a){return"function"==typeof n?function(e,t,n,r,a){for(var i=n+1;t<=n;){var o=t+n>>>1;a(e[o],r)>=0?(i=o,n=o-1):t=o+1}return i}(e,void 0===r?0:0|r,void 0===a?e.length-1:0|a,t,n):function(e,t,n,r){for(var a=n+1;t<=n;){var i=t+n>>>1;e[i]>=r?(a=i,n=i-1):t=i+1}return a}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},gt:function(e,t,n,r,a){return"function"==typeof n?function(e,t,n,r,a){for(var i=n+1;t<=n;){var o=t+n>>>1;a(e[o],r)>0?(i=o,n=o-1):t=o+1}return i}(e,void 0===r?0:0|r,void 0===a?e.length-1:0|a,t,n):function(e,t,n,r){for(var a=n+1;t<=n;){var i=t+n>>>1;e[i]>r?(a=i,n=i-1):t=i+1}return a}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},lt:function(e,t,n,r,a){return"function"==typeof n?function(e,t,n,r,a){for(var i=t-1;t<=n;){var o=t+n>>>1;a(e[o],r)<0?(i=o,t=o+1):n=o-1}return i}(e,void 0===r?0:0|r,void 0===a?e.length-1:0|a,t,n):function(e,t,n,r){for(var a=t-1;t<=n;){var i=t+n>>>1;e[i]>>1;a(e[o],r)<=0?(i=o,t=o+1):n=o-1}return i}(e,void 0===r?0:0|r,void 0===a?e.length-1:0|a,t,n):function(e,t,n,r){for(var a=t-1;t<=n;){var i=t+n>>>1;e[i]<=r?(a=i,t=i+1):n=i-1}return a}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)},eq:function(e,t,n,r,a){return"function"==typeof n?function(e,t,n,r,a){for(;t<=n;){var i=t+n>>>1,o=a(e[i],r);if(0===o)return i;o<=0?t=i+1:n=i-1}return-1}(e,void 0===r?0:0|r,void 0===a?e.length-1:0|a,t,n):function(e,t,n,r){for(;t<=n;){var a=t+n>>>1,i=e[a];if(i===r)return a;i<=r?t=a+1:n=a-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t)}};function je(e,t,n,r,a){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=a,this.count=(t?t.count:0)+(n?n.count:0)+r.length}var Ie=je.prototype;function Fe(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ne(e,t){var n=qe(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Be(e,t){var n=e.intervals([]);n.push(t),Ne(e,n)}function ze(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?0:(n.splice(r,1),Ne(e,n),1)}function Ue(e,t,n){for(var r=0;r=0&&e[r][1]>=t;--r){var a=n(e[r]);if(a)return a}}function He(e,t){for(var n=0;n>1],a=[],i=[],o=[];for(n=0;n3*(t+1)?Be(this,e):this.left.insert(e):this.left=qe([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Be(this,e):this.right.insert(e):this.right=qe([e]);else{var n=Re.ge(this.leftPoints,e,We),r=Re.ge(this.rightPoints,e,Ge);this.leftPoints.splice(n,0,e),this.rightPoints.splice(r,0,e)}},Ie.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1)?ze(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?ze(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,r=this.left;r.right;)n=r,r=r.right;if(n===this)r.right=this.right;else{var a=this.left,i=this.right;n.count-=r.count,n.right=r.left,r.left=a,r.right=i}Fe(this,r),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Fe(this,this.left):Fe(this,this.right);return 1}for(a=Re.ge(this.leftPoints,e,We);athis.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Ve(this.rightPoints,e,t)}return He(this.leftPoints,t)},Ie.queryInterval=function(e,t,n){var r;if(ethis.mid&&this.right&&(r=this.right.queryInterval(e,t,n)))return r;return tthis.mid?Ve(this.rightPoints,e,n):He(this.leftPoints,n)};var Ze=Xe.prototype;Ze.insert=function(e){this.root?this.root.insert(e):this.root=new je(e[0],null,null,[e],[e])},Ze.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ze.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ze.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ze,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ze,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var Ke,Je,Qe=function(){function e(){var t;a()(this,e),g()(this,"_columnSizeMap",{}),g()(this,"_intervalTree",t&&0!==t.length?new Xe(qe(t)):new Xe(null)),g()(this,"_leftMap",{})}return o()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*n}},{key:"range",value:function(e,t,n){var r=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=De()(e,3),a=t[0],i=(t[1],t[2]);return n(i,r._leftMap[i],a)}))}},{key:"setPosition",value:function(e,t,n,r){this._intervalTree.insert([n,n+r,e]),this._leftMap[e]=t;var a=this._columnSizeMap,i=a[t];a[t]=void 0===i?n+r:Math.max(i,n+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var r=e[n];t=Math.max(t,r)}return t}}]),e}();function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),g()(this,"_cellMeasurerCache",void 0),g()(this,"_columnIndexOffset",void 0),g()(this,"_rowIndexOffset",void 0),g()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),g()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var r=n.cellMeasurerCache,i=n.columnIndexOffset,o=void 0===i?0:i,l=n.rowIndexOffset,u=void 0===l?0:l;this._cellMeasurerCache=r,this._columnIndexOffset=o,this._rowIndexOffset=u}return o()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t0?new it({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,r._deferredMeasurementCacheBottomRightGrid=o>0||l>0?new it({cellMeasurerCache:i,columnIndexOffset:o,rowIndexOffset:l}):i,r._deferredMeasurementCacheTopRightGrid=o>0?new it({cellMeasurerCache:i,columnIndexOffset:o,rowIndexOffset:0}):i),r}return h()(t,e),o()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,a=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,a):a}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,a=void 0===r?0:r,i=this.props,o=i.fixedColumnCount,l=i.fixedRowCount,u=Math.max(0,n-o),s=Math.max(0,a-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:s}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:u,rowIndex:s}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:a}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:u,rowIndex:a}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var r={};t>0&&(r.scrollLeft=t),n>0&&(r.scrollTop=n),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),a=(e.scrollTop,e.scrollToRow),i=M()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var o=this.state,l=o.scrollLeft,u=o.scrollTop;return v.createElement("div",{style:this._containerOuterStyle},v.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(lt({},i,{onScroll:t,scrollLeft:l}))),v.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(lt({},i,{onScroll:t,scrollTop:u})),this._renderBottomRightGrid(lt({},i,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:r,scrollToRow:a,scrollTop:u}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var r=0,a=0;a=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(v.PureComponent);g()(ut,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),ut.propTypes={},Object(y.polyfill)(ut);var st=ut,ct=function(e){function t(e,n){var r;return a()(this,t),(r=u()(this,c()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(f()(r)),r}return h()(t,e),o()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,r=t.clientWidth,a=t.scrollHeight,i=t.scrollLeft,o=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:r,onScroll:this._onScroll,scrollHeight:a,scrollLeft:i,scrollTop:o,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,r=e.scrollHeight,a=e.scrollLeft,i=e.scrollTop,o=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:r,scrollLeft:a,scrollTop:i,scrollWidth:o})}}]),t}(v.PureComponent);ct.propTypes={};function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultSortBy,r=t.defaultSortDirection,a=void 0===r?{}:r;if(!e)throw Error('Required parameter "sortCallback" not specified');var i=n||[],o={};function l(t){var n=t.defaultSortDirection,r=t.event,a=t.sortBy;if(r.shiftKey)void 0!==o[a]?o[a]="ASC"===o[a]?"DESC":"ASC":(o[a]=n,i.push(a));else if(r.ctrlKey||r.metaKey){var l=i.indexOf(a);l>=0&&(i.splice(l,1),delete o[a])}else{i.length=0,i.push(a),Object.keys(o).forEach((function(e){e!==a&&delete o[e]})),void 0!==o[a]?o[a]="ASC"===o[a]?"DESC":"ASC":o[a]=n}e({sortBy:i,sortDirection:o})}return i.forEach((function(e){o[e]=void 0!==a[e]?a[e]:"ASC"})),{sort:l,sortBy:i,sortDirection:o}}function ft(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]}function pt(e){var t=e.cellData;return null==t?"":String(t)}function ht(e){var t=e.className,n=e.columns,r=e.style;return v.createElement("div",{className:t,role:"row",style:r},n)}ht.propTypes=null;var mt={ASC:"ASC",DESC:"DESC"};function gt(e){var t=e.sortDirection,n=O("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===mt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===mt.DESC});return v.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===mt.ASC?v.createElement("path",{d:"M7 14l5-5 5 5z"}):v.createElement("path",{d:"M7 10l5 5 5-5z"}),v.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function vt(e){var t=e.dataKey,n=e.label,r=e.sortBy,a=e.sortDirection,i=r===t,o=[v.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&o.push(v.createElement(gt,{key:"SortIndicator",sortDirection:a})),o}function yt(e){var t=e.className,n=e.columns,r=e.index,a=e.key,i=e.onRowClick,o=e.onRowDoubleClick,l=e.onRowMouseOut,u=e.onRowMouseOver,s=e.onRowRightClick,c=e.rowData,d=e.style,f={"aria-rowindex":r+1};return(i||o||l||u||s)&&(f["aria-label"]="row",f.tabIndex=0,i&&(f.onClick=function(e){return i({event:e,index:r,rowData:c})}),o&&(f.onDoubleClick=function(e){return o({event:e,index:r,rowData:c})}),l&&(f.onMouseOut=function(e){return l({event:e,index:r,rowData:c})}),u&&(f.onMouseOver=function(e){return u({event:e,index:r,rowData:c})}),s&&(f.onContextMenu=function(e){return s({event:e,index:r,rowData:c})})),v.createElement("div",A()({},f,{className:t,key:a,role:"row",style:d}),n)}gt.propTypes={},vt.propTypes=null,yt.propTypes=null;var bt=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),t}(v.Component);function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,a=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:a,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(de.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,a=t.disableHeader,i=t.gridClassName,o=t.gridStyle,l=t.headerHeight,u=t.headerRowRenderer,s=t.height,c=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,g=t.width,y=this.state.scrollbarWidth,b=a?s:s-l,_="function"==typeof f?f({index:-1}):f,E="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],v.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=_t({overflow:"hidden"},r)})),v.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":v.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:O("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!a&&u({className:O("ReactVirtualized__Table__headerRow",_),columns:this._getHeaderColumns(),style:_t({height:l,overflow:"hidden",paddingRight:y,width:g},E)}),v.createElement(K,A()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:O("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:b,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:h,style:_t({},o,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,r=e.isScrolling,a=e.parent,i=e.rowData,o=e.rowIndex,l=this.props.onColumnClick,u=t.props,s=u.cellDataGetter,c=u.cellRenderer,d=u.className,f=u.columnData,p=u.dataKey,h=u.id,m=c({cellData:s({columnData:f,dataKey:p,rowData:i}),columnData:f,columnIndex:n,dataKey:p,isScrolling:r,parent:a,rowData:i,rowIndex:o}),g=this._cachedColumnStyles[n],y="string"==typeof m?m:null;return v.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:O("ReactVirtualized__Table__rowColumn",d),key:"Row"+o+"-Col"+n,onClick:function(e){l&&l({columnData:f,dataKey:p,event:e})},role:"gridcell",style:g,title:y},m)}},{key:"_createHeader",value:function(e){var t,n,r,a,i,o=e.column,l=e.index,u=this.props,s=u.headerClassName,c=u.headerStyle,d=u.onHeaderClick,f=u.sort,p=u.sortBy,h=u.sortDirection,m=o.props,g=m.columnData,y=m.dataKey,b=m.defaultSortDirection,A=m.disableSort,_=m.headerRenderer,E=m.id,x=m.label,M=!A&&f,w=O("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:M}),S=this._getFlexStyleForColumn(o,_t({},c,{},o.props.headerStyle)),T=_({columnData:g,dataKey:y,disableSort:A,label:x,sortBy:p,sortDirection:h});if(M||d){var C=p!==y?b:h===mt.DESC?mt.ASC:mt.DESC,L=function(e){M&&f({defaultSortDirection:b,event:e,sortBy:y,sortDirection:C}),d&&d({columnData:g,dataKey:y,event:e})};i=o.props["aria-label"]||x||y,a="none",r=0,t=L,n=function(e){"Enter"!==e.key&&" "!==e.key||L(e)}}return p===y&&(a=h===mt.ASC?"ascending":"descending"),v.createElement("div",{"aria-label":i,"aria-sort":a,className:w,id:E,key:"Header-Col"+l,onClick:t,onKeyDown:n,role:"columnheader",style:S,tabIndex:r},T)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,r=e.isScrolling,a=e.key,i=e.parent,o=e.style,l=this.props,u=l.children,s=l.onRowClick,c=l.onRowDoubleClick,d=l.onRowRightClick,f=l.onRowMouseOver,p=l.onRowMouseOut,h=l.rowClassName,m=l.rowGetter,g=l.rowRenderer,y=l.rowStyle,b=this.state.scrollbarWidth,A="function"==typeof h?h({index:n}):h,_="function"==typeof y?y({index:n}):y,E=m({index:n}),x=v.Children.toArray(u).map((function(e,a){return t._createColumn({column:e,columnIndex:a,isScrolling:r,parent:i,rowData:E,rowIndex:n,scrollbarWidth:b})})),M=O("ReactVirtualized__Table__row",A),w=_t({},o,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:b},_);return g({className:M,columns:x,index:n,isScrolling:r,key:a,onRowClick:s,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:E,style:w})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),r=_t({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:v.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,a=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:a})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(v.PureComponent);g()(Ot,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:J,overscanRowCount:10,rowRenderer:yt,headerRowRenderer:ht,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Ot.propTypes={};var Et=[],xt=null,Mt=null;function wt(){Mt&&(Mt=null,document.body&&null!=xt&&(document.body.style.pointerEvents=xt),xt=null)}function St(){wt(),Et.forEach((function(e){return e.__resetIsScrolling()}))}function Tt(e){e.currentTarget===window&&null==xt&&document.body&&(xt=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){Mt&&H(Mt);var e=0;Et.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),Mt=Y(St,e)}(),Et.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function Ct(e,t){Et.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",Tt),Et.push(e)}function Lt(e,t){(Et=Et.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",Tt),Mt&&(H(Mt),wt()))}var Pt,kt,Dt=function(e){return e===window},Rt=function(e){return e.getBoundingClientRect()};function jt(e,t){if(e){if(Dt(e)){var n=window,r=n.innerHeight,a=n.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof a?a:0}}return Rt(e)}return{height:t.serverHeight,width:t.serverWidth}}function It(e,t){if(Dt(t)&&document.documentElement){var n=document.documentElement,r=Rt(e),a=Rt(n);return{top:r.top-a.top,left:r.left-a.left}}var i=Ft(t),o=Rt(e),l=Rt(t);return{top:o.top+i.top-l.top,left:o.left+i.left-l.left}}function Ft(e){return Dt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,r=n.height,a=n.width,i=this._child||de.findDOMNode(this);if(i instanceof Element&&e){var o=It(i,e);this._positionFromTop=o.top,this._positionFromLeft=o.left}var l=jt(e,this.props);r===l.height&&a===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(ie.a)(),this.updatePosition(e),e&&(Ct(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,r=e.scrollElement;r!==n&&null!=r&&null!=n&&(this.updatePosition(n),Lt(this,r),Ct(this,n),this._unregisterResizeListener(r),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(Lt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,r=t.scrollTop,a=t.scrollLeft,i=t.height,o=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:a,scrollTop:r,width:o})}}]),t}(v.PureComponent),g()(Pt,"propTypes",null),kt);g()(Ut,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:zt(),serverHeight:0,serverWidth:0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(367),a=n(252),i=n(640),o=n(253),l=n(641),u=n(642);function s(e,t,n,s){var c,d=Object(r.c)(e,t,n);switch((s=Object(a.b)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Object(i.a)(d,f))||(s.precision=c),Object(o.c)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(c=Object(l.a)(d,Math.max(Math.abs(e),Math.abs(t))))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Object(u.a)(d))||(s.precision=c-2*("%"===s.type))}return Object(o.b)(s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),a=n.n(r),i=n(21),o=n(11),l=n(12),u=n(1211),s=function(){function e(){Object(o.a)(this,e),this.onload=null}var t,n,r;return Object(l.a)(e,[{key:"abort",value:function(){}},{key:"readAsArrayBuffer",value:(r=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.arrayBuffer();case 2:n=e.sent,this.onload&&this.onload({target:{result:n}});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"readAsBinaryString",value:function(e){throw Error("Not implemented")}},{key:"readAsDataURL",value:(n=Object(i.a)(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:n=e.sent,r="data://;base64,".concat(Object(u.atob)(n)),this.onload&&this.onload({target:{result:r}});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"readAsText",value:(t=Object(i.a)(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:n=e.sent,this.onload&&this.onload({target:{result:n}});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return d}));var r=n(13),a=n.n(r),i=n(21),o=n(103),l=n(183),u=n(119);function s(e,t){return c.apply(this,arguments)}function c(){return(c=Object(i.a)(a.a.mark((function e(t,n){var r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,t.next();case 3:if(r=e.sent,i=r.done,o=r.value,!i){e.next=9;break}return t.return(),e.abrupt("return");case 9:if(!n(o)){e.next=12;break}return e.abrupt("return");case 12:e.next=0;break;case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=Object(i.a)(a.a.mark((function e(t){var n,r,i,s,c,d,f,p,h;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=[],i=!0,s=!1,e.prev=4,d=Object(o.a)(t);case 6:return e.next=8,d.next();case 8:return f=e.sent,i=f.done,e.next=12,f.value;case 12:if(p=e.sent,i){e.next=19;break}"string"==typeof(h=p)?r.push(h):n.push(h);case 16:i=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),s=!0,c=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==d.return){e.next=30;break}return e.next=30,d.return();case 30:if(e.prev=30,!s){e.next=33;break}throw c;case 33:return e.finish(30);case 34:return e.finish(25);case 35:if(!(r.length>0)){e.next=38;break}return Object(u.a)(0===n.length),e.abrupt("return",r.join(""));case 38:return e.abrupt("return",l.b.apply(void 0,n));case 39:case"end":return e.stop()}}),e,null,[[4,21,25,35],[26,,30,34]])})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),a=n.n(r),i=n(21),o=n(11),l=n(12),u=n(458),s=function(){function e(t){var n=t.source,r=t.name,a=void 0===r?"unnamed":r,i=t.maxConcurrency,l=void 0===i?1:i,u=t.onMessage,s=t.onDebug,c=void 0===s?function(){}:s;Object(o.a)(this,e),this.source=n,this.name=a,this.maxConcurrency=l,this.onMessage=u,this.onDebug=c,this.jobQueue=[],this.idleQueue=[],this.count=0,this.isDestroyed=!1}var t;return Object(l.a)(e,[{key:"destroy",value:function(){this.idleQueue.forEach((function(e){return e.destroy()})),this.isDestroyed=!0}},{key:"process",value:function(e,t){var n=this;return new Promise((function(r,a){n.jobQueue.push({data:e,jobName:t,resolve:r,reject:a}),n._startQueuedJob()}))}},{key:"_startQueuedJob",value:(t=Object(i.a)(a.a.mark((function e(){var t,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.jobQueue.length){e.next=2;break}return e.abrupt("return");case 2:if(t=this._getAvailableWorker()){e.next=5;break}return e.abrupt("return");case 5:return n=this.jobQueue.shift(),this.onDebug({message:"processing",worker:t.name,job:n.jobName,backlog:this.jobQueue.length}),e.prev=7,e.t0=n,e.next=11,t.process(n.data);case 11:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=18;break;case 15:e.prev=15,e.t2=e.catch(7),n.reject(e.t2);case 18:return e.prev=18,this._onWorkerDone(t),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[7,15,18,21]])}))),function(){return t.apply(this,arguments)})},{key:"_onWorkerDone",value:function(e){this.isDestroyed?e.destroy():(this.idleQueue.push(e),this._startQueuedJob())}},{key:"_getAvailableWorker",value:function(){if(this.idleQueue.length>0)return this.idleQueue.shift();if(this.count1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,o=n||new Set;if(e){if(i(e))o.add(e);else if(i(e.buffer))o.add(e.buffer);else if(ArrayBuffer.isView(e));else if(t&&"object"===Object(r.a)(e))for(var l in e)a(e[l],t,o)}else;return void 0===n?Array.from(o):[]}function i(e){return!!e&&(e instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&e instanceof MessagePort||("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(63);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t){if(!t)return e;var n=Object.assign({},e,t);if("defines"in t&&(n.defines=Object.assign({},e.defines,t.defines)),"modules"in t&&(n.modules=(e.modules||[]).concat(t.modules),t.modules.some((function(e){return"project64"===e.name})))){var i=n.modules.findIndex((function(e){return"project32"===e.name}));i>=0&&n.modules.splice(i,1)}if("inject"in t)if(e.inject){var o=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e);var n=t.color,o=void 0===n?a:n,l=t.intensity,u=void 0===l?1:l;this.id=t.id||"ambient-".concat(i++),this.color=o,this.intensity=u,this.type="ambient"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(24),a=n(26),i=n(47),o=n(38),l=n(48),u=n(163),s=n(291),c=n(292),d=function(e){function t(e){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).call(this,Object.assign({},e,{type:s.a})))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"controller",get:function(){return this._getControllerProps({type:c.b})}}]),t}(u.a);d.displayName="MapView"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(153);function a(e){if(!function(e){return null!==e&&"object"===Object(r.a)(e)}(e))throw new Error("count(): argument not an object");if("function"==typeof e.count)return e.count();if(Number.isFinite(e.size))return e.size;if(Number.isFinite(e.length))return e.length;if(function(e){return null!==e&&"object"===Object(r.a)(e)&&e.constructor===Object}(e))return Object.keys(e).length;throw new Error("count(): argument not a container")}},function(e,t,n){"use strict";var r=n(485),a=n(65),i=n(222),o=n(294),l=n(202);t.a=function(){var e=l.a,t=null,n=Object(a.a)(0),u=l.b,s=Object(a.a)(!0),c=null,d=i.a,f=null;function p(a){var i,o,l,p,h,m=a.length,g=!1,v=new Array(m),y=new Array(m);for(null==c&&(f=d(h=Object(r.a)())),i=0;i<=m;++i){if(!(i=o;--l)f.point(v[l],y[l]);f.lineEnd(),f.areaEnd()}g&&(v[i]=+e(p,i,a),y[i]=+n(p,i,a),f.point(t?+t(p,i,a):v[i],u?+u(p,i,a):y[i]))}if(h)return f=null,h+""||null}function h(){return Object(o.a)().defined(s).curve(d).context(c)}return p.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(a.a)(+n),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"==typeof t?t:Object(a.a)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Object(a.a)(+e),p):t},p.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),u=null,p):n},p.y0=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),p):n},p.y1=function(e){return arguments.length?(u=null==e?null:"function"==typeof e?e:Object(a.a)(+e),p):u},p.lineX0=p.lineY0=function(){return h().x(e).y(n)},p.lineY1=function(){return h().x(e).y(u)},p.lineX1=function(){return h().x(t).y(n)},p.defined=function(e){return arguments.length?(s="function"==typeof e?e:Object(a.a)(!!e),p):s},p.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),p):d},p.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),p):c},p}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r,a=n(37),i=n(11),o=n(12),l=n(2),u=n(111),s=n(166);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=e.json,r=e.buffers,a=void 0===r?[]:r,i=e.images,o=void 0===i?[]:i,l=e.baseUri,s=void 0===l?"":l;return Object(u.a)(n),this.baseUri=s,this.json=n,this.buffers=a,this.images=o,this._resolveTree(this.json,t),this.json}},{key:"_resolveTree",value:function(e){var t=this;e.bufferViews&&(e.bufferViews=e.bufferViews.map((function(e,n){return t._resolveBufferView(e,n)}))),e.images&&(e.images=e.images.map((function(e,n){return t._resolveImage(e,n)}))),e.samplers&&(e.samplers=e.samplers.map((function(e,n){return t._resolveSampler(e,n)}))),e.textures&&(e.textures=e.textures.map((function(e,n){return t._resolveTexture(e,n)}))),e.accessors&&(e.accessors=e.accessors.map((function(e,n){return t._resolveAccessor(e,n)}))),e.materials&&(e.materials=e.materials.map((function(e,n){return t._resolveMaterial(e,n)}))),e.meshes&&(e.meshes=e.meshes.map((function(e,n){return t._resolveMesh(e,n)}))),e.nodes&&(e.nodes=e.nodes.map((function(e,n){return t._resolveNode(e,n)}))),e.skins&&(e.skins=e.skins.map((function(e,n){return t._resolveSkin(e,n)}))),e.scenes&&(e.scenes=e.scenes.map((function(e,n){return t._resolveScene(e,n)}))),void 0!==e.scene&&(e.scene=e.scenes[this.json.scene])}},{key:"getScene",value:function(e){return this._get("scenes",e)}},{key:"getNode",value:function(e){return this._get("nodes",e)}},{key:"getSkin",value:function(e){return this._get("skins",e)}},{key:"getMesh",value:function(e){return this._get("meshes",e)}},{key:"getMaterial",value:function(e){return this._get("materials",e)}},{key:"getAccessor",value:function(e){return this._get("accessors",e)}},{key:"getCamera",value:function(e){return null}},{key:"getTexture",value:function(e){return this._get("textures",e)}},{key:"getSampler",value:function(e){return this._get("samplers",e)}},{key:"getImage",value:function(e){return this._get("images",e)}},{key:"getBufferView",value:function(e){return this._get("bufferViews",e)}},{key:"getBuffer",value:function(e){return this._get("buffers",e)}},{key:"_get",value:function(e,t){if("object"===Object(a.a)(t))return t;var n=this.json[e]&&this.json[e][t];return n||console.warn("glTF file error: Could not find ".concat(e,"[").concat(t,"]")),n}},{key:"_resolveScene",value:function(e,t){var n=this;return e.id=e.id||"scene-".concat(t),e.nodes=(e.nodes||[]).map((function(e){return n.getNode(e)})),e}},{key:"_resolveNode",value:function(e,t){var n=this;return e.id=e.id||"node-".concat(t),e.children&&(e.children=e.children.map((function(e){return n.getNode(e)}))),void 0!==e.mesh&&(e.mesh=this.getMesh(e.mesh)),void 0!==e.camera&&(e.camera=this.getCamera(e.camera)),void 0!==e.skin&&(e.skin=this.getSkin(e.skin)),e}},{key:"_resolveSkin",value:function(e,t){return e.id=e.id||"skin-".concat(t),e.inverseBindMatrices=this.getAccessor(e.inverseBindMatrices),e}},{key:"_resolveMesh",value:function(e,t){var n=this;return e.id=e.id||"mesh-".concat(t),e.primitives&&(e.primitives=e.primitives.map((function(e){var t=(e=d({},e)).attributes;for(var r in e.attributes={},t)e.attributes[r]=n.getAccessor(t[r]);return void 0!==e.indices&&(e.indices=n.getAccessor(e.indices)),void 0!==e.material&&(e.material=n.getMaterial(e.material)),e}))),e}},{key:"_resolveMaterial",value:function(e,t){if(e.id=e.id||"material-".concat(t),e.normalTexture&&(e.normalTexture=d({},e.normalTexture),e.normalTexture.texture=this.getTexture(e.normalTexture.index)),e.occlusionTexture&&(e.occlustionTexture=d({},e.occlustionTexture),e.occlusionTexture.texture=this.getTexture(e.occlusionTexture.index)),e.emissiveTexture&&(e.emmisiveTexture=d({},e.emmisiveTexture),e.emissiveTexture.texture=this.getTexture(e.emissiveTexture.index)),e.pbrMetallicRoughness){e.pbrMetallicRoughness=d({},e.pbrMetallicRoughness);var n=e.pbrMetallicRoughness;n.baseColorTexture&&(n.baseColorTexture=d({},n.baseColorTexture),n.baseColorTexture.texture=this.getTexture(n.baseColorTexture.index)),n.metallicRoughnessTexture&&(n.metallicRoughnessTexture=d({},n.metallicRoughnessTexture),n.metallicRoughnessTexture.texture=this.getTexture(n.metallicRoughnessTexture.index))}return e}},{key:"_resolveAccessor",value:function(e,t){var n,r;if(e.id=e.id||"accessor-".concat(t),void 0!==e.bufferView&&(e.bufferView=this.getBufferView(e.bufferView)),e.bytesPerComponent=(n=e.componentType,p[n]),e.components=(r=e.type,f[r]),e.bytesPerElement=e.bytesPerComponent*e.components,e.bufferView){var a=e.bufferView.buffer,i=Object(s.a)(e,e.bufferView),o=i.ArrayType,l=i.length,u=(e.bufferView.byteOffset||0)+a.byteOffset;e.value=new o(a.arrayBuffer,u,l)}return e}},{key:"_resolveTexture",value:function(e,t){return e.id=e.id||"texture-".concat(t),e.sampler="sampler"in e?this.getSampler(e.sampler):g,e.source=this.getImage(e.source),e}},{key:"_resolveSampler",value:function(e,t){for(var n in e.id=e.id||"sampler-".concat(t),e.parameters={},e){var r=this._enumSamplerParameter(n);void 0!==r&&(e.parameters[r]=e[n])}return e}},{key:"_enumSamplerParameter",value:function(e){return m[e]}},{key:"_resolveImage",value:function(e,t){e.id=e.id||"image-".concat(t),void 0!==e.bufferView&&(e.bufferView=this.getBufferView(e.bufferView));var n=this.images[t];return n&&(e.image=n),e}},{key:"_resolveBufferView",value:function(e,t){e.id=e.id||"bufferView-".concat(t);var n=e.buffer;e.buffer=this.buffers[n];var r=this.buffers[n].arrayBuffer,a=this.buffers[n].byteOffset||0;return"byteOffset"in e&&(a+=e.byteOffset),e.data=new Uint8Array(r,a,e.byteLength),e}},{key:"_resolveCamera",value:function(e,t){return e.id=e.id||"camera-".concat(t),e.perspective,e.orthographic,e}}]),e}();function y(e,t){return(new v).postProcess(e,t)}},function(e,t,n){"use strict";e.exports=a;var r=n(879);function a(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}a.Varint=0,a.Fixed64=1,a.Bytes=2,a.Fixed32=5;var i="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function o(e){return e.type===a.Bytes?e.readVarint()+e.pos:e.pos+1}function l(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function u(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var a=n.pos-1;a>=e;a--)n.buf[a+r]=n.buf[a]}function s(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function A(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}a.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos>3,i=this.pos;this.type=7&r,e(a,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=y(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=A(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=y(this.buf,this.pos)+4294967296*y(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=y(this.buf,this.pos)+4294967296*A(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,a,i=n.buf;if(a=i[n.pos++],r=(112&a)>>4,a<128)return l(e,r,t);if(a=i[n.pos++],r|=(127&a)<<3,a<128)return l(e,r,t);if(a=i[n.pos++],r|=(127&a)<<10,a<128)return l(e,r,t);if(a=i[n.pos++],r|=(127&a)<<17,a<128)return l(e,r,t);if(a=i[n.pos++],r|=(127&a)<<24,a<128)return l(e,r,t);if(a=i[n.pos++],r|=(1&a)<<31,a<128)return l(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[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&&i?function(e,t,n){return i.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){var r="",a=t;for(;a239?4:u>223?3:u>191?2:1;if(a+c>n)break;1===c?u<128&&(s=u):2===c?128==(192&(i=e[a+1]))&&(s=(31&u)<<6|63&i)<=127&&(s=null):3===c?(i=e[a+1],o=e[a+2],128==(192&i)&&128==(192&o)&&((s=(15&u)<<12|(63&i)<<6|63&o)<=2047||s>=55296&&s<=57343)&&(s=null)):4===c&&(i=e[a+1],o=e[a+2],l=e[a+3],128==(192&i)&&128==(192&o)&&128==(192&l)&&((s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&l)<=65535||s>=1114112)&&(s=null)),null===s?(s=65533,c=1):s>65535&&(s-=65536,r+=String.fromCharCode(s>>>10&1023|55296),s=56320|1023&s),r+=String.fromCharCode(s),a+=c}return r}(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!==a.Bytes)return e.push(this.readVarint(t));var n=o(this);for(e=e||[];this.pos127;);else if(t===a.Bytes)this.pos=this.readVarint()+this.pos;else if(t===a.Fixed32)this.pos+=4;else{if(t!==a.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;t268435455||e<0?function(e,t){var n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;if(t.buf[t.pos++]|=n|((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}(r,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,n){for(var r,a,i=0;i55295&&r<57344){if(!a){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):a=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[n++]=239,e[n++]=191,e[n++]=189,a=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&u(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.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 n=0;n=128&&u(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,a.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,s,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,c,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,h,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,v,t)},writeBytesField:function(e,t){this.writeTag(e,a.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,a.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,a.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,a.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,a.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,a.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,a.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,a.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,a.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,a.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},function(e,t,n){"use strict";var r=n(191);t.a=function(e){return"string"==typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(297);function a(e){return function(){this.style.removeProperty(e)}}function i(e,t,n){return function(){this.style.setProperty(e,t,n)}}function o(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function l(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?a:"function"==typeof t?o:i)(e,t,null==n?"":n)):l(this.node(),e)}},function(e,t,n){"use strict";var r=n(475);t.a=function(e,t){if(e=Object(r.a)(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var a=n.createSVGPoint();return a.x=e.clientX,a.y=e.clientY,[(a=a.matrixTransform(t.getScreenCTM().inverse())).x,a.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return W}));var r=n(24),a=n(26),i=n(63),o=n(84),l=n(47),u=n(38),s=n(140),c=n(48),d=n(1900),f=n(655),p=n(108);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var m=function(){function e(t,n){Object(r.a)(this,e),this.opts=n,this.source=t}return Object(a.a)(e,[{key:"getValue",value:function(){var e=this.source.getBuffer(),t=this.getAccessor();if(e)return[e,t];var n=this.source.value,r=t.size,a=n;if(n&&n.length!==r){a=new Float32Array(r);for(var i=t.elementOffset||0,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=this.value,n=e.startOffset,r=void 0===n?0:n,a=e.endOffset;this.buffer.subData({data:this.doublePrecision&&t instanceof Float64Array?Object(v.f)(t,{size:this.size,startIndex:r,endIndex:a}):t.subarray(r,a),offset:r*t.BYTES_PER_ELEMENT+this.byteOffset})}},{key:"allocate",value:function(e){var t=e.numInstances,n=e.copy,r=void 0!==n&&n,a=this.state,i=a.allocatedValue,o=g.a.allocate(i,t+1,{size:this.size,type:this.defaultType,copy:r});this.value=o;var l=this.buffer,u=this.byteOffset;return l.byteLength=0;)t[n+o]=Number.isFinite(e[o])?e[o]:a[o]}return t}},{key:"_areValuesEqual",value:function(e,t){if(!e||!t)return!1;for(var n=this.size,r=0;r=t[1])return e;for(var n=[],r=e.length,a=0,i=0;it[1]?n.push(o):t=[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}return n.splice(a,0,t),n}var L=n(125),P=function(e){function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,t),n=Object(l.a)(this,Object(u.a)(t).call(this,e,a));var i=a.transition,o=void 0!==i&&i,s=a.noAlloc,c=void 0!==s&&s,d=a.update,f=void 0===d?null:d,p=a.accessor,h=void 0===p?null:p,m=a.transform,g=void 0===m?null:m,v=a.startIndices,y=void 0===v?null:v;return Object.assign(n.settings,{transition:o,noAlloc:c,update:f||h&&n._autoUpdater,accessor:h,transform:g}),Object.assign(n.state,{lastExternalBuffer:null,binaryValue:null,binaryAccessor:null,needsUpdate:!0,needsRedraw:!1,updateRanges:T,startIndices:y}),Object.seal(n.settings),Object.seal(n.state),n._validateAttributeUpdaters(),n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"needsUpdate",value:function(){return this.state.needsUpdate}},{key:"needsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clearChangedFlags,n=void 0!==t&&t,r=this.state.needsRedraw;return this.state.needsRedraw=r&&!n,r}},{key:"getUpdateTriggers",value:function(){var e=this.settings.accessor;return[this.id].concat("function"!=typeof e&&e||[])}},{key:"supportsTransition",value:function(){return Boolean(this.settings.transition)}},{key:"getTransitionSetting",value:function(e){var t=this.settings.accessor,n=this.settings.transition;if(!this.supportsTransition())return null;var r=Array.isArray(t)?e[t.find((function(t){return e[t]}))]:e[t];return Object(L.e)(r,n)}},{key:"setNeedsUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.id,t=arguments.length>1?arguments[1]:void 0;if(this.state.needsUpdate=this.state.needsUpdate||e,this.setNeedsRedraw(e),t){var n=t.startRow,r=void 0===n?0:n,a=t.endRow,i=void 0===a?1/0:a;this.state.updateRanges=C(this.state.updateRanges,[r,i])}else this.state.updateRanges=T}},{key:"clearNeedsUpdate",value:function(){this.state.needsUpdate=!1,this.state.updateRanges=S}},{key:"setNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.id;this.state.needsRedraw=this.state.needsRedraw||e}},{key:"update",value:function(e){this.setData(e)}},{key:"allocate",value:function(e){var n=this.state,r=this.settings;return!r.noAlloc&&(!!r.update&&(Object(x.a)(Number.isFinite(e)),Object(s.a)(Object(u.a)(t.prototype),"allocate",this).call(this,{numInstances:e,copy:n.updateRanges!==T}),!0))}},{key:"updateBuffer",value:function(e){var n=e.numInstances,r=e.data,a=e.props,i=e.context;if(!this.needsUpdate())return!1;var l=this.state.updateRanges,c=this.settings,d=c.update,f=c.noAlloc,p=!0;if(d){var h=!0,m=!1,g=void 0;try{for(var v,y=l[Symbol.iterator]();!(h=(v=y.next()).done);h=!0){var b=Object(o.a)(v.value,2),A=b[0],_=b[1];d.call(i,this,{data:r,startRow:A,endRow:_,props:a,numInstances:n})}}catch(e){m=!0,g=e}finally{try{h||null==y.return||y.return()}finally{if(m)throw g}}if(this.value)if(this.constant||this.buffer.byteLength1&&void 0!==arguments[1]?arguments[1]:null,n=this.state,r=this.settings;if(!e)return n.binaryValue=null,n.binaryAccessor=null,!1;if(r.noAlloc)return!1;if(n.binaryValue===e)return this.clearNeedsUpdate(),!0;n.binaryValue=e,this.setNeedsRedraw(),ArrayBuffer.isView(e)&&(e={value:e});var a=r.transform||t!==this.startIndices;if(a){Object(x.a)(ArrayBuffer.isView(e.value),"invalid ".concat(r.accessor));var i=e.size&&e.size!==this.size;return n.binaryAccessor=Object(M.b)(e.value,{size:e.size||this.size,stride:e.stride,offset:e.offset,startIndices:t,nested:i}),!1}return this.clearNeedsUpdate(),this.setData(e),!0}},{key:"getVertexOffset",value:function(e){var t=this.startIndices;return(t?t[e]:e)*this.size}},{key:"getShaderAttributes",value:function(){var e=this.settings.shaderAttributes||Object(i.a)({},this.id,null),n={};for(var r in e)Object.assign(n,Object(s.a)(Object(u.a)(t.prototype),"getShaderAttributes",this).call(this,r,e[r]));return n}},{key:"_autoUpdater",value:function(e,t){var n=t.data,r=t.startRow,a=t.endRow,i=t.props,o=t.numInstances,l=e.settings,u=e.state,s=e.value,c=e.size,d=e.startIndices,f=l.accessor,p=l.transform,h=u.binaryAccessor||("function"==typeof f?f:i[f]);Object(x.a)("function"==typeof h,'accessor "'.concat(f,'" is not a function'));var m=e.getVertexOffset(r),g=Object(M.a)(n,r,a),v=g.iterable,y=g.objectInfo,b=!0,A=!1,_=void 0;try{for(var O,E=v[Symbol.iterator]();!(b=(O=E.next()).done);b=!0){var S=O.value;y.index++;var T=h(S,y);if(p&&(T=p.call(this,T)),d){var C=(d[y.index+1]||o)-d[y.index];if(T&&Array.isArray(T[0])){var L=m,P=!0,k=!1,D=void 0;try{for(var R,j=T[Symbol.iterator]();!(P=(R=j.next()).done);P=!0){var I=R.value;e._normalizeValue(I,s,L),L+=c}}catch(e){k=!0,D=e}finally{try{P||null==j.return||j.return()}finally{if(k)throw D}}}else T&&T.length>c?s.set(T,m):(e._normalizeValue(T,y.target,0),Object(w.a)({target:s,source:y.target,start:m,count:C}));m+=C*c}else e._normalizeValue(T,s,m),m+=c}}catch(e){A=!0,_=e}finally{try{b||null==E.return||E.return()}finally{if(A)throw _}}e.constant=!1}},{key:"_validateAttributeUpdaters",value:function(){var e=this.settings;if(!(e.noAlloc||"function"==typeof e.update))throw new Error("Attribute ".concat(this.id," missing update or accessor"))}},{key:"_checkAttributeArray",value:function(){var e=this.value,t=Math.min(4,this.size);if(e&&e.length>=t){var n=!0;switch(t){case 4:n=n&&Number.isFinite(e[3]);case 3:n=n&&Number.isFinite(e[2]);case 2:n=n&&Number.isFinite(e[1]);case 1:n=n&&Number.isFinite(e[0]);break;default:n=!1}if(!n)throw new Error("Illegal attribute generated for ".concat(this.id))}}},{key:"startIndices",get:function(){return this.state.startIndices},set:function(e){this.state.startIndices=e}}]),t}(E),k=n(104),D=n(1944),R=n(187);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t EPSILON || length(aTo - aCur) > EPSILON;\n vIsTransitioningFlag = isTransitioning ? 1.0 : 0.0;\n\n vNext = getNextValue(aCur, aPrev, aTo);\n gl_Position = vec4(0, 0, 0, 1);\n gl_PointSize = 100.0;\n}\n",fs:"\n#define SHADER_NAME spring-transition-is-transitioning-fragment-shader\n\nvarying float vIsTransitioningFlag;\n\nvoid main(void) {\n if (vIsTransitioningFlag == 0.0) {\n discard;\n }\n gl_FragColor = vec4(1.0);\n}",defines:{ATTRIBUTE_TYPE:r},varyings:["vNext"]})}(n,a,this.framebuffer);var l={byteLength:0,usage:35050};this.buffers=[new p.a(n,l),new p.a(n,l),new p.a(n,l)]}return Object(a.a)(e,[{key:"start",value:function(e,t){var n=this.gl,r=this.buffers,a=this.attribute,i={numInstances:t,attribute:a,fromLength:this.currentLength,fromStartIndices:this.currentStartIndices,getData:e.enter},o=!0,l=!1,u=void 0;try{for(var s,c=r[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var d=s.value;Object(L.f)(V({buffer:d},i))}}catch(e){l=!0,u=e}finally{try{o||null==c.return||c.return()}finally{if(l)throw u}}this.currentStartIndices=a.startIndices,this.currentLength=Object(L.b)(a,t),this.attributeInTransition.update({buffer:r[1],value:a.value}),this.transition.start(e),this.transform.update({elementCount:Math.floor(this.currentLength/a.size),sourceBuffers:{aTo:Object(L.d)(n,a)}})}},{key:"update",value:function(){var e=this.buffers,t=this.transform,n=this.framebuffer,r=this.transition;return!!r.update()&&(t.update({sourceBuffers:{aPrev:e[0],aCur:e[1]},feedbackBuffers:{vNext:e[2]}}),t.run({framebuffer:n,discard:!1,clearRenderTarget:!0,uniforms:{stiffness:r.settings.stiffness,damping:r.settings.damping},parameters:{depthTest:!1,blend:!0,viewport:[0,0,1,1],blendFunc:[1,1],blendEquation:[32776,32776]}}),Object(L.a)(e),this.attributeInTransition.update({buffer:e[1],value:this.attribute.value}),Object(N.c)(n)[0]>0||r.end(),!0)}},{key:"cancel",value:function(){for(this.transition.cancel(),this.transform.delete();this.buffers.length;)this.buffers.pop().delete();this.texture.delete(),this.texture=null,this.framebuffer.delete(),this.framebuffer=null}},{key:"inProgress",get:function(){return this.transition.inProgress}}]),e}()},Y=function(){function e(t,n){var a=n.id,i=n.timeline;Object(r.a)(this,e),this.id=a,this.gl=t,this.timeline=i,this.transitions={},this.needsRedraw=!1,this.numInstances=1,D.a.isSupported(t)?this.isSupported=!0:t&&y.a.warn("WebGL2 not supported by this browser. Transition animation is disabled.")()}return Object(a.a)(e,[{key:"finalize",value:function(){for(var e in this.transitions)this._removeTransition(e)}},{key:"update",value:function(e){var t=e.attributes,n=e.transitions,r=void 0===n?{}:n,a=e.numInstances;if(this.numInstances=a||1,this.isSupported){for(var i in t){var o=t[i],l=o.getTransitionSetting(r);l&&this._updateAttribute(i,o,l)}for(var u in this.transitions){var s=t[u];s&&s.getTransitionSetting(r)||this._removeTransition(u)}}}},{key:"hasAttribute",value:function(e){var t=this.transitions[e];return t&&t.inProgress}},{key:"getAttributes",value:function(){var e={};for(var t in this.transitions){var n=this.transitions[t];n.inProgress&&(e[t]=n.attributeInTransition)}return e}},{key:"run",value:function(){if(!this.isSupported||0===this.numInstances)return!1;for(var e in this.transitions){this.transitions[e].update()&&(this.needsRedraw=!0)}var t=this.needsRedraw;return this.needsRedraw=!1,t}},{key:"_removeTransition",value:function(e){this.transitions[e].cancel(),delete this.transitions[e]}},{key:"_updateAttribute",value:function(e,t,n){var r=this.transitions[e],a=!r||r.type!==n.type;if(a){r&&this._removeTransition(e);var i=H[n.type];i?this.transitions[e]=new i({attribute:t,timeline:this.timeline,gl:this.gl}):(y.a.error("unsupported transition type '".concat(n.type,"'"))(),a=!1)}(a||t.needsRedraw())&&(this.needsRedraw=!0,this.transitions[e].start(n,this.numInstances))}}]),e}(),W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.id,i=void 0===a?"attribute-manager":a,o=n.stats,l=n.timeline;Object(r.a)(this,e),this.id=i,this.gl=t,this.attributes={},this.updateTriggers={},this.accessors={},this.needsRedraw=!0,this.userData={},this.stats=o,this.attributeTransitionManager=new Y(t,{id:"".concat(i,"-transitions"),timeline:l}),Object.seal(this)}return Object(a.a)(e,[{key:"finalize",value:function(){for(var e in this.attributes)this.attributes[e].delete();this.attributeTransitionManager.finalize()}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clearRedrawFlags:!1},t=this.needsRedraw;return this.needsRedraw=this.needsRedraw&&!e.clearRedrawFlags,t&&this.id}},{key:"setNeedsRedraw",value:function(){return this.needsRedraw=!0,this}},{key:"add",value:function(e,t){this._add(e,t)}},{key:"addInstanced",value:function(e,t){this._add(e,t,{instanced:1})}},{key:"remove",value:function(e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.numInstances,r=e.startIndices,a=void 0===r?null:r,i=e.transitions,o=e.props,l=void 0===o?{}:o,u=e.buffers,s=void 0===u?{}:u,c=e.context,d=void 0===c?{}:c,f=!1;for(var p in Object(k.a)("attributeManager.updateStart",this),this.stats&&this.stats.get("Update Attributes").timeStart(),this.attributes){var h=this.attributes[p],m=h.settings.accessor;h.startIndices=a,l[p]&&y.a.removed("props.".concat(p),"data.attributes.".concat(p))(),h.setExternalBuffer(s[p])||h.setBinaryValue(s[m],t.startIndices)||!s[m]&&h.setConstantValue(l[m])||h.needsUpdate()&&(f=!0,this._updateAttribute({attribute:h,numInstances:n,data:t,props:l,context:d})),this.needsRedraw|=h.needsRedraw()}f&&Object(k.a)("attributeManager.updateEnd",this,n),this.stats&&this.stats.get("Update Attributes").timeEnd(),this.attributeTransitionManager.update({attributes:this.attributes,numInstances:n,transitions:i})}},{key:"updateTransition",value:function(){var e=this.attributeTransitionManager.run();return this.needsRedraw=this.needsRedraw||e,e}},{key:"getAttributes",value:function(){return this.attributes}},{key:"getChangedAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clearChangedFlags:!1},t=this.attributes,n=this.attributeTransitionManager,r=Object.assign({},n.getAttributes());for(var a in t){var i=t[a];i.needsRedraw(e)&&!n.hasAttribute(a)&&(r[a]=i)}return r}},{key:"getShaderAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e||(e=this.getAttributes());var n={};for(var r in e)t[r]||Object.assign(n,e[r].getShaderAttributes());return n}},{key:"getAccessors",value:function(){return this.updateTriggers}},{key:"_add",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t&&y.a.warn("AttributeManager.add({updaters}) - updater map no longer supported")();var r={};for(var a in e){var i=e[a],o=this._createAttribute(a,i,n);r[a]=o}Object.assign(this.attributes,r),this._mapUpdateTriggersToAttributes()}},{key:"_createAttribute",value:function(e,t,n){var r={id:e,constant:t.constant||!1,isIndexed:t.isIndexed||t.elements,size:t.elements?1:t.size,value:t.value||null,divisor:t.instanced||n.instanced?1:t.divisor};return new P(this.gl,Object.assign({},t,r))}},{key:"_mapUpdateTriggersToAttributes",value:function(){var e=this,t={},n=function(n){e.attributes[n].getUpdateTriggers().forEach((function(e){t[e]||(t[e]=[]),t[e].push(n)}))};for(var r in this.attributes)n(r);this.updateTriggers=t}},{key:"_invalidateTrigger",value:function(e,t){var n=this.attributes,r=this.updateTriggers[e];return r&&r.forEach((function(e){var r=n[e];r&&r.setNeedsUpdate(r.id,t)})),r}},{key:"_updateAttribute",value:function(e){var t=e.attribute,n=e.numInstances;Object(k.a)("attribute.updateStart",t),t.allocate(n)&&Object(k.a)("attribute.allocate",t,n),t.updateBuffer(e)&&(this.needsRedraw=!0,Object(k.a)("attribute.updateEnd",t,n))}}]),e}()},function(e,t,n){"use strict";var r,a=n(189),i=n(252),o=n(199),l=function(e,t){var n=Object(o.b)(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")},u={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:o.a,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>l(100*e,t),r:l,s:function(e,t){var n=Object(o.b)(e,t);if(!n)return e+"";var a=n[0],i=n[1],l=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=a.length;return l===u?a:l>u?a+new Array(l-u+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+new Array(1-l).join("0")+Object(o.b)(e,Math.max(0,t+l-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)},s=function(e){return e},c=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){var t,n,o=void 0===e.grouping||void 0===e.thousands?s:(t=c.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,i=[],o=0,l=t[0],u=0;a>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(a-=l,a+l)),!((u+=l+1)>r));)l=t[o=(o+1)%t.length];return i.reverse().join(n)}),l=void 0===e.currency?"":e.currency[0]+"",f=void 0===e.currency?"":e.currency[1]+"",p=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?s:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(c.call(e.numerals,String)),m=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=Object(i.b)(e)).fill,n=e.align,a=e.sign,s=e.symbol,c=e.zero,y=e.width,b=e.comma,A=e.precision,_=e.trim,O=e.type;"n"===O?(b=!0,O="g"):u[O]||(void 0===A&&(A=12),_=!0,O="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var E="$"===s?l:"#"===s&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",x="$"===s?f:/[%p]/.test(O)?m:"",M=u[O],w=/[defgprs%]/.test(O);function S(e){var i,l,u,s=E,f=x;if("c"===O)f=M(e)+f,e="";else{var m=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:M(Math.abs(e),A),_&&(e=function(e){e:for(var t,n=e.length,r=1,a=-1;r0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),m&&0==+e&&"+"!==a&&(m=!1),s=(m?"("===a?a:g:"-"===a||"("===a?"":a)+s,f=("s"===O?d[8+r/3]:"")+f+(m&&"("===a?")":""),w)for(i=-1,l=e.length;++i(u=e.charCodeAt(i))||u>57){f=(46===u?p+e.slice(i+1):e.slice(i))+f,e=e.slice(0,i);break}}b&&!c&&(e=o(e,1/0));var S=s.length+e.length+f.length,T=S>1)+s+e+f+T.slice(S);break;default:e=T+s+e+f}return h(e)}return A=void 0===A?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A)),S.toString=function(){return e+""},S}return{format:y,formatPrefix:function(e,t){var n=y(((e=Object(i.b)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(a.a)(t)/3))),o=Math.pow(10,-r),l=d[8+r/3];return function(e){return n(o*e)+l}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return M}));var r=n(647),a=n(367),i=n(1928),o=n(83),l=Object(o.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),u=l,s=(l.range,n(1929)),c=n(1930),d=n(91),f=Object(o.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*d.d-e.getMinutes()*d.c)}),(function(e,t){e.setTime(+e+t*d.b)}),(function(e,t){return(t-e)/d.b}),(function(e){return e.getHours()})),p=f,h=(f.range,Object(o.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*d.d)}),(function(e,t){e.setTime(+e+t*d.c)}),(function(e,t){return(t-e)/d.c}),(function(e){return e.getMinutes()}))),m=h,g=(h.range,n(1931)),v=n(1932),y=n(1948),b=n(90),A=n(79),_=n(460);function O(e){return new Date(e)}function E(e){return e instanceof Date?+e:+new Date(+e)}function x(e,t,n,i,o,l,u,s,c){var d=Object(b.b)(),f=d.invert,p=d.domain,h=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),A=c("%b %d"),M=c("%B"),w=c("%Y"),S=[[u,1,1e3],[u,5,5e3],[u,15,15e3],[u,30,3e4],[l,1,6e4],[l,5,3e5],[l,15,9e5],[l,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function T(r){return(u(r)0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,t);var n=e.id,a=void 0===n?Object(g.c)("column-geometry"):n,l=A(e),u=l.indices,s=l.attributes;return Object(i.a)(this,Object(o.a)(t).call(this,y({},e,{id:a,indices:u,attributes:s})))}return Object(u.a)(t,e),t}(n(164).a);function A(e){var t=e.radius,n=e.height,r=void 0===n?1:n,a=e.nradial,i=void 0===a?10:a,o=e.vertices;m.a.assert(!o||o.length>=i);for(var l=i+1,u=3*l,s=2*Math.PI/i,c=new Uint16Array(3*i*2),d=new Float32Array(3*u),f=new Float32Array(3*u),p=0,h=0;h 0.0 && instanceElevations >= 0.0);\n float dotRadius = radius * coverage * shouldRender;\n\n geometry.normal = project_normal(vec3(rotationMatrix * normals.xy, normals.z));\n geometry.pickingColor = instancePickingColors;\n vec3 centroidPosition = vec3(instancePositions.xy, instancePositions.z + elevation);\n vec3 centroidPosition64Low = instancePositions64Low;\n vec3 pos = vec3(project_size(rotationMatrix * positions.xy * strokeOffsetRatio + offset) * dotRadius, 0.);\n DECKGL_FILTER_SIZE(pos, geometry);\n\n gl_Position = project_position_to_clipspace(centroidPosition, centroidPosition64Low, pos, geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n if (extruded && !isStroke) {\n vec3 lightColor = lighting_getLightColor(color.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n vColor = vec4(lightColor, color.a * opacity);\n } else {\n vColor = vec4(color.rgb, color.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME column-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[s.a,c.a,d.a]})}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceElevations:{size:1,transition:!0,accessor:"getElevation"},instanceFillColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getFillColor",defaultValue:_},instanceLineColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getLineColor",defaultValue:_},instanceStrokeWidths:{size:1,accessor:"getLineWidth",transition:!0}})}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,a=e.changeFlags;Object(l.a)(Object(o.a)(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:a});var i=a.extensionsChanged;if(i){var u=this.context.gl;this.state.model&&this.state.model.delete(),this.setState({model:this._getModel(u)}),this.getAttributeManager().invalidateAll()}(i||n.diskResolution!==r.diskResolution||n.vertices!==r.vertices)&&this._updateGeometry(n)}},{key:"getGeometry",value:function(e,t){var n=new b({radius:1,height:2,vertices:t,nradial:e}),r=0;if(t)for(var a=0;a0}},{key:"delete",value:function(){}},{key:"getData",value:function(){var e=this;return this.isLoaded?this._error?Promise.reject(this._error):this._content:this._loader.then((function(){return e.getData()}))}},{key:"setData",value:function(e,t){var n=this;if(e!==this._data||t){this._data=e;var r=++this._loadCount,a=e;"string"==typeof e&&(a=Object(f.a)(e)),a instanceof Promise?(this.isLoaded=!1,this._loader=a.then((function(e){n._loadCount===r&&(n.isLoaded=!0,n._error=null,n._content=e)})).catch((function(e){n._loadCount===r&&(n.isLoaded=!0,n._error=e||!0)}))):(this.isLoaded=!0,this._error=null,this._content=e);var i=!0,o=!1,l=void 0;try{for(var u,s=this._subscribers[Symbol.iterator]();!(i=(u=s.next()).done);i=!0){u.value.onChange(this.getData())}}catch(e){o=!0,l=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw l}}}}}]),e}(),h=function(){function e(t){var n=t.gl,a=t.protocol;Object(r.a)(this,e),this.protocol=a||"resource://",this._context={gl:n,resourceManager:this},this._resources={},this._consumers={},this._pruneRequest=null}return Object(a.a)(e,[{key:"contains",value:function(e){return!!e.startsWith(this.protocol)||e in this._resources}},{key:"add",value:function(e){var t=e.resourceId,n=e.data,r=e.forceUpdate,a=void 0!==r&&r,i=e.persistent,o=void 0===i||i,l=this._resources[t];l?l.setData(n,a):(l=new p(t,n,this._context),this._resources[t]=l),l.persistent=o}},{key:"remove",value:function(e){var t=this._resources[e];t&&(t.delete(),delete this._resources[e])}},{key:"unsubscribe",value:function(e){var t=e.consumerId,n=this._consumers[t];if(n){for(var r in n){var a=n[r];a.resource&&a.resource.unsubscribe(a)}delete this._consumers[t],this.prune()}}},{key:"subscribe",value:function(e){var t=e.resourceId,n=e.onChange,r=e.consumerId,a=e.requestId,i=void 0===a?"default":a,o=this._resources,l=this.protocol;t.startsWith(l)&&(o[t=t.replace(l,"")]||this.add({resourceId:t,data:null,persistent:!1}));var u=o[t];if(this._track(r,i,u,n),u)return u.getData()}},{key:"prune",value:function(){var e=this;this._pruneRequest||(this._pruneRequest=setTimeout((function(){return e._prune()}),0))}},{key:"finalize",value:function(){for(var e in this._resources)this._resources[e].delete()}},{key:"_track",value:function(e,t,n,r){var a=this._consumers,i=a[e]=a[e]||{},o=i[t]||{};o.resource&&(o.resource.unsubscribe(o),o.resource=null,this.prune()),n&&(i[t]=o,o.onChange=r,o.resource=n,n.subscribe(o))}},{key:"_prune",value:function(){this._pruneRequest=null;for(var e=0,t=Object.keys(this._resources);e1&&void 0!==arguments[1]?arguments[1]:{},a=n.deck,o=n.stats,l=n.viewport,u=n.timeline;Object(r.a)(this,e),this.lastRenderedLayers=[],this.layers=[],this.resourceManager=new h({gl:t,protocol:"deck://"}),this.context=Object.assign({},v,{layerManager:this,gl:t,deck:a,programManager:t&&Object(g.a)(t),stats:o||new d.a({id:"deck.gl"}),viewport:l||new m.a({id:"DEFAULT-INITIAL-VIEWPORT"}),timeline:u||new i.a,resourceManager:this.resourceManager}),this._needsRedraw="Initial render",this._needsUpdate=!1,this._debug=!1,this._onError=null,this.activateViewport=this.activateViewport.bind(this),Object.seal(this)}return Object(a.a)(e,[{key:"finalize",value:function(){this.resourceManager.finalize();var e=!0,t=!1,n=void 0;try{for(var r,a=this.layers[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var i=r.value;this._finalizeLayer(i)}}catch(e){t=!0,n=e}finally{try{e||null==a.return||a.return()}finally{if(t)throw n}}}},{key:"needsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clearRedrawFlags:!1},t=this._needsRedraw;e.clearRedrawFlags&&(this._needsRedraw=!1);var n=!0,r=!1,a=void 0;try{for(var i,o=this.layers[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var l=i.value,u=l.getNeedsRedraw(e);t=t||u}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}return t}},{key:"needsUpdate",value:function(){return this._needsUpdate}},{key:"setNeedsRedraw",value:function(e){this._needsRedraw=this._needsRedraw||e}},{key:"setNeedsUpdate",value:function(e){this._needsUpdate=this._needsUpdate||e}},{key:"getLayers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layerIds,n=void 0===t?null:t;return n?this.layers.filter((function(e){return n.find((function(t){return 0===e.id.indexOf(t)}))})):this.layers}},{key:"setProps",value:function(e){"debug"in e&&(this._debug=e.debug),"userData"in e&&(this.context.userData=e.userData),"layers"in e&&this.setLayers(e.layers),"onError"in e&&(this._onError=e.onError)}},{key:"setLayers",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t||e!==this.lastRenderedLayers;if(Object(s.a)("layerManager.setLayers",this,n,e),!n)return this;this.lastRenderedLayers=e,e=Object(c.b)(e,Boolean);var r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value;u.context=this.context}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return this._updateLayers(this.layers,e),this}},{key:"updateLayers",value:function(){var e=this.needsUpdate();if(e){this.setNeedsRedraw("updating layers: ".concat(e));this.setLayers(this.lastRenderedLayers,!0)}}},{key:"activateViewport",value:function(e){return Object(s.a)("layerManager.activateViewport",this,e),e&&(this.context.viewport=e),this}},{key:"_handleError",value:function(e,t,n){this._onError?this._onError(t,n):u.a.error("error during ".concat(e," of ").concat(y(n)),t)()}},{key:"_updateLayers",value:function(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var s=o.value;n[s.id]?u.a.warn("Multiple old layers with same id ".concat(y(s)))():n[s.id]=s}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var c=[];this._updateSublayersRecursively(t,n,c),this._finalizeOldLayers(n);for(var d=!1,f=0,p=c;f 0.5) {\n float isLine = smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter);\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (filled) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[s.a,c.a]})}},{key:"initializeState",value:function(){this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceRadius:{size:1,transition:!0,accessor:"getRadius",defaultValue:1},instanceFillColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getFillColor",defaultValue:[0,0,0,255]},instanceLineColors:{size:this.props.colorFormat.length,transition:!0,normalized:!0,type:5121,accessor:"getLineColor",defaultValue:[0,0,0,255]},instanceLineWidths:{size:1,transition:!0,accessor:"getLineWidth",defaultValue:1}})}},{key:"updateState",value:function(e){var n=e.props,r=e.oldProps,a=e.changeFlags;if(Object(l.a)(Object(o.a)(t.prototype),"updateState",this).call(this,{props:n,oldProps:r,changeFlags:a}),a.extensionsChanged){var i=this.context.gl;this.state.model&&this.state.model.delete(),this.setState({model:this._getModel(i)}),this.getAttributeManager().invalidateAll()}}},{key:"draw",value:function(e){var t=e.uniforms,n=this.context.viewport,r=this.props,a=r.radiusUnits,i=r.radiusScale,o=r.radiusMinPixels,l=r.radiusMaxPixels,u=r.stroked,s=r.filled,c=r.lineWidthUnits,d=r.lineWidthScale,f=r.lineWidthMinPixels,p=r.lineWidthMaxPixels,h="pixels"===a?n.metersPerPixel:1,m="pixels"===c?n.metersPerPixel:1;this.state.model.setUniforms(t).setUniforms({stroked:u?1:0,filled:s,radiusScale:i*h,radiusMinPixels:o,radiusMaxPixels:l,lineWidthScale:d*m,lineWidthMinPixels:f,lineWidthMaxPixels:p}).draw()}},{key:"_getModel",value:function(e){return new f.a(e,Object.assign(this.getShaders(),{id:this.props.id,geometry:new p.a({drawMode:6,vertexCount:4,attributes:{positions:{size:3,value:new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,1,0])}}}),isInstanced:!0}))}}]),t}(d.a);g.layerName="ScatterplotLayer",g.defaultProps=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1229),a=[{name:"geometry",vs:"\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry;\n",fs:"\n#define SMOOTH_EDGE_RADIUS 0.5\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n"},n(257).a],i=["vs:DECKGL_FILTER_SIZE(inout vec3 size, VertexGeometry geometry)","vs:DECKGL_FILTER_GL_POSITION(inout vec4 position, VertexGeometry geometry)","vs:DECKGL_FILTER_COLOR(inout vec4 color, VertexGeometry geometry)","fs:DECKGL_FILTER_COLOR(inout vec4 color, FragmentGeometry geometry)"];function o(e){var t=r.a.getDefaultProgramManager(e),n=!0,o=!1,l=void 0;try{for(var u,s=a[Symbol.iterator]();!(n=(u=s.next()).done);n=!0){var c=u.value;t.addDefaultModule(c)}}catch(e){o=!0,l=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw l}}var d=!0,f=!1,p=void 0;try{for(var h,m=i[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var g=h.value;t.addShaderHook(g)}}catch(e){f=!0,p=e}finally{try{d||null==m.return||m.return()}finally{if(f)throw p}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(63),a=n(24),i=n(26),o=n(104),l=n(47),u=n(38),s=n(48),c=function(e){function t(){return Object(a.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(s.a)(t,e),t}(n(220).a),d=n(470),f=n(186);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=function(){function e(t){Object(a.a)(this,e),this.gl=t,this.layerFilter=null,this.drawPickingColors=!1,this.drawLayersPass=new c(t),this.pickLayersPass=new d.a(t),this.renderCount=0,this._needsRedraw="Initial render",this.renderBuffers=[],this.lastPostProcessEffect=null,this._onError=null}return Object(i.a)(e,[{key:"setProps",value:function(e){"layerFilter"in e&&this.layerFilter!==e.layerFilter&&(this.layerFilter=e.layerFilter,this._needsRedraw="layerFilter changed"),"drawPickingColors"in e&&this.drawPickingColors!==e.drawPickingColors&&(this.drawPickingColors=e.drawPickingColors,this._needsRedraw="drawPickingColors changed"),"onError"in e&&(this._onError=e.onError)}},{key:"renderLayers",value:function(e){var t=this.drawPickingColors?this.pickLayersPass:this.drawLayersPass;e.layerFilter=this.layerFilter,e.onError=this._onError,e.effects=e.effects||[],e.target=e.target||f.a.getDefaultFramebuffer(this.gl),this._preRender(e.effects,e);var n=this.lastPostProcessEffect?this.renderBuffers[0]:e.target,a=t.render(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{clearRedrawFlags:!1},t=this._needsRedraw;return e.clearRedrawFlags&&(this._needsRedraw=!1),t}},{key:"finalize",value:function(){var e=this.renderBuffers,t=!0,n=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){a.value.delete()}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}e.length=0}},{key:"_preRender",value:function(e,t){var n=null,r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value;u.preRender(this.gl,t),u.postRender&&(n=u)}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}n&&this._resizeRenderBuffers(),this.lastPostProcessEffect=n}},{key:"_resizeRenderBuffers",value:function(){var e=this.renderBuffers;0===e.length&&e.push(new f.a(this.gl),new f.a(this.gl));var t=!0,n=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){a.value.resize()}}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}}},{key:"_postRender",value:function(e,t){var n=this.renderBuffers,r={inputBuffer:n[0],swapBuffer:n[1],target:null},a=!0,i=!1,o=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value;if(s.postRender){if(s===this.lastPostProcessEffect){r.target=t.target,s.postRender(this.gl,r);break}var c=s.postRender(this.gl,r);r.inputBuffer=c,r.swapBuffer=c===n[0]?n[1]:n[0]}}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(13),a=n.n(r),i=n(21),o=n(11),l=n(12),u=n(119),s=new Map;function c(e){return"try {\n importScripts('".concat(e,"');\n} catch (error) {\n console.error(error);\n}")}var d=n(437),f=0;function p(e){var t=e.data;(0,e.resolve)(t)}var h=function(){function e(t){var n=t.source,r=t.name,a=void 0===r?"web-worker-".concat(f++):r,i=t.onMessage;Object(o.a)(this,e);var l=function(e){if(Object(u.a)("string"==typeof e,"worker source"),e.startsWith("url(")&&e.endsWith(")")){var t=e.match(/^url\((.*)\)$/)[1];if(t&&!t.startsWith("http"))return t;e=c(t)}var n=s.get(e);if(!n){var r=new Blob([e],{type:"application/javascript"});n=URL.createObjectURL(r),s.set(e,n)}return n}(n,a);this.worker=new Worker(l,{name:a}),this.name=a,this.onMessage=i||p}var t;return Object(l.a)(e,[{key:"process",value:(t=Object(i.a)(a.a.mark((function e(t){var n=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){n.worker.onmessage=function(t){n.onMessage({worker:n.worker,data:t.data,resolve:e,reject:r})},n.worker.onerror=function(e){var t="".concat(n.name,": WorkerThread.process() failed");e.message&&(t+=" ".concat(e.message," ").concat(e.filename,":").concat(e.lineno,":").concat(e.colno));var a=new Error(t);console.error(e),r(a)};var a=Object(d.a)(t);n.worker.postMessage(t,a)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"destroy",value:function(){this.worker.terminate(),this.worker=null}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(350);function a(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){var n,r=0,a=(e=e.slice()).length-1,i=e[r],o=e[a];return o1&&void 0!==s[1]?s[1]:{},r=n.chunkSize||1048576,a=0;case 3:if(!(a=0)}}).call(this,n(112))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(467),a=n(88),i=n(136);class o extends r.a{get ELEMENTS(){return Object(i.a)(!1),0}copy(e){return Object(i.a)(!1),this}get x(){return this[0]}set x(e){this[0]=Object(a.a)(e)}get y(){return this[1]}set y(e){this[1]=Object(a.a)(e)}len(){return Math.sqrt(this.lengthSquared())}magnitude(){return this.len()}lengthSquared(){let e=0;for(let t=0;t=0&&e=0&&e0?", ":"")+Object(r.e)(this[n],e);return`${e.printTypes?this.constructor.name:""}[${t}]`}equals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e);var a=n.id,i=void 0===a?"pass":a;this.id=i,this.gl=t,this.props={},Object.assign(this.props,n)}return Object(a.a)(e,[{key:"setProps",value:function(e){Object.assign(this.props,e)}},{key:"render",value:function(){}},{key:"cleanup",value:function(){}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(63),a=n(24),i=n(26),o=n(47),l=n(38),u=n(140),s=n(48),c=n(220),d=n(25);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t=0&&e=0&&e1&&void 0!==arguments[1]?arguments[1]:new Array(this.RANK).fill(-0),n=e*this.RANK,r=0;rf&&p>=o&&(c=f),p>=u){d=f;break}}for(var h=c,m=d-c!==a.length,g=m&&t.slice(d),v=0;v0?", ":"")+Object(r.c)(this[n],e);return`${e.printTypes?this.constructor.name:""}[${t}]`}equals(e){if(!e||this.length!==e.length)return!1;for(let t=0;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=e.head||e.getElementsByTagName("head")[0],a=e.createElement("style");a.id="detectElementResize",a.type="text/css",null!=t&&a.setAttribute("nonce",t),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(e.createTextNode(n)),r.appendChild(a)}}(a),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=a.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='

',e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==y&&s(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(o)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",(function(){return r}))}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"a",(function(){return X}));var r=n(2),a=n(11),i=n(12),o=n(25),l=n(1229),u=n(265),s=n(73),c=n(483),d=n(1943),f=n(168),p=n(108),h=n(19),m=n(20),g=n(14),v=n(29),y=n(18),b=n(117),A=null;function _(e,t){var n;return new e((n=e.BYTES_PER_ELEMENT*t,(!A||A.byteLength-1)return"Edge";var r=-1!==n.indexOf("MSIE "),a=-1!==n.indexOf("Trident/");return r||a?"IE":O.b.chrome?"Chrome":O.b.safari?"Safari":O.b.mozInnerScreenX?"Firefox":"Unknown"}var w="elements must be GL.ELEMENT_ARRAY_BUFFER",S=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,t);var i=r.id||r.program&&r.program.id;return(n=Object(h.a)(this,Object(g.a)(t).call(this,e,Object.assign({},r,{id:i})))).buffer=null,n.bufferValue=null,n.isDefaultArray=r.isDefaultArray||!1,n.initialize(r),Object.seal(Object(m.a)(n)),n}return Object(y.a)(t,e),Object(i.a)(t,null,[{key:"isSupported",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!t.constantAttributeZero||(Object(o.g)(e)||"Chrome"===M())}},{key:"getDefaultArray",value:function(e){return e.luma=e.luma||{},e.luma.defaultVertexArray||(e.luma.defaultVertexArray=new t(e,{handle:null,isDefaultArray:!0})),e.luma.defaultVertexArray}},{key:"getMaxAttributes",value:function(e){return t.MAX_ATTRIBUTES=t.MAX_ATTRIBUTES||e.getParameter(34921),t.MAX_ATTRIBUTES}},{key:"setConstant",value:function(e,n,r){switch(r.constructor){case Float32Array:t._setConstantFloatArray(e,n,r);break;case Int32Array:t._setConstantIntArray(e,n,r);break;case Uint32Array:t._setConstantUintArray(e,n,r);break;default:Object(s.a)(!1)}}}]),Object(i.a)(t,[{key:"delete",value:function(){Object(v.a)(Object(g.a)(t.prototype),"delete",this).call(this),this.buffer&&this.buffer.delete()}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.setProps(e)}},{key:"setProps",value:function(e){return this}},{key:"setElementBuffer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return Object(s.a)(!t||34963===t.target,w),this.bind((function(){e.gl.bindBuffer(34963,t?t.handle:null)})),this}},{key:"setBuffer",value:function(e,t,n){if(34963===t.target)return this.setElementBuffer(t,n);var r=n.size,a=n.type,i=n.stride,l=n.offset,u=n.normalized,c=n.integer,d=n.divisor,f=this.gl;return e=Number(e),this.bind((function(){f.bindBuffer(34962,t.handle),c?(Object(s.a)(Object(o.g)(f)),f.vertexAttribIPointer(e,r,a,i,l)):f.vertexAttribPointer(e,r,a,u,i,l),f.enableVertexAttribArray(e),f.vertexAttribDivisor(e,d||0)})),this}},{key:"enable",value:function(e){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=!r&&0===e&&!t.isSupported(this.gl,{constantAttributeZero:!0});return a||(e=Number(e),this.bind((function(){return r?n.gl.enableVertexAttribArray(e):n.gl.disableVertexAttribArray(e)}))),this}},{key:"getConstantBuffer",value:function(e,t,n){var r=this._normalizeConstantArrayValue(t,n),a=r.byteLength*e,i=r.length*e,o=!this.buffer;if(this.buffer=this.buffer||new p.a(this.gl,a),o=(o=o||this.buffer.reallocate(a))||!this._compareConstantArrayValues(r,this.bufferValue)){var l=_(t.constructor,i);!function(e){for(var t=e.target,n=e.source,r=e.start,a=void 0===r?0:r,i=e.count,o=void 0===i?1:i,l=n.length,u=o*l,s=0,c=a;s1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e);var r=n.id||n.program&&n.program.id;this.id=r,this.gl=t,this.configuration=null,this.elements=null,this.elementsAccessor=null,this.values=null,this.accessors=null,this.unused=null,this.drawParams=null,this.buffer=null,this.attributes={},this.vertexArrayObject=new S(t),Object(T.a)(this,"VertexArray","v6.0",L),this.initialize(n),Object.seal(this)}return Object(i.a)(e,[{key:"delete",value:function(){this.buffer&&this.buffer.delete(),this.vertexArrayObject.delete()}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.reset(),this.configuration=null,this.bindOnUse=!1,this.setProps(e)}},{key:"reset",value:function(){this.elements=null,this.elementsAccessor=null;var e=this.vertexArrayObject.MAX_ATTRIBUTES;return this.values=new Array(e).fill(null),this.accessors=new Array(e).fill(null),this.unused={},this.drawParams=null,this}},{key:"setProps",value:function(e){return"program"in e&&(this.configuration=e.program&&e.program.configuration),"configuration"in e&&(this.configuration=e.configuration),"attributes"in e&&this.setAttributes(e.attributes),"elements"in e&&this.setElementBuffer(e.elements),"bindOnUse"in e&&(e=e.bindOnUse),this}},{key:"clearDrawParams",value:function(){this.drawParams=null}},{key:"getDrawParams",value:function(){return this.drawParams=this.drawParams||this._updateDrawParams(),this.drawParams}},{key:"setAttributes",value:function(e){var t=this;return Object.assign(this.attributes,e),this.vertexArrayObject.bind((function(){for(var n in e){var r=e[n];t._setAttribute(n,r)}t.gl.bindBuffer(34962,null)})),this}},{key:"setElementBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.elements=e,this.elementsAccessor=t,this.clearDrawParams(),this.vertexArrayObject.setElementBuffer(e,t),this}},{key:"setBuffer",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(34963===t.target)return this.setElementBuffer(t,n);var r=this._resolveLocationAndAccessor(e,t,t.accessor,n),a=r.location,i=r.accessor;return a>=0&&(this.values[a]=t,this.accessors[a]=i,this.clearDrawParams(),this.vertexArrayObject.setBuffer(a,t,i)),this}},{key:"setConstant",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._resolveLocationAndAccessor(e,t,Object.assign({size:t.length},n)),a=r.location,i=r.accessor;return a>=0&&(t=this.vertexArrayObject._normalizeConstantArrayValue(t,i),this.values[a]=t,this.accessors[a]=i,this.clearDrawParams(),this.vertexArrayObject.enable(a,!1)),this}},{key:"unbindBuffers",value:function(){var e=this;return this.vertexArrayObject.bind((function(){e.elements&&e.vertexArrayObject.setElementBuffer(null),e.buffer=e.buffer||new p.a(e.gl,{accessor:{size:4}});for(var t=0;t0;if(e.isInstanced=e.isInstanced||a,n instanceof p.a){var i=n;if(a){var o=i.getVertexCount(r);e.instanceCount=Math.min(e.instanceCount,o)}else{var l=i.getVertexCount(r);e.vertexCount=Math.min(e.vertexCount,l)}}}}},{key:"setElements",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.h.deprecated("setElements","setElementBuffer")(),this.setElementBuffer(e,t)}}]),e}(),k=n(1940),D=n(232),R=n(200);function j(e,t){for(var n=t.maxElts,r=void 0===n?16:n,a=t.size,i=void 0===a?1:a,o="[",l=0;l0&&(o+=",".concat(l%i==0?" ":"")),o+=I(e[l],t);var u=e.length>r?"...":"]";return"".concat(o).concat(u)}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=1e-16,r=t.isInteger,a=void 0!==r&&r;if(Array.isArray(e)||ArrayBuffer.isView(e))return j(e,t);if(!Number.isFinite(e))return String(e);if(Math.abs(e)100&&Math.abs(e)<1e4)return e.toFixed(0);var i=e.toPrecision(2),o=i.indexOf(".0");return o===i.length-2?i.slice(0,-1):i}function F(e,t,n,a){var i,o,l=e.gl;if(!t)return o={},Object(r.a)(o,a,"null"),Object(r.a)(o,"Format ","N/A"),o;var u,s,c,d="NOT PROVIDED",f="N/A",h="N/A",m="N/A";if(n&&(d=n.type,f=n.size,u=-1!==(d=String(d).replace("Array","")).indexOf("nt")),t instanceof p.a){var g,v,y=t,b=y.getDebugData(),A=b.data;if(s=b.modified?"*":"",c=A,h=(m=y.byteLength)/A.BYTES_PER_ELEMENT/f,n){var _=n.divisor>0;v="".concat(_?"I ":"P "," ").concat(h," (x").concat(f,"=").concat(m," bytes ").concat(Object(D.a)(l,d),")")}else u=!0,v="".concat(m," bytes");return g={},Object(r.a)(g,a,"".concat(s).concat(I(c,{size:f,isInteger:u}))),Object(r.a)(g,"Format ",v),g}return c=t,f=t.length,u=-1!==(d=String(t.constructor.name).replace("Array","")).indexOf("nt"),i={},Object(r.a)(i,a,"".concat(I(c,{size:f,isInteger:u})," (constant)")),Object(r.a)(i,"Format ","".concat(f,"x").concat(d," (constant)")),i}function N(e,t){var n=t.type,r=t.size,a=Object(R.b)(n,r);return a?"".concat(e," (").concat(a.name,")"):e}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.header,n=void 0===t?"Uniforms":t,a=e.program,i=e.uniforms,o=e.undefinedOnly,l=void 0!==o&&o;Object(s.a)(a);var u=".*_.*",c=".*Matrix",d=a._uniformSetters,f={},p=Object.keys(d).sort(),h=0,m=!0,g=!1,v=void 0;try{for(var y,b=p[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var A=y.value;A.match(u)||A.match(c)||z({table:f,header:n,uniforms:i,uniformName:A,undefinedOnly:l})&&h++}}catch(e){g=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(g)throw v}}var _=!0,O=!1,E=void 0;try{for(var x,M=p[Symbol.iterator]();!(_=(x=M.next()).done);_=!0){var w=x.value;w.match(c)&&z({table:f,header:n,uniforms:i,uniformName:w,undefinedOnly:l})&&h++}}catch(e){O=!0,E=e}finally{try{_||null==M.return||M.return()}finally{if(O)throw E}}var S=!0,T=!1,C=void 0;try{for(var L,P=p[Symbol.iterator]();!(S=(L=P.next()).done);S=!0){var k=L.value;f[k]||z({table:f,header:n,uniforms:i,uniformName:k,undefinedOnly:l})&&h++}}catch(e){T=!0,C=e}finally{try{S||null==P.return||P.return()}finally{if(T)throw C}}var D=0,R={};if(!l)for(var j in i){var F=i[j];f[j]||(D++,R[j]=Object(r.a)({Type:"NOT USED: ".concat(F)},n,I(F)))}return{table:f,count:h,unusedTable:R,unusedCount:D}}function z(e){var t,n=e.table,a=e.header,i=e.uniforms,o=e.uniformName,l=e.undefinedOnly,u=i[o],s=function(e){return null!=e}(u);return(!l||!s)&&(n[o]=(t={},Object(r.a)(t,a,s?I(u):"N/A"),Object(r.a)(t,"Uniform Type",s?u:"NOT PROVIDED"),t),!0)}function U(e){var t=e.accessor,n=t.type,r=t.size,a=Object(R.b)(n,r);return a?"".concat(a.name," ").concat(e.name):e.name}var V=n(94),H={POSITION:"positions",NORMAL:"normals",COLOR_0:"colors",TEXCOORD_0:"texCoords",TEXCOORD_1:"texCoords1",TEXCOORD_2:"texCoords2"};function Y(e,t){var n=(t||{}).attributeMap,r=void 0===n?H:n;return r&&r[e]||e}function W(e,t){var n;switch(e){case"texCoords":case"texCoord1":case"texCoord2":case"texCoord3":n="uvs";break;case"vertices":case"positions":case"normals":case"pickingColors":n="vectors"}switch(n){case"vectors":t.size=t.size||3;break;case"uvs":t.size=t.size||2}Object(s.a)(Number.isFinite(t.size),"attribute ".concat(e," needs size"))}var G=function(){},q={},X=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e);var r=n.id,i=void 0===r?Object(u.c)("model"):r;Object(s.a)(Object(o.f)(t)),this.id=i,this.gl=t,this.id=n.id||Object(u.c)("Model"),this.lastLogTime=0,this.initialize(n)}return Object(i.a)(e,[{key:"initialize",value:function(e){this.props={},this.programManager=e.programManager||l.a.getDefaultProgramManager(this.gl),this._programManagerState=-1,this._managedProgram=!1;var t=e.program,n=void 0===t?null:t,r=e.vs,a=e.fs,i=e.modules,o=e.defines,u=e.inject,c=e.varyings,d=e.bufferMode,f=e.transpileToGLSL100;this.programProps={program:n,vs:r,fs:a,modules:i,defines:o,inject:u,varyings:c,bufferMode:d,transpileToGLSL100:f},this.program=null,this.vertexArray=null,this._programDirty=!0,this.userData={},this.needsRedraw=!0,this._attributes={},this.attributes={},this.uniforms={},this.pickable=!0,this._checkProgram(),this.setUniforms(Object.assign({},this.getModuleUniforms(e.moduleSettings))),this.drawMode=void 0!==e.drawMode?e.drawMode:4,this.vertexCount=e.vertexCount||0,this.geometryBuffers={},this.isInstanced=e.isInstanced||e.instanced||e.instanceCount>0,this._setModelProps(e),this.geometry={},Object(s.a)(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount")}},{key:"setProps",value:function(e){this._setModelProps(e)}},{key:"delete",value:function(){for(var e in this._attributes)this._attributes[e]!==this.attributes[e]&&this._attributes[e].delete();this._managedProgram&&(this.programManager.release(this.program),this._managedProgram=!1),this.vertexArray.delete(),this._deleteGeometryBuffers()}},{key:"getDrawMode",value:function(){return this.drawMode}},{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"getInstanceCount",value:function(){return this.instanceCount}},{key:"getAttributes",value:function(){return this.attributes}},{key:"getProgram",value:function(){return this.program}},{key:"setProgram",value:function(e){var t=e.program,n=e.vs,r=e.fs,a=e.modules,i=e.defines,o=e.inject,l=e.varyings,u=e.bufferMode,s=e.transpileToGLSL100;this.programProps={program:t,vs:n,fs:r,modules:a,defines:i,inject:o,varyings:l,bufferMode:u,transpileToGLSL100:s},this._programDirty=!0}},{key:"getUniforms",value:function(){return this.uniforms}},{key:"setDrawMode",value:function(e){return this.drawMode=e,this}},{key:"setVertexCount",value:function(e){return Object(s.a)(Number.isFinite(e)),this.vertexCount=e,this}},{key:"setInstanceCount",value:function(e){return Object(s.a)(Number.isFinite(e)),this.instanceCount=e,this}},{key:"setGeometry",value:function(e){return this.drawMode=e.drawMode,this.vertexCount=e.getVertexCount(),this._deleteGeometryBuffers(),this.geometryBuffers=function(e,t,n){var r={},a=t.indices;for(var i in t.attributes){var o=t.attributes[i],l=Y(i,n);if("indices"===i)a=o;else if(o.constant)r[l]=o.value;else{var u=o.value,c=Object(V.a)({},o);delete c.value,r[l]=[new p.a(e,u),c],W(i,c)}}if(a){var d=a.value||a;Object(s.a)(d instanceof Uint16Array||d instanceof Uint32Array,'attribute array for "indices" must be of integer type');var f={size:1,isIndexed:void 0===a.isIndexed||a.isIndexed};r.indices=[new p.a(e,{data:d,target:34963}),f]}return r}(this.gl,e),this.vertexArray.setAttributes(this.geometryBuffers),this}},{key:"setAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(u.a)(e))return this;var t={};for(var n in e){var r=e[n];t[n]=r.getValue?r.getValue():r}return this.vertexArray.setAttributes(t),this}},{key:"setUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.uniforms,e),this}},{key:"getModuleUniforms",value:function(e){this._checkProgram();var t=this.programManager.getUniforms(this.program);return t?t(e):{}}},{key:"updateModuleSettings",value:function(e){var t=this.getModuleUniforms(e||{});return this.setUniforms(t)}},{key:"clear",value:function(e){return Object(c.a)(this.program.gl,e),this}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._checkProgram();var t,n=e.moduleSettings,r=void 0===n?null:n,a=e.framebuffer,i=e.uniforms,l=void 0===i?{}:i,u=e.attributes,s=void 0===u?{}:u,c=e.transformFeedback,d=void 0===c?this.transformFeedback:c,f=e.parameters,p=void 0===f?{}:f,h=e.vertexArray,m=void 0===h?this.vertexArray:h;this.setAttributes(s),this.updateModuleSettings(r),this.setUniforms(l),o.h.priority>=2&&(t=this._logDrawCallStart(2));var g=this.vertexArray.getDrawParams(),v=this.props,y=v.isIndexed,b=void 0===y?g.isIndexed:y,A=v.indexType,_=void 0===A?g.indexType:A,O=v.indexOffset,E=void 0===O?g.indexOffset:O,x=v.vertexArrayInstanced,M=void 0===x?g.isInstanced:x;M&&!this.isInstanced&&o.h.warn("Found instanced attributes on non-instanced model",this.id)();var w=this.isInstanced,S=this.instanceCount,T=this.props,C=T.onBeforeRender,L=void 0===C?G:C,P=T.onAfterRender,k=void 0===P?G:P;L(),this.program.setUniforms(this.uniforms);var D=this.program.draw(Object.assign(q,e,{logPriority:t,uniforms:null,framebuffer:a,parameters:p,drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),vertexArray:m,transformFeedback:d,isIndexed:b,indexType:_,isInstanced:w,instanceCount:S,offset:b?E:0}));return k(),o.h.priority>=2&&this._logDrawCallEnd(t,m,a),D}},{key:"transform",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.discard,n=void 0===t||t,a=e.feedbackBuffers,i=e.unbindModels,o=void 0===i?[]:i,l=e.parameters;a&&this._setFeedbackBuffers(a),n&&(l=Object.assign({},l,Object(r.a)({},35977,n))),o.forEach((function(e){return e.vertexArray.unbindBuffers()}));try{this.draw(Object.assign({},e,{parameters:l}))}finally{o.forEach((function(e){return e.vertexArray.bindBuffers()}))}return this}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.h.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")(),this.setUniforms(e).draw()}},{key:"_setModelProps",value:function(e){Object.assign(this.props,e),"uniforms"in e&&this.setUniforms(e.uniforms),"pickable"in e&&(this.pickable=e.pickable),"instanceCount"in e&&(this.instanceCount=e.instanceCount),"geometry"in e&&this.setGeometry(e.geometry),"attributes"in e&&this.setAttributes(e.attributes),"_feedbackBuffers"in e&&this._setFeedbackBuffers(e._feedbackBuffers)}},{key:"_checkProgram",value:function(){var e=this._programDirty||this.programManager.stateHash!==this._programManagerState;if(e){var t=this.programProps.program;if(t)this._managedProgram=!1;else{var n=this.programProps,r=n.vs,a=n.fs,i=n.modules,o=n.inject,l=n.defines,u=n.varyings,c=n.bufferMode,f=n.transpileToGLSL100;t=this.programManager.get({vs:r,fs:a,modules:i,inject:o,defines:l,varyings:u,bufferMode:c,transpileToGLSL100:f}),this.program&&this._managedProgram&&this.programManager.release(this.program),this._programManagerState=this.programManager.stateHash,this._managedProgram=!0}Object(s.a)(t instanceof d.a,"Model needs a program"),this._programDirty=!1,t!==this.program&&(this.program=t,this.vertexArray?this.vertexArray.setProps({program:this.program,attributes:this.vertexArray.attributes}):this.vertexArray=new P(this.gl,{program:this.program}),this.setUniforms(Object.assign({},this.getModuleUniforms())))}}},{key:"_deleteGeometryBuffers",value:function(){for(var e in this.geometryBuffers){var t=this.geometryBuffers[e][0]||this.geometryBuffers[e];t instanceof p.a&&t.delete()}}},{key:"_setAnimationProps",value:function(e){if(this.animated){Object(s.a)(e,"Model.draw(): animated uniforms but no animationProps");var t=this._evaluateAnimateUniforms(e);Object.assign(this.uniforms,t)}}},{key:"_setFeedbackBuffers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(u.a)(e))return this;var t=this.program.gl;return this.transformFeedback=this.transformFeedback||new k.a(t,{program:this.program}),this.transformFeedback.setBuffers(e),this}},{key:"_logDrawCallStart",value:function(e){var t=e>3?0:1e4;if(!(Date.now()-this.lastLogTime>> DRAWING MODEL ".concat(this.id),{collapsed:o.h.level<=2})(),e}},{key:"_logDrawCallEnd",value:function(e,t,n,a){if(void 0!==e){var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.vertexArray,n=e.header,r=void 0===n?"Attributes":n;if(!t.configuration)return{};var a={};t.elements&&(a.ELEMENT_ARRAY_BUFFER=F(t,t.elements,null,r));var i=t.values;for(var o in i){var l=t._getAttributeInfo(o);if(l){var u="".concat(o,": ").concat(l.name),s=t.accessors[l.location];s&&(u="".concat(o,": ").concat(N(l.name,s))),a[u]=F(t,i[o],s,r)}}return a}({vertexArray:t,header:"".concat(this.id," attributes"),attributes:this._attributes}),l=B({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n)}),u=l.table,s=l.unusedTable,c=l.unusedCount,d=B({header:"".concat(this.id," uniforms"),program:this.program,uniforms:Object.assign({},this.program.uniforms,n),undefinedOnly:!0}),f=d.table;d.count>0&&o.h.log("MISSING UNIFORMS",Object.keys(f))(),c>0&&o.h.log("UNUSED UNIFORMS",Object.keys(s))();var p=function(e){var t={},n="Accessors for ".concat(e.id),a=!0,i=!1,o=void 0;try{for(var l,u=e.attributeInfos[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){var s=l.value;if(s){var c=U(s);t["in ".concat(c)]=Object(r.a)({},n,JSON.stringify(s.accessor))}}}catch(e){i=!0,o=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw o}}var d=!0,f=!1,p=void 0;try{for(var h,m=e.varyingInfos[Symbol.iterator]();!(d=(h=m.next()).done);d=!0){var g=h.value;if(g){var v=U(g);t["out ".concat(v)]=Object(r.a)({},n,JSON.stringify(g.accessor))}}}catch(e){f=!0,p=e}finally{try{d||null==m.return||m.return()}finally{if(f)throw p}}return t}(this.vertexArray.configuration);o.h.table(e,i)(),o.h.table(e,u)(),o.h.table(e+1,p)(),a&&a.log({logLevel:2,message:"Rendered to ".concat(a.id)}),o.h.groupEnd(2,">>> DRAWING MODEL ".concat(this.id))()}}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=Math.PI/3,a=[0,r,2*r,3*r,4*r,5*r];function i(e){return e[0]}function o(e){return e[1]}var l=function(){var e,t,n,l=0,u=0,s=1,c=1,d=i,f=o;function p(e){var r,a={},i=[],o=e.length;for(r=0;r1){var m=u-p,g=p+(uy*y+b*b&&(p=g+(1&c?1:-1)/2,c=v)}var A=p+"-"+c,_=a[A];_?_.push(l):(i.push(_=a[A]=[l]),_.x=(p+(1&c)/2)*t,_.y=c*n)}return i}function h(e){var t=0,n=0;return a.map((function(r){var a=Math.sin(r)*e,i=-Math.cos(r)*e,o=a-t,l=i-n;return t=a,n=i,[o,l]}))}return p.hexagon=function(t){return"m"+h(null==t?e:+t).join("l")+"z"},p.centers=function(){for(var r=[],a=Math.round(u/n),i=Math.round(l/t),o=a*n;o1&&void 0!==arguments[1]?arguments[1]:"component";e.debug&&l.a.checkPropTypes(s,e,"prop",t)}var f=function(){function e(t){var n=this;if(Object(r.a)(this,e),Object(i.a)(this,"mapboxgl",void 0),Object(i.a)(this,"props",c),Object(i.a)(this,"_map",null),Object(i.a)(this,"width",0),Object(i.a)(this,"height",0),Object(i.a)(this,"_fireLoadEvent",(function(){n.props.onLoad({type:"load",target:n._map})})),!t.mapboxgl)throw new Error("Mapbox not available");this.mapboxgl=t.mapboxgl,e.initialized||(e.initialized=!0,this._checkStyleSheet(this.mapboxgl.version)),this._initialize(t)}return Object(a.a)(e,[{key:"finalize",value:function(){return this._destroy(),this}},{key:"setProps",value:function(e){return this._update(this.props,e),this}},{key:"resize",value:function(){return this._map.resize(),this}},{key:"redraw",value:function(){var e=this._map;e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}},{key:"getMap",value:function(){return this._map}},{key:"_reuse",value:function(t){this._map=e.savedMap;var n=this._map.getContainer(),r=t.container;for(r.classList.add("mapboxgl-map");n.childNodes.length>0;)r.appendChild(n.childNodes[0]);this._map._container=r,e.savedMap=null,t.mapStyle&&this._map.setStyle(t.mapStyle,{diff:!1}),this._map.isStyleLoaded()?this._fireLoadEvent():this._map.once("styledata",this._fireLoadEvent)}},{key:"_create",value:function(t){if(t.reuseMaps&&e.savedMap)this._reuse(t);else{if(t.gl){var n=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=n,t.gl}}var r={container:t.container,center:[0,0],zoom:8,pitch:0,bearing:0,maxZoom:24,style:t.mapStyle,interactive:!1,trackResize:!1,attributionControl:t.attributionControl,preserveDrawingBuffer:t.preserveDrawingBuffer};t.transformRequest&&(r.transformRequest=t.transformRequest),this._map=new this.mapboxgl.Map(Object.assign({},r,t.mapOptions)),this._map.once("load",t.onLoad),this._map.on("error",t.onError)}return this}},{key:"_destroy",value:function(){this._map&&(e.savedMap?this._map.remove():(e.savedMap=this._map,this._map.off("load",this.props.onLoad),this._map.off("error",this.props.onError),this._map.off("styledata",this._fireLoadEvent)),this._map=null)}},{key:"_initialize",value:function(e){var t=this;d(e=Object.assign({},c,e),"Mapbox"),this.mapboxgl.accessToken=e.mapboxApiAccessToken||c.mapboxApiAccessToken,this.mapboxgl.baseApiUrl=e.mapboxApiUrl,this._create(e);var n=e.container;Object.defineProperty(n,"offsetWidth",{get:function(){return t.width}}),Object.defineProperty(n,"clientWidth",{get:function(){return t.width}}),Object.defineProperty(n,"offsetHeight",{get:function(){return t.height}}),Object.defineProperty(n,"clientHeight",{get:function(){return t.height}});var r=this._map.getCanvas();r&&(r.style.outline="none"),this._updateMapViewport({},e),this._updateMapSize({},e),this.props=e}},{key:"_update",value:function(e,t){if(this._map){d(t=Object.assign({},this.props,t),"Mapbox");var n=this._updateMapViewport(e,t),r=this._updateMapSize(e,t);t.asyncRender||!n&&!r||this.redraw(),this.props=t}}},{key:"_updateMapSize",value:function(e,t){var n=e.width!==t.width||e.height!==t.height;return n&&(this.width=t.width,this.height=t.height,this.resize()),n}},{key:"_updateMapViewport",value:function(e,t){var n=this._getViewState(e),r=this._getViewState(t),a=r.latitude!==n.latitude||r.longitude!==n.longitude||r.zoom!==n.zoom||r.pitch!==n.pitch||r.bearing!==n.bearing||r.altitude!==n.altitude;return a&&(this._map.jumpTo(this._viewStateToMapboxProps(r)),r.altitude!==n.altitude&&(this._map.transform.altitude=r.altitude)),a}},{key:"_getViewState",value:function(e){var t=e.viewState||e,n=t.longitude,r=t.latitude,a=t.zoom,i=t.pitch,o=void 0===i?0:i,l=t.bearing,u=void 0===l?0:l,s=t.altitude;return{longitude:n,latitude:r,zoom:a,pitch:o,bearing:u,altitude:void 0===s?1.5:s}}},{key:"_checkStyleSheet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.47.0";if(void 0!==u.a)try{var t=u.a.createElement("div");t.className="mapboxgl-map",t.style.display="none",u.a.body.appendChild(t);var n="static"!==window.getComputedStyle(t).position;if(!n){var r=u.a.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href","https://api.tiles.mapbox.com/mapbox-gl-js/v".concat(e,"/mapbox-gl.css")),u.a.head.appendChild(r)}}catch(e){}}},{key:"_viewStateToMapboxProps",value:function(e){return{center:[e.longitude,e.latitude],zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}}}]),e}();Object(i.a)(f,"initialized",!1),Object(i.a)(f,"propTypes",s),Object(i.a)(f,"defaultProps",c),Object(i.a)(f,"savedMap",null)}).call(this,n(112))},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"shadertools: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(28),a=n(25),i=n(173),o=n(73);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.framebuffer,r=void 0===n?null:n,i=t.color,l=void 0===i?null:i,u=t.depth,s=void 0===u?null:u,c=t.stencil,d=void 0===c?null:c,f={};r&&(f.framebuffer=r);var p=0;l&&(p|=16384,!0!==l&&(f.clearColor=l)),s&&(p|=256,!0!==s&&(f.clearDepth=s)),d&&(p|=1024,!0!==s&&(f.clearStencil=s)),Object(o.a)(0!==p,"clear: bad arguments"),Object(a.l)(e,f,(function(){e.clear(p)}))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.framebuffer,l=void 0===n?null:n,u=t.buffer,s=void 0===u?6144:u,c=t.drawBuffer,d=void 0===c?0:c,f=t.value,p=void 0===f?[0,0,0,0]:f;Object(i.a)(e),Object(a.l)(e,{framebuffer:l},(function(){switch(s){case 6144:switch(p.constructor){case Int32Array:e.clearBufferiv(s,d,p);break;case Uint32Array:e.clearBufferuiv(s,d,p);break;case Float32Array:default:e.clearBufferfv(s,d,p)}break;case 6145:e.clearBufferfv(6145,0,[p]);break;case 6146:e.clearBufferiv(6146,0,[p]);break;case 34041:var t=Object(r.a)(p,2),n=t[0],a=t[1];e.clearBufferfi(34041,0,n,a);break;default:Object(o.a)(!1,"clear: bad arguments")}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return p}));var r,a=n(2),i=n(192),o=n(482),l=(r={},Object(a.a)(r,i.b,"#ifdef MODULE_LOGDEPTH\n logdepth_adjustPosition(gl_Position);\n#endif\n"),Object(a.a)(r,i.a,"#ifdef MODULE_MATERIAL\n gl_FragColor = material_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LIGHTING\n gl_FragColor = lighting_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_FOG\n gl_FragColor = fog_filterColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_PICKING\n gl_FragColor = picking_filterHighlightColor(gl_FragColor);\n gl_FragColor = picking_filterPickingColor(gl_FragColor);\n#endif\n\n#ifdef MODULE_LOGDEPTH\n logdepth_setFragDepth();\n#endif\n"),r),u="__LUMA_INJECT_DECLARATIONS__",s=/void\s+main\s*\([^)]*\)\s*\{\n?/,c=/}\n?[^{}]*$/,d=[];function f(e,t,n,r){var a=t===i.b,o=function(t){var r=n[t];r.sort((function(e,t){return e.order-t.order})),d.length=r.length;for(var i=0,o=r.length;i1),e.forEach((function(e){for(var n in e)t[n]=t[n]?"".concat(t[n],"\n").concat(e[n]):e[n]})),t}},function(e,t,n){"use strict";var r=Math.PI,a=2*r,i=a-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function l(){return new o}o.prototype=l.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(e,t,n,a,i){e=+e,t=+t,n=+n,a=+a,i=+i;var o=this._x1,l=this._y1,u=n-e,s=a-t,c=o-e,d=l-t,f=c*c+d*d;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(d*u-s*c)>1e-6&&i){var p=n-o,h=a-l,m=u*u+s*s,g=p*p+h*h,v=Math.sqrt(m),y=Math.sqrt(f),b=i*Math.tan((r-Math.acos((m+f-g)/(2*v*y)))/2),A=b/y,_=b/v;Math.abs(A-1)>1e-6&&(this._+="L"+(e+A*c)+","+(t+A*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>c*h)+","+(this._x1=e+_*u)+","+(this._y1=t+_*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,o,l,u){e=+e,t=+t,u=!!u;var s=(n=+n)*Math.cos(o),c=n*Math.sin(o),d=e+s,f=t+c,p=1^u,h=u?o-l:l-o;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),n&&(h<0&&(h=h%a+a),h>i?this._+="A"+n+","+n+",0,1,"+p+","+(e-s)+","+(t-c)+"A"+n+","+n+",0,1,"+p+","+(this._x1=d)+","+(this._y1=f):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+p+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.a=l},,,,,,,,,,,function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t._updateProperty=t.forwardTo=t._actionFor=t.unwrap=t.isForwardAction=t.wrapTo=t.getActionForwardAddress=t.ADDRESS_PREFIX=t.FORWARD=void 0;var a=r(n(4)),i=r(n(667));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1?new f._JSONPath(m.jsonpath).setFieldAtPath(r,i):m.jsonpath&&1===m.jsonpath.length&&(r=i);else for(g=0;g=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1363);t.default=function(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")},t.getCoords=function(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},t.containsNumber=function e(t){if(t.length>1&&r.isNumber(t[0])&&r.isNumber(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return e(t[0]);throw new Error("coordinates must only contain numbers")},t.geojsonType=function(e,t,n){if(!t||!n)throw new Error("type and name required");if(!e||e.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.type)},t.featureOf=function(e,t,n){if(!e)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!e||"Feature"!==e.type||!e.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!e.geometry||e.geometry.type!==t)throw new Error("Invalid input to "+n+": must be a "+t+", given "+e.geometry.type)},t.collectionOf=function(e,t,n){if(!e)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!e||"FeatureCollection"!==e.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0,a=e.features;r1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(t).reduce((function(e,t){return e[t[0]]=t[1],e}),x(e))},t.default=void 0;var a=r(n(80)),i=r(n(36)),o=r(n(4)),l=r(n(5)),u=r(n(7)),s=n(98),c=n(39),d=n(113),f=n(85),p=n(380),h=n(208),m=n(75),g=n(835),v=n(276);function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){var s=O(r,u[0]);return n.push({defaultName:s,pair:{lat:{fieldIdx:i,value:e[i].name},lng:{fieldIdx:l,value:e[l].name}},suffix:u}),{v:n}}}();if("object"===(0,a.default)(s))return s.v}}}catch(e){l.e(e)}finally{l.f()}return n}),[])}function x(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)}var M=function(){function e(t){var n=t.info,r=void 0===n?{}:n,a=t.data,i=t.color,o=t.metadata,u=t.supportedFilterTypes;(0,l.default)(this,e);var s=(0,v.createDataContainer)(a.rows,{fields:a.fields}),d=_({id:(0,f.generateHashId)(4),label:"new dataset"},r||{}),h=d.id,g=a.fields.map((function(e,t){return _(_({},e),{},{fieldIdx:t,id:e.name,displayName:e.displayName||e.name,valueAccessor:m.maybeToDate.bind(null,e.type===c.ALL_FIELD_TYPES.timestamp,t,e.format,s)})})),y=s.getPlainIndex();this.id=d.id,this.label=d.label,this.color=i,this.metadata=_(_({},o),{},{id:d.id,label:d.label}),this.dataContainer=s,this.allIndexes=y,this.filteredIndex=y,this.filteredIndexForDomain=y,this.fieldPairs=E(g),this.fields=g,this.gpuFilter=(0,p.getGpuFilterProps)([],h,g),u&&(this.supportedFilterTypes=u)}return(0,u.default)(e,[{key:"getColumnField",value:function(e){var t=this.fields.find((function(t){return t.name===e}));return this._assetField(e,t),t}},{key:"getColumnFieldIdx",value:function(e){var t=this.fields.findIndex((function(t){return t.name===e}));return this._assetField(e,Boolean(t>-1)),t}},{key:"getValue",value:function(e,t){var n=this.getColumnField(e);return n?n.valueAccessor({index:t}):null}},{key:"updateColumnField",value:function(e,t){this.fields=Object.assign((0,i.default)(this.fields),(0,o.default)({},e,t))}},{key:"getColumnFilterProps",value:function(e){var t=this.getColumnFieldIdx(e);if(t<0)return null;var n=this.fields[t];if(n.hasOwnProperty("filterProps"))return n.filterProps;var r=this.getColumnFilterDomain(n);if(!r)return null;var a=(0,h.getFilterProps)(n,r),i=_(_({},n),{},{filterProps:a});return this.updateColumnField(t,i),a}},{key:"filterTable",value:function(e,t,n){var r=this,a=this.dataContainer,i=this.id,l=this.filterRecord,u=this.fields,s=(0,h.getFilterRecord)(i,e,n||{});if(this.filterRecord=s,this.gpuFilter=(0,p.getGpuFilterProps)(e,i,u),!e.length)return this.filteredIndex=this.allIndexes,this.filteredIndexForDomain=this.allIndexes,this;this.changedFilters=(0,h.diffFilters)(s,l);var c=Boolean(this.changedFilters.dynamicDomain),d=Boolean(this.changedFilters.cpu),f={};if(c||d){var m=c?s.dynamicDomain:null,g=d?s.cpu:null,v=e.reduce((function(e,n){var i=(0,p.getDatasetFieldIndexForFilter)(r.id,n),l=-1!==i?u[i]:null;return _(_({},e),{},(0,o.default)({},n.id,(0,h.getFilterFunction)(l,r.id,n,t,a)))}),{});f=(0,h.filterDataByFilterTypes)({dynamicDomainFilters:m,cpuFilters:g,filterFuncs:v},a)}return this.filteredIndex=f.filteredIndex||this.filteredIndex,this.filteredIndexForDomain=f.filteredIndexForDomain||this.filteredIndexForDomain,this}},{key:"filterTableCPU",value:function(e,t){var n={cpuOnly:!0,ignoreDomain:!0};if(!e.length)return this.filteredIdxCPU=this.allIndexes,this.filterRecordCPU=(0,h.getFilterRecord)(this.id,e,n),this;if(!e.find((function(e){return e.gpu})))return this.filteredIdxCPU=this.filteredIndex,this.filterRecordCPU=(0,h.getFilterRecord)(this.id,e,n),this;var r=x(this);r.filterRecord=this.filterRecordCPU,r.filteredIndex=this.filteredIdxCPU||[];var a=r.filterTable(e,t,n);return this.filteredIdxCPU=a.filteredIndex,this.filterRecordCPU=a.filterRecord,this}},{key:"getColumnFilterDomain",value:function(e){var t=this.dataContainer,n=e.valueAccessor;switch(e.type){case c.ALL_FIELD_TYPES.real:case c.ALL_FIELD_TYPES.integer:return(0,h.getNumericFieldDomain)(t,n);case c.ALL_FIELD_TYPES.boolean:return{domain:[!0,!1]};case c.ALL_FIELD_TYPES.string:case c.ALL_FIELD_TYPES.date:return{domain:(0,g.getOrdinalDomain)(t,n)};case c.ALL_FIELD_TYPES.timestamp:return(0,h.getTimestampFieldDomain)(t,n);default:return{domain:(0,g.getOrdinalDomain)(t,n)}}}},{key:"getColumnLayerDomain",value:function(e,t){var n=this.dataContainer,r=this.filteredIndexForDomain;if(!c.SCALE_TYPES[t])return s.console.error("scale type ".concat(t," not supported")),null;var a=e.valueAccessor,i=function(e){return a({index:e})},o=(0,m.getSortingFunction)(e.type);switch(t){case c.SCALE_TYPES.ordinal:case c.SCALE_TYPES.point:return(0,g.getOrdinalDomain)(n,a);case c.SCALE_TYPES.quantile:return(0,g.getQuantileDomain)(r,i,o);case c.SCALE_TYPES.log:return(0,g.getLogDomain)(r,i);case c.SCALE_TYPES.quantize:case c.SCALE_TYPES.linear:case c.SCALE_TYPES.sqrt:default:return(0,g.getLinearDomain)(r,i)}}},{key:"_assetField",value:function(e,t){t||s.console.error("".concat(e," doesnt exist in dataset ").concat(this.id))}}]),e}();t.default=M},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.findDefaultLayer=function(e,t){if(!e)return[];return Object.keys(t).reduce((function(n,r){var a="function"==typeof t[r].findDefaultLayerProps?t[r].findDefaultLayerProps(e,n):{props:[]},i=Array.isArray(a)?a:a.props||[];return(a.foundLayers||n).concat(i.map((function(t){return u(u({},t),{},{type:r,dataId:e.id})})))}),[]).map((function(n){var r=new t[n.type](n);return"function"==typeof r.setInitialLayerConfig&&e.dataContainer?r.setInitialLayerConfig(e):r}))},t.calculateLayerData=function(e,t,n){if(!e.type||!e.hasAllColumns()||!e.config.dataId)return{layer:e,layerData:{}};return{layerData:e.formatLayerData(t.datasets,n),layer:e}},t.getLayerHoverProp=function(e){var t=e.interactionConfig,n=e.hoverInfo,r=e.layers,a=e.layersToRender,i=e.datasets;if(t.tooltip.enabled&&n&&n.picked){var o=n.object,l=n.layer,u=r[l.props.idx];if(o&&u&&u.getHoverData&&a[u.id]){var s=u.config.dataId;if(!s)return null;var c=i[s],d=c.dataContainer,f=c.fields,p=u.getHoverData(o,d,f),h=t.tooltip.config.fieldsToShow[s];return{data:p,fields:f,fieldsToShow:h,layer:u}}}return null},t.renderDeckGlLayer=function(e,t,n){var r=e.datasets,a=e.layers,i=e.layerData,o=e.hoverInfo,l=e.clicked,u=e.mapState,s=e.interactionConfig,c=e.animationConfig,d=e.mapLayers,f=a[n],p=i[n],h=(r[f.config.dataId]||{}).gpuFilter,m=l||o,g=!d||d&&d[f.id];return f.renderLayer({data:p,gpuFilter:h,idx:n,interactionConfig:s,layerCallbacks:t,mapState:u,animationConfig:c,objectHovered:m,visible:g})},t.isLayerRenderable=s,t.isLayerVisible=c,t.prepareLayersForDeck=function(e,t){return e.reduce((function(e,n,r){return u(u({},e),{},(0,a.default)({},n.id,s(n,t[r])&&n.overlayType===i.OVERLAY_TYPE.deckgl))}),{})},t.prepareLayersToRender=function(e,t,n){return e.reduce((function(e,r,i){return u(u({},e),{},(0,a.default)({},r.id,s(r,t[i])&&c(r,n)))}),{})};var a=r(n(4)),i=n(143),o=n(39);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0)return!0;return!1};var a=r(n(80))}).call(this,n(112))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.mergeFilters=_,t.createLayerFromConfig=function(e,t){var n=D(e.datasets,e.layerClasses,[t]),r=n.validated;if(n.failed.length||!r.length)return null;var a=r[0];return a.updateLayerDomain(e.datasets),a},t.serializeLayer=function(e){var t=g.visStateSchema[g.CURRENT_VERSION].save({layers:[e],layerOrder:[0]}).visState;return g.visStateSchema[g.CURRENT_VERSION].load(t).visState.layers[0]},t.mergeLayers=O,t.insertLayerAtRightOrder=E,t.mergeInteractions=x,t.mergeSplitMaps=M,t.mergeInteractionTooltipConfig=w,t.mergeLayerBlending=S,t.mergeAnimationConfig=T,t.validateSavedLayerColumns=C,t.validateColumn=L,t.validateSavedTextLabel=P,t.validateSavedVisualChannels=k,t.validateLayersByDatasets=D,t.validateLayerWithData=R,t.isValidMerger=function(e){return(0,d.isObject)(e)&&"function"==typeof e.merge&&"string"==typeof e.prop},t.VIS_STATE_MERGERS=void 0;var a=r(n(55)),i=r(n(72)),o=r(n(4)),l=r(n(36)),u=r(n(132)),s=r(n(207)),c=r(n(854)),d=n(85),f=n(208),p=n(855),h=n(380),m=n(39),g=n(327);function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:[],i=n.map((function(t){return e[t].id})),o=e,l=v(t);try{for(l.s();!(r=l.n()).done;){var u=r.value,s=a.indexOf(u.id),c=0;if(s>0){for(var f=s+1,p=null;f-- >0&&null===p;){var h=a[s-1];p=i.indexOf(h)}p>-1&&(c=p+1)}i=(0,d.arrayInsert)(i,c,u.id),o=o.concat(u)}}catch(e){l.e(e)}finally{l.f()}var m=i.map((function(e){return o.findIndex((function(t){return t.id===e}))}));return{newLayerOrder:m,newLayers:o}}function x(e,t){var n={},r={};return t&&Object.keys(t).forEach((function(a){if(e.interactionConfig[a]){var o=e.interactionConfig[a].config,l=t[a]||{},u=l.enabled,c=(0,i.default)(l,["enabled"]),d=c;if("tooltip"===a){var f=w(e,c),p=f.mergedTooltip,h=f.unmergedTooltip;d={fieldsToShow:A(A({},o.fieldsToShow),p)},Object.keys(h).length&&(r.tooltip={fieldsToShow:h,enabled:u})}n[a]=A(A({},e.interactionConfig[a]),{},{enabled:u},o?{config:(0,s.default)(A(A({},o),d),Object.keys(o))}:{})}})),A(A({},e),{},{interactionConfig:A(A({},e.interactionConfig),n),interactionToBeMerged:r})}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,l.default)(e.splitMaps),r=[];return t.forEach((function(t,i){Object.entries(t.layers).forEach((function(t){var l=(0,a.default)(t,2),u=l[0],s=l[1],c=e.layers.find((function(e){return e.id===u}))?n:r;c[i]=c[i]||{layers:c===n?(0,p.getInitialMapLayersForSplitMap)(e.layers):[]},c[i].layers=A(A({},c[i].layers),{},(0,o.default)({},u,s))}))})),A(A({},e),{},{splitMaps:n,splitMapsToBeMerged:[].concat((0,l.default)(e.splitMapsToBeMerged),r)})}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r={};if(!t.fieldsToShow||!Object.keys(t.fieldsToShow).length)return{mergedTooltip:r,unmergedTooltip:n};for(var a in t.fieldsToShow)e.datasets[a]?function(){var n=e.datasets[a].fields.map((function(e){return e.name})),i=t.fieldsToShow[a].filter((function(e){return n.includes(e.name)}));r[a]=i}():n[a]=t.fieldsToShow[a];return{mergedTooltip:r,unmergedTooltip:n}}function S(e,t){return t&&m.LAYER_BLENDINGS[t]?A(A({},e),{},{layerBlending:t}):e}function T(e,t){return t&&t.currentTime?A(A({},e),{},{animationConfig:A(A(A({},e.animationConfig),t),{},{domain:null})}):e}function C(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r={},a=function(){var a=o[i];r[a]=A({},n[a]);var l=t[a];if(l){var u=e.findIndex((function(e){return e.name===l}));u>-1&&(r[a].fieldIdx=u,r[a].value=l)}},i=0,o=Object.keys(n);i3&&void 0!==arguments[3]?arguments[3]:{},o=t.type;if(!o||!n.hasOwnProperty(o)||!t.config)return null;var l=new n[o]({id:t.id,dataId:a,label:t.config.label,color:t.config.color,isVisible:t.config.isVisible,hidden:t.config.hidden,highlightColor:t.config.highlightColor}),u=l.getLayerColumns();if(Object.keys(u).length){var s=C(r,t.config.columns,u);if(s)l.updateLayerConfig({columns:s});else if(!i.allowEmptyColumn)return null}l=k(r,l,t);var c=t.config.textLabel&&l.config.textLabel?P(r,l.config.textLabel,t.config.textLabel):l.config.textLabel,d=l.copyLayerConfig(l.config.visConfig,t.config.visConfig||{},{shallowCopy:["colorRange","strokeColorRange"]});return l.updateLayerConfig({visConfig:d,textLabel:c}),l}var j=[{merge:O,prop:"layers",toMergeProp:"layerToBeMerged"},{merge:_,prop:"filters",toMergeProp:"filterToBeMerged"},{merge:x,prop:"interactionConfig",toMergeProp:"interactionToBeMerged"},{merge:S,prop:"layerBlending"},{merge:M,prop:"splitMaps",toMergeProp:"splitMapsToBeMerged"},{merge:T,prop:"animationConfig"}];t.VIS_STATE_MERGERS=j},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getValueFunc=g,t.getScaleFunctor=v,t.getGetValue=b,t.getDimensionSortedBins=A,t.getDimensionValueDomain=_,t.getDimensionScale=O,t.getAggregatedData=x,t.default=t.defaultDimensions=t.defaultElevationDimension=t.defaultColorDimension=t.defaultAggregation=t.DECK_AGGREGATION_MAP=void 0;var a,i=r(n(5)),o=r(n(7)),l=r(n(80)),u=r(n(4)),s=n(218),c=n(61),d=n(860),f=n(39);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.hexagons?Object.assign({data:e.hexagons},e):e.layerData?Object.assign({data:e.layerData},e):e}function x(e,t,n,r){var a=(0,t[e.triggers.aggregator.prop])(t,r);this.setState({layerData:E(a)})}t.DECK_AGGREGATION_MAP=m;var M={key:"position",updateSteps:[{key:"aggregate",triggers:{cellSize:{prop:"cellSize"},position:{prop:"getPosition",updateTrigger:"getPosition"},aggregator:{prop:"gridAggregator"}},updater:x}]};function w(e,t,n){return function(n){var r=e.sortedBins,a=e.scaleFunc,i=r.binMap[n.index];if(i&&0===i.counts)return t.nullValue;var o=i&&i.value,l=a.domain();return o>=l[0]&&o<=l[l.length-1]?a(o):t.nullValue}}t.defaultAggregation=M;var S={key:"fillColor",accessor:"getFillColor",getPickingInfo:function(e,t){var n=e.sortedBins;return{colorValue:n.binMap[t.index]&&n.binMap[t.index].value}},nullValue:[0,0,0,0],updateSteps:[{key:"getValue",triggers:{value:{prop:"getColorValue",updateTrigger:"getColorValue"},weight:{prop:"getColorWeight",updateTrigger:"getColorWeight"},aggregation:{prop:"colorAggregation"}},updater:b},{key:"getBins",triggers:{_filterData:{prop:"_filterData",updateTrigger:"_filterData"}},updater:A},{key:"getDomain",triggers:{lowerPercentile:{prop:"lowerPercentile"},upperPercentile:{prop:"upperPercentile"},scaleType:{prop:"colorScaleType"}},updater:_},{key:"getScaleFunc",triggers:{domain:{prop:"colorDomain"},range:{prop:"colorRange"},scaleType:{prop:"colorScaleType"}},onSet:{props:"onSetColorDomain"},updater:O}],getSubLayerAccessor:w};t.defaultColorDimension=S;var T={key:"elevation",accessor:"getElevation",getPickingInfo:function(e,t){var n=e.sortedBins;return{elevationValue:n.binMap[t.index]&&n.binMap[t.index].value}},nullValue:-1,updateSteps:[{key:"getValue",triggers:{value:{prop:"getElevationValue",updateTrigger:"getElevationValue"},weight:{prop:"getElevationWeight",updateTrigger:"getElevationWeight"},aggregation:{prop:"elevationAggregation"}},updater:b},{key:"getBins",triggers:{_filterData:{prop:"_filterData",updateTrigger:"_filterData"}},updater:A},{key:"getDomain",triggers:{lowerPercentile:{prop:"elevationLowerPercentile"},upperPercentile:{prop:"elevationUpperPercentile"},scaleType:{prop:"elevationScaleType"}},updater:_},{key:"getScaleFunc",triggers:{domain:{prop:"elevationDomain"},range:{prop:"elevationRange"},scaleType:{prop:"elevationScaleType"}},onSet:{props:"onSetElevationDomain"},updater:O}],getSubLayerAccessor:w};t.defaultElevationDimension=T;var C=[S,T];t.defaultDimensions=C;var L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.state=h({layerData:{},dimensions:{}},t.initialState),this.dimensionUpdaters={},this.aggregationUpdater={},this._addDimension(t.dimensions||C),this._addAggregation(t.aggregation||M)}return(0,o.default)(e,[{key:"updateAllDimensions",value:function(e){var t=[];for(var n in this.dimensionUpdaters){var r=this._accumulateUpdaters(0,e,this.dimensionUpdaters[n]);t=t.concat(r)}t.forEach((function(e){return"function"==typeof e&&e()}))}},{key:"updateAggregation",value:function(e,t){this._accumulateUpdaters(0,e,this.aggregationUpdater).forEach((function(e){return"function"==typeof e&&e(t)}))}},{key:"updateState",value:function(e,t){var n=e.oldProps,r=e.props,a=e.changeFlags;if(a.dataChanged)return this.updateAggregation(r,t),this.updateAllDimensions(r),this.state;var i=this._getAggregationChanges(n,r,a);return i&&i.length?(i.forEach((function(e){return"function"==typeof e&&e(t)})),this.updateAllDimensions(r)):(this._getDimensionChanges(n,r,a)||[]).forEach((function(e){return"function"==typeof e&&e()})),this.state}},{key:"setState",value:function(e){this.state=Object.assign({},this.state,e)}},{key:"_setDimensionState",value:function(e,t){this.setState({dimensions:Object.assign({},this.state.dimensions,(0,u.default)({},e,Object.assign({},this.state.dimensions[e],t)))})}},{key:"_addAggregation",value:function(e){this.aggregationUpdater=e}},{key:"_addDimension",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var n=t.key;e.dimensionUpdaters[n]=t}))}},{key:"_needUpdateStep",value:function(e,t,n,r){return Object.values(e.triggers).some((function(e){return e.updateTrigger?r.updateTriggersChanged&&(r.updateTriggersChanged.all||r.updateTriggersChanged[e.updateTrigger]):t[e.prop]!==n[e.prop]}))}},{key:"_accumulateUpdaters",value:function(e,t,n){for(var r=[],a=e;a-1&&(i=i.concat(this._accumulateUpdaters(o,n,e))),i}},{key:"_getAggregationChanges",value:function(e,t,n){var r=this._getAllUpdaters(this.aggregationUpdater,e,t,n);return r.length?r:null}},{key:"_getDimensionChanges",value:function(e,t,n){var r=[];for(var a in this.dimensionUpdaters){var i=this.dimensionUpdaters[a],o=this._getAllUpdaters(i,e,t,n);r=r.concat(o)}return r.length?r:null}},{key:"getUpdateTriggers",value:function(e){var t=this,n=e.updateTriggers||{},r={},a=function(a){var i=t.dimensionUpdaters[a],o=i.accessor,u=i.updateSteps;r[o]={},u.forEach((function(t){Object.values(t.triggers||[]).forEach((function(t){var a=t.prop,i=t.updateTrigger;if(i){var u=n[i];"object"!==(0,l.default)(u)||Array.isArray(u)?void 0!==u&&(r[o][a]=u):Object.assign(r[o],u)}else r[o][a]=e[a]}))}))};for(var i in this.dimensionUpdaters)a(i);return r}},{key:"getPickingInfo",value:function(e,t){var n=e.info,r=null;if(n.picked&&n.index>-1){var a=this.state.layerData.data[n.index],i={};for(var o in this.dimensionUpdaters){var l=this.dimensionUpdaters[o].getPickingInfo;"function"==typeof l&&(i=Object.assign({},i,l(this.state.dimensions[o],a,t)))}r=Object.assign(i,a,{points:a.filteredPoints||a.points})}return Object.assign(n,{picked:Boolean(r),object:r})}},{key:"getAccessor",value:function(e,t){return this.dimensionUpdaters.hasOwnProperty(e)?this.dimensionUpdaters[e].getSubLayerAccessor(this.state.dimensions[e],this.dimensionUpdaters[e],t):y}}],[{key:"defaultDimensions",value:function(){return C}}]),e}();t.default=L,L.getDimensionScale=O},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.aggregateRequiredColumns=t.getFilterDataFunc=t.getValueAggrFunc=t.pointPosResolver=t.pointPosAccessor=void 0;var a=r(n(4)),i=r(n(36)),o=r(n(5)),l=r(n(7)),u=r(n(99)),s=r(n(9)),c=r(n(10)),d=r(n(8)),f=r(n(157)),p=r(n(143)),h=n(156),m=n(860),g=n(39);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t=e[n][0]&&t<=e[n][1]}))}};t.getFilterDataFunc=O;var E=function(e){return e.colors.map(h.hexToRgb)},x=["lat","lng"];t.aggregateRequiredColumns=x;var M=function(e){(0,s.default)(n,e);var t=b(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).getPositionAccessor=function(e){return A(r.config.columns)(e)},r.getColorRange=(0,f.default)(E),r}return(0,l.default)(n,[{key:"isAggregated",get:function(){return!0}},{key:"requiredLayerColumns",get:function(){return x}},{key:"columnPairs",get:function(){return this.defaultPointColumnPairs}},{key:"noneLayerDataAffectingProps",get:function(){return[].concat((0,i.default)((0,u.default)((0,d.default)(n.prototype),"noneLayerDataAffectingProps",this)),["enable3d","colorRange","colorDomain","sizeRange","sizeScale","sizeDomain","percentile","coverage","elevationPercentile","elevationScale","enableElevationZoomFactor"])}},{key:"visualChannels",get:function(){return{color:{aggregation:"colorAggregation",channelScaleType:g.CHANNEL_SCALES.colorAggr,defaultMeasure:"property.pointCount",domain:"colorDomain",field:"colorField",key:"color",property:"color",range:"colorRange",scale:"colorScale"},size:{aggregation:"sizeAggregation",channelScaleType:g.CHANNEL_SCALES.sizeAggr,condition:function(e){return e.visConfig.enable3d},defaultMeasure:"property.pointCount",domain:"sizeDomain",field:"sizeField",key:"size",property:"height",range:"sizeRange",scale:"sizeScale"}}}},{key:"getVisualChannelDescription",value:function(e){var t=this.visualChannels[e],n=t.range,r=t.field,a=t.defaultMeasure,i=t.aggregation,o=this.config[r];return{label:this.visConfigSettings[n].label,measure:o?"".concat(this.config.visConfig[i]," of ").concat(o.displayName||o.name):a}}},{key:"getHoverData",value:function(e){return e}},{key:"updateLayerVisualChannel",value:function(e,t){e.data,e.dataContainer;this.validateVisualChannel(t)}},{key:"validateVisualChannel",value:function(e){this.validateFieldType(e),this.validateAggregationType(e),this.validateScale(e)}},{key:"validateAggregationType",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.aggregation,i=this.getAggregationOptions(e);r&&(i.length?i.includes(this.config.visConfig[r])||this.updateLayerVisConfig((0,a.default)({},r,i[0])):this.updateLayerConfig((0,a.default)({},n,null)))}},{key:"getAggregationOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.channelScaleType;return Object.keys(this.config[n]?g.FIELD_OPTS[this.config[n].type].scale[r]:g.DEFAULT_AGGREGATION[r])}},{key:"getScaleOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.aggregation,a=t.channelScaleType,i=this.config.visConfig[r];return this.config[n]?g.FIELD_OPTS[this.config[n].type].scale[a][i]:g.DEFAULT_AGGREGATION[a][i]}},{key:"updateLayerDomain",value:function(e,t){return this}},{key:"updateLayerMeta",value:function(e,t){var n=this.getPointsBounds(e,t);this.updateMeta({bounds:n})}},{key:"calculateDataAttribute",value:function(e,t){e.dataContainer;for(var n=e.filteredIndex,r=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=1e4,n=e.length>t?(0,s.getSampleData)(e,t):e,r=n.filter((function(e){return e&&e.geometry&&e.geometry.coordinates&&e.geometry.coordinates.length}));try{return(0,u.default)({type:"FeatureCollection",features:r})}catch(e){return null}},t.getGeojsonFeatureTypes=function(e){for(var t={},n=0;n1&&void 0!==i[1]?i[1]:null,r=i.length>2&&void 0!==i[2]?i[2]:{},n&&(t=f(t,n,r)),s[t]=s[t]||p(t),e.next=6,s[t];case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e,t,n){var r=n.modules||{};return r[e]?r[e]:o.c?n.CDN?(Object(u.a)(n.CDN.startsWith("http")),"".concat(n.CDN,"/").concat(t,"@").concat("2.3.5","/dist/libs/").concat(e)):o.d?"../src/libs/".concat(e):"modules/".concat(t,"/src/libs/").concat(e):"modules/".concat(t,"/dist/libs/").concat(e)}function p(e){return h.apply(this,arguments)}function h(){return(h=Object(i.a)(a.a.mark((function e(t){var n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.endsWith("wasm")){e.next=7;break}return e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.arrayBuffer();case 6:return e.abrupt("return",e.sent);case 7:if(o.c){e.next=9;break}return e.abrupt("return",l.requireFromFile&&l.requireFromFile(t));case 9:if(!o.d){e.next=11;break}return e.abrupt("return",importScripts(t));case 11:return e.next=13,fetch(t);case 13:return r=e.sent,e.next=16,r.text();case 16:return i=e.sent,e.abrupt("return",m(i,t));case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e,t){if(!o.c)return l.requireFromString&&l.requireFromString(e,t);if(o.d)return eval.call(o.b,e),null;var n=document.createElement("script");n.id=t;try{n.appendChild(document.createTextNode(e))}catch(t){n.text=e}return document.body.appendChild(n),null}},function(e,t,n){"use strict";function r(e){if(!e||!e.POSITION)return null;var t=1/0,n=1/0,r=1/0,a=-1/0,i=-1/0,o=-1/0,l=e.POSITION.value,u=l&&l.length;if(!u)return null;for(var s=0;sa?c:a,i=d>i?d:i,o=f>o?f:o}return[[t,n,r],[a,i,o]]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r=n(171);function a(e,t,n){var a=Object(r.c)(n.byteLength),i=a-n.byteLength;if(e){var o=new Uint8Array(e.buffer,e.byteOffset+t,n.byteLength),l=new Uint8Array(n);o.set(l);for(var u=0;u + * Released under the Apache License, Version 2.0 + * see: https://github.com/dcodeIO/long.js for details + */a=[],void 0===(i="function"==typeof(r=function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return!0===(e&&e.__isLong__)}e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var n={},r={};function a(e,t){var a,i,l;return t?(l=0<=(e>>>=0)&&e<256)&&(i=r[e])?i:(a=o(e,(0|e)<0?-1:0,!0),l&&(r[e]=a),a):(l=-128<=(e|=0)&&e<128)&&(i=n[e])?i:(a=o(e,e<0?-1:0,!1),l&&(n[e]=a),a)}function i(e,t){if(isNaN(e)||!isFinite(e))return t?m:h;if(t){if(e<0)return m;if(e>=d)return A}else{if(e<=-f)return _;if(e+1>=f)return b}return e<0?i(-e,t).neg():o(e%c|0,e/c|0,t)}function o(t,n,r){return new e(t,n,r)}e.fromInt=a,e.fromNumber=i,e.fromBits=o;var l=Math.pow;function u(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return h;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return u(e.substring(1),t,n).neg();for(var a=i(l(n,8)),o=h,s=0;s>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*c+(this.low>>>0):this.high*c+(this.low>>>0)},O.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},O.isOdd=function(){return 1==(1&this.low)},O.isEven=function(){return 0==(1&this.low)},O.equals=function(e){return t(e)||(e=s(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},O.eq=O.equals,O.notEquals=function(e){return!this.eq(e)},O.neq=O.notEquals,O.lessThan=function(e){return this.comp(e)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(e){return this.comp(e)<=0},O.lte=O.lessThanOrEqual,O.greaterThan=function(e){return this.comp(e)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(e){return this.comp(e)>=0},O.gte=O.greaterThanOrEqual,O.compare=function(e){if(t(e)||(e=s(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(_)?_:this.not().add(g)},O.neg=O.negate,O.add=function(e){t(e)||(e=s(e));var n=this.high>>>16,r=65535&this.high,a=this.low>>>16,i=65535&this.low,l=e.high>>>16,u=65535&e.high,c=e.low>>>16,d=0,f=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,f+=(p+=a+c)>>>16,d+=(f+=r+u)>>>16,d+=n+l,o((p&=65535)<<16|(h&=65535),(d&=65535)<<16|(f&=65535),this.unsigned)},O.subtract=function(e){return t(e)||(e=s(e)),this.add(e.neg())},O.sub=O.subtract,O.multiply=function(e){if(this.isZero())return h;if(t(e)||(e=s(e)),e.isZero())return h;if(this.eq(_))return e.isOdd()?_:h;if(e.eq(_))return this.isOdd()?_:h;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(p)&&e.lt(p))return i(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,a=this.low>>>16,l=65535&this.low,u=e.high>>>16,c=65535&e.high,d=e.low>>>16,f=65535&e.low,m=0,g=0,v=0,y=0;return v+=(y+=l*f)>>>16,g+=(v+=a*f)>>>16,v&=65535,g+=(v+=l*d)>>>16,m+=(g+=r*f)>>>16,g&=65535,m+=(g+=a*d)>>>16,g&=65535,m+=(g+=l*c)>>>16,m+=n*f+r*d+a*c+l*u,o((v&=65535)<<16|(y&=65535),(m&=65535)<<16|(g&=65535),this.unsigned)},O.mul=O.multiply,O.divide=function(e){if(t(e)||(e=s(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?m:h;var n,r,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return m;if(e.gt(this.shru(1)))return v;a=m}else{if(this.eq(_))return e.eq(g)||e.eq(y)?_:e.eq(_)?g:(n=this.shr(1).div(e).shl(1)).eq(h)?e.isNegative()?g:y:(r=this.sub(e.mul(n)),a=n.add(r.div(e)));if(e.eq(_))return this.unsigned?m:h;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=h}for(r=this;r.gte(e);){n=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),u=o<=48?1:l(2,o-48),c=i(n),d=c.mul(e);d.isNegative()||d.gt(r);)d=(c=i(n-=u,this.unsigned)).mul(e);c.isZero()&&(c=g),a=a.add(c),r=r.sub(d)}return a},O.div=O.divide,O.modulo=function(e){return t(e)||(e=s(e)),this.sub(this.div(e).mul(e))},O.mod=O.modulo,O.not=function(){return o(~this.low,~this.high,this.unsigned)},O.and=function(e){return t(e)||(e=s(e)),o(this.low&e.low,this.high&e.high,this.unsigned)},O.or=function(e){return t(e)||(e=s(e)),o(this.low|e.low,this.high|e.high,this.unsigned)},O.xor=function(e){return t(e)||(e=s(e)),o(this.low^e.low,this.high^e.high,this.unsigned)},O.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?o(this.low<>>32-e,this.unsigned):o(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):o(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),0==(e&=63))return this;var n=this.high;return e<32?o(this.low>>>e|n<<32-e,n>>>e,this.unsigned):o(32===e?n:n>>>e-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.toSigned=function(){return this.unsigned?o(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:o(this.low,this.high,!0)},O.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},O.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},e})?r.apply(t,a):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getMapDimForSplitMap=c,t.toggleSplitMapUpdater=t.receiveMapConfigUpdater=t.resetMapConfigUpdater=t.togglePerspectiveUpdater=t.fitBoundsUpdater=t.updateMapUpdater=t.INITIAL_MAP_STATE=void 0;var a=r(n(4)),i=n(522);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=-90}function l(e){return Number.isFinite(e)&&e<=180&&e>=-180}function u(e){return Array.isArray(e)&&4===e.length&&[e[0],e[2]].every(l)&&[e[1],e[3]].every(o)?e:null}},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getMapStyles=y,t.getInitialInputStyle=x,t.set3dBuildingColorUpdater=t.addCustomMapStyleUpdater=t.inputMapStyleUpdater=t.loadCustomMapStyleUpdater=t.resetMapConfigMapStyleUpdater=t.receiveMapConfigUpdater=t.requestMapStylesUpdater=t.loadMapStyleErrUpdater=t.loadMapStylesUpdater=t.mapStyleChangeUpdater=t.mapConfigChangeUpdater=t.initMapStyleUpdater=t.INITIAL_MAP_STYLE=void 0;var i=a(n(4)),o=r(n(174)),l=a(n(176)),u=n(886),s=n(39),c=n(85),d=n(499),f=n(524),p=n(250),h=n(156);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0?i:this.props.value0,d=a-i,f=(o-c)/d*100,p=(c-i)/d*100;return m.default.createElement(S,{className:(0,v.default)("kg-slider",E(E({},t),{},{disabled:n})),ref:this.ref,isRanged:r,vertical:l},m.default.createElement(w,{className:"kg-range-slider",vertical:l,ref:this.track},m.default.createElement(b.default,{left:this.calcHandleLeft0(f,p),valueListener:this.slide0Listener,sliderHandleWidth:u,display:r,vertical:l,showTooltip:s,track:this.track}),m.default.createElement(b.default,{left:this.calcHandleLeft1(f,p),valueListener:this.slide1Listener,sliderHandleWidth:u,vertical:l,value:o,showTooltip:s,track:this.track}),m.default.createElement(A.default,{width:f,v0Left:p,enableBarDrag:this.props.enableBarDrag,sliderBarListener:this.sliderBarListener,vertical:l,track:this.track,setAnchor:this._setAnchor})))}}]),n}(m.Component);t.default=T,(0,p.default)(T,"propTypes",{title:g.default.string,isRanged:g.default.bool,value0:g.default.number,value1:g.default.number,minValue:g.default.number,maxValue:g.default.number,sliderHandleWidth:g.default.number,onSlider0Change:g.default.func,onInput0Change:g.default.func,onSlider1Change:g.default.func,onInput1Change:g.default.func,onSliderBarChange:g.default.func,step:g.default.number,enableBarDrag:g.default.bool,showTooltip:g.default.bool}),(0,p.default)(T,"defaultProps",{title:"",isRanged:!0,value0:0,value1:100,minValue:0,maxValue:100,step:1,sliderHandleWidth:12,enableBarDrag:!1,onSlider0Change:M,onInput0Change:M,onSlider1Change:M,onInput1Change:M,onSliderBarChange:M,disabled:!1,vertical:!1,showTooltip:!1})},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.observeDimensions=f,t.unobserveDimensions=p,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(0,o.useRef)(null),n=(0,o.useState)(null),r=(0,a.default)(n,2),i=r[0],l=r[1];return(0,o.useEffect)((function(){var n=t.current;if(n){var r=!1;return f(n,(function(e){if(!r){var t=h(n,e);t&&l(t)}}),e),function(){r=!0,p(n)}}}),[e]),[t,i]};var a=r(n(55)),i=r(n(390)),o=n(0),l=r(n(905));function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:100,r=d(),a=n>0?(0,i.default)(t,n):t;r.subscribe(e,(function(t){return a(h(e,t))}))}function p(e){d().unsubscribe(e)}function h(e,t){if(t.contentRect){var n=t.contentRect;return{width:n.width,height:n.height}}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return{width:r.width,height:r.height}}return null}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AnimationWindowControl=t.IconButton=void 0;var i,o,l,u,s=r(n(55)),c=r(n(27)),d=r(n(4)),f=r(n(16)),p=a(n(0)),h=r(n(15)),m=r(n(49)),g=n(51),v=n(40),y=r(n(538)),b=n(58),A=n(39),_=n(75),O=h.default.div(i||(i=(0,f.default)(["\n display: flex;\n position: relative;\n\n &.disabled {\n opacity: 0.4;\n pointer-events: none;\n }\n"]))),E=h.default.div(o||(o=(0,f.default)(["\n display: flex;\n align-items: center;\n\n .animation-control__speed-slider {\n left: 0;\n }\n"]))),x=(0,h.default)(v.Button)(l||(l=(0,f.default)(["\n width: ","px;\n height: 32px;\n color: ",";\n background-color: ",";\n border-radius: 4px;\n margin-left: 7px;\n border: 0;\n padding: 0;\n\n .__react_component_tooltip {\n font-family: ",";\n }\n svg {\n margin: 0;\n }\n &.active {\n background-color: ",";\n }\n"])),(function(e){return e.collapsed?0:32}),(function(e){return e.theme.playbackButtonColor}),(function(e){return e.theme.playbackButtonBgColor}),(function(e){return e.theme.fontFamily}),(function(e){return e.theme.playbackButtonActBgColor}));function M(){}t.IconButton=x;var w={reset:function(e){return p.default.createElement(b.Reset,{height:"18px"})},play:function(e){return p.default.createElement(b.Play,{height:"18px"})},pause:function(e){return p.default.createElement(b.Pause,{height:"18px"})},speed:b.Rocket,animationFree:b.FreeWindow,animationIncremental:b.AnchorWindow},S=(u={},(0,d.default)(u,A.ANIMATION_WINDOW.free,{id:A.ANIMATION_WINDOW.free,icon:w.animationFree,tooltip:"tooltip.animationByWindow"}),(0,d.default)(u,A.ANIMATION_WINDOW.incremental,{id:A.ANIMATION_WINDOW.incremental,icon:w.animationIncremental,tooltip:"tooltip.animationByIncremental"}),u),T=function(e){var t=e.onClick,n=e.selected,r=e.onHide,a=e.height,i=e.animationItems,o=e.btnStyle,l=void 0===o?{}:o;return p.default.createElement("div",null,Object.values(i).filter((function(e){return e.id!==n})).map((function(e){return p.default.createElement(x,(0,c.default)({key:e.id,"data-tip":!0,"data-for":"".concat(e.id,"-tooltip"),className:"playback-control-button",onClick:function(){t(e.id),r()}},l),p.default.createElement(e.icon,{height:a}),e.tooltip?p.default.createElement(v.Tooltip,{id:"".concat(e.id,"-tooltip"),effect:"solid",place:"top"},p.default.createElement(g.FormattedMessage,{id:e.tooltip})):null)})))};function C(e){return function(t){var n=t.isAnimatable,r=void 0===n||n,a=t.isAnimating,i=t.width,o=t.speed,l=t.animationWindow,u=void 0===l?A.ANIMATION_WINDOW.free:l,f=t.setFilterAnimationWindow,h=t.updateAnimationSpeed,y=t.pauseAnimation,b=void 0===y?M:y,C=t.resetAnimation,L=void 0===C?M:C,P=t.startAnimation,k=void 0===P?M:P,D=t.playbackIcons,R=void 0===D?w:D,j=t.animationItems,I=void 0===j?S:j,F=t.buttonStyle,N=void 0===F?"secondary":F,B=t.buttonHeight,z=void 0===B?"20px":B,U=(0,p.useState)(!1),V=(0,s.default)(U,2),H=V[0],Y=V[1],W=(0,p.useState)(!1),G=(0,s.default)(W,2),q=G[0],X=G[1],Z=(0,p.useCallback)((function(){X(!q)}),[q,X]),K=N?(0,d.default)({},N,!0):{},J=(0,p.useCallback)((function(){H?window.setTimeout((function(){return Y(!1)}),200):Y(!0)}),[H,Y]);return p.default.createElement(O,{className:(0,m.default)("playback-controls",{disabled:!r}),style:{width:"".concat(i,"px")}},f?p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-window",className:(0,m.default)("playback-control-button",{active:q}),onClick:Z},K),function(){if(I[u]){var e=I[u].icon;return p.default.createElement(e,{height:z})}return null}(),I[u]&&I[u].tooltip?p.default.createElement(v.Tooltip,{id:"animate-window",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:I[u].tooltip})):null):null,q?p.default.createElement(T,{onClick:f,selected:u,onHide:Z,height:z,btnStyle:K,animationItems:I}):null,q||!h?null:p.default.createElement(E,null,p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-speed",className:"playback-control-button"},K,{onClick:J}),p.default.createElement(R.speed,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-speed",place:"top",delayShow:500,effect:"solid"},p.default.createElement("span",null,(0,_.preciseRound)(o,1),"x"))),H?p.default.createElement(e,{onHide:J,updateAnimationSpeed:h,speed:o}):null),q?null:p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-reset",className:"playback-control-button",onClick:L},K),p.default.createElement(R.reset,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-reset",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:"tooltip.reset"}))),q?null:p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-play-pause",className:(0,m.default)("playback-control-button",{active:a}),onClick:a?b:k,hide:H},K),a?p.default.createElement(R.pause,{height:z}):p.default.createElement(R.play,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-play-pause",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:a?"tooltip.pause":"tooltip.play"}))))}}t.AnimationWindowControl=T,C.deps=[y.default];var L=C;t.default=L},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var i,o,l=r(n(5)),u=r(n(7)),s=r(n(17)),c=r(n(9)),d=r(n(10)),f=r(n(8)),p=r(n(4)),h=r(n(16)),m=a(n(0)),g=r(n(15)),v=r(n(236)),y=r(n(133)),b=n(39);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 n,r=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var _=g.default.div(i||(i=(0,h.default)(["\n position: relative;\n"]))),O=g.default.div(o||(o=(0,h.default)(["\n position: absolute;\n bottom: 50px;\n right: calc(0% - 32px);\n width: 180px;\n padding: 2px 8px 2px 12px;\n background-color: ",";\n box-shadow: -2px -2px 0 0 rgba(0, 0, 0, 0.1);\n\n .kg-range-slider__input {\n width: 48px;\n padding: 6px;\n }\n"])),(function(e){return e.theme.bottomWidgetBgd}));function E(e){var t=function(t){(0,c.default)(r,t);var n=A(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,a=new Array(t),i=0;iA.default.innerWidth&&(c[d]=A.default.innerWidth-r.width-i),c.top<0?c.top=i:c.top+r.height>A.default.innerHeight&&(c.top=A.default.innerHeight-r.height-i),c};t.getChildPos=C,g.canUseDOM&&(document.body?T():document.addEventListener("DOMContentLoaded",T));var L=0;var P={content:{top:0,left:0,border:0,right:"auto",bottom:"auto",padding:"0px 0px 0px 0px"},overlay:{right:"auto",bottom:"auto",width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0)"}},k=function(e){(0,s.default)(n,e);var t=O(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(924),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=l}).call(this,n(175)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(930)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(396),a=n(1491),i=n(1492),o=n(1493),l=n(1494),u=n(1495);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=a,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=l,s.prototype.set=u,e.exports=s},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(239)(n(179),"Map");e.exports=r},function(e,t,n){var r=n(1500),a=n(1507),i=n(1509),o=n(1510),l=n(1511);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&e.height>0&&n.updateMap(e)}})),(0,p.default)((0,s.default)(t),"layersSelector",(function(e){return e.layers})),(0,p.default)((0,s.default)(t),"layerDataSelector",(function(e){return e.layerData})),(0,p.default)((0,s.default)(t),"mapLayersSelector",(function(e){return e.mapLayers})),(0,p.default)((0,s.default)(t),"layerOrderSelector",(function(e){return e.layerOrder})),(0,p.default)((0,s.default)(t),"layersToRenderSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,t.mapLayersSelector,T.prepareLayersToRender)),(0,p.default)((0,s.default)(t),"layersForDeckSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,T.prepareLayersForDeck)),(0,p.default)((0,s.default)(t),"filtersSelector",(function(e){return e.filters})),(0,p.default)((0,s.default)(t),"polygonFilters",(0,y.createSelector)(t.filtersSelector,(function(e){return e.filter((function(e){return e.type===L.FILTER_TYPES.polygon}))}))),(0,p.default)((0,s.default)(t),"mapboxLayersSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,t.layerOrderSelector,t.layersToRenderSelector,M.generateMapboxLayers)),(0,p.default)((0,s.default)(t),"_onCloseMapPopover",(function(){t.props.visStateActions.onLayerClick(null)})),(0,p.default)((0,s.default)(t),"_onLayerSetDomain",(function(e,n){t.props.visStateActions.layerConfigChange(t.props.layers[e],{colorDomain:n})})),(0,p.default)((0,s.default)(t),"_handleMapToggleLayer",(function(e){var n=t.props,r=n.index,a=void 0===r?0:r;n.visStateActions.toggleLayerForMap(a,e)})),(0,p.default)((0,s.default)(t),"_onMapboxStyleUpdate",(function(){t.previousLayers={},t._updateMapboxLayers(),"function"==typeof t.props.onMapStyleLoaded&&t.props.onMapStyleLoaded(t._map)})),(0,p.default)((0,s.default)(t),"_setMapboxMap",(function(e){if(!t._map&&e){if(t._map=e.getMap(),!t._map)return;t._map.on("style.load",t._onMapboxStyleUpdate),t._map.on("render",(function(){"function"==typeof t.props.onMapRender&&t.props.onMapRender(t._map)}))}t.props.getMapboxRef&&t.props.getMapboxRef(e,t.props.index)})),(0,p.default)((0,s.default)(t),"_onBeforeRender",(function(e){var n=e.gl;(0,w.setLayerBlending)(n,t.props.layerBlending)})),(0,p.default)((0,s.default)(t),"_onDeckError",(function(e,n){var r="An error in deck.gl: ".concat(e.message," in ").concat(n.id),a="".concat(n.id,"-").concat(e.message);t._deckGLErrorsElapsed=t._deckGLErrorsElapsed||{};var i=t._deckGLErrorsElapsed[a];(!i||i0&&r>0?e:a),{},{transitionDuration:0}));"function"==typeof t.props.onViewStateChange&&t.props.onViewStateChange(i),t.props.mapStateActions.updateMap(i)})),(0,p.default)((0,s.default)(t),"_toggleMapControl",(function(e){var n=t.props,r=n.index;n.uiStateActions.toggleMapControl(e,r)})),t.previousLayers={},t._deck=null,t._ref=(0,h.createRef)(),t}return(0,u.default)(d,[{key:"componentDidMount",value:function(){(0,k.observeDimensions)(this._ref.current,this._handleResize)}},{key:"componentWillUnmount",value:function(){this._map&&(this._map.off("style.load"),this._map.off("render")),(0,k.unobserveDimensions)(this._ref.current)}},{key:"_onDeckInitialized",value:function(e){this.props.onDeckInitialized&&this.props.onDeckInitialized(this._deck,e)}},{key:"_renderMapPopover",value:function(t){var n=this.props,r=n.mapState,a=n.hoverInfo,o=n.clicked,l=n.datasets,u=n.interactionConfig,s=n.layers,c=n.mousePos,d=c.mousePosition,f=c.coordinate,p=c.pinned;if(!d||!u.tooltip)return null;var m=(0,T.getLayerHoverProp)({interactionConfig:u,hoverInfo:a,layers:s,layersToRender:t,datasets:l}),g=!!u.tooltip.config&&u.tooltip.config.compareMode,v={},y=null;if(p||o){var A=new b.default(r),_=o?o.lngLat:p.coordinate;v=this._getHoverXY(A,_),y=(0,T.getLayerHoverProp)({interactionConfig:u,hoverInfo:o,layers:s,layersToRender:t,datasets:l}),m&&y&&(m.primaryData=y.data,m.compareType=u.tooltip.config.compareType)}var O={onClose:this._onCloseMapPopover,zoom:r.zoom,container:this._deck?this._deck.canvas:void 0};return h.default.createElement(P.default,null,y&&h.default.createElement(e,(0,i.default)({},v,O,{layerHoverProp:y,coordinate:u.coordinate.enabled&&(p||{}).coordinate,frozen:!0,isBase:g})),m&&(!y||g)&&h.default.createElement(e,(0,i.default)({x:d[0],y:d[1]},O,{layerHoverProp:m,frozen:!1,coordinate:u.coordinate.enabled&&f})))}},{key:"_getHoverXY",value:function(e,t){var n=e&&t?e.project(t):null;return n&&{x:n[0],y:n[1]}}},{key:"_renderDeckOverlay",value:function(e){var t,n=this,r=this.props,a=r.mapState,o=r.mapStyle,l=r.layerData,u=r.layerOrder,s=r.layers,c=r.visStateActions,d=r.mapboxApiAccessToken,f=r.mapboxApiUrl,p=(null===(t=this.props.deckGlProps)||void 0===t?void 0:t.layers)||[];if(l&&l.length){var m=u.slice().reverse().filter((function(t){return e[s[t].id]})).reduce((function(e,t){var r={onSetLayerDomain:function(e){return n._onLayerSetDomain(t,e)}},a=(0,T.renderDeckGlLayer)(n.props,r,t);return e.concat(a||[])}),[]);p=p.concat(m)}return o.visibleLayerGroups["3d building"]&&p.push(new C.default({id:"_keplergl_3d-building",mapboxApiAccessToken:d,mapboxApiUrl:f,threeDBuildingColor:o.threeDBuildingColor,updateTriggers:{getFillColor:o.threeDBuildingColor}})),h.default.createElement(v.default,(0,i.default)({},this.props.deckGlProps,{viewState:a,id:"default-deckgl-overlay",layers:p,onBeforeRender:this._onBeforeRender,onHover:c.onLayerHover,onClick:c.onLayerClick,onError:this._onDeckError,ref:function(e){e&&e.deck&&!n._deck&&(n._deck=e.deck)},onWebGLInitialized:function(e){return n._onDeckInitialized(e)}}))}},{key:"_updateMapboxLayers",value:function(){var e=this.mapboxLayersSelector(this.props);(Object.keys(e).length||Object.keys(this.previousLayers).length)&&((0,M.updateMapboxLayers)(this._map,e,this.previousLayers),this.previousLayers=e)}},{key:"_renderMapboxOverlays",value:function(){this._map&&this._map.isStyleLoaded()&&this._updateMapboxLayers()}},{key:"_renderMap",value:function(){var e=this.props,r=e.mapState,a=e.mapStyle,o=e.mapStateActions,l=e.layers,u=e.MapComponent,s=e.datasets,c=e.mapboxApiAccessToken,d=e.mapboxApiUrl,f=e.mapControls,m=e.isExport,g=e.locale,v=e.uiStateActions,y=e.visStateActions,b=e.interactionConfig,A=e.editor,_=e.index,O=e.primary,E=this.layersToRenderSelector(this.props),x=this.layersForDeckSelector(this.props),M=j(j({},r),{},{width:"100%",height:"100%",preserveDrawingBuffer:!0,mapboxApiAccessToken:c,mapboxApiUrl:d,onViewportChange:this._onViewportChange,transformRequest:S.transformRequest}),w=(f.mapDraw||{}).active,T=l.find((function(e){return e.id===L.GEOCODER_LAYER_ID})),C=Boolean(r.isSplit);return h.default.createElement(h.default.Fragment,null,h.default.createElement(t,{datasets:s,availableLocales:Object.keys(D.LOCALE_CODES),dragRotate:r.dragRotate,isSplit:C,primary:O,isExport:m,layers:l,layersToRender:E,mapIndex:_,mapControls:f,readOnly:this.props.readOnly,scale:r.scale||1,top:b.geocoder&&b.geocoder.enabled?52:0,editor:A,locale:g,onTogglePerspective:o.togglePerspective,onToggleSplitMap:o.toggleSplitMap,onMapToggleLayer:this._handleMapToggleLayer,onToggleMapControl:this._toggleMapControl,onSetEditorMode:y.setEditorMode,onSetLocale:v.setLocale,onToggleEditorVisibility:y.toggleEditorVisibility}),h.default.createElement(u,(0,i.default)({},M,{key:"bottom",ref:this._setMapboxMap,mapStyle:a.bottomMapStyle,getCursor:this.props.hoverInfo?function(){return"pointer"}:void 0,onMouseMove:this.props.visStateActions.onMouseMove}),this._renderDeckOverlay(x),this._renderMapboxOverlays(),h.default.createElement(n,{index:_,datasets:s,editor:A,filters:this.polygonFilters(this.props),isEnabled:w,layers:l,layersToRender:E,onDeleteFeature:y.deleteFeature,onSelect:y.setSelectedFeature,onUpdate:y.setFeatures,onTogglePolygonFilter:y.setPolygonFilterLayer,style:{pointerEvents:w?"all":"none",position:"absolute",display:A.visible?"block":"none"}})),a.topMapStyle||T?h.default.createElement("div",{style:F.top},h.default.createElement(u,(0,i.default)({},M,{key:"top",mapStyle:a.topMapStyle}),this._renderDeckOverlay((0,p.default)({},L.GEOCODER_LAYER_ID,!0)))):null,this._renderMapPopover(E),C&&1!==_?null:h.default.createElement(N,null))}},{key:"render",value:function(){var e=this.props,t=e.mapState,n=e.mapStyle;return h.default.createElement(E.StyledMapContainer,{ref:this._ref,style:F.container,globe:t.globe},n.bottomMapStyle&&this._renderMap())}}]),d}(h.Component);return(0,p.default)(r,"propTypes",{datasets:m.default.object,interactionConfig:m.default.object.isRequired,layerBlending:m.default.string.isRequired,layerOrder:m.default.arrayOf(m.default.any).isRequired,layerData:m.default.arrayOf(m.default.any).isRequired,layers:m.default.arrayOf(m.default.any).isRequired,filters:m.default.arrayOf(m.default.any).isRequired,mapState:m.default.object.isRequired,mapControls:m.default.object.isRequired,mapStyle:m.default.object.isRequired,mousePos:m.default.object.isRequired,mapboxApiAccessToken:m.default.string.isRequired,mapboxApiUrl:m.default.string,visStateActions:m.default.object.isRequired,mapStateActions:m.default.object.isRequired,uiStateActions:m.default.object.isRequired,primary:m.default.bool,readOnly:m.default.bool,isExport:m.default.bool,clicked:m.default.object,hoverInfo:m.default.object,mapLayers:m.default.object,onMapToggleLayer:m.default.func,onMapStyleLoaded:m.default.func,onMapRender:m.default.func,getMapboxRef:m.default.func,index:m.default.number}),(0,p.default)(r,"defaultProps",{MapComponent:g.default,deckGlProps:{},index:0,primary:!0}),r.displayName="MapContainer",r}t.Attribution=N,B.deps=[_.default,O.default,x.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLayerName=void 0;var a,i,o=r(n(16)),l=r(n(0)),u=r(n(15)),s=n(40),c=n(58),d=r(n(1)),f=n(75),p=n(507),h=(0,u.default)(s.CenterFlexbox)(a||(a=(0,o.default)(["\n color: ",";\n font-size: 12px;\n letter-spacing: 0.43px;\n text-transform: capitalize;\n\n svg {\n margin-right: 4px;\n }\n"])),(function(e){return e.theme.textColorHl}));t.StyledLayerName=h;var m=u.default.table(i||(i=(0,o.default)(["\n & .row__delta-value {\n text-align: right;\n\n &.positive {\n color: ",";\n }\n\n &.negative {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.primaryBtnBgd}),(function(e){return e.theme.negativeBtnActBgd})),g=function(e){var t=e.name,n=e.value,r=e.deltaValue,a=e.url;!a&&n&&"string"==typeof n&&n.match(/^http/)&&(a=n);var i=//.test(t);return l.default.createElement("tr",{className:"row",key:t},l.default.createElement("td",{className:"row__name"},t),l.default.createElement("td",{className:"row__value"},i?l.default.createElement("img",{src:n}):a?l.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:a},n):n),(0,f.notNullorUndefined)(r)&&l.default.createElement("td",{className:"row__delta-value ".concat("+"===r.toString().charAt(0)?"positive":"negative")},r))},v=function(e){var t=e.fieldsToShow,n=e.fields,r=e.data,a=e.primaryData,i=e.compareType;return l.default.createElement("tbody",null,t.map((function(e){return l.default.createElement(y,{key:e.name,item:e,fields:n,data:r,primaryData:a,compareType:i})})))},y=function(e){var t=e.item,n=e.fields,r=e.data,a=e.primaryData,i=e.compareType,o=n.findIndex((function(e){return e.name===t.name}));if(o<0)return null;var u=n[o],s=(0,p.getTooltipDisplayValue)({item:t,field:u,data:r,fieldIdx:o}),c=(0,p.getTooltipDisplayDeltaValue)({item:t,field:u,data:r,fieldIdx:o,primaryData:a,compareType:i});return l.default.createElement(g,{name:u.displayName||u.name,value:s,deltaValue:c})},b=function(e){var t=e.data,n=e.layer,r=n.config,a=r.colorField,i=r.sizeField;return l.default.createElement("tbody",null,l.default.createElement(g,{name:"total points",key:"count",value:t.points&&t.points.length}),a&&n.visualChannels.color?l.default.createElement(g,{name:n.getVisualChannelDescription("color").measure,key:"color",value:t.colorValue||"N/A"}):null,i&&n.visualChannels.size?l.default.createElement(g,{name:n.getVisualChannelDescription("size").measure,key:"size",value:t.elevationValue||"N/A"}):null)},A=function(){var e=function(e){var t=e.data,n=e.layer;return t&&n?l.default.createElement("div",{className:"map-popover__layer-info"},l.default.createElement(h,{className:"map-popover__layer-name"},l.default.createElement(c.Layers,{height:"12px"}),e.layer.config.label),l.default.createElement(m,null,e.layer.isAggregated?l.default.createElement(b,e):l.default.createElement(v,e))):null};return e.propTypes={fields:d.default.arrayOf(d.default.any),fieldsToShow:d.default.arrayOf(d.default.any),layer:d.default.object,data:d.default.oneOfType([d.default.arrayOf(d.default.any),d.default.object])},e};t.default=A},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t._updateProperty=t.forwardTo=t._actionFor=t.unwrap=t.isForwardAction=t.wrapTo=t.getActionForwardAddress=t.ADDRESS_PREFIX=t.FORWARD=void 0;var a=r(n(4)),i=r(n(667));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1?new f._JSONPath(m.jsonpath).setFieldAtPath(r,i):m.jsonpath&&1===m.jsonpath.length&&(r=i);else for(g=0;g1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(t).reduce((function(e,t){return e[t[0]]=t[1],e}),x(e))},t.default=void 0;var a=r(n(80)),i=r(n(36)),o=r(n(4)),l=r(n(5)),u=r(n(7)),s=n(98),c=n(41),d=n(113),f=n(86),p=n(408),h=n(211),m=n(76),g=n(987),v=n(285);function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){var s=O(r,u[0]);return n.push({defaultName:s,pair:{lat:{fieldIdx:i,value:e[i].name},lng:{fieldIdx:l,value:e[l].name}},suffix:u}),{v:n}}}();if("object"===(0,a.default)(s))return s.v}}}catch(e){l.e(e)}finally{l.f()}return n}),[])}function x(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)}var M=function(){function e(t){var n=t.info,r=void 0===n?{}:n,a=t.data,i=t.color,o=t.metadata,u=t.supportedFilterTypes;(0,l.default)(this,e);var s=(0,v.createDataContainer)(a.rows,{fields:a.fields}),d=_({id:(0,f.generateHashId)(4),label:"new dataset"},r||{}),h=d.id,g=a.fields.map((function(e,t){return _(_({},e),{},{fieldIdx:t,id:e.name,displayName:e.displayName||e.name,valueAccessor:m.maybeToDate.bind(null,e.type===c.ALL_FIELD_TYPES.timestamp,t,e.format,s)})})),y=s.getPlainIndex();this.id=d.id,this.label=d.label,this.color=i,this.metadata=_(_({},o),{},{id:d.id,label:d.label}),this.dataContainer=s,this.allIndexes=y,this.filteredIndex=y,this.filteredIndexForDomain=y,this.fieldPairs=E(g),this.fields=g,this.gpuFilter=(0,p.getGpuFilterProps)([],h,g),u&&(this.supportedFilterTypes=u)}return(0,u.default)(e,[{key:"getColumnField",value:function(e){var t=this.fields.find((function(t){return t.name===e}));return this._assetField(e,t),t}},{key:"getColumnFieldIdx",value:function(e){var t=this.fields.findIndex((function(t){return t.name===e}));return this._assetField(e,Boolean(t>-1)),t}},{key:"getValue",value:function(e,t){var n=this.getColumnField(e);return n?n.valueAccessor({index:t}):null}},{key:"updateColumnField",value:function(e,t){this.fields=Object.assign((0,i.default)(this.fields),(0,o.default)({},e,t))}},{key:"getColumnFilterProps",value:function(e){var t=this.getColumnFieldIdx(e);if(t<0)return null;var n=this.fields[t];if(n.hasOwnProperty("filterProps"))return n.filterProps;var r=this.getColumnFilterDomain(n);if(!r)return null;var a=(0,h.getFilterProps)(n,r),i=_(_({},n),{},{filterProps:a});return this.updateColumnField(t,i),a}},{key:"filterTable",value:function(e,t,n){var r=this,a=this.dataContainer,i=this.id,l=this.filterRecord,u=this.fields,s=(0,h.getFilterRecord)(i,e,n||{});if(this.filterRecord=s,this.gpuFilter=(0,p.getGpuFilterProps)(e,i,u),!e.length)return this.filteredIndex=this.allIndexes,this.filteredIndexForDomain=this.allIndexes,this;this.changedFilters=(0,h.diffFilters)(s,l);var c=Boolean(this.changedFilters.dynamicDomain),d=Boolean(this.changedFilters.cpu),f={};if(c||d){var m=c?s.dynamicDomain:null,g=d?s.cpu:null,v=e.reduce((function(e,n){var i=(0,p.getDatasetFieldIndexForFilter)(r.id,n),l=-1!==i?u[i]:null;return _(_({},e),{},(0,o.default)({},n.id,(0,h.getFilterFunction)(l,r.id,n,t,a)))}),{});f=(0,h.filterDataByFilterTypes)({dynamicDomainFilters:m,cpuFilters:g,filterFuncs:v},a)}return this.filteredIndex=f.filteredIndex||this.filteredIndex,this.filteredIndexForDomain=f.filteredIndexForDomain||this.filteredIndexForDomain,this}},{key:"filterTableCPU",value:function(e,t){var n={cpuOnly:!0,ignoreDomain:!0};if(!e.length)return this.filteredIdxCPU=this.allIndexes,this.filterRecordCPU=(0,h.getFilterRecord)(this.id,e,n),this;if(!e.find((function(e){return e.gpu})))return this.filteredIdxCPU=this.filteredIndex,this.filterRecordCPU=(0,h.getFilterRecord)(this.id,e,n),this;var r=x(this);r.filterRecord=this.filterRecordCPU,r.filteredIndex=this.filteredIdxCPU||[];var a=r.filterTable(e,t,n);return this.filteredIdxCPU=a.filteredIndex,this.filterRecordCPU=a.filterRecord,this}},{key:"getColumnFilterDomain",value:function(e){var t=this.dataContainer,n=e.valueAccessor;switch(e.type){case c.ALL_FIELD_TYPES.real:case c.ALL_FIELD_TYPES.integer:return(0,h.getNumericFieldDomain)(t,n);case c.ALL_FIELD_TYPES.boolean:return{domain:[!0,!1]};case c.ALL_FIELD_TYPES.string:case c.ALL_FIELD_TYPES.date:return{domain:(0,g.getOrdinalDomain)(t,n)};case c.ALL_FIELD_TYPES.timestamp:return(0,h.getTimestampFieldDomain)(t,n);default:return{domain:(0,g.getOrdinalDomain)(t,n)}}}},{key:"getColumnLayerDomain",value:function(e,t){var n=this.dataContainer,r=this.filteredIndexForDomain;if(!c.SCALE_TYPES[t])return s.console.error("scale type ".concat(t," not supported")),null;var a=e.valueAccessor,i=function(e){return a({index:e})},o=(0,m.getSortingFunction)(e.type);switch(t){case c.SCALE_TYPES.ordinal:case c.SCALE_TYPES.point:return(0,g.getOrdinalDomain)(n,a);case c.SCALE_TYPES.quantile:return(0,g.getQuantileDomain)(r,i,o);case c.SCALE_TYPES.log:return(0,g.getLogDomain)(r,i);case c.SCALE_TYPES.quantize:case c.SCALE_TYPES.linear:case c.SCALE_TYPES.sqrt:default:return(0,g.getLinearDomain)(r,i)}}},{key:"_assetField",value:function(e,t){t||s.console.error("".concat(e," doesnt exist in dataset ").concat(this.id))}}]),e}();t.default=M},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.findDefaultLayer=function(e,t){if(!e)return[];return Object.keys(t).reduce((function(n,r){var a="function"==typeof t[r].findDefaultLayerProps?t[r].findDefaultLayerProps(e,n):{props:[]},i=Array.isArray(a)?a:a.props||[];return(a.foundLayers||n).concat(i.map((function(t){return u(u({},t),{},{type:r,dataId:e.id})})))}),[]).map((function(n){var r=new t[n.type](n);return"function"==typeof r.setInitialLayerConfig&&e.dataContainer?r.setInitialLayerConfig(e):r}))},t.calculateLayerData=function(e,t,n){if(!e.type||!e.hasAllColumns()||!e.config.dataId)return{layer:e,layerData:{}};return{layerData:e.formatLayerData(t.datasets,n),layer:e}},t.getLayerHoverProp=function(e){var t=e.interactionConfig,n=e.hoverInfo,r=e.layers,a=e.layersToRender,i=e.datasets;if(t.tooltip.enabled&&n&&n.picked){var o=n.object,l=n.layer,u=r[l.props.idx];if(o&&u&&u.getHoverData&&a[u.id]){var s=u.config.dataId;if(!s)return null;var c=i[s],d=c.dataContainer,f=c.fields,p=u.getHoverData(o,d,f),h=t.tooltip.config.fieldsToShow[s];return{data:p,fields:f,fieldsToShow:h,layer:u}}}return null},t.renderDeckGlLayer=function(e,t,n){var r=e.datasets,a=e.layers,i=e.layerData,o=e.hoverInfo,l=e.clicked,u=e.mapState,s=e.interactionConfig,c=e.animationConfig,d=e.mapLayers,f=a[n],p=i[n],h=(r[f.config.dataId]||{}).gpuFilter,m=l||o,g=!d||d&&d[f.id];return f.renderLayer({data:p,gpuFilter:h,idx:n,interactionConfig:s,layerCallbacks:t,mapState:u,animationConfig:c,objectHovered:m,visible:g})},t.isLayerRenderable=s,t.isLayerVisible=c,t.prepareLayersForDeck=function(e,t){return e.reduce((function(e,n,r){return u(u({},e),{},(0,a.default)({},n.id,s(n,t[r])&&n.overlayType===i.OVERLAY_TYPE.deckgl))}),{})},t.prepareLayersToRender=function(e,t,n){return e.reduce((function(e,r,i){return u(u({},e),{},(0,a.default)({},r.id,s(r,t[i])&&c(r,n)))}),{})};var a=r(n(4)),i=n(146),o=n(41);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:[],i=n.map((function(t){return e[t].id})),o=e,l=v(t);try{for(l.s();!(r=l.n()).done;){var u=r.value,s=a.indexOf(u.id),c=0;if(s>0){for(var f=s+1,p=null;f-- >0&&null===p;){var h=a[s-1];p=i.indexOf(h)}p>-1&&(c=p+1)}i=(0,d.arrayInsert)(i,c,u.id),o=o.concat(u)}}catch(e){l.e(e)}finally{l.f()}var m=i.map((function(e){return o.findIndex((function(t){return t.id===e}))}));return{newLayerOrder:m,newLayers:o}}function x(e,t){var n={},r={};return t&&Object.keys(t).forEach((function(a){if(e.interactionConfig[a]){var o=e.interactionConfig[a].config,l=t[a]||{},u=l.enabled,c=(0,i.default)(l,["enabled"]),d=c;if("tooltip"===a){var f=w(e,c),p=f.mergedTooltip,h=f.unmergedTooltip;d={fieldsToShow:A(A({},o.fieldsToShow),p)},Object.keys(h).length&&(r.tooltip={fieldsToShow:h,enabled:u})}n[a]=A(A({},e.interactionConfig[a]),{},{enabled:u},o?{config:(0,s.default)(A(A({},o),d),Object.keys(o))}:{})}})),A(A({},e),{},{interactionConfig:A(A({},e.interactionConfig),n),interactionToBeMerged:r})}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,l.default)(e.splitMaps),r=[];return t.forEach((function(t,i){Object.entries(t.layers).forEach((function(t){var l=(0,a.default)(t,2),u=l[0],s=l[1],c=e.layers.find((function(e){return e.id===u}))?n:r;c[i]=c[i]||{layers:c===n?(0,p.getInitialMapLayersForSplitMap)(e.layers):[]},c[i].layers=A(A({},c[i].layers),{},(0,o.default)({},u,s))}))})),A(A({},e),{},{splitMaps:n,splitMapsToBeMerged:[].concat((0,l.default)(e.splitMapsToBeMerged),r)})}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r={};if(!t.fieldsToShow||!Object.keys(t.fieldsToShow).length)return{mergedTooltip:r,unmergedTooltip:n};for(var a in t.fieldsToShow)e.datasets[a]?function(){var n=e.datasets[a].fields.map((function(e){return e.name})),i=t.fieldsToShow[a].filter((function(e){return n.includes(e.name)}));r[a]=i}():n[a]=t.fieldsToShow[a];return{mergedTooltip:r,unmergedTooltip:n}}function S(e,t){return t&&m.LAYER_BLENDINGS[t]?A(A({},e),{},{layerBlending:t}):e}function T(e,t){return t&&t.currentTime?A(A({},e),{},{animationConfig:A(A(A({},e.animationConfig),t),{},{domain:null})}):e}function C(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r={},a=function(){var a=o[i];r[a]=A({},n[a]);var l=t[a];if(l){var u=e.findIndex((function(e){return e.name===l}));u>-1&&(r[a].fieldIdx=u,r[a].value=l)}},i=0,o=Object.keys(n);i3&&void 0!==arguments[3]?arguments[3]:{},o=t.type;if(!o||!n.hasOwnProperty(o)||!t.config)return null;var l=new n[o]({id:t.id,dataId:a,label:t.config.label,color:t.config.color,isVisible:t.config.isVisible,hidden:t.config.hidden,highlightColor:t.config.highlightColor}),u=l.getLayerColumns();if(Object.keys(u).length){var s=C(r,t.config.columns,u);if(s)l.updateLayerConfig({columns:s});else if(!i.allowEmptyColumn)return null}l=k(r,l,t);var c=t.config.textLabel&&l.config.textLabel?P(r,l.config.textLabel,t.config.textLabel):l.config.textLabel,d=l.copyLayerConfig(l.config.visConfig,t.config.visConfig||{},{shallowCopy:["colorRange","strokeColorRange"]});return l.updateLayerConfig({visConfig:d,textLabel:c}),l}var j=[{merge:O,prop:"layers",toMergeProp:"layerToBeMerged"},{merge:_,prop:"filters",toMergeProp:"filterToBeMerged"},{merge:x,prop:"interactionConfig",toMergeProp:"interactionToBeMerged"},{merge:S,prop:"layerBlending"},{merge:M,prop:"splitMaps",toMergeProp:"splitMapsToBeMerged"},{merge:T,prop:"animationConfig"}];t.VIS_STATE_MERGERS=j},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getValueFunc=g,t.getScaleFunctor=v,t.getGetValue=b,t.getDimensionSortedBins=A,t.getDimensionValueDomain=_,t.getDimensionScale=O,t.getAggregatedData=x,t.default=t.defaultDimensions=t.defaultElevationDimension=t.defaultColorDimension=t.defaultAggregation=t.DECK_AGGREGATION_MAP=void 0;var a,i=r(n(5)),o=r(n(7)),l=r(n(80)),u=r(n(4)),s=n(218),c=n(61),d=n(997),f=n(41);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.hexagons?Object.assign({data:e.hexagons},e):e.layerData?Object.assign({data:e.layerData},e):e}function x(e,t,n,r){var a=(0,t[e.triggers.aggregator.prop])(t,r);this.setState({layerData:E(a)})}t.DECK_AGGREGATION_MAP=m;var M={key:"position",updateSteps:[{key:"aggregate",triggers:{cellSize:{prop:"cellSize"},position:{prop:"getPosition",updateTrigger:"getPosition"},aggregator:{prop:"gridAggregator"}},updater:x}]};function w(e,t,n){return function(n){var r=e.sortedBins,a=e.scaleFunc,i=r.binMap[n.index];if(i&&0===i.counts)return t.nullValue;var o=i&&i.value,l=a.domain();return o>=l[0]&&o<=l[l.length-1]?a(o):t.nullValue}}t.defaultAggregation=M;var S={key:"fillColor",accessor:"getFillColor",getPickingInfo:function(e,t){var n=e.sortedBins;return{colorValue:n.binMap[t.index]&&n.binMap[t.index].value}},nullValue:[0,0,0,0],updateSteps:[{key:"getValue",triggers:{value:{prop:"getColorValue",updateTrigger:"getColorValue"},weight:{prop:"getColorWeight",updateTrigger:"getColorWeight"},aggregation:{prop:"colorAggregation"}},updater:b},{key:"getBins",triggers:{_filterData:{prop:"_filterData",updateTrigger:"_filterData"}},updater:A},{key:"getDomain",triggers:{lowerPercentile:{prop:"lowerPercentile"},upperPercentile:{prop:"upperPercentile"},scaleType:{prop:"colorScaleType"}},updater:_},{key:"getScaleFunc",triggers:{domain:{prop:"colorDomain"},range:{prop:"colorRange"},scaleType:{prop:"colorScaleType"}},onSet:{props:"onSetColorDomain"},updater:O}],getSubLayerAccessor:w};t.defaultColorDimension=S;var T={key:"elevation",accessor:"getElevation",getPickingInfo:function(e,t){var n=e.sortedBins;return{elevationValue:n.binMap[t.index]&&n.binMap[t.index].value}},nullValue:-1,updateSteps:[{key:"getValue",triggers:{value:{prop:"getElevationValue",updateTrigger:"getElevationValue"},weight:{prop:"getElevationWeight",updateTrigger:"getElevationWeight"},aggregation:{prop:"elevationAggregation"}},updater:b},{key:"getBins",triggers:{_filterData:{prop:"_filterData",updateTrigger:"_filterData"}},updater:A},{key:"getDomain",triggers:{lowerPercentile:{prop:"elevationLowerPercentile"},upperPercentile:{prop:"elevationUpperPercentile"},scaleType:{prop:"elevationScaleType"}},updater:_},{key:"getScaleFunc",triggers:{domain:{prop:"elevationDomain"},range:{prop:"elevationRange"},scaleType:{prop:"elevationScaleType"}},onSet:{props:"onSetElevationDomain"},updater:O}],getSubLayerAccessor:w};t.defaultElevationDimension=T;var C=[S,T];t.defaultDimensions=C;var L=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.state=h({layerData:{},dimensions:{}},t.initialState),this.dimensionUpdaters={},this.aggregationUpdater={},this._addDimension(t.dimensions||C),this._addAggregation(t.aggregation||M)}return(0,o.default)(e,[{key:"updateAllDimensions",value:function(e){var t=[];for(var n in this.dimensionUpdaters){var r=this._accumulateUpdaters(0,e,this.dimensionUpdaters[n]);t=t.concat(r)}t.forEach((function(e){return"function"==typeof e&&e()}))}},{key:"updateAggregation",value:function(e,t){this._accumulateUpdaters(0,e,this.aggregationUpdater).forEach((function(e){return"function"==typeof e&&e(t)}))}},{key:"updateState",value:function(e,t){var n=e.oldProps,r=e.props,a=e.changeFlags;if(a.dataChanged)return this.updateAggregation(r,t),this.updateAllDimensions(r),this.state;var i=this._getAggregationChanges(n,r,a);return i&&i.length?(i.forEach((function(e){return"function"==typeof e&&e(t)})),this.updateAllDimensions(r)):(this._getDimensionChanges(n,r,a)||[]).forEach((function(e){return"function"==typeof e&&e()})),this.state}},{key:"setState",value:function(e){this.state=Object.assign({},this.state,e)}},{key:"_setDimensionState",value:function(e,t){this.setState({dimensions:Object.assign({},this.state.dimensions,(0,u.default)({},e,Object.assign({},this.state.dimensions[e],t)))})}},{key:"_addAggregation",value:function(e){this.aggregationUpdater=e}},{key:"_addDimension",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var n=t.key;e.dimensionUpdaters[n]=t}))}},{key:"_needUpdateStep",value:function(e,t,n,r){return Object.values(e.triggers).some((function(e){return e.updateTrigger?r.updateTriggersChanged&&(r.updateTriggersChanged.all||r.updateTriggersChanged[e.updateTrigger]):t[e.prop]!==n[e.prop]}))}},{key:"_accumulateUpdaters",value:function(e,t,n){for(var r=[],a=e;a-1&&(i=i.concat(this._accumulateUpdaters(o,n,e))),i}},{key:"_getAggregationChanges",value:function(e,t,n){var r=this._getAllUpdaters(this.aggregationUpdater,e,t,n);return r.length?r:null}},{key:"_getDimensionChanges",value:function(e,t,n){var r=[];for(var a in this.dimensionUpdaters){var i=this.dimensionUpdaters[a],o=this._getAllUpdaters(i,e,t,n);r=r.concat(o)}return r.length?r:null}},{key:"getUpdateTriggers",value:function(e){var t=this,n=e.updateTriggers||{},r={},a=function(a){var i=t.dimensionUpdaters[a],o=i.accessor,u=i.updateSteps;r[o]={},u.forEach((function(t){Object.values(t.triggers||[]).forEach((function(t){var a=t.prop,i=t.updateTrigger;if(i){var u=n[i];"object"!==(0,l.default)(u)||Array.isArray(u)?void 0!==u&&(r[o][a]=u):Object.assign(r[o],u)}else r[o][a]=e[a]}))}))};for(var i in this.dimensionUpdaters)a(i);return r}},{key:"getPickingInfo",value:function(e,t){var n=e.info,r=null;if(n.picked&&n.index>-1){var a=this.state.layerData.data[n.index],i={};for(var o in this.dimensionUpdaters){var l=this.dimensionUpdaters[o].getPickingInfo;"function"==typeof l&&(i=Object.assign({},i,l(this.state.dimensions[o],a,t)))}r=Object.assign(i,a,{points:a.filteredPoints||a.points})}return Object.assign(n,{picked:Boolean(r),object:r})}},{key:"getAccessor",value:function(e,t){return this.dimensionUpdaters.hasOwnProperty(e)?this.dimensionUpdaters[e].getSubLayerAccessor(this.state.dimensions[e],this.dimensionUpdaters[e],t):y}}],[{key:"defaultDimensions",value:function(){return C}}]),e}();t.default=L,L.getDimensionScale=O},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.aggregateRequiredColumns=t.getFilterDataFunc=t.getValueAggrFunc=t.pointPosResolver=t.pointPosAccessor=void 0;var a=r(n(4)),i=r(n(36)),o=r(n(5)),l=r(n(7)),u=r(n(99)),s=r(n(9)),c=r(n(10)),d=r(n(8)),f=r(n(157)),p=r(n(146)),h=n(158),m=n(997),g=n(41);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t=e[n][0]&&t<=e[n][1]}))}};t.getFilterDataFunc=O;var E=function(e){return e.colors.map(h.hexToRgb)},x=["lat","lng"];t.aggregateRequiredColumns=x;var M=function(e){(0,s.default)(n,e);var t=b(n);function n(e){var r;return(0,o.default)(this,n),(r=t.call(this,e)).getPositionAccessor=function(e){return A(r.config.columns)(e)},r.getColorRange=(0,f.default)(E),r}return(0,l.default)(n,[{key:"isAggregated",get:function(){return!0}},{key:"requiredLayerColumns",get:function(){return x}},{key:"columnPairs",get:function(){return this.defaultPointColumnPairs}},{key:"noneLayerDataAffectingProps",get:function(){return[].concat((0,i.default)((0,u.default)((0,d.default)(n.prototype),"noneLayerDataAffectingProps",this)),["enable3d","colorRange","colorDomain","sizeRange","sizeScale","sizeDomain","percentile","coverage","elevationPercentile","elevationScale","enableElevationZoomFactor"])}},{key:"visualChannels",get:function(){return{color:{aggregation:"colorAggregation",channelScaleType:g.CHANNEL_SCALES.colorAggr,defaultMeasure:"property.pointCount",domain:"colorDomain",field:"colorField",key:"color",property:"color",range:"colorRange",scale:"colorScale"},size:{aggregation:"sizeAggregation",channelScaleType:g.CHANNEL_SCALES.sizeAggr,condition:function(e){return e.visConfig.enable3d},defaultMeasure:"property.pointCount",domain:"sizeDomain",field:"sizeField",key:"size",property:"height",range:"sizeRange",scale:"sizeScale"}}}},{key:"getVisualChannelDescription",value:function(e){var t=this.visualChannels[e],n=t.range,r=t.field,a=t.defaultMeasure,i=t.aggregation,o=this.config[r];return{label:this.visConfigSettings[n].label,measure:o?"".concat(this.config.visConfig[i]," of ").concat(o.displayName||o.name):a}}},{key:"getHoverData",value:function(e){return e}},{key:"updateLayerVisualChannel",value:function(e,t){e.data,e.dataContainer;this.validateVisualChannel(t)}},{key:"validateVisualChannel",value:function(e){this.validateFieldType(e),this.validateAggregationType(e),this.validateScale(e)}},{key:"validateAggregationType",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.aggregation,i=this.getAggregationOptions(e);r&&(i.length?i.includes(this.config.visConfig[r])||this.updateLayerVisConfig((0,a.default)({},r,i[0])):this.updateLayerConfig((0,a.default)({},n,null)))}},{key:"getAggregationOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.channelScaleType;return Object.keys(this.config[n]?g.FIELD_OPTS[this.config[n].type].scale[r]:g.DEFAULT_AGGREGATION[r])}},{key:"getScaleOptions",value:function(e){var t=this.visualChannels[e],n=t.field,r=t.aggregation,a=t.channelScaleType,i=this.config.visConfig[r];return this.config[n]?g.FIELD_OPTS[this.config[n].type].scale[a][i]:g.DEFAULT_AGGREGATION[a][i]}},{key:"updateLayerDomain",value:function(e,t){return this}},{key:"updateLayerMeta",value:function(e,t){var n=this.getPointsBounds(e,t);this.updateMeta({bounds:n})}},{key:"calculateDataAttribute",value:function(e,t){e.dataContainer;for(var n=e.filteredIndex,r=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=1e4,n=e.length>t?(0,s.getSampleData)(e,t):e,r=n.filter((function(e){return e&&e.geometry&&e.geometry.coordinates&&e.geometry.coordinates.length}));try{return(0,u.default)({type:"FeatureCollection",features:r})}catch(e){return null}},t.getGeojsonFeatureTypes=function(e){for(var t={},n=0;n=-90}function l(e){return Number.isFinite(e)&&e<=180&&e>=-180}function u(e){return Array.isArray(e)&&4===e.length&&[e[0],e[2]].every(l)&&[e[1],e[3]].every(o)?e:null}},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getMapStyles=y,t.getInitialInputStyle=x,t.set3dBuildingColorUpdater=t.addCustomMapStyleUpdater=t.inputMapStyleUpdater=t.loadCustomMapStyleUpdater=t.resetMapConfigMapStyleUpdater=t.receiveMapConfigUpdater=t.requestMapStylesUpdater=t.loadMapStyleErrUpdater=t.loadMapStylesUpdater=t.mapStyleChangeUpdater=t.mapConfigChangeUpdater=t.initMapStyleUpdater=t.INITIAL_MAP_STYLE=void 0;var i=a(n(4)),o=r(n(174)),l=a(n(176)),u=n(1011),s=n(41),c=n(86),d=n(570),f=n(587),p=n(250),h=n(158);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0?i:this.props.value0,d=a-i,f=(o-c)/d*100,p=(c-i)/d*100;return m.default.createElement(S,{className:(0,v.default)("kg-slider",E(E({},t),{},{disabled:n})),ref:this.ref,isRanged:r,vertical:l},m.default.createElement(w,{className:"kg-range-slider",vertical:l,ref:this.track},m.default.createElement(b.default,{left:this.calcHandleLeft0(f,p),valueListener:this.slide0Listener,sliderHandleWidth:u,display:r,vertical:l,showTooltip:s,track:this.track}),m.default.createElement(b.default,{left:this.calcHandleLeft1(f,p),valueListener:this.slide1Listener,sliderHandleWidth:u,vertical:l,value:o,showTooltip:s,track:this.track}),m.default.createElement(A.default,{width:f,v0Left:p,enableBarDrag:this.props.enableBarDrag,sliderBarListener:this.sliderBarListener,vertical:l,track:this.track,setAnchor:this._setAnchor})))}}]),n}(m.Component);t.default=T,(0,p.default)(T,"propTypes",{title:g.default.string,isRanged:g.default.bool,value0:g.default.number,value1:g.default.number,minValue:g.default.number,maxValue:g.default.number,sliderHandleWidth:g.default.number,onSlider0Change:g.default.func,onInput0Change:g.default.func,onSlider1Change:g.default.func,onInput1Change:g.default.func,onSliderBarChange:g.default.func,step:g.default.number,enableBarDrag:g.default.bool,showTooltip:g.default.bool}),(0,p.default)(T,"defaultProps",{title:"",isRanged:!0,value0:0,value1:100,minValue:0,maxValue:100,step:1,sliderHandleWidth:12,enableBarDrag:!1,onSlider0Change:M,onInput0Change:M,onSlider1Change:M,onInput1Change:M,onSliderBarChange:M,disabled:!1,vertical:!1,showTooltip:!1})},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.observeDimensions=f,t.unobserveDimensions=p,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,t=(0,o.useRef)(null),n=(0,o.useState)(null),r=(0,a.default)(n,2),i=r[0],l=r[1];return(0,o.useEffect)((function(){var n=t.current;if(n){var r=!1;return f(n,(function(e){if(!r){var t=h(n,e);t&&l(t)}}),e),function(){r=!0,p(n)}}}),[e]),[t,i]};var a=r(n(55)),i=r(n(390)),o=n(0),l=r(n(905));function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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 i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:100,r=d(),a=n>0?(0,i.default)(t,n):t;r.subscribe(e,(function(t){return a(h(e,t))}))}function p(e){d().unsubscribe(e)}function h(e,t){if(t.contentRect){var n=t.contentRect;return{width:n.width,height:n.height}}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return{width:r.width,height:r.height}}return null}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AnimationWindowControl=t.IconButton=void 0;var i,o,l,u,s=r(n(55)),c=r(n(27)),d=r(n(4)),f=r(n(16)),p=a(n(0)),h=r(n(15)),m=r(n(49)),g=n(52),v=n(42),y=r(n(596)),b=n(59),A=n(41),_=n(76),O=h.default.div(i||(i=(0,f.default)(["\n display: flex;\n position: relative;\n\n &.disabled {\n opacity: 0.4;\n pointer-events: none;\n }\n"]))),E=h.default.div(o||(o=(0,f.default)(["\n display: flex;\n align-items: center;\n\n .animation-control__speed-slider {\n left: 0;\n }\n"]))),x=(0,h.default)(v.Button)(l||(l=(0,f.default)(["\n width: ","px;\n height: 32px;\n color: ",";\n background-color: ",";\n border-radius: 4px;\n margin-left: 7px;\n border: 0;\n padding: 0;\n\n .__react_component_tooltip {\n font-family: ",";\n }\n svg {\n margin: 0;\n }\n &.active {\n background-color: ",";\n }\n"])),(function(e){return e.collapsed?0:32}),(function(e){return e.theme.playbackButtonColor}),(function(e){return e.theme.playbackButtonBgColor}),(function(e){return e.theme.fontFamily}),(function(e){return e.theme.playbackButtonActBgColor}));function M(){}t.IconButton=x;var w={reset:function(e){return p.default.createElement(b.Reset,{height:"18px"})},play:function(e){return p.default.createElement(b.Play,{height:"18px"})},pause:function(e){return p.default.createElement(b.Pause,{height:"18px"})},speed:b.Rocket,animationFree:b.FreeWindow,animationIncremental:b.AnchorWindow},S=(u={},(0,d.default)(u,A.ANIMATION_WINDOW.free,{id:A.ANIMATION_WINDOW.free,icon:w.animationFree,tooltip:"tooltip.animationByWindow"}),(0,d.default)(u,A.ANIMATION_WINDOW.incremental,{id:A.ANIMATION_WINDOW.incremental,icon:w.animationIncremental,tooltip:"tooltip.animationByIncremental"}),u),T=function(e){var t=e.onClick,n=e.selected,r=e.onHide,a=e.height,i=e.animationItems,o=e.btnStyle,l=void 0===o?{}:o;return p.default.createElement("div",null,Object.values(i).filter((function(e){return e.id!==n})).map((function(e){return p.default.createElement(x,(0,c.default)({key:e.id,"data-tip":!0,"data-for":"".concat(e.id,"-tooltip"),className:"playback-control-button",onClick:function(){t(e.id),r()}},l),p.default.createElement(e.icon,{height:a}),e.tooltip?p.default.createElement(v.Tooltip,{id:"".concat(e.id,"-tooltip"),effect:"solid",place:"top"},p.default.createElement(g.FormattedMessage,{id:e.tooltip})):null)})))};function C(e){return function(t){var n=t.isAnimatable,r=void 0===n||n,a=t.isAnimating,i=t.width,o=t.speed,l=t.animationWindow,u=void 0===l?A.ANIMATION_WINDOW.free:l,f=t.setFilterAnimationWindow,h=t.updateAnimationSpeed,y=t.pauseAnimation,b=void 0===y?M:y,C=t.resetAnimation,L=void 0===C?M:C,P=t.startAnimation,k=void 0===P?M:P,D=t.playbackIcons,R=void 0===D?w:D,j=t.animationItems,I=void 0===j?S:j,F=t.buttonStyle,N=void 0===F?"secondary":F,B=t.buttonHeight,z=void 0===B?"20px":B,U=(0,p.useState)(!1),V=(0,s.default)(U,2),H=V[0],Y=V[1],W=(0,p.useState)(!1),G=(0,s.default)(W,2),q=G[0],X=G[1],Z=(0,p.useCallback)((function(){X(!q)}),[q,X]),K=N?(0,d.default)({},N,!0):{},J=(0,p.useCallback)((function(){H?window.setTimeout((function(){return Y(!1)}),200):Y(!0)}),[H,Y]);return p.default.createElement(O,{className:(0,m.default)("playback-controls",{disabled:!r}),style:{width:"".concat(i,"px")}},f?p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-window",className:(0,m.default)("playback-control-button",{active:q}),onClick:Z},K),function(){if(I[u]){var e=I[u].icon;return p.default.createElement(e,{height:z})}return null}(),I[u]&&I[u].tooltip?p.default.createElement(v.Tooltip,{id:"animate-window",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:I[u].tooltip})):null):null,q?p.default.createElement(T,{onClick:f,selected:u,onHide:Z,height:z,btnStyle:K,animationItems:I}):null,q||!h?null:p.default.createElement(E,null,p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-speed",className:"playback-control-button"},K,{onClick:J}),p.default.createElement(R.speed,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-speed",place:"top",delayShow:500,effect:"solid"},p.default.createElement("span",null,(0,_.preciseRound)(o,1),"x"))),H?p.default.createElement(e,{onHide:J,updateAnimationSpeed:h,speed:o}):null),q?null:p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-reset",className:"playback-control-button",onClick:L},K),p.default.createElement(R.reset,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-reset",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:"tooltip.reset"}))),q?null:p.default.createElement(x,(0,c.default)({"data-tip":!0,"data-for":"animate-play-pause",className:(0,m.default)("playback-control-button",{active:a}),onClick:a?b:k,hide:H},K),a?p.default.createElement(R.pause,{height:z}):p.default.createElement(R.play,{height:z}),p.default.createElement(v.Tooltip,{id:"animate-play-pause",place:"top",delayShow:500,effect:"solid"},p.default.createElement(g.FormattedMessage,{id:a?"tooltip.pause":"tooltip.play"}))))}}t.AnimationWindowControl=T,C.deps=[y.default];var L=C;t.default=L},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var i,o,l=r(n(5)),u=r(n(7)),s=r(n(17)),c=r(n(9)),d=r(n(10)),f=r(n(8)),p=r(n(4)),h=r(n(16)),m=a(n(0)),g=r(n(15)),v=r(n(244)),y=r(n(133)),b=n(41);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 n,r=(0,f.default)(e);if(t){var a=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var _=g.default.div(i||(i=(0,h.default)(["\n position: relative;\n"]))),O=g.default.div(o||(o=(0,h.default)(["\n position: absolute;\n bottom: 50px;\n right: calc(0% - 32px);\n width: 180px;\n padding: 2px 8px 2px 12px;\n background-color: ",";\n box-shadow: -2px -2px 0 0 rgba(0, 0, 0, 0.1);\n\n .kg-range-slider__input {\n width: 48px;\n padding: 6px;\n }\n"])),(function(e){return e.theme.bottomWidgetBgd}));function E(e){var t=function(t){(0,c.default)(r,t);var n=A(r);function r(){var e;(0,l.default)(this,r);for(var t=arguments.length,a=new Array(t),i=0;iA.default.innerWidth&&(c[d]=A.default.innerWidth-r.width-i),c.top<0?c.top=i:c.top+r.height>A.default.innerHeight&&(c.top=A.default.innerHeight-r.height-i),c};t.getChildPos=C,g.canUseDOM&&(document.body?T():document.addEventListener("DOMContentLoaded",T));var L=0;var P={content:{top:0,left:0,border:0,right:"auto",bottom:"auto",padding:"0px 0px 0px 0px"},overlay:{right:"auto",bottom:"auto",width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0)"}},k=function(e){(0,s.default)(n,e);var t=O(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0&&e.height>0&&n.updateMap(e)}})),(0,p.default)((0,s.default)(t),"layersSelector",(function(e){return e.layers})),(0,p.default)((0,s.default)(t),"layerDataSelector",(function(e){return e.layerData})),(0,p.default)((0,s.default)(t),"mapLayersSelector",(function(e){return e.mapLayers})),(0,p.default)((0,s.default)(t),"layerOrderSelector",(function(e){return e.layerOrder})),(0,p.default)((0,s.default)(t),"layersToRenderSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,t.mapLayersSelector,T.prepareLayersToRender)),(0,p.default)((0,s.default)(t),"layersForDeckSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,T.prepareLayersForDeck)),(0,p.default)((0,s.default)(t),"filtersSelector",(function(e){return e.filters})),(0,p.default)((0,s.default)(t),"polygonFilters",(0,y.createSelector)(t.filtersSelector,(function(e){return e.filter((function(e){return e.type===L.FILTER_TYPES.polygon}))}))),(0,p.default)((0,s.default)(t),"mapboxLayersSelector",(0,y.createSelector)(t.layersSelector,t.layerDataSelector,t.layerOrderSelector,t.layersToRenderSelector,M.generateMapboxLayers)),(0,p.default)((0,s.default)(t),"_onCloseMapPopover",(function(){t.props.visStateActions.onLayerClick(null)})),(0,p.default)((0,s.default)(t),"_onLayerSetDomain",(function(e,n){t.props.visStateActions.layerConfigChange(t.props.layers[e],{colorDomain:n})})),(0,p.default)((0,s.default)(t),"_handleMapToggleLayer",(function(e){var n=t.props,r=n.index,a=void 0===r?0:r;n.visStateActions.toggleLayerForMap(a,e)})),(0,p.default)((0,s.default)(t),"_onMapboxStyleUpdate",(function(){t.previousLayers={},t._updateMapboxLayers(),"function"==typeof t.props.onMapStyleLoaded&&t.props.onMapStyleLoaded(t._map)})),(0,p.default)((0,s.default)(t),"_setMapboxMap",(function(e){if(!t._map&&e){if(t._map=e.getMap(),!t._map)return;t._map.on("style.load",t._onMapboxStyleUpdate),t._map.on("render",(function(){"function"==typeof t.props.onMapRender&&t.props.onMapRender(t._map)}))}t.props.getMapboxRef&&t.props.getMapboxRef(e,t.props.index)})),(0,p.default)((0,s.default)(t),"_onBeforeRender",(function(e){var n=e.gl;(0,w.setLayerBlending)(n,t.props.layerBlending)})),(0,p.default)((0,s.default)(t),"_onDeckError",(function(e,n){var r="An error in deck.gl: ".concat(e.message," in ").concat(n.id),a="".concat(n.id,"-").concat(e.message);t._deckGLErrorsElapsed=t._deckGLErrorsElapsed||{};var i=t._deckGLErrorsElapsed[a];(!i||i0&&r>0?e:a),{},{transitionDuration:0}));"function"==typeof t.props.onViewStateChange&&t.props.onViewStateChange(i),t.props.mapStateActions.updateMap(i)})),(0,p.default)((0,s.default)(t),"_toggleMapControl",(function(e){var n=t.props,r=n.index;n.uiStateActions.toggleMapControl(e,r)})),t.previousLayers={},t._deck=null,t._ref=(0,h.createRef)(),t}return(0,u.default)(d,[{key:"componentDidMount",value:function(){(0,k.observeDimensions)(this._ref.current,this._handleResize)}},{key:"componentWillUnmount",value:function(){this._map&&(this._map.off("style.load"),this._map.off("render")),(0,k.unobserveDimensions)(this._ref.current)}},{key:"_onDeckInitialized",value:function(e){this.props.onDeckInitialized&&this.props.onDeckInitialized(this._deck,e)}},{key:"_renderMapPopover",value:function(t){var n=this.props,r=n.mapState,a=n.hoverInfo,o=n.clicked,l=n.datasets,u=n.interactionConfig,s=n.layers,c=n.mousePos,d=c.mousePosition,f=c.coordinate,p=c.pinned;if(!d||!u.tooltip)return null;var m=(0,T.getLayerHoverProp)({interactionConfig:u,hoverInfo:a,layers:s,layersToRender:t,datasets:l}),g=!!u.tooltip.config&&u.tooltip.config.compareMode,v={},y=null;if(p||o){var A=new b.default(r),_=o?o.lngLat:p.coordinate;v=this._getHoverXY(A,_),y=(0,T.getLayerHoverProp)({interactionConfig:u,hoverInfo:o,layers:s,layersToRender:t,datasets:l}),m&&y&&(m.primaryData=y.data,m.compareType=u.tooltip.config.compareType)}var O={onClose:this._onCloseMapPopover,zoom:r.zoom,container:this._deck?this._deck.canvas:void 0};return h.default.createElement(P.default,null,y&&h.default.createElement(e,(0,i.default)({},v,O,{layerHoverProp:y,coordinate:u.coordinate.enabled&&(p||{}).coordinate,frozen:!0,isBase:g})),m&&(!y||g)&&h.default.createElement(e,(0,i.default)({x:d[0],y:d[1]},O,{layerHoverProp:m,frozen:!1,coordinate:u.coordinate.enabled&&f})))}},{key:"_getHoverXY",value:function(e,t){var n=e&&t?e.project(t):null;return n&&{x:n[0],y:n[1]}}},{key:"_renderDeckOverlay",value:function(e){var t,n=this,r=this.props,a=r.mapState,o=r.mapStyle,l=r.layerData,u=r.layerOrder,s=r.layers,c=r.visStateActions,d=r.mapboxApiAccessToken,f=r.mapboxApiUrl,p=(null===(t=this.props.deckGlProps)||void 0===t?void 0:t.layers)||[];if(l&&l.length){var m=u.slice().reverse().filter((function(t){return e[s[t].id]})).reduce((function(e,t){var r={onSetLayerDomain:function(e){return n._onLayerSetDomain(t,e)}},a=(0,T.renderDeckGlLayer)(n.props,r,t);return e.concat(a||[])}),[]);p=p.concat(m)}return o.visibleLayerGroups["3d building"]&&p.push(new C.default({id:"_keplergl_3d-building",mapboxApiAccessToken:d,mapboxApiUrl:f,threeDBuildingColor:o.threeDBuildingColor,updateTriggers:{getFillColor:o.threeDBuildingColor}})),h.default.createElement(v.default,(0,i.default)({},this.props.deckGlProps,{viewState:a,id:"default-deckgl-overlay",layers:p,onBeforeRender:this._onBeforeRender,onHover:c.onLayerHover,onClick:c.onLayerClick,onError:this._onDeckError,ref:function(e){e&&e.deck&&!n._deck&&(n._deck=e.deck)},onWebGLInitialized:function(e){return n._onDeckInitialized(e)}}))}},{key:"_updateMapboxLayers",value:function(){var e=this.mapboxLayersSelector(this.props);(Object.keys(e).length||Object.keys(this.previousLayers).length)&&((0,M.updateMapboxLayers)(this._map,e,this.previousLayers),this.previousLayers=e)}},{key:"_renderMapboxOverlays",value:function(){this._map&&this._map.isStyleLoaded()&&this._updateMapboxLayers()}},{key:"_renderMap",value:function(){var e=this.props,r=e.mapState,a=e.mapStyle,o=e.mapStateActions,l=e.layers,u=e.MapComponent,s=e.datasets,c=e.mapboxApiAccessToken,d=e.mapboxApiUrl,f=e.mapControls,m=e.isExport,g=e.locale,v=e.uiStateActions,y=e.visStateActions,b=e.interactionConfig,A=e.editor,_=e.index,O=e.primary,E=this.layersToRenderSelector(this.props),x=this.layersForDeckSelector(this.props),M=j(j({},r),{},{width:"100%",height:"100%",preserveDrawingBuffer:!0,mapboxApiAccessToken:c,mapboxApiUrl:d,onViewportChange:this._onViewportChange,transformRequest:S.transformRequest}),w=(f.mapDraw||{}).active,T=l.find((function(e){return e.id===L.GEOCODER_LAYER_ID})),C=Boolean(r.isSplit);return h.default.createElement(h.default.Fragment,null,h.default.createElement(t,{datasets:s,availableLocales:Object.keys(D.LOCALE_CODES),dragRotate:r.dragRotate,isSplit:C,primary:O,isExport:m,layers:l,layersToRender:E,mapIndex:_,mapControls:f,readOnly:this.props.readOnly,scale:r.scale||1,top:b.geocoder&&b.geocoder.enabled?52:0,editor:A,locale:g,onTogglePerspective:o.togglePerspective,onToggleSplitMap:o.toggleSplitMap,onMapToggleLayer:this._handleMapToggleLayer,onToggleMapControl:this._toggleMapControl,onSetEditorMode:y.setEditorMode,onSetLocale:v.setLocale,onToggleEditorVisibility:y.toggleEditorVisibility}),h.default.createElement(u,(0,i.default)({},M,{key:"bottom",ref:this._setMapboxMap,mapStyle:a.bottomMapStyle,getCursor:this.props.hoverInfo?function(){return"pointer"}:void 0,onMouseMove:this.props.visStateActions.onMouseMove}),this._renderDeckOverlay(x),this._renderMapboxOverlays(),h.default.createElement(n,{index:_,datasets:s,editor:A,filters:this.polygonFilters(this.props),isEnabled:w,layers:l,layersToRender:E,onDeleteFeature:y.deleteFeature,onSelect:y.setSelectedFeature,onUpdate:y.setFeatures,onTogglePolygonFilter:y.setPolygonFilterLayer,style:{pointerEvents:w?"all":"none",position:"absolute",display:A.visible?"block":"none"}})),a.topMapStyle||T?h.default.createElement("div",{style:F.top},h.default.createElement(u,(0,i.default)({},M,{key:"top",mapStyle:a.topMapStyle}),this._renderDeckOverlay((0,p.default)({},L.GEOCODER_LAYER_ID,!0)))):null,this._renderMapPopover(E),C&&1!==_?null:h.default.createElement(N,null))}},{key:"render",value:function(){var e=this.props,t=e.mapState,n=e.mapStyle;return h.default.createElement(E.StyledMapContainer,{ref:this._ref,style:F.container,globe:t.globe},n.bottomMapStyle&&this._renderMap())}}]),d}(h.Component);return(0,p.default)(r,"propTypes",{datasets:m.default.object,interactionConfig:m.default.object.isRequired,layerBlending:m.default.string.isRequired,layerOrder:m.default.arrayOf(m.default.any).isRequired,layerData:m.default.arrayOf(m.default.any).isRequired,layers:m.default.arrayOf(m.default.any).isRequired,filters:m.default.arrayOf(m.default.any).isRequired,mapState:m.default.object.isRequired,mapControls:m.default.object.isRequired,mapStyle:m.default.object.isRequired,mousePos:m.default.object.isRequired,mapboxApiAccessToken:m.default.string.isRequired,mapboxApiUrl:m.default.string,visStateActions:m.default.object.isRequired,mapStateActions:m.default.object.isRequired,uiStateActions:m.default.object.isRequired,primary:m.default.bool,readOnly:m.default.bool,isExport:m.default.bool,clicked:m.default.object,hoverInfo:m.default.object,mapLayers:m.default.object,onMapToggleLayer:m.default.func,onMapStyleLoaded:m.default.func,onMapRender:m.default.func,getMapboxRef:m.default.func,index:m.default.number}),(0,p.default)(r,"defaultProps",{MapComponent:g.default,deckGlProps:{},index:0,primary:!0}),r.displayName="MapContainer",r}t.Attribution=N,B.deps=[_.default,O.default,x.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StyledLayerName=void 0;var a,i,o=r(n(16)),l=r(n(0)),u=r(n(15)),s=n(42),c=n(59),d=r(n(1)),f=n(76),p=n(575),h=(0,u.default)(s.CenterFlexbox)(a||(a=(0,o.default)(["\n color: ",";\n font-size: 12px;\n letter-spacing: 0.43px;\n text-transform: capitalize;\n\n svg {\n margin-right: 4px;\n }\n"])),(function(e){return e.theme.textColorHl}));t.StyledLayerName=h;var m=u.default.table(i||(i=(0,o.default)(["\n & .row__delta-value {\n text-align: right;\n\n &.positive {\n color: ",";\n }\n\n &.negative {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.primaryBtnBgd}),(function(e){return e.theme.negativeBtnActBgd})),g=function(e){var t=e.name,n=e.value,r=e.deltaValue,a=e.url;!a&&n&&"string"==typeof n&&n.match(/^http/)&&(a=n);var i=//.test(t);return l.default.createElement("tr",{className:"row",key:t},l.default.createElement("td",{className:"row__name"},t),l.default.createElement("td",{className:"row__value"},i?l.default.createElement("img",{src:n}):a?l.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:a},n):n),(0,f.notNullorUndefined)(r)&&l.default.createElement("td",{className:"row__delta-value ".concat("+"===r.toString().charAt(0)?"positive":"negative")},r))},v=function(e){var t=e.fieldsToShow,n=e.fields,r=e.data,a=e.primaryData,i=e.compareType;return l.default.createElement("tbody",null,t.map((function(e){return l.default.createElement(y,{key:e.name,item:e,fields:n,data:r,primaryData:a,compareType:i})})))},y=function(e){var t=e.item,n=e.fields,r=e.data,a=e.primaryData,i=e.compareType,o=n.findIndex((function(e){return e.name===t.name}));if(o<0)return null;var u=n[o],s=(0,p.getTooltipDisplayValue)({item:t,field:u,data:r,fieldIdx:o}),c=(0,p.getTooltipDisplayDeltaValue)({item:t,field:u,data:r,fieldIdx:o,primaryData:a,compareType:i});return l.default.createElement(g,{name:u.displayName||u.name,value:s,deltaValue:c})},b=function(e){var t=e.data,n=e.layer,r=n.config,a=r.colorField,i=r.sizeField;return l.default.createElement("tbody",null,l.default.createElement(g,{name:"total points",key:"count",value:t.points&&t.points.length}),a&&n.visualChannels.color?l.default.createElement(g,{name:n.getVisualChannelDescription("color").measure,key:"color",value:t.colorValue||"N/A"}):null,i&&n.visualChannels.size?l.default.createElement(g,{name:n.getVisualChannelDescription("size").measure,key:"size",value:t.elevationValue||"N/A"}):null)},A=function(){var e=function(e){var t=e.data,n=e.layer;return t&&n?l.default.createElement("div",{className:"map-popover__layer-info"},l.default.createElement(h,{className:"map-popover__layer-name"},l.default.createElement(c.Layers,{height:"12px"}),e.layer.config.label),l.default.createElement(m,null,e.layer.isAggregated?l.default.createElement(b,e):l.default.createElement(v,e))):null};return e.propTypes={fields:d.default.arrayOf(d.default.any),fieldsToShow:d.default.arrayOf(d.default.any),layer:d.default.object,data:d.default.oneOfType([d.default.arrayOf(d.default.any),d.default.object])},e};t.default=A},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(15)),l=r(n(1073));var u=function(){return(0,o.default)(l.default)(a||(a=(0,i.default)(["\n position: absolute;\n right: 32px;\n "])))};t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var a,i=r(n(5)),o=r(n(7)),l=r(n(9)),u=r(n(10)),s=r(n(8)),c=r(n(16)),d=r(n(15)),f=r(n(0));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 n,r=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var h=d.default.div(a||(a=(0,c.default)(["\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n"])));function m(){return function(e){(0,l.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"render",value:function(){return f.default.createElement(h,null,this.props.children)}}]),n}(f.default.Component)}m.deps=[]},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){var t=e.currentTime,n=e.defaultTimeFormat,r=e.timeFormat,a=e.timezone,i=(0,m.useMemo)((function(){var e=Array.isArray(t)?t:[t],i="string"==typeof r,o=(i?r:n)||y.DEFAULT_TIME_FORMAT,l=(0,A.datetimeFormatter)(a);return i?{displayDate:e.map(l(o)),displayTime:[]}:e.reduce((function(e,t){var n=o.split(" "),r=(0,p.default)(n,2),a=r[0],i=r[1],u=l(a)(t),s=i?l(i)(t):null;return e.displayDate.includes(u)||e.displayDate.push(u),s&&e.displayTime.push(s),e}),{displayDate:[],displayTime:[]})}),[t,r,n,a]),o=i.displayDate,l=i.displayTime,u=2===o.length&&2===l.length,s=l.length?l:o.length?o:null,c=o.length&&l.length?o:null;return m.default.createElement(_,null,m.default.createElement(O,{className:"animation-control__time-display"},u?m.default.createElement(E,null,m.default.createElement(S,null,m.default.createElement(M,null,o[0]),m.default.createElement(w,null,l[0])),m.default.createElement(C,null),m.default.createElement(S,null,m.default.createElement(M,null,o[1]),m.default.createElement(w,null,l[1]))):m.default.createElement(x,null,c?m.default.createElement(M,null,m.default.createElement(L,{timeValues:c})):null,s?m.default.createElement(w,null,m.default.createElement(L,{timeValues:s})):null)))}};var i,o,l,u,s,c,d,f,p=r(n(55)),h=r(n(16)),m=a(n(0)),g=r(n(15)),v=n(59),y=n(41),b=n(42),A=n(76),_=g.default.div.attrs({className:"floating-time-display"})(i||(i=(0,h.default)(["\n bottom: ",";\n display: flex;\n position: absolute;\n width: 100%;\n margin-left: -","px;\n justify-content: center;\n pointer-events: none; /* prevent padding from blocking input */\n & > * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return"calc(100% + ".concat(e.theme.bottomPanelGap,"px)")}),(function(e){return e.theme.bottomInnerPdSide})),O=g.default.div.attrs({className:"floating-time-display__inner"})(o||(o=(0,h.default)(["\n background-color: ",";\n border-radius: ","px;\n color: ",";\n display: flex;\n height: ","px;\n justify-content: center;\n min-width: ","px;\n opacity: ",";\n padding: ",";\n"])),(function(e){return e.theme.panelBackground}),(function(e){return e.theme.timeDisplayBorderRadius}),(function(e){return e.theme.titleTextColor}),(function(e){return e.theme.timeDisplayHeight}),(function(e){return e.theme.timeDisplayMinWidth}),(function(e){return e.theme.timeDisplayOpacity}),(function(e){return e.theme.timeDisplayPadding})),E=g.default.div(l||(l=(0,h.default)(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"]))),x=g.default.div(u||(u=(0,h.default)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]))),M=g.default.div.attrs({className:"animation-control__time-display__top"})(s||(s=(0,h.default)(["\n color: ",";\n display: flex;\n font-size: 12px;\n font-weight: 500;\n justify-content: center;\n"])),(function(e){return e.theme.textColor})),w=g.default.div.attrs({className:"animation-control__time-display__bottom"})(c||(c=(0,h.default)(["\n color: ",";\n display: flex;\n font-size: 14px;\n font-weight: 500;\n justify-content: center;\n"])),(function(e){return e.theme.titleTextColor})),S=g.default.div.attrs({className:"animation-control__time-value-group"})(d||(d=(0,h.default)(["\n display: flex;\n flex-direction: column;\n"]))),T=g.default.div.attrs({className:"animation-control__horizontal-bar"})(f||(f=(0,h.default)(["\n margin: 0 12px;\n"]))),C=function(){return m.default.createElement(T,null,m.default.createElement(v.Minus,{height:"12px"}))},L=function(e){var t=e.timeValues,n=void 0===t?[]:t;return m.default.createElement(b.CenterFlexbox,null,m.default.createElement("div",{className:"time-value"},n[0]),n[1]?m.default.createElement(C,null):null,n[1]?m.default.createElement("div",{className:"time-value"},n[1]):null)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(0)),l=r(n(15)),u=n(42),s=l.default.div.attrs({className:"dataset-name"})(a||(a=(0,i.default)(["\n font-weight: 500;\n font-size: 12px;\n color: ",";\n"])),(function(e){return e.theme.titleColorLT})),c=function(e){var t=e.dataset;return o.default.createElement(u.CenterFlexbox,null,o.default.createElement(u.DatasetSquare,{className:"dataset-clolor",color:t.color}),o.default.createElement(s,null,t.label))};t.default=c},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UploadAnimation=void 0;var a,i,o,l=r(n(16)),u=r(n(0)),s=r(n(15)),c=n(59),d=n(42),f=r(n(1746)),p=n(52),h=s.default.div(a||(a=(0,l.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"]))),m=s.default.div(i||(i=(0,l.default)(["\n color: ",";\n margin-right: 16px;\n margin-top: 4px;\n"])),(function(e){return e.theme.textColorLT})),g=s.default.svg(o||(o=(0,l.default)(["\n margin-right: 16px;\n\n line {\n stroke: ",";\n stroke-width: 4;\n stroke-linecap: square;\n stroke-dasharray: 5 12;\n animation: dash-animation 25s infinite linear;\n }\n circle {\n fill: ",";\n }\n\n @keyframes dash-animation {\n to {\n stroke-dashoffset: -1000;\n }\n }\n"])),(function(e){return e.theme.selectBorderColorLT}),(function(e){return e.theme.selectBorderColorLT})),v=function(){return u.default.createElement(g,{height:"5px",width:"150px"},u.default.createElement("line",{x1:"0",y1:"4",x2:"150",y2:"4"}))},y=function(e){return u.default.createElement(h,null,u.default.createElement(m,null,u.default.createElement(c.MapIcon,{height:"48px"})),u.default.createElement(v,null),e.icon&&u.default.createElement(e.icon,{height:"64px"}))};t.UploadAnimation=y;var b=function(e){var t=e.error,n=e.isLoading,r=e.providerIcon;return u.default.createElement(d.StyledExportSection,null,u.default.createElement("div",{className:"description"},u.default.createElement("div",{className:"title"},n?u.default.createElement(p.FormattedMessage,{id:"modal.statusPanel.mapUploading"}):t?u.default.createElement(p.FormattedMessage,{id:"modal.statusPanel.error"}):null)),u.default.createElement("div",{className:"selection"},n&&u.default.createElement(y,{icon:r}),t&&u.default.createElement(f.default,{error:t})))};t.default=b},function(e,t){e.exports=function(){for(var e={},t=0;t-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u)};function u(n){return 40===n?e.attempt(f,t,i?t:s)(n):91===n?e.attempt(p,t,i?e.attempt(h,t,s):s)(n):i?t(n):s(n)}function s(e){return r._balanced=!0,n(e)}},t.resolveTo=function(e,t){var n,r,a,u,s,c,d,f=e.length,p=0;for(;f--;)if(u=e[f][1],s){if("link"===u.type||"labelLink"===u.type&&u._inactive)break;"enter"===e[f][0]&&"labelLink"===u.type&&(u._inactive=!0)}else if(c){if("enter"===e[f][0]&&("labelImage"===u.type||"labelLink"===u.type)&&!u._balanced&&(s=f,"labelLink"!==u.type)){p=2;break}}else"labelEnd"===u.type&&(c=f);return n={type:"labelLink"===e[s][1].type?"link":"image",start:l(e[s][1].start),end:l(e[e.length-1][1].end)},r={type:"label",start:l(e[s][1].start),end:l(e[c][1].end)},a={type:"labelText",start:l(e[s+p+2][1].end),end:l(e[c-2][1].start)},i(d=[["enter",n,t],["enter",r,t]],d.length,0,e.slice(s+1,s+p+3)),i(d,d.length,0,[["enter",a,t]]),i(d,d.length,0,o(t.parser.constructs.insideSpan.null,e.slice(s+p+4,c-3),t)),i(d,d.length,0,[["exit",a,t],e[c-2],e[c-1],["exit",r,t]]),i(d,d.length,0,e.slice(c+1)),i(d,d.length,0,[["exit",n,t]]),i(e,s,e.length,d),e},t.resolveAll=function(e){var t,n=-1;for(;++n * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return"calc(100% + ".concat(e.theme.bottomPanelGap,"px)")}),(function(e){return e.theme.bottomInnerPdSide})),O=g.default.div.attrs({className:"floating-time-display__inner"})(o||(o=(0,h.default)(["\n background-color: ",";\n border-radius: ","px;\n color: ",";\n display: flex;\n height: ","px;\n justify-content: center;\n min-width: ","px;\n opacity: ",";\n padding: ",";\n"])),(function(e){return e.theme.panelBackground}),(function(e){return e.theme.timeDisplayBorderRadius}),(function(e){return e.theme.titleTextColor}),(function(e){return e.theme.timeDisplayHeight}),(function(e){return e.theme.timeDisplayMinWidth}),(function(e){return e.theme.timeDisplayOpacity}),(function(e){return e.theme.timeDisplayPadding})),E=g.default.div(l||(l=(0,h.default)(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"]))),x=g.default.div(u||(u=(0,h.default)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]))),M=g.default.div.attrs({className:"animation-control__time-display__top"})(s||(s=(0,h.default)(["\n color: ",";\n display: flex;\n font-size: 12px;\n font-weight: 500;\n justify-content: center;\n"])),(function(e){return e.theme.textColor})),w=g.default.div.attrs({className:"animation-control__time-display__bottom"})(c||(c=(0,h.default)(["\n color: ",";\n display: flex;\n font-size: 14px;\n font-weight: 500;\n justify-content: center;\n"])),(function(e){return e.theme.titleTextColor})),S=g.default.div.attrs({className:"animation-control__time-value-group"})(d||(d=(0,h.default)(["\n display: flex;\n flex-direction: column;\n"]))),T=g.default.div.attrs({className:"animation-control__horizontal-bar"})(f||(f=(0,h.default)(["\n margin: 0 12px;\n"]))),C=function(){return m.default.createElement(T,null,m.default.createElement(v.Minus,{height:"12px"}))},L=function(e){var t=e.timeValues,n=void 0===t?[]:t;return m.default.createElement(b.CenterFlexbox,null,m.default.createElement("div",{className:"time-value"},n[0]),n[1]?m.default.createElement(C,null):null,n[1]?m.default.createElement("div",{className:"time-value"},n[1]):null)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(0)),l=r(n(15)),u=n(40),s=l.default.div.attrs({className:"dataset-name"})(a||(a=(0,i.default)(["\n font-weight: 500;\n font-size: 12px;\n color: ",";\n"])),(function(e){return e.theme.titleColorLT})),c=function(e){var t=e.dataset;return o.default.createElement(u.CenterFlexbox,null,o.default.createElement(u.DatasetSquare,{className:"dataset-clolor",color:t.color}),o.default.createElement(s,null,t.label))};t.default=c},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UploadAnimation=void 0;var a,i,o,l=r(n(16)),u=r(n(0)),s=r(n(15)),c=n(58),d=n(40),f=r(n(1884)),p=n(51),h=s.default.div(a||(a=(0,l.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"]))),m=s.default.div(i||(i=(0,l.default)(["\n color: ",";\n margin-right: 16px;\n margin-top: 4px;\n"])),(function(e){return e.theme.textColorLT})),g=s.default.svg(o||(o=(0,l.default)(["\n margin-right: 16px;\n\n line {\n stroke: ",";\n stroke-width: 4;\n stroke-linecap: square;\n stroke-dasharray: 5 12;\n animation: dash-animation 25s infinite linear;\n }\n circle {\n fill: ",";\n }\n\n @keyframes dash-animation {\n to {\n stroke-dashoffset: -1000;\n }\n }\n"])),(function(e){return e.theme.selectBorderColorLT}),(function(e){return e.theme.selectBorderColorLT})),v=function(){return u.default.createElement(g,{height:"5px",width:"150px"},u.default.createElement("line",{x1:"0",y1:"4",x2:"150",y2:"4"}))},y=function(e){return u.default.createElement(h,null,u.default.createElement(m,null,u.default.createElement(c.MapIcon,{height:"48px"})),u.default.createElement(v,null),e.icon&&u.default.createElement(e.icon,{height:"64px"}))};t.UploadAnimation=y;var b=function(e){var t=e.error,n=e.isLoading,r=e.providerIcon;return u.default.createElement(d.StyledExportSection,null,u.default.createElement("div",{className:"description"},u.default.createElement("div",{className:"title"},n?u.default.createElement(p.FormattedMessage,{id:"modal.statusPanel.mapUploading"}):t?u.default.createElement(p.FormattedMessage,{id:"modal.statusPanel.error"}):null)),u.default.createElement("div",{className:"selection"},n&&u.default.createElement(y,{icon:r}),t&&u.default.createElement(f.default,{error:t})))};t.default=b},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(96)),l=n(39),u=function(e){var t=e.onUpdateImageSetting,n=e.cleanupExportImage,r=e.cloudProviders,a=e.currentProvider,u=e.children;return(0,i.useEffect)((function(){return t({exporting:!0}),function(){n()}}),[t,n]),(0,i.useEffect)((function(){if(a&&r&&r.length){var e=r.find((function(e){return e.name===a}));e&&e.thumbnail&&t({mapW:(0,o.default)(e,["thumbnail","width"])||l.MAP_THUMBNAIL_DIMENSION.width,mapH:(0,o.default)(e,["thumbnail","height"])||l.MAP_THUMBNAIL_DIMENSION.height,ratio:l.EXPORT_IMG_RATIOS.CUSTOM,legend:!1})}else t({mapW:l.MAP_THUMBNAIL_DIMENSION.width,mapH:l.MAP_THUMBNAIL_DIMENSION.height,ratio:l.EXPORT_IMG_RATIOS.CUSTOM,legend:!1})}),[a,r,t]),i.default.createElement(i.default.Fragment,null,u)};u.defaultProps={cloudProviders:[]};var s=u;t.default=s},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i,o=r(n(16)),l=r(n(0)),u=r(n(15)),s=r(n(430)),c=n(51),d=u.default.div(a||(a=(0,o.default)(["\n text-align: center;\n\n span {\n margin: 0 auto;\n }\n"]))),f=u.default.div.attrs({className:"data-loading-dialog"})(i||(i=(0,o.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n\n .loading-content {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .loading-message {\n margin-left: 32px;\n color: ",";\n font-weight: 500;\n font-size: 14px;\n }\n"])),(function(e){return e.theme.titleColorLT})),p=function(e){var t=e.size,n=void 0===t?64:t,r=e.message,a=void 0===r?"modal.loadingDialog.loading":r;return l.default.createElement(f,null,l.default.createElement("div",{className:"loading-content"},l.default.createElement(d,null,l.default.createElement(s.default,{size:n})),l.default.createElement("div",{className:"loading-message"},l.default.createElement(c.FormattedMessage,{id:a}))))};t.default=p},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(5)),o=a(n(7)),l=a(n(9)),u=a(n(10)),s=a(n(8)),c=a(n(4)),d=r(n(0)),f=a(n(1));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 n,r=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var h=function(e){(0,l.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"componentDidMount",value:function(){this._setDefaultProvider()}},{key:"_setDefaultProvider",value:function(){if(!this.props.currentProvider&&this.props.cloudProviders.length){var e=this.props.cloudProviders.find((function(e){return"function"==typeof e.getAccessToken&&e.getAccessToken()}));e&&"function"==typeof this.props.onSetCloudProvider&&this.props.onSetCloudProvider(e.name)}}},{key:"render",value:function(){return d.default.createElement(d.default.Fragment,null,this.props.children)}}]),n}(d.Component);t.default=h,(0,c.default)(h,"propTypes",{onSetCloudProvider:f.default.func.isRequired,cloudProviders:f.default.arrayOf(f.default.object),currentProvider:f.default.string}),(0,c.default)(h,"defaultProps",{cloudProviders:[],currentProvider:null})},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.ExportMapLink=t.StyledExportLink=t.StyledWarning=t.StyledExportMapSection=void 0;var a,i,o,l=r(n(27)),u=r(n(72)),s=r(n(16)),c=r(n(0)),d=r(n(15)),f=n(40),p=(0,d.default)(f.StyledExportSection)(a||(a=(0,s.default)(["\n margin-top: ","px;\n"])),(function(e){return e.theme.exportIntraSectionMargin}));t.StyledExportMapSection=p;var h=d.default.span(i||(i=(0,s.default)(["\n color: ",";\n font-weight: ",";\n"])),(function(e){return e.theme.errorColor}),(function(e){return e.theme.selectFontWeightBold}));t.StyledWarning=h;var m=d.default.a(o||(o=(0,s.default)(["\n text-decoration-line: underline !important;\n"])));t.StyledExportLink=m;t.ExportMapLink=function(e){var t=e.children,n=(0,u.default)(e,["children"]);return c.default.createElement(m,(0,l.default)({target:"_blank",rel:"noopener noreferrer"},n),t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"KHR_DRACO_MESH_COMPRESSION",(function(){return r.b})),n.d(t,"UBER_POINT_CLOUD_EXTENSION",(function(){return r.f})),n.d(t,"GLTFLoader",(function(){return a.a})),n.d(t,"GLTFWriter",(function(){return u})),n.d(t,"GLBLoader",(function(){return h})),n.d(t,"GLBWriter",(function(){return g})),n.d(t,"GLTFScenegraph",(function(){return v.a})),n.d(t,"postProcessGLTF",(function(){return y.a})),n.d(t,"GLBBuilder",(function(){return x})),n.d(t,"encodeGLTFSync",(function(){return l}));var r=n(87),a=n(1188),i=n(519);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.magic,a=void 0===r?1179937895:r,o=e.version,l=void 0===o?2:o,u=e.json,s=void 0===u?{}:u,c=e.binary,d=n;t&&(t.setUint32(n+0,a,!0),t.setUint32(n+4,l,!0),t.setUint32(n+8,0,!0));var f=n+8,p=n+=12;t&&(t.setUint32(n+0,0,!0),t.setUint32(n+4,1313821514,!0)),n+=8;var h=JSON.stringify(s);if(n=Object(i.b)(t,n,h),t){var m=n-p-8;t.setUint32(p+0,m,!0)}if(c){var g=n;if(t&&(t.setUint32(n+0,0,!0),t.setUint32(n+4,5130562,!0)),n+=8,n=Object(i.a)(t,n,c),t){var v=n-g-8;t.setUint32(g+0,v,!0)}}if(t){var y=n-d;t.setUint32(f,y,!0)}return n}function l(e,t,n,r){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.firstBuffer,r=void 0===n?0:n;if(e.buffers&&e.buffers.length>r)throw new Error("encodeGLTF: multiple buffers not yet implemented")}(e),o(e,t,n,r)}var u={name:"glTF",extensions:["glb"],mimeTypes:["model/gltf-binary"],encodeSync:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.byteOffset,r=void 0===n?0:n,a=l(e,null,r,t),i=new ArrayBuffer(a),o=new DataView(i);return l(e,o,r,t),i},binary:!0,options:{}};var s,c=n(13),d=n.n(c),f=n(21),p=n(319),h={id:"glb",name:"GLB",version:"2.3.5",extensions:["glb"],mimeTypes:["model/gltf-binary"],binary:!0,parse:(s=Object(f.a)(d.a.mark((function e(t,n){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",m(t,n));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)}),parseSync:m,options:{glb:{strict:!1}}};function m(e,t){var n=t.byteOffset,r=void 0===n?0:n,a={};return Object(p.a)(a,e,r,t),a}var g={name:"GLB",extensions:["glb"],mimeTypes:["model/gltf-binary"],encodeSync:function(e,t){var n=t.byteOffset,r=void 0===n?0:n,a=o(e,null,r,t),i=new ArrayBuffer(a),l=new DataView(i);return o(e,l,r,t),i},binary:!0,options:{glb:{}}};var v=n(129),y=n(444),b=n(11),A=n(12),_=n(171),O=n(1223),E=n(166),x=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(b.a)(this,e),this.byteLength=0,this.json={buffers:[{byteLength:0}],bufferViews:[],accessors:[],images:[],meshes:[]},this.sourceBuffers=[],this.log=t.log||console}return Object(A.a)(e,[{key:"getByteLength",value:function(){return this.byteLength}},{key:"isImage",value:function(e){return Object(O.b)(e)}},{key:"encodeSync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.encodeAsGLB(e)}},{key:"encodeAsGLB",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._packBinaryChunk(),e.magic&&console.warn("Custom glTF magic number no longer supported");var t={version:2,json:this.json,binary:this.arrayBuffer},n=o(t,null,0,e),r=new ArrayBuffer(n),a=new DataView(r);return o(t,a,0,e),r}},{key:"addApplicationData",value:function(e,t){return this.json[e]=t,this}},{key:"addBuffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{size:3},n=this.addBufferView(e),r={size:t.size,componentType:Object(E.c)(e),count:Math.round(e.length/t.size)};return this.addAccessor(n,Object.assign(r,t))}},{key:"addBufferView",value:function(e){var t=e.byteLength||e.length;return this.json.bufferViews.push({buffer:0,byteOffset:this.byteLength,byteLength:t}),this.byteLength+=Object(_.c)(t),this.sourceBuffers.push(e),this.json.bufferViews.length-1}},{key:"addAccessor",value:function(e,t){return this.json.accessors.push({bufferView:e,type:Object(E.b)(t.size),componentType:t.componentType,count:t.count}),this.json.accessors.length-1}},{key:"_pack",value:function(){return this._packBinaryChunk(),{arrayBuffer:this.arrayBuffer,json:this.json}}},{key:"_packBinaryChunk",value:function(){if(!this.arrayBuffer){for(var e=this.byteLength,t=new ArrayBuffer(e),n=new Uint8Array(t),r=0,a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.opacity,r=t.pickable,a=t.visible,i=t.parameters,o=t.getPolygonOffset,l=t.highlightedObjectIndex,u=t.autoHighlight,s=t.highlightColor,c=t.coordinateSystem,d=t.coordinateOrigin,f=t.wrapLongitude,p=t.positionFormat,h=t.modelMatrix,m=t.extensions,g=t._subLayerProps,v={opacity:n,pickable:r,visible:a,parameters:i,getPolygonOffset:o,highlightedObjectIndex:l,autoHighlight:u,highlightColor:s,coordinateSystem:c,coordinateOrigin:d,wrapLongitude:f,positionFormat:p,modelMatrix:h,extensions:m},y=g&&g[e.id],b=y&&y.updateTriggers,A=e.id||"sublayer";if(y){var _=this.constructor._propTypes;for(var O in y){var E=_[O];E&&"accessor"===E.type&&(y[O]=this.getSubLayerAccessor(y[O]))}}Object.assign(v,e,y,{id:"".concat(this.props.id,"-").concat(A),updateTriggers:Object.assign({all:this.props.updateTriggers.all},e.updateTriggers,b)});var x=!0,M=!1,w=void 0;try{for(var S,T=m[Symbol.iterator]();!(x=(S=T.next()).done);x=!0){var C=S.value,L=C.getSubLayerProps.call(this,C);L&&Object.assign(v,L,{updateTriggers:Object.assign(v.updateTriggers,L.updateTriggers)})}}catch(e){M=!0,w=e}finally{try{x||null==T.return||T.return()}finally{if(M)throw w}}return v}},{key:"_getAttributeManager",value:function(){return null}},{key:"_renderLayers",value:function(){var e=this.internalState.subLayers,t=!e||this.needsUpdate();t&&(e=this.renderLayers(),e=Object(d.b)(e,Boolean),this.internalState.subLayers=e),Object(c.a)("compositeLayer.renderLayers",this,t,e);var n=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){i.value.parent=this}}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}}},{key:"isComposite",get:function(){return!0}},{key:"isLoaded",get:function(){return Object(l.a)(Object(o.a)(t.prototype),"isLoaded",this)&&this.getSubLayers().every((function(e){return e.isLoaded}))}}]),t}(s.a);f.layerName="CompositeLayer"},function(e,t,n){"use strict";function r(e,t){this.x=e,this.y=t}e.exports=r,r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,a=n*this.x+t*this.y;return this.x=r,this.y=a,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),a=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=a,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e}},function(e,t,n){"use strict";var r=n(289),a=n(1942),i=n(82),o=n(62),l=n(104);var u={name:"JSON",extensions:["json","geojson"],testText:function(e){var t=e[0],n=e[e.length-1];return"{"===t&&"}"===n||"["===t&&"]"===n},parseTextSync:JSON.parse},s=i.global.deck&&i.global.deck.VERSION;if(s&&"8.2.0"!==s)throw new Error("deck.gl - multiple versions detected: ".concat(s," vs ").concat("8.2.0"));s||(i.global.deck=Object.assign(i.global.deck||{},{VERSION:"8.2.0",version:"8.2.0",log:o.a,_registerLoggers:l.b}),Object(r.c)([u,a.a]));t.a=i.global.deck},function(e,t,n){var r=n(1261);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){"use strict";var r=n(302);t.a=function(e){let t=e,n=e;function a(e,t,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r>>1;n(e[i],t)<0?r=i+1:a=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Object(r.a)(e(t),n)}(e)),{left:a,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const o=a(e,n,r,i-1);return o>r&&t(e[o-1],n)>-t(e[o],n)?o-1:o},right:function(e,t,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r>>1;n(e[i],t)>0?a=i:r=i+1}return r}}}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,a=n(2),i=n(186),o=n(310),l={WEBGL2:"WEBGL2",VERTEX_ARRAY_OBJECT:"VERTEX_ARRAY_OBJECT",TIMER_QUERY:"TIMER_QUERY",INSTANCED_RENDERING:"INSTANCED_RENDERING",MULTIPLE_RENDER_TARGETS:"MULTIPLE_RENDER_TARGETS",ELEMENT_INDEX_UINT32:"ELEMENT_INDEX_UINT32",BLEND_EQUATION_MINMAX:"BLEND_EQUATION_MINMAX",FLOAT_BLEND:"FLOAT_BLEND",COLOR_ENCODING_SRGB:"COLOR_ENCODING_SRGB",TEXTURE_DEPTH:"TEXTURE_DEPTH",TEXTURE_FLOAT:"TEXTURE_FLOAT",TEXTURE_HALF_FLOAT:"TEXTURE_HALF_FLOAT",TEXTURE_FILTER_LINEAR_FLOAT:"TEXTURE_FILTER_LINEAR_FLOAT",TEXTURE_FILTER_LINEAR_HALF_FLOAT:"TEXTURE_FILTER_LINEAR_HALF_FLOAT",TEXTURE_FILTER_ANISOTROPIC:"TEXTURE_FILTER_ANISOTROPIC",COLOR_ATTACHMENT_RGBA32F:"COLOR_ATTACHMENT_RGBA32F",COLOR_ATTACHMENT_FLOAT:"COLOR_ATTACHMENT_FLOAT",COLOR_ATTACHMENT_HALF_FLOAT:"COLOR_ATTACHMENT_HALF_FLOAT",GLSL_FRAG_DATA:"GLSL_FRAG_DATA",GLSL_FRAG_DEPTH:"GLSL_FRAG_DEPTH",GLSL_DERIVATIVES:"GLSL_DERIVATIVES",GLSL_TEXTURE_LOD:"GLSL_TEXTURE_LOD"};t.b=(r={},Object(a.a)(r,l.WEBGL2,[!1,!0]),Object(a.a)(r,l.VERTEX_ARRAY_OBJECT,["OES_vertex_array_object",!0]),Object(a.a)(r,l.TIMER_QUERY,["EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2"]),Object(a.a)(r,l.INSTANCED_RENDERING,["ANGLE_instanced_arrays",!0]),Object(a.a)(r,l.MULTIPLE_RENDER_TARGETS,["WEBGL_draw_buffers",!0]),Object(a.a)(r,l.ELEMENT_INDEX_UINT32,["OES_element_index_uint",!0]),Object(a.a)(r,l.BLEND_EQUATION_MINMAX,["EXT_blend_minmax",!0]),Object(a.a)(r,l.FLOAT_BLEND,["EXT_float_blend"]),Object(a.a)(r,l.COLOR_ENCODING_SRGB,["EXT_sRGB",!0]),Object(a.a)(r,l.TEXTURE_DEPTH,["WEBGL_depth_texture",!0]),Object(a.a)(r,l.TEXTURE_FLOAT,["OES_texture_float",!0]),Object(a.a)(r,l.TEXTURE_HALF_FLOAT,["OES_texture_half_float",!0]),Object(a.a)(r,l.TEXTURE_FILTER_LINEAR_FLOAT,["OES_texture_float_linear"]),Object(a.a)(r,l.TEXTURE_FILTER_LINEAR_HALF_FLOAT,["OES_texture_half_float_linear"]),Object(a.a)(r,l.TEXTURE_FILTER_ANISOTROPIC,["EXT_texture_filter_anisotropic"]),Object(a.a)(r,l.COLOR_ATTACHMENT_RGBA32F,[function(e){var t=new o.a(e,{format:6408,type:5126,dataFormat:6408}),n=new i.a(e,{id:"test-framebuffer",check:!1,attachments:Object(a.a)({},36064,t)}),r=n.getStatus();return t.delete(),n.delete(),36053===r},"EXT_color_buffer_float"]),Object(a.a)(r,l.COLOR_ATTACHMENT_FLOAT,[!1,"EXT_color_buffer_float"]),Object(a.a)(r,l.COLOR_ATTACHMENT_HALF_FLOAT,["EXT_color_buffer_half_float"]),Object(a.a)(r,l.GLSL_FRAG_DATA,["WEBGL_draw_buffers",!0]),Object(a.a)(r,l.GLSL_FRAG_DEPTH,["EXT_frag_depth",!0]),Object(a.a)(r,l.GLSL_DERIVATIVES,["OES_standard_derivatives",!0]),Object(a.a)(r,l.GLSL_TEXTURE_LOD,["EXT_shader_texture_lod",!0]),r)},function(e,t,n){e.exports=n(501)},function(e,t,n){"use strict";var r=n(864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var o=c(n);d&&(o=o.concat(d(n)));for(var l=u(t),m=u(n),g=0;g=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],l=r>0?e[r-1]:2*i-o,u=r1&&void 0!==arguments[1]?arguments[1]:{},n=t.sourceX,r=void 0===n?0:n,a=t.sourceY,i=void 0===a?0:a,o=t.sourceFormat,l=void 0===o?6408:o,c=t.sourceAttachment,d=void 0===c?36064:c,f=t.target,p=void 0===f?null:f,h=t.sourceWidth,m=t.sourceHeight,y=t.sourceType,b=g(e),A=b.framebuffer,_=b.deleteFramebuffer;Object(s.a)(A);var O=A.gl,E=A.handle,x=A.attachments;h=h||A.width,m=m||A.height,36064===d&&null===E&&(d=1028),Object(s.a)(x[d]),p=v(p,y=y||x[d].type,l,h,m),y=y||Object(u.b)(p);var M=O.bindFramebuffer(36160,E);return O.readPixels(r,i,h,m,l,y,p),O.bindFramebuffer(36160,M||null),_&&A.delete(),p}function p(e,t){var n=t.sourceX,a=void 0===n?0:n,i=t.sourceY,u=void 0===i?0:i,d=t.sourceFormat,f=void 0===d?6408:d,p=t.target,h=void 0===p?null:p,m=t.targetByteOffset,v=void 0===m?0:m,y=t.sourceWidth,b=t.sourceHeight,A=t.sourceType,_=g(e),O=_.framebuffer,E=_.deleteFramebuffer;Object(s.a)(O);var x=O.gl;if(y=y||O.width,b=b||O.height,Object(l.a)(x),A=A||(h?h.type:5121),!h){var M=c(f),w=function(e){switch(e){case 5121:return 1;case 33635:case 32819:case 32820:return 2;case 5126:return 4;default:return Object(s.a)(!1),0}}(A),S=v+y*b*M*w;h=new r.a(x,{byteLength:S,accessor:{type:A,size:M}})}return h.bind({target:35051}),Object(o.l)(x,{framebuffer:O},(function(){x.readPixels(a,u,y,b,f,A,v)})),h.unbind({target:35051}),E&&O.delete(),h}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.sourceAttachment,r=void 0===n?36064:n,a=t.targetMaxHeight,i=void 0===a?Number.MAX_SAFE_INTEGER:a,o=f(e,{sourceAttachment:r}),l=e.width,s=e.height;s>i;){var c=Object(u.d)({data:o,width:l,height:s});o=c.data,l=c.width,s=c.height}Object(u.a)({data:o,width:l,height:s});var d=document.createElement("canvas");d.width=l,d.height=s;var p=d.getContext("2d"),h=p.createImageData(l,s);return h.data.set(o),p.putImageData(h,0,0),d.toDataURL()}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.sourceX,a=void 0===r?0:r,o=n.sourceY,l=void 0===o?0:o,u=n.targetX,c=n.targetY,d=n.targetZ,f=n.targetMipmaplevel,p=void 0===f?0:f,h=n.targetInternalFormat,m=void 0===h?6408:h,v=n.width,y=n.height,b=g(e),A=b.framebuffer,_=b.deleteFramebuffer;Object(s.a)(A);var O=A.gl,E=A.handle,x=void 0!==u||void 0!==c||void 0!==d;u=u||0,c=c||0,d=d||0;var M=O.bindFramebuffer(36160,E);Object(s.a)(t);var w=null;if(t instanceof i.a&&(w=t,v=Number.isFinite(v)?v:w.width,y=Number.isFinite(y)?y:w.height,w.bind(0),t=w.target),x)switch(t){case 3553:case 34067:O.copyTexSubImage2D(t,p,u,c,a,l,v,y);break;case 35866:case 32879:O.copyTexSubImage3D(t,p,u,c,d,a,l,v,y)}else O.copyTexImage2D(t,p,m,a,l,v,y,0);return w&&w.unbind(),O.bindFramebuffer(36160,M||null),_&&A.delete(),w}function g(e){return e instanceof a.a?{framebuffer:e,deleteFramebuffer:!1}:{framebuffer:Object(d.b)(e),deleteFramebuffer:!0}}function v(e,t,n,r,a){return e||(t=t||5121,new(Object(u.c)(t,{clamped:!1}))(r*a*c(n)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25);function a(e,t,n){var a=n.removedProps,i=void 0===a?{}:a,o=n.deprecatedProps,l=void 0===o?{}:o,u=n.replacedProps,s=void 0===u?{}:u;for(var c in i)if(c in t){var d=i[c]?"".concat(e,".").concat(i[c]):"N/A";r.h.removed("".concat(e,".").concat(c),d)()}for(var f in l)if(f in t){var p=l[f];r.h.deprecated("".concat(e,".").concat(f),"".concat(e,".").concat(p))()}var h=null;for(var m in s)if(m in t){var g=s[m];r.h.deprecated("".concat(e,".").concat(m),"".concat(e,".").concat(g))(),(h=h||Object.assign({},t))[g]=t[m],delete h[m]}return h||t}},,,,,,function(e,t,n){(function(t){var n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],r=/^\s+|\s+$/g,a=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i=/\{\n\/\* \[wrapped with (.+)\] \*/,o=/,? & /,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^\[object .+?Constructor\]$/,c=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,f=parseInt,p="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,m=p||h||Function("return this")();function g(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function v(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var a=e.length,i=n+(r?1:-1);for(;r?i--:++i-1}function y(e){return e!=e}function b(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function A(e,t){for(var n=-1,r=e.length,a=0,i=[];++n2?O:void 0);function I(e){return $(e)?k(e):{}}function F(e){return!(!$(e)||function(e){return!!S&&S in e}(e))&&(function(e){var t=$(e)?L.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?P:s).test(function(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function N(e,t,n,r){for(var a=-1,i=e.length,o=n.length,l=-1,u=t.length,s=D(i-o,0),c=Array(u+s),d=!r;++l1&&_.reverse(),c&&u1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(a,"{\n/* [wrapped with "+t+"] */\n")}function X(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||d.test(e))&&e>-1&&e%1==0&&e0&&void 0!==arguments[0]?arguments[0]:{};return d({visState:(0,i.visStateReducerFactory)(e.visState),mapState:(0,o.mapStateReducerFactory)(e.mapState),mapStyle:(0,l.mapStyleReducerFactory)(e.mapStyle),uiState:(0,u.uiStateReducerFactory)(e.uiState),providerState:(0,s.providerStateReducerFactory)(e.providerState)})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){return c.default[n.type]?c.default[n.type](t,n):f(e)(t,n)}};t.coreReducerFactory=p;var h=p();t.default=h;t.mapStateLens=function(e){return{mapState:e.mapState}};t.mapStyleLens=function(e){return{mapStyle:e.mapStyle}};t.visStateLens=function(e){return{visState:e.visState}};t.uiStateLens=function(e){return{uiState:e.uiState}};t.providerStateLens=function(e){return{providerState:e.providerState}}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.visStateReducerFactory=void 0;var i,o=r(n(4)),l=r(n(131)),u=n(100),s=a(n(371));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.handleActions)(f,d(d(d({},s.INITIAL_VIS_STATE),e),{},{initialState:e}))};t.visStateReducerFactory=p;var h=p();t.default=h},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}function u(e,t,n){for(var r=-1,a=e?e.length:0;++r=200&&(o=d,s=!1,t=new P(t));e:for(;++i=200){var p=t?null:I(e);if(p)return f(p);o=!1,a=d,c=new P}else c=t?[]:s;e:for(;++r-1},C.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new T,map:new(M||C),string:new T}},L.prototype.delete=function(e){return F(this,e).delete(e)},L.prototype.get=function(e){return F(this,e).get(e)},L.prototype.has=function(e){return F(this,e).has(e)},L.prototype.set=function(e,t){return F(this,e).set(e,t),this},P.prototype.add=P.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},P.prototype.has=function(e){return this.__data__.has(e)};var I=w&&1/f(new w([,-0]))[1]==1/0?function(e){return new w(e)}:function(){};function F(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}var B,z,U=(B=function(e){return j(function(e,t){for(var n=-1,r=e?e.length:0,a=0,i=[];++n-1&&e%1==0&&e<=9007199254740991}(e.length)&&!W(e)}function Y(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}function W(e){var t=G(e)?_.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function G(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=U}).call(this,n(67))},function(e,t,n){e.exports=function(){"use strict";var e,t,n;function r(r,a){if(e)if(t){var i="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",o={};e(o),n=a(o),"undefined"!=typeof window&&(n.workerUrl=window.URL.createObjectURL(new Blob([i],{type:"text/javascript"})))}else t=a;else e=a}return r(0,(function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r;function r(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,r,a,i,o;for(void 0===t&&(t=1e-6),a=e,o=0;o<8;o++){if(i=this.sampleCurveX(a)-e,Math.abs(i)(r=1))return r;for(;ni?n=a:r=a,a=.5*(r-n)+n}return a},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var a=i;function i(e,t){this.x=e,this.y=t}i.prototype={clone:function(){return new i(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},i.convert=function(e){return e instanceof i?e:Array.isArray(e)?new i(e[0],e[1]):e};var o="undefined"!=typeof self?self:{},l=Math.pow(2,53)-1;function u(e,t,r,a){var i=new n(e,t,r,a);return function(e){return i.solve(e)}}var s=u(.25,.1,.25,1);function c(e,t,n){return Math.min(n,Math.max(t,e))}function d(e,t,n){var r=n-t,a=((e-t)%r+r)%r+t;return a===t?n:a}function f(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function g(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function v(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function y(e,t){return-1!==e.indexOf(t,e.length-t.length)}function b(e,t,n){var r={};for(var a in e)r[a]=t.call(n||this,e[a],a,e);return r}function A(e,t,n){var r={};for(var a in e)t.call(n||this,e[a],a,e)&&(r[a]=e[a]);return r}function _(e){return Array.isArray(e)?e.map(_):"object"==typeof e&&e?b(e,_):e}var O={};function E(e){O[e]||("undefined"!=typeof console&&console.warn(e),O[e]=!0)}function x(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function M(e){for(var t=0,n=0,r=e.length,a=r-1,i=void 0,o=void 0;n@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(e,n,r,a){var i=r||a;return t[n]=!i||i.toLowerCase(),""})),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}var T=null;function C(e){if(null==T){var t=e.navigator?e.navigator.userAgent:null;T=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return T}function L(e){try{var t=o[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}var P,k,D,R,j=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now.bind(Date),I=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||o.msRequestAnimationFrame,F=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.msCancelAnimationFrame,N={now:j,frame:function(e){var t=I(e);return{cancel:function(){return F(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=o.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return P||(P=o.document.createElement("a")),P.href=e,P.href},hardwareConcurrency:o.navigator&&o.navigator.hardwareConcurrency||4,get devicePixelRatio(){return o.devicePixelRatio},get prefersReducedMotion(){return!!o.matchMedia&&(null==k&&(k=o.matchMedia("(prefers-reduced-motion: reduce)")),k.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},z={supported:!1,testSupport:function(e){!U&&R&&(V?H(e):D=e)}},U=!1,V=!1;function H(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,R),e.isContextLost())return;z.supported=!0}catch(e){}e.deleteTexture(t),U=!0}o.document&&((R=o.document.createElement("img")).onload=function(){D&&H(D),D=null,V=!0},R.onerror=function(){U=!0,D=null},R.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Y="01",W=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function G(e){return 0===e.indexOf("mapbox:")}W.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Y,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},W.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},W.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},W.prototype.normalizeStyleURL=function(e,t){if(!G(e))return e;var n=K(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},W.prototype.normalizeGlyphsURL=function(e,t){if(!G(e))return e;var n=K(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},W.prototype.normalizeSourceURL=function(e,t){if(!G(e))return e;var n=K(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},W.prototype.normalizeSpriteURL=function(e,t,n,r){var a=K(e);return G(e)?(a.path="/styles/v1"+a.path+"/sprite"+t+n,this._makeAPIURL(a,this._customAccessToken||r)):(a.path+=""+t+n,J(a))},W.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!G(e))return e;var n=K(e);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(N.devicePixelRatio>=2||512===t?"@2x":"")+(z.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(e){for(var t=0,n=e;t=0&&e.params.splice(a,1)}if("/"!==r.path&&(e.path=""+r.path+e.path),!B.REQUIRE_ACCESS_TOKEN)return J(e);if(!(t=t||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter((function(e){return-1===e.indexOf("access_token")})),e.params.push("access_token="+t),J(e)};var q=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(e){return q.test(e)}var Z=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function K(e){var t=e.match(Z);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function J(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}function Q(e){if(!e)return null;var t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(o.atob(t[1]).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(e){return null}}var $=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};$.prototype.getStorageKey=function(e){var t,n=Q(B.ACCESS_TOKEN);return t=n&&n.u?o.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))}))):B.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+t:"mapbox.eventData:"+t},$.prototype.fetchEventData=function(){var e=L("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=o.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var a=o.localStorage.getItem(n);a&&(this.anonId=a)}catch(e){E("Unable to read from LocalStorage")}},$.prototype.saveEventData=function(){var e=L("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{o.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&o.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){E("Unable to write to LocalStorage")}},$.prototype.processRequests=function(e){},$.prototype.postEvent=function(e,t,n,r){var a=this;if(B.EVENTS_URL){var i=K(B.EVENTS_URL);i.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var o={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.0",skuId:Y,userId:this.anonId},l=t?f(o,t):o,u={url:J(i),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=_e(u,(function(e){a.pendingRequest=null,n(e),a.saveEventData(),a.processRequests(r)}))}},$.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var ee,te,ne=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return G(e)||X(e)})))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,a=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),g(this.anonId)||(this.anonId=m()),this.postEvent(a,{skuToken:this.skuToken},(function(e){e||r&&(t.success[r]=!0)}),e))}},t}($),re=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postTurnstileEvent=function(e,t){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return G(e)||X(e)}))&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=Q(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,a=r!==this.eventData.tokenU;g(this.anonId)||(this.anonId=m(),a=!0);var i=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),l=new Date(i),u=(i-this.eventData.lastSuccess)/864e5;a=a||u>=1||u<-1||o.getDate()!==l.getDate()}else a=!0;if(!a)return this.processRequests();this.postEvent(i,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=i,t.eventData.tokenU=r)}),e)}},t}($)),ae=re.postTurnstileEvent.bind(re),ie=new ne,oe=ie.postMapLoadEvent.bind(ie),le=500,ue=50;function se(){o.caches&&!ee&&(ee=o.caches.open("mapbox-tiles"))}function ce(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var de,fe=1/0;function pe(){return null==de&&(de=o.OffscreenCanvas&&new o.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof o.createImageBitmap),de}var he={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(he);var me,ge,ve=function(e){function t(t,n,r){401===n&&X(r)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),ye=w()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===o.location.protocol?o.parent:o).location.href},be=function(e,t){if(!(/^file:/.test(n=e.url)||/^file:/.test(ye())&&!/^\w+:/.test(n))){if(o.fetch&&o.Request&&o.AbortController&&o.Request.prototype.hasOwnProperty("signal"))return function(e,t){var n,r=new o.AbortController,a=new o.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ye(),signal:r.signal}),i=!1,l=!1,u=(n=a.url).indexOf("sku=")>0&&X(n);"json"===e.type&&a.headers.set("Accept","application/json");var s=function(n,r,i){if(!l){if(n&&"SecurityError"!==n.message&&E(n),r&&i)return c(r);var s=Date.now();o.fetch(a).then((function(n){if(n.ok){var r=u?n.clone():null;return c(n,r,s)}return t(new ve(n.statusText,n.status,e.url))})).catch((function(e){20!==e.code&&t(new Error(e.message))}))}},c=function(n,r,u){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((function(e){l||(r&&u&&function(e,t,n){if(se(),ee){var r={status:t.status,statusText:t.statusText,headers:new o.Headers};t.headers.forEach((function(e,t){return r.headers.set(t,e)}));var a=S(t.headers.get("Cache-Control")||"");a["no-store"]||(a["max-age"]&&r.headers.set("Expires",new Date(n+1e3*a["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===te)try{new Response(new ReadableStream),te=!0}catch(e){te=!1}te?t(e.body):e.blob().then(t)}(t,(function(t){var n=new o.Response(t,r);se(),ee&&ee.then((function(t){return t.put(ce(e.url),n)})).catch((function(e){return E(e.message)}))})))}}(a,r,u),i=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(e){l||t(new Error(e.message))}))};return u?function(e,t){if(se(),!ee)return t(null);var n=ce(e.url);ee.then((function(e){e.match(n).then((function(r){var a=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=S(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),a&&e.put(n,r.clone()),t(null,r,a)})).catch(t)})).catch(t)}(a,s):s(null,null),{cancel:function(){l=!0,i||r.abort()}}}(e,t);if(w()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){var n=new o.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new ve(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},Ae=function(e,t){return be(f(e,{type:"arrayBuffer"}),t)},_e=function(e,t){return be(f(e,{method:"POST"}),t)},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";me=[],ge=0;var Ee=function(e,t){if(z.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),ge>=B.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return me.push(n),n}ge++;var r=!1,a=function(){if(!r)for(r=!0,ge--;me.length&&ge0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},Te.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var Ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],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",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!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"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!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,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!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",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!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",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!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"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],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,requires:["icon-image"],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",requires:["icon-image"],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",requires:["icon-image"],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",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],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,requires:["text-field"],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",requires:["text-field"],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",requires:["text-field"],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",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Le=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Pe(e){var t=e.value;return t?[new Le(e.key,t,"constants have been deprecated as of v8")]:[]}function ke(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var Ze=[Fe,Ne,Be,ze,Ue,We,Ve,qe(He),Ge];function Ke(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ke(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)for(var n=0,r=Ze;n255?255:e}function a(e){return r("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function i(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function o(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,l=e.replace(/ /g,"").toLowerCase();if(l in n)return n[l].slice();if("#"===l[0])return 4===l.length?(t=parseInt(l.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===l.length&&(t=parseInt(l.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var u=l.indexOf("("),s=l.indexOf(")");if(-1!==u&&s+1===l.length){var c=l.substr(0,u),d=l.substr(u+1,s-(u+1)).split(","),f=1;switch(c){case"rgba":if(4!==d.length)return null;f=i(d.pop());case"rgb":return 3!==d.length?null:[a(d[0]),a(d[1]),a(d[2]),f];case"hsla":if(4!==d.length)return null;f=i(d.pop());case"hsl":if(3!==d.length)return null;var p=(parseFloat(d[0])%360+360)%360/360,h=i(d[1]),m=i(d[2]),g=m<=.5?m*(h+1):m+h-m*h,v=2*m-g;return[r(255*o(v,g,p+1/3)),r(255*o(v,g,p)),r(255*o(v,g,p-1/3)),f];default:return null}}return null}}catch(e){}})).parseCSSColor,et=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};et.parse=function(e){if(e){if(e instanceof et)return e;if("string"==typeof e){var t=$e(e);if(t)return new et(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},et.prototype.toString=function(){var e=this.toArray(),t=e[1],n=e[2],r=e[3];return"rgba("+Math.round(e[0])+","+Math.round(t)+","+Math.round(n)+","+r+")"},et.prototype.toArray=function(){var e=this.a;return 0===e?[0,0,0,0]:[255*this.r/e,255*this.g/e,255*this.b/e,e]},et.black=new et(0,0,0,1),et.white=new et(1,1,1,1),et.transparent=new et(0,0,0,0),et.red=new et(1,0,0,1);var tt=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};tt.prototype.compare=function(e,t){return this.collator.compare(e,t)},tt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var nt=function(e,t,n,r,a){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=a},rt=function(e){this.sections=e};rt.fromString=function(e){return new rt([new nt(e,null,null,null,null)])},rt.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))},rt.factory=function(e){return e instanceof rt?e:rt.fromString(e)},rt.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},rt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ot(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 et)return!0;if(e instanceof tt)return!0;if(e instanceof rt)return!0;if(e instanceof at)return!0;if(Array.isArray(e)){for(var t=0,n=e;t2){var l=e[1];if("string"!=typeof l||!(l in dt)||"object"===l)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=dt[l],r++}else i=He;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}n=qe(i,o)}else n=dt[a];for(var u=[];r1)&&t.push(r)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var pt=function(e){this.type=We,this.sections=e};pt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");for(var r=[],a=!1,i=1;i<=e.length-1;++i){var o=e[i];if(a&&"object"==typeof o&&!Array.isArray(o)){a=!1;var l=null;if(o["font-scale"]&&!(l=t.parse(o["font-scale"],1,Ne)))return null;var u=null;if(o["text-font"]&&!(u=t.parse(o["text-font"],1,qe(Be))))return null;var s=null;if(o["text-color"]&&!(s=t.parse(o["text-color"],1,Ue)))return null;var c=r[r.length-1];c.scale=l,c.font=u,c.textColor=s}else{var d=t.parse(e[i],1,He);if(!d)return null;var f=d.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,r.push({content:d,scale:null,font:null,textColor:null})}}return new pt(r)},pt.prototype.evaluate=function(e){return new rt(this.sections.map((function(t){var n=t.content.evaluate(e);return lt(n)===Ge?new nt("",n,null,null,null):new nt(ut(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},pt.prototype.eachChild=function(e){for(var t=0,n=this.sections;t-1),n},ht.prototype.eachChild=function(e){e(this.input)},ht.prototype.outputDefined=function(){return!1},ht.prototype.serialize=function(){return["image",this.input.serialize()]};var mt={"to-boolean":ze,"to-color":Ue,"to-number":Ne,"to-string":Be},gt=function(e,t){this.type=e,this.args=t};gt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=mt[n],a=[],i=1;i4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":it(t[0],t[1],t[2],t[3])))return new et(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new ct(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var o=null,l=0,u=this.args;l=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Et(e,t){var n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,a=Math.pow(2,t.z);return[Math.round(n*a*8192),Math.round(r*a*8192)]}function xt(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function Mt(e,t){for(var n,r,a,i,o,l,u,s=!1,c=0,d=t.length;c0&&l<0||o<0&&l>0}function Tt(e,t,n){for(var r=0,a=n;rn[2]){var a=.5*r,i=e[0]-n[0]>a?-r:n[0]-e[0]>a?r:0;0===i&&(i=e[0]-n[2]>a?-r:n[2]-e[0]>a?r:0),e[0]+=i}_t(t,e)}function Rt(e,t,n,r){for(var a=8192*Math.pow(2,r.z),i=[8192*r.x,8192*r.y],o=[],l=0,u=e;l=0)return!1;var n=!0;return e.eachChild((function(e){n&&!Bt(e,t)&&(n=!1)})),n}It.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(ot(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;rt))throw new ct("Input is not a number.");i=o-1}return 0}Ut.prototype.parse=function(e,t,n,r,a){return void 0===a&&(a={}),t?this.concat(t,n,r)._parse(e,a):this._parse(e,a)},Ut.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new ft(t,[e]):"coerce"===n?new gt(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 r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var a=this.registry[r];if(a){var i=a.parse(e,this);if(!i)return null;if(this.expectedType){var o=this.expectedType,l=i.type;if("string"!==o.kind&&"number"!==o.kind&&"boolean"!==o.kind&&"object"!==o.kind&&"array"!==o.kind||"value"!==l.kind)if("color"!==o.kind&&"formatted"!==o.kind&&"resolvedImage"!==o.kind||"value"!==l.kind&&"string"!==l.kind){if(this.checkSubtype(o,l))return null}else i=n(i,o,t.typeAnnotation||"coerce");else i=n(i,o,t.typeAnnotation||"assert")}if(!(i instanceof st)&&"resolvedImage"!==i.type.kind&&function e(t){if(t instanceof zt)return e(t.boundExpression);if(t instanceof bt&&"error"===t.name)return!1;if(t instanceof At)return!1;if(t instanceof It)return!1;var n=t instanceof gt||t instanceof ft,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof st})),!!r&&Ft(t)&&Bt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(i)){var u=new yt;try{i=new st(i.type,i.evaluate(u))}catch(e){return this.error(e.message),null}}return i}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof e+" instead.")},Ut.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,a=n?this.scope.concat(n):this.scope;return new Ut(this.registry,r,t||null,a,this.errors)},Ut.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new je(r,e))},Ut.prototype.checkSubtype=function(e,t){var n=Ke(e,t);return n&&this.error(n),n};var Ht=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,a=n;r=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=t.parse(l,s,a);if(!c)return null;a=a||c.type,r.push([o,c])}return new Ht(a,n,r)},Ht.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;return r>=t[a-1]?n[a-1].evaluate(e):n[Vt(t,r)].evaluate(e)},Ht.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Wt=Object.freeze({__proto__:null,number:Yt,color:function(e,t,n){return new et(Yt(e.r,t.r,n),Yt(e.g,t.g,n),Yt(e.b,t.b,n),Yt(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return Yt(e,t[r],n)}))}}),Gt=6/29*3*(6/29),qt=Math.PI/180,Xt=180/Math.PI;function Zt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Gt+4/29}function Kt(e){return e>6/29?e*e*e:Gt*(e-4/29)}function Jt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $t(e){var t=Qt(e.r),n=Qt(e.g),r=Qt(e.b),a=Zt((.4124564*t+.3575761*n+.1804375*r)/.95047),i=Zt((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*i-16,a:500*(a-i),b:200*(i-Zt((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function en(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Kt(t),n=.95047*Kt(n),r=1.08883*Kt(r),new et(Jt(3.2404542*n-1.5371385*t-.4985314*r),Jt(-.969266*n+1.8760108*t+.041556*r),Jt(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function tn(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:$t,reverse:en,interpolate:function(e,t,n){return{l:Yt(e.l,t.l,n),a:Yt(e.a,t.a,n),b:Yt(e.b,t.b,n),alpha:Yt(e.alpha,t.alpha,n)}}},rn={forward:function(e){var t=$t(e),n=t.l,r=t.a,a=t.b,i=Math.atan2(a,r)*Xt;return{h:i<0?i+360:i,c:Math.sqrt(r*r+a*a),l:n,alpha:e.a}},reverse:function(e){var t=e.h*qt,n=e.c;return en({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:tn(e.h,t.h,n),c:Yt(e.c,t.c,n),l:Yt(e.l,t.l,n),alpha:Yt(e.alpha,t.alpha,n)}}},an=Object.freeze({__proto__:null,lab:nn,hcl:rn}),on=function(e,t,n,r,a){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var i=0,o=a;i1})))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:l}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(a=t.parse(a,2,Ne)))return null;var u=[],s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=Ue:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(var c=0;c=d)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',p);var m=t.parse(f,h,s);if(!m)return null;s=s||m.type,u.push([d,m])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new on(s,n,r,a,u):t.error("Type "+Xe(s)+" is not interpolatable.")},on.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;if(r>=t[a-1])return n[a-1].evaluate(e);var i=Vt(t,r),o=on.interpolationFactor(this.interpolation,r,t[i],t[i+1]),l=n[i].evaluate(e),u=n[i+1].evaluate(e);return"interpolate"===this.operator?Wt[this.type.kind.toLowerCase()](l,u,o):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(l),rn.forward(u),o)):nn.reverse(nn.interpolate(nn.forward(l),nn.forward(u),o))},on.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t=n.length)throw new ct("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new ct("Array index must be an integer, but found "+t+" instead.");return n[t]},cn.prototype.eachChild=function(e){e(this.index),e(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var dn=function(e,t){this.type=ze,this.needle=e,this.haystack=t};dn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);return n&&r?Je(n.type,[ze,Be,Ne,Fe,He])?new dn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+Xe(n.type)+" instead"):null},dn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Qe(t,["boolean","string","number","null"]))throw new ct("Expected first argument to be of type boolean, string, number or null, but found "+Xe(lt(t))+" instead.");if(!Qe(n,["string","array"]))throw new ct("Expected second argument to be of type array or string, but found "+Xe(lt(n))+" instead.");return n.indexOf(t)>=0},dn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},dn.prototype.outputDefined=function(){return!0},dn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var fn=function(e,t,n){this.type=Ne,this.needle=e,this.haystack=t,this.fromIndex=n};fn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,He),r=t.parse(e[2],2,He);if(!n||!r)return null;if(!Je(n.type,[ze,Be,Ne,Fe,He]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+Xe(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Ne);return a?new fn(n,r,a):null}return new fn(n,r)},fn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Qe(t,["boolean","string","number","null"]))throw new ct("Expected first argument to be of type boolean, string, number or null, but found "+Xe(lt(t))+" instead.");if(!Qe(n,["string","array"]))throw new ct("Expected second argument to be of type array or string, but found "+Xe(lt(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},fn.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},fn.prototype.outputDefined=function(){return!1},fn.prototype.serialize=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()]};var pn=function(e,t,n,r,a,i){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=a,this.otherwise=i};pn.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var a={},i=[],o=2;oNumber.MAX_SAFE_INTEGER)return s.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return s.error("Numeric branch labels must be integer values.");if(n){if(s.checkSubtype(n,lt(f)))return null}else n=lt(f);if(void 0!==a[String(f)])return s.error("Branch labels must be unique.");a[String(f)]=i.length}var p=t.parse(u,o,r);if(!p)return null;r=r||p.type,i.push(p)}var h=t.parse(e[1],1,He);if(!h)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==h.type.kind&&t.concat(1).checkSubtype(n,h.type)?null:new pn(n,r,h,a,i,m):null},pn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(lt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},pn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},pn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},pn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},a=0,i=Object.keys(this.cases).sort();a=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,He),r=t.parse(e[2],2,Ne);if(!n||!r)return null;if(!Je(n.type,[qe(He),Be,He]))return t.error("Expected first argument to be of type array or string, but found "+Xe(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Ne);return a?new mn(n.type,n,r,a):null}return new mn(n.type,n,r)},mn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Qe(t,["string","array"]))throw new ct("Expected first argument to be of type array or string, but found "+Xe(lt(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},mn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},mn.prototype.outputDefined=function(){return!1},mn.prototype.serialize=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()]};var bn=yn("==",(function(e,t,n){return t===n}),vn),An=yn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!vn(0,t,n,r)})),_n=yn("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),En=yn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),xn=yn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),Mn=function(e,t,n,r,a){this.type=Be,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=a};Mn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Ne);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var a=null;if(r.locale&&!(a=t.parse(r.locale,1,Be)))return null;var i=null;if(r.currency&&!(i=t.parse(r.currency,1,Be)))return null;var o=null;if(r["min-fraction-digits"]&&!(o=t.parse(r["min-fraction-digits"],1,Ne)))return null;var l=null;return r["max-fraction-digits"]&&!(l=t.parse(r["max-fraction-digits"],1,Ne))?null:new Mn(n,a,i,o,l)},Mn.prototype.evaluate=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))},Mn.prototype.eachChild=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)},Mn.prototype.outputDefined=function(){return!1},Mn.prototype.serialize=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]};var wn=function(e){this.type=Ne,this.input=e};wn.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+Xe(n.type)+" instead."):new wn(n):null},wn.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new ct("Expected value to be of type string or array, but found "+Xe(lt(t))+" instead.")},wn.prototype.eachChild=function(e){e(this.input)},wn.prototype.outputDefined=function(){return!1},wn.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Sn={"==":bn,"!=":An,">":On,"<":_n,">=":xn,"<=":En,array:ft,at:cn,boolean:ft,case:hn,coalesce:un,collator:At,format:pt,image:ht,in:dn,"index-of":fn,interpolate:on,"interpolate-hcl":on,"interpolate-lab":on,length:wn,let:sn,literal:st,match:pn,number:ft,"number-format":Mn,object:ft,slice:mn,step:Ht,string:ft,"to-boolean":gt,"to-color":gt,"to-number":gt,"to-string":gt,var:zt,within:It};function Tn(e,t){var n=t[0],r=t[1],a=t[2],i=t[3];n=n.evaluate(e),r=r.evaluate(e),a=a.evaluate(e);var o=i?i.evaluate(e):1,l=it(n,r,a,o);if(l)throw new ct(l);return new et(n/255*o,r/255*o,a/255*o,o)}function Cn(e,t){return e in t}function Ln(e,t){var n=t[e];return void 0===n?null:n}function Pn(e){return{type:e}}function kn(e){return{result:"success",value:e}}function Dn(e){return{result:"error",value:e}}function Rn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function jn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function In(e){return!!e.expression&&e.expression.interpolated}function Fn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Nn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Bn(e){return e}function zn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Un(e,t,n,r,a){return zn(typeof n===a?r[n]:void 0,e.default,t.default)}function Vn(e,t,n){if("number"!==Fn(n))return zn(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var a=Vt(e.stops.map((function(e){return e[0]})),n);return e.stops[a][1]}function Hn(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==Fn(n))return zn(e.default,t.default);var a=e.stops.length;if(1===a)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[a-1][0])return e.stops[a-1][1];var i=Vt(e.stops.map((function(e){return e[0]})),n),o=function(e,t,n,r){var a=r-n,i=e-n;return 0===a?0:1===t?i/a:(Math.pow(t,i)-1)/(Math.pow(t,a)-1)}(n,r,e.stops[i][0],e.stops[i+1][0]),l=e.stops[i][1],u=e.stops[i+1][1],s=Wt[t.type]||Bn;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=an[e.colorSpace];s=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),o))}}return"function"==typeof l.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=l.evaluate.apply(void 0,e),r=u.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return s(n,r,o)}}:s(l,u,o)}function Yn(e,t,n){return"color"===t.type?n=et.parse(n):"formatted"===t.type?n=rt.fromString(n.toString()):"resolvedImage"===t.type?n=at.fromString(n.toString()):Fn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),zn(n,e.default,t.default)}bt.register(Sn,{error:[{kind:"error"},[Be],function(e,t){throw new ct(t[0].evaluate(e))}],typeof:[Be,[He],function(e,t){return Xe(lt(t[0].evaluate(e)))}],"to-rgba":[qe(Ne,4),[Ue],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ue,[Ne,Ne,Ne],Tn],rgba:[Ue,[Ne,Ne,Ne,Ne],Tn],has:{type:ze,overloads:[[[Be],function(e,t){return Cn(t[0].evaluate(e),e.properties())}],[[Be,Ve],function(e,t){var n=t[1];return Cn(t[0].evaluate(e),n.evaluate(e))}]]},get:{type:He,overloads:[[[Be],function(e,t){return Ln(t[0].evaluate(e),e.properties())}],[[Be,Ve],function(e,t){var n=t[1];return Ln(t[0].evaluate(e),n.evaluate(e))}]]},"feature-state":[He,[Be],function(e,t){return Ln(t[0].evaluate(e),e.featureState||{})}],properties:[Ve,[],function(e){return e.properties()}],"geometry-type":[Be,[],function(e){return e.geometryType()}],id:[He,[],function(e){return e.id()}],zoom:[Ne,[],function(e){return e.globals.zoom}],"heatmap-density":[Ne,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[Ne,[],function(e){return e.globals.lineProgress||0}],accumulated:[He,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[Ne,Pn(Ne),function(e,t){for(var n=0,r=0,a=t;r":[ze,[Be,He],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a>i}],"filter-id->":[ze,[He],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>a}],"filter-<=":[ze,[Be,He],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a<=i}],"filter-id-<=":[ze,[He],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r<=a}],"filter->=":[ze,[Be,He],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],i=r.value;return typeof a==typeof i&&a>=i}],"filter-id->=":[ze,[He],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>=a}],"filter-has":[ze,[He],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[ze,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[ze,[qe(Be)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[ze,[qe(He)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[ze,[Be,qe(He)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[ze,[Be,qe(He)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var a=n+r>>1;if(t[a]===e)return!0;t[a]>e?r=a-1:n=a+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:ze,overloads:[[[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)&&n.evaluate(e)}],[Pn(ze),function(e,t){for(var n=0,r=t;n0&&"string"==typeof e[0]&&e[0]in Sn}function qn(e,t){var n=new Ut(Sn,[],t?function(e){var t={color:Ue,string:Be,number:Ne,enum:Be,boolean:ze,formatted:We,resolvedImage:Ge};return"array"===e.type?qe(t[e.value]||He,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?kn(new Wn(r,t)):Dn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,i){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(e,t,n,r,a,i){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=i||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||"number"==typeof o&&o!=o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new ct("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var Xn=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Nt(t.expression)};Xn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,i)},Xn.prototype.evaluate=function(e,t,n,r,a,i){return this._styleExpression.evaluate(e,t,n,r,a,i)};var Zn=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Nt(t.expression),this.interpolationType=r};function Kn(e,t){if("error"===(e=qn(e,t)).result)return e;var n=e.value.expression,r=Ft(n);if(!r&&!Rn(t))return Dn([new je("","data expressions not supported")]);var a=Bt(n,["zoom"]);if(!a&&!jn(t))return Dn([new je("","zoom expressions not supported")]);var i=function e(t){var n=null;if(t instanceof sn)n=e(t.result);else if(t instanceof un)for(var r=0,a=t.args;rr.maximum?[new Le(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function tr(e){var t,n,r,a=e.valueSpec,i=De(e.value.type),o={},l="categorical"!==i&&void 0===e.value.property,u=!l,s="array"===Fn(e.value.stops)&&"array"===Fn(e.value.stops[0])&&"object"===Fn(e.value.stops[0][0]),c=Qn({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new Le(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat($n({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===Fn(n)&&0===n.length&&t.push(new Le(e.key,n,"array must have at least one stop")),t},default:function(e){return Er({key:e.key,value:e.value,valueSpec:a,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&l&&c.push(new Le(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||c.push(new Le(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!In(e.valueSpec)&&c.push(new Le(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!Rn(e.valueSpec)?c.push(new Le(e.key,e.value,"property functions not supported")):l&&!jn(e.valueSpec)&&c.push(new Le(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!s||void 0!==e.value.property||c.push(new Le(e.key,e.value,'"property" property is required')),c;function d(e){var t=[],i=e.value,l=e.key;if("array"!==Fn(i))return[new Le(l,i,"array expected, "+Fn(i)+" found")];if(2!==i.length)return[new Le(l,i,"array length 2 expected, length "+i.length+" found")];if(s){if("object"!==Fn(i[0]))return[new Le(l,i,"object expected, "+Fn(i[0])+" found")];if(void 0===i[0].zoom)return[new Le(l,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new Le(l,i,"object stop key must have value")];if(r&&r>De(i[0].zoom))return[new Le(l,i[0].zoom,"stop zoom values must appear in ascending order")];De(i[0].zoom)!==r&&(r=De(i[0].zoom),n=void 0,o={}),t=t.concat(Qn({key:l+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:er,value:f}}))}else t=t.concat(f({key:l+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return Gn(Re(i[1]))?t.concat([new Le(l+"[1]",i[1],"expressions are not allowed in function stops.")]):t.concat(Er({key:l+"[1]",value:i[1],valueSpec:a,style:e.style,styleSpec:e.styleSpec}))}function f(e,r){var l=Fn(e.value),u=De(e.value),s=null!==e.value?e.value:r;if(t){if(l!==t)return[new Le(e.key,s,l+" stop domain type must match previous stop domain type "+t)]}else t=l;if("number"!==l&&"string"!==l&&"boolean"!==l)return[new Le(e.key,s,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==i){var c="number expected, "+l+" found";return Rn(a)&&void 0===i&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Le(e.key,s,c)]}return"categorical"!==i||"number"!==l||isFinite(u)&&Math.floor(u)===u?"categorical"!==i&&"number"===l&&void 0!==n&&u=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":for(var t=0,n=e.slice(1);tt?1:0}function ur(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?sr(e[1],e[2],"=="):"!="===n?fr(sr(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?sr(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(ur))):"all"===n?["all"].concat(e.slice(1).map(ur)):"none"===n?["all"].concat(e.slice(1).map(ur).map(fr)):"in"===n?cr(e[1],e.slice(2)):"!in"===n?fr(cr(e[1],e.slice(2))):"has"===n?dr(e[1]):"!has"===n?fr(dr(e[1])):"within"!==n||e}function sr(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function cr(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 typeof e!=typeof t[0]}))?["filter-in-large",e,["literal",t.sort(lr)]]:["filter-in-small",e,["literal",t]]}}function dr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function fr(e){return["!",e]}function pr(e){return ar(Re(e.value))?nr(ke({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==Fn(n))return[new Le(r,n,"array expected, "+Fn(n)+" found")];var a,i=t.styleSpec,o=[];if(n.length<1)return[new Le(r,n,"filter array must have at least 1 element")];switch(o=o.concat(rr({key:r+"[0]",value:n[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),De(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===De(n[1])&&o.push(new Le(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&o.push(new Le(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(a=Fn(n[1]))&&o.push(new Le(r+"[1]",n[1],"string expected, "+a+" found"));for(var l=2;l=c[p+0]&&r>=c[p+1])?(o[f]=!0,i.push(s[f])):o[f]=!1}}},Rr.prototype._forEachCell=function(e,t,n,r,a,i,o,l){for(var u=this._convertToCellCoord(e),s=this._convertToCellCoord(t),c=this._convertToCellCoord(n),d=this._convertToCellCoord(r),f=u;f<=c;f++)for(var p=s;p<=d;p++){var h=this.d*p+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(p),this._convertFromCellCoord(f+1),this._convertFromCellCoord(p+1)))&&a.call(this,e,t,n,r,h,i,o,l))return}},Rr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Rr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Rr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,r=0;r=0)){var c=e[s];u[s]=Fr[l].shallow.indexOf(s)>=0?c:Vr(c,t)}e instanceof Error&&(u.message=e.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}throw new Error("can't serialize object of type "+typeof e)}function Hr(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||zr(e)||Ur(e)||ArrayBuffer.isView(e)||e instanceof jr)return e;if(Array.isArray(e))return e.map(Hr);if("object"==typeof e){var t=e.$name||"Object",n=Fr[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),a=0,i=Object.keys(e);a=0?l:Hr(l)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var Yr=function(){this.first=!0};Yr.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function Gr(e){for(var t=0,n=e;t=65097&&e<=65103)||Wr["CJK Compatibility Ideographs"](e)||Wr["CJK Compatibility"](e)||Wr["CJK Radicals Supplement"](e)||Wr["CJK Strokes"](e)||!(!Wr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Wr["CJK Unified Ideographs Extension A"](e)||Wr["CJK Unified Ideographs"](e)||Wr["Enclosed CJK Letters and Months"](e)||Wr["Hangul Compatibility Jamo"](e)||Wr["Hangul Jamo Extended-A"](e)||Wr["Hangul Jamo Extended-B"](e)||Wr["Hangul Jamo"](e)||Wr["Hangul Syllables"](e)||Wr.Hiragana(e)||Wr["Ideographic Description Characters"](e)||Wr.Kanbun(e)||Wr["Kangxi Radicals"](e)||Wr["Katakana Phonetic Extensions"](e)||Wr.Katakana(e)&&12540!==e||!(!Wr["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Wr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](e)||Wr["Unified Canadian Aboriginal Syllabics Extended"](e)||Wr["Vertical Forms"](e)||Wr["Yijing Hexagram Symbols"](e)||Wr["Yi Syllables"](e)||Wr["Yi Radicals"](e))))}function Xr(e){return!(qr(e)||function(e){return!!(Wr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Wr["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Wr["Letterlike Symbols"](e)||Wr["Number Forms"](e)||Wr["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Wr["Control Pictures"](e)&&9251!==e||Wr["Optical Character Recognition"](e)||Wr["Enclosed Alphanumerics"](e)||Wr["Geometric Shapes"](e)||Wr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Wr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Wr["CJK Symbols and Punctuation"](e)||Wr.Katakana(e)||Wr["Private Use Area"](e)||Wr["CJK Compatibility Forms"](e)||Wr["Small Form Variants"](e)||Wr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Zr(e){return e>=1424&&e<=2303||Wr["Arabic Presentation Forms-A"](e)||Wr["Arabic Presentation Forms-B"](e)}function Kr(e,t){return!(!t&&Zr(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Wr.Khmer(e))}function Jr(e){for(var t=0,n=e;t-1&&($r="error"),Qr&&Qr(e)};function na(){ra.fire(new we("pluginStateChange",{pluginStatus:$r,pluginURL:ea}))}var ra=new Te,aa=function(){return $r},ia=function(){if("deferred"!==$r||!ea)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");$r="loading",na(),ea&&Ae({url:ea},(function(e){e?ta(e):($r="loaded",na())}))},oa={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===$r||null!=oa.applyArabicShaping},isLoading:function(){return"loading"===$r},setState:function(e){$r=e.pluginStatus,ea=e.pluginURL},isParsed:function(){return null!=oa.applyArabicShaping&&null!=oa.processBidirectionalText&&null!=oa.processStyledBidirectionalText},getPluginURL:function(){return ea}},la=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yr,this.transition={})};la.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;nthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var ua=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Nn(e))return new Jn(e,t);if(Gn(e)){var n=Kn(e,t);if("error"===n.result)throw new Error(n.value.map((function(e){return e.key+": "+e.message})).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=et.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};ua.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},ua.prototype.possiblyEvaluate=function(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)};var sa=function(e){this.property=e,this.value=new ua(e,void 0)};sa.prototype.transitioned=function(e,t){return new da(this.property,this.value,t,f({},e.transition,this.transition),e.now)},sa.prototype.untransitioned=function(){return new da(this.property,this.value,null,{},0)};var ca=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};ca.prototype.getValue=function(e){return _(this._values[e].value.value)},ca.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new sa(this._values[e].property)),this._values[e].value=new ua(this._values[e].property,null===t?void 0:_(t))},ca.prototype.getTransition=function(e){return _(this._values[e].transition)},ca.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new sa(this._values[e].property)),this._values[e].transition=_(t)||void 0},ca.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);tthis.end)return this.prior=null,a;if(this.value.isDataDriven())return this.prior=null,a;if(r=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(o))}return a};var fa=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};fa.prototype.possiblyEvaluate=function(e,t,n){for(var r=new ma(this._properties),a=0,i=Object.keys(this._values);ar.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(va),ba=function(e){this.specification=e};ba.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){var a=e.expression.evaluate(t,null,{},n,r);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new la(Math.floor(t.zoom-1),t)),e.expression.evaluate(new la(Math.floor(t.zoom),t)),e.expression.evaluate(new la(Math.floor(t.zoom+1),t)),t)}},ba.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},ba.prototype.interpolate=function(e){return e};var Aa=function(e){this.specification=e};Aa.prototype.possiblyEvaluate=function(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)},Aa.prototype.interpolate=function(){return!1};var _a=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new ua(n,void 0),a=this.defaultTransitionablePropertyValues[t]=new sa(n);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};Nr("DataDrivenProperty",va),Nr("DataConstantProperty",ga),Nr("CrossFadedDataDrivenProperty",ya),Nr("CrossFadedProperty",ba),Nr("ColorRampProperty",Aa);var Oa=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new pa(n.layout)),n.paint)){for(var r in this._transitionablePaint=new ca(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var a in t.layout)this.setLayoutProperty(a,t.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ma(n.paint)}}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){void 0===n&&(n={}),null!=t&&this._validate(Pr,"layers."+this.id+".layout."+e,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)},t.prototype.getPaintProperty=function(e){return y(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t&&this._validate(Lr,"layers."+this.id+".paint."+e,e,t,n))return!1;if(y(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var r=this._transitionablePaint._values[e],a="cross-faded-data-driven"===r.property.specification["property-type"],i=r.value.isDataDriven(),o=r.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||i||a||this._handleOverridablePaintPropertyUpdate(e,o,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),A(e,(function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)}))},t.prototype._validate=function(e,t,n,r,a){return void 0===a&&(a={}),(!a||!1!==a.validate)&&kr(this,e.call(Tr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Ce,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof ha&&Rn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(Te),Ea={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},xa=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ma=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function wa(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map((function(e){var a=Ea[e.type].BYTES_PER_ELEMENT,i=n=Sa(n,Math.max(t,a)),o=e.components||1;return r=Math.max(r,a),n+=a*o,{name:e.name,type:e.type,components:o,offset:i}})),size:Sa(n,Math.max(r,t)),alignment:t}}function Sa(e,t){return Math.ceil(e/t)*t}Ma.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},Ma.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},Ma.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ma.prototype.clear=function(){this.length=0},Ma.prototype.resize=function(e){this.reserve(e),this.length=e},Ma.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},Ma.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ta=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(Ma);Ta.prototype.bytesPerElement=4,Nr("StructArrayLayout2i4",Ta);var Ca=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=4*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,this.int16[i+3]=a,e},t}(Ma);Ca.prototype.bytesPerElement=8,Nr("StructArrayLayout4i8",Ca);var La=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var l=6*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=i,this.int16[l+5]=o,e},t}(Ma);La.prototype.bytesPerElement=12,Nr("StructArrayLayout2i4i12",La);var Pa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var l=4*e,u=8*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=a,this.uint8[u+6]=i,this.uint8[u+7]=o,e},t}(Ma);Pa.prototype.bytesPerElement=8,Nr("StructArrayLayout2i4ub8",Pa);var ka=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(Ma);ka.prototype.bytesPerElement=8,Nr("StructArrayLayout2f8",ka);var Da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,l,u,s){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,a,i,o,l,u,s)},t.prototype.emplace=function(e,t,n,r,a,i,o,l,u,s,c){var d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=r,this.uint16[d+3]=a,this.uint16[d+4]=i,this.uint16[d+5]=o,this.uint16[d+6]=l,this.uint16[d+7]=u,this.uint16[d+8]=s,this.uint16[d+9]=c,e},t}(Ma);Da.prototype.bytesPerElement=20,Nr("StructArrayLayout10ui20",Da);var Ra=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,l,u,s,c,d){var f=this.length;return this.resize(f+1),this.emplace(f,e,t,n,r,a,i,o,l,u,s,c,d)},t.prototype.emplace=function(e,t,n,r,a,i,o,l,u,s,c,d,f){var p=12*e;return this.int16[p+0]=t,this.int16[p+1]=n,this.int16[p+2]=r,this.int16[p+3]=a,this.uint16[p+4]=i,this.uint16[p+5]=o,this.uint16[p+6]=l,this.uint16[p+7]=u,this.int16[p+8]=s,this.int16[p+9]=c,this.int16[p+10]=d,this.int16[p+11]=f,e},t}(Ma);Ra.prototype.bytesPerElement=24,Nr("StructArrayLayout4i4ui4i24",Ra);var ja=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,e},t}(Ma);ja.prototype.bytesPerElement=12,Nr("StructArrayLayout3f12",ja);var Ia=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint32[1*e+0]=t,e},t}(Ma);Ia.prototype.bytesPerElement=4,Nr("StructArrayLayout1ul4",Ia);var Fa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,l,u){var s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,r,a,i,o,l,u)},t.prototype.emplace=function(e,t,n,r,a,i,o,l,u,s){var c=10*e,d=5*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=a,this.int16[c+4]=i,this.int16[c+5]=o,this.uint32[d+3]=l,this.uint16[c+8]=u,this.uint16[c+9]=s,e},t}(Ma);Fa.prototype.bytesPerElement=20,Nr("StructArrayLayout6i1ul2ui20",Fa);var Na=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a,i)},t.prototype.emplace=function(e,t,n,r,a,i,o){var l=6*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=i,this.int16[l+5]=o,e},t}(Ma);Na.prototype.bytesPerElement=12,Nr("StructArrayLayout2i2i2i12",Na);var Ba=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a)},t.prototype.emplace=function(e,t,n,r,a,i){var o=4*e,l=8*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.int16[l+6]=a,this.int16[l+7]=i,e},t}(Ma);Ba.prototype.bytesPerElement=16,Nr("StructArrayLayout2f1f2i16",Ba);var za=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=12*e,o=3*e;return this.uint8[i+0]=t,this.uint8[i+1]=n,this.float32[o+1]=r,this.float32[o+2]=a,e},t}(Ma);za.prototype.bytesPerElement=12,Nr("StructArrayLayout2ub2f12",za);var Ua=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=n,this.uint16[a+2]=r,e},t}(Ma);Ua.prototype.bytesPerElement=6,Nr("StructArrayLayout3ui6",Ua);var Va=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g){var v=this.length;return this.resize(v+1),this.emplace(v,e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g)},t.prototype.emplace=function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g,v){var y=24*e,b=12*e,A=48*e;return this.int16[y+0]=t,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=a,this.uint32[b+2]=i,this.uint32[b+3]=o,this.uint32[b+4]=l,this.uint16[y+10]=u,this.uint16[y+11]=s,this.uint16[y+12]=c,this.float32[b+7]=d,this.float32[b+8]=f,this.uint8[A+36]=p,this.uint8[A+37]=h,this.uint8[A+38]=m,this.uint32[b+10]=g,this.int16[y+22]=v,e},t}(Ma);Va.prototype.bytesPerElement=48,Nr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Va);var Ha=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,x,M,w,S){var T=this.length;return this.resize(T+1),this.emplace(T,e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,x,M,w,S)},t.prototype.emplace=function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,E,x,M,w,S,T){var C=34*e,L=17*e;return this.int16[C+0]=t,this.int16[C+1]=n,this.int16[C+2]=r,this.int16[C+3]=a,this.int16[C+4]=i,this.int16[C+5]=o,this.int16[C+6]=l,this.int16[C+7]=u,this.uint16[C+8]=s,this.uint16[C+9]=c,this.uint16[C+10]=d,this.uint16[C+11]=f,this.uint16[C+12]=p,this.uint16[C+13]=h,this.uint16[C+14]=m,this.uint16[C+15]=g,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=b,this.uint16[C+19]=A,this.uint16[C+20]=_,this.uint16[C+21]=O,this.uint16[C+22]=E,this.uint32[L+12]=x,this.float32[L+13]=M,this.float32[L+14]=w,this.float32[L+15]=S,this.float32[L+16]=T,e},t}(Ma);Ha.prototype.bytesPerElement=68,Nr("StructArrayLayout8i15ui1ul4f68",Ha);var Ya=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.float32[1*e+0]=t,e},t}(Ma);Ya.prototype.bytesPerElement=4,Nr("StructArrayLayout1f4",Ya);var Wa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=r,e},t}(Ma);Wa.prototype.bytesPerElement=6,Nr("StructArrayLayout3i6",Wa);var Ga=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=4*e;return this.uint32[2*e+0]=t,this.uint16[a+2]=n,this.uint16[a+3]=r,e},t}(Ma);Ga.prototype.bytesPerElement=8,Nr("StructArrayLayout1ul2ui8",Ga);var qa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(Ma);qa.prototype.bytesPerElement=4,Nr("StructArrayLayout2ui4",qa);var Xa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint16[1*e+0]=t,e},t}(Ma);Xa.prototype.bytesPerElement=2,Nr("StructArrayLayout1ui2",Xa);var Za=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var i=4*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,this.float32[i+3]=a,e},t}(Ma);Za.prototype.bytesPerElement=16,Nr("StructArrayLayout4f16",Za);var Ka=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(xa);Ka.prototype.size=20;var Ja=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Ka(this,e)},t}(Fa);Nr("CollisionBoxArray",Ja);var Qa=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(t.prototype,n),t}(xa);Qa.prototype.size=48;var $a=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Qa(this,e)},t}(Va);Nr("PlacedSymbolArray",$a);var ei=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+12]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(t.prototype,n),t}(xa);ei.prototype.size=68;var ti=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new ei(this,e)},t}(Ha);Nr("SymbolInstanceArray",ti);var ni=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t}(Ya);Nr("GlyphOffsetArray",ni);var ri=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t}(Wa);Nr("SymbolLineVertexArray",ri);var ai=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(t.prototype,n),t}(xa);ai.prototype.size=8;var ii=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new ai(this,e)},t}(Ga);Nr("FeatureIndexArray",ii);var oi=wa([{name:"a_pos",components:2,type:"Int16"}],4).members,li=function(e){void 0===e&&(e=[]),this.segments=e};function ui(e,t){return 256*(e=c(Math.floor(e),0,255))+c(Math.floor(t),0,255)}li.prototype.prepareSegment=function(e,t,n,r){var a=this.segments[this.segments.length-1];return e>li.MAX_VERTEX_ARRAY_LENGTH&&E("Max vertices per segment is "+li.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!a||a.vertexLength+e>li.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==r)&&(a={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(a.sortKey=r),this.segments.push(a)),a},li.prototype.get=function(){return this.segments},li.prototype.destroy=function(){for(var e=0,t=this.segments;e>>16)*o&65535)<<16)&4294967295)<<15|u>>>17))*l+(((u>>>16)*l&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(s+2))<<16;case 2:u^=(255&e.charCodeAt(s+1))<<8;case 1:a^=u=(65535&(u=(u=(65535&(u^=255&e.charCodeAt(s)))*o+(((u>>>16)*o&65535)<<16)&4294967295)<<15|u>>>17))*l+(((u>>>16)*l&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,(a^=a>>>16)>>>0}})),di=t((function(e){e.exports=function(e,t){for(var n,r=e.length,a=t^r,i=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(n>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0}})),fi=ci,pi=di;fi.murmur3=ci,fi.murmur2=pi;var hi=function(){this.ids=[],this.positions=[],this.indexed=!1};hi.prototype.add=function(e,t,n,r){this.ids.push(gi(e)),this.positions.push(t,n,r)},hi.prototype.getPositions=function(e){for(var t=gi(e),n=0,r=this.ids.length-1;n>1;this.ids[a]>=t?r=a:n=a+1}for(var i=[];this.ids[n]===t;)i.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return i},hi.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,a){for(;r>1],o=r-1,l=a+1;;){do{o++}while(t[o]i);if(o>=l)break;vi(t,o,l),vi(n,3*o,3*l),vi(n,3*o+1,3*l+1),vi(n,3*o+2,3*l+2)}l-ro.x+1||uo.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function zi(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Bi(e):[]}}function Ui(e,t,n,r,a){e.emplaceBack(2*t+(r+1)/2,2*n+(a+1)/2)}var Vi=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new Ta,this.indexArray=new Ua,this.segments=new li,this.programConfigurations=new Ri(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Hi(e,t){for(var n=0;n1){if(qi(e,t))return!0;for(var r=0;r1?n:n.sub(t)._mult(a)._add(t))}function Ji(e,t){for(var n,r,a,i=!1,o=0;ot.y!=(a=n[u]).y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(i=!i);return i}function Qi(e,t){for(var n=!1,r=0,a=e.length-1;rt.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(n=!n)}return n}function $i(e,t,n){var r=n[0],a=n[2];if(e.xa.x&&t.x>a.x||e.ya.y&&t.y>a.y)return!1;var i=x(e,t,n[0]);return i!==x(e,t,n[1])||i!==x(e,t,n[2])||i!==x(e,t,n[3])}function eo(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function to(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function no(e,t,n,r,i){if(!t[0]&&!t[1])return e;var o=a.convert(t)._mult(i);"viewport"===n&&o._rotate(-r);for(var l=[],u=0;u=8192||c<0||c>=8192)){var d=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),f=d.vertexLength;Ui(this.layoutVertexArray,s,c,-1,-1),Ui(this.layoutVertexArray,s,c,1,-1),Ui(this.layoutVertexArray,s,c,1,1),Ui(this.layoutVertexArray,s,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),d.vertexLength+=4,d.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)},Nr("CircleBucket",Vi,{omit:["layers"]});var ro=new _a({"circle-sort-key":new va(Ce.layout_circle["circle-sort-key"])}),ao={paint:new _a({"circle-radius":new va(Ce.paint_circle["circle-radius"]),"circle-color":new va(Ce.paint_circle["circle-color"]),"circle-blur":new va(Ce.paint_circle["circle-blur"]),"circle-opacity":new va(Ce.paint_circle["circle-opacity"]),"circle-translate":new ga(Ce.paint_circle["circle-translate"]),"circle-translate-anchor":new ga(Ce.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new ga(Ce.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new ga(Ce.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new va(Ce.paint_circle["circle-stroke-width"]),"circle-stroke-color":new va(Ce.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new va(Ce.paint_circle["circle-stroke-opacity"])}),layout:ro},io="undefined"!=typeof Float32Array?Float32Array:Array;function oo(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function lo(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3],l=t[4],u=t[5],s=t[6],c=t[7],d=t[8],f=t[9],p=t[10],h=t[11],m=t[12],g=t[13],v=t[14],y=t[15],b=n[0],A=n[1],_=n[2],O=n[3];return e[0]=b*r+A*l+_*d+O*m,e[1]=b*a+A*u+_*f+O*g,e[2]=b*i+A*s+_*p+O*v,e[3]=b*o+A*c+_*h+O*y,e[4]=(b=n[4])*r+(A=n[5])*l+(_=n[6])*d+(O=n[7])*m,e[5]=b*a+A*u+_*f+O*g,e[6]=b*i+A*s+_*p+O*v,e[7]=b*o+A*c+_*h+O*y,e[8]=(b=n[8])*r+(A=n[9])*l+(_=n[10])*d+(O=n[11])*m,e[9]=b*a+A*u+_*f+O*g,e[10]=b*i+A*s+_*p+O*v,e[11]=b*o+A*c+_*h+O*y,e[12]=(b=n[12])*r+(A=n[13])*l+(_=n[14])*d+(O=n[15])*m,e[13]=b*a+A*u+_*f+O*g,e[14]=b*i+A*s+_*p+O*v,e[15]=b*o+A*c+_*h+O*y,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,n=arguments.length;n--;)t+=e[n]*e[n];return Math.sqrt(t)});var uo,so=lo;function co(e,t,n){var r=t[0],a=t[1],i=t[2],o=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,e[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,e[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,e[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,e}uo=new io(3),io!=Float32Array&&(uo[0]=0,uo[1]=0,uo[2]=0),function(){var e=new io(4);io!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var fo=(function(){var e=new io(2);io!=Float32Array&&(e[0]=0,e[1]=0)}(),function(e){function t(t){e.call(this,t,ao)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new Vi(e)},t.prototype.queryRadius=function(e){var t=e;return eo("circle-radius",this,t)+eo("circle-stroke-width",this,t)+to(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,i,o,l){for(var u=no(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i.angle,o),s=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),c="map"===this.paint.get("circle-pitch-alignment"),d=c?u:function(e,t){return e.map((function(e){return po(e,t)}))}(u,l),f=c?s*o:s,p=0,h=r;pe.width||a.height>e.height||n.x>e.width-a.width||n.y>e.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||r.x>t.width-a.width||r.y>t.height-a.height)throw new RangeError("out of range destination coordinates for image copy");for(var o=e.data,l=t.data,u=0;u80*n){r=i=e[0],a=o=e[1];for(var h=n;hi&&(i=l),u>o&&(o=u);s=0!==(s=Math.max(i-r,o-a))?1/s:0}return Po(f,p,n,r,a,s),p}function Co(e,t,n,r,a){var i,o;if(a===$o(e,t,n,r)>0)for(i=t;i=t;i-=r)o=Ko(i,e[i],e[i+1],o);return o&&Yo(o,o.next)&&(Jo(o),o=o.next),o}function Lo(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Yo(r,r.next)&&0!==Ho(r.prev,r,r.next))r=r.next;else{if(Jo(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Po(e,t,n,r,a,i,o){if(e){!o&&i&&function(e,t,n,r){var a=e;do{null===a.z&&(a.z=Bo(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,n,r,a,i,o,l,u,s=1;do{for(n=e,e=null,i=null,o=0;n;){for(o++,r=n,l=0,t=0;t0||u>0&&r;)0!==l&&(0===u||!r||n.z<=r.z)?(a=n,n=n.nextZ,l--):(a=r,r=r.nextZ,u--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;n=r}i.nextZ=null,s*=2}while(o>1)}(a)}(e,r,a,i);for(var l,u,s=e;e.prev!==e.next;)if(l=e.prev,u=e.next,i?Do(e,r,a,i):ko(e))t.push(l.i/n),t.push(e.i/n),t.push(u.i/n),Jo(e),e=u.next,s=u.next;else if((e=u)===s){o?1===o?Po(e=Ro(Lo(e),t,n),t,n,r,a,i,2):2===o&&jo(e,t,n,r,a,i):Po(Lo(e),t,n,r,a,i,1);break}}}function ko(e){var t=e.prev,n=e,r=e.next;if(Ho(t,n,r)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(Uo(t.x,t.y,n.x,n.y,r.x,r.y,a.x,a.y)&&Ho(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function Do(e,t,n,r){var a=e.prev,i=e,o=e.next;if(Ho(a,i,o)>=0)return!1;for(var l=a.x>i.x?a.x>o.x?a.x:o.x:i.x>o.x?i.x:o.x,u=a.y>i.y?a.y>o.y?a.y:o.y:i.y>o.y?i.y:o.y,s=Bo(a.x=s&&f&&f.z<=c;){if(d!==e.prev&&d!==e.next&&Uo(a.x,a.y,i.x,i.y,o.x,o.y,d.x,d.y)&&Ho(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,f!==e.prev&&f!==e.next&&Uo(a.x,a.y,i.x,i.y,o.x,o.y,f.x,f.y)&&Ho(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;d&&d.z>=s;){if(d!==e.prev&&d!==e.next&&Uo(a.x,a.y,i.x,i.y,o.x,o.y,d.x,d.y)&&Ho(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;f&&f.z<=c;){if(f!==e.prev&&f!==e.next&&Uo(a.x,a.y,i.x,i.y,o.x,o.y,f.x,f.y)&&Ho(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function Ro(e,t,n){var r=e;do{var a=r.prev,i=r.next.next;!Yo(a,i)&&Wo(a,r,r.next,i)&&Xo(a,i)&&Xo(i,a)&&(t.push(a.i/n),t.push(r.i/n),t.push(i.i/n),Jo(r),Jo(r.next),r=e=i),r=r.next}while(r!==e);return Lo(r)}function jo(e,t,n,r,a,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Vo(o,l)){var u=Zo(o,l);return o=Lo(o,o.next),u=Lo(u,u.next),Po(o,t,n,r,a,i),void Po(u,t,n,r,a,i)}l=l.next}o=o.next}while(o!==e)}function Io(e,t){return e.x-t.x}function Fo(e,t){if(t=function(e,t){var n,r=t,a=e.x,i=e.y,o=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=a&&l>o){if(o=l,l===a){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&a!==r.x&&Uo(in.x||r.x===n.x&&No(n,r)))&&(n=r,f=u)),r=r.next}while(r!==s);return n}(e,t)){var n=Zo(t,e);Lo(t,t.next),Lo(n,n.next)}}function No(e,t){return Ho(e.prev,e,t.prev)<0&&Ho(t.next,e,e.next)<0}function Bo(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*a)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*a)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function zo(e){var t=e,n=e;do{(t.x=0&&(e-o)*(r-l)-(n-o)*(t-l)>=0&&(n-o)*(i-l)-(a-o)*(r-l)>=0}function Vo(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Wo(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Xo(e,t)&&Xo(t,e)&&function(e,t){var n=e,r=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&a<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Ho(e.prev,e,t.prev)||Ho(e,t.prev,t))||Yo(e,t)&&Ho(e.prev,e,e.next)>0&&Ho(t.prev,t,t.next)>0)}function Ho(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Yo(e,t){return e.x===t.x&&e.y===t.y}function Wo(e,t,n,r){var a=qo(Ho(e,t,n)),i=qo(Ho(e,t,r)),o=qo(Ho(n,r,e)),l=qo(Ho(n,r,t));return a!==i&&o!==l||!(0!==a||!Go(e,n,t))||!(0!==i||!Go(e,r,t))||!(0!==o||!Go(n,e,r))||!(0!==l||!Go(n,t,r))}function Go(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function qo(e){return e>0?1:e<0?-1:0}function Xo(e,t){return Ho(e.prev,e,e.next)<0?Ho(e,t,e.next)>=0&&Ho(e,e.prev,t)>=0:Ho(e,t,e.prev)<0||Ho(e,e.next,t)<0}function Zo(e,t){var n=new Qo(e.i,e.x,e.y),r=new Qo(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Ko(e,t,n,r){var a=new Qo(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function Jo(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Qo(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function $o(e,t,n,r){for(var a=0,i=t,o=n-r;ir;){if(a-r>600){var o=a-r+1,l=n-r+1,u=Math.log(o),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(o-s)/o)*(l-o/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-l*s/o+c)),Math.min(a,Math.floor(n+(o-l)*s/o+c)),i)}var d=t[n],f=r,p=a;for(tl(t,r,n),i(t[a],d)>0&&tl(t,r,a);f0;)p--}0===i(t[r],d)?tl(t,r,p):tl(t,++p,a),p<=n&&(r=p+1),n<=p&&(a=p-1)}}(e,t,n||0,r||e.length-1,a||nl)}function tl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function nl(e,t){return et?1:0}function rl(e,t){var n=e.length;if(n<=1)return[e];for(var r,a,i=[],o=0;o1)for(var u=0;u0&&n.holes.push(r+=e[a-1].length)}return n},wo.default=So;var ll=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ta,this.indexArray=new Ua,this.indexArray2=new qa,this.programConfigurations=new Ri(e.layers,e.zoom),this.segments=new li,this.segments2=new li,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};ll.prototype.populate=function(e,t,n){this.hasPattern=il("fill",this.layers,t);for(var r=this.layers[0].layout.get("fill-sort-key"),a=[],i=0,o=e;i>3}if(i--,1===r||2===r)o+=e.readSVarint(),l+=e.readSVarint(),1===r&&(t&&u.push(t),t=[]),t.push(new a(o,l));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&u.push(t),u},pl.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,i=0,o=1/0,l=-1/0,u=1/0,s=-1/0;e.pos>3}if(r--,1===n||2===n)(a+=e.readSVarint())l&&(l=a),(i+=e.readSVarint())s&&(s=i);else if(7!==n)throw new Error("unknown command "+n)}return[o,u,l,s]},pl.prototype.toGeoJSON=function(e,t,n){var r,a,i=this.extent*Math.pow(2,n),o=this.extent*e,l=this.extent*t,u=this.loadGeometry(),s=pl.types[this.type];function c(e){for(var t=0;t>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function bl(e,t,n){if(3===e){var r=new gl(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}vl.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new fl(this._pbf,t,this.extent,this._keys,this._values)};var Al={VectorTile:function(e,t){this.layers=e.readFields(bl,{},t)},VectorTileFeature:fl,VectorTileLayer:gl},_l=Al.VectorTileFeature.types,Ol=Math.pow(2,13);function El(e,t,n,r,a,i,o,l){e.emplaceBack(t,n,2*Math.floor(r*Ol)+o,a*Ol*2,i*Ol*2,Math.round(l))}var xl=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new La,this.indexArray=new Ua,this.programConfigurations=new Ri(e.layers,e.zoom),this.segments=new li,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Ml(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}xl.prototype.populate=function(e,t,n){this.features=[],this.hasPattern=il("fill-extrusion",this.layers,t);for(var r=0,a=e;r8192}))||k.every((function(e){return e.y<0}))||k.every((function(e){return e.y>8192}))))for(var m=0,g=0;g=1){var y=h[g-1];if(!Ml(v,y)){d.vertexLength+4>li.MAX_VERTEX_ARRAY_LENGTH&&(d=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=v.sub(y)._perp()._unit(),A=y.dist(v);m+A>32768&&(m=0),El(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,0,m),El(this.layoutVertexArray,v.x,v.y,b.x,b.y,0,1,m),El(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,m+=A),El(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,m);var _=d.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),d.vertexLength+=4,d.primitiveLength+=2}}}}if(d.vertexLength+u>li.MAX_VERTEX_ARRAY_LENGTH&&(d=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===_l[e.type]){for(var O=[],E=[],x=d.vertexLength,M=0,w=l;M=2&&e[u-1].equals(e[u-2]);)u--;for(var s=0;s0;if(E&&v>s){var M=c.dist(p);if(M>2*d){var w=c.sub(c.sub(p)._mult(d/M)._round());this.updateDistance(p,w),this.addCurrentVertex(w,m,0,0,f),p=w}}var S=p&&h,T=S?n:l?"butt":r;if(S&&"round"===T&&(_a&&(T="bevel"),"bevel"===T&&(_>2&&(T="flipbevel"),_100)y=g.mult(-1);else{var C=_*m.add(g).mag()/m.sub(g).mag();y._perp()._mult(C*(x?-1:1))}this.addCurrentVertex(c,y,0,0,f),this.addCurrentVertex(c,y.mult(-1),0,0,f)}else if("bevel"===T||"fakeround"===T){var L=-Math.sqrt(_*_-1),P=x?L:0,k=x?0:L;if(p&&this.addCurrentVertex(c,m,P,k,f),"fakeround"===T)for(var D=Math.round(180*O/Math.PI/20),R=1;R2*d){var z=c.add(h.sub(c)._mult(d/B)._round());this.updateDistance(c,z),this.addCurrentVertex(z,g,0,0,f),c=z}}}}},jl.prototype.addCurrentVertex=function(e,t,n,r,a,i){void 0===i&&(i=!1);var o=t.y*r-t.x,l=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,i,!1,n,a),this.addHalfVertex(e,o,l,i,!0,-r,a),this.distance>Rl/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,a,i))},jl.prototype.addHalfVertex=function(e,t,n,r,a,i,o){var l=.5*(this.lineClips?this.scaledDistance*(Rl-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e.x<<1)+(r?1:0),(e.y<<1)+(a?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===i?0:i<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),a?this.e2=u:this.e1=u},jl.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},jl.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},Nr("LineBucket",jl,{omit:["layers","patternFeatures"]});var Il=new _a({"line-cap":new ga(Ce.layout_line["line-cap"]),"line-join":new va(Ce.layout_line["line-join"]),"line-miter-limit":new ga(Ce.layout_line["line-miter-limit"]),"line-round-limit":new ga(Ce.layout_line["line-round-limit"]),"line-sort-key":new va(Ce.layout_line["line-sort-key"])}),Fl={paint:new _a({"line-opacity":new va(Ce.paint_line["line-opacity"]),"line-color":new va(Ce.paint_line["line-color"]),"line-translate":new ga(Ce.paint_line["line-translate"]),"line-translate-anchor":new ga(Ce.paint_line["line-translate-anchor"]),"line-width":new va(Ce.paint_line["line-width"]),"line-gap-width":new va(Ce.paint_line["line-gap-width"]),"line-offset":new va(Ce.paint_line["line-offset"]),"line-blur":new va(Ce.paint_line["line-blur"]),"line-dasharray":new ba(Ce.paint_line["line-dasharray"]),"line-pattern":new ya(Ce.paint_line["line-pattern"]),"line-gradient":new Aa(Ce.paint_line["line-gradient"])}),layout:Il},Nl=new(function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new la(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,a){return n=f({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,a)},t}(va))(Fl.paint.properties["line-width"].specification);Nl.useIntegerZoom=!0;var Bl=function(e){function t(t){e.call(this,t,Fl),this.gradientVersion=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ht,this.gradientVersion=(this.gradientVersion+1)%l)},t.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=Nl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new jl(e)},t.prototype.queryRadius=function(e){var t=e,n=zl(eo("line-width",this,t),eo("line-gap-width",this,t)),r=eo("line-offset",this,t);return n/2+Math.abs(r)+to(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,l){var u=no(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,l),s=l/2*zl(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),c=this.paint.get("line-offset").evaluate(t,n);return c&&(r=function(e,t){for(var n=[],r=new a(0,0),i=0;i=3)for(var i=0;i0?t+2*e:e}var Ul=wa([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Vl=wa([{name:"a_projected_pos",components:3,type:"Float32"}],4),Hl=(wa([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),wa([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Yl=(wa([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),wa([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Wl=wa([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Gl(e,t,n){return e.sections.forEach((function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),oa.applyArabicShaping&&(e=oa.applyArabicShaping(e)),e}(e.text,t,n)})),e}wa([{name:"triangle",components:3,type:"Uint16"}]),wa([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),wa([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),wa([{type:"Float32",name:"offsetX"}]),wa([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ql={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Xl=function(e,t,n,r,a){var i,o,l=8*a-r-1,u=(1<>1,c=-7,d=n?a-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+d],d+=f,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===i)i=1-s;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=s}return(p?-1:1)*o*Math.pow(2,i-r)},Zl=function(e,t,n,r,a,i){var o,l,u,s=8*i-a-1,c=(1<>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(o++,u/=2),o+d>=c?(l=0,o=c):o+d>=1?(l=(t*u-1)*Math.pow(2,a),o+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&l,p+=h,l/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=h,o/=256,s-=8);e[n+p-h]|=128*m},Kl=Jl;function Jl(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}Jl.Varint=0,Jl.Fixed64=1,Jl.Bytes=2,Jl.Fixed32=5;var Ql="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function $l(e){return e.type===Jl.Bytes?e.readVarint()+e.pos:e.pos+1}function eu(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function tu(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var a=n.pos-1;a>=e;a--)n.buf[a+r]=n.buf[a]}function nu(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function pu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function hu(e,t,n){1===e&&n.readMessage(mu,t)}function mu(e,t,n){if(3===e){var r=n.readMessage(gu,{}),a=r.width,i=r.height,o=r.left,l=r.top,u=r.advance;t.push({id:r.id,bitmap:new yo({width:a+6,height:i+6},r.bitmap),metrics:{width:a,height:i,left:o,top:l,advance:u}})}}function gu(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function vu(e){for(var t=0,n=0,r=0,a=e;r=0;f--){var p=o[f];if(!(d.w>p.w||d.h>p.h)){if(d.x=p.x,d.y=p.y,u=Math.max(u,d.y+d.h),l=Math.max(l,d.x+d.w),d.w===p.w&&d.h===p.h){var h=o.pop();f>3,i=this.pos;this.type=7&r,e(a,t,this),this.pos===i&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=du(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=pu(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=du(this.buf,this.pos)+4294967296*du(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=du(this.buf,this.pos)+4294967296*pu(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=Xl(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Xl(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,a,i=n.buf;if(r=(112&(a=i[n.pos++]))>>4,a<128)return eu(e,r,t);if(r|=(127&(a=i[n.pos++]))<<3,a<128)return eu(e,r,t);if(r|=(127&(a=i[n.pos++]))<<10,a<128)return eu(e,r,t);if(r|=(127&(a=i[n.pos++]))<<17,a<128)return eu(e,r,t);if(r|=(127&(a=i[n.pos++]))<<24,a<128)return eu(e,r,t);if(r|=(1&(a=i[n.pos++]))<<31,a<128)return eu(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[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&&Ql?function(e,t,n){return Ql.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",a=t;a239?4:u>223?3:u>191?2:1;if(a+c>n)break;1===c?u<128&&(s=u):2===c?128==(192&(i=e[a+1]))&&(s=(31&u)<<6|63&i)<=127&&(s=null):3===c?(o=e[a+2],128==(192&(i=e[a+1]))&&128==(192&o)&&((s=(15&u)<<12|(63&i)<<6|63&o)<=2047||s>=55296&&s<=57343)&&(s=null)):4===c&&(o=e[a+2],l=e[a+3],128==(192&(i=e[a+1]))&&128==(192&o)&&128==(192&l)&&((s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&l)<=65535||s>=1114112)&&(s=null)),null===s?(s=65533,c=1):s>65535&&(s-=65536,r+=String.fromCharCode(s>>>10&1023|55296),s=56320|1023&s),r+=String.fromCharCode(s),a+=c}return r}(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!==Jl.Bytes)return e.push(this.readVarint(t));var n=$l(this);for(e=e||[];this.pos127;);else if(t===Jl.Bytes)this.pos=this.readVarint()+this.pos;else if(t===Jl.Fixed32)this.pos+=4;else{if(t!==Jl.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;t268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,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,n){for(var r,a,i=0;i55295&&r<57344){if(!a){r>56319||i+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):a=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[n++]=239,e[n++]=191,e[n++]=189,a=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&tu(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Zl(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Zl(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 n=0;n=128&&tu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,Jl.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,nu,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,ru,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,ou,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,au,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,iu,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,lu,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,uu,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,su,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,cu,t)},writeBytesField:function(e,t){this.writeTag(e,Jl.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,Jl.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,Jl.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,Jl.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,Jl.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,Jl.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,Jl.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,Jl.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,Jl.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,Jl.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var yu=function(e,t){var n=t.pixelRatio,r=t.version,a=t.stretchX,i=t.stretchY,o=t.content;this.paddedRect=e,this.pixelRatio=n,this.stretchX=a,this.stretchY=i,this.content=o,this.version=r},bu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bu.tlbr.get=function(){return this.tl.concat(this.br)},bu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yu.prototype,bu);var Au=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var a=[];this.addImages(e,n,a),this.addImages(t,r,a);var i=vu(a),o=new bo({width:i.w||1,height:i.h||1});for(var l in e){var u=e[l],s=n[l].paddedRect;bo.copy(u.data,o,{x:0,y:0},{x:s.x+1,y:s.y+1},u.data)}for(var c in t){var d=t[c],f=r[c].paddedRect,p=f.x+1,h=f.y+1,m=d.data.width,g=d.data.height;bo.copy(d.data,o,{x:0,y:0},{x:p,y:h},d.data),bo.copy(d.data,o,{x:0,y:g-1},{x:p,y:h-1},{width:m,height:1}),bo.copy(d.data,o,{x:0,y:0},{x:p,y:h+g},{width:m,height:1}),bo.copy(d.data,o,{x:m-1,y:0},{x:p-1,y:h},{width:1,height:g}),bo.copy(d.data,o,{x:0,y:0},{x:p+m,y:h},{width:1,height:g})}this.image=o,this.iconPositions=n,this.patternPositions=r};Au.prototype.addImages=function(e,t,n){for(var r in e){var a=e[r],i={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(i),t[r]=new yu(i,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},Au.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)},Au.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl;n.update(t.data,void 0,{x:r[0],y:r[1]})}},Nr("ImagePosition",yu),Nr("ImageAtlas",Au);var _u={horizontal:1,vertical:2,horizontalOnly:3},Ou=function(){this.scale=1,this.fontStack="",this.imageName=null};Ou.forText=function(e,t){var n=new Ou;return n.scale=e||1,n.fontStack=t,n},Ou.forImage=function(e){var t=new Ou;return t.imageName=e,t};var Eu=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function xu(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m){var g,v=Eu.fromFeature(e,a);d===_u.vertical&&v.verticalizePunctuation();var y=oa.processBidirectionalText,b=oa.processStyledBidirectionalText;if(y&&1===v.sections.length){g=[];for(var A=0,_=y(v.toString(),Pu(v,s,i,t,r,p,h));A<_.length;A+=1){var O=_[A],E=new Eu;E.text=O,E.sections=v.sections;for(var x=0;x0&&N>M&&(M=N)}else{var B=n[S.fontStack],z=B&&B[C];if(z&&z.rect)k=z.rect,P=z.metrics;else{var U=t[S.fontStack],V=U&&U[C];if(!V)continue;P=V.metrics}L=24*(_-S.scale)}j?(e.verticalizable=!0,x.push({glyph:C,imageName:D,x:f,y:p+L,vertical:j,scale:S.scale,fontStack:S.fontStack,sectionIndex:T,metrics:P,rect:k}),f+=R*S.scale+s):(x.push({glyph:C,imageName:D,x:f,y:p+L,vertical:j,scale:S.scale,fontStack:S.fontStack,sectionIndex:T,metrics:P,rect:k}),f+=P.advance*S.scale+s)}0!==x.length&&(h=Math.max(f-s,h),Du(x,0,x.length-1,g,M)),f=0;var H=i*_+M;E.lineOffset=Math.max(M,O),p+=H,m=Math.max(H,m),++v}else p+=i,++v}var Y,W=p- -17,G=ku(o),q=G.horizontalAlign,X=G.verticalAlign;(function(e,t,n,r,a,i,o,l,u){var s,c=(t-n)*a;s=i!==o?-l*r- -17:(-r*u+.5)*o;for(var d=0,f=e;d=0&&r>=e&&Mu[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},Eu.prototype.substring=function(e,t){var n=new Eu;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},Eu.prototype.toString=function(){return this.text},Eu.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,n){return Math.max(t,e.sections[n].scale)}),0)},Eu.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(Ou.forText(e.scale,e.fontStack||t));for(var n=this.sections.length-1,r=0;r=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Mu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},wu={};function Su(e,t,n,r,a,i){if(t.imageName){var o=r[t.imageName];return o?o.displaySize[0]*t.scale*24/i+a:0}var l=n[t.fontStack],u=l&&l[e];return u?u.metrics.advance*t.scale+a:0}function Tu(e,t,n,r){var a=Math.pow(e-t,2);return r?e=0,d=0,f=0;f-n/2;){if(--o<0)return!1;l-=e[o].dist(i),i=e[o]}l+=e[o].dist(e[o+1]),o++;for(var u=[],s=0;lr;)s-=u.shift().angleDelta;if(s>a)return!1;o++,l+=c.dist(d)}return!0}function Uu(e){for(var t=0,n=0;ns){var h=(s-u)/p,m=Yt(d.x,f.x,h),g=Yt(d.y,f.y,h),v=new ju(m,g,f.angleTo(d),c);return v._round(),!o||zu(e,v,l,o,t)?v:void 0}u+=p}}function Wu(e,t,n,r,a,i,o,l,u){var s=Vu(r,i,o),c=Hu(r,a),d=c*o,f=0===e[0].x||e[0].x===u||0===e[0].y||e[0].y===u;return t-d=0&&_=0&&O=0&&p+c<=d){var E=new ju(_,O,b,m);E._round(),a&&!zu(t,E,o,a,i)||h.push(E)}}f+=y}return u||h.length||l||(h=e(t,f/2,r,a,i,o,l,!0,s)),h}(e,f?t/2*l%t:(c/2+2*i)*o*l%t,t,s,n,d,f,!1,u)}function Gu(e,t,n,r,i){for(var o=[],l=0;l=r&&f.x>=r||(d.x>=r?d=new a(r,d.y+(r-d.x)/(f.x-d.x)*(f.y-d.y))._round():f.x>=r&&(f=new a(r,d.y+(r-d.x)/(f.x-d.x)*(f.y-d.y))._round()),d.y>=i&&f.y>=i||(d.y>=i?d=new a(d.x+(i-d.y)/(f.y-d.y)*(f.x-d.x),i)._round():f.y>=i&&(f=new a(d.x+(i-d.y)/(f.y-d.y)*(f.x-d.x),i)._round()),s&&d.equals(s[s.length-1])||o.push(s=[d]),s.push(f)))))}return o}function qu(e,t,n,r){var i=[],o=e.image,l=o.pixelRatio,u=o.paddedRect.w-2,s=o.paddedRect.h-2,c=e.right-e.left,d=e.bottom-e.top,f=o.stretchX||[[0,u]],p=o.stretchY||[[0,s]],h=function(e,t){return e+t[1]-t[0]},m=f.reduce(h,0),g=p.reduce(h,0),v=u-m,y=s-g,b=0,A=m,_=0,O=g,E=0,x=v,M=0,w=y;if(o.content&&r){var S=o.content;b=Xu(f,0,S[0]),_=Xu(p,0,S[1]),A=Xu(f,S[0],S[2]),O=Xu(p,S[1],S[3]),E=S[0]-b,M=S[1]-_,x=S[2]-S[0]-A,w=S[3]-S[1]-O}var T=function(r,i,u,s){var f=Ku(r.stretch-b,A,c,e.left),p=Ju(r.fixed-E,x,r.stretch,m),h=Ku(i.stretch-_,O,d,e.top),v=Ju(i.fixed-M,w,i.stretch,g),y=Ku(u.stretch-b,A,c,e.left),S=Ju(u.fixed-E,x,u.stretch,m),T=Ku(s.stretch-_,O,d,e.top),C=Ju(s.fixed-M,w,s.stretch,g),L=new a(f,h),P=new a(y,h),k=new a(y,T),D=new a(f,T),R=new a(p/l,v/l),j=new a(S/l,C/l),I=t*Math.PI/180;if(I){var F=Math.sin(I),N=Math.cos(I),B=[N,-F,F,N];L._matMult(B),P._matMult(B),D._matMult(B),k._matMult(B)}var z=r.stretch+r.fixed,U=i.stretch+i.fixed;return{tl:L,tr:P,bl:D,br:k,tex:{x:o.paddedRect.x+1+z,y:o.paddedRect.y+1+U,w:u.stretch+u.fixed-z,h:s.stretch+s.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:R,pixelOffsetBR:j,minFontScaleX:x/l/c,minFontScaleY:w/l/d,isSDF:n}};if(r&&(o.stretchX||o.stretchY))for(var C=Zu(f,v,m),L=Zu(p,y,g),P=0;P0&&(h=Math.max(10,h),this.circleDiameter=h)}else{var m=o.top*l-u,g=o.bottom*l+u,v=o.left*l-u,y=o.right*l+u,b=o.collisionPadding;if(b&&(v-=b[0]*l,m-=b[1]*l,y+=b[2]*l,g+=b[3]*l),c){var A=new a(v,m),_=new a(y,m),O=new a(v,g),E=new a(y,g),x=c*Math.PI/180;A._rotate(x),_._rotate(x),O._rotate(x),E._rotate(x),v=Math.min(A.x,_.x,O.x,E.x),y=Math.max(A.x,_.x,O.x,E.x),m=Math.min(A.y,_.y,O.y,E.y),g=Math.max(A.y,_.y,O.y,E.y)}e.emplaceBack(t.x,t.y,v,m,y,g,n,r,i)}this.boxEndIndex=e.length},$u=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=es),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function es(e,t){return et?1:0}function ts(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,i=1/0,o=-1/0,l=-1/0,u=e[0],s=0;so)&&(o=c.x),(!s||c.y>l)&&(l=c.y)}var d=Math.min(o-r,l-i),f=d/2,p=new $u([],ns);if(0===d)return new a(r,i);for(var h=r;hg.d||!g.d)&&(g=y,n&&console.log("found best %d after %d probes",Math.round(1e4*y.d)/1e4,v)),y.max-g.d<=t||(p.push(new rs(y.p.x-(f=y.h/2),y.p.y-f,f,e)),p.push(new rs(y.p.x+f,y.p.y-f,f,e)),p.push(new rs(y.p.x-f,y.p.y+f,f,e)),p.push(new rs(y.p.x+f,y.p.y+f,f,e)),v+=4)}return n&&(console.log("num probes: "+v),console.log("best distance: "+g.d)),g.p}function ns(e,t){return t.max-e.max}function rs(e,t,n,r){this.p=new a(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,a=0;ae.y!=c.y>e.y&&e.x<(c.x-s.x)*(e.y-s.y)/(c.y-s.y)+s.x&&(n=!n),r=Math.min(r,Ki(e,s,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}$u.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},$u.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},$u.prototype.peek=function(){return this.data[0]},$u.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var a=e-1>>1,i=t[a];if(n(r,i)>=0)break;t[e]=i,e=a}t[e]=r},$u.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,a=t[e];e=0)break;t[e]=o,e=i}t[e]=a};var as=Number.POSITIVE_INFINITY;function is(e,t){return t[1]!==as?function(e,t,n){var r=0,a=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,a]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var a=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=7-a;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function os(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ls(e,t,n,r,i,o,l,u,s,c,d,f,p,h,m){var g=function(e,t,n,r,i,o,l,u){for(var s=r.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,c=[],d=0,f=t.positionedLines;d32640&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===v.kind&&((y=[128*h.compositeTextSizes[0].evaluate(l,{},m),128*h.compositeTextSizes[1].evaluate(l,{},m)])[0]>32640||y[1]>32640)&&E(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),e.addSymbols(e.text,g,y,u,o,l,c,t,s.lineStartIndex,s.lineLength,p,m);for(var b=0,A=d;b=0;o--)if(r.dist(i[o])0)&&("constant"!==i.value.kind||i.value.value.length>0),s="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,c=a.get("symbol-sort-key");if(this.features=[],u||s){for(var d=t.iconDependencies,f=t.glyphDependencies,p=t.availableImages,h=new la(this.zoom),m=0,g=e;m=0;for(var k=0,D=x.sections;k=0;l--)i[l]={x:t[l].x,y:t[l].y,tileUnitDistanceFromAnchor:a},l>0&&(a+=t[l-1].dist(t[l]));for(var u=0;u0},vs.prototype.hasIconData=function(){return this.icon.segments.get().length>0},vs.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},vs.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},vs.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},vs.prototype.addIndicesForPlacedSymbol=function(e,t){for(var n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs,a=n.vertexStartIndex;a1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n=0&&r.indexOf(e)===n&&t.addIndicesForPlacedSymbol(t.text,e)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Nr("SymbolBucket",vs,{omit:["layers","collisionBoxArray","features","compareText"]}),vs.MAX_GLYPHS=65535,vs.addDynamicAttributes=ps;var ys=new _a({"symbol-placement":new ga(Ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ga(Ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ga(Ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new va(Ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ga(Ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ga(Ce.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ga(Ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ga(Ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ga(Ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new va(Ce.layout_symbol["icon-size"]),"icon-text-fit":new ga(Ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ga(Ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new va(Ce.layout_symbol["icon-image"]),"icon-rotate":new va(Ce.layout_symbol["icon-rotate"]),"icon-padding":new ga(Ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ga(Ce.layout_symbol["icon-keep-upright"]),"icon-offset":new va(Ce.layout_symbol["icon-offset"]),"icon-anchor":new va(Ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ga(Ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ga(Ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ga(Ce.layout_symbol["text-rotation-alignment"]),"text-field":new va(Ce.layout_symbol["text-field"]),"text-font":new va(Ce.layout_symbol["text-font"]),"text-size":new va(Ce.layout_symbol["text-size"]),"text-max-width":new va(Ce.layout_symbol["text-max-width"]),"text-line-height":new ga(Ce.layout_symbol["text-line-height"]),"text-letter-spacing":new va(Ce.layout_symbol["text-letter-spacing"]),"text-justify":new va(Ce.layout_symbol["text-justify"]),"text-radial-offset":new va(Ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ga(Ce.layout_symbol["text-variable-anchor"]),"text-anchor":new va(Ce.layout_symbol["text-anchor"]),"text-max-angle":new ga(Ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ga(Ce.layout_symbol["text-writing-mode"]),"text-rotate":new va(Ce.layout_symbol["text-rotate"]),"text-padding":new ga(Ce.layout_symbol["text-padding"]),"text-keep-upright":new ga(Ce.layout_symbol["text-keep-upright"]),"text-transform":new va(Ce.layout_symbol["text-transform"]),"text-offset":new va(Ce.layout_symbol["text-offset"]),"text-allow-overlap":new ga(Ce.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ga(Ce.layout_symbol["text-ignore-placement"]),"text-optional":new ga(Ce.layout_symbol["text-optional"])}),bs={paint:new _a({"icon-opacity":new va(Ce.paint_symbol["icon-opacity"]),"icon-color":new va(Ce.paint_symbol["icon-color"]),"icon-halo-color":new va(Ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new va(Ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new va(Ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ga(Ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ga(Ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new va(Ce.paint_symbol["text-opacity"]),"text-color":new va(Ce.paint_symbol["text-color"],{runtimeType:Ue,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new va(Ce.paint_symbol["text-halo-color"]),"text-halo-width":new va(Ce.paint_symbol["text-halo-width"]),"text-halo-blur":new va(Ce.paint_symbol["text-halo-blur"]),"text-translate":new ga(Ce.paint_symbol["text-translate"]),"text-translate-anchor":new ga(Ce.paint_symbol["text-translate-anchor"])}),layout:ys},As=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Fe,this.defaultValue=e};As.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},As.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},As.prototype.outputDefined=function(){return!1},As.prototype.serialize=function(){return null},Nr("FormatSectionOverride",As,{omit:["defaultValue"]});var _s=function(e){function t(t){e.call(this,t,bs)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.recalculate=function(t,n){if(e.prototype.recalculate.call(this,t,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var a=[],i=0,o=r;i",targetMapId:r,sourceMapId:i.mapId})}}},js.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if(""===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else w()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},js.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},js.prototype.processTask=function(e,t){var n=this;if(""===t.type){var r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(Hr(t.error)):r(null,Hr(t.data)))}else{var a=!1,i=C(this.globalScope)?void 0:[],o=t.hasCallback?function(t,r){a=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"",sourceMapId:n.mapId,error:t?Vr(t):null,data:Vr(r,i)},i)}:function(e){a=!0},l=null,u=Hr(t.data);if(this.parent[t.type])l=this.parent[t.type](t.sourceMapId,u,o);else if(this.parent.getWorkerSource){var s=t.type.split(".");l=this.parent.getWorkerSource(t.sourceMapId,s[0],u.source)[s[1]](u,o)}else o(new Error("Could not find function "+t.type));!a&&l&&l.cancel&&(this.cancelCallbacks[e]=l.cancel)}},js.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Fs=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};Fs.prototype.setNorthEast=function(e){return this._ne=e instanceof Ns?new Ns(e.lng,e.lat):Ns.convert(e),this},Fs.prototype.setSouthWest=function(e){return this._sw=e instanceof Ns?new Ns(e.lng,e.lat):Ns.convert(e),this},Fs.prototype.extend=function(e){var t,n,r=this._sw,a=this._ne;if(e instanceof Ns)t=e,n=e;else{if(!(e instanceof Fs))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Fs.convert(e)):this.extend(Ns.convert(e)):this;if(n=e._ne,!(t=e._sw)||!n)return this}return r||a?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),a.lng=Math.max(n.lng,a.lng),a.lat=Math.max(n.lat,a.lat)):(this._sw=new Ns(t.lng,t.lat),this._ne=new Ns(n.lng,n.lat)),this},Fs.prototype.getCenter=function(){return new Ns((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Fs.prototype.getSouthWest=function(){return this._sw},Fs.prototype.getNorthEast=function(){return this._ne},Fs.prototype.getNorthWest=function(){return new Ns(this.getWest(),this.getNorth())},Fs.prototype.getSouthEast=function(){return new Ns(this.getEast(),this.getSouth())},Fs.prototype.getWest=function(){return this._sw.lng},Fs.prototype.getSouth=function(){return this._sw.lat},Fs.prototype.getEast=function(){return this._ne.lng},Fs.prototype.getNorth=function(){return this._ne.lat},Fs.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Fs.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Fs.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Fs.prototype.contains=function(e){var t=Ns.convert(e),n=t.lng,r=t.lat,a=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&a},Fs.convert=function(e){return!e||e instanceof Fs?e:new Fs(e)};var Ns=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Ns.prototype.wrap=function(){return new Ns(d(this.lng,-180,180),this.lat)},Ns.prototype.toArray=function(){return[this.lng,this.lat]},Ns.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Ns.prototype.distanceTo=function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,a=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return 6371008.8*Math.acos(Math.min(a,1))},Ns.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Fs(new Ns(this.lng-n,this.lat-t),new Ns(this.lng+n,this.lat+t))},Ns.convert=function(e){if(e instanceof Ns)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Ns(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Ns(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Bs=2*Math.PI*6371008.8;function zs(e){return Bs*Math.cos(e*Math.PI/180)}function Us(e){return(180+e)/360}function Vs(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Hs(e,t){return e/zs(t)}function Ys(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}var Ws=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Ws.fromLngLat=function(e,t){void 0===t&&(t=0);var n=Ns.convert(e);return new Ws(Us(n.lng),Vs(n.lat),Hs(t,n.lat))},Ws.prototype.toLngLat=function(){return new Ns(360*this.x-180,Ys(this.y))},Ws.prototype.toAltitude=function(){return this.z*zs(Ys(this.y))},Ws.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bs*(e=Ys(this.y),1/Math.cos(e*Math.PI/180));var e};var Gs=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Zs(0,e,e,t,n)};Gs.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Gs.prototype.url=function(e,t){var n,r,a,i,o,l=(r=this.y,a=this.z,i=Is(256*(n=this.x),256*(r=Math.pow(2,a)-r-1),a),o=Is(256*(n+1),256*(r+1),a),i[0]+","+i[1]+","+o[0]+","+o[1]),u=function(e,t,n){for(var r,a="",i=e;i>0;i--)a+=(t&(r=1<this.canonical.z?new Xs(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Xs(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Xs.prototype.calculateScaledKey=function(e,t){var n=this.canonical.z-e;return e>this.canonical.z?Zs(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Zs(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)},Xs.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>t&&e.canonical.y===this.canonical.y>>t},Xs.prototype.children=function(e){if(this.overscaledZ>=e)return[new Xs(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Xs(t,this.wrap,t,n,r),new Xs(t,this.wrap,t,n+1,r),new Xs(t,this.wrap,t,n,r+1),new Xs(t,this.wrap,t,n+1,r+1)]},Xs.prototype.isLessThan=function(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.y=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},Ks.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},Ks.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},Ks.prototype.getPixels=function(){return new bo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Ks.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,a=t*this.dim+this.dim,i=n*this.dim,o=n*this.dim+this.dim;switch(t){case-1:r=a-1;break;case 1:a=r+1}switch(n){case-1:i=o-1;break;case 1:o=i+1}for(var l=-t*this.dim,u=-n*this.dim,s=i;s=0&&c[3]>=0&&l.insert(o,c[0],c[1],c[2],c[3])}},tc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Al.VectorTile(new Kl(this.rawTileData)).layers,this.sourceLayerCoder=new Js(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},tc.prototype.query=function(e,t,n,r){var i=this;this.loadVTLayers();for(var o=e.params||{},l=8192/e.tileSize/e.scale,u=or(o.filter),s=e.queryGeometry,c=e.queryPadding*l,d=rc(s),f=this.grid.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c),p=rc(e.cameraQueryGeometry),h=0,m=this.grid3D.query(p.minX-c,p.minY-c,p.maxX+c,p.maxY+c,(function(t,n,r,i){return function(e,t,n,r,i){for(var o=0,l=e;o=u.x&&i>=u.y)return!0}var s=[new a(t,n),new a(t,i),new a(r,i),new a(r,n)];if(e.length>2)for(var c=0,d=s;c=0)return!0;return!1}(i,d)){var p=this.sourceLayerCoder.decode(n),h=this.vtLayers[p].feature(r);if(a.needGeometry){var m=zi(h,!0);if(!a.filter(new la(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!a.filter(new la(this.tileID.overscaledZ),h))return;for(var g=this.getId(h,p),v=0;vr)a=!1;else if(t)if(this.expirationTimeue&&(e.getActor().send("enforceCacheSizeLimit",le),fe=0)},e.clamp=c,e.clearTileCache=function(e){var t=o.caches.delete("mapbox-tiles");e&&t.catch(e).then((function(){return e()}))},e.clipLine=Gu,e.clone=function(e){var t=new io(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=_,e.clone$2=function(e){var t=new io(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.collisionCircleLayout=Wl,e.config=B,e.create=function(){var e=new io(16);return io!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=function(){var e=new io(9);return io!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},e.create$2=function(){var e=new io(4);return io!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=qn,e.createLayout=wa,e.createStyleLayer=function(e){return"custom"===e.type?new ws(e):new Ss[e.type](e)},e.cross=function(e,t,n){var r=t[0],a=t[1],i=t[2],o=n[0],l=n[1],u=n[2];return e[0]=a*u-i*l,e[1]=i*o-r*u,e[2]=r*l-a*o,e},e.deepEqual=function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var r=0;r0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e},e.number=Yt,e.offscreenCanvasSupported=pe,e.ortho=function(e,t,n,r,a,i,o){var l=1/(t-n),u=1/(r-a),s=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(t+n)*l,e[13]=(a+r)*u,e[14]=(o+i)*s,e[15]=1,e},e.parseGlyphPBF=function(e){return new Kl(e).readFields(hu,[])},e.pbf=Kl,e.performSymbolLayout=function(e,t,n,r,a,i,o){e.createArrays(),e.tilePixelRatio=8192/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,s={};if("composite"===e.textSizeData.kind){var c=e.textSizeData,d=c.maxZoom;s.compositeTextSizes=[u["text-size"].possiblyEvaluate(new la(c.minZoom),o),u["text-size"].possiblyEvaluate(new la(d),o)]}if("composite"===e.iconSizeData.kind){var f=e.iconSizeData,p=f.maxZoom;s.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new la(f.minZoom),o),u["icon-size"].possiblyEvaluate(new la(p),o)]}s.layoutTextSize=u["text-size"].possiblyEvaluate(new la(e.zoom+1),o),s.layoutIconSize=u["icon-size"].possiblyEvaluate(new la(e.zoom+1),o),s.textMaxSize=u["text-size"].possiblyEvaluate(new la(18));for(var h=24*l.get("text-line-height"),m="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),g=l.get("text-keep-upright"),v=l.get("text-size"),y=function(){var i=A[b],u=l.get("text-font").evaluate(i,{},o).join(","),c=v.evaluate(i,{},o),d=s.layoutTextSize.evaluate(i,{},o),f=s.layoutIconSize.evaluate(i,{},o),p={horizontal:{},vertical:void 0},y=i.text,_=[0,0];if(y){var O=y.toString(),x=24*l.get("text-letter-spacing").evaluate(i,{},o),M=function(e){for(var t=0,n=e;t=8192||d.y<0||d.y>=8192||function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m,g,v,y,b,A,_,O,x,M){var w,S,T,C,L,P=e.addToLineVertexArray(t,n),k=0,D=0,R=0,j=0,I=-1,F=-1,N={},B=fi(""),z=0,U=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?(z=(w=l.layout.get("text-offset").evaluate(A,{},x).map((function(e){return 24*e})))[0],U=w[1]):(z=24*l.layout.get("text-radial-offset").evaluate(A,{},x),U=as),e.allowVerticalPlacement&&r.vertical){var V=l.layout.get("text-rotate").evaluate(A,{},x)+90;C=new Qu(u,t,s,c,d,r.vertical,f,p,h,V),o&&(L=new Qu(u,t,s,c,d,o,g,v,h,V))}if(a){var H=l.layout.get("icon-rotate").evaluate(A,{}),Y="none"!==l.layout.get("icon-text-fit"),W=qu(a,H,O,Y),G=o?qu(o,H,O,Y):void 0;T=new Qu(u,t,s,c,d,a,g,v,!1,H),k=4*W.length;var q=e.iconSizeData,X=null;"source"===q.kind?(X=[128*l.layout.get("icon-size").evaluate(A,{})])[0]>32640&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===q.kind&&((X=[128*_.compositeIconSizes[0].evaluate(A,{},x),128*_.compositeIconSizes[1].evaluate(A,{},x)])[0]>32640||X[1]>32640)&&E(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),e.addSymbols(e.icon,W,X,b,y,A,!1,t,P.lineStartIndex,P.lineLength,-1,x),I=e.icon.placedSymbolArray.length-1,G&&(D=4*G.length,e.addSymbols(e.icon,G,X,b,y,A,_u.vertical,t,P.lineStartIndex,P.lineLength,-1,x),F=e.icon.placedSymbolArray.length-1)}for(var Z in r.horizontal){var K=r.horizontal[Z];if(!S){B=fi(K.text);var J=l.layout.get("text-rotate").evaluate(A,{},x);S=new Qu(u,t,s,c,d,K,f,p,h,J)}var Q=1===K.positionedLines.length;if(R+=ls(e,t,K,i,l,h,A,m,P,r.vertical?_u.horizontal:_u.horizontalOnly,Q?Object.keys(r.horizontal):[Z],N,I,_,x),Q)break}r.vertical&&(j+=ls(e,t,r.vertical,i,l,h,A,m,P,_u.vertical,["vertical"],N,F,_,x));var $=S?S.boxStartIndex:e.collisionBoxArray.length,ee=S?S.boxEndIndex:e.collisionBoxArray.length,te=C?C.boxStartIndex:e.collisionBoxArray.length,ne=C?C.boxEndIndex:e.collisionBoxArray.length,re=T?T.boxStartIndex:e.collisionBoxArray.length,ae=T?T.boxEndIndex:e.collisionBoxArray.length,ie=L?L.boxStartIndex:e.collisionBoxArray.length,oe=L?L.boxEndIndex:e.collisionBoxArray.length,le=-1,ue=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};le=ue(S,le),le=ue(C,le),le=ue(T,le);var se=(le=ue(L,le))>-1?1:0;se&&(le*=M/24),e.glyphOffsetArray.length>=vs.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==A.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,A.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical||-1,I,F,B,$,ee,te,ne,re,ae,ie,oe,s,R,j,k,D,se,0,f,z,U,le)}(e,d,l,n,r,a,f,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,v,_,M,u,b,O,w,h,t,i,s,c,o)};if("line"===S)for(var P=0,k=Gu(t.geometry,0,0,8192,8192);P1){var z=Yu(B,x,n.vertical||m,r,24,y);z&&L(B,z)}}else if("Polygon"===t.type)for(var U=0,V=rl(t.geometry,0);U=T.maxzoom||"none"!==T.visibility&&(o(S,this.zoom,r),(m[T.id]=T.createBucket({index:c.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:A,sourceID:this.source})).populate(_,g,this.tileID.canonical),c.bucketLayerIDs.push(S.map((function(e){return e.id}))))}}}var C=e.mapObject(g.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(C).length?i.send("getGlyphs",{uid:this.uid,stacks:C},(function(e,t){d||(d=e,f=t,k.call(u))})):f={};var L=Object.keys(g.iconDependencies);L.length?i.send("getImages",{icons:L,source:this.source,tileID:this.tileID,type:"icons"},(function(e,t){d||(d=e,p=t,k.call(u))})):p={};var P=Object.keys(g.patternDependencies);function k(){if(d)return l(d);if(f&&p&&h){var t=new a(f),n=new e.ImageAtlas(p,h);for(var i in m){var u=m[i];u instanceof e.SymbolBucket?(o(u.layers,this.zoom,r),e.performSymbolLayout(u,f,t.positions,p,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof e.LineBucket||u instanceof e.FillBucket||u instanceof e.FillExtrusionBucket)&&(o(u.layers,this.zoom,r),u.addFeatures(g,this.tileID.canonical,n.patternPositions))}this.status="done",l(null,{buckets:e.values(m).filter((function(e){return!e.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?t.positions:null})}}P.length?i.send("getImages",{icons:P,source:this.source,tileID:this.tileID,type:"patterns"},(function(e,t){d||(d=e,h=t,k.call(u))})):h={},k.call(this)};var u=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||l,this.loading={},this.loaded={}};u.prototype.loadTile=function(t,n){var r=this,a=t.uid;this.loading||(this.loading={});var o=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),l=this.loading[a]=new i(t);l.abort=this.loadVectorData(t,(function(t,i){if(delete r.loading[a],t||!i)return l.status="done",r.loaded[a]=l,n(t);var u=i.rawData,s={};i.expires&&(s.expires=i.expires),i.cacheControl&&(s.cacheControl=i.cacheControl);var c={};if(o){var d=o.finish();d&&(c.resourceTiming=JSON.parse(JSON.stringify(d)))}l.vectorTile=i.vectorTile,l.parse(i.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:u.slice(0)},r,s,c))})),r.loaded=r.loaded||{},r.loaded[a]=l}))},u.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,a=e.uid,i=this;if(r&&r[a]){var o=r[a];o.showCollisionBoxes=e.showCollisionBoxes;var l=function(e,r){var a=o.reloadCallback;a&&(delete o.reloadCallback,o.parse(o.vectorTile,i.layerIndex,n.availableImages,i.actor,a)),t(e,r)};"parsing"===o.status?o.reloadCallback=l:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,l):l())}},u.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},u.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var s=e.window.ImageBitmap,c=function(){this.loaded={}};function d(e,t){if(0!==e.length){f(e[0],t);for(var n=1;n=0!=!!t&&e.reverse()}c.prototype.loadTile=function(t,n){var r=t.uid,a=t.encoding,i=t.rawImageData,o=s&&i instanceof s?this.getImageData(i):i,l=new e.DEMData(r,o,a);this.loaded=this.loaded||{},this.loaded[r]=l,n(null,l)},c.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var p=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,h=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};h.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n>31}function T(e,t){for(var n=e.loadGeometry(),r=e.type,a=0,i=0,o=n.length,l=0;l>1;!function e(t,n,r,a,i,o){for(;i>a;){if(i-a>600){var l=i-a+1,u=r-a+1,s=Math.log(l),c=.5*Math.exp(2*s/3),d=.5*Math.sqrt(s*c*(l-c)/l)*(u-l/2<0?-1:1);e(t,n,r,Math.max(a,Math.floor(r-u*c/l+d)),Math.min(i,Math.floor(r+(l-u)*c/l+d)),o)}var f=n[2*r+o],p=a,h=i;for(L(t,n,a,r),n[2*i+o]>f&&L(t,n,a,i);pf;)h--}n[2*a+o]===f?L(t,n,a,h):L(t,n,++h,i),h<=r&&(a=h+1),r<=h&&(i=h-1)}}(t,n,l,a,i,o%2),e(t,n,r,a,l-1,o+1),e(t,n,r,l+1,i,o+1)}}(o,l,r,0,o.length-1,0)};j.prototype.range=function(e,t,n,r){return function(e,t,n,r,a,i,o){for(var l,u,s=[0,e.length-1,0],c=[];s.length;){var d=s.pop(),f=s.pop(),p=s.pop();if(f-p<=o)for(var h=p;h<=f;h++)u=t[2*h+1],(l=t[2*h])>=n&&l<=a&&u>=r&&u<=i&&c.push(e[h]);else{var m=Math.floor((p+f)/2);u=t[2*m+1],(l=t[2*m])>=n&&l<=a&&u>=r&&u<=i&&c.push(e[m]);var g=(d+1)%2;(0===d?n<=l:r<=u)&&(s.push(p),s.push(m-1),s.push(g)),(0===d?a>=l:i>=u)&&(s.push(m+1),s.push(f),s.push(g))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},j.prototype.within=function(e,t,n){return function(e,t,n,r,a,i){for(var o=[0,e.length-1,0],l=[],u=a*a;o.length;){var s=o.pop(),c=o.pop(),d=o.pop();if(c-d<=i)for(var f=d;f<=c;f++)k(t[2*f],t[2*f+1],n,r)<=u&&l.push(e[f]);else{var p=Math.floor((d+c)/2),h=t[2*p],m=t[2*p+1];k(h,m,n,r)<=u&&l.push(e[p]);var g=(s+1)%2;(0===s?n-a<=h:r-a<=m)&&(o.push(d),o.push(p-1),o.push(g)),(0===s?n+a>=h:r+a>=m)&&(o.push(p+1),o.push(c),o.push(g))}}return l}(this.ids,this.coords,e,t,n,this.nodeSize)};var I={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},F=function(e){this.options=Y(Object.create(I),e),this.trees=new Array(this.options.maxZoom+1)};function N(e,t,n,r,a){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:a}}function B(e,t){var n=e.geometry.coordinates,r=n[1];return{x:V(n[0]),y:H(r),zoom:1/0,index:t,parentId:-1}}function z(e){return{type:"Feature",id:e.id,properties:U(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function U(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return Y(Y({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function V(e){return e/360+.5}function H(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Y(e,t){for(var n in t)e[n]=t[n];return e}function W(e){return e.x}function G(e){return e.y}function q(e,t,n,r,a,i){var o=a-n,l=i-r;if(0!==o||0!==l){var u=((e-n)*o+(t-r)*l)/(o*o+l*l);u>1?(n=a,r=i):u>0&&(n+=o*u,r+=l*u)}return(o=e-n)*o+(l=t-r)*l}function X(e,t,n,r){var a={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)Z(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r0&&(o+=r?(a*s-u*i)/2:Math.sqrt(Math.pow(u-a,2)+Math.pow(s-i,2))),a=u,i=s}var c=t.length-3;t[2]=1,function e(t,n,r,a){for(var i,o=a,l=r-n>>1,u=r-n,s=t[n],c=t[n+1],d=t[r],f=t[r+1],p=n+3;po)i=p,o=h;else if(h===o){var m=Math.abs(p-l);ma&&(i-n>3&&e(t,n,i,a),t[i+2]=o,r-i>3&&e(t,i,r,a))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(o),t.start=0,t.end=t.size}function $(e,t,n,r){for(var a=0;a1?1:n}function ne(e,t,n,r,a,i,o,l){if(r/=t,i>=(n/=t)&&o=r)return null;for(var u=[],s=0;s=n&&h=r)){var m=[];if("Point"===f||"MultiPoint"===f)re(d,m,n,r,a);else if("LineString"===f)ae(d,m,n,r,a,!1,l.lineMetrics);else if("MultiLineString"===f)oe(d,m,n,r,a,!1);else if("Polygon"===f)oe(d,m,n,r,a,!0);else if("MultiPolygon"===f)for(var g=0;g=n&&o<=r&&(t.push(e[i]),t.push(e[i+1]),t.push(e[i+2]))}}function ae(e,t,n,r,a,i,o){for(var l,u,s=ie(e),c=0===a?ue:se,d=e.start,f=0;fn&&(u=c(s,p,h,g,v,n),o&&(s.start=d+l*u)):y>r?b=n&&(u=c(s,p,h,g,v,n),A=!0),b>r&&y<=r&&(u=c(s,p,h,g,v,r),A=!0),!i&&A&&(o&&(s.end=d+l*u),t.push(s),s=ie(e)),o&&(d+=l)}var _=e.length-3;p=e[_],h=e[_+1],m=e[_+2],(y=0===a?p:h)>=n&&y<=r&&le(s,p,h,m),_=s.length-3,i&&_>=3&&(s[_]!==s[0]||s[_+1]!==s[1])&&le(s,s[0],s[1],s[2]),s.length&&t.push(s)}function ie(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function oe(e,t,n,r,a,i){for(var o=0;oo.maxX&&(o.maxX=c),d>o.maxY&&(o.maxY=d)}return o}function me(e,t,n,r){var a=t.geometry,i=t.type,o=[];if("Point"===i||"MultiPoint"===i)for(var l=0;l0&&t.size<(a?o:r))n.numPoints+=t.length/3;else{for(var l=[],u=0;uo)&&(n.numSimplified++,l.push(t[u]),l.push(t[u+1])),n.numPoints++;a&&function(e,t){for(var n=0,r=0,a=e.length,i=a-2;r0===t)for(r=0,a=e.length;r24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r=r;s--){var c=+Date.now();l=this._cluster(l,s),this.trees[s]=new j(l,W,G,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",s,l.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},F.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,a=180;else if(n>a){var o=this.getClusters([n,r,180,i],t),l=this.getClusters([-180,r,a,i],t);return o.concat(l)}for(var u=this.trees[this._limitZoom(t)],s=[],c=0,d=u.range(V(n),H(i),V(a),H(r));ct&&(f+=m.numPoints||1)}if(f>=i){for(var g=u.x*d,v=u.y*d,y=a&&d>1?this._map(u,!0):null,b=(l<<5)+(t+1)+this.points.length,A=0,_=c;A<_.length;A+=1){var O=s.points[_[A]];if(!(O.zoom<=t)){O.zoom=t;var E=O.numPoints||1;g+=O.x*E,v+=O.y*E,O.parentId=b,a&&(y||(y=this._map(u,!0)),a(y,this._map(O)))}}u.parentId=b,n.push(N(g/f,v/f,b,f,y))}else if(n.push(u),f>1)for(var x=0,M=c;x>5},F.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},F.prototype._map=function(e,t){if(e.numPoints)return t?Y({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?Y({},r):r},ve.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ve.prototype.splitTile=function(e,t,n,r,a,i,o){for(var l=[e,t,n,r],u=this.options,s=u.debug;l.length;){r=l.pop(),n=l.pop(),t=l.pop(),e=l.pop();var c=1<1&&console.time("creation"),f=this.tiles[d]=he(e,t,n,r,u),this.tileCoords.push({z:t,x:n,y:r}),s)){s>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var p="z"+t;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(f.source=e,a){if(t===u.maxZoom||t===a)continue;var h=1<1&&console.time("clipping");var m,g,v,y,b,A,_=.5*u.buffer/u.extent,O=.5-_,E=.5+_,x=1+_;m=g=v=y=null,b=ne(e,c,n-_,n+E,0,f.minX,f.maxX,u),A=ne(e,c,n+O,n+x,0,f.minX,f.maxX,u),e=null,b&&(m=ne(b,c,r-_,r+E,1,f.minY,f.maxY,u),g=ne(b,c,r+O,r+x,1,f.minY,f.maxY,u),b=null),A&&(v=ne(A,c,r-_,r+E,1,f.minY,f.maxY,u),y=ne(A,c,r+O,r+x,1,f.minY,f.maxY,u),A=null),s>1&&console.timeEnd("clipping"),l.push(m||[],t+1,2*n,2*r),l.push(g||[],t+1,2*n,2*r+1),l.push(v||[],t+1,2*n+1,2*r),l.push(y||[],t+1,2*n+1,2*r+1)}}},ve.prototype.getTile=function(e,t,n){var r=this.options,a=r.extent,i=r.debug;if(e<0||e>24)return null;var o=1<1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var u,s=e,c=t,d=n;!u&&s>0;)s--,c=Math.floor(c/2),d=Math.floor(d/2),u=this.tiles[ye(s,c,d)];return u&&u.source?(i>1&&console.log("found parent tile z%d-%d-%d",s,c,d),i>1&&console.time("drilling down"),this.splitTile(u.source,s,c,d,e,t,n),i>1&&console.timeEnd("drilling down"),this.tiles[l]?fe(this.tiles[l],a):null):null};var Ae=function(t){function n(e,n,r,a){t.call(this,e,n,r,be),a&&(this.loadGeoJSON=a)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var a=!!(r&&r.request&&r.request.collectResourceTiming)&&new e.RequestPerformance(r.request);this.loadGeoJSON(r,(function(i,o){if(i||!o)return n(i);if("object"!=typeof o)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function e(t,n){var r,a=t&&t.type;if("FeatureCollection"===a)for(r=0;r=0?0:t.button},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var f=function(t){function n(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t=0?1.2:1))}function v(e,t,n,r,a,i,o){for(var l=0;l65535)t(new Error("glyphs > 65535 not supported"));else if(i.ranges[l])t(null,{stack:n,id:a,glyph:o});else{var u=i.requests[l];u||(u=i.requests[l]=[],b.loadGlyphRange(n,l,r.url,r.requestManager,(function(e,t){if(t){for(var n in t)r._doesCharSupportLocalGlyph(+n)||(i.glyphs[+n]=t[+n]);i.ranges[l]=!0}for(var a=0,o=u;a1&&(l=e[++o]);var s=Math.abs(u-l.left),c=Math.abs(u-l.right),d=Math.min(s,c),f=void 0,p=a/n*(r+1);if(l.isDash){var h=r-Math.abs(p);f=Math.sqrt(d*d+h*h)}else f=r-Math.sqrt(d*d+p*p);this.data[i+u]=Math.max(0,Math.min(255,f+128))}},E.prototype.addRegularDash=function(e){for(var t=e.length-1;t>=0;--t){var n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}var a=e[0],i=e[e.length-1];a.isDash===i.isDash&&(a.left=i.left-this.width,i.right=a.right+this.width);for(var o=this.width*this.nextRow,l=0,u=e[l],s=0;s1&&(u=e[++l]);var c=Math.abs(s-u.left),d=Math.abs(s-u.right),f=Math.min(c,d);this.data[o+s]=Math.max(0,Math.min(255,(u.isDash?f:-f)+128))}},E.prototype.addDash=function(t,n){var r=n?7:0,a=2*r+1;if(this.nextRow+a>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var i=0,o=0;o=r&&t.x=a&&t.y0&&(u[new e.OverscaledTileID(t.overscaledZ,i,n.z,a,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new e.OverscaledTileID(t.overscaledZ,l,n.z,o,n.y-1).key]={backfilled:!1}),n.y+10&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}}))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),a=this._data;"string"==typeof a?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(a),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(a),this.actor.send(this.type+".loadData",r,(function(e,a){n._removed||a&&a.abandoned||(n._loaded=!0,a&&a.resourceTiming&&a.resourceTiming[n.id]&&(n._resourceTiming=a.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),t(e))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,a=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(a,{type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(e,i){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(i,r.map.painter,"reloadTile"===a),n(null))}))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),P=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),k=function(t){function n(e,n,r,a){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(a),this.options=n}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(a,i){r._loaded=!0,a?r.fire(new e.ErrorEvent(a)):i&&(r.image=i,t&&(r.coordinates=t),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,(function(){t.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,a=-1/0,i=-1/0,o=0,l=t;on.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var a=this.tiles[r];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(k),R=function(t){function n(n,r,a,i){t.call(this,n,r,a,i),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!=typeof e}))}))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var a in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var i=this.tiles[a];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];ethis.max){var o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this},B.prototype.has=function(e){return e.wrapped().key in this.data},B.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},B.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value},B.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},B.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},B.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this},B.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this},B.prototype.filter=function(e){var t=[];for(var n in this.data)for(var r=0,a=this.data[n];r1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[i]&&(e.neighboringTiles[i].backfilled=!0)))}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var a in this._tiles){var i=this._tiles[a];if(!(r[a]||!i.hasData()||i.tileID.overscaledZ<=t||i.tileID.overscaledZ>n)){for(var o=i.tileID;i&&i.tileID.overscaledZ>t+1;){var l=i.tileID.scaledTo(i.tileID.overscaledZ-1);(i=this._tiles[l.key])&&i.hasData()&&(o=l)}for(var u=o;u.overscaledZ>t;)if(e[(u=u.scaledTo(u.overscaledZ-1)).key]){r[o.key]=o;break}}}},n.prototype.findLoadedParent=function(e,t){if(e.key in this._loadedParentTiles){var n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(var r=e.overscaledZ-1;r>=t;r--){var a=e.scaledTo(r),i=this._getLoadedTile(a);if(i)return i}},n.prototype._getLoadedTile=function(e){var t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)},n.prototype.updateCacheSize=function(e){var t=Math.ceil(e.width/this._source.tileSize)+1,n=Math.ceil(e.height/this._source.tileSize)+1,r=Math.floor(t*n*5),a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(a)},n.prototype.handleWrapJump=function(e){var t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){var n={};for(var r in this._tiles){var a=this._tiles[r];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),n[a.tileID.key]=a}for(var i in this._tiles=n,this._timers)clearTimeout(this._timers[i]),delete this._timers[i];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var a;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)})):(a=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(a=a.filter((function(e){return r._source.hasTile(e)})))):a=[];var i=t.coveringZoomLevel(this._source),o=Math.max(i-n.maxOverzooming,this._source.minzoom),l=Math.max(i+n.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(a,i);if(ke(this._source.type)){for(var s={},c={},d=0,f=Object.keys(u);dthis._source.maxzoom){var g=h.children(this._source.maxzoom)[0],v=this.getTile(g);if(v&&v.hasData()){r[g.key]=g;continue}}else{var y=h.children(this._source.maxzoom);if(r[y[0].key]&&r[y[1].key]&&r[y[2].key]&&r[y[3].key])continue}for(var b=m.wasRequested(),A=h.overscaledZ-1;A>=i;--A){var _=h.scaledTo(A);if(a[_.key])break;if(a[_.key]=!0,!(m=this.getTile(_))&&b&&(m=this._addTile(_)),m&&(r[_.key]=_,b=m.wasRequested(),m.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var e in this._loadedParentTiles={},this._tiles){for(var t=[],n=void 0,r=this._tiles[e].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);var a=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(a))break;r=a}for(var i=0,o=t;i0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var a=this,i=[],o=this.transform;if(!o)return i;for(var l=r?o.getCameraQueryGeometry(t):t,u=t.map((function(e){return o.pointCoordinate(e)})),s=l.map((function(e){return o.pointCoordinate(e)})),c=this.getIds(),d=1/0,f=1/0,p=-1/0,h=-1/0,m=0,g=s;m=0&&v[1].y+g>=0){var y=u.map((function(e){return l.getTilePoint(e)})),b=s.map((function(e){return l.getTilePoint(e)}));i.push({tile:r,tileID:l,queryGeometry:y,cameraQueryGeometry:b,scale:m})}}},b=0;b=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)},n.prototype.removeFeatureState=function(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)},n.prototype.getFeatureState=function(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)},n.prototype.setDependencies=function(e,t,n){var r=this._tiles[e];r&&r.setDependencies(t,n)},n.prototype.reloadTilesForDependencies=function(e,t){for(var n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(e,t)}))},n}(e.Evented);function Pe(e,t){var n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function ke(e){return"raster"===e||"image"===e||"video"===e}function De(){return new e.window.Worker(Za.workerUrl)}Le.maxOverzooming=10,Le.maxUnderzooming=3;var Re="mapboxgl_preloaded_worker_pool",je=function(){this.active={}};je.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length0?(a-o)/l:0;return this.points[i].mult(1-u).add(this.points[n].mult(u))};var Ke=function(e,t,n){var r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var i=0;i=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function nt(t,n,r,a,i,o,l,u){var s=a?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(s,r.transform.zoom),d=[256/r.width*2+1,256/r.height*2+1],f=a?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();for(var p=t.lineVertexArray,h=a?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,g=!1,v=0;vMath.abs(r.x-n.x)*a?{useVertical:!0}:(t===e.WritingMode.vertical?n.yr.x)?{needsFlipping:!0}:null}function it(t,n,r,a,i,o,l,u,s,c,d,f,p,h){var m,g=n/24,v=t.lineOffsetX*g,y=t.lineOffsetY*g;if(t.numGlyphs>1){var b=t.glyphStartIndex+t.numGlyphs,A=t.lineStartIndex,_=t.lineStartIndex+t.lineLength,O=rt(g,u,v,y,r,d,f,t,s,o,p);if(!O)return{notEnoughRoom:!0};var E=$e(O.first.point,l).point,x=$e(O.last.point,l).point;if(a&&!r){var M=at(t.writingMode,E,x,h);if(M)return M}m=[O.first];for(var w=t.glyphStartIndex+1;w0?L.point:ot(f,C,S,1,i),k=at(t.writingMode,S,P,h);if(k)return k}var D=lt(g*u.getoffsetX(t.glyphStartIndex),v,y,r,d,f,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,s,o,p);if(!D)return{notEnoughRoom:!0};m=[D]}for(var R=0,j=m;R0?1:-1,m=0;a&&(h*=-1,m=Math.PI),h<0&&(m+=Math.PI);for(var g=h>0?u+l:u+l+1,v=i,y=i,b=0,A=0,_=Math.abs(p),O=[];b+A<=_;){if((g+=h)=s)return null;if(y=v,O.push(v),void 0===(v=f[g])){var E=new e.Point(c.getx(g),c.gety(g)),x=$e(E,d);if(x.signedDistanceFromCamera>0)v=f[g]=x.point;else{var M=g-h;v=ot(0===b?o:new e.Point(c.getx(M),c.gety(M)),E,y,_-b+1,d)}}b+=A,A=y.dist(v)}var w=(_-b)/A,S=v.sub(y),T=S.mult(w)._add(y);T._add(S._unit()._perp()._mult(r*h));var C=m+Math.atan2(v.y-y.y,v.x-y.x);return O.push(T),{point:T,angle:C,path:O}}Ke.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ke.prototype.insert=function(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)},Ke.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},Ke.prototype._insertBoxCell=function(e,t,n,r,a,i){this.boxCells[a].push(i)},Ke.prototype._insertCircleCell=function(e,t,n,r,a,i){this.circleCells[a].push(i)},Ke.prototype._query=function(e,t,n,r,a,i){if(n<0||e>this.width||r<0||t>this.height)return!a&&[];var o=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(a)return!0;for(var l=0;l0:o},Ke.prototype._queryCircle=function(e,t,n,r,a){var i=e-n,o=e+n,l=t-n,u=t+n;if(o<0||i>this.width||u<0||l>this.height)return!r&&[];var s=[];return this._forEachCell(i,l,o,u,this._queryCellCircle,s,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},a),r?s.length>0:s},Ke.prototype.query=function(e,t,n,r,a){return this._query(e,t,n,r,!1,a)},Ke.prototype.hitTest=function(e,t,n,r,a){return this._query(e,t,n,r,!0,a)},Ke.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Ke.prototype._queryCell=function(e,t,n,r,a,i,o,l){var u=o.seenUids,s=this.boxCells[a];if(null!==s)for(var c=this.bboxes,d=0,f=s;d=c[h+0]&&r>=c[h+1]&&(!l||l(this.boxKeys[p]))){if(o.hitTest)return i.push(!0),!0;i.push({key:this.boxKeys[p],x1:c[h],y1:c[h+1],x2:c[h+2],y2:c[h+3]})}}}var m=this.circleCells[a];if(null!==m)for(var g=this.circles,v=0,y=m;vo*o+l*l},Ke.prototype._circleAndRectCollide=function(e,t,n,r,a,i,o){var l=(i-r)/2,u=Math.abs(e-(r+l));if(u>l+n)return!1;var s=(o-a)/2,c=Math.abs(t-(a+s));if(c>s+n)return!1;if(u<=l||c<=s)return!0;var d=u-l,f=c-s;return d*d+f*f<=n*n};var ut=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function st(e,t){for(var n=0;n=1;P--)L.push(T.path[P]);for(var k=1;k0){for(var I=L[0].clone(),F=L[0].clone(),N=1;N=M.x&&F.x<=w.x&&I.y>=M.y&&F.y<=w.y?[L]:F.xw.x||F.yw.y?[]:e.clipLine([L],M.x,M.y,w.x,w.y)}for(var B=0,z=j;B=this.screenRightBoundary||r<100||t>this.screenBottomBoundary},dt.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e=0&&t0?(this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(m=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:g,width:n,height:r,anchor:e,textBoxScale:a,prevAnchor:m},this.markUsedJustification(f,e,d,p),f.allowVerticalPlacement&&(this.markUsedOrientation(f,p,d),this.placedOrientations[d.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_t.prototype.placeLayerBucketPart=function(t,n,r){var a=this,i=t.parameters,o=i.bucket,l=i.layout,u=i.posMatrix,s=i.textLabelPlaneMatrix,c=i.labelToScreenMatrix,d=i.textPixelRatio,f=i.holdingForFade,p=i.collisionBoxArray,h=i.partiallyEvaluatedTextSize,m=i.collisionGroup,g=l.get("text-optional"),v=l.get("icon-optional"),y=l.get("text-allow-overlap"),b=l.get("icon-allow-overlap"),A="map"===l.get("text-rotation-alignment"),_="map"===l.get("text-pitch-alignment"),O="none"!==l.get("icon-text-fit"),E="viewport-y"===l.get("symbol-z-order"),x=y&&(b||!o.hasIconData()||v),M=b&&(y||!o.hasTextData()||g);!o.collisionArrays&&p&&o.deserializeCollisionBoxes(p);var w=function(t,i){if(!n[t.crossTileID])if(f)a.placements[t.crossTileID]=new mt(!1,!1,!1);else{var p,E=!1,w=!1,S=!0,T=null,C={box:null,offscreen:null},L={box:null,offscreen:null},P=null,k=null,D=0,R=0,j=0;i.textFeatureIndex?D=i.textFeatureIndex:t.useRuntimeCollisionCircles&&(D=t.featureIndex),i.verticalTextFeatureIndex&&(R=i.verticalTextFeatureIndex);var I=i.textBox;if(I){var F=function(n){var r=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!n&&a.prevPlacement){var i=a.prevPlacement.placedOrientations[t.crossTileID];i&&(a.placedOrientations[t.crossTileID]=i,a.markUsedOrientation(o,r=i,t))}return r},N=function(n,r){if(o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i.verticalTextBox)for(var a=0,l=o.writingModes;a0&&(B=B.filter((function(e){return e!==z.anchor}))).unshift(z.anchor)}var U=function(e,n,r){for(var i=e.x2-e.x1,l=e.y2-e.y1,s=t.textBoxScale,c=O&&!b?n:null,f={box:[],offscreen:!1},p=y?2*B.length:B.length,h=0;h=B.length,t,o,r,c);if(g&&(f=g.placedGlyphBoxes)&&f.box&&f.box.length){E=!0,T=g.shift;break}}return f};N((function(){return U(I,i.iconBox,e.WritingMode.horizontal)}),(function(){var n=i.verticalTextBox;return o.allowVerticalPlacement&&!(C&&C.box&&C.box.length)&&t.numVerticalGlyphVertices>0&&n?U(n,i.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),C&&(E=C.box,S=C.offscreen);var V=F(C&&C.box);if(!E&&a.prevPlacement){var H=a.prevPlacement.variableOffsets[t.crossTileID];H&&(a.variableOffsets[t.crossTileID]=H,a.markUsedJustification(o,H.anchor,t,V))}}else{var Y=function(e,n){var r=a.collisionIndex.placeCollisionBox(e,y,d,u,m.predicate);return r&&r.box&&r.box.length&&(a.markUsedOrientation(o,n,t),a.placedOrientations[t.crossTileID]=n),r};N((function(){return Y(I,e.WritingMode.horizontal)}),(function(){var n=i.verticalTextBox;return o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?Y(n,e.WritingMode.vertical):{box:null,offscreen:null}})),F(C&&C.box&&C.box.length)}}if(E=(p=C)&&p.box&&p.box.length>0,S=p&&p.offscreen,t.useRuntimeCollisionCircles){var W=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),G=e.evaluateSizeForFeature(o.textSizeData,h,W),q=l.get("text-padding");P=a.collisionIndex.placeCollisionCircles(y,W,o.lineVertexArray,o.glyphOffsetArray,G,u,s,c,r,_,m.predicate,t.collisionCircleDiameter,q),E=y||P.circles.length>0&&!P.collisionDetected,S=S&&P.offscreen}if(i.iconFeatureIndex&&(j=i.iconFeatureIndex),i.iconBox){var X=function(e){var t=O&&T?At(e,T.x,T.y,A,_,a.transform.angle):e;return a.collisionIndex.placeCollisionBox(t,b,d,u,m.predicate)};w=L&&L.box&&L.box.length&&i.verticalIconBox?(k=X(i.verticalIconBox)).box.length>0:(k=X(i.iconBox)).box.length>0,S=S&&k.offscreen}var Z=g||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,K=v||0===t.numIconVertices;if(Z||K?K?Z||(w=w&&E):E=w&&E:w=E=w&&E,E&&p&&p.box&&a.collisionIndex.insertCollisionBox(p.box,l.get("text-ignore-placement"),o.bucketInstanceId,L&&L.box&&R?R:D,m.ID),w&&k&&a.collisionIndex.insertCollisionBox(k.box,l.get("icon-ignore-placement"),o.bucketInstanceId,j,m.ID),P&&(E&&a.collisionIndex.insertCollisionCircles(P.circles,l.get("text-ignore-placement"),o.bucketInstanceId,D,m.ID),r)){var J=o.bucketInstanceId,Q=a.collisionCircleArrays[J];void 0===Q&&(Q=a.collisionCircleArrays[J]=new gt);for(var $=0;$=0;--T){var C=S[T];w(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=t.symbolInstanceStart;L=0&&(t.text.placedSymbolArray.get(u).crossTileID=i>=0&&u!==i?0:r.crossTileID)}},_t.prototype.markUsedOrientation=function(t,n,r){for(var a=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,i=n===e.WritingMode.vertical?n:0,o=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];o0,y=a.placedOrientations[i.crossTileID],b=y===e.WritingMode.vertical,A=y===e.WritingMode.horizontal||y===e.WritingMode.horizontalOnly;if(l>0||u>0){var _=Lt(g.text);h(t.text,l,b?Pt:_),h(t.text,u,A?Pt:_);var O=g.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=O||b?1:0)})),i.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=O||A?1:0);var E=a.variableOffsets[i.crossTileID];E&&a.markUsedJustification(t,E.anchor,i,y);var x=a.placedOrientations[i.crossTileID];x&&(a.markUsedJustification(t,"left",i,x),a.markUsedOrientation(t,x,i))}if(v){var M=Lt(g.icon),w=!(f&&i.verticalPlacedIconSymbolIndex&&b);i.placedIconSymbolIndex>=0&&(h(t.icon,i.numIconVertices,w?M:Pt),t.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=g.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(h(t.icon,i.numVerticalIconVertices,w?Pt:M),t.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=g.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var S=t.collisionArrays[r];if(S){var T=new e.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(s){var L=a.variableOffsets[m];L?(T=bt(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),c&&T._rotate(d?a.transform.angle:-a.transform.angle)):C=!1}S.textBox&&Ot(t.textCollisionBox.collisionVertexArray,g.text.placed,!C||b,T.x,T.y),S.verticalTextBox&&Ot(t.textCollisionBox.collisionVertexArray,g.text.placed,!C||A,T.x,T.y)}var P=Boolean(!A&&S.verticalIconBox);S.iconBox&&Ot(t.iconCollisionBox.collisionVertexArray,g.icon.placed,P,f?T.x:0,f?T.y:0),S.verticalIconBox&&Ot(t.iconCollisionBox.collisionVertexArray,g.icon.placed,!P,f?T.x:0,f?T.y:0)}}},g=0;ge},_t.prototype.setStale=function(){this.stale=!0};var Et=Math.pow(2,25),xt=Math.pow(2,24),Mt=Math.pow(2,17),wt=Math.pow(2,16),St=Math.pow(2,9),Tt=Math.pow(2,8),Ct=Math.pow(2,1);function Lt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Et+t*xt+n*Mt+t*wt+n*St+t*Tt+n*Ct+t}var Pt=0,kt=function(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};kt.prototype.continuePlacement=function(e,t,n,r,a){for(var i=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var l=n[t[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===l.type&&(!l.minzoom||l.minzoom<=u)&&(!l.maxzoom||l.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new kt(l)),this._inProgressLayer.continuePlacement(r[l.source],this.placement,this._showCollisionBoxes,l,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Dt.prototype.commit=function(e){return this.placement.commit(e),this.placement};var Rt=512/e.EXTENT/2,jt=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;re.overscaledZ)for(var l in o){var u=o[l];u.tileID.isChildOf(e)&&u.findMatches(t.symbolInstances,e,a)}else{var s=o[e.scaledTo(Number(i)).key];s&&s.findMatches(t.symbolInstances,e,a)}}for(var c=0;c1?"@2x":"",u=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,l,".json"),e.ResourceType.SpriteJSON),(function(e,t){u=null,o||(o=e,a=t,c())})),s=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,l,".png"),e.ResourceType.SpriteImage),(function(e,t){s=null,o||(o=e,i=t,c())}));function c(){if(o)r(o);else if(a&&i){var t=e.browser.getImageData(i),n={};for(var l in a){var u=a[l],s=u.width,c=u.height,d=u.x,f=u.y,p=u.sdf,h=u.pixelRatio,m=u.stretchX,g=u.stretchY,v=u.content,y=new e.RGBAImage({width:s,height:c});e.RGBAImage.copy(t,y,{x:d,y:f},{x:0,y:0},{width:s,height:c}),n[l]={data:y,pixelRatio:h,sdf:p,stretchX:m,stretchY:g,content:v}}r(null,n)}}return{cancel:function(){u&&(u.cancel(),u=null),s&&(s.cancel(),s=null)}}}(t,this.map._requestManager,(function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var a in r)n.imageManager.addImage(a,r[a]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new e.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var a=n.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+a.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n0)throw new Error("Unimplemented: "+a.map((function(e){return e.command})).join(", ")+".");return r.forEach((function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)})),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this._afterImageUpdated(t)},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._afterImageUpdated(t)},n.prototype._afterImageUpdated=function(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var a=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var i=this.sourceCaches[t]=new Le(t,n,this.dispatcher);i.style=this,i.setEventedParent(this,(function(){return{isSourceLoaded:a.loaded(),source:i.serialize(),sourceId:t}})),i.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=t.id;if(this.getLayer(a))this.fire(new e.ErrorEvent(new Error('Layer with id "'+a+'" already exists on this map')));else{var i;if("custom"===t.type){if(Bt(this,e.validateCustomStyleLayer(t)))return;i=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(a,t.source),t=e.clone$1(t),t=e.extend(t,{source:a})),this._validate(e.validateStyle.layer,"layers."+a,t,{arrayIndex:-1},r))return;i=e.createStyleLayer(t),this._validateLayer(i),i.setEventedParent(this,{layer:{id:a}}),this._serializedLayers[i.id]=i.serialize()}var o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(o,0,a),this._layerOrderChanged=!0,this._layers[a]=i,this._removedLayers[a]&&i.source&&"custom"!==i.type){var l=this._removedLayers[a];delete this._removedLayers[a],l.type!==i.type?this._updatedSources[i.source]="clear":(this._updatedSources[i.source]="reload",this.sourceCaches[i.source].pause())}this._updateLayer(i),i.onAdd&&i.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var a=n?this._order.indexOf(n):this._order.length;n&&-1===a?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(a,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.hasLayer=function(e){return e in this._layers},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var a=this.getLayer(t);a?a.minzoom===n&&a.maxzoom===r||(null!=n&&(a.minzoom=n),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=this.getLayer(t);if(a){if(!e.deepEqual(a.filter,n))return null==n?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.validateStyle.filter,"layers."+a.id+".filter",n,null,r)||(a.filter=e.clone$1(n),this._updateLayer(a)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getLayoutProperty(n),r)||(i.setLayoutProperty(n,r,a),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var i=this.getLayer(t);i?e.deepEqual(i.getPaintProperty(n),r)||(i.setPaintProperty(n,r,a)&&this._updateLayer(i),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=t.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type;"geojson"===o&&a?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==o||a?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),i.setFeatureState(a,t.id,n)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=this.sourceCaches[r];if(void 0!==a){var i=a.getSource().type,o="vector"===i?t.sourceLayer:void 0;"vector"!==i||o?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(o,t.id,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){if("vector"!==a.getSource().type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),a.getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,(function(e){return e.serialize()})),layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},a=[],i=this._order.length-1;i>=0;i--){var o=this._order[i];if(n(o)){r[o]=i;for(var l=0,u=e;l=0;p--){var h=this._order[p];if(n(h))for(var m=a.length-1;m>=0;m--){var g=a[m].feature;if(r[g.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),$t=yn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),en=yn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),tn=yn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=yn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=yn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),an=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),on=yn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),ln=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),un=yn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),sn=yn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=yn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),dn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fn=yn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),pn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),hn=yn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),mn=yn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),gn=yn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),vn=yn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=i?i.concat(a):a,l={};return{fragmentSource:e=e.replace(n,(function(e,t,n,r,a){return l[a]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nvarying "+n+" "+r+" "+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n"})),vertexSource:t=t.replace(n,(function(e,t,n,r,a){var i="float"===r?"vec2":"vec4",o=a.match(/color/)?"color":i;return l[a]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+n+" "+i+" a_"+a+";\nvarying "+n+" "+r+" "+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = a_"+a+";\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+a+" = unpack_mix_"+o+"(a_"+a+", u_"+a+"_t);\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+a+"\nuniform lowp float u_"+a+"_t;\nattribute "+n+" "+i+" a_"+a+";\n#else\nuniform "+n+" "+r+" u_"+a+";\n#endif\n":"vec4"===o?"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = a_"+a+";\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+a+"\n "+n+" "+r+" "+a+" = unpack_mix_"+o+"(a_"+a+", u_"+a+"_t);\n#else\n "+n+" "+r+" "+a+" = u_"+a+";\n#endif\n"})),staticAttributes:r,staticUniforms:o}}var bn=Object.freeze({__proto__:null,prelude:Wt,background:Gt,backgroundPattern:qt,circle:Xt,clippingMask:Zt,heatmap:Kt,heatmapTexture:Jt,collisionBox:Qt,collisionCircle:$t,debug:en,fill:tn,fillOutline:nn,fillOutlinePattern:rn,fillPattern:an,fillExtrusion:on,fillExtrusionPattern:ln,hillshadePrepare:un,hillshade:sn,line:cn,lineGradient:dn,linePattern:fn,lineSDF:pn,raster:hn,symbolIcon:mn,symbolSDF:gn,symbolTextAndIcon:vn}),An=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function _n(e){for(var t=[],n=0;n>16,l>>16],u_pixel_coord_lower:[65535&o,65535&l]}}On.prototype.draw=function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m){var g,v=e.gl;if(!this.failedToCreate){for(var y in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(a),e.setCullFace(i),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&&p.setUniforms(e,this.binderUniforms,d,{zoom:f});for(var b=(g={},g[v.LINES]=2,g[v.TRIANGLES]=3,g[v.LINE_STRIP]=1,g)[t],A=0,_=c.get();A<_.length;A+=1){var O=_[A],E=O.vaos||(O.vaos={});(E[l]||(E[l]=new An)).bind(e,this,u,p?p.getPaintVertexBuffers():[],s,O.vertexOffset,h,m),v.drawElements(t,O.primitiveLength*b,v.UNSIGNED_SHORT,O.primitiveOffset*b*2)}}};var xn=function(t,n,r,a){var i=n.style.light,o=i.properties.get("position"),l=[o.x,o.y,o.z],u=e.create$1();"viewport"===i.properties.get("anchor")&&e.fromRotation(u,-n.transform.angle),e.transformMat3(l,l,u);var s=i.properties.get("color");return{u_matrix:t,u_lightpos:l,u_lightintensity:i.properties.get("intensity"),u_lightcolor:[s.r,s.g,s.b],u_vertical_gradient:+r,u_opacity:a}},Mn=function(t,n,r,a,i,o,l){return e.extend(xn(t,n,r,a),En(o,n,l),{u_height_factor:-Math.pow(2,i.overscaledZ)/l.tileSize/8})},wn=function(e){return{u_matrix:e}},Sn=function(t,n,r,a){return e.extend(wn(t),En(r,n,a))},Tn=function(e,t){return{u_matrix:e,u_world:t}},Cn=function(t,n,r,a,i){return e.extend(Sn(t,n,r,a),{u_world:i})},Ln=function(t,n,r,a){var i,o,l=t.transform;if("map"===a.paint.get("circle-pitch-alignment")){var u=ft(r,1,l.zoom);i=!0,o=[u,u]}else i=!1,o=l.pixelsToGLUnits;return{u_camera_to_center_distance:l.cameraToCenterDistance,u_scale_with_map:+("map"===a.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_pitch_with_map:+i,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:o}},Pn=function(e,t,n){var r=ft(n,1,t.zoom),a=Math.pow(2,t.zoom-n.tileID.overscaledZ),i=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*a),t.pixelsToGLUnits[1]/(r*a)],u_overscale_factor:i}},kn=function(e,t,n){return{u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},Dn=function(e,t,n){return void 0===n&&(n=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}},Rn=function(e){return{u_matrix:e}},jn=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:ft(t,1,n),u_intensity:r}},In=function(t,n,r){var a=t.transform;return{u_matrix:Un(t,n,r),u_ratio:1/ft(n,1,a.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fn=function(t,n,r,a){return e.extend(In(t,n,r),{u_image:0,u_image_height:a})},Nn=function(t,n,r,a){var i=t.transform,o=zn(n,i);return{u_matrix:Un(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/ft(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[o,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Bn=function(t,n,r,a,i){var o=t.lineAtlas,l=zn(n,t.transform),u="round"===r.layout.get("line-cap"),s=o.getDash(a.from,u),c=o.getDash(a.to,u),d=s.width*i.fromScale,f=c.width*i.toScale;return e.extend(In(t,n,r),{u_patternscale_a:[l/d,-s.height/2],u_patternscale_b:[l/f,-c.height/2],u_sdfgamma:o.width/(256*Math.min(d,f)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:s.y,u_tex_y_b:c.y,u_mix:i.t})};function zn(e,t){return 1/ft(e,1,t.tileZoom)}function Un(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Vn=function(e,t,n,r,a){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(o=a.paint.get("raster-saturation"),o>0?1-1/(1.001-o):-o),u_contrast_factor:(i=a.paint.get("raster-contrast"),i>0?1/(1-i):1+i),u_spin_weights:Hn(a.paint.get("raster-hue-rotate"))};var i,o};function Hn(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}var Yn,Wn=function(e,t,n,r,a,i,o,l,u,s){var c=a.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:i,u_label_plane_matrix:o,u_coord_matrix:l,u_is_text:+u,u_pitch_with_map:+r,u_texsize:s,u_texture:0}},Gn=function(t,n,r,a,i,o,l,u,s,c,d){var f=i.transform;return e.extend(Wn(t,n,r,a,i,o,l,u,s,c),{u_gamma_scale:a?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+d})},qn=function(t,n,r,a,i,o,l,u,s,c){return e.extend(Gn(t,n,r,a,i,o,l,u,!0,s,!0),{u_texsize_icon:c,u_texture_icon:1})},Xn=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},Zn=function(t,n,r,a,i,o){return e.extend(function(e,t,n,r){var a=n.imageManager.getPattern(e.from.toString()),i=n.imageManager.getPattern(e.to.toString()),o=n.imageManager.getPixelSize(),l=o.width,u=o.height,s=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/s,d=c*(r.tileID.canonical.x+r.tileID.wrap*s),f=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:i.tl,u_pattern_br_b:i.br,u_texsize:[l,u],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:i.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/ft(r,1,n.transform.tileZoom),u_pixel_coord_upper:[d>>16,f>>16],u_pixel_coord_lower:[65535&d,65535&f]}}(a,o,r,i),{u_matrix:t,u_opacity:n})},Kn={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},collisionCircle:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}},debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image),u_image_height:new e.Uniform1f(t,n.u_image_height)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},symbolTextAndIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}};function Jn(t,n,r,a,i,o,l){for(var u=t.context,s=u.gl,c=t.useProgram("collisionBox"),d=[],f=0,p=0,h=0;h0){var _=e.create(),O=y;e.mul(_,v.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(_,_,v.placementViewportMatrix),d.push({circleArray:A,circleOffset:p,transform:O,invTransform:_}),p=f+=A.length/4}b&&c.draw(u,s.LINES,Me.disabled,we.disabled,t.colorModeForRenderPass(),Te.disabled,Pn(y,t.transform,g),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,t.transform.zoom,null,null,b.collisionVertexBuffer)}}if(l&&d.length){var E=t.useProgram("collisionCircle"),x=new e.StructArrayLayout2f1f2i16;x.resize(4*f),x._trim();for(var M=0,w=0,S=d;w=0&&(m[v.associatedIconIndex]={shiftedAnchor:x,angle:M})}else st(v.numGlyphs,p)}if(d){h.clear();for(var S=t.icon.placedSymbolArray,T=0;T0){var l=e.browser.now(),u=(l-t.timeAdded)/o,s=n?(l-n.timeAdded)/o:-1,c=r.getSource(),d=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-d)>Math.abs(t.tileID.overscaledZ-d),p=f&&t.refreshedUponExpiration?1:e.clamp(f?u:1-s,0,1);return t.refreshedUponExpiration&&u>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var sr=new e.Color(1,0,0,1),cr=new e.Color(0,1,0,1),dr=new e.Color(0,0,1,1),fr=new e.Color(1,0,1,1),pr=new e.Color(0,1,1,1);function hr(e,t,n,r){gr(e,0,t+n/2,e.transform.width,n,r)}function mr(e,t,n,r){gr(e,t-n/2,0,n,e.transform.height,r)}function gr(t,n,r,a,i,o){var l=t.context,u=l.gl;u.enable(u.SCISSOR_TEST),u.scissor(n*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio,a*e.browser.devicePixelRatio,i*e.browser.devicePixelRatio),l.clear({color:o}),u.disable(u.SCISSOR_TEST)}function vr(t,n,r){var a=t.context,i=a.gl,o=r.posMatrix,l=t.useProgram("debug"),u=Me.disabled,s=we.disabled,c=t.colorModeForRenderPass();a.activeTexture.set(i.TEXTURE0),t.emptyTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE),l.draw(a,i.LINE_STRIP,u,s,c,Te.disabled,Dn(o,e.Color.red),"$debug",t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var d=n.getTileByID(r.key).latestRawTileData,f=Math.floor((d&&d.byteLength||0)/1024),p=n.getTile(r).tileSize,h=512/Math.min(p,512)*(r.overscaledZ/t.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=" => "+r.overscaledZ),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,n.width,n.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,m+" "+f+"kb"),l.draw(a,i.TRIANGLES,u,s,Se.alphaBlended,Te.disabled,Dn(o,e.Color.transparent,h),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}var yr={symbol:function(t,n,r,a,i){if("translucent"===t.renderPass){var o=we.disabled,l=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,a,i,o,l){for(var u=n.transform,s="map"===i,c="map"===o,d=0,f=t;d256&&this.clearStencil(),n.setColorMode(Se.disabled),n.setDepthMode(Me.disabled);var a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var i=0,o=t;i256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new we({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new we({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},br.prototype.stencilConfigForOverlap=function(e){var t,n=this.context.gl,r=e.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),a=r[r.length-1].overscaledZ,i=r[0].overscaledZ-a+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();for(var o={},l=0;l=0;this.currentLayer--){var A=this.style._layers[a[this.currentLayer]],_=i[A.source],O=c[A.source];this._renderTileClippingMasks(A,O),this.renderLayer(this,_,A,O)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?t.pop():null},br.prototype.isPatternMissing=function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n},br.prototype.useProgram=function(e,t){this.cache=this.cache||{};var n=""+e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new On(this.context,e,bn[e],t,Kn[e],this._showOverdrawInspector)),this.cache[n]},br.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},br.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)},br.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ar=function(e,t){this.points=e,this.planes=t};Ar.fromInvProjectionMatrix=function(t,n,r){var a=Math.pow(2,r),i=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return e.transformMat4([],n,t)})).map((function(t){return e.scale$1([],t,1/t[3]/n*a)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(t){var n=e.sub([],i[t[0]],i[t[1]]),r=e.sub([],i[t[2]],i[t[1]]),a=e.normalize([],e.cross([],n,r)),o=-e.dot(a,i[t[1]]);return a.concat(o)}));return new Ar(i,o)};var _r=function(t,n){this.min=t,this.max=n,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};_r.prototype.quadrant=function(t){for(var n=[t%2==0,t<2],r=e.clone$2(this.min),a=e.clone$2(this.max),i=0;i=0;if(0===o)return 0;o!==n.length&&(r=!1)}if(r)return 2;for(var u=0;u<3;u++){for(var s=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;dthis.max[u]-this.min[u])return 0}return 1};var Or=function(e,t,n,r){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r};Or.prototype.interpolate=function(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this},Or.prototype.getCenter=function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),a=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(r,a)},Or.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},Or.prototype.clone=function(){return new Or(this.top,this.bottom,this.left,this.right)},Or.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Er=function(t,n,r,a,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==a?60:a,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Or,this._posMatrixCache={},this._alignedPosMatrixCache={}},xr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Er.prototype.clone=function(){var e=new Er(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e},xr.minZoom.get=function(){return this._minZoom},xr.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},xr.maxZoom.get=function(){return this._maxZoom},xr.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},xr.minPitch.get=function(){return this._minPitch},xr.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},xr.maxPitch.get=function(){return this._maxPitch},xr.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},xr.renderWorldCopies.get=function(){return this._renderWorldCopies},xr.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},xr.worldSize.get=function(){return this.tileSize*this.scale},xr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},xr.size.get=function(){return new e.Point(this.width,this.height)},xr.bearing.get=function(){return-this.angle/Math.PI*180},xr.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},xr.pitch.get=function(){return this._pitch/Math.PI*180},xr.pitch.set=function(t){var n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},xr.fov.get=function(){return this._fov/Math.PI*180},xr.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},xr.zoom.get=function(){return this._zoom},xr.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},xr.center.get=function(){return this._center},xr.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},xr.padding.get=function(){return this._edgeInsets.toJSON()},xr.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},xr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Er.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},Er.prototype.interpolatePadding=function(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()},Er.prototype.coveringZoomLevel=function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)},Er.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),a=this.pointCoordinate(new e.Point(this.width,0)),i=this.pointCoordinate(new e.Point(this.width,this.height)),o=this.pointCoordinate(new e.Point(0,this.height)),l=Math.floor(Math.min(r.x,a.x,i.x,o.x)),u=Math.floor(Math.max(r.x,a.x,i.x,o.x)),s=l-1;s<=u+1;s++)0!==s&&n.push(new e.UnwrappedTileID(s,t));return n},Er.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&nt.maxzoom&&(n=t.maxzoom);var a=e.MercatorCoordinate.fromLngLat(this.center),i=Math.pow(2,n),o=[i*a.x,i*a.y,0],l=Ar.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),u=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);var s=function(e){return{aabb:new _r([e*i,0,0],[(e+1)*i,i,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}},c=[],d=[],f=n,p=t.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var h=1;h<=3;h++)c.push(s(-h)),c.push(s(h));for(c.push(s(0));c.length>0;){var m=c.pop(),g=m.x,v=m.y,y=m.fullyVisible;if(!y){var b=m.aabb.intersects(l);if(0===b)continue;y=2===b}var A=m.aabb.distanceX(o),_=m.aabb.distanceY(o),O=Math.max(Math.abs(A),Math.abs(_));if(m.zoom===f||O>3+(1<=u)d.push({tileID:new e.OverscaledTileID(m.zoom===f?p:m.zoom,m.wrap,m.zoom,g,v),distanceSq:e.sqrLen([o[0]-.5-g,o[1]-.5-v])});else for(var E=0;E<4;E++){var x=(g<<1)+E%2,M=(v<<1)+(E>>1);c.push({aabb:m.aabb.quadrant(E),zoom:m.zoom+1,x:x,y:M,wrap:m.wrap,fullyVisible:y})}}return d.sort((function(e,t){return e.distanceSq-t.distanceSq})).map((function(e){return e.tileID}))},Er.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},xr.unmodified.get=function(){return this._unmodified},Er.prototype.zoomScale=function(e){return Math.pow(2,e)},Er.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},Er.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)},Er.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},xr.point.get=function(){return this.project(this.center)},Er.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),a=this.pointCoordinate(this.centerPoint),i=this.locationCoordinate(t),o=new e.MercatorCoordinate(i.x-(r.x-a.x),i.y-(r.y-a.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&&(this.center=this.center.wrap())},Er.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},Er.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},Er.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},Er.prototype.coordinateLocation=function(e){return e.toLngLat()},Er.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var a=n[3],i=r[3],o=n[1]/a,l=r[1]/i,u=n[2]/a,s=r[2]/i,c=u===s?0:(0-u)/(s-u);return new e.MercatorCoordinate(e.number(n[0]/a,r[0]/i,c)/this.worldSize,e.number(o,l,c)/this.worldSize)},Er.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},Er.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},Er.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Er.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Er.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,a=n?this._alignedPosMatrixCache:this._posMatrixCache;if(a[r])return a[r];var i=t.canonical,o=this.worldSize/this.zoomScale(i.z),l=i.x+Math.pow(2,i.z)*t.wrap,u=e.identity(new Float64Array(16));return e.translate(u,u,[l*o,i.y*o,0]),e.scale(u,u,[o/e.EXTENT,o/e.EXTENT,1]),e.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),a[r]=new Float32Array(u),a[r]},Er.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Er.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,a,i=-90,o=90,l=-180,u=180,s=this.size,c=this._unmodified;if(this.latRange){var d=this.latRange;i=e.mercatorYfromLat(d[1])*this.worldSize,t=(o=e.mercatorYfromLat(d[0])*this.worldSize)-io&&(a=o-g)}if(this.lngRange){var v=p.x,y=s.x/2;v-yu&&(r=u-y)}void 0===r&&void 0===a||(this.center=this.unproject(new e.Point(void 0!==r?r:p.x,void 0!==a?a:p.y))),this._unmodified=c,this._constraining=!1}},Er.prototype._calcMatrices=function(){if(this.height){var t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+t.y/this.height),a=Math.sin(r)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-r,.01,Math.PI-.01)),i=this.point,o=i.x,l=i.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),s=this.height/50,c=new Float64Array(16);e.perspective(c,this._fov,this.width/this.height,s,u),c[8]=2*-t.x/this.width,c[9]=2*t.y/this.height,e.scale(c,c,[1,-1,1]),e.translate(c,c,[0,0,-this.cameraToCenterDistance]),e.rotateX(c,c,this._pitch),e.rotateZ(c,c,this.angle),e.translate(c,c,[-o,-l,0]),this.mercatorMatrix=e.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),e.scale(c,c,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=e.invert([],this.projMatrix);var d=this.width%2/2,f=this.height%2/2,p=Math.cos(this.angle),h=Math.sin(this.angle),m=o-Math.round(o)+p*d+h*f,g=l-Math.round(l)+p*f+h*d,v=new Float64Array(c);if(e.translate(v,v,[m>.5?m-1:m,g>.5?g-1:g,0]),this.alignedProjMatrix=v,c=e.create(),e.scale(c,c,[this.width/2,-this.height/2,1]),e.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=e.create(),e.scale(c,c,[1,-1,1]),e.translate(c,c,[-1,-1,0]),e.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Er.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Er.prototype.getCameraPoint=function(){var t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))},Er.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,a=n.y,i=n.x,o=n.y,l=0,u=t;l=3&&!e.some((function(e){return isNaN(e)}))){var t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},Mr.prototype._updateHashUnthrottled=function(){var t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,t)}catch(e){}};var wr={linearity:.3,easing:e.bezier(0,0,.3,1)},Sr=e.extend({deceleration:2500,maxSpeed:1400},wr),Tr=e.extend({deceleration:20,maxSpeed:1400},wr),Cr=e.extend({deceleration:1e3,maxSpeed:360},wr),Lr=e.extend({deceleration:1e3,maxSpeed:90},wr),Pr=function(e){this._map=e,this.clear()};function kr(e,t){(!e.duration||e.duration0&&n-t[0].time>160;)t.shift()},Pr.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},r=0,a=this._inertiaBuffer;r=this._clickTolerance||this._map.fire(new Rr(e.type,this._map,e))},Fr.prototype.dblclick=function(e){return this._firePreventable(new Rr(e.type,this._map,e))},Fr.prototype.mouseover=function(e){this._map.fire(new Rr(e.type,this._map,e))},Fr.prototype.mouseout=function(e){this._map.fire(new Rr(e.type,this._map,e))},Fr.prototype.touchstart=function(e){return this._firePreventable(new jr(e.type,this._map,e))},Fr.prototype.touchmove=function(e){this._map.fire(new jr(e.type,this._map,e))},Fr.prototype.touchend=function(e){this._map.fire(new jr(e.type,this._map,e))},Fr.prototype.touchcancel=function(e){this._map.fire(new jr(e.type,this._map,e))},Fr.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},Fr.prototype.isEnabled=function(){return!0},Fr.prototype.isActive=function(){return!1},Fr.prototype.enable=function(){},Fr.prototype.disable=function(){};var Nr=function(e){this._map=e};Nr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Nr.prototype.mousemove=function(e){this._map.fire(new Rr(e.type,this._map,e))},Nr.prototype.mousedown=function(){this._delayContextMenu=!0},Nr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Nr.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new Rr(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()},Nr.prototype.isEnabled=function(){return!0},Nr.prototype.isActive=function(){return!1},Nr.prototype.enable=function(){},Nr.prototype.disable=function(){};var Br=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function zr(e,t){for(var n={},r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){for(var n=new e.Point(0,0),r=0,a=t;r30)&&(this.aborted=!0)}}},Ur.prototype.touchend=function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Vr=function(e){this.singleTap=new Ur(e),this.numTaps=e.numTaps,this.reset()};Vr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Vr.prototype.touchstart=function(e,t,n){this.singleTap.touchstart(e,t,n)},Vr.prototype.touchmove=function(e,t,n){this.singleTap.touchmove(e,t,n)},Vr.prototype.touchend=function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var a=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if(a&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Hr=function(){this._zoomIn=new Vr({numTouches:1,numTaps:2}),this._zoomOut=new Vr({numTouches:2,numTaps:1}),this.reset()};Hr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Hr.prototype.touchstart=function(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)},Hr.prototype.touchmove=function(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)},Hr.prototype.touchend=function(e,t,n){var r=this,a=this._zoomIn.touchend(e,t,n),i=this._zoomOut.touchend(e,t,n);return a?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(a)},{originalEvent:e})}}):i?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}}):void 0},Hr.prototype.touchcancel=function(){this.reset()},Hr.prototype.enable=function(){this._enabled=!0},Hr.prototype.disable=function(){this._enabled=!1,this.reset()},Hr.prototype.isEnabled=function(){return this._enabled},Hr.prototype.isActive=function(){return this._active};var Yr={0:1,2:2},Wr=function(e){this.reset(),this._clickTolerance=e.clickTolerance||1};Wr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wr.prototype._correctButton=function(e,t){return!1},Wr.prototype._move=function(e,t){return{}},Wr.prototype.mousedown=function(e,t){if(!this._lastPoint){var r=n.mouseButton(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}},Wr.prototype.mousemoveWindow=function(e,t){var n=this._lastPoint;if(n)if(e.preventDefault(),function(e,t){var n=Yr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)0&&(this._active=!0);var a=zr(r,n),i=new e.Point(0,0),o=new e.Point(0,0),l=0;for(var u in a){var s=a[u],c=this._touches[u];c&&(i._add(s),o._add(s.sub(c)),l++,a[u]=s)}if(this._touches=a,!(lMath.abs(e.x)}var ra=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},t.prototype._start=function(e){this._lastPoints=e,na(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,n){var r=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,a,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+a.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,a=t.mag()>=2;if(r||a){if(!r||!a)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var i=e.y>0==t.y>0;return na(e)&&na(t)&&i}},t}(Kr),aa={panStep:100,bearingStep:15,pitchStep:10},ia=function(){var e=aa;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1};function oa(e){return e*(2-e)}ia.prototype.reset=function(){this._active=!1},ia.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,a=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(r=0,a=0),{cameraAnimation:function(l){var u=l.getZoom();l.easeTo({duration:300,easeId:"keyboardHandler",easing:oa,zoom:n?Math.round(u)+n*(e.shiftKey?2:1):u,bearing:l.getBearing()+r*t._bearingStep,pitch:l.getPitch()+a*t._pitchStep,offset:[-i*t._panStep,-o*t._panStep],center:l.getCenter()},{originalEvent:e})}}}},ia.prototype.enable=function(){this._enabled=!0},ia.prototype.disable=function(){this._enabled=!1,this.reset()},ia.prototype.isEnabled=function(){return this._enabled},ia.prototype.isActive=function(){return this._active},ia.prototype.disableRotation=function(){this._rotationDisabled=!0},ia.prototype.enableRotation=function(){this._rotationDisabled=!1};var la=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onTimeout"],this)};la.prototype.setZoomRate=function(e){this._defaultZoomRate=e},la.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},la.prototype.isEnabled=function(){return!!this._enabled},la.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},la.prototype.isZooming=function(){return!!this._zooming},la.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},la.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},la.prototype.wheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),a=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(a*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}},la.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},la.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},la.prototype.renderFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,a=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==a&&(a=1/a);var i="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(i*a))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,l="number"==typeof this._targetZoom?this._targetZoom:n.zoom,u=this._startZoom,s=this._easing,c=!1;if("wheel"===this._type&&u&&s){var d=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),f=s(d);o=e.number(u,l,f),d<1?this._frameId||(this._frameId=!0):c=!0}else o=l,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:o-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},la.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,a=(e.browser.now()-r.start)/r.duration,i=r.easing(a+.01)-r.easing(a),o=.27/Math.sqrt(i*i+1e-4)*.01,l=Math.sqrt(.0729-o*o);n=e.bezier(o,l,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n},la.prototype.reset=function(){this._active=!1};var ua=function(e,t){this._clickZoom=e,this._tapZoom=t};ua.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ua.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ua.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ua.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var sa=function(){this.reset()};sa.prototype.reset=function(){this._active=!1},sa.prototype.dblclick=function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active};var ca=function(){this._tap=new Vr({numTouches:1,numTaps:1}),this.reset()};ca.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ca.prototype.touchstart=function(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))},ca.prototype.touchmove=function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],a=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,n)},ca.prototype.touchend=function(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)},ca.prototype.touchcancel=function(){this.reset()},ca.prototype.enable=function(){this._enabled=!0},ca.prototype.disable=function(){this._enabled=!1,this.reset()},ca.prototype.isEnabled=function(){return this._enabled},ca.prototype.isActive=function(){return this._active};var da=function(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n};da.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},da.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},da.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},da.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fa=function(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n};fa.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fa.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fa.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fa.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pa=function(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};pa.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pa.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pa.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pa.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pa.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pa.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var ha=function(e){return e.zoom||e.drag||e.pitch||e.rotate},ma=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(e.Event);function ga(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var va=function(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pr(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var a=this._el;this._listeners=[[a,"touchstart",{passive:!0}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[e.window,"blur",void 0]];for(var i=0,o=this._listeners;ii?Math.min(2,_):Math.max(.5,_),O=Math.pow(g,1-t),E=a.unproject(b.add(A.mult(t*O)).mult(m));a.setLocationAtPoint(a.renderWorldCopies?E.wrap():E,h)}r._fireMoveEvents(n)}),(function(e){r._afterEase(n,e)}),t),this},n.prototype._prepareEase=function(t,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,a=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),a&&this.fire(new e.Event("rotateend",t)),i&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}},n.prototype.flyTo=function(t,n){var r=this;if(!t.essential&&e.browser.prefersReducedMotion){var a=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(a,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var i=this.transform,o=this.getZoom(),l=this.getBearing(),u=this.getPitch(),s=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,i.minZoom,i.maxZoom):o,d="bearing"in t?this._normalizeBearing(t.bearing,l):l,f="pitch"in t?+t.pitch:u,p="padding"in t?t.padding:i.padding,h=i.zoomScale(c-o),m=e.Point.convert(t.offset),g=i.centerPoint.add(m),v=i.pointLocation(g),y=e.LngLat.convert(t.center||v);this._normalizeCenter(y);var b=i.project(v),A=i.project(y).sub(b),_=t.curve,O=Math.max(i.width,i.height),E=O/h,x=A.mag();if("minZoom"in t){var M=e.clamp(Math.min(t.minZoom,o,c),i.minZoom,i.maxZoom),w=O/i.zoomScale(M-o);_=Math.sqrt(w/x*2)}var S=_*_;function T(e){var t=(E*E-O*O+(e?-1:1)*S*S*x*x)/(2*(e?E:O)*S*x);return Math.log(Math.sqrt(t*t+1)-t)}function C(e){return(Math.exp(e)-Math.exp(-e))/2}function L(e){return(Math.exp(e)+Math.exp(-e))/2}var P=T(0),k=function(e){return L(P)/L(P+_*e)},D=function(e){return O*((L(P)*(C(t=P+_*e)/L(t))-C(P))/S)/x;var t},R=(T(1)-P)/_;if(Math.abs(x)<1e-6||!isFinite(R)){if(Math.abs(O-E)<1e-6)return this.easeTo(t,n);var j=Et.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=l!==d,this._pitching=f!==u,this._padding=!i.isPaddingEqual(p),this._prepareEase(n,!1),this._ease((function(t){var a=t*R,h=1/k(a);i.zoom=1===t?c:o+i.scaleZoom(h),r._rotating&&(i.bearing=e.number(l,d,t)),r._pitching&&(i.pitch=e.number(u,f,t)),r._padding&&(i.interpolatePadding(s,p,t),g=i.centerPoint.add(m));var v=1===t?y:i.unproject(b.add(A.mult(D(a))).mult(h));i.setLocationAtPoint(i.renderWorldCopies?v.wrap():v,g),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,t)}if(!e){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)180?-360:n<-180?360:0}},n}(e.Evented),ba=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ba.prototype.getDefaultPosition=function(){return"bottom-right"},ba.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ba.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ba.prototype._setElementTitle=function(e,t){var n=this._map._getUIString("AttributionControl."+t);e.title=n,e.setAttribute("aria-label",n)},ba.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ba.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce((function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r=0)return!1;return!0}))).join(" | ");o!==this._attribHTML&&(this._attribHTML=o,e.length?(this._innerContainer.innerHTML=o,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ba.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Aa=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};Aa.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","mapboxgl-ctrl");var t=n.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Aa.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Aa.prototype.getDefaultPosition=function(){return"bottom-left"},Aa.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Aa.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},Aa.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var _a=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};_a.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},_a.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;nt.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var a=new Er(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(r.call(this,a,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new _a,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Oa,t.locale),this._clickTolerance=t.clickTolerance,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof xa))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new va(this,t),this._hash=t.hash&&new Mr("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new ba({customAttribution:t.customAttribution})),this.addControl(new Aa,t.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(t){n._update("style"===t.dataType),n.fire(new e.Event(t.dataType+"data",t))})),this.on("dataloading",(function(t){n.fire(new e.Event(t.dataType+"dataloading",t))}))}r&&(a.__proto__=r),(a.prototype=Object.create(r&&r.prototype)).constructor=a;var i={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return a.prototype._getMapId=function(){return this._mapId},a.prototype.addControl=function(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var a=this._controlPositions[n];return-1!==n.indexOf("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this},a.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},a.prototype.hasControl=function(e){return this._controls.indexOf(e)>-1},a.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],a=n[1];this._resizeCanvas(r,a),this.transform.resize(r,a),this.painter.resize(r,a);var i=!this._moving;return i&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),i&&this.fire(new e.Event("moveend",t)),this},a.prototype.getBounds=function(){return this.transform.getBounds()},a.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},a.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},a.prototype.setMinZoom=function(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},a.prototype.getMaxZoom=function(){return this.transform.maxZoom},a.prototype.setMinPitch=function(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")},a.prototype.getMaxPitch=function(){return this.transform.maxPitch},a.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},a.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},a.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},a.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},a.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},a.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},a.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},a.prototype._createDelegatedListener=function(e,t,n){var r,a=this;if("mouseenter"===e||"mouseover"===e){var i=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var o=a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[];o.length?i||(i=!0,n.call(a,new Rr(e,a,r.originalEvent,{features:o}))):i=!1},mouseout:function(){i=!1}}}}if("mouseleave"===e||"mouseout"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?o=!0:o&&(o=!1,n.call(a,new Rr(e,a,r.originalEvent)))},mouseout:function(t){o&&(o=!1,n.call(a,new Rr(e,a,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=a.getLayer(t)?a.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(a,e),delete e.features)},r)}},a.prototype.on=function(e,t,n){if(void 0===n)return r.prototype.on.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var i in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(a),a.delegates)this.on(i,a.delegates[i]);return this},a.prototype.once=function(e,t,n){if(void 0===n)return r.prototype.once.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var i in a.delegates)this.once(i,a.delegates[i]);return this},a.prototype.off=function(e,t,n){var a=this;return void 0===n?r.prototype.off.call(this,e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&function(r){for(var i=r[e],o=0;o180;){var l=r.locationPoint(t);if(l.x>=0&&l.y>=0&&l.x<=r.width&&l.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}Pa.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),n.disableDrag()},Pa.prototype.move=function(e,t){var n=this.map,r=this.mouseRotate.mousemoveWindow(e,t);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var a=this.mousePitch.mousemoveWindow(e,t);a&&a.pitchDelta&&n.setPitch(n.getPitch()+a.pitchDelta)}},Pa.prototype.off=function(){var e=this.element;n.removeEventListener(e,"mousedown",this.mousedown),n.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(e,"touchmove",this.touchmove),n.removeEventListener(e,"touchend",this.touchend),n.removeEventListener(e,"touchcancel",this.reset),this.offTemp()},Pa.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(e.window,"mousemove",this.mousemove),n.removeEventListener(e.window,"mouseup",this.mouseup)},Pa.prototype.mousedown=function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),n.mousePos(this.element,t)),n.addEventListener(e.window,"mousemove",this.mousemove),n.addEventListener(e.window,"mouseup",this.mouseup)},Pa.prototype.mousemove=function(e){this.move(e,n.mousePos(this.element,e))},Pa.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},Pa.prototype.touchstart=function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))},Pa.prototype.touchmove=function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))},Pa.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=n}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(e){return this._rotation=e||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(e){return this._rotationAlignment=e||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(e.Evented),Fa={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Na=0,Ba=!1,za=function(t){function r(n){t.call(this),this.options=e.extend({},Fa,n),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.onAdd=function(t){var r;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==ja?r(ja):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((function(e){r(ja="denied"!==e.state)})):r(ja=!!e.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Na=0,Ba=!1},r.prototype._isOutOfMapMaxBounds=function(e){var t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitudet.getEast()||n.latitudet.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}},r.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,a=this._map.getBearing(),i=e.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),i,{geolocateSource:!0})},r.prototype._updateMarker=function(t){if(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([1,e]),r=t.distanceTo(n),a=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=a+"px",this._circleElement.style.height=a+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Ba)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(t){var r=this;if(this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var a=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}else{var i=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ia(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ia({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(t){t.geolocateSource||"ACTIVE_LOCK"!==r._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new e.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Na--,Ba=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Na>1?(t={maximumAge:6e5,timeout:0},Ba=!0):(t=this.options.positionOptions,Ba=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Ua={maxWidth:100,unit:"metric"},Va=function(t){this.options=e.extend({},Ua,t),e.bindAll(["_onMove","setUnit"],this)};function Ha(e,t,n){var r=n&&n.maxWidth||100,a=e._container.clientHeight/2,i=e.unproject([0,a]),o=e.unproject([r,a]),l=i.distanceTo(o);if(n&&"imperial"===n.unit){var u=3.2808*l;u>5280?Ya(t,r,u/5280,e._getUIString("ScaleControl.Miles")):Ya(t,r,u,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Ya(t,r,l/1852,e._getUIString("ScaleControl.NauticalMiles")):l>=1e3?Ya(t,r,l/1e3,e._getUIString("ScaleControl.Kilometers")):Ya(t,r,l,e._getUIString("ScaleControl.Meters"))}function Ya(e,t,n,r){var a,i,o,l=(a=n,(i=Math.pow(10,(""+Math.floor(a)).length-1))*(o=(o=a/i)>=10?10:o>=5?5:o>=3?3:o>=2?2:o>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(o)));e.style.width=t*(l/n)+"px",e.innerHTML=l+" "+r}Va.prototype.getDefaultPosition=function(){return"bottom-left"},Va.prototype._onMove=function(){Ha(this._map,this._container,this.options)},Va.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Va.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Va.prototype.setUnit=function(e){this.options.unit=e,Ha(this._map,this._container,this.options)};var Wa=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};Wa.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Wa.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Wa.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},Wa.prototype._setupUI=function(){var t=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Wa.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},Wa.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Wa.prototype._isFullscreen=function(){return this._fullscreen},Wa.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Wa.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ga={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},qa=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Xa=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(Ga),n),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},r.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),a=e.window.document.createElement("body");for(a.innerHTML=t;n=a.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},r.prototype.setDOMContent=function(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(e){this._container&&this._container.classList.add(e)},r.prototype.removeClassName=function(e){this._container&&this._container.classList.remove(e)},r.prototype.setOffset=function(e){return this.options.offset=e,this._update(),this},r.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(e){this._update(e.point)},r.prototype._onMouseMove=function(e){this._update(e.point)},r.prototype._onDrag=function(e){this._update(e.point)},r.prototype._update=function(t){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(e){return r._container.classList.add(e)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ka(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var a=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),i=this.options.anchor,o=function t(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new e.Point(0,0),top:new e.Point(0,n),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-n),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(n,0),right:new e.Point(-n,0)}}if(n instanceof e.Point||Array.isArray(n)){var a=e.Point.convert(n);return{center:a,top:a,"top-left":a,"top-right":a,bottom:a,"bottom-left":a,"bottom-right":a,left:a,right:a}}return{center:e.Point.convert(n.center||[0,0]),top:e.Point.convert(n.top||[0,0]),"top-left":e.Point.convert(n["top-left"]||[0,0]),"top-right":e.Point.convert(n["top-right"]||[0,0]),bottom:e.Point.convert(n.bottom||[0,0]),"bottom-left":e.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(n["bottom-right"]||[0,0]),left:e.Point.convert(n.left||[0,0]),right:e.Point.convert(n.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!i){var l,u=this._container.offsetWidth,s=this._container.offsetHeight;l=a.y+o.bottom.ythis._map.transform.height-s?["bottom"]:[],a.xthis._map.transform.width-u/2&&l.push("right"),i=0===l.length?"bottom":l.join("-")}var c=a.add(o[i]).round();n.setTransform(this._container,Da[i]+" translate("+c.x+"px,"+c.y+"px)"),Ra(this._container,i,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var e=this._container.querySelector(qa);e&&e.focus()}},r.prototype._onClose=function(){this.remove()},r}(e.Evented),Za={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Sa,NavigationControl:La,GeolocateControl:za,AttributionControl:ba,ScaleControl:Va,FullscreenControl:Wa,Popup:Xa,Marker:Ia,Style:Ht,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:function(){Ne().acquire(Re)},clearPrewarmedResources:function(){var e=Ie;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Re),Ie=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return je.workerCount},set workerCount(e){je.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return Za})),n}()},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,a=n;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(5)),o=a(n(7)),l=a(n(9)),u=a(n(10)),s=a(n(8)),c=a(n(4)),d=r(n(0)),f=a(n(1)),p=a(n(32));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 n,r=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=function(e){(0,l.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"render",value:function(){return d.default.createElement(p.default,this.props,d.default.createElement("g",{transform:"translate(8, 8)"},d.default.createElement("path",{d:"M31.5059707,24 L47.5987718,7.90719891 C48.1337427,7.37222791 48.1337427,6.50972364 47.5987718,5.97475264 L42.0252474,0.40122825 C41.4902764,-0.13374275 40.6277721,-0.13374275 40.0928011,0.40122825 L24,16.4940293 L7.90719891,0.40122825 C7.37222791,-0.13374275 6.50972364,-0.13374275 5.97475264,0.40122825 L0.40122825,5.97475264 C-0.13374275,6.50972364 -0.13374275,7.37222791 0.40122825,7.90719891 L16.4940293,24 L0.40122825,40.0928011 C-0.13374275,40.6277721 -0.13374275,41.4902764 0.40122825,42.0252474 L5.97475264,47.5987718 C6.50972364,48.1337427 7.37222791,48.1337427 7.90719891,47.5987718 L24,31.5059707 L40.0928011,47.5987718 C40.6277721,48.1337427 41.4902764,48.1337427 42.0252474,47.5987718 L47.5987718,42.0252474 C48.1337427,41.4902764 48.1337427,40.6277721 47.5987718,40.0928011 L31.5059707,24 Z"})))}}]),n}(d.Component);t.default=m,(0,c.default)(m,"propTypes",{height:f.default.string}),(0,c.default)(m,"defaultProps",{height:"16px",predefinedClassName:"data-ex-icons-delete"})},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,o){var l=r(t),u=a[e][r(t)];return 2===l&&(u=u[n?0:1]),u.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,a,i,o){var l=t(r),u=n[e][t(r)];return 2===l&&(u=u[a?0:1]),u.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var l=n(t),u=r[e][n(t)];return 2===l&&(u=u[a?0:1]),u.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r,a;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],a=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:r?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,a,i){var o="";switch(a){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":o=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":o=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":o=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":o=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":o=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":o=i?"vuoden":"vuotta"}return o=function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function r(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,i,o){var l=e+" ";return 1===e?l+n(0,t,i[0],o):t?l+(r(e)?a(i)[1]:a(i)[0]):o?l+a(i)[1]:l+(r(e)?a(i)[1]:a(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,a){return e+" "+n(t[a],e,r)}function a(e,r,a){return n(t[a],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r,a;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return a+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return a+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return a+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,a){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n,r){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +function t(e,t,n){var r,a;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(23))},function(e,t,n){!function(e){"use strict"; +//! moment.js locale configuration +e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(23))},function(e,t,n){var r=n(816);e.exports=function(e){return new r(e)}},function(e,t){e.exports=function(e){this.wrapped=e}},function(e,t,n){var r=n(1358);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}}},function(e,t){e.exports=function(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}},function(e,t,n){"use strict";n.r(t);var r=n(93),a=n(361),i=n(362),o=n(648),l=n.n(o),u=n(649),s=n.n(u),c=n(650),d=n.n(c),f=n(651),p=n(652),h=n(820);n.d(t,"ReadableStreamPolyfill",(function(){return h.ReadableStreamPolyfill}));var m=n(821);n.d(t,"BlobPolyfill",(function(){return m.BlobPolyfill}));var g=n(434);n.d(t,"FileReaderPolyfill",(function(){return g.a}));var v=n(822);n.d(t,"FilePolyfill",(function(){return v.FilePolyfill}));var y=n(823);n.d(t,"installFilePolyfills",(function(){return y.a})),a.TextEncoder&&(!r.b||!("TextEncoder"in r.a))&&(r.a.TextEncoder=a.TextEncoder),a.TextEncoder&&(!r.b||!("TextDecoder"in r.a))&&(r.a.TextDecoder=a.TextDecoder),r.b||"atob"in r.a||!i.atob||(r.a.atob=i.atob),r.b||"btoa"in r.a||!i.btoa||(r.a.btoa=i.btoa),r.b||"Headers"in r.a||!l.a||(r.a.Headers=l.a),r.b||"Response"in r.a||!s.a||(r.a.Response=s.a),r.b||"fetch"in r.a||!d.a||(r.a.fetch=d.a),r.b||"_encodeImageNode"in r.a||!f.encodeImageNode||(r.a._encodeImageNode=f.encodeImageNode),r.b||"_parseImageNode"in r.a||!p.parseImageNode||(r.a._parseImageNode=p.parseImageNode)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(1212),a=n(1213),i=n(434),o=n(1214);function l(){"undefined"==typeof ReadableStream&&e&&(e.ReadableStream=r.ReadableStreamPolyfill),"undefined"==typeof Blob&&e&&(e.Blob=a.BlobPolyfill),"undefined"==typeof FileReader&&e&&(e.FileReader=i.a),"undefined"==typeof File&&e&&(e.File=o.FilePolyfill)}}).call(this,n(67))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(119);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2.3.5";Object(r.a)(e,"no loader provided");var n=e.version;t&&n&&(t=i(t),n=i(n))}function i(e){var t=e.split(".").map(Number);return{major:t[0],minor:t[1]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),a=n.n(r),i=n(21),o=n(11),l=n(12),u=n(436),s=function(){function e(t){var n=t.maxConcurrency,r=void 0===n?5:n,a=t.onMessage,i=void 0===a?null:a,l=t.onDebug,u=void 0===l?function(){}:l;Object(o.a)(this,e),this.maxConcurrency=r,this.onMessage=i,this.onDebug=u,this.workerPools=new Map}var t;return Object(l.a)(e,null,[{key:"isSupported",value:function(){return"undefined"!=typeof Worker}}]),Object(l.a)(e,[{key:"setProps",value:function(e){"maxConcurrency"in e&&(this.maxConcurrency=e.maxConcurrency),"onDebug"in e&&(this.onDebug=e.onDebug)}},{key:"destroy",value:function(){this.workerPools.forEach((function(e){return e.destroy()}))}},{key:"process",value:(t=Object(i.a)(a.a.mark((function e(t,n,r){var i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._getWorkerPool(t,n),e.abrupt("return",i.process(r));case 2:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"_getWorkerPool",value:function(e,t){var n=this.workerPools.get(t);return n||(n=new u.a({source:e,name:t,onMessage:c.bind(null,this.onMessage),maxConcurrency:this.maxConcurrency,onDebug:this.onDebug}),this.workerPools.set(t,n)),n}}]),e}();function c(e,t){var n=t.worker,r=t.data,a=t.resolve,i=t.reject;if(e)e({worker:n,data:r,resolve:a,reject:i});else switch(r.type){case"done":a(r.result);break;case"error":i(r.message)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(13),a=n.n(r),i=n(69),o=n(107),l=n(103);function u(e,t,n){return s.apply(this,arguments)}function s(){return(s=Object(o.a)(a.a.mark((function e(t,n,r){var o,u,s,c,d,f,p,h,m,g;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=new n(r),u=!0,s=!1,e.prev=3,d=Object(l.a)(t);case 5:return e.next=7,Object(i.a)(d.next());case 7:return f=e.sent,u=f.done,e.next=11,Object(i.a)(f.value);case 11:if(p=e.sent,u){e.next=23;break}return h=p,e.next=16,Object(i.a)(o.write(h));case 16:if(!(m=e.sent)){e.next=20;break}return e.next=20,m;case 20:u=!0,e.next=5;break;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(3),s=!0,c=e.t0;case 29:if(e.prev=29,e.prev=30,u||null==d.return){e.next=34;break}return e.next=34,Object(i.a)(d.return());case 34:if(e.prev=34,!s){e.next=37;break}throw c;case 37:return e.finish(34);case 38:return e.finish(29);case 39:return e.next=41,Object(i.a)(o.end());case 41:if(!(g=e.sent)){e.next=45;break}return e.next=45,g;case 45:case"end":return e.stop()}}),e,null,[[3,25,29,39],[30,,34,38]])})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),a=n.n(r),i=n(21),o=n(66),l=n(128),u=n(122),s=n(300);function c(e,t,n){return d.apply(this,arguments)}function d(){return(d=Object(i.a)(a.a.mark((function e(t,n,r){var i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Array.isArray(n)||Object(l.a)(n)||(r=n,n=null),i=Object(u.a)(r||{}),c=t,"string"!=typeof t){e.next=9;break}return e.next=6,i(t);case 6:c=e.sent,e.next=10;break;case 9:t=null;case 10:if(!Object(o.b)(t)){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,t=null;case 15:return e.next=17,Object(s.a)(c,n,r);case 17:return e.abrupt("return",e.sent);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),a=n(11),i=n(12),o=n(358);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.props=u(u({},s),t),this.requestQueue=[],this.activeRequestCount=0,this.requestMap=new Map,this.stats=new o.a({id:t.id}),this.stats.get("Queued Requests"),this.stats.get("Active Requests"),this.stats.get("Cancelled Requests"),this.stats.get("Queued Requests Ever"),this.stats.get("Active Requests Ever"),this._deferredUpdate=null}return Object(i.a)(e,[{key:"scheduleRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return 0};if(!this.props.throttleRequests)return Promise.resolve({done:function(){}});if(this.requestMap.has(e))return this.requestMap.get(e);var n={handle:e,getPriority:t},r=new Promise((function(e){return n.resolve=e,n}));return this.requestQueue.push(n),this.requestMap.set(e,r),this._issueNewRequests(),r}},{key:"_issueRequest",value:function(e){var t=this,n=e.handle,r=e.resolve,a=!1,i=function(){a||(a=!0,t.requestMap.delete(n),t.activeRequestCount--,t._issueNewRequests())};return this.activeRequestCount++,r?r({done:i}):Promise.resolve({done:i})}},{key:"_issueNewRequests",value:function(){var e=this;this._deferredUpdate||(this._deferredUpdate=setTimeout((function(){return e._issueNewRequestsAsync()}),0))}},{key:"_issueNewRequestsAsync",value:function(){this._deferredUpdate=null;var e=Math.max(this.props.maxRequests-this.activeRequestCount,0);if(0!==e){this._updateAllRequests();for(var t=0;t0){var n=this.requestQueue.shift();this._issueRequest(n)}}}},{key:"_updateAllRequests",value:function(){for(var e=this.requestQueue,t=0;t-1},isGeographic:function(e){return Boolean(e)&&"object"==typeof e&&e.hasOwnProperty("type")&&e.hasOwnProperty("coordinates")},isString:function(e){return"string"==typeof e},isArray:function(e){return Array.isArray(e)},isDateObject:function(e){return e instanceof Date},isObject:function(e){return e===Object(e)&&"function"!=typeof e&&!Array.isArray(e)},whichFormatTime:l,whichFormatDate:u,whichFormatDateTime:s};e.exports=c},function(e,t,n){"use strict";var r=n(831),a={isNumber:/^(\+|\-)?\$?[\d,]*\.?\d+((e|E)(\+|\-)\d+)?%?$/,isInt:/^(\+|\-)?[\d,]+$/,isFloat:/^(\+|\-)?[\d,]*\.\d+?$/,isCurrency:/(?=.)^\$(([1-9][0-9]{0,2}(,[0-9]{3})*)|0)?(\.[0-9]{1,2})?$/,isPercentage:/^(\+|\-)?[\d,]*\.?\d+%$/,isZipCode:/(^\d{5}$)|(^\d{5}-\d{4}$)|(^\d{6}$)|(^\d{6}-\d{2}$)/,isTime:r.ALL_TIME_FORMAT_REGEX,isDate:r.DATE_FORMAT_REGEX,isDateTime:r.ALL_DATE_TIME_REGEX,isStringGeometry:/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON)/,isPairwisePointGeometry:/(\+|\-)?\d*\.\d*,( )?(\+|\-)?\d*\.\d*/};e.exports=a},function(e,t,n){"use strict";function r(e){return"("+e.join("|")+")"}var a="\\d{1,2}",i="\\d{1,2}",o="\\d{1,2}",l="\\d{1,2}",u="\\d{2}",s="\\d{2}",c="(\\+|-)(\\d{4}|\\d{1,2}:\\d{2})",d="(am|pm)",f=["X","x","H:m","HH:mmZ","h:m a","H:m:s","h:m:s a","HH:mm:ssZZ","HH:mm:ss.SSSS","HH:mm:ss.SSSSZZ"].reverse(),p=["\\b\\d{12,13}\\b","\\b\\d{9,10}(\\.\\d{1,3})?\\b",i+":"+o,a+":"+s+"(\\+|-)\\d{1,2}:\\d{1,2}","\\d{1,2}:"+o+" "+d,i+":"+o+":"+l,i+":"+o+":"+l+" "+d,a+":"+s+":"+u+c,a+":"+s+":"+u+"(\\.\\d{1,6})",a+":"+s+":"+u+"(\\.\\d{1,6})"+c].reverse(),h=f.reduce((function(e,t,n){return e[p[n]]=t,e}),{}),m=r(Object.keys(h)),g=new RegExp("^"+m+"$","i"),v="\\d{2,4}",y="\\d{1,2}",b=r(["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),A=r(["January","February","March","April","May","June","July","August","September","October","November","December"]),_="\\d{1,2}",O="\\d{1,2}(st|nd|rd|th)",E=[v+"-"+y+"-"+_,v+"\\/"+y+"\\/"+_,y+"\\/"+_+"\\/"+v,A+" \\d{2}, "+v,b+" \\d{2}, "+v,A+" "+O+", "+v,b+" "+O+", "+v],x=new RegExp("^"+r(E)+"$","i"),M=["YYYY-M-D","YYYY/M/D","M/D/YYYY","MMMM DD, YYYY","MMM DD, YYYY","MMMM Do, YYYY","MMM Do, YYYY"].reduce((function(e,t,n){return e[E[n]]=t,e}),{}),w=Object.keys(M).reduce((function(e,t){var n=M[t];return Object.keys(h).forEach((function(r){var a=h[r];e[t+" "+r]=n+" "+a,e[t+"T"+r]=n+"T"+a,e[r+"T"+t]=a+"T"+n,e[r+" "+t]=a+" "+n})),e}),{}),S=new RegExp(r(Object.keys(w)));e.exports={ALL_TIME_FORMAT_REGEX:g,TIME_FORMAT_REGEX_MAP:h,DATE_FORMAT_REGEX:x,DATE_FORMAT_REGEX_MAP:M,ALL_DATE_TIME_REGEX:S,DATE_TIME_MAP:w}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.visStateSchema=t.visStateSchemaV1=t.visStateSchemaV0=t.propertiesV1=t.propertiesV0=t.filterPropsV1=t.SplitMapsSchema=t.DimensionFieldSchema=t.filterPropsV0=t.InteractionSchemaV1=t.FilterSchemaV0=t.LayerSchemaV0=t.layerPropsV1=t.layerPropsV0=t.dimensionPropsV0=void 0;var a,i=r(n(80)),o=r(n(55)),l=r(n(5)),u=r(n(7)),s=r(n(17)),c=r(n(9)),d=r(n(10)),f=r(n(8)),p=r(n(4)),h=r(n(207)),m=n(234),g=n(208),v=n(177),y=r(n(329)),b=r(n(176)),A=n(75);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;tt[0])&&(!(e[2]t[1])&&!(e[3]0){for(i+=o,t=1;tn)throw Error(h+e)}function S(e,t,n,r){var a,i,o,l;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=7,a=0):(a=Math.ceil((t+1)/7),t%=7),i=g(10,7-t),l=e[a]%i|0,null==r?t<3?(0==t?l=l/100|0:1==t&&(l=l/10|0),o=n<4&&99999==l||n>3&&49999==l||5e4==l||0==l):o=(n<4&&l+1==i||n>3&&l+1==i/2)&&(e[a+1]/i/100|0)==g(10,t-2)-1||(l==i/2||0==l)&&0==(e[a+1]/i/100|0):t<4?(0==t?l=l/1e3|0:1==t?l=l/100|0:2==t&&(l=l/10|0),o=(r||n<4)&&9999==l||!r&&n>3&&4999==l):o=((r||n<4)&&l+1==i||!r&&n>3&&l+1==i/2)&&(e[a+1]/i/1e3|0)==g(10,t-3)-1,o}function T(e,t,n){for(var r,a,i=[0],o=0,l=e.length;on-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}x.absoluteValue=x.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),L(e)},x.ceil=function(){return L(new this.constructor(this),this.e+1,2)},x.comparedTo=x.cmp=function(e){var t,n,r,a,i=this,o=i.d,l=(e=new i.constructor(e)).d,u=i.s,s=e.s;if(!o||!l)return u&&s?u!==s?u:o===l?0:!o^u<0?1:-1:NaN;if(!o[0]||!l[0])return o[0]?u:l[0]?-s:0;if(u!==s)return u;if(i.e!==e.e)return i.e>e.e^u<0?1:-1;for(t=0,n=(r=o.length)<(a=l.length)?r:a;tl[t]^u<0?1:-1;return r===a?0:r>a^u<0?1:-1},x.cosine=x.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,a=t.d.length;a<32?(n=Math.ceil(a/3),r=(1/G(4,n)).toString()):(n=16,r="2.3283064365386962890625e-10");e.precision+=n,t=W(e,1,t.times(r),new e(1));for(var i=n;i--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,q(r,n)),r.precision=e,r.rounding=t,L(2==l||3==l?n.neg():n,e,t,!0)):new r(1):new r(NaN)},x.cubeRoot=x.cbrt=function(){var e,t,n,r,a,i,o,l,u,s,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(p=!1,(i=c.s*g(c.s*c,1/3))&&Math.abs(i)!=1/0?r=new d(i.toString()):(n=M(c.d),(i=((e=c.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=g(n,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=c.s),o=(e=d.precision)+3;;)if(s=(u=(l=r).times(l).times(l)).plus(c),r=C(s.plus(c).times(l),s.plus(u),o+2,1),M(l.d).slice(0,o)===(n=M(r.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(a||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(L(r,e+1,1),t=!r.times(r).times(r).eq(c));break}if(!a&&(L(l,e+1,0),l.times(l).times(l).eq(c))){r=l;break}o+=4,a=1}return p=!0,L(r,e,d.rounding,t)},x.decimalPlaces=x.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-m(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},x.dividedBy=x.div=function(e){return C(this,new this.constructor(e))},x.dividedToIntegerBy=x.divToInt=function(e){var t=this.constructor;return L(C(this,new t(e),0,1,1),t.precision,t.rounding)},x.equals=x.eq=function(e){return 0===this.cmp(e)},x.floor=function(){return L(new this.constructor(this),this.e+1,3)},x.greaterThan=x.gt=function(e){return this.cmp(e)>0},x.greaterThanOrEqualTo=x.gte=function(e){var t=this.cmp(e);return 1==t||0===t},x.hyperbolicCosine=x.cosh=function(){var e,t,n,r,a,i=this,o=i.constructor,l=new o(1);if(!i.isFinite())return new o(i.s?1/0:NaN);if(i.isZero())return l;n=o.precision,r=o.rounding,o.precision=n+Math.max(i.e,i.sd())+4,o.rounding=1,(a=i.d.length)<32?t=(1/G(4,e=Math.ceil(a/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=W(o,1,i.times(t),new o(1),!0);for(var u,s=e,c=new o(8);s--;)u=i.times(i),i=l.minus(u.times(c.minus(u.times(c))));return L(i,o.precision=n,o.rounding=r,!0)},x.hyperbolicSine=x.sinh=function(){var e,t,n,r,a=this,i=a.constructor;if(!a.isFinite()||a.isZero())return new i(a);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(a.e,a.sd())+4,i.rounding=1,(r=a.d.length)<3)a=W(i,2,a,a,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,a=W(i,2,a=a.times(1/G(5,e)),a,!0);for(var o,l=new i(5),u=new i(16),s=new i(20);e--;)o=a.times(a),a=a.times(l.plus(o.times(u.times(o).plus(s))))}return i.precision=t,i.rounding=n,L(a,t,n,!0)},x.hyperbolicTangent=x.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,C(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},x.inverseCosine=x.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),a=n.precision,i=n.rounding;return-1!==r?0===r?t.isNeg()?R(n,a,i):new n(0):new n(NaN):t.isZero()?R(n,a+4,i).times(.5):(n.precision=a+6,n.rounding=1,t=t.asin(),e=R(n,a+4,i).times(.5),n.precision=a,n.rounding=i,e.minus(t))},x.inverseHyperbolicCosine=x.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,p=!1,n=n.times(n).minus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},x.inverseHyperbolicSine=x.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,p=!1,n=n.times(n).plus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln())},x.inverseHyperbolicTangent=x.atanh=function(){var e,t,n,r,a=this,i=a.constructor;return a.isFinite()?a.e>=0?new i(a.abs().eq(1)?a.s/0:a.isZero()?a:NaN):(e=i.precision,t=i.rounding,r=a.sd(),Math.max(r,e)<2*-a.e-1?L(new i(a),e,t,!0):(i.precision=n=r-a.e,a=C(a.plus(1),new i(1).minus(a),n+e,1),i.precision=e+4,i.rounding=1,a=a.ln(),i.precision=e,i.rounding=t,a.times(.5))):new i(NaN)},x.inverseSine=x.asin=function(){var e,t,n,r,a=this,i=a.constructor;return a.isZero()?new i(a):(t=a.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t?0===t?((e=R(i,n+4,r).times(.5)).s=a.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,a=a.div(new i(1).minus(a.times(a)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,a.times(2)))},x.inverseTangent=x.atan=function(){var e,t,n,r,a,i,o,l,u,s=this,c=s.constructor,d=c.precision,f=c.rounding;if(s.isFinite()){if(s.isZero())return new c(s);if(s.abs().eq(1)&&d+4<=E)return(o=R(c,d+4,f).times(.25)).s=s.s,o}else{if(!s.s)return new c(NaN);if(d+4<=E)return(o=R(c,d+4,f).times(.5)).s=s.s,o}for(c.precision=l=d+10,c.rounding=1,e=n=Math.min(28,l/7+2|0);e;--e)s=s.div(s.times(s).plus(1).sqrt().plus(1));for(p=!1,t=Math.ceil(l/7),r=1,u=s.times(s),o=new c(s),a=s;-1!==e;)if(a=a.times(u),i=o.minus(a.div(r+=2)),a=a.times(u),void 0!==(o=i.plus(a.div(r+=2))).d[t])for(e=t;o.d[e]===i.d[e]&&e--;);return n&&(o=o.times(2<this.d.length-2},x.isNaN=function(){return!this.s},x.isNegative=x.isNeg=function(){return this.s<0},x.isPositive=x.isPos=function(){return this.s>0},x.isZero=function(){return!!this.d&&0===this.d[0]},x.lessThan=x.lt=function(e){return this.cmp(e)<0},x.lessThanOrEqualTo=x.lte=function(e){return this.cmp(e)<1},x.logarithm=x.log=function(e){var t,n,r,a,i,o,l,u,s=this.constructor,c=s.precision,d=s.rounding;if(null==e)e=new s(10),t=!0;else{if(n=(e=new s(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new s(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new s(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t)if(n.length>1)i=!0;else{for(a=n[0];a%10==0;)a/=10;i=1!==a}if(p=!1,o=U(this,l=c+5),r=t?D(s,l+10):U(e,l),S((u=C(o,r,l,1)).d,a=c,d))do{if(o=U(this,l+=10),r=t?D(s,l+10):U(e,l),u=C(o,r,l,1),!i){+M(u.d).slice(a+1,a+15)+1==1e14&&(u=L(u,c+1,0));break}}while(S(u.d,a+=10,d));return p=!0,L(u,c,d)},x.minus=x.sub=function(e){var t,n,r,a,i,o,l,u,s,c,d,f,h=this,g=h.constructor;if(e=new g(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new g(e.d||h.s!==e.s?h:NaN):e=new g(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(s=h.d,f=e.d,l=g.precision,u=g.rounding,!s[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!s[0])return new g(3===u?-0:0);e=new g(h)}return p?L(e,l,u):e}if(n=m(e.e/7),c=m(h.e/7),s=s.slice(),i=c-n){for((d=i<0)?(t=s,i=-i,o=f.length):(t=f,n=c,o=s.length),i>(r=Math.max(Math.ceil(l/7),o)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((d=(r=s.length)<(o=f.length))&&(o=r),r=0;r0;--r)s[o++]=0;for(r=f.length;r>i;){if(s[--r](o=(i=Math.ceil(l/7))>o?i+1:o+1)&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((o=s.length)-(a=c.length)<0&&(a=o,n=c,c=s,s=n),t=0;a;)t=(s[--a]=s[a]+c[a]+t)/_|0,s[a]%=_;for(t&&(s.unshift(t),++r),o=s.length;0==s[--o];)s.pop();return e.d=s,e.e=k(s,r),p?L(e,l,u):e},x.precision=x.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(h+e);return n.d?(t=j(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},x.round=function(){var e=this,t=e.constructor;return L(new t(e),e.e+1,t.rounding)},x.sine=x.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return W(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/G(5,n)),t=W(e,2,t,t);for(var a,i=new e(5),o=new e(16),l=new e(20);n--;)a=t.times(t),t=t.times(i.plus(a.times(o.times(a).minus(l))));return t}(r,q(r,n)),r.precision=e,r.rounding=t,L(l>2?n.neg():n,e,t,!0)):new r(NaN)},x.squareRoot=x.sqrt=function(){var e,t,n,r,a,i,o=this,l=o.d,u=o.e,s=o.s,c=o.constructor;if(1!==s||!l||!l[0])return new c(!s||s<0&&(!l||l[0])?NaN:l?o:1/0);for(p=!1,0==(s=Math.sqrt(+o))||s==1/0?(((t=M(l)).length+u)%2==0&&(t+="0"),s=Math.sqrt(t),u=m((u+1)/2)-(u<0||u%2),r=new c(t=s==1/0?"5e"+u:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new c(s.toString()),n=(u=c.precision)+3;;)if(r=(i=r).plus(C(o,i,n+2,1)).times(.5),M(i.d).slice(0,n)===(t=M(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(L(r,u+1,1),e=!r.times(r).eq(o));break}if(!a&&(L(i,u+1,0),i.times(i).eq(o))){r=i;break}n+=4,a=1}return p=!0,L(r,u,c.rounding,e)},x.tangent=x.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=C(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,L(2==l||4==l?n.neg():n,e,t,!0)):new r(NaN)},x.times=x.mul=function(e){var t,n,r,a,i,o,l,u,s,c=this,d=c.constructor,f=c.d,h=(e=new d(e)).d;if(e.s*=c.s,!(f&&f[0]&&h&&h[0]))return new d(!e.s||f&&!f[0]&&!h||h&&!h[0]&&!f?NaN:f&&h?0*e.s:e.s/0);for(n=m(c.e/7)+m(e.e/7),(u=f.length)<(s=h.length)&&(i=f,f=h,h=i,o=u,u=s,s=o),i=[],r=o=u+s;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,a=u+r;a>r;)l=i[a]+h[r]*f[a-r-1]+t,i[a--]=l%_|0,t=l/_|0;i[a]=(i[a]+t)%_|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=k(i,n),p?L(e,d.precision,d.rounding):e},x.toBinary=function(e,t){return X(this,2,e,t)},x.toDecimalPlaces=x.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(w(e,0,1e9),void 0===t?t=r.rounding:w(t,0,8),L(n,e+n.e+1,t))},x.toExponential=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=P(r,!0):(w(e,0,1e9),void 0===t?t=a.rounding:w(t,0,8),n=P(r=L(new a(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},x.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?n=P(a):(w(e,0,1e9),void 0===t?t=i.rounding:w(t,0,8),n=P(r=L(new i(a),e+a.e+1,t),!1,e+r.e+1)),a.isNeg()&&!a.isZero()?"-"+n:n},x.toFraction=function(e){var t,n,r,a,i,o,l,u,s,c,d,f,m=this,v=m.d,y=m.constructor;if(!v)return new y(m);if(s=n=new y(1),r=u=new y(0),o=(i=(t=new y(r)).e=j(v)-m.e-1)%7,t.d[0]=g(10,o<0?7+o:o),null==e)e=i>0?t:s;else{if(!(l=new y(e)).isInt()||l.lt(s))throw Error(h+l);e=l.gt(t)?i>0?t:s:l}for(p=!1,l=new y(M(v)),c=y.precision,y.precision=i=7*v.length*2;d=C(l,t,0,1,1),1!=(a=n.plus(d.times(r))).cmp(e);)n=r,r=a,a=s,s=u.plus(d.times(a)),u=a,a=t,t=l.minus(d.times(a)),l=a;return a=C(e.minus(n),r,0,1,1),u=u.plus(a.times(s)),n=n.plus(a.times(r)),u.s=s.s=m.s,f=C(s,r,i,1).minus(m).abs().cmp(C(u,n,i,1).minus(m).abs())<1?[s,r]:[u,n],y.precision=c,p=!0,f},x.toHexadecimal=x.toHex=function(e,t){return X(this,16,e,t)},x.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:w(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(p=!1,n=C(n,e,0,t,1).times(e),p=!0,L(n)):(e.s=n.s,n=e),n},x.toNumber=function(){return+this},x.toOctal=function(e,t){return X(this,8,e,t)},x.toPower=x.pow=function(e){var t,n,r,a,i,o,l=this,u=l.constructor,s=+(e=new u(e));if(!(l.d&&e.d&&l.d[0]&&e.d[0]))return new u(g(+l,s));if((l=new u(l)).eq(1))return l;if(r=u.precision,i=u.rounding,e.eq(1))return L(l,r,i);if((t=m(e.e/7))>=e.d.length-1&&(n=s<0?-s:s)<=9007199254740991)return a=F(u,l,n,r),e.s<0?new u(1).div(a):L(a,r,i);if((o=l.s)<0){if(tu.maxE+1||t0?o/0:0):(p=!1,u.rounding=l.s=1,n=Math.min(12,(t+"").length),(a=z(e.times(U(l,r+n)),r)).d&&S((a=L(a,r+5,1)).d,r,i)&&(t=r+10,+M((a=L(z(e.times(U(l,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(a=L(a,r+1,0))),a.s=o,p=!0,u.rounding=i,L(a,r,i))},x.toPrecision=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=P(r,r.e<=a.toExpNeg||r.e>=a.toExpPos):(w(e,1,1e9),void 0===t?t=a.rounding:w(t,0,8),n=P(r=L(new a(r),e,t),e<=r.e||r.e<=a.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},x.toSignificantDigits=x.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(w(e,1,1e9),void 0===t?t=n.rounding:w(t,0,8)),L(new n(this),e,t)},x.toString=function(){var e=this,t=e.constructor,n=P(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},x.truncated=x.trunc=function(){return L(new this.constructor(this),this.e+1,1)},x.valueOf=x.toJSON=function(){var e=this,t=e.constructor,n=P(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var C=function(){function e(e,t,n){var r,a=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+a,e[i]=r%n|0,a=r/n|0;return a&&e.unshift(a),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;)e.shift()}return function(r,a,i,l,u,s){var c,d,f,p,h,g,v,y,b,A,O,E,x,M,w,S,T,C,P,k,D=r.constructor,R=r.s==a.s?1:-1,j=r.d,I=a.d;if(!(j&&j[0]&&I&&I[0]))return new D(r.s&&a.s&&(j?!I||j[0]!=I[0]:I)?j&&0==j[0]||!I?0*R:R/0:NaN);for(s?(h=1,d=r.e-a.e):(s=_,h=7,d=m(r.e/h)-m(a.e/h)),P=I.length,T=j.length,A=(b=new D(R)).d=[],f=0;I[f]==(j[f]||0);f++);if(I[f]>(j[f]||0)&&d--,null==i?(M=i=D.precision,l=D.rounding):M=u?i+(r.e-a.e)+1:i,M<0)A.push(1),g=!0;else{if(M=M/h+2|0,f=0,1==P){for(p=0,I=I[0],M++;(f1&&(I=e(I,p,s),j=e(j,p,s),P=I.length,T=j.length),S=P,E=(O=j.slice(0,P)).length;E=s/2&&++C;do{p=0,(c=t(I,O,P,E))<0?(x=O[0],P!=E&&(x=x*s+(O[1]||0)),(p=x/C|0)>1?(p>=s&&(p=s-1),1==(c=t(v=e(I,p,s),O,y=v.length,E=O.length))&&(p--,n(v,P=10;p/=10)f++;b.e=f+d*h-1,L(b,u?i+b.e+1:i,l,g)}return b}}();function L(e,t,n,r){var a,i,o,l,u,s,c,d,f,h=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(a=1,l=d[0];l>=10;l/=10)a++;if((i=t-a)<0)i+=7,o=t,u=(c=d[f=0])/g(10,a-o-1)%10|0;else if((f=Math.ceil((i+1)/7))>=(l=d.length)){if(!r)break e;for(;l++<=f;)d.push(0);c=u=0,a=1,o=(i%=7)-7+1}else{for(c=l=d[f],a=1;l>=10;l/=10)a++;u=(o=(i%=7)-7+a)<0?0:c/g(10,a-o-1)%10|0}if(r=r||t<0||void 0!==d[f+1]||(o<0?c:c%g(10,a-o-1)),s=n<4?(u||r)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(i>0?o>0?c/g(10,a-o):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,s?(t-=e.e+1,d[0]=g(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=f,l=1,f--):(d.length=f+1,l=g(10,7-i),d[f]=o>0?(c/g(10,a-o)%g(10,o)|0)*l:0),s)for(;;){if(0==f){for(i=1,o=d[0];o>=10;o/=10)i++;for(o=d[0]+=l,l=1;o>=10;o/=10)l++;i!=l&&(e.e++,d[0]==_&&(d[0]=1));break}if(d[f]+=l,d[f]!=_)break;d[f--]=0,l=1}for(i=d.length;0===d[--i];)d.pop()}return p&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e0?i=i.charAt(0)+"."+i.slice(1)+I(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):a<0?(i="0."+I(-a-1)+i,n&&(r=n-o)>0&&(i+=I(r))):a>=o?(i+=I(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+I(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=I(r))),i}function k(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function D(e,t,n){if(t>O)throw p=!0,n&&(e.precision=n),Error("[DecimalError] Precision limit exceeded");return L(new e(c),t,1,!0)}function R(e,t,n){if(t>E)throw Error("[DecimalError] Precision limit exceeded");return L(new e(d),t,n,!0)}function j(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function I(e){for(var t="";e--;)t+="0";return t}function F(e,t,n,r){var a,i=new e(1),o=Math.ceil(r/7+4);for(p=!1;;){if(n%2&&Z((i=i.times(t)).d,o)&&(a=!0),0===(n=m(n/2))){n=i.d.length-1,a&&0===i.d[n]&&++i.d[n];break}Z((t=t.times(t)).d,o)}return p=!0,i}function N(e){return 1&e.d[e.d.length-1]}function B(e,t,n){for(var r,a=new e(t[0]),i=0;++i17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(p=!1,u=m):u=t,l=new f(.03125);e.e>-2;)e=e.times(l),d+=5;for(u+=r=Math.log(g(2,d))/Math.LN10*2+5|0,n=i=o=new f(1),f.precision=u;;){if(i=L(i.times(e),u,1),n=n.times(++c),M((l=o.plus(C(i,n,u,1))).d).slice(0,u)===M(o.d).slice(0,u)){for(a=d;a--;)o=L(o.times(o),u,1);if(null!=t)return f.precision=m,o;if(!(s<3&&S(o.d,u-r,h,s)))return L(o,f.precision=m,h,p=!0);f.precision=u+=10,n=i=l=new f(1),c=0,s++}o=l}}function U(e,t){var n,r,a,i,o,l,u,s,c,d,f,h=1,m=e,g=m.d,v=m.constructor,y=v.rounding,b=v.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(p=!1,c=b):c=t,v.precision=c+=10,r=(n=M(g)).charAt(0),!(Math.abs(i=m.e)<15e14))return s=D(v,c+2,b).times(i+""),m=U(new v(r+"."+n.slice(1)),c-10).plus(s),v.precision=b,null==t?L(m,b,y,p=!0):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=M((m=m.times(e)).d)).charAt(0),h++;for(i=m.e,r>1?(m=new v("0."+n),i++):m=new v(r+"."+n.slice(1)),d=m,u=o=m=C(m.minus(1),m.plus(1),c,1),f=L(m.times(m),c,1),a=3;;){if(o=L(o.times(f),c,1),M((s=u.plus(C(o,new v(a),c,1))).d).slice(0,c)===M(u.d).slice(0,c)){if(u=u.times(2),0!==i&&(u=u.plus(D(v,c+2,b).times(i+""))),u=C(u,new v(h),c,1),null!=t)return v.precision=b,u;if(!S(u.d,c-10,y,l))return L(u,v.precision=b,y,p=!0);v.precision=c+=10,s=o=m=C(d.minus(1),d.plus(1),c,1),f=L(m.times(m),c,1),a=l=1}u=s,a+=2}}function V(e){return String(e.s*e.s/0)}function H(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(a=t.length;48===t.charCodeAt(a-1);--a);if(t=t.slice(r,a)){if(a-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),re.constructor.maxE?(e.d=null,e.e=NaN):e.e0?(s=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),l=(o=t.indexOf("."))>=0,r=e.constructor,l&&(o=(u=(t=t.replace(".","")).length)-o,a=F(r,new r(n),o,2*o)),o=d=(c=T(t,n,_)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=k(c,d),e.d=c,p=!1,l&&(e=C(e,a,4*u)),s&&(e=e.times(Math.abs(s)<54?g(2,s):i.pow(2,s))),p=!0,e)}function W(e,t,n,r,a){var i,o,l,u,s=e.precision,c=Math.ceil(s/7);for(p=!1,u=n.times(n),l=new e(r);;){if(o=C(l.times(u),new e(t++*t++),s,1),l=a?r.plus(o):r.minus(o),r=C(o.times(u),new e(t++*t++),s,1),void 0!==(o=l.plus(r)).d[c]){for(i=c;o.d[i]===l.d[i]&&i--;);if(-1==i)break}i=l,l=r,r=o,o=i}return p=!0,o.d.length=c+1,o}function G(e,t){for(var n=e;--t;)n*=e;return n}function q(e,t){var n,r=t.s<0,a=R(e,e.precision,1),i=a.times(.5);if((t=t.abs()).lte(i))return l=r?4:1,t;if((n=t.divToInt(a)).isZero())l=r?3:2;else{if((t=t.minus(n.times(a))).lte(i))return l=N(n)?r?2:3:r?4:1,t;l=N(n)?r?1:4:r?3:2}return t.minus(a).abs()}function X(e,t,n,r){var a,i,l,u,c,d,f,p,h,m=e.constructor,g=void 0!==n;if(g?(w(n,1,1e9),void 0===r?r=m.rounding:w(r,0,8)):(n=m.precision,r=m.rounding),e.isFinite()){for(g?(a=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):a=t,(l=(f=P(e)).indexOf("."))>=0&&(f=f.replace(".",""),(h=new m(1)).e=f.length-l,h.d=T(P(h),10,a),h.e=h.d.length),i=c=(p=T(f,10,a)).length;0==p[--c];)p.pop();if(p[0]){if(l<0?i--:((e=new m(e)).d=p,e.e=i,p=(e=C(e,h,n,r,0,a)).d,i=e.e,d=o),l=p[n],u=a/2,d=d||void 0!==p[n+1],d=r<4?(void 0!==l||d)&&(0===r||r===(e.s<0?3:2)):l>u||l===u&&(4===r||d||6===r&&1&p[n-1]||r===(e.s<0?8:7)),p.length=n,d)for(;++p[--n]>a-1;)p[n]=0,n||(++i,p.unshift(1));for(c=p.length;!p[c-1];--c);for(l=0,f="";l1)if(16==t||8==t){for(l=16==t?4:3,--c;c%l;c++)f+="0";for(c=(p=T(f,a,t)).length;!p[c-1];--c);for(l=1,f="1.";lc)for(i-=c;i--;)f+="0";else it)return e.length=t,!0}function K(e){return new this(e).abs()}function J(e){return new this(e).acos()}function Q(e){return new this(e).acosh()}function $(e,t){return new this(e).plus(t)}function ee(e){return new this(e).asin()}function te(e){return new this(e).asinh()}function ne(e){return new this(e).atan()}function re(e){return new this(e).atanh()}function ae(e,t){e=new this(e),t=new this(t);var n,r=this.precision,a=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?R(this,r,a):new this(0)).s=e.s:!e.d||t.isZero()?(n=R(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(C(e,t,i,1)),t=R(this,i,1),this.precision=r,this.rounding=a,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(C(e,t,i,1)):(n=R(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function ie(e){return new this(e).cbrt()}function oe(e){return L(e=new this(e),e.e+1,2)}function le(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");var t,n,r,a=!0===e.defaults,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(h+n+": "+r);this[n]=r}if(n="crypto",a&&(this[n]=f[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(h+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function ue(e){return new this(e).cos()}function se(e){return new this(e).cosh()}function ce(e,t){return new this(e).div(t)}function de(e){return new this(e).exp()}function fe(e){return L(e=new this(e),e.e+1,3)}function pe(){var e,t,n=new this(0);for(p=!1,e=0;e=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:l[i++]=a%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(r*=4);i=214e7?crypto.randomBytes(4).copy(t,i):(l.push(a%1e7),i+=4);i=r/4}else for(;i=10;a/=10)r++;r<7&&(n-=7-r)}return o.e=n,o.d=l,o}function Me(e){return L(e=new this(e),e.e+1,this.rounding)}function we(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Se(e){return new this(e).sin()}function Te(e){return new this(e).sinh()}function Ce(e){return new this(e).sqrt()}function Le(e,t){return new this(e).sub(t)}function Pe(e){return new this(e).tan()}function ke(e){return new this(e).tanh()}function De(e){return L(e=new this(e),e.e+1,1)}(i=function e(t){var n,r,a;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,e instanceof i)return a.s=e.s,void(p?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e=10;n/=10)t++;return void(p?t>i.maxE?(a.e=NaN,a.d=null):t0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e),this.opts=t}return Object(a.a)(e,[{key:"equals",value:function(e){return this===e||this.constructor===e.constructor&&Object(i.a)(this.opts,e.opts)}},{key:"getShaders",value:function(e){return null}},{key:"getSubLayerProps",value:function(e){var t=e.constructor.defaultProps,n=void 0===t?{}:t,r={updateTriggers:{}};for(var a in n)if(a in this.props){var i=n[a],o=this.props[a];r[a]=o,i&&"accessor"===i.type&&(r.updateTriggers[a]=this.props.updateTriggers[a],"function"==typeof o&&(r[a]=this.getSubLayerAccessor(o,!0)))}return r}},{key:"initializeState",value:function(e,t){}},{key:"updateState",value:function(e,t){}},{key:"draw",value:function(e,t){}},{key:"finalizeState",value:function(e){}}]),e}()},function(e,t,n){"use strict";(function(e){var t=n(1215),r=n(57),a=n(322);function i(e,t){var n=t.extension,i=t.target,o=t.target2,l=a.b[n];Object(r.a)(l);for(var u=l.meta,s=(void 0===u?{}:u).suffix,c=void 0===s?"":s,d=e.getExtension(n),f=function(){var t=h[p],n="".concat(t).concat(c),r=null;"meta"===t||"function"==typeof e[t]||(d&&"function"==typeof d[n]?r=function(){return d[n].apply(d,arguments)}:"function"==typeof l[t]&&(r=l[t].bind(i))),r&&(i[t]=r,o[t]=r)},p=0,h=Object.keys(l);p0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e);var n=t.attributes,a=void 0===n?{}:n;this.typedArrayManager=o.a,this.indexStarts=null,this.vertexStarts=null,this.vertexCount=0,this.instanceCount=0,this.attributes={},this._attributeDefs=a,this.opts=t,this.updateGeometry(t),Object.seal(this)}return Object(a.a)(e,[{key:"updateGeometry",value:function(e){Object.assign(this.opts,e);var t=this.opts,n=t.data,r=t.buffers,a=void 0===r?{}:r,i=t.getGeometry,o=t.geometryBuffer,u=t.positionFormat,s=t.dataChanged,c=t.normalize,d=void 0===c||c;if(this.data=n,this.getGeometry=i,this.positionSize=o&&o.size||("XY"===u?2:3),this.buffers=a,this.normalize=d,o&&(Object(l.a)(n.startIndices,"binary data missing startIndices"),this.getGeometry=this.getGeometryFromBuffer(o),d||(a.positions=o)),this.geometryBuffer=a.positions,Array.isArray(s)){var f=!0,p=!1,h=void 0;try{for(var m,g=s[Symbol.iterator]();!(f=(m=g.next()).done);f=!0){var v=m.value;this._rebuildGeometry(v)}}catch(e){p=!0,h=e}finally{try{f||null==g.return||g.return()}finally{if(p)throw h}}}else this._rebuildGeometry()}},{key:"updatePartialGeometry",value:function(e){var t=e.startRow,n=e.endRow;this._rebuildGeometry({startRow:t,endRow:n})}},{key:"normalizeGeometry",value:function(e){return e}},{key:"updateGeometryAttributes",value:function(e,t,n){throw new Error("Not implemented")}},{key:"getGeometrySize",value:function(e){throw new Error("Not implemented")}},{key:"getGeometryFromBuffer",value:function(e){var t=e.value||e;return Object(l.a)(ArrayBuffer.isView(t),"cannot read geometries"),Object(i.b)(t,{size:this.positionSize,offset:e.offset,stride:e.stride,startIndices:this.data.startIndices})}},{key:"_allocate",value:function(e,t){var n=this.attributes,r=this.buffers,a=this._attributeDefs,i=this.typedArrayManager;for(var o in a)if(o in r)i.release(n[o]),n[o]=null;else{var l=a[o];l.copy=t,n[o]=i.allocate(n[o],e,l)}}},{key:"_forEachGeometry",value:function(e,t,n){var r=this.data,a=this.getGeometry,o=Object(i.a)(r,t,n),l=o.iterable,u=o.objectInfo,s=!0,c=!1,d=void 0;try{for(var f,p=l[Symbol.iterator]();!(s=(f=p.next()).done);s=!0){var h=f.value;u.index++,e(a(h,u),u.index)}}catch(e){c=!0,d=e}finally{try{s||null==p.return||p.return()}finally{if(c)throw d}}}},{key:"_rebuildGeometry",value:function(e){var t=this;if(this.data&&this.getGeometry){var n=this.indexStarts,r=this.vertexStarts,a=this.instanceCount,i=this.data,o=this.geometryBuffer,l=e||{},s=l.startRow,c=void 0===s?0:s,d=l.endRow,f=void 0===d?1/0:d,p={};if(e||(n=[0],r=[0]),this.normalize||!o)this._forEachGeometry((function(e,n){e=t.normalizeGeometry(e),p[n]=e,r[n+1]=r[n]+t.getGeometrySize(e)}),c,f),a=r[r.length-1];else if(o.buffer instanceof u.a){var h=o.stride||4*this.positionSize;r=i.startIndices,a=r[i.length]||o.buffer.byteLength/h}else{var m=o.value||o,g=o.stride/m.BYTES_PER_ELEMENT||this.positionSize;r=i.startIndices,a=r[i.length]||m.length/g}this._allocate(a,Boolean(e)),this.indexStarts=n,this.vertexStarts=r,this.instanceCount=a;var v={};this._forEachGeometry((function(e,i){e=p[i]||e,v.vertexStart=r[i],v.indexStart=n[i];var o=i0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object(r.a)(this,n),e=t.call(this,-0,-0,-0),1===arguments.length&&Object(s.f)(a)?e.copy(a):(s.b.debug&&(Object(c.a)(a),Object(c.a)(i),Object(c.a)(o)),e[0]=a,e[1]=i,e[2]=o),e}return Object(a.a)(n,null,[{key:"ZERO",get:function(){return m.ZERO=m.ZERO||Object.freeze(new n(0,0,0,0))}}]),Object(a.a)(n,[{key:"set",value:function(e,t,n){return this[0]=e,this[1]=t,this[2]=n,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this.check()}},{key:"fromObject",value:function(e){return s.b.debug&&(Object(c.a)(e.x),Object(c.a)(e.y),Object(c.a)(e.z)),this[0]=e.x,this[1]=e.y,this[2]=e.z,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e.z=this[2],e}},{key:"angle",value:function(e){return d.b(this,e)}},{key:"cross",value:function(e){return d.d(this,this,e),this.check()}},{key:"rotateX",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?h:n;return d.m(this,this,r,t),this.check()}},{key:"rotateY",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?h:n;return d.n(this,this,r,t),this.check()}},{key:"rotateZ",value:function(e){var t=e.radians,n=e.origin,r=void 0===n?h:n;return d.o(this,this,r,t),this.check()}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return d.s(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return Object(f.c)(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return d.r(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return Object(f.b)(this,this,e),this.check()}},{key:"transformByQuaternion",value:function(e){return d.t(this,this,e),this.check()}},{key:"ELEMENTS",get:function(){return 3}},{key:"z",get:function(){return this[2]},set:function(e){this[2]=Object(c.a)(e)}}]),n}(u.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(28),a=n(11),i=n(12),o=n(18),l=n(19),u=n(14),s=n(71),c=n(472),d=n(190),f=n(22),p=n(45),h=n(31),m=n(64);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var a=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var v=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),y=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),b=Object.freeze({COL0ROW0:0,COL0ROW1:1,COL0ROW2:2,COL0ROW3:3,COL1ROW0:4,COL1ROW1:5,COL1ROW2:6,COL1ROW3:7,COL2ROW0:8,COL2ROW1:9,COL2ROW2:10,COL2ROW3:11,COL3ROW0:12,COL3ROW1:13,COL3ROW2:14,COL3ROW3:15}),A={},_=function(e){Object(o.a)(n,e);var t=g(n);function n(e){var r;return Object(a.a)(this,n),r=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),1===arguments.length&&Array.isArray(e)?r.copy(e):r.identity(),r}return Object(i.a)(n,[{key:"INDICES",get:function(){return b}},{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}}],[{key:"IDENTITY",get:function(){return A.IDENTITY=A.IDENTITY||Object.freeze(new n(v)),A.IDENTITY}},{key:"ZERO",get:function(){return A.ZERO=A.ZERO||Object.freeze(new n(y)),A.ZERO}}]),Object(i.a)(n,[{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}},{key:"set",value:function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m){return this[0]=e,this[1]=t,this[2]=n,this[3]=r,this[4]=a,this[5]=i,this[6]=o,this[7]=l,this[8]=u,this[9]=s,this[10]=c,this[11]=d,this[12]=f,this[13]=p,this[14]=h,this[15]=m,this.check()}},{key:"setRowMajor",value:function(e,t,n,r,a,i,o,l,u,s,c,d,f,p,h,m){return this[0]=e,this[1]=a,this[2]=u,this[3]=f,this[4]=t,this[5]=i,this[6]=s,this[7]=p,this[8]=n,this[9]=o,this[10]=c,this[11]=h,this[12]=r,this[13]=l,this[14]=d,this[15]=m,this.check()}},{key:"toRowMajor",value:function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}},{key:"identity",value:function(){return this.copy(v)}},{key:"fromQuaternion",value:function(e){return f.c(this,e),this.check()}},{key:"frustum",value:function(e){var t=e.left,r=e.right,a=e.bottom,i=e.top,o=e.near,l=e.far;return l===1/0?n._computeInfinitePerspectiveOffCenter(this,t,r,a,i,o):f.d(this,t,r,a,i,o,l),this.check()}},{key:"lookAt",value:function(e,t,n){if(1===arguments.length){var r=e;e=r.eye,t=r.center,n=r.up}return t=t||[0,0,0],n=n||[0,1,0],f.g(this,e,t,n),this.check()}},{key:"ortho",value:function(e){var t=e.left,n=e.right,r=e.bottom,a=e.top,i=e.near,o=void 0===i?.1:i,l=e.far,u=void 0===l?500:l;return f.i(this,t,n,r,a,o,u),this.check()}},{key:"orthographic",value:function(e){var t=e.fovy,r=void 0===t?45*Math.PI/180:t,a=e.aspect,i=void 0===a?1:a,o=e.focalDistance,l=void 0===o?1:o,u=e.near,s=void 0===u?.1:u,c=e.far,d=void 0===c?500:c;if(r>2*Math.PI)throw Error("radians");var f=r/2,p=l*Math.tan(f),h=p*i;return(new n).ortho({left:-h,right:h,bottom:-p,top:p,near:s,far:d})}},{key:"perspective",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fovy,n=void 0===t?void 0:t,r=e.fov,a=void 0===r?45*Math.PI/180:r,i=e.aspect,o=void 0===i?1:i,l=e.near,u=void 0===l?.1:l,s=e.far,c=void 0===s?500:s;if((n=n||a)>2*Math.PI)throw Error("radians");return f.j(this,n,o,u,c),this.check()}},{key:"determinant",value:function(){return f.a(this)}},{key:"getScale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}},{key:"getTranslation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}},{key:"getRotation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getScale(t||[-0,-0,-0]),r=1/n[0],a=1/n[1],i=1/n[2];return e[0]=this[0]*r,e[1]=this[1]*a,e[2]=this[2]*i,e[3]=0,e[4]=this[4]*r,e[5]=this[5]*a,e[6]=this[6]*i,e[7]=0,e[8]=this[8]*r,e[9]=this[9]*a,e[10]=this[10]*i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{key:"getRotationMatrix3",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[-0,-0,-0,-0,-0,-0,-0,-0,-0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getScale(t||[-0,-0,-0]),r=1/n[0],a=1/n[1],i=1/n[2];return e[0]=this[0]*r,e[1]=this[1]*a,e[2]=this[2]*i,e[3]=this[4]*r,e[4]=this[5]*a,e[5]=this[6]*i,e[6]=this[8]*r,e[7]=this[9]*a,e[8]=this[10]*i,e}},{key:"transpose",value:function(){return f.q(this,this),this.check()}},{key:"invert",value:function(){return f.f(this,this),this.check()}},{key:"multiplyLeft",value:function(e){return f.h(this,e,this),this.check()}},{key:"multiplyRight",value:function(e){return f.h(this,this,e),this.check()}},{key:"rotateX",value:function(e){return f.l(this,this,e),this.check()}},{key:"rotateY",value:function(e){return f.m(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return f.n(this,this,e),this.check()}},{key:"rotateXYZ",value:function(e){var t=Object(r.a)(e,3),n=t[0],a=t[1],i=t[2];return this.rotateX(n).rotateY(a).rotateZ(i)}},{key:"rotateAxis",value:function(e,t){return f.k(this,this,e,t),this.check()}},{key:"scale",value:function(e){return Array.isArray(e)?f.o(this,this,e):f.o(this,this,[e,e,e]),this.check()}},{key:"translate",value:function(e){return f.p(this,this,e),this.check()}},{key:"transform",value:function(e,t){return 4===e.length?(t=m.n(t||[-0,-0,-0,-0],e,this),Object(s.b)(t,4),t):this.transformAsPoint(e,t)}},{key:"transformAsPoint",value:function(e,t){switch(e.length){case 2:t=p.j(t||[-0,-0],e,this);break;case 3:t=h.s(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Object(s.b)(t,e.length),t}},{key:"transformAsVector",value:function(e,t){switch(e.length){case 2:t=Object(d.a)(t||[-0,-0],e,this);break;case 3:t=Object(d.c)(t||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return Object(s.b)(t,e.length),t}},{key:"makeRotationX",value:function(e){return this.identity().rotateX(e)}},{key:"makeTranslation",value:function(e,t,n){return this.identity().translate([e,t,n])}},{key:"transformPoint",value:function(e,t){return Object(s.c)("Matrix4.transformPoint","3.0"),this.transformAsPoint(e,t)}},{key:"transformVector",value:function(e,t){return Object(s.c)("Matrix4.transformVector","3.0"),this.transformAsPoint(e,t)}},{key:"transformDirection",value:function(e,t){return Object(s.c)("Matrix4.transformDirection","3.0"),this.transformAsVector(e,t)}}],[{key:"_computeInfinitePerspectiveOffCenter",value:function(e,t,n,r,a,i){var o=2*i/(n-t),l=2*i/(a-r),u=(n+t)/(n-t),s=(a+r)/(a-r),c=-2*i;return e[0]=o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=u,e[9]=s,e[10]=-1,e[11]=-1,e[12]=0,e[13]=0,e[14]=c,e[15]=0,e}}]),n}(c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(18),u=n(1902),s=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"getGeometry",value:function(e){return new u.a}},{key:"draw",value:function(e){var t=e.uniforms,n=this.props,r=n.elevationScale,a=n.extruded,i=n.offset,o=n.coverage,l=n.cellSize,u=n.angle;this.state.model.setUniforms(Object.assign({},t,{radius:l/2,angle:u,offset:i,extruded:a,coverage:o,elevationScale:r,edgeDistance:1,isWireframe:!1})).draw()}}]),t}(n(453).a);s.layerName="GridCellLayer",s.defaultProps={cellSize:{type:"number",min:0,value:1e3},offset:{type:"array",min:0,value:[1,1]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(11),a=n(12),i=n(19),o=n(14),l=n(18),u=n(62),s=n(137),c=n(643),d=n(299),f=n(255),p=n(355),h=n(473),m={stroked:!0,filled:!0,extruded:!1,elevationScale:1,wireframe:!1,_normalize:!0,lineWidthUnits:"meters",lineWidthScale:1,lineWidthMinPixels:0,lineWidthMaxPixels:Number.MAX_SAFE_INTEGER,lineJointRounded:!1,lineMiterLimit:4,getPolygon:{type:"accessor",value:function(e){return e.polygon}},getFillColor:{type:"accessor",value:[0,0,0,255]},getLineColor:{type:"accessor",value:[0,0,0,255]},getLineWidth:{type:"accessor",value:1},getElevation:{type:"accessor",value:1e3},material:!0},g=function(e){function t(){return Object(r.a)(this,t),Object(i.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(a.a)(t,[{key:"initializeState",value:function(){this.state={paths:[]},this.props.getLineDashArray&&u.a.removed("getLineDashArray","PathStyleExtension")()}},{key:"updateState",value:function(e){var t=this,n=(e.oldProps,e.props,e.changeFlags),r=n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon);if(r&&Array.isArray(n.dataChanged)){var a=this.state.paths.slice(),i=n.dataChanged.map((function(e){return Object(h.a)({data:a,getIndex:function(e){return e.__source.index},dataRange:e,replace:t._getPaths(e)})}));this.setState({paths:a,pathsDiff:i})}else r&&this.setState({paths:this._getPaths(),pathsDiff:null})}},{key:"_getPaths",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.data,r=t.getPolygon,a=t.positionFormat,i=t._normalize,o=[],l="XY"===a?2:3,u=e.startRow,c=e.endRow,d=Object(s.a)(n,u,c),f=d.iterable,h=d.objectInfo,m=!0,g=!1,v=void 0;try{for(var y,b=f[Symbol.iterator]();!(m=(y=b.next()).done);m=!0){var A=y.value;h.index++;var _=r(A,h);i&&(_=p.b(_,l));var O=_,E=O.holeIndices,x=_.positions||_;if(E)for(var M=0;M<=E.length;M++){var w=x.slice(E[M-1]||0,E[M]||x.length);o.push(this.getSubLayerRow({path:w},A,h.index))}else o.push(this.getSubLayerRow({path:x},A,h.index))}}catch(e){g=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(g)throw v}}return o}},{key:"renderLayers",value:function(){var e=this.props,t=e.data,n=e._dataDiff,r=e.stroked,a=e.filled,i=e.extruded,o=e.wireframe,l=e._normalize,u=e.elevationScale,s=e.transitions,c=e.positionFormat,p=this.props,h=p.lineWidthUnits,m=p.lineWidthScale,g=p.lineWidthMinPixels,v=p.lineWidthMaxPixels,y=p.lineJointRounded,b=p.lineMiterLimit,A=p.lineDashJustified,_=this.props,O=_.getFillColor,E=_.getLineColor,x=_.getLineWidth,M=_.getLineDashArray,w=_.getElevation,S=_.getPolygon,T=_.updateTriggers,C=_.material,L=this.state,P=L.paths,k=L.pathsDiff,D=this.getSubLayerClass("fill",d.a),R=this.getSubLayerClass("stroke",f.a),j=this.shouldRenderSubLayer("fill",P)&&new D({_dataDiff:n,extruded:i,elevationScale:u,filled:a,wireframe:o,_normalize:l,getElevation:w,getFillColor:O,getLineColor:E,material:C,transitions:s},this.getSubLayerProps({id:"fill",updateTriggers:{getPolygon:T.getPolygon,getElevation:T.getElevation,getFillColor:T.getFillColor,getLineColor:T.getLineColor}}),{data:t,positionFormat:c,getPolygon:S});return[!i&&j,!i&&r&&this.shouldRenderSubLayer("stroke",P)&&new R({_dataDiff:k&&function(){return k},widthUnits:h,widthScale:m,widthMinPixels:g,widthMaxPixels:v,rounded:y,miterLimit:b,dashJustified:A,_pathType:"loop",transitions:s&&{getWidth:s.getLineWidth,getColor:s.getLineColor,getPath:s.getPolygon},getColor:this.getSubLayerAccessor(E),getWidth:this.getSubLayerAccessor(x),getDashArray:this.getSubLayerAccessor(M)},this.getSubLayerProps({id:"stroke",updateTriggers:{getWidth:T.getLineWidth,getColor:T.getLineColor,getDashArray:T.getLineDashArray}}),{data:P,positionFormat:c,getPath:function(e){return e.path}}),i&&j]}}]),t}(c.a);g.layerName="PolygonLayer",g.defaultProps=m},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,r="object"==typeof self&&self&&self.Object===Object&&self,a=n||r||Function("return this")();function i(e,t){for(var n=-1,r=t.length,a=e.length;++n-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&l.call(e,"callee")&&(!c.call(e,"callee")||"[object Arguments]"==u.call(e))}(e)||!!(d&&e&&e[d])}var p=Array.isArray;e.exports=function(e){return(e?e.length:0)?function e(t,n,r,a,o){var l=-1,u=t.length;for(r||(r=f),o||(o=[]);++l0&&r(s)?n>1?e(s,n-1,r,a,o):i(o,s):a||(o[o.length]=s)}return o}(e,1/0):[]}}).call(this,n(67))},function(e,t,n){"use strict";var r=n(3),a=n(80);Object.defineProperty(t,"__esModule",{value:!0}),t.addNewLayersToSplitMap=function(e,t){var n=Array.isArray(t)?t:[t];if(!e.length||!n.length)return e;return e.map((function(e){return c(c({},e),{},{layers:c(c({},e.layers),n.reduce((function(t,n){return n.id in e.layers||!n.config.isVisible?t:c(c({},t),{},(0,o.default)({},n.id,n.config.isVisible))}),{}))})}))},t.removeLayerFromSplitMaps=function(e,t){if(!e.length)return e;return e.map((function(e){var n=e.layers,r=t.id,a=(n[r],(0,i.default)(n,[r].map(u)));return c(c({},e),{},{layers:a})}))},t.getInitialMapLayersForSplitMap=d,t.computeSplitMapLayers=function(e){var t=d(e);return[{layers:t},{layers:(0,l.default)(t)}]};var i=r(n(72)),o=r(n(4)),l=r(n(176));function u(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t ").concat(n[1].defaultName," arc"),{props:[r]}}}]),n}(f.default);t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editShader=function(e,t,n,a){if(!e.includes(n))return r.console.error("Cannot edit ".concat(t," layer shader")),e;return e.replace(n,a)};var r=n(61)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate=function(e,t){switch(t){case o.AGGREGATION_TYPES.average:return(0,i.mean)(e);case o.AGGREGATION_TYPES.countUnique:return Object.keys(e.reduce((function(e,t){return e[t]=e[t]||0,e[t]+=1,e}),{})).length;case o.AGGREGATION_TYPES.mode:return c(e);case o.AGGREGATION_TYPES.maximum:return(0,i.max)(e);case o.AGGREGATION_TYPES.minimum:return(0,i.min)(e);case o.AGGREGATION_TYPES.median:return(0,i.median)(e);case o.AGGREGATION_TYPES.stdev:return(0,i.deviation)(e);case o.AGGREGATION_TYPES.sum:return(0,i.sum)(e);case o.AGGREGATION_TYPES.variance:return(0,i.variance)(e);default:return e.length}},t.getMode=t.getFrequency=void 0;var a=r(n(4)),i=n(113),o=n(39);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=t[n]?e:n}),Object.keys(t)[0])};t.getMode=c},function(e,t){e.exports=a,e.exports.parse=a,e.exports.stringify=function e(t){"Feature"===t.type&&(t=t.geometry);function n(e){return e.join(" ")}function r(e){return e.map(n).join(", ")}function a(e){return e.map(r).map(i).join(", ")}function i(e){return"("+e+")"}switch(t.type){case"Point":return"POINT ("+n(t.coordinates)+")";case"LineString":return"LINESTRING ("+r(t.coordinates)+")";case"Polygon":return"POLYGON ("+a(t.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+r(t.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+(t.coordinates.map(a).map(i).join(", ")+")");case"MultiLineString":return"MULTILINESTRING ("+a(t.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+t.geometries.map(e).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}};var n=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,r=new RegExp("^"+n.source+"(\\s"+n.source+"){1,}");function a(e){var t,n=e.split(";"),a=n.pop(),i=(n.shift()||"").split("=").pop(),o=0;function l(e){var t=a.substring(o).match(e);return t?(o+=t[0].length,t[0]):null}function u(){l(/^\s*/)}function s(){u();for(var e,t=0,n=[],a=[n],i=n;e=l(/^(\()/)||l(/^(\))/)||l(/^(,)/)||l(r);){if("("===e)a.push(i),i=[],a[a.length-1].push(i),t++;else if(")"===e){if(0===i.length)return null;if(!(i=a.pop()))return null;if(0===--t)break}else if(","===e)i=[],a[a.length-1].push(i);else{if(e.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(i,e.split(/\s/g).map(parseFloat))}u()}return 0!==t?null:n}function c(){for(var e,t,n=[];t=l(r)||l(/^(,)/);)","===t?(n.push(e),e=[]):t.split(/\s/g).some(isNaN)||(e||(e=[]),Array.prototype.push.apply(e,t.split(/\s/g).map(parseFloat))),u();return e?(n.push(e),n.length?n:null):null}function d(){return function(){if(!l(/^(point(\sz)?)/i))return null;if(u(),!l(/^(\()/))return null;var e=c();return e?(u(),l(/^(\))/)?{type:"Point",coordinates:e[0]}:null):null}()||function(){if(!l(/^(linestring(\sz)?)/i))return null;if(u(),!l(/^(\()/))return null;var e=c();return e&&l(/^(\))/)?{type:"LineString",coordinates:e}:null}()||function(){if(!l(/^(polygon(\sz)?)/i))return null;u();var e=s();return e?{type:"Polygon",coordinates:e}:null}()||function(){if(!l(/^(multipoint)/i))return null;u();var e=a.substring(a.indexOf("(")+1,a.length-1).replace(/\(/g,"").replace(/\)/g,"");a="MULTIPOINT ("+e+")";var t=s();return t?(u(),{type:"MultiPoint",coordinates:t}):null}()||function(){if(!l(/^(multilinestring)/i))return null;u();var e=s();return e?(u(),{type:"MultiLineString",coordinates:e}):null}()||function(){if(!l(/^(multipolygon)/i))return null;u();var e=s();return e?{type:"MultiPolygon",coordinates:e}:null}()||function(){var e,t=[];if(!l(/^(geometrycollection)/i))return null;if(u(),!l(/^(\()/))return null;for(;e=d();)t.push(e),u(),l(/^(,)/),u();return l(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}()}return(t=d())&&i.match(/\d+/)&&(t.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+i}}),t}},function(e,t,n){"use strict";var r=n(485),a=n(65),i=n(34);function o(e){return e.innerRadius}function l(e){return e.outerRadius}function u(e){return e.startAngle}function s(e){return e.endAngle}function c(e){return e&&e.padAngle}function d(e,t,n,r,a,o,l,u){var s=n-e,c=r-t,d=l-a,f=u-o,p=f*s-d*c;if(!(p*pP*P+k*k&&(M=S,w=T),{cx:M,cy:w,x01:-d,y01:-f,x11:M*(a/O-1),y11:w*(a/O-1)}}t.a=function(){var e=o,t=l,n=Object(a.a)(0),p=null,h=u,m=s,g=c,v=null;function y(){var a,o,l=+e.apply(this,arguments),u=+t.apply(this,arguments),s=h.apply(this,arguments)-i.g,c=m.apply(this,arguments)-i.g,y=Object(i.a)(c-s),b=c>s;if(v||(v=a=Object(r.a)()),ui.f)if(y>i.m-i.f)v.moveTo(u*Object(i.e)(s),u*Object(i.k)(s)),v.arc(0,0,u,s,c,!b),l>i.f&&(v.moveTo(l*Object(i.e)(c),l*Object(i.k)(c)),v.arc(0,0,l,c,s,b));else{var A,_,O=s,E=c,x=s,M=c,w=y,S=y,T=g.apply(this,arguments)/2,C=T>i.f&&(p?+p.apply(this,arguments):Object(i.l)(l*l+u*u)),L=Object(i.i)(Object(i.a)(u-l)/2,+n.apply(this,arguments)),P=L,k=L;if(C>i.f){var D=Object(i.c)(C/l*Object(i.k)(T)),R=Object(i.c)(C/u*Object(i.k)(T));(w-=2*D)>i.f?(x+=D*=b?1:-1,M-=D):(w=0,x=M=(s+c)/2),(S-=2*R)>i.f?(O+=R*=b?1:-1,E-=R):(S=0,O=E=(s+c)/2)}var j=u*Object(i.e)(O),I=u*Object(i.k)(O),F=l*Object(i.e)(M),N=l*Object(i.k)(M);if(L>i.f){var B,z=u*Object(i.e)(E),U=u*Object(i.k)(E),V=l*Object(i.e)(x),H=l*Object(i.k)(x);if(yi.f?k>i.f?(A=f(V,H,j,I,u,k,b),_=f(z,U,F,N,u,k,b),v.moveTo(A.cx+A.x01,A.cy+A.y01),ki.f&&w>i.f?P>i.f?(A=f(F,N,z,U,l,-P,b),_=f(j,I,V,H,l,-P,b),v.lineTo(A.cx+A.x01,A.cy+A.y01),P1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,a){var i=t[a],o=n?"".concat(n,".").concat(a):a;return"string"==typeof i?r[o]=i:Object.assign(r,e(i,o)),r}),{})};t.flattenMessages=s;t.mergeMessages=function(e,t){if(!(0,i.isObject)(t)||!(0,i.isObject)(t.en))return o.console.error("message should be an object and contain at least the `en` translation. Read more at https://docs.kepler.gl/docs/api-reference/localization"),e;var n=s(t.en);return Object.keys(e).reduce((function(r,i){return u(u({},r),{},(0,a.default)({},i,"en"===i?u(u({},e.en),n):u(u(u({},e[i]),n),s(t[i]||{}))))}),{})}},function(e,t,n){"use strict";e.exports=n(1400)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var o={property:{weight:"pes",label:"etiqueta",fillColor:"color fons",color:"color",coverage:"cobertura",strokeColor:"color de traç",radius:"radi",outline:"outline",stroke:"traç",density:"densitat",height:"alçada",sum:"suma",pointCount:"Recompte de Punts"},placeholder:{search:"Cerca",selectField:"Selecciona un camp",yAxis:"Eix Y",selectType:"Selecciona un Tipus",selectValue:"Selecciona un Valor",enterValue:"Entra un valor",empty:"buit"},misc:{by:"",valuesIn:"Valors a",valueEquals:"Valor igual a",dataSource:"Font de dades",brushRadius:"Radi del pinzell (km)",empty:" "},mapLayers:{title:"Capes del mapa",label:"Etiqueta",road:"Carretera",border:"Frontera",building:"Edifici",water:"Aigua",land:"Terra","3dBuilding":"Edifici 3D"},panel:{text:{label:"etiqueta",labelWithId:"Etiqueta {labelId}",fontSize:"Mida de la font",fontColor:"Color de la font",textAnchor:"Àncora del text",alignment:"Alineació",addMoreLabel:"Afegeix més etiquetes"}},sidebar:{panels:{layer:"Capes",filter:"Filtres",interaction:"Interaccions",basemap:"Mapa base"}},layer:{required:"Requerit*",radius:"Radi",color:"Color",fillColor:"Color fons",outline:"Contorn",weight:"Gruix",propertyBasedOn:"{property} basada en",coverage:"Cobertura",stroke:"Traç",strokeWidth:"Amplada de traç",strokeColor:"Color de traç",basic:"Basic",trailLength:"Longitud de pista",trailLengthDescription:"Nombre de segons fins que desapareix el camí",newLayer:"nova capa",elevationByDescription:"Si desactivat, l'alçada es basa en el recompte de punts",colorByDescription:"Si desactivat, el color es basa en el recompte de punts",aggregateBy:"{field} agregat per","3DModel":"Model 3D","3DModelOptions":"Opcions del model 3D",type:{point:"punt",arc:"arc",line:"línia",grid:"malla",hexbin:"hexbin",polygon:"polígon",geojson:"geojson",cluster:"cluster",icon:"icona",heatmap:"heatmap",hexagon:"hexàgon",hexagonid:"H3",trip:"viatge",s2:"S2","3d":"3D"}},layerVisConfigs:{angle:"Angle",strokeWidth:"Amplada traç",strokeWidthRange:"Rang amplada de traç",radius:"Radi",fixedRadius:"Radi fixe a mesurar",fixedRadiusDescription:"Ajusta el radi al radi absolut en metres, p.ex 5 a 5 metres",radiusRange:"Rang de radi",clusterRadius:"Radi Cluster en Pixels",radiusRangePixels:"Rang del radi en pixels",opacity:"Opacitat",coverage:"Cobertura",outline:"Outline",colorRange:"Rang de color",stroke:"Traç",strokeColor:"Color de traç",strokeColorRange:"Rang de color de traç",targetColor:"Color destí",colorAggregation:"Agregació de color",heightAggregation:"Agregació alçada",resolutionRange:"Rang de resolució",sizeScale:"Mida escala",worldUnitSize:"Mida de la unitat mundial",elevationScale:"Escala elevació",enableElevationZoomFactor:"Utilitzeu el factor de zoom d’elevació",enableElevationZoomFactorDescription:"'Ajusteu l'alçada / elevació en funció del factor de zoom actual",enableHeightZoomFactor:"Utilitzeu el factor de zoom d’alçada",heightScale:"Escala alçada",coverageRange:"Rang ed cobertura",highPrecisionRendering:"Representació alta precisió",highPrecisionRenderingDescription:"La precisió alta tindrà rendiment més baix",height:"Alçada",heightDescription:"Fes clic al botó a dalt a la dreta del mapa per canviar a vista 3D",fill:"Omple",enablePolygonHeight:"Activa alçada del polígon",showWireframe:"Mostra Wireframe",weightIntensity:"Intensitat de pes",zoomScale:"Escala de zoom",heightRange:"Rang alçada",heightMultiplier:"Multiplicador d'alçada"},layerManager:{addData:"Afegeix Dades",addLayer:"Afegeix Capes",layerBlending:"Combinar capes"},mapManager:{mapStyle:"Estil de mapa",addMapStyle:"Afegeix estils de mapa","3dBuildingColor":"Color edifici 3D"},layerConfiguration:{defaultDescription:"Calcula {property} segons el camp seleccionat",howTo:"How to"},filterManager:{addFilter:"Afegeix Filtre"},datasetTitle:{showDataTable:"Mostra taula de dades",removeDataset:"Elimina conjunt de dades"},datasetInfo:{rowCount:"{rowCount} files"},tooltip:{hideLayer:"oculta la capa",showLayer:"mostra la capa",hideFeature:"Amaga l'objecte",showFeature:"Mostra l'objecte",hide:"amaga",show:"mostra",removeLayer:"Elimina capa",layerSettings:"Configuració de capa",closePanel:"Tanca panel actual",switchToDualView:"Canvia a la vista de mapa dual",showLegend:"mostra llegenda",disable3DMap:"Desactiva mapa 3D",DrawOnMap:"Dibuixa al mapa",selectLocale:"Selecciona configuració regional",hideLayerPanel:"Oculta el tauler de capes",showLayerPanel:"Mostra el tauler de capes",moveToTop:"Desplaça a dalt de tot de les capes de dades",selectBaseMapStyle:"Selecciona estil de mapa base",delete:"Esborra",timePlayback:"Reproducció de temps",cloudStorage:"Emmagatzematge al núvol","3DMap":"Mapa 3D",animationByWindow:"Finestra Temporal Mòbil",animationByIncremental:"Finestra Temporal Incremental",speed:"velocitat",play:"iniciar",pause:"pausar",reset:"reiniciar"},toolbar:function(e){for(var t=1;t 5 metriin",radiusRange:"Säteen rajat",clusterRadius:"Klusterien säde pikseleinä",radiusRangePixels:"Säteen rajat pikseleinä",opacity:"Läpinäkyvyys",coverage:"Kattavuus",outline:"Ääriviiva",colorRange:"Värien rajat",stroke:"Viiva",strokeColor:"Viivan väri",strokeColorRange:"Viivan värin rajat",targetColor:"Kohteen väri",colorAggregation:"Värien aggregointi",heightAggregation:"Korkeuden aggregointi",resolutionRange:"Resoluution rajat",sizeScale:"Koon skaala",worldUnitSize:"Yksikkö",elevationScale:"Korottamisen skaala",enableElevationZoomFactor:"Käytä korkeuden zoomauskerrointa",enableElevationZoomFactorDescription:"Säädä korkeus / korkeus nykyisen zoomauskertoimen perusteella",enableHeightZoomFactor:"Käytä korkeuden zoomauskerrointa",heightScale:"Korkeuden skaala",coverageRange:"Peittävyyden rajat",highPrecisionRendering:"Tarkka renderöinti",highPrecisionRenderingDescription:"Tarkka renderöinti johtaa hitaampaan suorittamiseen",height:"Korkeus",heightDescription:"Klikkaa oikeasta ylänurkasta nappia vaihtaaksesi 3D-näkymään",fill:"Täyttö",enablePolygonHeight:"Salli polygonien korkeus",showWireframe:"Näytä rautalankamalli",weightIntensity:"Painotuksen intensiteetti",zoomScale:"Zoomausskaala",heightRange:"Korkeuden rajat",heightMultiplier:"Korkeuskerroin"},layerManager:{addData:"Lisää aineisto",addLayer:"Lisää taso",layerBlending:"Tasojen sekoittuvuus"},mapManager:{mapStyle:"Kartan tyyli",addMapStyle:"Lisää tyyli kartalle","3dBuildingColor":"3D-rakennusten väri"},layerConfiguration:{defaultDescription:"Laske suureen {property} arvo valitun kentän perusteella",howTo:"Miten toimii"},filterManager:{addFilter:"Lisää suodatin"},datasetTitle:{showDataTable:"Näytä attribuuttitaulu",removeDataset:"Poista aineisto"},datasetInfo:{rowCount:"{rowCount} riviä"},tooltip:{hideLayer:"Piilota taso",showLayer:"Näytä taso",hideFeature:"Piilota kohde",showFeature:"Näytä kohde",hide:"piilota",show:"näytä",removeLayer:"Poista taso",layerSettings:"Tason asetukset",closePanel:"Sulje paneeli",switchToDualView:"Vaihda kaksoiskarrtanäkymään",showLegend:"Näytä selite",disable3DMap:"Poistu 3D-näkymästä",DrawOnMap:"Piirrä kartalle",selectLocale:"Valitse kielisyys",hideLayerPanel:"Piilota tasopaneeli",showLayerPanel:"Näytä tasopaneeli",moveToTop:"Siirrä tasojen päällimmäiseksi",selectBaseMapStyle:"Valitse taustakarttatyyli",delete:"Poista",timePlayback:"Ajan animointi",cloudStorage:"Pilvitallennus","3DMap":"3D-näkymä"},toolbar:function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.length>0)return n.slice().reverse().filter((function(t){return e[t].overlayType===o.OVERLAY_TYPE.mapboxgl&&r[e[t].id]})).reduce((function(n,r){var a=e[r];return u(u({},n),{},(0,i.default)({},a.id,{id:a.id,data:t[r].data,isVisible:a.config.isVisible,config:t[r].config,hidden:a.config.hidden,sourceId:t[r].config.source}))}),{});return{}},t.updateMapboxLayers=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&s(e,n,t);Object.values(t).forEach((function(t){var r=t.id,a=t.config,i=t.data,o=t.sourceId,l=t.isVisible;if(i||a){var u=n&&n[r]||{},s=u.data,f=u.config;i&&i!==s&&d(e,o,i),f!==a&&c(e,r,a,l)}}))},t.geoJsonFromData=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){},r={type:"FeatureCollection",features:[]},a=0;a=",f(n),t[r][0]],["<=",f(n),t[r][1]]]):e}),["all"])},t.prefixGpuField=void 0;var a=r(n(36)),i=r(n(4)),o=n(143);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return Object(r.a)(this,n),e=t.call(this,-0,-0,-0,-0),Array.isArray(a)&&1===arguments.length?e.copy(a):e.set(a,i,o,l),e}return Object(a.a)(n,[{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this.check()}},{key:"set",value:function(e,t,n,r){return this[0]=e,this[1]=t,this[2]=n,this[3]=r,this.check()}},{key:"fromMatrix3",value:function(e){return d.e(this,e),this.check()}},{key:"identity",value:function(){return d.f(this),this.check()}},{key:"fromAxisRotation",value:function(e,t){return d.p(this,e,t),this.check()}},{key:"setAxisAngle",value:function(e,t){return this.fromAxisRotation(e,t)}},{key:"len",value:function(){return d.h(this)}},{key:"lengthSquared",value:function(){return d.r(this)}},{key:"dot",value:function(e,t){if(void 0!==t)throw new Error("Quaternion.dot only takes one argument");return d.d(this,e)}},{key:"rotationTo",value:function(e,t){return d.n(this,e,t),this.check()}},{key:"add",value:function(e,t){if(void 0!==t)throw new Error("Quaternion.add only takes one argument");return d.a(this,this,e),this.check()}},{key:"calculateW",value:function(){return d.b(this,this),this.check()}},{key:"conjugate",value:function(){return d.c(this,this),this.check()}},{key:"invert",value:function(){return d.g(this,this),this.check()}},{key:"lerp",value:function(e,t,n){return d.i(this,e,t,n),this.check()}},{key:"multiplyRight",value:function(e,t){return Object(c.a)(!t),d.j(this,this,e),this.check()}},{key:"multiplyLeft",value:function(e,t){return Object(c.a)(!t),d.j(this,e,this),this.check()}},{key:"normalize",value:function(){var e=this.len(),t=e>0?1/e:0;return this[0]=this[0]*t,this[1]=this[1]*t,this[2]=this[2]*t,this[3]=this[3]*t,0===e&&(this[3]=1),this.check()}},{key:"rotateX",value:function(e){return d.k(this,this,e),this.check()}},{key:"rotateY",value:function(e){return d.l(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return d.m(this,this,e),this.check()}},{key:"scale",value:function(e){return d.o(this,this,e),this.check()}},{key:"slerp",value:function(e,t,n){switch(arguments.length){case 1:var r=arguments[0],a=r.start;e=void 0===a?h:a,t=r.target,n=r.ratio;break;case 2:var i=Array.prototype.slice.call(arguments);t=i[0],n=i[1],e=this}return d.q(this,e,t,n),this.check()}},{key:"transformVector4",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return f.o(t,e,this),Object(s.b)(t,4)}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"setFromAxisAngle",value:function(e,t){return this.setAxisAngle(e,t)}},{key:"premultiply",value:function(e,t){return this.multiplyLeft(e,t)}},{key:"multiply",value:function(e,t){return this.multiplyRight(e,t)}},{key:"ELEMENTS",get:function(){return 4}},{key:"x",get:function(){return this[0]},set:function(e){this[0]=Object(s.a)(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=Object(s.a)(e)}},{key:"z",get:function(){return this[2]},set:function(e){this[2]=Object(s.a)(e)}},{key:"w",get:function(){return this[3]},set:function(e){this[3]=Object(s.a)(e)}}]),n}(u.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(11),a=n(12),i=n(18),o=n(19),l=n(14),u=n(471),s=n(70),c=n(71),d=n(45),f=n(190);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var h=function(e){Object(i.a)(n,e);var t=p(n);function n(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object(r.a)(this,n),e=t.call(this,2),Object(s.f)(a)&&1===arguments.length?e.copy(a):(s.b.debug&&(Object(c.a)(a),Object(c.a)(i)),e[0]=a,e[1]=i),e}return Object(a.a)(n,[{key:"set",value:function(e,t){return this[0]=e,this[1]=t,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this.check()}},{key:"fromObject",value:function(e){return s.b.debug&&(Object(c.a)(e.x),Object(c.a)(e.y)),this[0]=e.x,this[1]=e.y,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return d.j(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return Object(f.a)(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return d.i(this,this,e),this.check()}},{key:"transformByMatrix2x3",value:function(e){return d.h(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return d.g(this,this,e),this.check()}},{key:"ELEMENTS",get:function(){return 2}}]),n}(u.a)},function(e,t){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +t.read=function(e,t,n,r,a){var i,o,l=8*a-r-1,u=(1<>1,c=-7,d=n?a-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+d],d+=f,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===i)i=1-s;else{if(i===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=s}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,l,u,s=8*i-a-1,c=(1<>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(o++,u/=2),o+d>=c?(l=0,o=c):o+d>=1?(l=(t*u-1)*Math.pow(2,a),o+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&l,p+=h,l/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=h,o/=256,s-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDataContainer",{enumerable:!0,get:function(){return r.createDataContainer}}),Object.defineProperty(t,"createIndexedDataContainer",{enumerable:!0,get:function(){return r.createIndexedDataContainer}});var r=n(276)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coordHasLength4=l,t.containValidTime=u,t.isTripGeoJsonField=function(e,t){if(e.numRows()<1)return!1;var n=(e.numRows()>1e4?(0,i.getSampleData)(e,1e4):e).mapIndex(t.valueAccessor).map(o.parseGeoJsonRawFeature).filter((function(e){return e}));if(!(0,o.getGeojsonFeatureTypes)(n).line)return!1;if(!l(n))return!1;var r=n[0].geometry.coordinates.map((function(e){return e[3]}));return Boolean(u(r))},t.parseTripGeoJsonTimestamp=function(e){var t={dataToTimeStamp:[],animationDomain:null},n=e.find((function(e){return e&&e.geometry&&e.geometry.coordinates&&e.geometry.coordinates.length>=3}));if(!n)return t;var r=u(n.geometry.coordinates.map((function(e){return e[3]})));if(!r)return t;var i=r.format,o=function(e){return e&&(0,a.notNullorUndefined)(e[3])?(0,a.timeToUnixMilli)(e[3],i):null},l=e.map((function(e){return e&&e.geometry&&Array.isArray(e.geometry.coordinates)?e.geometry.coordinates.map(o):null})),s=d(l);return{dataToTimeStamp:l,animationDomain:s}},t.getAnimationDomainFromTimestamps=d;var r=n(273),a=n(75),i=n(276),o=n(514);function l(e){for(var t=!0,n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e.find((function(e){return(0,a.notNullorUndefined)(e)&&Number.isFinite(e)}))||null}function c(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>0;){if((0,a.notNullorUndefined)(e[t])&&Number.isFinite(e[t]))return e[t];t--}return null}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=s(t),r=c(t);return Number.isFinite(n)&&Number.isFinite(r)&&(e[0]=Math.min(e[0],n),e[1]=Math.max(e[1],r)),e}),[1/0,-1/0])}},function(e,t){e.exports=r;var n=null;try{n=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function a(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=a;var i={},o={};function l(e,t){var n,r,a;return t?(a=0<=(e>>>=0)&&e<256)&&(r=o[e])?r:(n=s(e,(0|e)<0?-1:0,!0),a&&(o[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(r=i[e])?r:(n=s(e,e<0?-1:0,!1),a&&(i[e]=n),n)}function u(e,t){if(isNaN(e))return t?y:v;if(t){if(e<0)return y;if(e>=h)return E}else{if(e<=-m)return x;if(e+1>=m)return O}return e<0?u(-e,t).neg():s(e%p|0,e/p|0,t)}function s(e,t,n){return new r(e,t,n)}r.fromInt=l,r.fromNumber=u,r.fromBits=s;var c=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return v;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return d(e.substring(1),t,n).neg();for(var a=u(c(n,8)),i=v,o=0;o>>0:this.low},M.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},M.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=l).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},M.getHighBits=function(){return this.high},M.getHighBitsUnsigned=function(){return this.high>>>0},M.getLowBits=function(){return this.low},M.getLowBitsUnsigned=function(){return this.low>>>0},M.getNumBitsAbs=function(){if(this.isNegative())return this.eq(x)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},M.isOdd=function(){return 1==(1&this.low)},M.isEven=function(){return 0==(1&this.low)},M.equals=function(e){return a(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},M.eq=M.equals,M.notEquals=function(e){return!this.eq(e)},M.neq=M.notEquals,M.ne=M.notEquals,M.lessThan=function(e){return this.comp(e)<0},M.lt=M.lessThan,M.lessThanOrEqual=function(e){return this.comp(e)<=0},M.lte=M.lessThanOrEqual,M.le=M.lessThanOrEqual,M.greaterThan=function(e){return this.comp(e)>0},M.gt=M.greaterThan,M.greaterThanOrEqual=function(e){return this.comp(e)>=0},M.gte=M.greaterThanOrEqual,M.ge=M.greaterThanOrEqual,M.compare=function(e){if(a(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},M.comp=M.compare,M.negate=function(){return!this.unsigned&&this.eq(x)?x:this.not().add(b)},M.neg=M.negate,M.add=function(e){a(e)||(e=f(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,i=65535&this.low,o=e.high>>>16,l=65535&e.high,u=e.low>>>16,c=0,d=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,d+=(p+=r+u)>>>16,c+=(d+=n+l)>>>16,c+=t+o,s((p&=65535)<<16|(h&=65535),(c&=65535)<<16|(d&=65535),this.unsigned)},M.subtract=function(e){return a(e)||(e=f(e)),this.add(e.neg())},M.sub=M.subtract,M.multiply=function(e){if(this.isZero())return v;if(a(e)||(e=f(e)),n)return s(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return v;if(this.eq(x))return e.isOdd()?x:v;if(e.eq(x))return this.isOdd()?x:v;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(g)&&e.lt(g))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,l=e.high>>>16,c=65535&e.high,d=e.low>>>16,p=65535&e.low,h=0,m=0,y=0,b=0;return y+=(b+=o*p)>>>16,m+=(y+=i*p)>>>16,y&=65535,m+=(y+=o*d)>>>16,h+=(m+=r*p)>>>16,m&=65535,h+=(m+=i*d)>>>16,m&=65535,h+=(m+=o*c)>>>16,h+=t*p+r*d+i*c+o*l,s((y&=65535)<<16|(b&=65535),(h&=65535)<<16|(m&=65535),this.unsigned)},M.mul=M.multiply,M.divide=function(e){if(a(e)||(e=f(e)),e.isZero())throw Error("division by zero");var t,r,i;if(n)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?s((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:v;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return A;i=y}else{if(this.eq(x))return e.eq(b)||e.eq(_)?x:e.eq(x)?b:(t=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?b:_:(r=this.sub(e.mul(t)),i=t.add(r.div(e)));if(e.eq(x))return this.unsigned?y:v;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=v}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(t)/Math.LN2),l=o<=48?1:c(2,o-48),d=u(t),p=d.mul(e);p.isNegative()||p.gt(r);)p=(d=u(t-=l,this.unsigned)).mul(e);d.isZero()&&(d=b),i=i.add(d),r=r.sub(p)}return i},M.div=M.divide,M.modulo=function(e){return a(e)||(e=f(e)),n?s((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},M.mod=M.modulo,M.rem=M.modulo,M.not=function(){return s(~this.low,~this.high,this.unsigned)},M.and=function(e){return a(e)||(e=f(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},M.or=function(e){return a(e)||(e=f(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},M.xor=function(e){return a(e)||(e=f(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},M.shiftLeft=function(e){return a(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?s(this.low<>>32-e,this.unsigned):s(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},M.shr=M.shiftRight,M.shiftRightUnsigned=function(e){if(a(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?s(this.low>>>e|t<<32-e,t>>>e,this.unsigned):s(32===e?t:t>>>e-32,0,this.unsigned)},M.shru=M.shiftRightUnsigned,M.shr_u=M.shiftRightUnsigned,M.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},M.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},M.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},M.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},M.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,n){!function(e){"use strict";var t=e.S2={L:{}};t.L.LatLng=function(e,t,n){var r=parseFloat(e,10),a=parseFloat(t,10);if(isNaN(r)||isNaN(a))throw new Error("Invalid LatLng object: ("+e+", "+t+")");return!0!==n&&(r=Math.max(Math.min(r,90),-90),a=(a+180)%360+(a<-180||180===a?180:-180)),{lat:r,lng:a}},t.L.LatLng.DEG_TO_RAD=Math.PI/180,t.L.LatLng.RAD_TO_DEG=180/Math.PI,t.LatLngToXYZ=function(e){var n=t.L.LatLng.DEG_TO_RAD,r=e.lat*n,a=e.lng*n,i=Math.cos(r);return[Math.cos(a)*i,Math.sin(a)*i,Math.sin(r)]},t.XYZToLatLng=function(e){var n=t.L.LatLng.RAD_TO_DEG,r=Math.atan2(e[2],Math.sqrt(e[0]*e[0]+e[1]*e[1])),a=Math.atan2(e[1],e[0]);return t.L.LatLng(r*n,a*n)};t.XYZToFaceUV=function(e){var t=function(e){var t=[Math.abs(e[0]),Math.abs(e[1]),Math.abs(e[2])];return t[0]>t[1]?t[0]>t[2]?0:2:t[1]>t[2]?1:2}(e);return e[t]<0&&(t+=3),[t,function(e,t){var n,r;switch(e){case 0:n=t[1]/t[0],r=t[2]/t[0];break;case 1:n=-t[0]/t[1],r=t[2]/t[1];break;case 2:n=-t[0]/t[2],r=-t[1]/t[2];break;case 3:n=t[2]/t[0],r=t[1]/t[0];break;case 4:n=t[2]/t[1],r=-t[0]/t[1];break;case 5:n=-t[1]/t[2],r=-t[0]/t[2];break;default:throw{error:"Invalid face"}}return[n,r]}(t,e)]},t.FaceUVToXYZ=function(e,t){var n=t[0],r=t[1];switch(e){case 0:return[1,n,r];case 1:return[-n,1,r];case 2:return[-n,-r,1];case 3:return[-1,-r,-n];case 4:return[r,-1,-n];case 5:return[r,n,-1];default:throw{error:"Invalid face"}}};var r=function(e){return e>=.5?1/3*(4*e*e-1):1/3*(1-4*(1-e)*(1-e))};t.STToUV=function(e){return[r(e[0]),r(e[1])]};var a=function(e){return e>=0?.5*Math.sqrt(1+3*e):1-.5*Math.sqrt(1-3*e)};t.UVToST=function(e){return[a(e[0]),a(e[1])]},t.STToIJ=function(e,t){var n=1<=0;l--){var u=1<=0;n--)r=f-n,o=0,l=0,"1"===(a=d[n])?l=1:"2"===a?(o=1,l=1):"3"===a&&(o=1),u=Math.pow(2,r-1),i(u,p,o,l),p.x+=u*o,p.y+=u*l;if(c%2==1){var h=p.x;p.x=p.y,p.y=h}return t.S2Cell.FromFaceIJ(parseInt(c),[p.x,p.y],r)},t.S2Cell.FromLatLng=function(e,n){if(!e.lat&&0!==e.lat||!e.lng&&0!==e.lng)throw new Error("Pass { lat: lat, lng: lng } to S2.S2Cell.FromLatLng");var r=t.LatLngToXYZ(e),a=t.XYZToFaceUV(r),i=t.UVToST(a[1]),o=t.STToIJ(i,n);return t.S2Cell.FromFaceIJ(a[0],o,n)},t.S2Cell.FromFaceIJ=function(e,n,r){var a=new t.S2Cell;return a.face=e,a.ij=n,a.level=r,a},t.S2Cell.prototype.toString=function(){return"F"+this.face+"ij["+this.ij[0]+","+this.ij[1]+"]@"+this.level},t.S2Cell.prototype.getLatLng=function(){var e=t.IJToST(this.ij,this.level,[.5,.5]),n=t.STToUV(e),r=t.FaceUVToXYZ(this.face,n);return t.XYZToLatLng(r)},t.S2Cell.prototype.getCornerLatLngs=function(){for(var e=[],n=[[0,0],[0,1],[1,1],[1,0]],r=0;r<4;r++){var a=t.IJToST(this.ij,this.level,n[r]),i=t.STToUV(a),o=t.FaceUVToXYZ(this.face,i);e.push(t.XYZToLatLng(o))}return e},t.S2Cell.prototype.getFaceAndQuads=function(){var e=o(this.ij[0],this.ij[1],this.level,this.face);return[this.face,e]},t.S2Cell.prototype.toHilbertQuadkey=function(){var e=o(this.ij[0],this.ij[1],this.level,this.face);return this.face.toString(10)+"/"+e.join("")},t.latLngToNeighborKeys=t.S2Cell.latLngToNeighborKeys=function(e,n,r){return t.S2Cell.FromLatLng({lat:e,lng:n},r).getNeighbors().map((function(e){return e.toHilbertQuadkey()}))},t.S2Cell.prototype.getNeighbors=function(){var e=function(e,n,r){var a=1<=0&&n[1]>=0&&n[0]i&&(a=a.substr(0,i)),o=s.fromString(r.toString(10),!0,10).toString(2);o.length30)throw new Error("'level' is not a number between 1 and 30 (but it should be)");return t.S2Cell.FromLatLng({lat:e,lng:n},r).toHilbertQuadkey()},t.stepKey=function(t,r){var a,i=e.dcodeIO&&e.dcodeIO.Long||n(520),o=t.split("/"),l=o[0],u=o[1],s=o[1].length,c=i.fromString(u,!0,4);r>0?a=c.add(Math.abs(r)):r<0&&(a=c.subtract(Math.abs(r)));var d=a.toString(4);for("0"===d&&console.warning(new Error("face/position wrapping is not yet supported"));d.length0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.handleActions)(f,d(d(d({},s.INITIAL_MAP_STATE),e),{},{initialState:e}))};t.mapStateReducerFactory=p;var h=p();t.default=h},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mapStyleReducerFactory=void 0;var i,o=r(n(4)),l=n(100),u=r(n(131)),s=a(n(523));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.handleActions)(f,d(d(d({},s.INITIAL_MAP_STYLE),e),{},{initialState:e}))};t.mapStyleReducerFactory=p;var h=p();t.default=h},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultLayerGroupVisibility=function(e){var t=e.layerGroups;return(void 0===t?[]:t).reduce((function(e,t){return s(s({},e),{},(0,a.default)({},t.slug,t.defaultVisibility))}),{})},t.isValidStyleUrl=function(e){return"string"==typeof e&&Boolean(e.match(c)||e.match(d))},t.getStyleDownloadUrl=function(e,t,n){if(e.startsWith("http"))return e;if(e.startsWith("mapbox://styles")){var r=e.replace("mapbox://styles/","");return"".concat(n||l.DEFAULT_MAPBOX_API_URL,"/styles/v1/").concat(r,"?pluginName=Keplergl&access_token=").concat(t)}return null},t.getStyleImageIcon=function(e){var t=e.styleUrl,n=e.mapboxApiAccessToken,r=e.mapboxApiUrl,a=void 0===r?l.DEFAULT_MAPBOX_API_URL:r,i=e.mapState,o=void 0===i?{longitude:-122.3391,latitude:37.7922,zoom:9}:i,u=e.mapW,s=void 0===u?400:u,c=e.mapH,d=void 0===c?300:c,f=t.replace("mapbox://styles/","");return"".concat(a,"/styles/v1/").concat(f,"/static/")+"".concat(o.longitude,",").concat(o.latitude,",").concat(o.zoom,",0,0/")+"".concat(s,"x").concat(d)+"?access_token=".concat(n,"&logo=false&attribution=false")},t.scaleMapStyleByResolution=function(e,t){if(1!==t&&e){var n=l.DEFAULT_LAYER_GROUPS.find((function(e){return"label"===e.slug})).filter,r=Math.log2(t),a=(0,o.default)(e);return(a.layers||[]).forEach((function(e){e.maxzoom&&(e.maxzoom=Math.max(e.maxzoom+r,1)),e.minzoom&&(e.minzoom=Math.max(e.minzoom+r,1)),n(e)&&e.layout&&e.layout["text-size"]&&Array.isArray(e.layout["text-size"].stops)&&e.layout["text-size"].stops.forEach((function(e){e[0]=Math.max(e[0]+r,1),e[1]*=t}))})),a}return e},t.mergeLayerGroupVisibility=function(e,t){return Object.keys(e).reduce((function(e,n){return s(s({},e),t.hasOwnProperty(n)?(0,a.default)({},n,t[n]):{})}),e)},t.editBottomMapStyle=t.editTopMapStyle=void 0;var a=r(n(4)),i=r(n(157)),o=r(n(176)),l=n(39);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=o[0],r=t?f:p;return l.default.createElement("rect",{className:(0,d.default)({"in-range":t}),key:e.x0,height:b(v(e)),width:A*r,x:y(e.x0)+A*(1-r)/2,rx:1,ry:1,y:n-b(v(e))})}))),l.default.createElement("g",{transform:"translate(".concat(a?0:A/2,", 0)")},c))};return function(t){return t.histogram&&t.histogram.length?l.default.createElement(e,t):null}};t.default=m},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l=r(n(27)),u=r(n(16)),s=a(n(0)),c=n(1183),d=r(n(15)),f=n(75),p=d.default.div(i||(i=(0,u.default)(["\n .rv-xy-plot {\n /* important for rendering hint */\n position: relative;\n }\n .rv-xy-plot__inner {\n /* important to show axis */\n overflow: visible;\n }\n\n .rv-xy-plot__grid-lines__line {\n stroke: ",";\n stroke-dasharray: 1px 4px;\n }\n\n .rv-xy-plot__axis__tick__text {\n font-size: 9px;\n fill: ",";\n }\n"])),(function(e){return e.theme.histogramFillOutRange}),(function(e){return e.theme.textColor})),h=d.default.div(o||(o=(0,u.default)(["\n background-color: #d3d8e0;\n border-radius: 2px;\n color: ",";\n font-size: 9px;\n margin: 4px;\n padding: 3px 6px;\n pointer-events: none;\n user-select: none;\n"])),(function(e){return e.theme.textColorLT})),m=function(e){var t=e.x,n=e.y,r=e.format;return s.default.createElement(h,null,s.default.createElement("div",{className:"hint--x"},r(t)),s.default.createElement("div",{className:"row"},n))},g={top:0,bottom:0,left:0,right:0};var v=function(){return function(e){var t=e.brushComponent,n=e.brushing,r=e.color,a=e.enableChartHover,i=e.height,o=e.hoveredDP,u=e.isEnlarged,d=e.lineChart,h=e.margin,v=e.onMouseMove,y=e.width,b=e.timezone,A=e.timeFormat,_=d.series,O=d.yDomain,E=(0,s.useMemo)((function(){return[{x:_[0].x,y:O[1],customComponent:function(){return t}}]}),[_,O,t]),x=(0,s.useMemo)((function(){return(0,f.datetimeFormatter)(b)(A)}),[b,A]);return s.default.createElement(p,{style:{marginTop:"".concat(h.top,"px")}},s.default.createElement(c.XYPlot,{xType:"time",width:y,height:i,margin:g,onMouseLeave:function(){v(null)}},s.default.createElement(c.HorizontalGridLines,{tickTotal:3}),s.default.createElement(c.LineSeries,{style:{fill:"none"},strokeWidth:2,color:r,data:_,onNearestX:a?v:null}),s.default.createElement(c.MarkSeries,{data:o?[o]:[],color:r,size:3}),s.default.createElement(c.CustomSVGSeries,{data:E}),u&&s.default.createElement(c.YAxis,{tickTotal:3}),o&&a&&!n?s.default.createElement(c.Hint,{value:o},s.default.createElement(m,(0,l.default)({},o,{format:x}))):null))}};t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){"use strict";var r=Array.prototype.slice,a=n(899),i=Object.keys,o=i?function(e){return i(e)}:n(1437),l=Object.keys;o.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return a(e)?l(r.call(e)):l(e)}):Object.keys=o;return Object.keys||o},e.exports=o},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!r(e)||!r(t))}},function(e,t,n){"use strict";var r=n(900);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},function(e,t,n){"use strict";var r=Object,a=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new a("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,n){"use strict";var r=n(902),a=n(331).supportsDescriptors,i=Object.getOwnPropertyDescriptor,o=TypeError;e.exports=function(){if(!a)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(5)),i=r(n(7)),o=r(n(4)),l=r(n(178));function u(){}var s=function(){function e(t){var n=this,r=t.vertical,i=void 0!==r&&r,s=t.valueListener,c=void 0===s?u:s,d=t.toggleMouseOver,f=void 0===d?u:d,p=t.track,h=t.setAnchor,m=void 0===h?null:h;(0,a.default)(this,e),(0,o.default)(this,"handleMouseDown",(function(e){if(l.default.addEventListener("mouseup",n._mouseup),l.default.addEventListener("mousemove",n._mousemove),n._setAnchor){var t=n._getMousePos(e);n._setAnchor(n._getDistanceToTrack(t))}n._toggleMouseOver()})),(0,o.default)(this,"_mouseup",(function(){l.default.removeEventListener("mouseup",n._mouseup),l.default.removeEventListener("mousemove",n._mousemove),n._toggleMouseOver()})),(0,o.default)(this,"_mousemove",(function(e){e.preventDefault();var t=n._getMousePos(e);n._valueListener(n._getDistanceToTrack(t))})),(0,o.default)(this,"handleTouchStart",(function(e){if(l.default.addEventListener("touchend",n._touchend),l.default.addEventListener("touchmove",n._touchmove),n._setAnchor){var t=n._getTouchPosition(e);n._setAnchor(n._getDistanceToTrack(t))}n._toggleMouseOver()})),(0,o.default)(this,"_touchmove",(function(e){var t=n._getTouchPosition(e);n._valueListener(n._getDistanceToTrack(t))})),(0,o.default)(this,"_touchend",(function(){l.default.removeEventListener("touchend",n._touchend),l.default.removeEventListener("touchmove",n._touchmove),n._toggleMouseOver()})),this._vertical=i,this._valueListener=c,this._toggleMouseOver=f,this._track=p,this._setAnchor=m}return(0,i.default)(e,[{key:"_getMousePos",value:function(e){return this._vertical?e.clientY:e.clientX}},{key:"_getTouchPosition",value:function(e){return this._vertical?e.touches[0].clientY:e.touches[0].clientX}},{key:"_getDistanceToTrack",value:function(e){var t=this._track.current.getBoundingClientRect();return e-(this._vertical?t.bottom:t.left)}}]),e}();t.default=s},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),s=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new A(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var E=void 0!==a.ResizeObserver?a.ResizeObserver:O;t.default=E}.call(this,n(67))},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.getTickFormat=x,t.getXAxis=M,t.updateAxis=w,t.default=void 0;var i,o=r(n(16)),l=a(n(0)),u=r(n(376)),s=r(n(1)),c=n(150),d=n(127),f=n(1197),p=r(n(15)),h=n(75),m=p.default.svg(i||(i=(0,o.default)(["\n pointer-events: none;\n position: absolute;\n top: 0;\n overflow: visible;\n margin-top: 6px;\n\n .axis text {\n font-size: ",";\n fill: ",";\n }\n\n .axis line,\n .axis path {\n fill: none;\n stroke: ",";\n shape-rendering: crispEdges;\n stroke-width: 2;\n }\n\n .axis .domain {\n display: none;\n }\n\n .value {\n fill: ",";\n font-size: ",";\n\n &.start {\n text-anchor: start;\n }\n\n &.end {\n text-anchor: end;\n }\n }\n"])),(function(e){return e.theme.axisFontSize}),(function(e){return e.theme.axisFontColor}),(function(e){return e.theme.sliderBarBgd}),(function(e){return e.theme.axisFontColor}),(function(e){return e.theme.axisFontSize})),g=".SSS",v=":ss",y="HH:ss",b="HH A",A="ddd DD",_="MMM DD",O="MMM",E="YYYY";function x(e){var t=e?function(t){return(0,u.default)(t).tz(e)}:u.default,n=(0,h.datetimeFormatter)(e);return function(e){return(t(e).startOf("second")1&&g.default.createElement(e,{datasets:l,id:a.id,dataId:v.dataId,onSelect:function(e){return u({dataId:e})}}),g.default.createElement(i,{columnPairs:a.columnPairs,columns:a.config.columns,assignColumnPairs:a.assignColumnPairs.bind(a),assignColumn:a.assignColumn.bind(a),columnLabels:a.columnLabels,fields:p,fieldPairs:m,updateLayerConfig:u,updateLayerType:this.props.updateLayerType})),this[O]&&this[O]({layer:a,dataset:_,visConfiguratorProps:y,layerChannelConfigProps:A,layerConfiguratorProps:b}))}}]),h}(g.Component);return(0,h.default)(f,"propTypes",{layer:v.default.object.isRequired,datasets:v.default.object.isRequired,layerTypeOptions:v.default.arrayOf(v.default.any).isRequired,openModal:v.default.func.isRequired,updateLayerConfig:v.default.func.isRequired,updateLayerType:v.default.func.isRequired,updateLayerVisConfig:v.default.func.isRequired,updateLayerVisualChannelConfig:v.default.func.isRequired,updateLayerColorUI:v.default.func.isRequired}),f}t.getLayerChannelConfigProps=Y,W.deps=[S.default,C.default,P.default,L.default,J,E.default,x.default,T.default];var G=y.default.div(l||(l=(0,m.default)(["\n position: absolute;\n right: 12px;\n top: -4px;\n"]))),q=function(e){var t=e.onClick;return g.default.createElement(G,null,g.default.createElement(A.Button,{link:!0,small:!0,onClick:t},g.default.createElement(b.FormattedMessage,{id:"layerConfiguration.howTo"})))};t.HowToButton=q;var X=function(e){var t=e.layer,n=e.onChange,r=(e.label,e.selectedColor),a=e.property,i=void 0===a?"color":a,o=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:r||t.config.color,setColor:function(e){return n((0,h.default)({},i,e))}}],colorUI:t.config.colorUI[i],setColorUI:function(e){return o(i,e)}}))};t.LayerColorSelector=X;var Z=function(e){var t=e.layer,n=e.onChangeConfig,r=e.onChangeVisConfig,a=e.property,i=void 0===a?"color":a,o=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:t.config.color,setColor:function(e){return n({color:e})},label:"Source"},{selectedColor:t.config.visConfig.targetColor||t.config.color,setColor:function(e){return r({targetColor:e})},label:"Target"}],colorUI:t.config.colorUI[i],setColorUI:function(e){return o(i,e)}}))};t.ArcLayerColorSelector=Z;var K=function(e){var t=e.layer,n=e.onChange,r=e.property,a=void 0===r?"colorRange":r,i=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:t.config.visConfig[a],isRange:!0,setColor:function(e){return n((0,h.default)({},a,e))}}],colorUI:t.config.colorUI[a],setColorUI:function(e){return i(a,e)}}))};function J(e){return function(t){var n=t.layer,r=t.channel,a=t.onChange,i=t.fields,o=t.description,l=r.channelScaleType,u=r.domain,s=r.field,c=r.key,d=r.property,f=r.range,p=r.scale,m=r.defaultMeasure,v=r.supportedFieldTypes||D.CHANNEL_SCALE_SUPPORTED_FIELDS[l],y=i.filter((function(e){var t=e.type;return v.includes(t)})),b=n.getScaleOptions(r.key),A=!n.isAggregated&&n.config[p]&&b.length>1;return g.default.createElement(e,{channel:r.key,description:o||"layerConfiguration.defaultDescription",domain:n.config[u],fields:y,id:n.id,key:"".concat(c,"-channel-selector"),property:d,placeholder:m||"placeholder.selectField",range:n.config.visConfig[f],scaleOptions:b,scaleType:p?n.config[p]:null,selectedField:n.config[s],showScale:A,updateField:function(e){return a((0,h.default)({},s,e),c)},updateScale:function(e){return a((0,h.default)({},p,e),c)}})}}t.LayerColorRangeSelector=K,J.deps=[O.default];var Q=function(e){var t=e.channel,n=e.layer,r=e.onChange,a=t.scale,i=t.key,o=n.getScaleOptions(i);return Array.isArray(o)&&o.length>1?g.default.createElement(M.default,{label:"".concat(i," Scale"),options:o,scaleType:n.config[a],onSelect:function(e){return r((0,h.default)({},a,e),i)}}):null};t.AggrScaleSelector=Q;var $=function(e){var t=e.layer,n=e.channel,r=e.onChange,a=n.field,i=n.aggregation,o=n.key,l=t.config[a],u=t.config.visConfig,s=t.getAggregationOptions(o);return g.default.createElement(A.SidePanelSection,null,g.default.createElement(A.PanelLabel,null,g.default.createElement(b.FormattedMessage,{id:"layer.aggregateBy",values:{field:l.name}})),g.default.createElement(_.default,{selectedItems:u[i],options:s,multiSelect:!1,searchable:!1,onChange:function(e){return r({visConfig:I(I({},t.config.visConfig),{},(0,h.default)({},i,e))},n.key)}}))};t.AggregationTypeSelector=$},function(e,t,n){(function(e,n){var r="[object Arguments]",a="[object Map]",i="[object Object]",o="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[r]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[a]=h["[object Number]"]=h[i]=h["[object RegExp]"]=h[o]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=t&&!t.nodeType&&t,b=y&&"object"==typeof n&&n&&!n.nodeType&&n,A=b&&b.exports===y&&m.process,_=function(){try{return A&&A.binding("util")}catch(e){}}(),O=_&&_.isTypedArray;function E(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var a=e.length,i=n+(r?1:-1);for(;r?i--:++i-1}function x(e,t,n){for(var r=-1,a=e?e.length:0;++r-1},se.prototype.set=function(e,t){var n=this.__data__,r=he(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ce.prototype.clear=function(){this.__data__={hash:new ue,map:new(Z||se),string:new ue}},ce.prototype.delete=function(e){return xe(this,e).delete(e)},ce.prototype.get=function(e){return xe(this,e).get(e)},ce.prototype.has=function(e){return xe(this,e).has(e)},ce.prototype.set=function(e,t){return xe(this,e).set(e,t),this},de.prototype.add=de.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},de.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.clear=function(){this.__data__=new se},fe.prototype.delete=function(e){return this.__data__.delete(e)},fe.prototype.get=function(e){return this.__data__.get(e)},fe.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof se){var r=n.__data__;if(!Z||r.length<199)return r.push([e,t]),this;n=this.__data__=new ce(r)}return n.set(e,t),this};var Oe=J&&1/L(new J([,-0]))[1]==1/0?function(e){return new J(e)}:function(){};function Ee(e,t,n,r,a,i){var o=2&a,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,d=!0,f=1&a?new de:void 0;for(i.set(e,t),i.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Ue(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ve(e){return!!e&&"object"==typeof e}function He(e){return"symbol"==typeof e||Ve(e)&&"[object Symbol]"==U.call(e)}var Ye=O?function(e){return function(t){return e(t)}}(O):function(e){return Ve(e)&&ze(e.length)&&!!h[U.call(e)]};function We(e){return Ne(e)?pe(e):Ae(e)}function Ge(e){return e}n.exports=function(e,t){return e&&e.length?function(e,t,n){var r=-1,a=E,i=e.length,o=!0,l=[],u=l;if(n)o=!1,a=x;else if(i>=200){var s=t?null:Oe(e);if(s)return L(s);o=!1,a=S,u=new de}else u=t?[]:l;e:for(;++r0?l.map((function(e,t){var r={inputTheme:m,disabled:n,key:"".concat(h(e),"_").concat(t),name:h(e),displayOption:h,item:e,remove:function(t){return d(e,t)}};return y?u.default.createElement(y,r):u.default.createElement(g,r)})):u.default.createElement("span",{className:"".concat(i," chickleted-input__placeholder")},u.default.createElement(f.FormattedMessage,{id:c||"placeholder.enterValue"})))};y.propTypes=p;var b=y;t.default=b},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l,u,s=r(n(27)),c=r(n(5)),d=r(n(7)),f=r(n(17)),p=r(n(9)),h=r(n(10)),m=r(n(8)),g=r(n(4)),v=r(n(16)),y=a(n(0)),b=n(115),A=r(n(1)),_=r(n(915)),O=r(n(49)),E=r(n(15)),x=n(61),M=r(n(912)),w=a(n(237)),S=n(58),T=r(n(330));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 n,r=(0,m.default)(e);if(t){var a=(0,m.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}var L=E.default.div(i||(i=(0,v.default)(["\n display: flex;\n flex-direction: column;\n background-color: ",";\n box-shadow: ",";\n\n :focus {\n outline: 0;\n }\n"])),(function(e){return e.light?e.theme.dropdownListBgdLT:e.theme.dropdownListBgd}),(function(e){return e.theme.dropdownListShadow})),P=E.default.div.attrs({className:"typeahead__input_box"})(o||(o=(0,v.default)(["\n padding: 8px;\n"]))),k=E.default.input(l||(l=(0,v.default)(["\n "," :hover {\n cursor: pointer;\n background-color: ",";\n }\n"])),(function(e){return e.light?e.theme.inputLT:e.theme.secondaryInput}),(function(e){return e.light?e.theme.selectBackgroundLT:e.theme.secondaryInputBgd})),D=E.default.div.attrs({className:"typeahead__input_icon"})(u||(u=(0,v.default)(["\n position: absolute;\n right: 15px;\n top: 14px;\n color: ",";\n"])),(function(e){return e.theme.inputPlaceholderColor}));function R(e,t,n){var r=t.options,a=t.showOptionsWhenEmpty;return t.searchable?function(e,t,n){var r=!e||0===e.trim().length,a=t&&t.isFocused;return!(n&&a)&&r}(e,n,a)?r:function(e){var t=e.searchOptions,n=e.filterOption;if("function"==typeof t)return null!==n&&x.console.warn("searchOptions prop is being used, filterOption prop will be ignored"),t;if("function"==typeof n)return function(e,t){return t.filter((function(t){return n(e,t)}))};var r="string"==typeof n?M.default.generateAccessor(n):M.default.IDENTITY_FN;return function(e,t){return _.default.filter(e,t,{extract:r}).map((function(e){return t[e.index]}))}}(t)(e,r):r}var j=function(e){(0,p.default)(n,e);var t=C(n);function n(e){var r;return(0,c.default)(this,n),r=t.call(this,e),(0,g.default)((0,f.default)(r),"root",(0,y.createRef)()),(0,g.default)((0,f.default)(r),"entry",(0,y.createRef)()),(0,g.default)((0,f.default)(r),"focus",(function(){r.entry.current&&r.entry.current.focus()})),(0,g.default)((0,f.default)(r),"_hasCustomValue",(function(){return r.props.allowCustomValues>0&&r.state.entryValue.length>=r.props.allowCustomValues&&r.state.searchResults.indexOf(r.state.entryValue)<0})),(0,g.default)((0,f.default)(r),"_getCustomValue",(function(){return r._hasCustomValue()?r.state.entryValue:null})),(0,g.default)((0,f.default)(r),"_onOptionSelected",(function(e,t){return r.props.searchable&&r.setState({searchResults:R("",r.props,r.state),selection:"",entryValue:""}),r.props.onOptionSelected(e,t)})),(0,g.default)((0,f.default)(r),"_onTextEntryUpdated",(function(){if(r.props.searchable){var e=r.entry.current.value;r.setState({searchResults:R(e,r.props,r.state),selection:"",entryValue:e})}})),(0,g.default)((0,f.default)(r),"_onEnter",(function(e){var t=r.getSelection();return t?r._onOptionSelected(t,e):r.props.onKeyDown(e)})),(0,g.default)((0,f.default)(r),"_onEscape",(function(){r.setState({selectionIndex:null})})),(0,g.default)((0,f.default)(r),"_onTab",(function(e){var t=r.getSelection(),n=t||(r.state.searchResults.length>0?r.state.searchResults[0]:null);if(null===n&&r._hasCustomValue()&&(n=r._getCustomValue()),null!==n)return r._onOptionSelected(n,e)})),(0,g.default)((0,f.default)(r),"eventMap",(function(e){var t={};return t[T.default.DOM_VK_UP]=r.navUp,t[T.default.DOM_VK_DOWN]=r.navDown,t[T.default.DOM_VK_RETURN]=t[T.default.DOM_VK_ENTER]=r._onEnter,t[T.default.DOM_VK_ESCAPE]=r._onEscape,t[T.default.DOM_VK_TAB]=r._onTab,t})),(0,g.default)((0,f.default)(r),"_nav",(function(e){if(r._hasHint()){var t=null===r.state.selectionIndex?1===e?0:e:r.state.selectionIndex+e,n=r.props.maxVisible?r.state.searchResults.slice(0,r.props.maxVisible).length:r.state.searchResults.length;r._hasCustomValue()&&(n+=1),t<0?t+=n:t>=n&&(t-=n),r.setState({selectionIndex:t})}})),(0,g.default)((0,f.default)(r),"navDown",(function(){r._nav(1)})),(0,g.default)((0,f.default)(r),"navUp",(function(){r._nav(-1)})),(0,g.default)((0,f.default)(r),"_onChange",(function(e){r.props.onChange&&r.props.onChange(e),r._onTextEntryUpdated()})),(0,g.default)((0,f.default)(r),"_onKeyDown",(function(e){if(!r._hasHint()||e.shiftKey)return r.props.onKeyDown(e);var t=r.eventMap()[e.keyCode];if(!t)return r.props.onKeyDown(e);t(e),e.preventDefault()})),(0,g.default)((0,f.default)(r),"_onFocus",(function(e){if(r.setState({isFocused:!0}),r.props.onFocus)return r.props.onFocus(e)})),(0,g.default)((0,f.default)(r),"_onBlur",(function(e){if(r.setState({isFocused:!1}),r.props.onBlur)return r.props.onBlur(e)})),r.state={searchResults:[],entryValue:r.props.value||r.props.initialValue,selection:r.props.value,selectionIndex:null,isFocused:!1},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.entry.current?this.entry.current.focus():this.root.current.focus()}},{key:"_renderIncrementalSearchResults",value:function(){return y.default.createElement(this.props.customListComponent,{fixedOptions:this.props.fixedOptions,options:this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible):this.state.searchResults,areResultsTruncated:this.props.maxVisible&&this.state.searchResults.length>this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._onOptionSelected,allowCustomValues:this.props.allowCustomValues,customValue:this._getCustomValue(),customClasses:this.props.customClasses,customListItemComponent:this.props.customListItemComponent,customListHeaderComponent:this.props.customListHeaderComponent,selectionIndex:this.state.selectionIndex,defaultClassNames:this.props.defaultClassNames,displayOption:this.props.displayOption,selectedItems:this.props.selectedItems,light:this.props.light})}},{key:"getSelection",value:function(){var e=this.state.selectionIndex;if(this._hasCustomValue()){if(0===e)return this.state.entryValue;e--}return this._hasFixedOptions()?e0||this._hasCustomValue()}},{key:"_hasFixedOptions",value:function(){return Array.isArray(this.props.fixedOptions)&&this.props.fixedOptions.length}},{key:"render",value:function(){var e={};e[this.props.customClasses.input]=Boolean(this.props.customClasses.input);var t=(0,O.default)(e),n=(0,g.default)({},"typeahead",this.props.defaultClassNames);n[this.props.className]=Boolean(this.props.className);var r=(0,O.default)(n);return y.default.createElement(L,{className:r,ref:this.root,tabIndex:"0",onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this._onFocus,light:this.props.light},this._renderHiddenInput(),this.props.searchable?y.default.createElement(P,null,y.default.createElement(k,(0,s.default)({ref:this.entry,type:"text",disabled:this.props.disabled},this.props.inputProps,{placeholder:this.props.placeholder,className:t,value:this.state.entryValue,onChange:this._onChange,onBlur:this._onBlur,light:this.props.light})),y.default.createElement(D,null,y.default.createElement(this.props.inputIcon,{height:"18px"}))):null,this._renderIncrementalSearchResults())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{searchResults:R(t.entryValue,e,t)}}}]),n}(y.Component);(0,g.default)(j,"propTypes",{name:A.default.string,customClasses:A.default.object,maxVisible:A.default.number,resultsTruncatedMessage:A.default.string,options:A.default.arrayOf(A.default.any),fixedOptions:A.default.arrayOf(A.default.any),allowCustomValues:A.default.number,initialValue:A.default.string,value:A.default.string,placeholder:A.default.string,disabled:A.default.bool,textarea:A.default.bool,inputProps:A.default.object,onOptionSelected:A.default.func,onChange:A.default.func,onKeyDown:A.default.func,onKeyPress:A.default.func,onKeyUp:A.default.func,onFocus:A.default.func,onBlur:A.default.func,filterOption:A.default.oneOfType([A.default.string,A.default.func]),searchOptions:A.default.func,displayOption:A.default.oneOfType([A.default.string,A.default.func]),inputDisplayOption:A.default.oneOfType([A.default.string,A.default.func]),formInputOption:A.default.oneOfType([A.default.string,A.default.func]),defaultClassNames:A.default.bool,customListComponent:A.default.oneOfType([A.default.element,A.default.func]),customListItemComponent:A.default.oneOfType([A.default.element,A.default.func]),customListHeaderComponent:A.default.oneOfType([A.default.element,A.default.func]),showOptionsWhenEmpty:A.default.bool,searchable:A.default.bool}),(0,g.default)(j,"defaultProps",{options:[],customClasses:{},allowCustomValues:0,initialValue:"",value:"",placeholder:"",disabled:!1,textarea:!1,inputProps:{},onOptionSelected:function(e){},onChange:function(e){},onKeyDown:function(e){},onKeyPress:function(e){},onKeyUp:function(e){},onFocus:function(e){},onBlur:function(e){},filterOption:null,searchOptions:null,inputDisplayOption:null,defaultClassNames:!0,customListComponent:w.default,customListItemComponent:w.ListItem,inputIcon:S.Search,customListHeaderComponent:null,showOptionsWhenEmpty:!0,searchable:!0,resultsTruncatedMessage:null}),(0,b.polyfill)(j);var I=j;t.default=I},function(e,t,n){var r;r={},e.exports=r,r.simpleFilter=function(e,t){return t.filter((function(t){return r.test(e,t)}))},r.test=function(e,t){return null!==r.match(e,t)},r.match=function(e,t,n){n=n||{};var r,a=0,i=[],o=t.length,l=0,u=0,s=n.pre||"",c=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t="length"in n?n[0]:n}return l=t||l},t.validateElement=s,t.hide=function(e){s(e)&&(e||l).setAttribute("aria-hidden","true")},t.show=function(e){s(e)&&(e||l).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){l=null},t.resetForTesting=function(){l=null};var r,a=n(1464),i=(r=a)&&r.__esModule?r:{default:r},o=n(546);var l=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){return!(!e&&!l)||((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(67))},function(e,t,n){var r=n(1472),a=n(335);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t,n){var r=n(1474),a=n(927),i=n(169),o=n(548),l=n(928),u=n(929),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&a(e),d=!n&&!c&&o(e),f=!n&&!c&&!d&&u(e),p=n||c||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!s.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,m))||h.push(g);return h}},function(e,t,n){var r=n(1475),a=n(195),i=Object.prototype,o=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&ec))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var p=-1,h=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++p0&&void 0!==arguments[0]?arguments[0]:new Map,n=new Map,r=function e(r,a){var i=t.get(r);if(!i)return d.console.error(g.noDep(r,a)),m;var o=n.get(i)||i.apply(void 0,(0,l.default)(i.deps?i.deps.map((function(t){return e(t,i)})):[]));return n.set(r,o),o};return{provide:function(n,r){return y([n,r])?e(new Map(t).set(n,r)):e(t)},get:r}},t.flattenDeps=v,t.provideRecipesToInjector=function(e,t){var n=new Map;return e.reduce((function(e,t){var r;return y(t)?(e=v([],t[1]).reduce((function(e,r){return n.get(r)&&d.console.warn("".concat(r.name," already injected from ").concat(n.get(r).name,", injecting ").concat(t[0].name," after ").concat(n.get(r).name," will override it")),e.provide(r,r)}),e),n.set(t[0],t[1]),(r=e).provide.apply(r,(0,l.default)(t))):e}),t)},t.typeCheckRecipe=y,t.withState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){return(0,s.connect)((function(e){return h(h({},t(e)),{},{state:e})}),(function(e){return Object.keys(n).reduce((function(t,r){return h(h({},t),{},(0,a.default)({},r,(0,c.bindActionCreators)(n[r],e)))}),{})}))((function(t){var n=t.state,a=(0,i.default)(t,["state"]);return u.default.createElement(f.default.Consumer,null,(function(t){return u.default.createElement(r,e.reduce((function(e,r){return h(h({},e),r(t.selector(n)))}),a))}))}))}},t.ERROR_MSG=void 0;var a=r(n(4)),i=r(n(72)),o=r(n(55)),l=r(n(36)),u=r(n(0)),s=n(281),c=n(268),d=n(61),f=r(n(333));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t * {\n /* all children should allow input */\n pointer-events: all;\n }")})),Q=function(e){return{getMapboxRef:e.getMapboxRef,mapboxApiAccessToken:e.mapboxApiAccessToken,mapboxApiUrl:e.mapboxApiUrl,mapState:e.mapState,mapStyle:e.mapStyle,onDeckInitialized:e.onDeckInitialized,onViewStateChange:e.onViewStateChange,deckGlProps:e.deckGlProps,uiStateActions:e.uiStateActions,visStateActions:e.visStateActions,mapStateActions:e.mapStateActions,editor:e.visState.editor,datasets:e.visState.datasets,layers:e.visState.layers,layerOrder:e.visState.layerOrder,layerData:e.visState.layerData,layerBlending:e.visState.layerBlending,filters:e.visState.filters,interactionConfig:e.visState.interactionConfig,hoverInfo:e.visState.hoverInfo,clicked:e.visState.clicked,mousePos:e.visState.mousePos,animationConfig:e.visState.animationConfig,activeSidePanel:e.uiState.activeSidePanel,mapControls:e.uiState.mapControls,readOnly:e.uiState.readOnly,locale:e.uiState.locale}};t.mapFieldsSelector=Q;var $=function(e,t){return{appName:e.appName,version:e.version,appWebsite:e.appWebsite,mapStyle:e.mapStyle,onSaveMap:e.onSaveMap,uiState:e.uiState,mapStyleActions:e.mapStyleActions,visStateActions:e.visStateActions,uiStateActions:e.uiStateActions,datasets:e.visState.datasets,filters:e.visState.filters,layers:e.visState.layers,layerOrder:e.visState.layerOrder,layerClasses:e.visState.layerClasses,interactionConfig:e.visState.interactionConfig,mapInfo:e.visState.mapInfo,layerBlending:e.visState.layerBlending,width:e.sidePanelWidth,availableProviders:t,mapSaved:e.providerState.mapSaved}};t.sidePanelSelector=$;var ee=function(e){return{width:e.width,height:e.height,exportImageSetting:e.uiState.exportImage,mapFields:Q(e),addNotification:e.uiStateActions.addNotification,setExportImageSetting:e.uiStateActions.setExportImageSetting,setExportImageDataUri:e.uiStateActions.setExportImageDataUri,setExportImageError:e.uiStateActions.setExportImageError,splitMaps:e.visState.splitMaps}};t.plotContainerSelector=ee;var te=function(e){return e.visState.splitMaps&&e.visState.splitMaps.length>1};t.isSplitSelector=te;var ne=function(e,t){return{filters:e.visState.filters,datasets:e.visState.datasets,uiState:e.uiState,layers:e.visState.layers,animationConfig:e.visState.animationConfig,visStateActions:e.visStateActions,toggleModal:e.uiStateActions.toggleModal,sidePanelWidth:e.uiState.readOnly?0:e.sidePanelWidth+t.sidePanel.margin.left}};t.bottomWidgetSelector=ne;var re=function(e,t){return{appName:e.appName,mapStyle:e.mapStyle,visState:e.visState,mapState:e.mapState,uiState:e.uiState,providerState:e.providerState,mapboxApiAccessToken:e.mapboxApiAccessToken,mapboxApiUrl:e.mapboxApiUrl,visStateActions:e.visStateActions,uiStateActions:e.uiStateActions,mapStyleActions:e.mapStyleActions,providerActions:e.providerActions,rootNode:t,cloudProviders:e.cloudProviders,onExportToCloudSuccess:e.onExportToCloudSuccess,onLoadCloudMapSuccess:e.onLoadCloudMapSuccess,onLoadCloudMapError:e.onLoadCloudMapError,onExportToCloudError:e.onExportToCloudError}};t.modalContainerSelector=re;var ae=function(e){return{isGeocoderEnabled:e.visState.interactionConfig.geocoder.enabled,mapboxApiAccessToken:e.mapboxApiAccessToken,mapState:e.mapState,updateVisData:e.visStateActions.updateVisData,removeDataset:e.visStateActions.removeDataset,updateMap:e.mapStateActions.updateMap}};t.geoCoderPanelSelector=ae;var ie=function(e){return{removeNotification:e.uiStateActions.removeNotification,notifications:e.uiState.notifications}};t.notificationPanelSelector=ie;var oe={mapStyles:[],mapStylesReplaceDefault:!1,mapboxApiUrl:k.DEFAULT_MAPBOX_API_URL,width:800,height:800,appName:k.KEPLER_GL_NAME,version:k.KEPLER_GL_VERSION,sidePanelWidth:k.DIMENSIONS.sidePanel.width,theme:{},cloudProviders:[],readOnly:!1};function le(e,t,n,r,a,i,o,h){var m=function(m){(0,p.default)(A,m);var v=Z(A);function A(){var e;(0,c.default)(this,A);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return X(X({},t),{},{visState:e.visState,mapStyle:e.mapStyle,mapState:e.mapState,uiState:e.uiState,providerState:e.providerState})}t.DEFAULT_KEPLER_GL_PROPS=oe,le.deps=[F.default,U.default,j.default,I.default,N.default,R.default,B.default,z.default];var se={},ce=function(e,t){return e},de=function(e,t){return t.actions||se};function fe(){return(0,O.createSelector)([ce,de],(function(e,t){var n=[S,T,C,L,P].map((function(n){return(0,A.bindActionCreators)(function(e,t){var n={};for(var r in t)t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(n[r]=t[r]);return X(X({},e),n)}(n,t),e)})),r=(0,o.default)(n,5);return{visStateActions:r[0],mapStateActions:r[1],mapStyleActions:r[2],uiStateActions:r[3],providerActions:r[4],dispatch:e}}))}function pe(){var e=fe();return function(t,n){return X(X({},e(t,n)),{},{dispatch:t})}}var he=le;t.default=he},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=w,t.StyledSidePanelContent=void 0;var i,o=r(n(27)),l=r(n(4)),u=r(n(16)),s=a(n(0)),c=n(51),d=n(39),f=r(n(954)),p=r(n(955)),h=r(n(957)),m=r(n(959)),g=r(n(964)),v=r(n(971)),y=r(n(974)),b=r(n(977)),A=r(n(978)),_=r(n(15)),O=r(n(96));function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return e.width+2*e.theme.sidePanel.margin.left}),(function(e){return e.theme.sidePanel.margin.top}),(function(e){return e.theme.sidePanel.margin.right}),(function(e){return e.theme.sidePanel.margin.bottom}),(function(e){return e.theme.sidePanel.margin.left})),E=b.default.div(o||(o=(0,g.default)(["\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);\n transition: left 250ms, right 250ms;\n left: ","px;\n align-items: stretch;\n flex-grow: 1;\n"])),(function(e){return e.left})),x=b.default.div(l||(l=(0,g.default)(["\n background-color: ",";\n border-radius: 1px;\n display: flex;\n flex-direction: column;\n height: 100%;\n border-left: ","px solid\n ",";\n"])),(function(e){return e.theme.sidePanelBg}),(function(e){return e.theme.sidePanelBorder}),(function(e){return e.theme.sidePanelBorderColor})),M=b.default.div(u||(u=(0,g.default)(["\n align-items: center;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);\n justify-content: center;\n background-color: ",";\n border-radius: 1px;\n color: ",";\n display: flex;\n height: 20px;\n position: absolute;\n right: -8px;\n top: ","px;\n width: 20px;\n\n :hover {\n cursor: pointer;\n box-shadow: none;\n background-color: ",";\n }\n"])),(function(e){return e.theme.sideBarCloseBtnBgd}),(function(e){return e.theme.sideBarCloseBtnColor}),(function(e){return e.theme.sidePanel.margin.top}),(function(e){return e.theme.sideBarCloseBtnBgdHover})),w=function(){return function(e){var t=e.onClick,n=e.isOpen;return v.default.createElement(M,{className:"side-bar__close",onClick:t},v.default.createElement(A.ArrowRight,{height:"12px",style:{transform:"rotate(".concat(n?180:0,"deg)")}}))}};function S(e){var t,n;return n=t=function(t){(0,f.default)(r,t);var n=_(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,a=new Array(t),i=0;i1&&i.default.createElement(t,{inputTheme:"secondary",datasets:u,disabled:l.freeze,dataId:l.dataId,onSelect:m})))}));return r.displayName="NewFilterPanel",r}d.deps=[l.default,u.default,s.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=function(e){var t=e.filter,n=e.setFilter;return a.default.createElement(o.SidePanelSection,null,a.default.createElement(o.PanelLabel,null,a.default.createElement(l.FormattedMessage,{id:"misc.valueEquals"})),a.default.createElement(i.default,{selectedItems:t.value,placeholder:"placeholder.selectValue",options:t.domain,multiSelect:!1,searchable:!1,displayOption:function(e){return String(e)},getOptionValue:function(e){return e},onChange:n,inputTheme:"secondary"}))};return e.displayName="SingleSelectFilter",e};var a=r(n(0)),i=r(n(145)),o=n(40),l=n(51)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){var t=e.filter,n=e.setFilter;return a.default.createElement("div",null,a.default.createElement(o.PanelLabel,{htmlFor:"filter-".concat(t.id)},a.default.createElement(l.FormattedMessage,{id:"misc.valuesIn"})),a.default.createElement(i.default,{options:t.domain,selectedItems:t.value,onChange:n}))}};var a=r(n(0)),i=r(n(145)),o=n(40),l=n(51)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=r(n(0)),i=r(n(236));function o(e){return function(t){var n=t.filter,r=t.setFilter;return a.default.createElement("div",null,a.default.createElement(e,{range:n.domain,value0:n.value[0],value1:n.value[1],step:n.step,histogram:n.histogram,isEnlarged:n.isEnlarged,onChange:r,inputTheme:"secondary"}))}}o.deps=[i.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledFilterPanel=void 0;var a,i=r(n(16)),o=r(n(15)),l=n(40),u=(0,o.default)(l.PanelLabel)(a||(a=(0,i.default)(["\n font-weight: 500;\n color: white;\n flex: 1;\n"])));t.StyledFilterPanel=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=r(n(1584));function o(e){return function(t){var n=t.interactionConfig,r=t.datasets,i=t.visStateActions.interactionConfigChange;return a.default.createElement("div",{className:"interaction-manager"},Object.keys(n).map((function(t){return a.default.createElement(e,{datasets:r,config:n[t],key:t,onConfigChange:i})})))}}o.deps=[i.default];var l=o;t.default=l},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),i=r(n(0)),o=r(n(236)),l=n(40),u=n(507),s=n(51);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t div > div {\n overflow: visible;\n }\n"]))),E=c.default.div(i||(i=(0,u.default)(["\n display: inherit;\n padding: 0;\n\n .button.clear-all {\n background: transparent;\n color: ",";\n margin: 0 0 0 8px;\n padding: 0;\n\n &:hover {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.subtextColor}),(function(e){return e.theme.textColor})),x=c.default.div(o||(o=(0,u.default)(["\n color: ",";\n display: flex;\n font-size: ",";\n justify-content: space-between;\n line-height: 11px;\n margin-bottom: 8px;\n"])),(function(e){return e.theme.labelColor}),(function(e){return e.theme.inputFontSize}));function M(e,t){var n=function(n){var r=n.config,a=n.onChange,i=n.dataset,o=i.id;return s.default.createElement(p.SidePanelSection,{key:o},s.default.createElement(p.SBFlexboxNoMargin,null,s.default.createElement(e,{dataset:i}),Boolean(r.fieldsToShow[o].length)&&s.default.createElement(E,null,s.default.createElement(p.Button,{className:"clear-all",onClick:function(){var e=_(_({},r),{},{fieldsToShow:_(_({},r.fieldsToShow),{},(0,l.default)({},o,[]))});a(e)},width:"54px",secondary:!0},s.default.createElement(f.FormattedMessage,{id:"fieldSelector.clearAll"})))),s.default.createElement(t,{fields:i.fields,value:r.fieldsToShow[o],onSelect:function(e){var t=_(_({},r),{},{fieldsToShow:_(_({},r.fieldsToShow),{},(0,l.default)({},o,e.map((function(e){return r.fieldsToShow[o].find((function(t){return t.name===e.name}))||{name:e.name,format:null}}))))});a(t)},closeOnSelect:!1,multiSelect:!0,inputTheme:"secondary",CustomChickletComponent:(0,m.default)(o,r,a,i.fields)}))};return(0,d.injectIntl)((function(e){var t=e.config,r=e.datasets,a=e.onChange,i=e.intl;return s.default.createElement(O,null,Object.keys(t.fieldsToShow).map((function(e){return s.default.createElement(n,{key:e,config:t,onChange:a,dataset:r[e]})})),s.default.createElement(x,null,s.default.createElement(f.FormattedMessage,{id:"compare.modeLabel"}),s.default.createElement(g.default,{checked:t.compareMode,id:"compare-mode-toggle",onChange:function(){var e=_(_({},t),{},{compareMode:!t.compareMode});a(e)},secondary:!0})),s.default.createElement(p.SidePanelSection,null,s.default.createElement(p.PanelLabel,null,s.default.createElement(f.FormattedMessage,{id:"compare.typeLabel"})),s.default.createElement(v.default,{disabled:!t.compareMode,displayOption:function(e){return i.formatMessage({id:"compare.types.".concat(e)})},selectedItems:t.compareType,options:Object.values(y.COMPARE_TYPES),multiSelect:!1,searchable:!1,inputTheme:"secondary",getOptionValue:function(e){return e},onChange:function(e){var n=_(_({},t),{},{compareType:e});a(n)}})))}))}M.deps=[h.default,b.default];var w=M;t.default=w},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(5)),o=a(n(7)),l=a(n(17)),u=a(n(9)),s=a(n(10)),c=a(n(8)),d=a(n(4)),f=r(n(0)),p=a(n(1)),h=n(40),m=a(n(975)),g=a(n(976)),v=n(58),y=a(n(542)),b=n(68),A=n(74),_=n(51);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 n,r=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function E(e,t){var n=function(n){(0,u.default)(a,n);var r=O(a);function a(){var e;(0,i.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o * + * {\n margin-top: 6px;\n }\n ",";\n font-family: ",";\n font-size: 11px;\n font-weight: 500;\n background-color: ",";\n color: ",";\n z-index: 1000;\n overflow-x: auto;\n box-shadow: ",";\n\n :hover {\n background-color: ",";\n }\n\n .primary-label {\n color: ",";\n font-size: 10px;\n }\n\n .map-popover__layer-info,\n .coordingate-hover-info {\n & > * + * {\n margin-top: 7px;\n }\n }\n\n table {\n width: auto;\n display: grid;\n border-collapse: collapse;\n row-gap: 5px;\n column-gap: 5px;\n }\n\n .coordingate-hover-info > table {\n grid-template-columns: auto auto auto;\n }\n .map-popover__layer-info > table {\n grid-template-columns: auto auto;\n }\n\n tbody,\n tr {\n display: contents;\n }\n\n td {\n border-color: transparent;\n color: ",";\n }\n\n td.row__value {\n text-align: right;\n font-weight: 500;\n color: ",";\n }\n"])),500,600,(function(e){return e.theme.scrollBar}),(function(e){return e.theme.fontFamily}),(function(e){return e.theme.panelBackground}),(function(e){return e.theme.textColor}),(function(e){return e.theme.panelBoxShadow}),(function(e){return"".concat(e.theme.panelBackground,"dd")}),(function(e){return e.theme.notificationColors.success}),(function(e){return e.theme.textColor}),(function(e){return e.theme.textColorHl})),_=p.default.div(o||(o=(0,d.default)(["\n display: flex;\n align-self: center;\n align-items: center;\n justify-items: center;\n & > * + * {\n margin-left: 10px;\n }\n"]))),O=p.default.div(l||(l=(0,d.default)(["\n display: flex;\n flex-direction: column;\n & > * + * {\n margin-top: 12px;\n }\n"]))),E=p.default.div(u||(u=(0,d.default)(["\n color: ",";\n\n &.popover-pin {\n transform: rotate(30deg);\n }\n\n :hover {\n cursor: pointer;\n color: ",";\n }\n"])),(function(e){return e.theme.activeColor}),(function(e){return e.theme.linkBtnColor}));function x(e){var t=e.placement,n=(e.reference,e.popper,arguments.length>1&&void 0!==arguments[1]?arguments[1]:20);switch(t){case"top-start":case"bottom-start":return[n,n];case"top-end":case"bottom-end":return[-n,n];default:return[0,0]}}function M(e){return{modifiers:[{name:"preventOverflow",options:{boundary:e}}]}}function w(e,t){return(0,v.injectIntl)((function(n){var r=n.x,a=n.y,i=n.frozen,o=n.coordinate,l=n.layerHoverProp,u=n.isBase,d=n.zoom,p=n.container,h=n.onClose,m=(0,f.useState)("start"),v=(0,c.default)(m,2),w=v[0],S=v[1],T=function(){return S("end")},C=function(){return S("start")};return f.default.createElement(b.default,{popperOptions:M(p),zIndex:999,visible:!0,interactive:!0,getReferenceClientRect:function(){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=e&&e.getBoundingClientRect?e.getBoundingClientRect():{},i=(a.left||0)+t-r/2,o=(a.top||0)+n-r/2;return{left:i,top:o,right:i+r,bottom:o+r,width:r,height:r}}(p,r,a)},placement:"bottom-".concat(w),offset:x,appendTo:document.body,render:function(n){return f.default.createElement(A,(0,s.default)({},n,{className:"map-popover"}),i?f.default.createElement(_,null,"start"===w&&f.default.createElement(E,{className:"popover-arrow-left",onClick:T},f.default.createElement(g.ArrowLeft,null)),f.default.createElement(E,{className:"popover-pin",onClick:h},f.default.createElement(g.Pin,{height:"16px"})),"end"===w&&f.default.createElement(E,{className:"popover-arrow-right",onClick:C},f.default.createElement(g.ArrowRight,null)),u&&f.default.createElement("div",{className:"primary-label"},f.default.createElement(y.FormattedMessage,{id:"mapPopover.primary"}))):null,f.default.createElement(O,null,Array.isArray(o)&&f.default.createElement(t,{coordinate:o,zoom:d}),l&&f.default.createElement(e,l)))}})}))}w.deps=[h.default,m.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=n(75),o=n(58),l=n(567),u=function(){return function(e){var t=e.coordinate,n=e.zoom;return a.default.createElement("div",{className:"coordingate-hover-info"},a.default.createElement(l.StyledLayerName,{className:"map-popover__layer-name"},a.default.createElement(o.CursorClick,{height:"12px"}),"Coordinate"),a.default.createElement("table",null,a.default.createElement("tbody",null,a.default.createElement("tr",{className:"row"},a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(t[1],6),","),a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(t[0],6),","),a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(n,1),"z")))))}};t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(27)),o=r(n(72)),l=r(n(16)),u=r(n(0)),s=r(n(15)),c=r(n(563)),d=r(n(982)),f=r(n(1140)),p=r(n(1141)),h=r(n(1143)),m=r(n(1145)),g=r(n(1147)),v=s.default.div(a||(a=(0,l.default)(["\n right: 0;\n padding: ","px;\n z-index: 10;\n margin-top: ","px;\n position: absolute;\n display: grid;\n row-gap: 8px;\n justify-items: end;\n pointer-events: none; /* prevent padding from blocking input */\n & > * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return e.theme.mapControl.padding}),(function(e){return e.top||0})),y=u.default.createElement(c.default,{version:!1,appName:"kepler.gl"});function b(e,t,n,r,a,l){var s=[n,a,t,r,e,l],c=function(e){var t=e.actionComponents,n=void 0===t?s:t,r=(0,o.default)(e,["actionComponents"]);return u.default.createElement(v,{className:"map-control",top:r.top},n.map((function(e,t){return u.default.createElement(e,(0,i.default)({key:t,className:"map-control-action"},r))})))};return c.defaultProps={isSplit:!1,top:0,mapIndex:0,logoComponent:y},c.displayName="MapControl",u.default.memo(c)}b.deps=[m.default,f.default,d.default,h.default,p.default,g.default];var A=b;t.default=A},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(40),u=n(58),s=r(n(241)),c=r(n(288));function d(e){var t={delete:u.Delete,split:u.Split},n=function(n){var r=n.isSplit,a=n.mapIndex,u=n.onToggleSplitMap,s=n.actionIcons,c=void 0===s?t:s,d=n.mapControls,f=n.readOnly,p=(null==d?void 0:d.splitMap)||{},h=(0,i.useCallback)((function(e){e.preventDefault(),u(r?a:void 0)}),[r,a,u]),m=(0,i.useMemo)((function(){return p.show&&!0!==f}),[p.show,f]);return p.show&&m?i.default.createElement(l.MapControlButton,{active:r,onClick:h,key:"split-".concat(r),className:(0,o.default)("map-control-button","split-map",{"close-map":r}),"data-tip":!0,"data-for":"action-toggle"},r?i.default.createElement(c.delete,{height:"18px"}):i.default.createElement(c.split,{height:"18px"}),i.default.createElement(e,{id:"action-toggle",message:r?"tooltip.closePanel":"tooltip.switchToDualView"})):null};return n.displayName="SplitMapButton",i.default.memo(n)}d.deps=[s.default,c.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.providerStateLens=t.uiStateLens=t.visStateLens=t.mapStyleLens=t.mapStateLens=t.default=t.coreReducerFactory=void 0;var a=n(268),i=n(984),o=n(1009),l=n(1010),u=n(1705),s=n(1709),c=r(n(1713)),d=a.combineReducers,f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d({visState:(0,i.visStateReducerFactory)(e.visState),mapState:(0,o.mapStateReducerFactory)(e.mapState),mapStyle:(0,l.mapStyleReducerFactory)(e.mapStyle),uiState:(0,u.uiStateReducerFactory)(e.uiState),providerState:(0,s.providerStateReducerFactory)(e.providerState)})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){return c.default[n.type]?c.default[n.type](t,n):f(e)(t,n)}};t.coreReducerFactory=p;var h=p();t.default=h;t.mapStateLens=function(e){return{mapState:e.mapState}};t.mapStyleLens=function(e){return{mapStyle:e.mapStyle}};t.visStateLens=function(e){return{visState:e.visState}};t.uiStateLens=function(e){return{uiState:e.uiState}};t.providerStateLens=function(e){return{providerState:e.providerState}}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.visStateReducerFactory=void 0;var i,o=r(n(4)),l=r(n(134)),u=n(100),s=a(n(407));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.handleActions)(f,d(d(d({},s.INITIAL_VIS_STATE),e),{},{initialState:e}))};t.visStateReducerFactory=p;var h=p();t.default=h},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(5)),o=a(n(7)),l=a(n(9)),u=a(n(10)),s=a(n(8)),c=a(n(4)),d=r(n(0)),f=a(n(1)),p=a(n(33));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 n,r=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var m=function(e){(0,l.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,o.default)(n,[{key:"render",value:function(){return d.default.createElement(p.default,this.props,d.default.createElement("g",{transform:"translate(8, 8)"},d.default.createElement("path",{d:"M31.5059707,24 L47.5987718,7.90719891 C48.1337427,7.37222791 48.1337427,6.50972364 47.5987718,5.97475264 L42.0252474,0.40122825 C41.4902764,-0.13374275 40.6277721,-0.13374275 40.0928011,0.40122825 L24,16.4940293 L7.90719891,0.40122825 C7.37222791,-0.13374275 6.50972364,-0.13374275 5.97475264,0.40122825 L0.40122825,5.97475264 C-0.13374275,6.50972364 -0.13374275,7.37222791 0.40122825,7.90719891 L16.4940293,24 L0.40122825,40.0928011 C-0.13374275,40.6277721 -0.13374275,41.4902764 0.40122825,42.0252474 L5.97475264,47.5987718 C6.50972364,48.1337427 7.37222791,48.1337427 7.90719891,47.5987718 L24,31.5059707 L40.0928011,47.5987718 C40.6277721,48.1337427 41.4902764,48.1337427 42.0252474,47.5987718 L47.5987718,42.0252474 C48.1337427,41.4902764 48.1337427,40.6277721 47.5987718,40.0928011 L31.5059707,24 Z"})))}}]),n}(d.Component);t.default=m,(0,c.default)(m,"propTypes",{height:f.default.string}),(0,c.default)(m,"defaultProps",{height:"16px",predefinedClassName:"data-ex-icons-delete"})},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.visStateSchema=t.visStateSchemaV1=t.visStateSchemaV0=t.propertiesV1=t.propertiesV0=t.filterPropsV1=t.SplitMapsSchema=t.DimensionFieldSchema=t.filterPropsV0=t.InteractionSchemaV1=t.FilterSchemaV0=t.LayerSchemaV0=t.layerPropsV1=t.layerPropsV0=t.dimensionPropsV0=void 0;var a,i=r(n(80)),o=r(n(55)),l=r(n(5)),u=r(n(7)),s=r(n(17)),c=r(n(9)),d=r(n(10)),f=r(n(8)),p=r(n(4)),h=r(n(207)),m=n(242),g=n(211),v=n(180),y=r(n(340)),b=r(n(176)),A=n(76);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t ").concat(n[1].defaultName," arc"),{props:[r]}}}]),n}(f.default);t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editShader=function(e,t,n,a){if(!e.includes(n))return r.console.error("Cannot edit ".concat(t," layer shader")),e;return e.replace(n,a)};var r=n(61)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.aggregate=function(e,t){switch(t){case o.AGGREGATION_TYPES.average:return(0,i.mean)(e);case o.AGGREGATION_TYPES.countUnique:return Object.keys(e.reduce((function(e,t){return e[t]=e[t]||0,e[t]+=1,e}),{})).length;case o.AGGREGATION_TYPES.mode:return c(e);case o.AGGREGATION_TYPES.maximum:return(0,i.max)(e);case o.AGGREGATION_TYPES.minimum:return(0,i.min)(e);case o.AGGREGATION_TYPES.median:return(0,i.median)(e);case o.AGGREGATION_TYPES.stdev:return(0,i.deviation)(e);case o.AGGREGATION_TYPES.sum:return(0,i.sum)(e);case o.AGGREGATION_TYPES.variance:return(0,i.variance)(e);default:return e.length}},t.getMode=t.getFrequency=void 0;var a=r(n(4)),i=n(113),o=n(41);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=t[n]?e:n}),Object.keys(t)[0])};t.getMode=c},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMessages=t.flattenMessages=void 0;var a=r(n(4)),i=n(86),o=n(98);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(r,a){var i=t[a],o=n?"".concat(n,".").concat(a):a;return"string"==typeof i?r[o]=i:Object.assign(r,e(i,o)),r}),{})};t.flattenMessages=s;t.mergeMessages=function(e,t){if(!(0,i.isObject)(t)||!(0,i.isObject)(t.en))return o.console.error("message should be an object and contain at least the `en` translation. Read more at https://docs.kepler.gl/docs/api-reference/localization"),e;var n=s(t.en);return Object.keys(e).reduce((function(r,i){return u(u({},r),{},(0,a.default)({},i,"en"===i?u(u({},e.en),n):u(u(u({},e[i]),n),s(t[i]||{}))))}),{})}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var o={property:{weight:"pes",label:"etiqueta",fillColor:"color fons",color:"color",coverage:"cobertura",strokeColor:"color de traç",radius:"radi",outline:"outline",stroke:"traç",density:"densitat",height:"alçada",sum:"suma",pointCount:"Recompte de Punts"},placeholder:{search:"Cerca",selectField:"Selecciona un camp",yAxis:"Eix Y",selectType:"Selecciona un Tipus",selectValue:"Selecciona un Valor",enterValue:"Entra un valor",empty:"buit"},misc:{by:"",valuesIn:"Valors a",valueEquals:"Valor igual a",dataSource:"Font de dades",brushRadius:"Radi del pinzell (km)",empty:" "},mapLayers:{title:"Capes del mapa",label:"Etiqueta",road:"Carretera",border:"Frontera",building:"Edifici",water:"Aigua",land:"Terra","3dBuilding":"Edifici 3D"},panel:{text:{label:"etiqueta",labelWithId:"Etiqueta {labelId}",fontSize:"Mida de la font",fontColor:"Color de la font",textAnchor:"Àncora del text",alignment:"Alineació",addMoreLabel:"Afegeix més etiquetes"}},sidebar:{panels:{layer:"Capes",filter:"Filtres",interaction:"Interaccions",basemap:"Mapa base"}},layer:{required:"Requerit*",radius:"Radi",color:"Color",fillColor:"Color fons",outline:"Contorn",weight:"Gruix",propertyBasedOn:"{property} basada en",coverage:"Cobertura",stroke:"Traç",strokeWidth:"Amplada de traç",strokeColor:"Color de traç",basic:"Basic",trailLength:"Longitud de pista",trailLengthDescription:"Nombre de segons fins que desapareix el camí",newLayer:"nova capa",elevationByDescription:"Si desactivat, l'alçada es basa en el recompte de punts",colorByDescription:"Si desactivat, el color es basa en el recompte de punts",aggregateBy:"{field} agregat per","3DModel":"Model 3D","3DModelOptions":"Opcions del model 3D",type:{point:"punt",arc:"arc",line:"línia",grid:"malla",hexbin:"hexbin",polygon:"polígon",geojson:"geojson",cluster:"cluster",icon:"icona",heatmap:"heatmap",hexagon:"hexàgon",hexagonid:"H3",trip:"viatge",s2:"S2","3d":"3D"}},layerVisConfigs:{angle:"Angle",strokeWidth:"Amplada traç",strokeWidthRange:"Rang amplada de traç",radius:"Radi",fixedRadius:"Radi fixe a mesurar",fixedRadiusDescription:"Ajusta el radi al radi absolut en metres, p.ex 5 a 5 metres",radiusRange:"Rang de radi",clusterRadius:"Radi Cluster en Pixels",radiusRangePixels:"Rang del radi en pixels",opacity:"Opacitat",coverage:"Cobertura",outline:"Outline",colorRange:"Rang de color",stroke:"Traç",strokeColor:"Color de traç",strokeColorRange:"Rang de color de traç",targetColor:"Color destí",colorAggregation:"Agregació de color",heightAggregation:"Agregació alçada",resolutionRange:"Rang de resolució",sizeScale:"Mida escala",worldUnitSize:"Mida de la unitat mundial",elevationScale:"Escala elevació",enableElevationZoomFactor:"Utilitzeu el factor de zoom d’elevació",enableElevationZoomFactorDescription:"'Ajusteu l'alçada / elevació en funció del factor de zoom actual",enableHeightZoomFactor:"Utilitzeu el factor de zoom d’alçada",heightScale:"Escala alçada",coverageRange:"Rang ed cobertura",highPrecisionRendering:"Representació alta precisió",highPrecisionRenderingDescription:"La precisió alta tindrà rendiment més baix",height:"Alçada",heightDescription:"Fes clic al botó a dalt a la dreta del mapa per canviar a vista 3D",fill:"Omple",enablePolygonHeight:"Activa alçada del polígon",showWireframe:"Mostra Wireframe",weightIntensity:"Intensitat de pes",zoomScale:"Escala de zoom",heightRange:"Rang alçada",heightMultiplier:"Multiplicador d'alçada"},layerManager:{addData:"Afegeix Dades",addLayer:"Afegeix Capes",layerBlending:"Combinar capes"},mapManager:{mapStyle:"Estil de mapa",addMapStyle:"Afegeix estils de mapa","3dBuildingColor":"Color edifici 3D"},layerConfiguration:{defaultDescription:"Calcula {property} segons el camp seleccionat",howTo:"How to"},filterManager:{addFilter:"Afegeix Filtre"},datasetTitle:{showDataTable:"Mostra taula de dades",removeDataset:"Elimina conjunt de dades"},datasetInfo:{rowCount:"{rowCount} files"},tooltip:{hideLayer:"oculta la capa",showLayer:"mostra la capa",hideFeature:"Amaga l'objecte",showFeature:"Mostra l'objecte",hide:"amaga",show:"mostra",removeLayer:"Elimina capa",layerSettings:"Configuració de capa",closePanel:"Tanca panel actual",switchToDualView:"Canvia a la vista de mapa dual",showLegend:"mostra llegenda",disable3DMap:"Desactiva mapa 3D",DrawOnMap:"Dibuixa al mapa",selectLocale:"Selecciona configuració regional",hideLayerPanel:"Oculta el tauler de capes",showLayerPanel:"Mostra el tauler de capes",moveToTop:"Desplaça a dalt de tot de les capes de dades",selectBaseMapStyle:"Selecciona estil de mapa base",delete:"Esborra",timePlayback:"Reproducció de temps",cloudStorage:"Emmagatzematge al núvol","3DMap":"Mapa 3D",animationByWindow:"Finestra Temporal Mòbil",animationByIncremental:"Finestra Temporal Incremental",speed:"velocitat",play:"iniciar",pause:"pausar",reset:"reiniciar"},toolbar:function(e){for(var t=1;t 5 metriin",radiusRange:"Säteen rajat",clusterRadius:"Klusterien säde pikseleinä",radiusRangePixels:"Säteen rajat pikseleinä",opacity:"Läpinäkyvyys",coverage:"Kattavuus",outline:"Ääriviiva",colorRange:"Värien rajat",stroke:"Viiva",strokeColor:"Viivan väri",strokeColorRange:"Viivan värin rajat",targetColor:"Kohteen väri",colorAggregation:"Värien aggregointi",heightAggregation:"Korkeuden aggregointi",resolutionRange:"Resoluution rajat",sizeScale:"Koon skaala",worldUnitSize:"Yksikkö",elevationScale:"Korottamisen skaala",enableElevationZoomFactor:"Käytä korkeuden zoomauskerrointa",enableElevationZoomFactorDescription:"Säädä korkeus / korkeus nykyisen zoomauskertoimen perusteella",enableHeightZoomFactor:"Käytä korkeuden zoomauskerrointa",heightScale:"Korkeuden skaala",coverageRange:"Peittävyyden rajat",highPrecisionRendering:"Tarkka renderöinti",highPrecisionRenderingDescription:"Tarkka renderöinti johtaa hitaampaan suorittamiseen",height:"Korkeus",heightDescription:"Klikkaa oikeasta ylänurkasta nappia vaihtaaksesi 3D-näkymään",fill:"Täyttö",enablePolygonHeight:"Salli polygonien korkeus",showWireframe:"Näytä rautalankamalli",weightIntensity:"Painotuksen intensiteetti",zoomScale:"Zoomausskaala",heightRange:"Korkeuden rajat",heightMultiplier:"Korkeuskerroin"},layerManager:{addData:"Lisää aineisto",addLayer:"Lisää taso",layerBlending:"Tasojen sekoittuvuus"},mapManager:{mapStyle:"Kartan tyyli",addMapStyle:"Lisää tyyli kartalle","3dBuildingColor":"3D-rakennusten väri"},layerConfiguration:{defaultDescription:"Laske suureen {property} arvo valitun kentän perusteella",howTo:"Miten toimii"},filterManager:{addFilter:"Lisää suodatin"},datasetTitle:{showDataTable:"Näytä attribuuttitaulu",removeDataset:"Poista aineisto"},datasetInfo:{rowCount:"{rowCount} riviä"},tooltip:{hideLayer:"Piilota taso",showLayer:"Näytä taso",hideFeature:"Piilota kohde",showFeature:"Näytä kohde",hide:"piilota",show:"näytä",removeLayer:"Poista taso",layerSettings:"Tason asetukset",closePanel:"Sulje paneeli",switchToDualView:"Vaihda kaksoiskarrtanäkymään",showLegend:"Näytä selite",disable3DMap:"Poistu 3D-näkymästä",DrawOnMap:"Piirrä kartalle",selectLocale:"Valitse kielisyys",hideLayerPanel:"Piilota tasopaneeli",showLayerPanel:"Näytä tasopaneeli",moveToTop:"Siirrä tasojen päällimmäiseksi",selectBaseMapStyle:"Valitse taustakarttatyyli",delete:"Poista",timePlayback:"Ajan animointi",cloudStorage:"Pilvitallennus","3DMap":"3D-näkymä"},toolbar:function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.length>0)return n.slice().reverse().filter((function(t){return e[t].overlayType===o.OVERLAY_TYPE.mapboxgl&&r[e[t].id]})).reduce((function(n,r){var a=e[r];return u(u({},n),{},(0,i.default)({},a.id,{id:a.id,data:t[r].data,isVisible:a.config.isVisible,config:t[r].config,hidden:a.config.hidden,sourceId:t[r].config.source}))}),{});return{}},t.updateMapboxLayers=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&s(e,n,t);Object.values(t).forEach((function(t){var r=t.id,a=t.config,i=t.data,o=t.sourceId,l=t.isVisible;if(i||a){var u=n&&n[r]||{},s=u.data,f=u.config;i&&i!==s&&d(e,o,i),f!==a&&c(e,r,a,l)}}))},t.geoJsonFromData=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){},r={type:"FeatureCollection",features:[]},a=0;a=",f(n),t[r][0]],["<=",f(n),t[r][1]]]):e}),["all"])},t.prefixGpuField=void 0;var a=r(n(36)),i=r(n(4)),o=n(146);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t1e4?(0,i.getSampleData)(e,1e4):e).mapIndex(t.valueAccessor).map(o.parseGeoJsonRawFeature).filter((function(e){return e}));if(!(0,o.getGeojsonFeatureTypes)(n).line)return!1;if(!l(n))return!1;var r=n[0].geometry.coordinates.map((function(e){return e[3]}));return Boolean(u(r))},t.parseTripGeoJsonTimestamp=function(e){var t={dataToTimeStamp:[],animationDomain:null},n=e.find((function(e){return e&&e.geometry&&e.geometry.coordinates&&e.geometry.coordinates.length>=3}));if(!n)return t;var r=u(n.geometry.coordinates.map((function(e){return e[3]})));if(!r)return t;var i=r.format,o=function(e){return e&&(0,a.notNullorUndefined)(e[3])?(0,a.timeToUnixMilli)(e[3],i):null},l=e.map((function(e){return e&&e.geometry&&Array.isArray(e.geometry.coordinates)?e.geometry.coordinates.map(o):null})),s=d(l);return{dataToTimeStamp:l,animationDomain:s}},t.getAnimationDomainFromTimestamps=d;var r=n(273),a=n(76),i=n(285),o=n(581);function l(e){for(var t=!0,n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e.find((function(e){return(0,a.notNullorUndefined)(e)&&Number.isFinite(e)}))||null}function c(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>0;){if((0,a.notNullorUndefined)(e[t])&&Number.isFinite(e[t]))return e[t];t--}return null}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){var n=s(t),r=c(t);return Number.isFinite(n)&&Number.isFinite(r)&&(e[0]=Math.min(e[0],n),e[1]=Math.max(e[1],r)),e}),[1/0,-1/0])}},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mapStateReducerFactory=void 0;var i,o=r(n(4)),l=n(100),u=r(n(134)),s=a(n(584));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.handleActions)(f,d(d(d({},s.INITIAL_MAP_STATE),e),{},{initialState:e}))};t.mapStateReducerFactory=p;var h=p();t.default=h},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.mapStyleReducerFactory=void 0;var i,o=r(n(4)),l=n(100),u=r(n(134)),s=a(n(586));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.handleActions)(f,d(d(d({},s.INITIAL_MAP_STYLE),e),{},{initialState:e}))};t.mapStyleReducerFactory=p;var h=p();t.default=h},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultLayerGroupVisibility=function(e){var t=e.layerGroups;return(void 0===t?[]:t).reduce((function(e,t){return s(s({},e),{},(0,a.default)({},t.slug,t.defaultVisibility))}),{})},t.isValidStyleUrl=function(e){return"string"==typeof e&&Boolean(e.match(c)||e.match(d))},t.getStyleDownloadUrl=function(e,t,n){if(e.startsWith("http"))return e;if(e.startsWith("mapbox://styles")){var r=e.replace("mapbox://styles/","");return"".concat(n||l.DEFAULT_MAPBOX_API_URL,"/styles/v1/").concat(r,"?pluginName=Keplergl&access_token=").concat(t)}return null},t.getStyleImageIcon=function(e){var t=e.styleUrl,n=e.mapboxApiAccessToken,r=e.mapboxApiUrl,a=void 0===r?l.DEFAULT_MAPBOX_API_URL:r,i=e.mapState,o=void 0===i?{longitude:-122.3391,latitude:37.7922,zoom:9}:i,u=e.mapW,s=void 0===u?400:u,c=e.mapH,d=void 0===c?300:c,f=t.replace("mapbox://styles/","");return"".concat(a,"/styles/v1/").concat(f,"/static/")+"".concat(o.longitude,",").concat(o.latitude,",").concat(o.zoom,",0,0/")+"".concat(s,"x").concat(d)+"?access_token=".concat(n,"&logo=false&attribution=false")},t.scaleMapStyleByResolution=function(e,t){if(1!==t&&e){var n=l.DEFAULT_LAYER_GROUPS.find((function(e){return"label"===e.slug})).filter,r=Math.log2(t),a=(0,o.default)(e);return(a.layers||[]).forEach((function(e){e.maxzoom&&(e.maxzoom=Math.max(e.maxzoom+r,1)),e.minzoom&&(e.minzoom=Math.max(e.minzoom+r,1)),n(e)&&e.layout&&e.layout["text-size"]&&Array.isArray(e.layout["text-size"].stops)&&e.layout["text-size"].stops.forEach((function(e){e[0]=Math.max(e[0]+r,1),e[1]*=t}))})),a}return e},t.mergeLayerGroupVisibility=function(e,t){return Object.keys(e).reduce((function(e,n){return s(s({},e),t.hasOwnProperty(n)?(0,a.default)({},n,t[n]):{})}),e)},t.editBottomMapStyle=t.editTopMapStyle=void 0;var a=r(n(4)),i=r(n(157)),o=r(n(176)),l=n(41);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=o[0],r=t?f:p;return l.default.createElement("rect",{className:(0,d.default)({"in-range":t}),key:e.x0,height:b(v(e)),width:A*r,x:y(e.x0)+A*(1-r)/2,rx:1,ry:1,y:n-b(v(e))})}))),l.default.createElement("g",{transform:"translate(".concat(a?0:A/2,", 0)")},c))};return function(t){return t.histogram&&t.histogram.length?l.default.createElement(e,t):null}};t.default=m},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l=r(n(27)),u=r(n(16)),s=a(n(0)),c=n(1183),d=r(n(15)),f=n(76),p=d.default.div(i||(i=(0,u.default)(["\n .rv-xy-plot {\n /* important for rendering hint */\n position: relative;\n }\n .rv-xy-plot__inner {\n /* important to show axis */\n overflow: visible;\n }\n\n .rv-xy-plot__grid-lines__line {\n stroke: ",";\n stroke-dasharray: 1px 4px;\n }\n\n .rv-xy-plot__axis__tick__text {\n font-size: 9px;\n fill: ",";\n }\n"])),(function(e){return e.theme.histogramFillOutRange}),(function(e){return e.theme.textColor})),h=d.default.div(o||(o=(0,u.default)(["\n background-color: #d3d8e0;\n border-radius: 2px;\n color: ",";\n font-size: 9px;\n margin: 4px;\n padding: 3px 6px;\n pointer-events: none;\n user-select: none;\n"])),(function(e){return e.theme.textColorLT})),m=function(e){var t=e.x,n=e.y,r=e.format;return s.default.createElement(h,null,s.default.createElement("div",{className:"hint--x"},r(t)),s.default.createElement("div",{className:"row"},n))},g={top:0,bottom:0,left:0,right:0};var v=function(){return function(e){var t=e.brushComponent,n=e.brushing,r=e.color,a=e.enableChartHover,i=e.height,o=e.hoveredDP,u=e.isEnlarged,d=e.lineChart,h=e.margin,v=e.onMouseMove,y=e.width,b=e.timezone,A=e.timeFormat,_=d.series,O=d.yDomain,E=(0,s.useMemo)((function(){return[{x:_[0].x,y:O[1],customComponent:function(){return t}}]}),[_,O,t]),x=(0,s.useMemo)((function(){return(0,f.datetimeFormatter)(b)(A)}),[b,A]);return s.default.createElement(p,{style:{marginTop:"".concat(h.top,"px")}},s.default.createElement(c.XYPlot,{xType:"time",width:y,height:i,margin:g,onMouseLeave:function(){v(null)}},s.default.createElement(c.HorizontalGridLines,{tickTotal:3}),s.default.createElement(c.LineSeries,{style:{fill:"none"},strokeWidth:2,color:r,data:_,onNearestX:a?v:null}),s.default.createElement(c.MarkSeries,{data:o?[o]:[],color:r,size:3}),s.default.createElement(c.CustomSVGSeries,{data:E}),u&&s.default.createElement(c.YAxis,{tickTotal:3}),o&&a&&!n?s.default.createElement(c.Hint,{value:o},s.default.createElement(m,(0,l.default)({},o,{format:x}))):null))}};t.default=v},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(5)),i=r(n(7)),o=r(n(4)),l=r(n(178));function u(){}var s=function(){function e(t){var n=this,r=t.vertical,i=void 0!==r&&r,s=t.valueListener,c=void 0===s?u:s,d=t.toggleMouseOver,f=void 0===d?u:d,p=t.track,h=t.setAnchor,m=void 0===h?null:h;(0,a.default)(this,e),(0,o.default)(this,"handleMouseDown",(function(e){if(l.default.addEventListener("mouseup",n._mouseup),l.default.addEventListener("mousemove",n._mousemove),n._setAnchor){var t=n._getMousePos(e);n._setAnchor(n._getDistanceToTrack(t))}n._toggleMouseOver()})),(0,o.default)(this,"_mouseup",(function(){l.default.removeEventListener("mouseup",n._mouseup),l.default.removeEventListener("mousemove",n._mousemove),n._toggleMouseOver()})),(0,o.default)(this,"_mousemove",(function(e){e.preventDefault();var t=n._getMousePos(e);n._valueListener(n._getDistanceToTrack(t))})),(0,o.default)(this,"handleTouchStart",(function(e){if(l.default.addEventListener("touchend",n._touchend),l.default.addEventListener("touchmove",n._touchmove),n._setAnchor){var t=n._getTouchPosition(e);n._setAnchor(n._getDistanceToTrack(t))}n._toggleMouseOver()})),(0,o.default)(this,"_touchmove",(function(e){var t=n._getTouchPosition(e);n._valueListener(n._getDistanceToTrack(t))})),(0,o.default)(this,"_touchend",(function(){l.default.removeEventListener("touchend",n._touchend),l.default.removeEventListener("touchmove",n._touchmove),n._toggleMouseOver()})),this._vertical=i,this._valueListener=c,this._toggleMouseOver=f,this._track=p,this._setAnchor=m}return(0,i.default)(e,[{key:"_getMousePos",value:function(e){return this._vertical?e.clientY:e.clientX}},{key:"_getTouchPosition",value:function(e){return this._vertical?e.touches[0].clientY:e.touches[0].clientX}},{key:"_getDistanceToTrack",value:function(e){var t=this._track.current.getBoundingClientRect();return e-(this._vertical?t.bottom:t.left)}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.getTickFormat=x,t.getXAxis=M,t.updateAxis=w,t.default=void 0;var i,o=r(n(16)),l=a(n(0)),u=r(n(376)),s=r(n(1)),c=n(150),d=n(127),f=n(1197),p=r(n(15)),h=n(76),m=p.default.svg(i||(i=(0,o.default)(["\n pointer-events: none;\n position: absolute;\n top: 0;\n overflow: visible;\n margin-top: 6px;\n\n .axis text {\n font-size: ",";\n fill: ",";\n }\n\n .axis line,\n .axis path {\n fill: none;\n stroke: ",";\n shape-rendering: crispEdges;\n stroke-width: 2;\n }\n\n .axis .domain {\n display: none;\n }\n\n .value {\n fill: ",";\n font-size: ",";\n\n &.start {\n text-anchor: start;\n }\n\n &.end {\n text-anchor: end;\n }\n }\n"])),(function(e){return e.theme.axisFontSize}),(function(e){return e.theme.axisFontColor}),(function(e){return e.theme.sliderBarBgd}),(function(e){return e.theme.axisFontColor}),(function(e){return e.theme.axisFontSize})),g=".SSS",v=":ss",y="HH:ss",b="HH A",A="ddd DD",_="MMM DD",O="MMM",E="YYYY";function x(e){var t=e?function(t){return(0,u.default)(t).tz(e)}:u.default,n=(0,h.datetimeFormatter)(e);return function(e){return(t(e).startOf("second")1&&g.default.createElement(e,{datasets:l,id:a.id,dataId:v.dataId,onSelect:function(e){return u({dataId:e})}}),g.default.createElement(i,{columnPairs:a.columnPairs,columns:a.config.columns,assignColumnPairs:a.assignColumnPairs.bind(a),assignColumn:a.assignColumn.bind(a),columnLabels:a.columnLabels,fields:p,fieldPairs:m,updateLayerConfig:u,updateLayerType:this.props.updateLayerType})),this[O]&&this[O]({layer:a,dataset:_,visConfiguratorProps:y,layerChannelConfigProps:A,layerConfiguratorProps:b}))}}]),h}(g.Component);return(0,h.default)(f,"propTypes",{layer:v.default.object.isRequired,datasets:v.default.object.isRequired,layerTypeOptions:v.default.arrayOf(v.default.any).isRequired,openModal:v.default.func.isRequired,updateLayerConfig:v.default.func.isRequired,updateLayerType:v.default.func.isRequired,updateLayerVisConfig:v.default.func.isRequired,updateLayerVisualChannelConfig:v.default.func.isRequired,updateLayerColorUI:v.default.func.isRequired}),f}t.getLayerChannelConfigProps=Y,W.deps=[S.default,C.default,P.default,L.default,J,E.default,x.default,T.default];var G=y.default.div(l||(l=(0,m.default)(["\n position: absolute;\n right: 12px;\n top: -4px;\n"]))),q=function(e){var t=e.onClick;return g.default.createElement(G,null,g.default.createElement(A.Button,{link:!0,small:!0,onClick:t},g.default.createElement(b.FormattedMessage,{id:"layerConfiguration.howTo"})))};t.HowToButton=q;var X=function(e){var t=e.layer,n=e.onChange,r=(e.label,e.selectedColor),a=e.property,i=void 0===a?"color":a,o=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:r||t.config.color,setColor:function(e){return n((0,h.default)({},i,e))}}],colorUI:t.config.colorUI[i],setColorUI:function(e){return o(i,e)}}))};t.LayerColorSelector=X;var Z=function(e){var t=e.layer,n=e.onChangeConfig,r=e.onChangeVisConfig,a=e.property,i=void 0===a?"color":a,o=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:t.config.color,setColor:function(e){return n({color:e})},label:"Source"},{selectedColor:t.config.visConfig.targetColor||t.config.color,setColor:function(e){return r({targetColor:e})},label:"Target"}],colorUI:t.config.colorUI[i],setColorUI:function(e){return o(i,e)}}))};t.ArcLayerColorSelector=Z;var K=function(e){var t=e.layer,n=e.onChange,r=e.property,a=void 0===r?"colorRange":r,i=e.setColorUI;return g.default.createElement(A.SidePanelSection,null,g.default.createElement(w.default,{colorSets:[{selectedColor:t.config.visConfig[a],isRange:!0,setColor:function(e){return n((0,h.default)({},a,e))}}],colorUI:t.config.colorUI[a],setColorUI:function(e){return i(a,e)}}))};function J(e){return function(t){var n=t.layer,r=t.channel,a=t.onChange,i=t.fields,o=t.description,l=r.channelScaleType,u=r.domain,s=r.field,c=r.key,d=r.property,f=r.range,p=r.scale,m=r.defaultMeasure,v=r.supportedFieldTypes||D.CHANNEL_SCALE_SUPPORTED_FIELDS[l],y=i.filter((function(e){var t=e.type;return v.includes(t)})),b=n.getScaleOptions(r.key),A=!n.isAggregated&&n.config[p]&&b.length>1;return g.default.createElement(e,{channel:r.key,description:o||"layerConfiguration.defaultDescription",domain:n.config[u],fields:y,id:n.id,key:"".concat(c,"-channel-selector"),property:d,placeholder:m||"placeholder.selectField",range:n.config.visConfig[f],scaleOptions:b,scaleType:p?n.config[p]:null,selectedField:n.config[s],showScale:A,updateField:function(e){return a((0,h.default)({},s,e),c)},updateScale:function(e){return a((0,h.default)({},p,e),c)}})}}t.LayerColorRangeSelector=K,J.deps=[O.default];var Q=function(e){var t=e.channel,n=e.layer,r=e.onChange,a=t.scale,i=t.key,o=n.getScaleOptions(i);return Array.isArray(o)&&o.length>1?g.default.createElement(M.default,{label:"".concat(i," Scale"),options:o,scaleType:n.config[a],onSelect:function(e){return r((0,h.default)({},a,e),i)}}):null};t.AggrScaleSelector=Q;var $=function(e){var t=e.layer,n=e.channel,r=e.onChange,a=n.field,i=n.aggregation,o=n.key,l=t.config[a],u=t.config.visConfig,s=t.getAggregationOptions(o);return g.default.createElement(A.SidePanelSection,null,g.default.createElement(A.PanelLabel,null,g.default.createElement(b.FormattedMessage,{id:"layer.aggregateBy",values:{field:l.name}})),g.default.createElement(_.default,{selectedItems:u[i],options:s,multiSelect:!1,searchable:!1,onChange:function(e){return r({visConfig:I(I({},t.config.visConfig),{},(0,h.default)({},i,e))},n.key)}}))};t.AggregationTypeSelector=$},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={IDENTITY_FN:function(e){return e},generateAccessor:function(e){return function(t){return t[e]}},generateOptionToStringFor:function(e){return"string"==typeof e?this.generateAccessor(e):"function"==typeof e?e:this.IDENTITY_FN},valueForOption:function(e,t){return"string"==typeof e?t[e]:"function"==typeof e?e(t):t}};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ChickletTag=t.ChickletButton=void 0;var a,i,o,l=r(n(16)),u=r(n(0)),s=r(n(1)),c=r(n(15)),d=r(n(985)),f=n(52),p={onClick:s.default.func.isRequired,removeItem:s.default.func.isRequired,selectedItems:s.default.arrayOf(s.default.any),disabled:s.default.bool,displayOption:s.default.func,focus:s.default.bool,error:s.default.bool,placeholder:s.default.string,inputTheme:s.default.string},h=c.default.div(a||(a=(0,l.default)(["\n background: ",";\n border-radius: 1px;\n color: ",";\n font-size: 11px;\n line-height: 20px;\n margin: 4px 10px 4px 3px;\n padding: 2px 6px;\n display: flex;\n align-items: center;\n max-width: calc(100% - 8px);\n\n :hover {\n color: ",";\n }\n"])),(function(e){return"light"===e.inputTheme?e.theme.chickletBgdLT:e.theme.chickletBgd}),(function(e){return"light"===e.inputTheme?e.theme.textColorLT:e.theme.textColor}),(function(e){return"light"===e.inputTheme?e.theme.textColorHlLT:e.theme.textColorHl}));t.ChickletButton=h;var m=c.default.span(i||(i=(0,l.default)(["\n margin-right: 10px;\n text-overflow: ellipsis;\n width: 100%;\n overflow: hidden;\n\n :hover {\n overflow: visible;\n }\n"])));t.ChickletTag=m;var g=function(e){var t=e.disabled,n=e.name,r=e.remove,a=e.inputTheme;return u.default.createElement(h,{inputTheme:a},u.default.createElement(m,null,n),u.default.createElement(d.default,{onClick:t?null:r}))},v=c.default.div(o||(o=(0,l.default)(["\n ","\n \n color: ",";\n overflow: hidden;\n"])),(function(e){return"secondary"===e.inputTheme?e.theme.secondaryChickletedInput:"light"===e.inputTheme?e.theme.chickletedInputLT:e.theme.chickletedInput}),(function(e){return e.hasPlaceholder?e.theme.selectColorPlaceHolder:e.theme.selectColor})),y=function(e){var t=e.focus,n=e.disabled,r=e.error,a=e.onClick,i=e.className,o=e.selectedItems,l=void 0===o?[]:o,s=e.placeholder,c=void 0===s?"":s,d=e.removeItem,p=e.displayOption,h=void 0===p?function(e){return e}:p,m=e.inputTheme,y=e.CustomChickletComponent;return u.default.createElement(v,{className:"".concat(i," chickleted-input"),focus:t,disabled:n,error:r,onClick:a,inputTheme:m,hasPlaceholder:!l||!l.length},l.length>0?l.map((function(e,t){var r={inputTheme:m,disabled:n,key:"".concat(h(e),"_").concat(t),name:h(e),displayOption:h,item:e,remove:function(t){return d(e,t)}};return y?u.default.createElement(y,r):u.default.createElement(g,r)})):u.default.createElement("span",{className:"".concat(i," chickleted-input__placeholder")},u.default.createElement(f.FormattedMessage,{id:c||"placeholder.enterValue"})))};y.propTypes=p;var b=y;t.default=b},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l,u,s=r(n(27)),c=r(n(5)),d=r(n(7)),f=r(n(17)),p=r(n(9)),h=r(n(10)),m=r(n(8)),g=r(n(4)),v=r(n(16)),y=a(n(0)),b=n(115),A=r(n(1)),_=r(n(915)),O=r(n(49)),E=r(n(15)),x=n(61),M=r(n(1026)),w=a(n(245)),S=n(59),T=r(n(341));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 n,r=(0,m.default)(e);if(t){var a=(0,m.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}var L=E.default.div(i||(i=(0,v.default)(["\n display: flex;\n flex-direction: column;\n background-color: ",";\n box-shadow: ",";\n\n :focus {\n outline: 0;\n }\n"])),(function(e){return e.light?e.theme.dropdownListBgdLT:e.theme.dropdownListBgd}),(function(e){return e.theme.dropdownListShadow})),P=E.default.div.attrs({className:"typeahead__input_box"})(o||(o=(0,v.default)(["\n padding: 8px;\n"]))),k=E.default.input(l||(l=(0,v.default)(["\n "," :hover {\n cursor: pointer;\n background-color: ",";\n }\n"])),(function(e){return e.light?e.theme.inputLT:e.theme.secondaryInput}),(function(e){return e.light?e.theme.selectBackgroundLT:e.theme.secondaryInputBgd})),D=E.default.div.attrs({className:"typeahead__input_icon"})(u||(u=(0,v.default)(["\n position: absolute;\n right: 15px;\n top: 14px;\n color: ",";\n"])),(function(e){return e.theme.inputPlaceholderColor}));function R(e,t,n){var r=t.options,a=t.showOptionsWhenEmpty;return t.searchable?function(e,t,n){var r=!e||0===e.trim().length,a=t&&t.isFocused;return!(n&&a)&&r}(e,n,a)?r:function(e){var t=e.searchOptions,n=e.filterOption;if("function"==typeof t)return null!==n&&x.console.warn("searchOptions prop is being used, filterOption prop will be ignored"),t;if("function"==typeof n)return function(e,t){return t.filter((function(t){return n(e,t)}))};var r="string"==typeof n?M.default.generateAccessor(n):M.default.IDENTITY_FN;return function(e,t){return _.default.filter(e,t,{extract:r}).map((function(e){return t[e.index]}))}}(t)(e,r):r}var j=function(e){(0,p.default)(n,e);var t=C(n);function n(e){var r;return(0,c.default)(this,n),r=t.call(this,e),(0,g.default)((0,f.default)(r),"root",(0,y.createRef)()),(0,g.default)((0,f.default)(r),"entry",(0,y.createRef)()),(0,g.default)((0,f.default)(r),"focus",(function(){r.entry.current&&r.entry.current.focus()})),(0,g.default)((0,f.default)(r),"_hasCustomValue",(function(){return r.props.allowCustomValues>0&&r.state.entryValue.length>=r.props.allowCustomValues&&r.state.searchResults.indexOf(r.state.entryValue)<0})),(0,g.default)((0,f.default)(r),"_getCustomValue",(function(){return r._hasCustomValue()?r.state.entryValue:null})),(0,g.default)((0,f.default)(r),"_onOptionSelected",(function(e,t){return r.props.searchable&&r.setState({searchResults:R("",r.props,r.state),selection:"",entryValue:""}),r.props.onOptionSelected(e,t)})),(0,g.default)((0,f.default)(r),"_onTextEntryUpdated",(function(){if(r.props.searchable){var e=r.entry.current.value;r.setState({searchResults:R(e,r.props,r.state),selection:"",entryValue:e})}})),(0,g.default)((0,f.default)(r),"_onEnter",(function(e){var t=r.getSelection();return t?r._onOptionSelected(t,e):r.props.onKeyDown(e)})),(0,g.default)((0,f.default)(r),"_onEscape",(function(){r.setState({selectionIndex:null})})),(0,g.default)((0,f.default)(r),"_onTab",(function(e){var t=r.getSelection(),n=t||(r.state.searchResults.length>0?r.state.searchResults[0]:null);if(null===n&&r._hasCustomValue()&&(n=r._getCustomValue()),null!==n)return r._onOptionSelected(n,e)})),(0,g.default)((0,f.default)(r),"eventMap",(function(e){var t={};return t[T.default.DOM_VK_UP]=r.navUp,t[T.default.DOM_VK_DOWN]=r.navDown,t[T.default.DOM_VK_RETURN]=t[T.default.DOM_VK_ENTER]=r._onEnter,t[T.default.DOM_VK_ESCAPE]=r._onEscape,t[T.default.DOM_VK_TAB]=r._onTab,t})),(0,g.default)((0,f.default)(r),"_nav",(function(e){if(r._hasHint()){var t=null===r.state.selectionIndex?1===e?0:e:r.state.selectionIndex+e,n=r.props.maxVisible?r.state.searchResults.slice(0,r.props.maxVisible).length:r.state.searchResults.length;r._hasCustomValue()&&(n+=1),t<0?t+=n:t>=n&&(t-=n),r.setState({selectionIndex:t})}})),(0,g.default)((0,f.default)(r),"navDown",(function(){r._nav(1)})),(0,g.default)((0,f.default)(r),"navUp",(function(){r._nav(-1)})),(0,g.default)((0,f.default)(r),"_onChange",(function(e){r.props.onChange&&r.props.onChange(e),r._onTextEntryUpdated()})),(0,g.default)((0,f.default)(r),"_onKeyDown",(function(e){if(!r._hasHint()||e.shiftKey)return r.props.onKeyDown(e);var t=r.eventMap()[e.keyCode];if(!t)return r.props.onKeyDown(e);t(e),e.preventDefault()})),(0,g.default)((0,f.default)(r),"_onFocus",(function(e){if(r.setState({isFocused:!0}),r.props.onFocus)return r.props.onFocus(e)})),(0,g.default)((0,f.default)(r),"_onBlur",(function(e){if(r.setState({isFocused:!1}),r.props.onBlur)return r.props.onBlur(e)})),r.state={searchResults:[],entryValue:r.props.value||r.props.initialValue,selection:r.props.value,selectionIndex:null,isFocused:!1},r}return(0,d.default)(n,[{key:"componentDidMount",value:function(){this.entry.current?this.entry.current.focus():this.root.current.focus()}},{key:"_renderIncrementalSearchResults",value:function(){return y.default.createElement(this.props.customListComponent,{fixedOptions:this.props.fixedOptions,options:this.props.maxVisible?this.state.searchResults.slice(0,this.props.maxVisible):this.state.searchResults,areResultsTruncated:this.props.maxVisible&&this.state.searchResults.length>this.props.maxVisible,resultsTruncatedMessage:this.props.resultsTruncatedMessage,onOptionSelected:this._onOptionSelected,allowCustomValues:this.props.allowCustomValues,customValue:this._getCustomValue(),customClasses:this.props.customClasses,customListItemComponent:this.props.customListItemComponent,customListHeaderComponent:this.props.customListHeaderComponent,selectionIndex:this.state.selectionIndex,defaultClassNames:this.props.defaultClassNames,displayOption:this.props.displayOption,selectedItems:this.props.selectedItems,light:this.props.light})}},{key:"getSelection",value:function(){var e=this.state.selectionIndex;if(this._hasCustomValue()){if(0===e)return this.state.entryValue;e--}return this._hasFixedOptions()?e0||this._hasCustomValue()}},{key:"_hasFixedOptions",value:function(){return Array.isArray(this.props.fixedOptions)&&this.props.fixedOptions.length}},{key:"render",value:function(){var e={};e[this.props.customClasses.input]=Boolean(this.props.customClasses.input);var t=(0,O.default)(e),n=(0,g.default)({},"typeahead",this.props.defaultClassNames);n[this.props.className]=Boolean(this.props.className);var r=(0,O.default)(n);return y.default.createElement(L,{className:r,ref:this.root,tabIndex:"0",onKeyDown:this._onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onFocus:this._onFocus,light:this.props.light},this._renderHiddenInput(),this.props.searchable?y.default.createElement(P,null,y.default.createElement(k,(0,s.default)({ref:this.entry,type:"text",disabled:this.props.disabled},this.props.inputProps,{placeholder:this.props.placeholder,className:t,value:this.state.entryValue,onChange:this._onChange,onBlur:this._onBlur,light:this.props.light})),y.default.createElement(D,null,y.default.createElement(this.props.inputIcon,{height:"18px"}))):null,this._renderIncrementalSearchResults())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{searchResults:R(t.entryValue,e,t)}}}]),n}(y.Component);(0,g.default)(j,"propTypes",{name:A.default.string,customClasses:A.default.object,maxVisible:A.default.number,resultsTruncatedMessage:A.default.string,options:A.default.arrayOf(A.default.any),fixedOptions:A.default.arrayOf(A.default.any),allowCustomValues:A.default.number,initialValue:A.default.string,value:A.default.string,placeholder:A.default.string,disabled:A.default.bool,textarea:A.default.bool,inputProps:A.default.object,onOptionSelected:A.default.func,onChange:A.default.func,onKeyDown:A.default.func,onKeyPress:A.default.func,onKeyUp:A.default.func,onFocus:A.default.func,onBlur:A.default.func,filterOption:A.default.oneOfType([A.default.string,A.default.func]),searchOptions:A.default.func,displayOption:A.default.oneOfType([A.default.string,A.default.func]),inputDisplayOption:A.default.oneOfType([A.default.string,A.default.func]),formInputOption:A.default.oneOfType([A.default.string,A.default.func]),defaultClassNames:A.default.bool,customListComponent:A.default.oneOfType([A.default.element,A.default.func]),customListItemComponent:A.default.oneOfType([A.default.element,A.default.func]),customListHeaderComponent:A.default.oneOfType([A.default.element,A.default.func]),showOptionsWhenEmpty:A.default.bool,searchable:A.default.bool}),(0,g.default)(j,"defaultProps",{options:[],customClasses:{},allowCustomValues:0,initialValue:"",value:"",placeholder:"",disabled:!1,textarea:!1,inputProps:{},onOptionSelected:function(e){},onChange:function(e){},onKeyDown:function(e){},onKeyPress:function(e){},onKeyUp:function(e){},onFocus:function(e){},onBlur:function(e){},filterOption:null,searchOptions:null,inputDisplayOption:null,defaultClassNames:!0,customListComponent:w.default,customListItemComponent:w.ListItem,inputIcon:S.Search,customListHeaderComponent:null,showOptionsWhenEmpty:!0,searchable:!0,resultsTruncatedMessage:null}),(0,b.polyfill)(j);var I=j;t.default=I},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=n(42),o=r(n(148)),l=n(52),u=n(86),s=function(e){var t=e.label,n=e.onSelect,r=e.options,s=e.scaleType,c=e.disabled,d=void 0!==c&&c;return a.default.createElement(i.SidePanelSection,null,a.default.createElement(i.PanelLabel,null,a.default.createElement(l.FormattedMessage,{id:t?"scale.".concat((0,u.camelize)(t)):"misc.scale",defaultMessage:t})),a.default.createElement(o.default,{disabled:d,selectedItems:s,options:r,multiSelect:!1,searchable:!1,onChange:n}))};t.default=s},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i,o,l=r(n(16)),u=r(n(0)),s=r(n(15)),c=n(52),d=n(591),f=r(n(213)),p=n(578),h=s.default.div(a||(a=(0,l.default)(["\n display: flex;\n margin-bottom: 8px;\n align-items: center;\n"]))),m=s.default.div(i||(i=(0,l.default)(["\n width: 27%;\n line-height: 1.2;\n padding-right: 6px;\n"]))),g=s.default.div(o||(o=(0,l.default)(["\n width: 73%;\n"])));function v(e){return function(t){var n=t.column,r=t.columns,a=t.label,i=t.allFields,o=t.onSelect,l=t.fieldPairs;return u.default.createElement(h,{className:"layer-config__column__selector"},u.default.createElement(m,{className:"layer-config__column__name"},u.default.createElement(d.PanelLabel,null,u.default.createElement(c.FormattedMessage,{id:"columns.".concat(a)}),n.optional?null:" *")),u.default.createElement(g,{className:"layer-config__column__select"},u.default.createElement(e,{suggested:l,error:!(0,p.validateColumn)(n,r,i),fields:i,value:n.value,erasable:Boolean(n.optional),onSelect:o})))}}v.deps=[f.default];var y=v;t.default=y},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=r(n(4)),l=r(n(16)),u=a(n(0)),s=r(n(1)),c=a(n(15)),d=r(n(1032)),f=r(n(1033)),p=r(n(148)),h=n(42);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:new Map,n=new Map,r=function e(r,a){var i=t.get(r);if(!i)return d.console.error(g.noDep(r,a)),m;var o=n.get(i)||i.apply(void 0,(0,l.default)(i.deps?i.deps.map((function(t){return e(t,i)})):[]));return n.set(r,o),o};return{provide:function(n,r){return y([n,r])?e(new Map(t).set(n,r)):e(t)},get:r}},t.flattenDeps=v,t.provideRecipesToInjector=function(e,t){var n=new Map;return e.reduce((function(e,t){var r;return y(t)?(e=v([],t[1]).reduce((function(e,r){return n.get(r)&&d.console.warn("".concat(r.name," already injected from ").concat(n.get(r).name,", injecting ").concat(t[0].name," after ").concat(n.get(r).name," will override it")),e.provide(r,r)}),e),n.set(t[0],t[1]),(r=e).provide.apply(r,(0,l.default)(t))):e}),t)},t.typeCheckRecipe=y,t.withState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){return(0,s.connect)((function(e){return h(h({},t(e)),{},{state:e})}),(function(e){return Object.keys(n).reduce((function(t,r){return h(h({},t),{},(0,a.default)({},r,(0,c.bindActionCreators)(n[r],e)))}),{})}))((function(t){var n=t.state,a=(0,i.default)(t,["state"]);return u.default.createElement(f.default.Consumer,null,(function(t){return u.default.createElement(r,e.reduce((function(e,r){return h(h({},e),r(t.selector(n)))}),a))}))}))}},t.ERROR_MSG=void 0;var a=r(n(4)),i=r(n(72)),o=r(n(55)),l=r(n(36)),u=r(n(0)),s=n(281),c=n(268),d=n(61),f=r(n(342));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t * {\n /* all children should allow input */\n pointer-events: all;\n }")})),Q=function(e){return{getMapboxRef:e.getMapboxRef,mapboxApiAccessToken:e.mapboxApiAccessToken,mapboxApiUrl:e.mapboxApiUrl,mapState:e.mapState,mapStyle:e.mapStyle,onDeckInitialized:e.onDeckInitialized,onViewStateChange:e.onViewStateChange,deckGlProps:e.deckGlProps,uiStateActions:e.uiStateActions,visStateActions:e.visStateActions,mapStateActions:e.mapStateActions,editor:e.visState.editor,datasets:e.visState.datasets,layers:e.visState.layers,layerOrder:e.visState.layerOrder,layerData:e.visState.layerData,layerBlending:e.visState.layerBlending,filters:e.visState.filters,interactionConfig:e.visState.interactionConfig,hoverInfo:e.visState.hoverInfo,clicked:e.visState.clicked,mousePos:e.visState.mousePos,animationConfig:e.visState.animationConfig,activeSidePanel:e.uiState.activeSidePanel,mapControls:e.uiState.mapControls,readOnly:e.uiState.readOnly,locale:e.uiState.locale}};t.mapFieldsSelector=Q;var $=function(e,t){return{appName:e.appName,version:e.version,appWebsite:e.appWebsite,mapStyle:e.mapStyle,onSaveMap:e.onSaveMap,uiState:e.uiState,mapStyleActions:e.mapStyleActions,visStateActions:e.visStateActions,uiStateActions:e.uiStateActions,datasets:e.visState.datasets,filters:e.visState.filters,layers:e.visState.layers,layerOrder:e.visState.layerOrder,layerClasses:e.visState.layerClasses,interactionConfig:e.visState.interactionConfig,mapInfo:e.visState.mapInfo,layerBlending:e.visState.layerBlending,width:e.sidePanelWidth,availableProviders:t,mapSaved:e.providerState.mapSaved}};t.sidePanelSelector=$;var ee=function(e){return{width:e.width,height:e.height,exportImageSetting:e.uiState.exportImage,mapFields:Q(e),addNotification:e.uiStateActions.addNotification,setExportImageSetting:e.uiStateActions.setExportImageSetting,setExportImageDataUri:e.uiStateActions.setExportImageDataUri,setExportImageError:e.uiStateActions.setExportImageError,splitMaps:e.visState.splitMaps}};t.plotContainerSelector=ee;var te=function(e){return e.visState.splitMaps&&e.visState.splitMaps.length>1};t.isSplitSelector=te;var ne=function(e,t){return{filters:e.visState.filters,datasets:e.visState.datasets,uiState:e.uiState,layers:e.visState.layers,animationConfig:e.visState.animationConfig,visStateActions:e.visStateActions,toggleModal:e.uiStateActions.toggleModal,sidePanelWidth:e.uiState.readOnly?0:e.sidePanelWidth+t.sidePanel.margin.left}};t.bottomWidgetSelector=ne;var re=function(e,t){return{appName:e.appName,mapStyle:e.mapStyle,visState:e.visState,mapState:e.mapState,uiState:e.uiState,providerState:e.providerState,mapboxApiAccessToken:e.mapboxApiAccessToken,mapboxApiUrl:e.mapboxApiUrl,visStateActions:e.visStateActions,uiStateActions:e.uiStateActions,mapStyleActions:e.mapStyleActions,providerActions:e.providerActions,rootNode:t,cloudProviders:e.cloudProviders,onExportToCloudSuccess:e.onExportToCloudSuccess,onLoadCloudMapSuccess:e.onLoadCloudMapSuccess,onLoadCloudMapError:e.onLoadCloudMapError,onExportToCloudError:e.onExportToCloudError}};t.modalContainerSelector=re;var ae=function(e){return{isGeocoderEnabled:e.visState.interactionConfig.geocoder.enabled,mapboxApiAccessToken:e.mapboxApiAccessToken,mapState:e.mapState,updateVisData:e.visStateActions.updateVisData,removeDataset:e.visStateActions.removeDataset,updateMap:e.mapStateActions.updateMap}};t.geoCoderPanelSelector=ae;var ie=function(e){return{removeNotification:e.uiStateActions.removeNotification,notifications:e.uiState.notifications}};t.notificationPanelSelector=ie;var oe={mapStyles:[],mapStylesReplaceDefault:!1,mapboxApiUrl:k.DEFAULT_MAPBOX_API_URL,width:800,height:800,appName:k.KEPLER_GL_NAME,version:k.KEPLER_GL_VERSION,sidePanelWidth:k.DIMENSIONS.sidePanel.width,theme:{},cloudProviders:[],readOnly:!1};function le(e,t,n,r,a,i,o,h){var m=function(m){(0,p.default)(A,m);var v=Z(A);function A(){var e;(0,c.default)(this,A);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return X(X({},t),{},{visState:e.visState,mapStyle:e.mapStyle,mapState:e.mapState,uiState:e.uiState,providerState:e.providerState})}t.DEFAULT_KEPLER_GL_PROPS=oe,le.deps=[F.default,U.default,j.default,I.default,N.default,R.default,B.default,z.default];var se={},ce=function(e,t){return e},de=function(e,t){return t.actions||se};function fe(){return(0,O.createSelector)([ce,de],(function(e,t){var n=[S,T,C,L,P].map((function(n){return(0,A.bindActionCreators)(function(e,t){var n={};for(var r in t)t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(n[r]=t[r]);return X(X({},e),n)}(n,t),e)})),r=(0,o.default)(n,5);return{visStateActions:r[0],mapStateActions:r[1],mapStyleActions:r[2],uiStateActions:r[3],providerActions:r[4],dispatch:e}}))}function pe(){var e=fe();return function(t,n){return X(X({},e(t,n)),{},{dispatch:t})}}var he=le;t.default=he},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=w,t.StyledSidePanelContent=void 0;var i,o=r(n(27)),l=r(n(4)),u=r(n(16)),s=a(n(0)),c=n(52),d=n(41),f=r(n(1038)),p=r(n(1039)),h=r(n(1041)),m=r(n(1043)),g=r(n(1048)),v=r(n(1055)),y=r(n(1058)),b=r(n(1061)),A=r(n(1062)),_=r(n(15)),O=r(n(96));function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return e.width+2*e.theme.sidePanel.margin.left}),(function(e){return e.theme.sidePanel.margin.top}),(function(e){return e.theme.sidePanel.margin.right}),(function(e){return e.theme.sidePanel.margin.bottom}),(function(e){return e.theme.sidePanel.margin.left})),E=b.default.div(o||(o=(0,g.default)(["\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);\n transition: left 250ms, right 250ms;\n left: ","px;\n align-items: stretch;\n flex-grow: 1;\n"])),(function(e){return e.left})),x=b.default.div(l||(l=(0,g.default)(["\n background-color: ",";\n border-radius: 1px;\n display: flex;\n flex-direction: column;\n height: 100%;\n border-left: ","px solid\n ",";\n"])),(function(e){return e.theme.sidePanelBg}),(function(e){return e.theme.sidePanelBorder}),(function(e){return e.theme.sidePanelBorderColor})),M=b.default.div(u||(u=(0,g.default)(["\n align-items: center;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);\n justify-content: center;\n background-color: ",";\n border-radius: 1px;\n color: ",";\n display: flex;\n height: 20px;\n position: absolute;\n right: -8px;\n top: ","px;\n width: 20px;\n\n :hover {\n cursor: pointer;\n box-shadow: none;\n background-color: ",";\n }\n"])),(function(e){return e.theme.sideBarCloseBtnBgd}),(function(e){return e.theme.sideBarCloseBtnColor}),(function(e){return e.theme.sidePanel.margin.top}),(function(e){return e.theme.sideBarCloseBtnBgdHover})),w=function(){return function(e){var t=e.onClick,n=e.isOpen;return v.default.createElement(M,{className:"side-bar__close",onClick:t},v.default.createElement(A.ArrowRight,{height:"12px",style:{transform:"rotate(".concat(n?180:0,"deg)")}}))}};function S(e){var t,n;return n=t=function(t){(0,f.default)(r,t);var n=_(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,a=new Array(t),i=0;i1&&i.default.createElement(t,{inputTheme:"secondary",datasets:u,disabled:l.freeze,dataId:l.dataId,onSelect:m})))}));return r.displayName="NewFilterPanel",r}d.deps=[l.default,u.default,s.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=function(e){var t=e.filter,n=e.setFilter;return a.default.createElement(o.SidePanelSection,null,a.default.createElement(o.PanelLabel,null,a.default.createElement(l.FormattedMessage,{id:"misc.valueEquals"})),a.default.createElement(i.default,{selectedItems:t.value,placeholder:"placeholder.selectValue",options:t.domain,multiSelect:!1,searchable:!1,displayOption:function(e){return String(e)},getOptionValue:function(e){return e},onChange:n,inputTheme:"secondary"}))};return e.displayName="SingleSelectFilter",e};var a=r(n(0)),i=r(n(148)),o=n(42),l=n(52)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){var t=e.filter,n=e.setFilter;return a.default.createElement("div",null,a.default.createElement(o.PanelLabel,{htmlFor:"filter-".concat(t.id)},a.default.createElement(l.FormattedMessage,{id:"misc.valuesIn"})),a.default.createElement(i.default,{options:t.domain,selectedItems:t.value,onChange:n}))}};var a=r(n(0)),i=r(n(148)),o=n(42),l=n(52)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var a=r(n(0)),i=r(n(244));function o(e){return function(t){var n=t.filter,r=t.setFilter;return a.default.createElement("div",null,a.default.createElement(e,{range:n.domain,value0:n.value[0],value1:n.value[1],step:n.step,histogram:n.histogram,isEnlarged:n.isEnlarged,onChange:r,inputTheme:"secondary"}))}}o.deps=[i.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.StyledFilterPanel=void 0;var a,i=r(n(16)),o=r(n(15)),l=n(42),u=(0,o.default)(l.PanelLabel)(a||(a=(0,i.default)(["\n font-weight: 500;\n color: white;\n flex: 1;\n"])));t.StyledFilterPanel=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=r(n(1735));function o(e){return function(t){var n=t.interactionConfig,r=t.datasets,i=t.visStateActions.interactionConfigChange;return a.default.createElement("div",{className:"interaction-manager"},Object.keys(n).map((function(t){return a.default.createElement(e,{datasets:r,config:n[t],key:t,onConfigChange:i})})))}}o.deps=[i.default];var l=o;t.default=l},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(4)),i=r(n(0)),o=r(n(244)),l=n(42),u=n(575),s=n(52);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t div > div {\n overflow: visible;\n }\n"]))),E=c.default.div(i||(i=(0,u.default)(["\n display: inherit;\n padding: 0;\n\n .button.clear-all {\n background: transparent;\n color: ",";\n margin: 0 0 0 8px;\n padding: 0;\n\n &:hover {\n color: ",";\n }\n }\n"])),(function(e){return e.theme.subtextColor}),(function(e){return e.theme.textColor})),x=c.default.div(o||(o=(0,u.default)(["\n color: ",";\n display: flex;\n font-size: ",";\n justify-content: space-between;\n line-height: 11px;\n margin-bottom: 8px;\n"])),(function(e){return e.theme.labelColor}),(function(e){return e.theme.inputFontSize}));function M(e,t){var n=function(n){var r=n.config,a=n.onChange,i=n.dataset,o=i.id;return s.default.createElement(p.SidePanelSection,{key:o},s.default.createElement(p.SBFlexboxNoMargin,null,s.default.createElement(e,{dataset:i}),Boolean(r.fieldsToShow[o].length)&&s.default.createElement(E,null,s.default.createElement(p.Button,{className:"clear-all",onClick:function(){var e=_(_({},r),{},{fieldsToShow:_(_({},r.fieldsToShow),{},(0,l.default)({},o,[]))});a(e)},width:"54px",secondary:!0},s.default.createElement(f.FormattedMessage,{id:"fieldSelector.clearAll"})))),s.default.createElement(t,{fields:i.fields,value:r.fieldsToShow[o],onSelect:function(e){var t=_(_({},r),{},{fieldsToShow:_(_({},r.fieldsToShow),{},(0,l.default)({},o,e.map((function(e){return r.fieldsToShow[o].find((function(t){return t.name===e.name}))||{name:e.name,format:null}}))))});a(t)},closeOnSelect:!1,multiSelect:!0,inputTheme:"secondary",CustomChickletComponent:(0,m.default)(o,r,a,i.fields)}))};return(0,d.injectIntl)((function(e){var t=e.config,r=e.datasets,a=e.onChange,i=e.intl;return s.default.createElement(O,null,Object.keys(t.fieldsToShow).map((function(e){return s.default.createElement(n,{key:e,config:t,onChange:a,dataset:r[e]})})),s.default.createElement(x,null,s.default.createElement(f.FormattedMessage,{id:"compare.modeLabel"}),s.default.createElement(g.default,{checked:t.compareMode,id:"compare-mode-toggle",onChange:function(){var e=_(_({},t),{},{compareMode:!t.compareMode});a(e)},secondary:!0})),s.default.createElement(p.SidePanelSection,null,s.default.createElement(p.PanelLabel,null,s.default.createElement(f.FormattedMessage,{id:"compare.typeLabel"})),s.default.createElement(v.default,{disabled:!t.compareMode,displayOption:function(e){return i.formatMessage({id:"compare.types.".concat(e)})},selectedItems:t.compareType,options:Object.values(y.COMPARE_TYPES),multiSelect:!1,searchable:!1,inputTheme:"secondary",getOptionValue:function(e){return e},onChange:function(e){var n=_(_({},t),{},{compareType:e});a(n)}})))}))}M.deps=[h.default,b.default];var w=M;t.default=w},function(e,t,n){"use strict";var r=n(6),a=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(5)),o=a(n(7)),l=a(n(17)),u=a(n(9)),s=a(n(10)),c=a(n(8)),d=a(n(4)),f=r(n(0)),p=a(n(1)),h=n(42),m=a(n(1059)),g=a(n(1060)),v=n(59),y=a(n(600)),b=n(68),A=n(74),_=n(52);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 n,r=(0,c.default)(e);if(t){var a=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}function E(e,t){var n=function(n){(0,u.default)(a,n);var r=O(a);function a(){var e;(0,i.default)(this,a);for(var t=arguments.length,n=new Array(t),o=0;o * + * {\n margin-top: 6px;\n }\n ",";\n font-family: ",";\n font-size: 11px;\n font-weight: 500;\n background-color: ",";\n color: ",";\n z-index: 1000;\n overflow-x: auto;\n box-shadow: ",";\n\n :hover {\n background-color: ",";\n }\n\n .primary-label {\n color: ",";\n font-size: 10px;\n }\n\n .map-popover__layer-info,\n .coordingate-hover-info {\n & > * + * {\n margin-top: 7px;\n }\n }\n\n table {\n width: auto;\n display: grid;\n border-collapse: collapse;\n row-gap: 5px;\n column-gap: 5px;\n }\n\n .coordingate-hover-info > table {\n grid-template-columns: auto auto auto;\n }\n .map-popover__layer-info > table {\n grid-template-columns: auto auto;\n }\n\n tbody,\n tr {\n display: contents;\n }\n\n td {\n border-color: transparent;\n color: ",";\n }\n\n td.row__value {\n text-align: right;\n font-weight: 500;\n color: ",";\n }\n"])),500,600,(function(e){return e.theme.scrollBar}),(function(e){return e.theme.fontFamily}),(function(e){return e.theme.panelBackground}),(function(e){return e.theme.textColor}),(function(e){return e.theme.panelBoxShadow}),(function(e){return"".concat(e.theme.panelBackground,"dd")}),(function(e){return e.theme.notificationColors.success}),(function(e){return e.theme.textColor}),(function(e){return e.theme.textColorHl})),_=p.default.div(o||(o=(0,d.default)(["\n display: flex;\n align-self: center;\n align-items: center;\n justify-items: center;\n & > * + * {\n margin-left: 10px;\n }\n"]))),O=p.default.div(l||(l=(0,d.default)(["\n display: flex;\n flex-direction: column;\n & > * + * {\n margin-top: 12px;\n }\n"]))),E=p.default.div(u||(u=(0,d.default)(["\n color: ",";\n\n &.popover-pin {\n transform: rotate(30deg);\n }\n\n :hover {\n cursor: pointer;\n color: ",";\n }\n"])),(function(e){return e.theme.activeColor}),(function(e){return e.theme.linkBtnColor}));function x(e){var t=e.placement,n=(e.reference,e.popper,arguments.length>1&&void 0!==arguments[1]?arguments[1]:20);switch(t){case"top-start":case"bottom-start":return[n,n];case"top-end":case"bottom-end":return[-n,n];default:return[0,0]}}function M(e){return{modifiers:[{name:"preventOverflow",options:{boundary:e}}]}}function w(e,t){return(0,v.injectIntl)((function(n){var r=n.x,a=n.y,i=n.frozen,o=n.coordinate,l=n.layerHoverProp,u=n.isBase,d=n.zoom,p=n.container,h=n.onClose,m=(0,f.useState)("start"),v=(0,c.default)(m,2),w=v[0],S=v[1],T=function(){return S("end")},C=function(){return S("start")};return f.default.createElement(b.default,{popperOptions:M(p),zIndex:999,visible:!0,interactive:!0,getReferenceClientRect:function(){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=e&&e.getBoundingClientRect?e.getBoundingClientRect():{},i=(a.left||0)+t-r/2,o=(a.top||0)+n-r/2;return{left:i,top:o,right:i+r,bottom:o+r,width:r,height:r}}(p,r,a)},placement:"bottom-".concat(w),offset:x,appendTo:document.body,render:function(n){return f.default.createElement(A,(0,s.default)({},n,{className:"map-popover"}),i?f.default.createElement(_,null,"start"===w&&f.default.createElement(E,{className:"popover-arrow-left",onClick:T},f.default.createElement(g.ArrowLeft,null)),f.default.createElement(E,{className:"popover-pin",onClick:h},f.default.createElement(g.Pin,{height:"16px"})),"end"===w&&f.default.createElement(E,{className:"popover-arrow-right",onClick:C},f.default.createElement(g.ArrowRight,null)),u&&f.default.createElement("div",{className:"primary-label"},f.default.createElement(y.FormattedMessage,{id:"mapPopover.primary"}))):null,f.default.createElement(O,null,Array.isArray(o)&&f.default.createElement(t,{coordinate:o,zoom:d}),l&&f.default.createElement(e,l)))}})}))}w.deps=[h.default,m.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),i=n(76),o=n(59),l=n(607),u=function(){return function(e){var t=e.coordinate,n=e.zoom;return a.default.createElement("div",{className:"coordingate-hover-info"},a.default.createElement(l.StyledLayerName,{className:"map-popover__layer-name"},a.default.createElement(o.CursorClick,{height:"12px"}),"Coordinate"),a.default.createElement("table",null,a.default.createElement("tbody",null,a.default.createElement("tr",{className:"row"},a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(t[1],6),","),a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(t[0],6),","),a.default.createElement("td",{className:"row__value"},(0,i.preciseRound)(n,1),"z")))))}};t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(27)),o=r(n(72)),l=r(n(16)),u=r(n(0)),s=r(n(15)),c=r(n(603)),d=r(n(1066)),f=r(n(1067)),p=r(n(1068)),h=r(n(1070)),m=r(n(1072)),g=r(n(1074)),v=s.default.div(a||(a=(0,l.default)(["\n right: 0;\n padding: ","px;\n z-index: 10;\n margin-top: ","px;\n position: absolute;\n display: grid;\n row-gap: 8px;\n justify-items: end;\n pointer-events: none; /* prevent padding from blocking input */\n & > * {\n /* all children should allow input */\n pointer-events: all;\n }\n"])),(function(e){return e.theme.mapControl.padding}),(function(e){return e.top||0})),y=u.default.createElement(c.default,{version:!1,appName:"kepler.gl"});function b(e,t,n,r,a,l){var s=[n,a,t,r,e,l],c=function(e){var t=e.actionComponents,n=void 0===t?s:t,r=(0,o.default)(e,["actionComponents"]);return u.default.createElement(v,{className:"map-control",top:r.top},n.map((function(e,t){return u.default.createElement(e,(0,i.default)({key:t,className:"map-control-action"},r))})))};return c.defaultProps={isSplit:!1,top:0,mapIndex:0,logoComponent:y},c.displayName="MapControl",u.default.memo(c)}b.deps=[m.default,f.default,d.default,h.default,p.default,g.default];var A=b;t.default=A},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(42),u=n(59),s=r(n(247)),c=r(n(286));function d(e){var t={delete:u.Delete,split:u.Split},n=function(n){var r=n.isSplit,a=n.mapIndex,u=n.onToggleSplitMap,s=n.actionIcons,c=void 0===s?t:s,d=n.mapControls,f=n.readOnly,p=(null==d?void 0:d.splitMap)||{},h=(0,i.useCallback)((function(e){e.preventDefault(),u(r?a:void 0)}),[r,a,u]),m=(0,i.useMemo)((function(){return p.show&&!0!==f}),[p.show,f]);return p.show&&m?i.default.createElement(l.MapControlButton,{active:r,onClick:h,key:"split-".concat(r),className:(0,o.default)("map-control-button","split-map",{"close-map":r}),"data-tip":!0,"data-for":"action-toggle"},r?i.default.createElement(c.delete,{height:"18px"}):i.default.createElement(c.split,{height:"18px"}),i.default.createElement(e,{id:"action-toggle",message:r?"tooltip.closePanel":"tooltip.switchToDualView"})):null};return n.displayName="SplitMapButton",i.default.memo(n)}d.deps=[s.default,c.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(59),u=n(42),s=r(n(247)),c=r(n(286));function d(e){var t={cube:l.Cube3d},n=function(n){var r=n.dragRotate,a=n.onTogglePerspective,l=n.actionIcons,s=void 0===l?t:l,c=n.mapControls,d=(0,i.useCallback)((function(e){e.preventDefault(),a()}),[a]);return(0,i.useMemo)((function(){return((null==c?void 0:c.toggle3d)||{}).show}),[c])?i.default.createElement(u.MapControlButton,{onClick:d,className:(0,o.default)("map-control-button","toggle-3d",{map3d:r}),active:r,"data-tip":!0,"data-for":"action-3d"},i.default.createElement(s.cube,{height:"22px"}),i.default.createElement(e,{id:"action-3d",message:r?"tooltip.disable3DMap":"tooltip.3DMap"})):null};return n.displayName="Toggle3dButton",i.default.memo(n)}d.deps=[s.default,c.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(42),u=n(59),s=r(n(1069)),c=r(n(247)),d=r(n(286));function f(e,t){var n=function(n){var r=n.onMapToggleLayer,a=n.onToggleMapControl,c=n.layers,d=n.layersToRender,f=n.isSplit,p=n.mapControls,h=n.readOnly,m=(null==p?void 0:p.visibleLayers)||{}||{},g=m.active,v=m.show,y=m.disableClose,b=(0,i.useMemo)((function(){return c.filter((function(e){return e.config.isVisible})).map((function(e){var t=e.id;return{id:t,name:e.config.label,isVisible:d[t]}}))}),[c,d]),A=(0,i.useMemo)((function(){return f&&v&&!0!==h}),[f,v,h]),_=(0,i.useCallback)((function(e){e.preventDefault(),a("visibleLayers")}),[a]);return A?g?i.default.createElement(t,{header:"header.visibleLayers",onClick:_,disableClose:y},i.default.createElement(s.default,{layers:b,onMapToggleLayer:r})):i.default.createElement(l.MapControlButton,{key:1,onClick:_,className:(0,o.default)("map-control-button","toggle-layer",{isActive:g}),"data-tip":!0,"data-for":"toggle-layer"},i.default.createElement(u.Layers,{height:"22px"}),i.default.createElement(e,{id:"toggle-layer",message:g?"tooltip.hideLayerPanel":"tooltip.showLayerPanel"})):null};return n.displayName="LayerSelectorPanel",i.default.memo(n)}f.deps=[c.default,d.default];var p=f;t.default=p},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(0)),l=r(n(15)),u=r(n(597)),s=n(86),c=l.default.div(a||(a=(0,i.default)(["\n padding: 12px;\n\n .map-layer-selector__item {\n margin: 12px 0;\n }\n"]))),d=function(e){var t=e.layers,n=e.onMapToggleLayer;return o.default.createElement(c,{className:"map-layer-selector"},t.map((function(e,t){return o.default.createElement("div",{key:e.id,className:"map-layer-selector__item"},o.default.createElement(u.default,{type:"radio",checked:e.isVisible,id:"".concat(e.id,"-toggle-").concat((0,s.generateHashId)(4)),label:e.name,onChange:function(t){t.preventDefault(),n(e.id)}}))})))};t.default=d},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(59),u=n(52),s=n(42),c=r(n(247)),d=r(n(286)),f=r(n(1071)),p=function(e){var t=e.id,n=e.message;return i.default.createElement(s.Tooltip,{id:t,place:"left",effect:"solid"},i.default.createElement("span",null,i.default.createElement(u.FormattedMessage,{id:n})))};function h(e,t,n){var r={legend:l.Legend},a=function(e){var a=e.layers,l=e.mapControls,u=e.scale,c=e.onToggleMapControl,d=e.isExport,f=e.logoComponent,h=e.actionIcons,m=void 0===h?r:h,g=(null==l?void 0:l.mapLegend)||{},v=g||{},y=v.active,b=v.disableClose,A=(0,i.useCallback)((function(){return c("mapLegend")}),[c]),_=(0,i.useCallback)((function(e){e.preventDefault(),A()}),[A]);return g.show?y?i.default.createElement(t,{scale:u,header:"header.layerLegend",onClick:A,isExport:d,disableClose:b,logoComponent:f},i.default.createElement(n,{layers:a})):i.default.createElement(s.MapControlButton,{"data-tip":!0,"data-for":"show-legend",className:(0,o.default)("map-control-button","show-legend",{isActive:y}),onClick:_},i.default.createElement(m.legend,{height:"22px"}),i.default.createElement(p,{id:"show-legend",message:"tooltip.showLegend"})):null};return a.displayName="MapLegendPanel",a}h.deps=[c.default,d.default,f.default];var m=h;t.default=m},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.LayerLegendHeaderFactory=_,t.LayerLegendContentFactory=O,t.default=t.LayerColorLegend=t.SingleColorLegend=t.LayerSizeLegend=t.VisualChannelMetric=t.StyledMapControlLegend=void 0;var a,i=r(n(55)),o=r(n(36)),l=r(n(16)),u=r(n(0)),s=r(n(15)),c=n(250),d=r(n(1737)),f=n(41),p=n(52),h=s.default.div(a||(a=(0,l.default)(["\n padding: 10px ","px 10px\n ","px;\n font-size: 11px;\n border-bottom-color: ",";\n border-bottom-style: solid;\n border-bottom-width: ",";\n width: ","px;\n\n .legend--layer_name {\n font-size: 12px;\n padding-right: ","px;\n color: ",";\n font-weight: 500;\n }\n .legend--layer_type {\n color: ",";\n font-weight: 500;\n font-size: 11px;\n padding-right: ","px;\n }\n\n .legend--layer__title {\n padding-right: ","px;\n }\n\n .legend--layer_by {\n color: ",";\n }\n\n .legend--layer_color_field {\n color: ",";\n font-weight: 500;\n }\n\n .legend--layer_color-legend {\n margin-top: 6px;\n }\n"])),(function(e){return e.theme.mapControl.padding}),(function(e){return e.theme.mapControl.padding}),(function(e){return e.theme.panelBorderColor}),(function(e){return e.last?0:"1px"}),(function(e){return e.width}),(function(e){return e.theme.mapControl.padding}),(function(e){return e.theme.textColor}),(function(e){return e.theme.subtextColor}),(function(e){return e.theme.mapControl.padding}),(function(e){return e.theme.mapControl.padding}),(function(e){return e.theme.subtextColor}),(function(e){return e.theme.textColorHl}));t.StyledMapControlLegend=h;var m=function(e){var t=e.name;return u.default.createElement("div",{className:"legend--layer__title"},u.default.createElement("span",{className:"legend--layer_color_field"},u.default.createElement(p.FormattedMessage,{id:t})))};t.VisualChannelMetric=m;var g=function(e){var t=e.label,n=e.name;return u.default.createElement("div",{className:"legend--layer_size-schema"},u.default.createElement("p",null,u.default.createElement("span",{className:"legend--layer_by"},u.default.createElement(p.FormattedMessage,{id:t})),u.default.createElement("span",{className:"legend--layer_by"}," by ")),u.default.createElement(m,{name:n}))};t.LayerSizeLegend=g;var v=[""],y=u.default.memo((function(e){var t=e.width,n=e.color;return u.default.createElement(d.default,{scaleType:"ordinal",displayLabel:!1,domain:v,fieldType:null,range:{colors:[c.rgb.apply(void 0,(0,o.default)(n)).toString()]},width:t})}));t.SingleColorLegend=y,y.displayName="SingleColorLegend";var b=u.default.memo((function(e){var t=e.description,n=e.config,r=e.width,a=e.colorChannel,o=t.measure,l=a.scale,s=a.field,c=a.domain,f=a.range,p=a.property,h=[l,s,c].map((function(e){return n[e]})),g=(0,i.default)(h,3),v=g[0],b=g[1],A=g[2],_=n.visConfig[f];return u.default.createElement("div",null,u.default.createElement("div",{className:"legend--layer_color-schema"},u.default.createElement("div",null,o?u.default.createElement(m,{name:o}):null,u.default.createElement("div",{className:"legend--layer_color-legend"},o?u.default.createElement(d.default,{scaleType:v,displayLabel:!0,domain:A,fieldType:b&&b.type||"real",range:_,width:r}):u.default.createElement(y,{color:n.visConfig[p]||n[p]||n.color,width:r})))))}));t.LayerColorLegend=b,b.displayName="LayerColorLegend";var A=function(e){return[f.CHANNEL_SCALES.color,f.CHANNEL_SCALES.colorAggr].includes(e.channelScaleType)};function _(){return function(e){var t=e.options,n=e.layer;return!1!==(null==t?void 0:t.showLayerName)?u.default.createElement("div",{className:"legend--layer_name"},n.config.label):null}}function O(){return function(e){var t=e.layer,n=e.containerW,r=Object.values(t.visualChannels).filter(A),a=Object.values(t.visualChannels).filter((function(e){return!A(e)}));return u.default.createElement(u.default.Fragment,null,r.map((function(e){return!e.condition||e.condition(t.config)?u.default.createElement(b,{key:e.key,description:t.getVisualChannelDescription(e.key),config:t.config,width:n-2*f.DIMENSIONS.mapControl.padding,colorChannel:e}):null})),a.map((function(e){var n=!e.condition||e.condition(t.config),r=t.config[e.field]||e.defaultMeasure,a=t.getVisualChannelDescription(e.key);return n&&r?u.default.createElement(g,{key:e.key,label:a.label,name:a.measure}):null})))}}function E(e,t){var n=function(n){var r=n.layers,a=void 0===r?[]:r,i=n.width,o=n.options;return u.default.createElement("div",{className:"map-legend"},a.map((function(n,r){if(!n.isValidToSave()||n.config.hidden)return null;var l=i||f.DIMENSIONS.mapControl.width;return u.default.createElement(h,{className:"legend--layer",last:r===a.length-1,key:r,width:l},u.default.createElement(e,{options:o,layer:n}),u.default.createElement(t,{containerW:l,layer:n}))})))};return n.displayName="MapLegend",n}E.deps=[_,O];var x=E;t.default=x},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=n(41),u=n(59),s=n(42),c=r(n(417)),d=r(n(247)),f=r(n(286)),p=r(n(608));function h(e,t,n){var r={visible:u.EyeSeen,hidden:u.EyeUnseen,polygon:u.DrawPolygon,cursor:u.CursorClick,innerPolygon:u.Polygon,rectangle:u.Rectangle},a=i.default.memo((function(t){var a,u,d=t.editor,f=t.mapControls,p=t.onToggleMapControl,h=t.onSetEditorMode,m=t.onToggleEditorVisibility,g=t.actionIcons,v=void 0===g?r:g,y=null==f||null===(a=f.mapDraw)||void 0===a?void 0:a.active,b=(0,i.useCallback)((function(){return p("mapDraw")}),[p]);return null!=f&&null!==(u=f.mapDraw)&&void 0!==u&&u.show?i.default.createElement("div",{className:"map-draw-controls",style:{position:"relative"}},y?i.default.createElement(n,{show:y},i.default.createElement(c.default,{className:"edit-feature",onClick:function(){return h(l.EDITOR_MODES.EDIT)},label:"toolbar.select",icon:v.cursor,active:d.mode===l.EDITOR_MODES.EDIT}),i.default.createElement(c.default,{className:"draw-feature",onClick:function(){return h(l.EDITOR_MODES.DRAW_POLYGON)},label:"toolbar.polygon",icon:v.innerPolygon,active:d.mode===l.EDITOR_MODES.DRAW_POLYGON}),i.default.createElement(c.default,{className:"draw-rectangle",onClick:function(){return h(l.EDITOR_MODES.DRAW_RECTANGLE)},label:"toolbar.rectangle",icon:v.rectangle,active:d.mode===l.EDITOR_MODES.DRAW_RECTANGLE}),i.default.createElement(c.default,{className:"toggle-features",onClick:m,label:d.visible?"toolbar.hide":"toolbar.show",icon:d.visible?v.visible:v.hidden})):null,i.default.createElement(s.MapControlButton,{onClick:function(e){e.preventDefault(),b()},active:y,className:(0,o.default)("map-control-button","map-draw",{isActive:y}),"data-tip":!0,"data-for":"map-draw"},i.default.createElement(v.polygon,{height:"22px"}),i.default.createElement(e,{id:"map-draw",message:"tooltip.DrawOnMap"}))):null}));return a.displayName="MapDrawPanel",a}h.deps=[d.default,f.default,p.default];var m=h;t.default=m},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=r(n(16)),o=r(n(15)),l=r(n(1040)),u=(0,o.default)(l.default)(a||(a=(0,i.default)(["\n flex-direction: column;\n\n .toolbar-item {\n width: 78px;\n padding: 13px 16px;\n }\n"])));u.displayName="VerticalToolbar";var s=u;t.default=s},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=r(n(49)),l=r(n(417)),u=n(42),s=r(n(247)),c=r(n(608));function d(e,t){var n=i.default.memo((function(n){var r=n.availableLocales,a=n.onToggleMapControl,s=n.onSetLocale,c=n.locale,d=n.mapControls.mapLocale||{},f=d.active,p=d.disableClose,h=d.show,m=(0,i.useCallback)((function(e){s(e)}),[s]),g=(0,i.useCallback)((function(e){e.preventDefault(),a("mapLocale")}),[a]),v=(0,i.useCallback)((function(e){return"toolbar.".concat(e)}),[]);return h?i.default.createElement("div",{className:"map-locale-controls",style:{position:"relative"}},f?i.default.createElement(t,{show:f},r.map((function(e){return i.default.createElement(l.default,{key:e,onClick:function(){return m(e)},label:v(e),active:c===e})}))):null,i.default.createElement(u.MapControlButton,{onClick:g,className:(0,o.default)("map-control-button","map-locale",{isActive:f}),active:f,"data-tip":!0,"data-for":"locale",disableClose:p},i.default.createElement("span",{className:"map-control-button__locale"},c.toUpperCase()),i.default.createElement(e,{id:"locale",message:"tooltip.selectLocale"}))):null}));return n.displayName="LocalePanel",n}d.deps=[s.default,c.default];var f=d;t.default=f},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=k;var i,o=r(n(5)),l=r(n(7)),u=r(n(17)),s=r(n(9)),c=r(n(10)),d=r(n(8)),f=r(n(4)),p=r(n(16)),h=a(n(0)),m=r(n(1)),g=r(n(15)),v=n(205),y=r(n(61)),b=r(n(49)),A=r(n(96)),_=n(68),O=r(n(1076)),E=n(41),x=n(1738),M=n(1739),w=r(n(341));function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}e.exports=a,a.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,t,this.extent,this._keys,this._values)}},function(e,t,n){"use strict";var r=n(644);function a(e,t,n,r,a){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=a,e.readFields(i,this,t)}function i(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){var n=e.readVarint()+e.pos;for(;e.pos>3}if(i--,1===a||2===a)o+=e.readSVarint(),l+=e.readSVarint(),1===a&&(t&&u.push(t),t=[]),t.push(new r(o,l));else{if(7!==a)throw new Error("unknown command "+a);t&&t.push(t[0].clone())}}return t&&u.push(t),u},a.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,i=0,o=1/0,l=-1/0,u=1/0,s=-1/0;e.pos>3}if(r--,1===n||2===n)(a+=e.readSVarint())l&&(l=a),(i+=e.readSVarint())s&&(s=i);else if(7!==n)throw new Error("unknown command "+n)}return[o,u,l,s]},a.prototype.toGeoJSON=function(e,t,n){var r,i,l=this.extent*Math.pow(2,n),u=this.extent*e,s=this.extent*t,c=this.loadGeometry(),d=a.types[this.type];function f(e){for(var t=0;t * {\n /* all children should allow input */\n pointer-events: all;\n }\n width: ","px;\n z-index: 1;\n ","\n"])),(function(e){return e.hasPadding?e.theme.bottomWidgetPaddingTop:0}),(function(e){return e.hasPadding?e.theme.bottomWidgetPaddingRight:0}),(function(e){return e.hasPadding?e.theme.bottomWidgetPaddingBottom:0}),(function(e){return e.hasPadding?e.theme.bottomWidgetPaddingLeft:0}),(function(e){return e.width}),g.media.portable(o||(o=(0,u.default)(["padding: 0;"]))));function y(e){return function(t){var n=t.filter,r=t.filterIdx,a=t.setFilterAnimationTime,i=t.children,o=(0,s.useMemo)((function(){return(0,m.getIntervalBins)(n)}),[n]),l=(0,s.useMemo)((function(){return o?o.map((function(e){return e.x0})):null}),[o]),u=(0,s.useCallback)((function(e){switch(n.animationWindow){case h.ANIMATION_WINDOW.interval:var t=e[1];a(r,"value",[o[t].x0,o[t].x1-1]);break;default:a(r,"value",e)}}),[r,o,n.animationWindow,a]);return s.default.createElement(e,{key:"filter-control",value:n.value,domain:n.domain,speed:n.speed,isAnimating:n.isAnimating,animationWindow:n.animationWindow,steps:l,updateAnimation:u,children:i})}}function b(e){return function(t){var n=t.animationConfig,r=t.setLayerAnimationTime,a=t.children;return s.default.createElement(e,{key:"layer-control",value:n.currentTime,domain:n.domain,speed:n.speed,isAnimating:n.isAnimating,updateAnimation:r,steps:n.timeSteps,animationWindow:n.timeSteps?h.ANIMATION_WINDOW.interval:h.ANIMATION_WINDOW.point,children:a})}}function A(e,t,n,r){var a=function(a){var i=a.datasets,o=a.filters,l=a.animationConfig,u=a.visStateActions,c=a.containerW,d=a.uiState,f=a.sidePanelWidth,p=a.layers,m=d.activeSidePanel,g=d.readOnly,y=Boolean(m),b=(0,s.useMemo)((function(){return o.findIndex((function(e){return e.enlarged&&e.type===h.FILTER_TYPES.timeRange}))}),[o]),A=(0,s.useMemo)((function(){return o.findIndex((function(e){return e.isAnimating}))}),[o]),_=A>-1?o[A]:null,O=y?c-f:c,E=(0,s.useMemo)((function(){return p.filter((function(e){return e.config.animation&&e.config.animation.enabled&&e.config.isVisible}))}),[p]),x=Array.isArray(l.domain)&&Number.isFinite(l.currentTime),M=!E.length,w=E.length&&x&&!l.hideControl,S=b>-1&&Object.keys(i).length>0,T=_||o[b];return s.default.createElement(v,{width:Math.min(1080,O),className:"bottom-widget--container",hasPadding:w||S},s.default.createElement(r,{animationConfig:l,setLayerAnimationTime:u.setLayerAnimationTime},(function(e,n,r,a){return w?s.default.createElement(t,{animationConfig:l,setLayerAnimationTime:u.setLayerAnimationTime,updateAnimationSpeed:u.updateLayerAnimationSpeed,toggleAnimation:u.toggleLayerAnimation,isAnimatable:!_,isAnimating:e,resetAnimation:a}):null})),T&&s.default.createElement(n,{filter:T,filterIdx:A>-1?A:b,setFilterAnimationTime:u.setFilterAnimationTime},(function(t,n,r,a){return S?s.default.createElement(e,{width:O,filter:o[b],index:b,isAnyFilterAnimating:Boolean(_),datasets:i,readOnly:g,showTimeDisplay:M,setFilterPlot:u.setFilterPlot,setFilter:u.setFilter,setFilterAnimationTime:u.setFilterAnimationTime,setFilterAnimationWindow:u.setFilterAnimationWindow,toggleAnimation:u.toggleFilterAnimation,updateAnimationSpeed:u.updateFilterAnimationSpeed,enlargeFilter:u.enlargeFilter,resetAnimation:a,isAnimatable:!l||!l.isAnimating}):null})))};return(0,s.forwardRef)((function(e,t){return s.default.createElement(a,(0,l.default)({},e,{rootRef:t}))}))}y.deps=[p.default],b.deps=[p.default],A.deps=[d.default,f.default,y,b]},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.TimeWidgetTopFactory=_,t.default=void 0;var i,o,l,u=r(n(27)),s=r(n(16)),c=a(n(0)),d=r(n(15)),f=n(42),p=n(59),h=r(n(592)),m=r(n(213)),g=r(n(610)),v=n(605),y=(0,d.default)(f.BottomWidgetInner)(i||(i=(0,s.default)(["\n padding: 6px 32px 24px 32px;\n"]))),b=d.default.div.attrs({className:"time-widget--top"})(o||(o=(0,s.default)(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n color: ",";\n height: ",";\n\n .bottom-widget__y-axis {\n flex-grow: 1;\n margin-left: 20px;\n }\n\n .bottom-widget__field-select {\n width: 160px;\n display: inline-block;\n\n .item-selector__dropdown {\n background: transparent;\n padding: 4px 10px 4px 4px;\n border-color: transparent;\n\n :active,\n :focus,\n &.focus,\n &.active {\n background: transparent;\n border-color: transparent;\n }\n }\n\n .item-selector__dropdown:hover {\n background: transparent;\n border-color: transparent;\n\n .item-selector__dropdown__value {\n color: ",";\n }\n }\n }\n\n .animation-control__speed-control {\n margin-right: -12px;\n\n .animation-control__speed-slider {\n right: calc(0% - 48px);\n }\n }\n"])),(function(e){return e.theme.labelColor}),"36px",(function(e){return e.hoverColor?e.theme[e.hoverColor]:e.theme.textColorHl})),A=(0,d.default)(f.CenterFlexbox)(l||(l=(0,s.default)(["\n flex-grow: 0;\n color: ",";\n margin-right: 10px;\n\n .bottom-widget__icon {\n margin-right: 6px;\n }\n .bottom-widget__icon.speed {\n margin-right: 0;\n }\n"])),(function(e){return e.theme.textColor}));function _(e){return function(t){var n=t.filter,r=t.readOnly,a=t.datasets,i=t.setFilterPlot,o=t.index,l=t.onClose,u=(0,c.useMemo)((function(){return((a[n.dataId[0]]||{}).fields||[]).filter((function(e){return"integer"===e.type||"real"===e.type}))}),[a,n.dataId]),s=(0,c.useCallback)((function(e){return i(o,{yAxis:e})}),[i,o]);return c.default.createElement(b,null,c.default.createElement(A,{className:"bottom-widget__field"},c.default.createElement(f.CenterFlexbox,{className:"bottom-widget__icon"},c.default.createElement(p.Clock,{height:"15px"})),c.default.createElement(f.SelectTextBold,null,n.name)),c.default.createElement(A,{className:"bottom-widget__y-axis"},c.default.createElement(f.CenterFlexbox,{className:"bottom-widget__icon"},c.default.createElement(p.LineChart,{height:"15px"})),c.default.createElement("div",{className:"bottom-widget__field-select"},c.default.createElement(e,{fields:u,placement:"top",id:"selected-time-widget-field",value:n.yAxis?n.yAxis.name:null,onSelect:s,placeholder:"placeholder.yAxis",erasable:!0,showToken:!1}))),r?null:c.default.createElement(f.CenterFlexbox,null,c.default.createElement(f.IconRoundSmall,null,c.default.createElement(p.Close,{height:"12px",onClick:l}))))}}function O(e,t,n){var r=function(r){var a=r.datasets,i=r.filter,o=r.index,l=r.readOnly,s=r.showTimeDisplay,d=r.setFilterAnimationTime,f=r.resetAnimation,p=r.isAnimatable,h=r.updateAnimationSpeed,m=r.toggleAnimation,g=r.enlargeFilter,b=r.setFilterPlot,A=r.setFilterAnimationWindow,_=(0,c.useCallback)((function(e){return h(o,e)}),[h,o]),O=(0,c.useCallback)((function(){return m(o)}),[m,o]),E=(0,c.useCallback)((function(){return g(o)}),[g,o]),x=(0,c.useCallback)((function(e){return A({id:i.id,animationWindow:e})}),[A,i.id]),M=(0,c.useCallback)((function(e){return d(o,"value",e)}),[d,o]);return c.default.createElement(y,{className:"bottom-widget--inner"},c.default.createElement(n,{filter:i,readOnly:l,datasets:a,setFilterPlot:b,index:o,onClose:E}),c.default.createElement(e,(0,u.default)({},(0,v.timeRangeSliderFieldsSelector)(i),{onChange:M,toggleAnimation:O,updateAnimationSpeed:_,setFilterAnimationWindow:x,hideTimeTitle:s,resetAnimation:f,isAnimatable:p})),s?c.default.createElement(t,{currentTime:i.value,defaultTimeFormat:i.defaultTimeFormat,timeFormat:i.timeFormat,timezone:i.timezone}):null)};return c.default.memo(r)}_.deps=[m.default],O.deps=[h.default,g.default,_];var E=O;t.default=E},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,l,u=r(n(16)),s=a(n(0)),c=r(n(15)),d=r(n(593)),f=n(42),p=r(n(595)),h=r(n(610)),m=n(76),g=n(41),v=c.default.div(i||(i=(0,u.default)(["\n display: flex;\n position: relative;\n flex-grow: 1;\n margin-right: 24px;\n margin-left: 24px;\n"]))),y=c.default.div(o||(o=(0,u.default)(["\n position: relative;\n display: flex;\n align-items: center;\n height: 32px;\n\n .playback-controls {\n margin-left: -8px;\n margin-right: 16px;\n }\n"]))),b=c.default.div.attrs({className:"animation-control__time-domain"})(l||(l=(0,u.default)(["\n color: ",";\n font-weight: 400;\n font-size: 10px;\n"])),(function(e){return e.theme.titleTextColor}));function A(e,t){var n=function(n){var r=n.isAnimatable,a=n.isAnimating,i=n.resetAnimation,o=n.toggleAnimation,l=n.setLayerAnimationTime,u=n.updateAnimationSpeed,c=n.animationConfig,p=c.currentTime,h=c.domain,A=c.speed,_=c.step,O=c.timeSteps,E=c.timeFormat,x=c.timezone,M=c.defaultTimeFormat,w=(0,s.useCallback)((function(e){Array.isArray(O)?l((0,m.snapToMarks)(e,O)):e>=h[0]&&e<=h[1]&&l(e)}),[h,O,l]),S=(0,s.useMemo)((function(){var e=("string"==typeof E?E:M)||g.DEFAULT_TIME_FORMAT;return(0,m.datetimeFormatter)(x)(e)}),[E,M,x]),T=(0,s.useMemo)((function(){return h?S(h[0]):""}),[h,S]),C=(0,s.useMemo)((function(){return h?S(h[1]):""}),[h,S]);return s.default.createElement(f.BottomWidgetInner,{className:"bottom-widget--inner"},s.default.createElement(y,{className:"animation-widget--inner"},s.default.createElement(e,{className:"animation-control-playpause",startAnimation:o,isAnimating:a,pauseAnimation:o,resetAnimation:i,speed:A,isAnimatable:r,updateAnimationSpeed:u}),s.default.createElement(b,{className:"domain-start"},s.default.createElement("span",null,T)),s.default.createElement(v,{className:"animation-control__slider"},s.default.createElement(d.default,{showValues:!1,isRanged:!1,step:_,minValue:h?h[0]:0,maxValue:h?h[1]:1,value1:p,onSlider1Change:w,enableBarDrag:!0})),s.default.createElement(b,{className:"domain-end"},s.default.createElement("span",null,C))),s.default.createElement(t,{currentTime:p,defaultTimeFormat:M,timeFormat:E,timezone:x}))};return n.defaultProps={toggleAnimation:function(){},updateAnimationSpeed:function(){},animationControlProps:{},animationConfig:{}},n}A.deps=[p.default,h.default];var _=A;t.default=_},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(5)),i=r(n(7)),o=r(n(17)),l=r(n(9)),u=r(n(10)),s=r(n(8)),c=r(n(4)),d=n(0),f=n(113),p=n(61),h=r(n(98)),m=n(41);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 n,r=(0,s.default)(e);if(t){var a=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var v=function(){var e=function(e){(0,l.default)(n,e);var t=g(n);function n(){var e;(0,a.default)(this,n);for(var r=arguments.length,i=new Array(r),l=0;l=t?(e._nextFrame(),e._startTime=(new Date).getTime()):e._timer=(0,p.requestAnimationFrame)(n)}))})),(0,c.default)((0,o.default)(e),"_resetAnimationByDomain",(function(){var t=e.props,n=t.domain,r=t.value,a=t.animationWindow;Array.isArray(r)?a===m.ANIMATION_WINDOW.incremental?e.props.updateAnimation([r[0],r[0]+1]):e.props.updateAnimation([n[0],n[0]+r[1]-r[0]]):e.props.updateAnimation(n[0])})),(0,c.default)((0,o.default)(e),"_resetAnimtionByTimeStep",(function(){e.props.updateAnimation([e.props.steps[0],0])})),(0,c.default)((0,o.default)(e),"_resetAnimation",(function(){e.props.animationWindow===m.ANIMATION_WINDOW.interval?e._resetAnimtionByTimeStep():e._resetAnimationByDomain()})),(0,c.default)((0,o.default)(e),"_startAnimation",(function(){var t=e.props.speed;if(e._clearTimer(),t>0)if(e.props.animationWindow===m.ANIMATION_WINDOW.interval){var n=e.props.steps;if(!Array.isArray(n)||!n.length)return void h.default.warn("animation steps should be an array");var r=m.BASE_SPEED*(1e3/m.FPS)/n.length/(t||1);e._animate(r)}else e._timer=(0,p.requestAnimationFrame)(e._nextFrame);e.setState({isAnimating:!0})})),(0,c.default)((0,o.default)(e),"_clearTimer",(function(){e._timer&&((0,p.cancelAnimationFrame)(e._timer),e._timer=null)})),(0,c.default)((0,o.default)(e),"_pauseAnimation",(function(){e._clearTimer(),e.setState({isAnimating:!1})})),(0,c.default)((0,o.default)(e),"_nextFrame",(function(){e._timer=null;var t=e.props.animationWindow===m.ANIMATION_WINDOW.interval?e._nextFrameByTimeStep():e._nextFrameByDomain();e.props.updateAnimation(t)})),e}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this._startOrPauseAnimation()}},{key:"componentDidUpdate",value:function(){this._startOrPauseAnimation()}},{key:"componentWillUnmount",value:function(){this._timer&&(0,p.cancelAnimationFrame)(this._timer)}},{key:"_startOrPauseAnimation",value:function(){var e=this.props,t=e.isAnimating,n=e.speed;!this._timer&&t&&n>0?this._startAnimation():this._timer&&!t&&this._pauseAnimation()}},{key:"_nextFrameByDomain",value:function(){var e=this.props,t=e.domain,n=e.value,r=e.speed,a=e.baseSpeed,i=e.animationWindow,o=(t[1]-t[0])/a*r;if(Array.isArray(n)){var l,u,s=n[1]+o>t[1];return i===m.ANIMATION_WINDOW.incremental?(l=n[0],u=s?n[0]+1:n[1]+o):u=(l=s?t[0]:n[0]+o)+n[1]-n[0],[l,u]}return n+o>t[1]?t[0]:n+o}},{key:"_nextFrameByTimeStep",value:function(){var e=this.props,t=e.steps,n=e.value,r=Array.isArray(n)?n[0]:n,a=(0,f.bisectLeft)(t,r),i=a>=t.length-1?0:a+1;return[t[i],i]}},{key:"render",value:function(){var e=this.state.isAnimating,t=this.props.children;return"function"==typeof t?t(e,this._startAnimation,this._pauseAnimation,this._resetAnimation):null}}]),n}(d.Component);return(0,c.default)(e,"defaultProps",{baseSpeed:m.BASE_SPEED,speed:1,steps:null,animationWindow:m.ANIMATION_WINDOW.free}),e};t.default=v},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=$;var i,o,l,u,s,c,d,f,p=r(n(27)),h=r(n(5)),m=r(n(7)),g=r(n(17)),v=r(n(9)),y=r(n(10)),b=r(n(8)),A=r(n(4)),_=r(n(16)),O=a(n(0)),E=r(n(1)),x=n(15),M=n(121),w=n(68),S=r(n(96)),T=r(n(178)),C=n(41),L=r(n(1089)),P=n(412),k=n(1744),D=r(n(1091)),R=r(n(1745)),j=r(n(1107)),I=r(n(1111)),F=r(n(1118)),N=r(n(1120)),B=r(n(1121)),z=r(n(1125)),U=r(n(1821)),V=r(n(1822)),H=n(243),Y=r(n(341)),W=n(1824);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0],n=e.props.providerState.currentProvider,r=e.props.cloudProviders.find((function(e){return e.name===n}));e._exportFileToCloud({provider:r,isPublic:!1,overwrite:t,closeModal:!0})})),(0,A.default)((0,g.default)(e),"_onOverwriteMap",(function(){e._onSaveMap(!0)})),(0,A.default)((0,g.default)(e),"_onShareMapUrl",(function(t){e._exportFileToCloud({provider:t,isPublic:!0,overwrite:!1,closeModal:!1})})),(0,A.default)((0,g.default)(e),"_onCloseSaveMap",(function(){e.props.providerActions.resetProviderStatus(),e._closeModal()})),(0,A.default)((0,g.default)(e),"_onLoadCloudMap",(function(t){e.props.providerActions.loadCloudMap(q(q({},t),{},{onSuccess:e.props.onLoadCloudMapSuccess,onError:e.props.onLoadCloudMapError}))})),e}return(0,m.default)(E,[{key:"componentWillUnmount",value:function(){T.default.removeEventListener("keyup",this._onKeyUp)}},{key:"render",value:function(){var h=this,m=this.props,g=m.containerW,v=m.containerH,y=m.mapStyle,b=m.mapState,A=m.uiState,E=m.visState,w=m.rootNode,T=m.visStateActions,L=m.uiStateActions,P=m.providerState,D=A.currentModal,R=A.datasetKeyToRemove,j=E.datasets,I=E.layers,F=E.editingDataset,N=null,B={};if(D&&D.id&&D.template)N=O.default.createElement(D.template,null),B=D.modalProps;else switch(D){case C.DATA_TABLE_ID:var z=.9*g;N=O.default.createElement(n,{width:.9*g,height:.85*v,datasets:j,dataId:F,showDatasetTable:T.showDatasetTable,sortTableColumn:T.sortTableColumn,pinTableColumn:T.pinTableColumn,copyTableColumn:T.copyTableColumn}),B.cssStyle=(0,x.css)(d||(d=(0,_.default)(["\n ",";\n ",";\n "])),Z,H.media.palm(f||(f=(0,_.default)(["\n width: ","px;\n "])),z));break;case C.DELETE_DATA_ID:R&&j&&j[R]&&(N=O.default.createElement(e,{dataset:j[R],layers:I}),B={title:"modal.title.deleteDataset",cssStyle:K,footer:!0,onConfirm:function(){return h._deleteDataset(R)},onCancel:this._closeModal,confirmButton:{negative:!0,large:!0,children:"modal.button.delete"}});break;case C.ADD_DATA_ID:N=O.default.createElement(r,(0,p.default)({},P,{onClose:this._closeModal,onFileUpload:this._onFileUpload,onLoadCloudMap:this._onLoadCloudMap,cloudProviders:this.providerWithStorage(this.props),onSetCloudProvider:this.props.providerActions.setCloudProvider,getSavedMaps:this.props.providerActions.getSavedMaps,loadFiles:A.loadFiles,fileLoading:E.fileLoading,fileLoadingProgress:E.fileLoadingProgress,fileFormatNames:(0,W.getFileFormatNames)(this.props.visState),fileExtensions:(0,W.getFileExtensions)(this.props.visState)})),B={title:"modal.title.addDataToMap",cssStyle:J,footer:!1,onConfirm:this._closeModal};break;case C.EXPORT_IMAGE_ID:N=O.default.createElement(a,{exportImage:A.exportImage,mapW:g,mapH:v,onUpdateImageSetting:L.setExportImageSetting,cleanupExportImage:L.cleanupExportImage}),B={title:"modal.title.exportImage",cssStyle:"",footer:!0,onCancel:this._closeModal,onConfirm:this._onExportImage,confirmButton:{large:!0,disabled:A.exportImage.processing,children:"modal.button.download"}};break;case C.EXPORT_DATA_ID:N=O.default.createElement(i,(0,p.default)({},A.exportData,{supportedDataTypes:C.EXPORT_DATA_TYPE_OPTIONS,datasets:j,applyCPUFilter:this.props.visStateActions.applyCPUFilter,onClose:this._closeModal,onChangeExportDataType:L.setExportDataType,onChangeExportSelectedDataset:L.setExportSelectedDataset,onChangeExportFiltered:L.setExportFiltered})),B={title:"modal.title.exportData",cssStyle:"",footer:!0,onCancel:this._closeModal,onConfirm:this._onExportData,confirmButton:{large:!0,children:"modal.button.export"}};break;case C.EXPORT_MAP_ID:var U=E.schema.getConfigToSave({mapStyle:y,visState:E,mapState:b,uiState:A});N=O.default.createElement(o,{config:U,options:A.exportMap,onChangeExportMapFormat:L.setExportMapFormat,onEditUserMapboxAccessToken:L.setUserMapboxAccessToken,onChangeExportMapHTMLMode:L.setExportHTMLMapMode}),B={title:"modal.title.exportMap",cssStyle:"",footer:!0,onCancel:this._closeModal,onConfirm:this._onExportMap,confirmButton:{large:!0,children:"modal.button.export"}};break;case C.ADD_MAP_STYLE_ID:N=O.default.createElement(l,{mapboxApiAccessToken:this.props.mapboxApiAccessToken,mapboxApiUrl:this.props.mapboxApiUrl,mapState:this.props.mapState,inputStyle:y.inputStyle,inputMapStyle:this.props.mapStyleActions.inputMapStyle,loadCustomMapStyle:this.props.mapStyleActions.loadCustomMapStyle}),B={title:"modal.title.addCustomMapboxStyle",cssStyle:"",footer:!0,onCancel:this._closeModal,onConfirm:this._onAddCustomMapStyle,confirmButton:{large:!0,disabled:!y.inputStyle.style,children:"modal.button.addStyle"}};break;case C.SAVE_MAP_ID:N=O.default.createElement(s,(0,p.default)({},P,{exportImage:A.exportImage,mapInfo:E.mapInfo,onSetMapInfo:T.setMapInfo,cloudProviders:this.providerWithStorage(this.props),onSetCloudProvider:this.props.providerActions.setCloudProvider,cleanupExportImage:L.cleanupExportImage,onUpdateImageSetting:L.setExportImageSetting})),B={title:"modal.title.saveMap",cssStyle:"",footer:!0,onCancel:this._closeModal,onConfirm:function(){return h._onSaveMap(!1)},confirmButton:{large:!0,disabled:A.exportImage.processing||!(0,k.isValidMapInfo)(E.mapInfo)||!P.currentProvider,children:"modal.button.save"}};break;case C.OVERWRITE_MAP_ID:N=O.default.createElement(t,(0,p.default)({},P,{cloudProviders:this.props.cloudProviders,title:(0,S.default)(E,["mapInfo","title"]),onSetCloudProvider:this.props.providerActions.setCloudProvider,onUpdateImageSetting:L.setExportImageSetting,cleanupExportImage:L.cleanupExportImage})),B={title:"Overwrite Existing File?",cssStyle:K,footer:!0,onConfirm:this._onOverwriteMap,onCancel:this._closeModal,confirmButton:{large:!0,children:"Yes",disabled:A.exportImage.processing||!(0,k.isValidMapInfo)(E.mapInfo)||!P.currentProvider}};break;case C.SHARE_MAP_ID:N=O.default.createElement(c,(0,p.default)({},P,{isReady:!A.exportImage.processing,cloudProviders:this.providerWithShare(this.props),onExport:this._onShareMapUrl,onSetCloudProvider:this.props.providerActions.setCloudProvider,cleanupExportImage:L.cleanupExportImage,onUpdateImageSetting:L.setExportImageSetting})),B={title:"modal.title.shareURL",cssStyle:"",onCancel:this._onCloseSaveMap}}return this.props.rootNode?O.default.createElement(u,(0,p.default)({parentSelector:function(){return(0,M.findDOMNode)(w)},isOpen:Boolean(D),onCancel:this._closeModal},B,{cssStyle:Q.concat(B.cssStyle)}),N):null}}]),E}(O.Component);return(0,A.default)(y,"propTypes",{rootNode:E.default.object,containerW:E.default.number,containerH:E.default.number,mapboxApiAccessToken:E.default.string.isRequired,mapboxApiUrl:E.default.string,mapState:E.default.object.isRequired,mapStyle:E.default.object.isRequired,uiState:E.default.object.isRequired,visState:E.default.object.isRequired,visStateActions:E.default.object.isRequired,uiStateActions:E.default.object.isRequired,mapStyleActions:E.default.object.isRequired,onSaveToStorage:E.default.func,cloudProviders:E.default.arrayOf(E.default.object)}),y}$.deps=[D.default,R.default,j.default,I.default,F.default,N.default,B.default,z.default,L.default,U.default,V.default]},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1090)),i=function(){return a.default};t.default=i},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ModalFooter=t.ModalTitle=void 0;var i,o,l,u,s,c,d,f,p,h,m,g,v,y=r(n(5)),b=r(n(7)),A=r(n(9)),_=r(n(10)),O=r(n(8)),E=r(n(27)),x=r(n(4)),M=r(n(16)),w=a(n(0)),S=r(n(1)),T=n(52),C=r(n(15)),L=r(n(393)),P=n(59),k=n(42),D=n(243);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 n,r=(0,O.default)(e);if(t){var a=(0,O.default)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,_.default)(this,n)}}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t + * @license MIT + */ +e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!a;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,a="/"===o.charAt(0))}return(a?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!a).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),o="/"===a(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var a=r(e.split("/")),i=r(n.split("/")),o=Math.min(a.length,i.length),l=o,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!a){r=i;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){n=t+1;break}}else-1===r&&(a=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,a=!0,i=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===r&&(a=!1,r=o+1),46===l?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){n=o+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(112))},function(e,t,n){"use strict";var r;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,59===(t=r.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t}},function(e,t){e.exports={}.hasOwnProperty},function(e,t,n){e.exports=function(e){var t,n,l,u,s,c,d,f={},p=-1;for(;++pf?n(i):(e.consume(i),v):41===i?p--?(e.consume(i),v):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):null===i||a(i)?p?n(i):(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(o),t(i)):r(i)?n(i):(e.consume(i),92===i?y:v)}function y(t){return 40===t||41===t||92===t?(e.consume(t),v):v(t)}};var r=n(1100),a=n(214),i=n(109)},function(e,t,n){e.exports=function(e,t,n,i,o,l){var u,s=this,c=0;return function(t){return e.enter(i),e.enter(o),e.consume(t),e.exit(o),e.enter(l),d};function d(a){return null===a||91===a||93===a&&!u||94===a&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs||c>999?n(a):93===a?(e.exit(l),e.enter(o),e.consume(a),e.exit(o),e.exit(i),t):r(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(a))}function f(t){return null===t||91===t||93===t||r(t)||c++>999?(e.exit("chunkString"),d(t)):(e.consume(t),u=u||!a(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),c++,f):f(t)}};var r=n(109),a=n(196)},function(e,t,n){e.exports=function(e,t){var n;return function o(l){if(r(l))return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,o;if(a(l))return i(e,o,n?"linePrefix":"lineSuffix")(l);return t(l)}};var r=n(109),a=n(196),i=n(120)},function(e,t,n){e.exports=function(e,t,n,i,o,l){var u;return function(t){return e.enter(i),e.enter(o),e.consume(t),e.exit(o),u=40===t?41:t,s};function s(n){return n===u?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),t):(e.enter(l),c(n))}function c(t){return t===u?(e.exit(l),s(u)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===u||null===t||r(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?f:d)}function f(t){return t===u||92===t?(e.consume(t),d):d(t)}};var r=n(109),a=n(120)},function(e,t,n){"use strict";var r=n(3),a=n(6);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DatasetTabs=t.DatasetModalTab=void 0;var i,o,l,u,s=r(n(5)),c=r(n(7)),d=r(n(17)),f=r(n(9)),p=r(n(10)),h=r(n(8)),m=r(n(4)),g=r(n(16)),v=r(n(0)),y=a(n(15)),b=r(n(611)),A=r(n(1108)),_=n(68),O=n(1109),E=r(n(1110));function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t