v-openlayers 2.7.1 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +0,0 @@
1
- /*
2
- * @Descripttion: your project
3
- * @version: 1.0
4
- * @Author: ZhangBen
5
- * @Date: 2021-07-02 08:58:35
6
- * @LastEditors: ZhangBen
7
- * @LastEditTime: 2021-08-09 17:55:08
8
- */
9
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19)}([function(e,t){e.exports=ol},function(e,t,r){(function(e,n){var o;
10
- /**
11
- * @license
12
- * Lodash <https://lodash.com/>
13
- * Copyright JS Foundation and other contributors <https://js.foundation/>
14
- * Released under MIT license <https://lodash.com/license>
15
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
16
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
17
- */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,p="__lodash_placeholder__",d=1,h=2,f=4,y=1,m=2,g=1,v=2,b=4,w=8,x=16,_=32,k=64,S=128,j=256,T=512,z=30,O="...",A=800,E=16,C=1,M=2,R=1/0,I=9007199254740991,L=1.7976931348623157e308,P=NaN,N=4294967295,F=N-1,q=N>>>1,D=[["ary",S],["bind",g],["bindKey",v],["curry",w],["curryRight",x],["flip",T],["partial",_],["partialRight",k],["rearg",j]],U="[object Arguments]",G="[object Array]",B="[object AsyncFunction]",W="[object Boolean]",J="[object Date]",V="[object DOMException]",$="[object Error]",Y="[object Function]",H="[object GeneratorFunction]",Z="[object Map]",X="[object Number]",K="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",pe="[object Float64Array]",de="[object Int8Array]",he="[object Int16Array]",fe="[object Int32Array]",ye="[object Uint8Array]",me="[object Uint8ClampedArray]",ge="[object Uint16Array]",ve="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Se=RegExp(_e.source),je=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,ze=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,Ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Me.source),Ie=/^\s+|\s+$/g,Le=/^\s+/,Pe=/\s+$/,Ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,He=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",rt="["+Ke+"]",nt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+it+"|"+at+")",ht="(?:"+pt+"|"+at+")",ft="(?:"+rt+"|"+st+")"+"?",yt="[\\ufe0e\\ufe0f]?"+ft+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ft+")*"),mt="(?:"+[ot,lt,ct].join("|")+")"+yt,gt="(?:"+[ut+rt+"?",rt,lt,ct,et].join("|")+")",vt=RegExp("['’]","g"),bt=RegExp(rt,"g"),wt=RegExp(st+"(?="+st+")|"+gt+yt,"g"),xt=RegExp([pt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,pt,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,pt+dt,"$"].join("|")+")",pt+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,mt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ke+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,St=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Tt={};Tt[ce]=Tt[pe]=Tt[de]=Tt[he]=Tt[fe]=Tt[ye]=Tt[me]=Tt[ge]=Tt[ve]=!0,Tt[U]=Tt[G]=Tt[ue]=Tt[W]=Tt[le]=Tt[J]=Tt[$]=Tt[Y]=Tt[Z]=Tt[X]=Tt[Q]=Tt[te]=Tt[re]=Tt[ne]=Tt[ae]=!1;var zt={};zt[U]=zt[G]=zt[ue]=zt[le]=zt[W]=zt[J]=zt[ce]=zt[pe]=zt[de]=zt[he]=zt[fe]=zt[Z]=zt[X]=zt[Q]=zt[te]=zt[re]=zt[ne]=zt[oe]=zt[ye]=zt[me]=zt[ge]=zt[ve]=!0,zt[$]=zt[Y]=zt[ae]=!1;var Ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},At=parseFloat,Et=parseInt,Ct="object"==typeof e&&e&&e.Object===Object&&e,Mt="object"==typeof self&&self&&self.Object===Object&&self,Rt=Ct||Mt||Function("return this")(),It=t&&!t.nodeType&&t,Lt=It&&"object"==typeof n&&n&&!n.nodeType&&n,Pt=Lt&&Lt.exports===It,Nt=Pt&&Ct.process,Ft=function(){try{var e=Lt&&Lt.require&&Lt.require("util").types;return e||Nt&&Nt.binding&&Nt.binding("util")}catch(e){}}(),qt=Ft&&Ft.isArrayBuffer,Dt=Ft&&Ft.isDate,Ut=Ft&&Ft.isMap,Gt=Ft&&Ft.isRegExp,Bt=Ft&&Ft.isSet,Wt=Ft&&Ft.isTypedArray;function Jt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Vt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function $t(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Yt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Ht(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Zt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Xt(e,t){return!!(null==e?0:e.length)&&sr(e,t,0)>-1}function Kt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Qt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function er(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function tr(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function rr(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function nr(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var or=pr("length");function ir(e,t,r){var n;return r(e,function(e,r,o){if(t(e,r,o))return n=r,!1}),n}function ar(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function sr(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):ar(e,lr,r)}function ur(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function lr(e){return e!=e}function cr(e,t){var r=null==e?0:e.length;return r?fr(e,t)/r:P}function pr(e){return function(t){return null==t?i:t[e]}}function dr(e){return function(t){return null==e?i:e[t]}}function hr(e,t,r,n,o){return o(e,function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)}),r}function fr(e,t){for(var r,n=-1,o=e.length;++n<o;){var a=t(e[n]);a!==i&&(r=r===i?a:r+a)}return r}function yr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function mr(e){return function(t){return e(t)}}function gr(e,t){return Qt(t,function(t){return e[t]})}function vr(e,t){return e.has(t)}function br(e,t){for(var r=-1,n=e.length;++r<n&&sr(t,e[r],0)>-1;);return r}function wr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var xr=dr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),_r=dr({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function kr(e){return"\\"+Ot[e]}function Sr(e){return _t.test(e)}function jr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Tr(e,t){return function(r){return e(t(r))}}function zr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==p||(e[r]=p,i[o++]=r)}return i}function Or(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function Ar(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function Er(e){return Sr(e)?function(e){var t=wt.lastIndex=0;for(;wt.test(e);)++t;return t}(e):or(e)}function Cr(e){return Sr(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.split("")}(e)}var Mr=dr({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Rr=function e(t){var r,n=(t=null==t?Rt:Rr.defaults(Rt.Object(),t,Rr.pick(Rt,St))).Array,o=t.Date,Ke=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,ot=t.TypeError,it=n.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],lt=at.toString,ct=st.hasOwnProperty,pt=0,dt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",ht=st.toString,ft=lt.call(tt),yt=Rt._,mt=rt("^"+lt.call(ct).replace(Me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=Pt?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,Ot=gt?gt.allocUnsafe:i,Ct=Tr(tt.getPrototypeOf,tt),Mt=tt.create,It=st.propertyIsEnumerable,Lt=it.splice,Nt=wt?wt.isConcatSpreadable:i,Ft=wt?wt.iterator:i,or=wt?wt.toStringTag:i,dr=function(){try{var e=qi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ir=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,Lr=o&&o.now!==Rt.Date.now&&o.now,Pr=t.setTimeout!==Rt.setTimeout&&t.setTimeout,Nr=et.ceil,Fr=et.floor,qr=tt.getOwnPropertySymbols,Dr=gt?gt.isBuffer:i,Ur=t.isFinite,Gr=it.join,Br=Tr(tt.keys,tt),Wr=et.max,Jr=et.min,Vr=o.now,$r=t.parseInt,Yr=et.random,Hr=it.reverse,Zr=qi(t,"DataView"),Xr=qi(t,"Map"),Kr=qi(t,"Promise"),Qr=qi(t,"Set"),en=qi(t,"WeakMap"),tn=qi(tt,"create"),rn=en&&new en,nn={},on=pa(Zr),an=pa(Xr),sn=pa(Kr),un=pa(Qr),ln=pa(en),cn=wt?wt.prototype:i,pn=cn?cn.valueOf:i,dn=cn?cn.toString:i;function hn(e){if(Os(e)&&!gs(e)&&!(e instanceof gn)){if(e instanceof mn)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mn(e)}var fn=function(){function e(){}return function(t){if(!zs(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function yn(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function vn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function bn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function wn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xn(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new wn;++t<r;)this.add(e[t])}function _n(e){var t=this.__data__=new bn(e);this.size=t.size}function kn(e,t){var r=gs(e),n=!r&&ms(e),o=!r&&!n&&xs(e),i=!r&&!n&&!o&&Ps(e),a=r||n||o||i,s=a?yr(e.length,nt):[],u=s.length;for(var l in e)!t&&!ct.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Vi(l,u))||s.push(l);return s}function Sn(e){var t=e.length;return t?e[_o(0,t-1)]:i}function jn(e,t){return ua(ni(e),In(t,0,e.length))}function Tn(e){return ua(ni(e))}function zn(e,t,r){(r===i||hs(e[t],r))&&(r!==i||t in e)||Mn(e,t,r)}function On(e,t,r){var n=e[t];ct.call(e,t)&&hs(n,r)&&(r!==i||t in e)||Mn(e,t,r)}function An(e,t){for(var r=e.length;r--;)if(hs(e[r][0],t))return r;return-1}function En(e,t,r,n){return qn(e,function(e,o,i){t(n,e,r(e),i)}),n}function Cn(e,t){return e&&oi(t,ou(t),e)}function Mn(e,t,r){"__proto__"==t&&dr?dr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Rn(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Qs(e,t[r]);return a}function In(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Ln(e,t,r,n,o,a){var s,u=t&d,l=t&h,c=t&f;if(r&&(s=o?r(e,n,o,a):r(e)),s!==i)return s;if(!zs(e))return e;var p=gs(e);if(p){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return ni(e,s)}else{var y=Gi(e),m=y==Y||y==H;if(xs(e))return Xo(e,u);if(y==Q||y==U||m&&!o){if(s=l||m?{}:Wi(e),!u)return l?function(e,t){return oi(e,Ui(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,Di(e),t)}(e,Cn(s,e))}else{if(!zt[y])return o?e:{};s=function(e,t,r){var n,o,i,a=e.constructor;switch(t){case ue:return Ko(e);case W:case J:return new a(+e);case le:return function(e,t){var r=t?Ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ce:case pe:case de:case he:case fe:case ye:case me:case ge:case ve:return Qo(e,r);case Z:return new a;case X:case ne:return new a(e);case te:return(i=new(o=e).constructor(o.source,Be.exec(o))).lastIndex=o.lastIndex,i;case re:return new a;case oe:return n=e,pn?tt(pn.call(n)):{}}}(e,y,u)}}a||(a=new _n);var g=a.get(e);if(g)return g;if(a.set(e,s),Rs(e))return e.forEach(function(n){s.add(Ln(n,t,r,n,e,a))}),s;if(As(e))return e.forEach(function(n,o){s.set(o,Ln(n,t,r,o,e,a))}),s;var v=p?i:(c?l?Mi:Ci:l?iu:ou)(e);return $t(v||e,function(n,o){v&&(n=e[o=n]),On(s,o,Ln(n,t,r,o,e,a))}),s}function Pn(e,t,r){var n=r.length;if(null==e)return!n;for(e=tt(e);n--;){var o=r[n],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Nn(e,t,r){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,r)},t)}function Fn(e,t,r,n){var o=-1,i=Xt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;r&&(t=Qt(t,mr(r))),n?(i=Kt,s=!1):t.length>=a&&(i=vr,s=!1,t=new xn(t));e:for(;++o<u;){var p=e[o],d=null==r?p:r(p);if(p=n||0!==p?p:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(p)}else i(t,d,n)||l.push(p)}return l}hn.templateSettings={escape:Te,evaluate:ze,interpolate:Oe,variable:"",imports:{_:hn}},hn.prototype=yn.prototype,hn.prototype.constructor=hn,mn.prototype=fn(yn.prototype),mn.prototype.constructor=mn,gn.prototype=fn(yn.prototype),gn.prototype.constructor=gn,vn.prototype.clear=function(){this.__data__=tn?tn(null):{},this.size=0},vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vn.prototype.get=function(e){var t=this.__data__;if(tn){var r=t[e];return r===l?i:r}return ct.call(t,e)?t[e]:i},vn.prototype.has=function(e){var t=this.__data__;return tn?t[e]!==i:ct.call(t,e)},vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tn&&t===i?l:t,this},bn.prototype.clear=function(){this.__data__=[],this.size=0},bn.prototype.delete=function(e){var t=this.__data__,r=An(t,e);return!(r<0||(r==t.length-1?t.pop():Lt.call(t,r,1),--this.size,0))},bn.prototype.get=function(e){var t=this.__data__,r=An(t,e);return r<0?i:t[r][1]},bn.prototype.has=function(e){return An(this.__data__,e)>-1},bn.prototype.set=function(e,t){var r=this.__data__,n=An(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},wn.prototype.clear=function(){this.size=0,this.__data__={hash:new vn,map:new(Xr||bn),string:new vn}},wn.prototype.delete=function(e){var t=Ni(this,e).delete(e);return this.size-=t?1:0,t},wn.prototype.get=function(e){return Ni(this,e).get(e)},wn.prototype.has=function(e){return Ni(this,e).has(e)},wn.prototype.set=function(e,t){var r=Ni(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},xn.prototype.add=xn.prototype.push=function(e){return this.__data__.set(e,l),this},xn.prototype.has=function(e){return this.__data__.has(e)},_n.prototype.clear=function(){this.__data__=new bn,this.size=0},_n.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},_n.prototype.get=function(e){return this.__data__.get(e)},_n.prototype.has=function(e){return this.__data__.has(e)},_n.prototype.set=function(e,t){var r=this.__data__;if(r instanceof bn){var n=r.__data__;if(!Xr||n.length<a-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new wn(n)}return r.set(e,t),this.size=r.size,this};var qn=si($n),Dn=si(Yn,!0);function Un(e,t){var r=!0;return qn(e,function(e,n,o){return r=!!t(e,n,o)}),r}function Gn(e,t,r){for(var n=-1,o=e.length;++n<o;){var a=e[n],s=t(a);if(null!=s&&(u===i?s==s&&!Ls(s):r(s,u)))var u=s,l=a}return l}function Bn(e,t){var r=[];return qn(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}function Wn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=Ji),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?Wn(s,t-1,r,n,o):er(o,s):n||(o[o.length]=s)}return o}var Jn=ui(),Vn=ui(!0);function $n(e,t){return e&&Jn(e,t,ou)}function Yn(e,t){return e&&Vn(e,t,ou)}function Hn(e,t){return Zt(t,function(t){return Ss(e[t])})}function Zn(e,t){for(var r=0,n=(t=$o(t,e)).length;null!=e&&r<n;)e=e[ca(t[r++])];return r&&r==n?e:i}function Xn(e,t,r){var n=t(e);return gs(e)?n:er(n,r(e))}function Kn(e){return null==e?e===i?ie:K:or&&or in tt(e)?function(e){var t=ct.call(e,or),r=e[or];try{e[or]=i;var n=!0}catch(e){}var o=ht.call(e);return n&&(t?e[or]=r:delete e[or]),o}(e):function(e){return ht.call(e)}(e)}function Qn(e,t){return e>t}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function ro(e,t,r){for(var o=r?Kt:Xt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,p=[];u--;){var d=e[u];u&&t&&(d=Qt(d,mr(t))),c=Jr(d.length,c),l[u]=!r&&(t||a>=120&&d.length>=120)?new xn(u&&d):i}d=e[0];var h=-1,f=l[0];e:for(;++h<a&&p.length<c;){var y=d[h],m=t?t(y):y;if(y=r||0!==y?y:0,!(f?vr(f,m):o(p,m,r))){for(u=s;--u;){var g=l[u];if(!(g?vr(g,m):o(e[u],m,r)))continue e}f&&f.push(m),p.push(y)}}return p}function no(e,t,r){var n=null==(e=ta(e,t=$o(t,e)))?e:e[ca(ka(t))];return null==n?i:Jt(n,e,r)}function oo(e){return Os(e)&&Kn(e)==U}function io(e,t,r,n,o){return e===t||(null==e||null==t||!Os(e)&&!Os(t)?e!=e&&t!=t:function(e,t,r,n,o,a){var s=gs(e),u=gs(t),l=s?G:Gi(e),c=u?G:Gi(t),p=(l=l==U?Q:l)==Q,d=(c=c==U?Q:c)==Q,h=l==c;if(h&&xs(e)){if(!xs(t))return!1;s=!0,p=!1}if(h&&!p)return a||(a=new _n),s||Ps(e)?Ai(e,t,r,n,o,a):function(e,t,r,n,o,i,a){switch(r){case le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!i(new _t(e),new _t(t)));case W:case J:case X:return hs(+e,+t);case $:return e.name==t.name&&e.message==t.message;case te:case ne:return e==t+"";case Z:var s=jr;case re:var u=n&y;if(s||(s=Or),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;n|=m,a.set(e,t);var c=Ai(s(e),s(t),n,o,i,a);return a.delete(e),c;case oe:if(pn)return pn.call(e)==pn.call(t)}return!1}(e,t,l,r,n,o,a);if(!(r&y)){var f=p&&ct.call(e,"__wrapped__"),g=d&&ct.call(t,"__wrapped__");if(f||g){var v=f?e.value():e,b=g?t.value():t;return a||(a=new _n),o(v,b,r,n,a)}}return!!h&&(a||(a=new _n),function(e,t,r,n,o,a){var s=r&y,u=Ci(e),l=u.length,c=Ci(t).length;if(l!=c&&!s)return!1;for(var p=l;p--;){var d=u[p];if(!(s?d in t:ct.call(t,d)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);for(var m=s;++p<l;){d=u[p];var g=e[d],v=t[d];if(n)var b=s?n(v,g,d,t,e,a):n(g,v,d,e,t,a);if(!(b===i?g===v||o(g,v,r,n,a):b)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(f=!1)}return a.delete(e),a.delete(t),f}(e,t,r,n,o,a))}(e,t,r,n,io,o))}function ao(e,t,r,n){var o=r.length,a=o,s=!n;if(null==e)return!a;for(e=tt(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var l=(u=r[o])[0],c=e[l],p=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var d=new _n;if(n)var h=n(c,p,l,e,t,d);if(!(h===i?io(p,c,y|m,n,d):h))return!1}}return!0}function so(e){return!(!zs(e)||(t=e,dt&&dt in t))&&(Ss(e)?mt:Ve).test(pa(e));var t}function uo(e){return"function"==typeof e?e:null==e?Eu:"object"==typeof e?gs(e)?yo(e[0],e[1]):fo(e):qu(e)}function lo(e){if(!Xi(e))return Br(e);var t=[];for(var r in tt(e))ct.call(e,r)&&"constructor"!=r&&t.push(r);return t}function co(e){if(!zs(e))return function(e){var t=[];if(null!=e)for(var r in tt(e))t.push(r);return t}(e);var t=Xi(e),r=[];for(var n in e)("constructor"!=n||!t&&ct.call(e,n))&&r.push(n);return r}function po(e,t){return e<t}function ho(e,t){var r=-1,o=bs(e)?n(e.length):[];return qn(e,function(e,n,i){o[++r]=t(e,n,i)}),o}function fo(e){var t=Fi(e);return 1==t.length&&t[0][2]?Qi(t[0][0],t[0][1]):function(r){return r===e||ao(r,e,t)}}function yo(e,t){return Yi(e)&&Ki(t)?Qi(ca(e),t):function(r){var n=Qs(r,e);return n===i&&n===t?eu(r,e):io(t,n,y|m)}}function mo(e,t,r,n,o){e!==t&&Jn(t,function(a,s){if(zs(a))o||(o=new _n),function(e,t,r,n,o,a,s){var u=ra(e,r),l=ra(t,r),c=s.get(l);if(c)zn(e,r,c);else{var p=a?a(u,l,r+"",e,t,s):i,d=p===i;if(d){var h=gs(l),f=!h&&xs(l),y=!h&&!f&&Ps(l);p=l,h||f||y?gs(u)?p=u:ws(u)?p=ni(u):f?(d=!1,p=Xo(l,!0)):y?(d=!1,p=Qo(l,!0)):p=[]:Cs(l)||ms(l)?(p=u,ms(u)?p=Ws(u):zs(u)&&!Ss(u)||(p=Wi(l))):d=!1}d&&(s.set(l,p),o(p,l,n,a,s),s.delete(l)),zn(e,r,p)}}(e,t,s,r,mo,n,o);else{var u=n?n(ra(e,s),a,s+"",e,t,o):i;u===i&&(u=a),zn(e,s,u)}},iu)}function go(e,t){var r=e.length;if(r)return Vi(t+=t<0?r:0,r)?e[t]:i}function vo(e,t,r){var n=-1;return t=Qt(t.length?t:[Eu],mr(Pi())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ho(e,function(e,r,o){return{criteria:Qt(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,s=r.length;++n<a;){var u=ei(o[n],i[n]);if(u){if(n>=s)return u;var l=r[n];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,r)})}function bo(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=Zn(e,a);r(s,a)&&zo(i,$o(a,e),s)}return i}function wo(e,t,r,n){var o=n?ur:sr,i=-1,a=t.length,s=e;for(e===t&&(t=ni(t)),r&&(s=Qt(e,mr(r)));++i<a;)for(var u=0,l=t[i],c=r?r(l):l;(u=o(s,c,u,n))>-1;)s!==e&&Lt.call(s,u,1),Lt.call(e,u,1);return e}function xo(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;Vi(o)?Lt.call(e,o,1):qo(e,o)}}return e}function _o(e,t){return e+Fr(Yr()*(t-e+1))}function ko(e,t){var r="";if(!e||t<1||t>I)return r;do{t%2&&(r+=e),(t=Fr(t/2))&&(e+=e)}while(t);return r}function So(e,t){return ia(ea(e,t,Eu),e+"")}function jo(e){return Sn(hu(e))}function To(e,t){var r=hu(e);return ua(r,In(t,0,r.length))}function zo(e,t,r,n){if(!zs(e))return e;for(var o=-1,a=(t=$o(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var l=ca(t[o]),c=r;if(o!=s){var p=u[l];(c=n?n(p,l,u):i)===i&&(c=zs(p)?p:Vi(t[o+1])?[]:{})}On(u,l,c),u=u[l]}return e}var Oo=rn?function(e,t){return rn.set(e,t),e}:Eu,Ao=dr?function(e,t){return dr(e,"toString",{configurable:!0,enumerable:!1,value:zu(t),writable:!0})}:Eu;function Eo(e){return ua(hu(e))}function Co(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function Mo(e,t){var r;return qn(e,function(e,n,o){return!(r=t(e,n,o))}),!!r}function Ro(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=q){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!Ls(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return Io(e,t,Eu,r)}function Io(e,t,r,n){t=r(t);for(var o=0,a=null==e?0:e.length,s=t!=t,u=null===t,l=Ls(t),c=t===i;o<a;){var p=Fr((o+a)/2),d=r(e[p]),h=d!==i,f=null===d,y=d==d,m=Ls(d);if(s)var g=n||y;else g=c?y&&(n||h):u?y&&h&&(n||!f):l?y&&h&&!f&&(n||!m):!f&&!m&&(n?d<=t:d<t);g?o=p+1:a=p}return Jr(a,F)}function Lo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!hs(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function Po(e){return"number"==typeof e?e:Ls(e)?P:+e}function No(e){if("string"==typeof e)return e;if(gs(e))return Qt(e,No)+"";if(Ls(e))return dn?dn.call(e):"";var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Fo(e,t,r){var n=-1,o=Xt,i=e.length,s=!0,u=[],l=u;if(r)s=!1,o=Kt;else if(i>=a){var c=t?null:ki(e);if(c)return Or(c);s=!1,o=vr,l=new xn}else l=t?[]:u;e:for(;++n<i;){var p=e[n],d=t?t(p):p;if(p=r||0!==p?p:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),u.push(p)}else o(l,d,r)||(l!==u&&l.push(d),u.push(p))}return u}function qo(e,t){return null==(e=ta(e,t=$o(t,e)))||delete e[ca(ka(t))]}function Do(e,t,r,n){return zo(e,t,r(Zn(e,t)),n)}function Uo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?Co(e,n?0:i,n?i+1:o):Co(e,n?i+1:0,n?o:i)}function Go(e,t){var r=e;return r instanceof gn&&(r=r.value()),tr(t,function(e,t){return t.func.apply(t.thisArg,er([e],t.args))},r)}function Bo(e,t,r){var o=e.length;if(o<2)return o?Fo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=Fn(a[i]||s,e[u],t,r));return Fo(Wn(a,1),t,r)}function Wo(e,t,r){for(var n=-1,o=e.length,a=t.length,s={};++n<o;){var u=n<a?t[n]:i;r(s,e[n],u)}return s}function Jo(e){return ws(e)?e:[]}function Vo(e){return"function"==typeof e?e:Eu}function $o(e,t){return gs(e)?e:Yi(e,t)?[e]:la(Js(e))}var Yo=So;function Ho(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:Co(e,t,r)}var Zo=Ir||function(e){return Rt.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var r=e.length,n=Ot?Ot(r):new e.constructor(r);return e.copy(n),n}function Ko(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Qo(e,t){var r=t?Ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,a=Ls(e),s=t!==i,u=null===t,l=t==t,c=Ls(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||n&&s&&l||!r&&l||!o)return 1;if(!n&&!a&&!c&&e<t||c&&r&&o&&!n&&!a||u&&r&&o||!s&&o||!l)return-1}return 0}function ti(e,t,r,o){for(var i=-1,a=e.length,s=r.length,u=-1,l=t.length,c=Wr(a-s,0),p=n(l+c),d=!o;++u<l;)p[u]=t[u];for(;++i<s;)(d||i<a)&&(p[r[i]]=e[i]);for(;c--;)p[u++]=e[i++];return p}function ri(e,t,r,o){for(var i=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,p=Wr(a-u,0),d=n(p+c),h=!o;++i<p;)d[i]=e[i];for(var f=i;++l<c;)d[f+l]=t[l];for(;++s<u;)(h||i<a)&&(d[f+r[s]]=e[i++]);return d}function ni(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function oi(e,t,r,n){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=n?n(r[u],e[u],u,r,e):i;l===i&&(l=e[u]),o?Mn(r,u,l):On(r,u,l)}return r}function ii(e,t){return function(r,n){var o=gs(r)?Vt:En,i=t?t():{};return o(r,e,Pi(n,2),i)}}function ai(e){return So(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&$i(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++n<o;){var u=r[n];u&&e(t,u,n,a)}return t})}function si(e,t){return function(r,n){if(null==r)return r;if(!bs(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=tt(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function ui(e){return function(t,r,n){for(var o=-1,i=tt(t),a=n(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===r(i[u],u,i))break}return t}}function li(e){return function(t){var r=Sr(t=Js(t))?Cr(t):i,n=r?r[0]:t.charAt(0),o=r?Ho(r,1).join(""):t.slice(1);return n[e]()+o}}function ci(e){return function(t){return tr(Su(mu(t).replace(vt,"")),e,"")}}function pi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=fn(e.prototype),n=e.apply(r,t);return zs(n)?n:r}}function di(e){return function(t,r,n){var o=tt(t);if(!bs(t)){var a=Pi(r,3);t=ou(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,n);return s>-1?o[a?t[s]:s]:i}}function hi(e){return Ei(function(t){var r=t.length,n=r,o=mn.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ii(a))var s=new mn([],!0)}for(n=s?n:r;++n<r;){var l=Ii(a=t[n]),c="wrapper"==l?Ri(a):i;s=c&&Hi(c[0])&&c[1]==(S|w|_|j)&&!c[4].length&&1==c[9]?s[Ii(c[0])].apply(s,c[3]):1==a.length&&Hi(a)?s[l]():s.thru(a)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&gs(n))return s.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}})}function fi(e,t,r,o,a,s,u,l,c,p){var d=t&S,h=t&g,f=t&v,y=t&(w|x),m=t&T,b=f?i:pi(e);return function g(){for(var v=arguments.length,w=n(v),x=v;x--;)w[x]=arguments[x];if(y)var _=Li(g),k=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,_);if(o&&(w=ti(w,o,a,y)),s&&(w=ri(w,s,u,y)),v-=k,y&&v<p){var S=zr(w,_);return xi(e,t,fi,g.placeholder,r,w,S,l,c,p-v)}var j=h?r:this,T=f?j[e]:e;return v=w.length,l?w=function(e,t){for(var r=e.length,n=Jr(t.length,r),o=ni(e);n--;){var a=t[n];e[n]=Vi(a,r)?o[a]:i}return e}(w,l):m&&v>1&&w.reverse(),d&&c<v&&(w.length=c),this&&this!==Rt&&this instanceof g&&(T=b||pi(T)),T.apply(j,w)}}function yi(e,t){return function(r,n){return function(e,t,r,n){return $n(e,function(e,o,i){t(n,r(e),o,i)}),n}(r,e,t(n),{})}}function mi(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=No(r),n=No(n)):(r=Po(r),n=Po(n)),o=e(r,n)}return o}}function gi(e){return Ei(function(t){return t=Qt(t,mr(Pi())),So(function(r){var n=this;return e(t,function(e){return Jt(e,n,r)})})})}function vi(e,t){var r=(t=t===i?" ":No(t)).length;if(r<2)return r?ko(t,e):t;var n=ko(t,Nr(e/Er(t)));return Sr(t)?Ho(Cr(n),0,e).join(""):n.slice(0,e)}function bi(e){return function(t,r,o){return o&&"number"!=typeof o&&$i(t,r,o)&&(r=o=i),t=Ds(t),r===i?(r=t,t=0):r=Ds(r),function(e,t,r,o){for(var i=-1,a=Wr(Nr((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:Ds(o),e)}}function wi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Bs(t),r=Bs(r)),e(t,r)}}function xi(e,t,r,n,o,a,s,u,l,c){var p=t&w;t|=p?_:k,(t&=~(p?k:_))&b||(t&=~(g|v));var d=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,u,l,c],h=r.apply(i,d);return Hi(e)&&na(h,d),h.placeholder=n,aa(h,e,t)}function _i(e){var t=et[e];return function(e,r){if(e=Bs(e),r=null==r?0:Jr(Us(r),292)){var n=(Js(e)+"e").split("e");return+((n=(Js(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var ki=Qr&&1/Or(new Qr([,-0]))[1]==R?function(e){return new Qr(e)}:Lu;function Si(e){return function(t){var r=Gi(t);return r==Z?jr(t):r==re?Ar(t):function(e,t){return Qt(t,function(t){return[t,e[t]]})}(t,e(t))}}function ji(e,t,r,o,a,s,l,c){var d=t&v;if(!d&&"function"!=typeof e)throw new ot(u);var h=o?o.length:0;if(h||(t&=~(_|k),o=a=i),l=l===i?l:Wr(Us(l),0),c=c===i?c:Us(c),h-=a?a.length:0,t&k){var f=o,y=a;o=a=i}var m=d?i:Ri(e),T=[e,t,r,o,a,f,y,s,l,c];if(m&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<(g|v|S),a=n==S&&r==w||n==S&&r==j&&e[7].length<=t[8]||n==(S|j)&&t[7].length<=t[8]&&r==w;if(!i&&!a)return e;n&g&&(e[2]=t[2],o|=r&g?0:b);var s=t[3];if(s){var u=e[3];e[3]=u?ti(u,s,t[4]):s,e[4]=u?zr(e[3],p):t[4]}(s=t[5])&&(u=e[5],e[5]=u?ri(u,s,t[6]):s,e[6]=u?zr(e[5],p):t[6]),(s=t[7])&&(e[7]=s),n&S&&(e[8]=null==e[8]?t[8]:Jr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(T,m),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],!(c=T[9]=T[9]===i?d?0:e.length:Wr(T[9]-h,0))&&t&(w|x)&&(t&=~(w|x)),t&&t!=g)z=t==w||t==x?function(e,t,r){var o=pi(e);return function a(){for(var s=arguments.length,u=n(s),l=s,c=Li(a);l--;)u[l]=arguments[l];var p=s<3&&u[0]!==c&&u[s-1]!==c?[]:zr(u,c);return(s-=p.length)<r?xi(e,t,fi,a.placeholder,i,u,p,i,i,r-s):Jt(this&&this!==Rt&&this instanceof a?o:e,this,u)}}(e,t,c):t!=_&&t!=(g|_)||a.length?fi.apply(i,T):function(e,t,r,o){var i=t&g,a=pi(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=o.length,p=n(c+u),d=this&&this!==Rt&&this instanceof t?a:e;++l<c;)p[l]=o[l];for(;u--;)p[l++]=arguments[++s];return Jt(d,i?r:this,p)}}(e,t,r,o);else var z=function(e,t,r){var n=t&g,o=pi(e);return function t(){return(this&&this!==Rt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return aa((m?Oo:na)(z,T),e,t)}function Ti(e,t,r,n){return e===i||hs(e,st[r])&&!ct.call(n,r)?t:e}function zi(e,t,r,n,o,a){return zs(e)&&zs(t)&&(a.set(t,e),mo(e,t,i,zi,a),a.delete(t)),e}function Oi(e){return Cs(e)?i:e}function Ai(e,t,r,n,o,a){var s=r&y,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var p=-1,d=!0,h=r&m?new xn:i;for(a.set(e,t),a.set(t,e);++p<u;){var f=e[p],g=t[p];if(n)var v=s?n(g,f,p,t,e,a):n(f,g,p,e,t,a);if(v!==i){if(v)continue;d=!1;break}if(h){if(!nr(t,function(e,t){if(!vr(h,t)&&(f===e||o(f,e,r,n,a)))return h.push(t)})){d=!1;break}}else if(f!==g&&!o(f,g,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Ei(e){return ia(ea(e,i,va),e+"")}function Ci(e){return Xn(e,ou,Di)}function Mi(e){return Xn(e,iu,Ui)}var Ri=rn?function(e){return rn.get(e)}:Lu;function Ii(e){for(var t=e.name+"",r=nn[t],n=ct.call(nn,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function Li(e){return(ct.call(hn,"placeholder")?hn:e).placeholder}function Pi(){var e=hn.iteratee||Cu;return e=e===Cu?uo:e,arguments.length?e(arguments[0],arguments[1]):e}function Ni(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Fi(e){for(var t=ou(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ki(o)]}return t}function qi(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return so(r)?r:i}var Di=qr?function(e){return null==e?[]:(e=tt(e),Zt(qr(e),function(t){return It.call(e,t)}))}:Gu,Ui=qr?function(e){for(var t=[];e;)er(t,Di(e)),e=Ct(e);return t}:Gu,Gi=Kn;function Bi(e,t,r){for(var n=-1,o=(t=$o(t,e)).length,i=!1;++n<o;){var a=ca(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Ts(o)&&Vi(a,o)&&(gs(e)||ms(e))}function Wi(e){return"function"!=typeof e.constructor||Xi(e)?{}:fn(Ct(e))}function Ji(e){return gs(e)||ms(e)||!!(Nt&&e&&e[Nt])}function Vi(e,t){var r=typeof e;return!!(t=null==t?I:t)&&("number"==r||"symbol"!=r&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function $i(e,t,r){if(!zs(r))return!1;var n=typeof t;return!!("number"==n?bs(r)&&Vi(t,r.length):"string"==n&&t in r)&&hs(r[t],e)}function Yi(e,t){if(gs(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ls(e))||Ee.test(e)||!Ae.test(e)||null!=t&&e in tt(t)}function Hi(e){var t=Ii(e),r=hn[t];if("function"!=typeof r||!(t in gn.prototype))return!1;if(e===r)return!0;var n=Ri(r);return!!n&&e===n[0]}(Zr&&Gi(new Zr(new ArrayBuffer(1)))!=le||Xr&&Gi(new Xr)!=Z||Kr&&"[object Promise]"!=Gi(Kr.resolve())||Qr&&Gi(new Qr)!=re||en&&Gi(new en)!=ae)&&(Gi=function(e){var t=Kn(e),r=t==Q?e.constructor:i,n=r?pa(r):"";if(n)switch(n){case on:return le;case an:return Z;case sn:return"[object Promise]";case un:return re;case ln:return ae}return t});var Zi=ut?Ss:Bu;function Xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Ki(e){return e==e&&!zs(e)}function Qi(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in tt(r))}}function ea(e,t,r){return t=Wr(t===i?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Wr(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(s),Jt(e,this,u)}}function ta(e,t){return t.length<2?e:Zn(e,Co(t,0,-1))}function ra(e,t){if("__proto__"!=t)return e[t]}var na=sa(Oo),oa=Pr||function(e,t){return Rt.setTimeout(e,t)},ia=sa(Ao);function aa(e,t,r){var n=t+"";return ia(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Ne,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return $t(D,function(r){var n="_."+r[0];t&r[1]&&!Xt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(qe):[]}(n),r)))}function sa(e){var t=0,r=0;return function(){var n=Vr(),o=E-(n-r);if(r=n,o>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var a=_o(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var la=function(e){var t=ss(e,function(e){return r.size===c&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ce,function(e,r,n,o){t.push(n?o.replace(Ue,"$1"):r||e)}),t});function ca(e){if("string"==typeof e||Ls(e))return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}function pa(e){if(null!=e){try{return lt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function da(e){if(e instanceof gn)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=ni(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ha=So(function(e,t){return ws(e)?Fn(e,Wn(t,1,ws,!0)):[]}),fa=So(function(e,t){var r=ka(t);return ws(r)&&(r=i),ws(e)?Fn(e,Wn(t,1,ws,!0),Pi(r,2)):[]}),ya=So(function(e,t){var r=ka(t);return ws(r)&&(r=i),ws(e)?Fn(e,Wn(t,1,ws,!0),i,r):[]});function ma(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:Us(r);return o<0&&(o=Wr(n+o,0)),ar(e,Pi(t,3),o)}function ga(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=Us(r),o=r<0?Wr(n+o,0):Jr(o,n-1)),ar(e,Pi(t,3),o,!0)}function va(e){return null!=e&&e.length?Wn(e,1):[]}function ba(e){return e&&e.length?e[0]:i}var wa=So(function(e){var t=Qt(e,Jo);return t.length&&t[0]===e[0]?ro(t):[]}),xa=So(function(e){var t=ka(e),r=Qt(e,Jo);return t===ka(r)?t=i:r.pop(),r.length&&r[0]===e[0]?ro(r,Pi(t,2)):[]}),_a=So(function(e){var t=ka(e),r=Qt(e,Jo);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?ro(r,i,t):[]});function ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Sa=So(ja);function ja(e,t){return e&&e.length&&t&&t.length?wo(e,t):e}var Ta=Ei(function(e,t){var r=null==e?0:e.length,n=Rn(e,t);return xo(e,Qt(t,function(e){return Vi(e,r)?+e:e}).sort(ei)),n});function za(e){return null==e?e:Hr.call(e)}var Oa=So(function(e){return Fo(Wn(e,1,ws,!0))}),Aa=So(function(e){var t=ka(e);return ws(t)&&(t=i),Fo(Wn(e,1,ws,!0),Pi(t,2))}),Ea=So(function(e){var t=ka(e);return t="function"==typeof t?t:i,Fo(Wn(e,1,ws,!0),i,t)});function Ca(e){if(!e||!e.length)return[];var t=0;return e=Zt(e,function(e){if(ws(e))return t=Wr(e.length,t),!0}),yr(t,function(t){return Qt(e,pr(t))})}function Ma(e,t){if(!e||!e.length)return[];var r=Ca(e);return null==t?r:Qt(r,function(e){return Jt(t,i,e)})}var Ra=So(function(e,t){return ws(e)?Fn(e,t):[]}),Ia=So(function(e){return Bo(Zt(e,ws))}),La=So(function(e){var t=ka(e);return ws(t)&&(t=i),Bo(Zt(e,ws),Pi(t,2))}),Pa=So(function(e){var t=ka(e);return t="function"==typeof t?t:i,Bo(Zt(e,ws),i,t)}),Na=So(Ca);var Fa=So(function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,Ma(e,r)});function qa(e){var t=hn(e);return t.__chain__=!0,t}function Da(e,t){return t(e)}var Ua=Ei(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return Rn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof gn&&Vi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:Da,args:[o],thisArg:i}),new mn(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ga=ii(function(e,t,r){ct.call(e,r)?++e[r]:Mn(e,r,1)});var Ba=di(ma),Wa=di(ga);function Ja(e,t){return(gs(e)?$t:qn)(e,Pi(t,3))}function Va(e,t){return(gs(e)?Yt:Dn)(e,Pi(t,3))}var $a=ii(function(e,t,r){ct.call(e,r)?e[r].push(t):Mn(e,r,[t])});var Ya=So(function(e,t,r){var o=-1,i="function"==typeof t,a=bs(e)?n(e.length):[];return qn(e,function(e){a[++o]=i?Jt(t,e,r):no(e,t,r)}),a}),Ha=ii(function(e,t,r){Mn(e,r,t)});function Za(e,t){return(gs(e)?Qt:ho)(e,Pi(t,3))}var Xa=ii(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var Ka=So(function(e,t){if(null==e)return[];var r=t.length;return r>1&&$i(e,t[0],t[1])?t=[]:r>2&&$i(t[0],t[1],t[2])&&(t=[t[0]]),vo(e,Wn(t,1),[])}),Qa=Lr||function(){return Rt.Date.now()};function es(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,ji(e,S,i,i,i,i,t)}function ts(e,t){var r;if("function"!=typeof t)throw new ot(u);return e=Us(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var rs=So(function(e,t,r){var n=g;if(r.length){var o=zr(r,Li(rs));n|=_}return ji(e,n,t,r,o)}),ns=So(function(e,t,r){var n=g|v;if(r.length){var o=zr(r,Li(ns));n|=_}return ji(t,n,e,r,o)});function os(e,t,r){var n,o,a,s,l,c,p=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw new ot(u);function y(t){var r=n,a=o;return n=o=i,p=t,s=e.apply(a,r)}function m(e){var r=e-c;return c===i||r>=t||r<0||h&&e-p>=a}function g(){var e=Qa();if(m(e))return v(e);l=oa(g,function(e){var r=t-(e-c);return h?Jr(r,a-(e-p)):r}(e))}function v(e){return l=i,f&&n?y(e):(n=o=i,s)}function b(){var e=Qa(),r=m(e);if(n=arguments,o=this,c=e,r){if(l===i)return function(e){return p=e,l=oa(g,t),d?y(e):s}(c);if(h)return l=oa(g,t),y(c)}return l===i&&(l=oa(g,t)),s}return t=Bs(t)||0,zs(r)&&(d=!!r.leading,a=(h="maxWait"in r)?Wr(Bs(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),b.cancel=function(){l!==i&&Zo(l),p=0,n=c=o=l=i},b.flush=function(){return l===i?s:v(Qa())},b}var is=So(function(e,t){return Nn(e,1,t)}),as=So(function(e,t,r){return Nn(e,Bs(t)||0,r)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ss.Cache||wn),r}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wn;var ls=Yo(function(e,t){var r=(t=1==t.length&&gs(t[0])?Qt(t[0],mr(Pi())):Qt(Wn(t,1),mr(Pi()))).length;return So(function(n){for(var o=-1,i=Jr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return Jt(e,this,n)})}),cs=So(function(e,t){var r=zr(t,Li(cs));return ji(e,_,i,t,r)}),ps=So(function(e,t){var r=zr(t,Li(ps));return ji(e,k,i,t,r)}),ds=Ei(function(e,t){return ji(e,j,i,i,i,t)});function hs(e,t){return e===t||e!=e&&t!=t}var fs=wi(Qn),ys=wi(function(e,t){return e>=t}),ms=oo(function(){return arguments}())?oo:function(e){return Os(e)&&ct.call(e,"callee")&&!It.call(e,"callee")},gs=n.isArray,vs=qt?mr(qt):function(e){return Os(e)&&Kn(e)==ue};function bs(e){return null!=e&&Ts(e.length)&&!Ss(e)}function ws(e){return Os(e)&&bs(e)}var xs=Dr||Bu,_s=Dt?mr(Dt):function(e){return Os(e)&&Kn(e)==J};function ks(e){if(!Os(e))return!1;var t=Kn(e);return t==$||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!Cs(e)}function Ss(e){if(!zs(e))return!1;var t=Kn(e);return t==Y||t==H||t==B||t==ee}function js(e){return"number"==typeof e&&e==Us(e)}function Ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Os(e){return null!=e&&"object"==typeof e}var As=Ut?mr(Ut):function(e){return Os(e)&&Gi(e)==Z};function Es(e){return"number"==typeof e||Os(e)&&Kn(e)==X}function Cs(e){if(!Os(e)||Kn(e)!=Q)return!1;var t=Ct(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&lt.call(r)==ft}var Ms=Gt?mr(Gt):function(e){return Os(e)&&Kn(e)==te};var Rs=Bt?mr(Bt):function(e){return Os(e)&&Gi(e)==re};function Is(e){return"string"==typeof e||!gs(e)&&Os(e)&&Kn(e)==ne}function Ls(e){return"symbol"==typeof e||Os(e)&&Kn(e)==oe}var Ps=Wt?mr(Wt):function(e){return Os(e)&&Ts(e.length)&&!!Tt[Kn(e)]};var Ns=wi(po),Fs=wi(function(e,t){return e<=t});function qs(e){if(!e)return[];if(bs(e))return Is(e)?Cr(e):ni(e);if(Ft&&e[Ft])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ft]());var t=Gi(e);return(t==Z?jr:t==re?Or:hu)(e)}function Ds(e){return e?(e=Bs(e))===R||e===-R?(e<0?-1:1)*L:e==e?e:0:0===e?e:0}function Us(e){var t=Ds(e),r=t%1;return t==t?r?t-r:t:0}function Gs(e){return e?In(Us(e),0,N):0}function Bs(e){if("number"==typeof e)return e;if(Ls(e))return P;if(zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var r=Je.test(e);return r||$e.test(e)?Et(e.slice(2),r?2:8):We.test(e)?P:+e}function Ws(e){return oi(e,iu(e))}function Js(e){return null==e?"":No(e)}var Vs=ai(function(e,t){if(Xi(t)||bs(t))oi(t,ou(t),e);else for(var r in t)ct.call(t,r)&&On(e,r,t[r])}),$s=ai(function(e,t){oi(t,iu(t),e)}),Ys=ai(function(e,t,r,n){oi(t,iu(t),e,n)}),Hs=ai(function(e,t,r,n){oi(t,ou(t),e,n)}),Zs=Ei(Rn);var Xs=So(function(e,t){e=tt(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&$i(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],s=iu(a),u=-1,l=s.length;++u<l;){var c=s[u],p=e[c];(p===i||hs(p,st[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e}),Ks=So(function(e){return e.push(i,zi),Jt(su,i,e)});function Qs(e,t,r){var n=null==e?i:Zn(e,t);return n===i?r:n}function eu(e,t){return null!=e&&Bi(e,t,to)}var tu=yi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),e[t]=r},zu(Eu)),ru=yi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),ct.call(e,t)?e[t].push(r):e[t]=[r]},Pi),nu=So(no);function ou(e){return bs(e)?kn(e):lo(e)}function iu(e){return bs(e)?kn(e,!0):co(e)}var au=ai(function(e,t,r){mo(e,t,r)}),su=ai(function(e,t,r,n){mo(e,t,r,n)}),uu=Ei(function(e,t){var r={};if(null==e)return r;var n=!1;t=Qt(t,function(t){return t=$o(t,e),n||(n=t.length>1),t}),oi(e,Mi(e),r),n&&(r=Ln(r,d|h|f,Oi));for(var o=t.length;o--;)qo(r,t[o]);return r});var lu=Ei(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Qt(Mi(e),function(e){return[e]});return t=Pi(t),bo(e,r,function(e,r){return t(e,r[0])})}var pu=Si(ou),du=Si(iu);function hu(e){return null==e?[]:gr(e,ou(e))}var fu=ci(function(e,t,r){return t=t.toLowerCase(),e+(r?yu(t):t)});function yu(e){return ku(Js(e).toLowerCase())}function mu(e){return(e=Js(e))&&e.replace(He,xr).replace(bt,"")}var gu=ci(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=ci(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),bu=li("toLowerCase");var wu=ci(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var xu=ci(function(e,t,r){return e+(r?" ":"")+ku(t)});var _u=ci(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ku=li("toUpperCase");function Su(e,t,r){return e=Js(e),(t=r?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(De)||[]}(e):e.match(t)||[]}var ju=So(function(e,t){try{return Jt(e,i,t)}catch(e){return ks(e)?e:new Ke(e)}}),Tu=Ei(function(e,t){return $t(t,function(t){t=ca(t),Mn(e,t,rs(e[t],e))}),e});function zu(e){return function(){return e}}var Ou=hi(),Au=hi(!0);function Eu(e){return e}function Cu(e){return uo("function"==typeof e?e:Ln(e,d))}var Mu=So(function(e,t){return function(r){return no(r,e,t)}}),Ru=So(function(e,t){return function(r){return no(e,r,t)}});function Iu(e,t,r){var n=ou(t),o=Hn(t,n);null!=r||zs(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Hn(t,ou(t)));var i=!(zs(r)&&"chain"in r&&!r.chain),a=Ss(e);return $t(o,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=ni(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})}),e}function Lu(){}var Pu=gi(Qt),Nu=gi(Ht),Fu=gi(nr);function qu(e){return Yi(e)?pr(ca(e)):function(e){return function(t){return Zn(t,e)}}(e)}var Du=bi(),Uu=bi(!0);function Gu(){return[]}function Bu(){return!1}var Wu=mi(function(e,t){return e+t},0),Ju=_i("ceil"),Vu=mi(function(e,t){return e/t},1),$u=_i("floor");var Yu,Hu=mi(function(e,t){return e*t},1),Zu=_i("round"),Xu=mi(function(e,t){return e-t},0);return hn.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},hn.ary=es,hn.assign=Vs,hn.assignIn=$s,hn.assignInWith=Ys,hn.assignWith=Hs,hn.at=Zs,hn.before=ts,hn.bind=rs,hn.bindAll=Tu,hn.bindKey=ns,hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return gs(e)?e:[e]},hn.chain=qa,hn.chunk=function(e,t,r){t=(r?$i(e,t,r):t===i)?1:Wr(Us(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(Nr(o/t));a<o;)u[s++]=Co(e,a,a+=t);return u},hn.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return er(gs(r)?ni(r):[r],Wn(t,1))},hn.cond=function(e){var t=null==e?0:e.length,r=Pi();return e=t?Qt(e,function(e){if("function"!=typeof e[1])throw new ot(u);return[r(e[0]),e[1]]}):[],So(function(r){for(var n=-1;++n<t;){var o=e[n];if(Jt(o[0],this,r))return Jt(o[1],this,r)}})},hn.conforms=function(e){return function(e){var t=ou(e);return function(r){return Pn(r,e,t)}}(Ln(e,d))},hn.constant=zu,hn.countBy=Ga,hn.create=function(e,t){var r=fn(e);return null==t?r:Cn(r,t)},hn.curry=function e(t,r,n){var o=ji(t,w,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},hn.curryRight=function e(t,r,n){var o=ji(t,x,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},hn.debounce=os,hn.defaults=Xs,hn.defaultsDeep=Ks,hn.defer=is,hn.delay=as,hn.difference=ha,hn.differenceBy=fa,hn.differenceWith=ya,hn.drop=function(e,t,r){var n=null==e?0:e.length;return n?Co(e,(t=r||t===i?1:Us(t))<0?0:t,n):[]},hn.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?Co(e,0,(t=n-(t=r||t===i?1:Us(t)))<0?0:t):[]},hn.dropRightWhile=function(e,t){return e&&e.length?Uo(e,Pi(t,3),!0,!0):[]},hn.dropWhile=function(e,t){return e&&e.length?Uo(e,Pi(t,3),!0):[]},hn.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&$i(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=Us(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:Us(n))<0&&(n+=o),n=r>n?0:Gs(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},hn.filter=function(e,t){return(gs(e)?Zt:Bn)(e,Pi(t,3))},hn.flatMap=function(e,t){return Wn(Za(e,t),1)},hn.flatMapDeep=function(e,t){return Wn(Za(e,t),R)},hn.flatMapDepth=function(e,t,r){return r=r===i?1:Us(r),Wn(Za(e,t),r)},hn.flatten=va,hn.flattenDeep=function(e){return null!=e&&e.length?Wn(e,R):[]},hn.flattenDepth=function(e,t){return null!=e&&e.length?Wn(e,t=t===i?1:Us(t)):[]},hn.flip=function(e){return ji(e,T)},hn.flow=Ou,hn.flowRight=Au,hn.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},hn.functions=function(e){return null==e?[]:Hn(e,ou(e))},hn.functionsIn=function(e){return null==e?[]:Hn(e,iu(e))},hn.groupBy=$a,hn.initial=function(e){return null!=e&&e.length?Co(e,0,-1):[]},hn.intersection=wa,hn.intersectionBy=xa,hn.intersectionWith=_a,hn.invert=tu,hn.invertBy=ru,hn.invokeMap=Ya,hn.iteratee=Cu,hn.keyBy=Ha,hn.keys=ou,hn.keysIn=iu,hn.map=Za,hn.mapKeys=function(e,t){var r={};return t=Pi(t,3),$n(e,function(e,n,o){Mn(r,t(e,n,o),e)}),r},hn.mapValues=function(e,t){var r={};return t=Pi(t,3),$n(e,function(e,n,o){Mn(r,n,t(e,n,o))}),r},hn.matches=function(e){return fo(Ln(e,d))},hn.matchesProperty=function(e,t){return yo(e,Ln(t,d))},hn.memoize=ss,hn.merge=au,hn.mergeWith=su,hn.method=Mu,hn.methodOf=Ru,hn.mixin=Iu,hn.negate=us,hn.nthArg=function(e){return e=Us(e),So(function(t){return go(t,e)})},hn.omit=uu,hn.omitBy=function(e,t){return cu(e,us(Pi(t)))},hn.once=function(e){return ts(2,e)},hn.orderBy=function(e,t,r,n){return null==e?[]:(gs(t)||(t=null==t?[]:[t]),gs(r=n?i:r)||(r=null==r?[]:[r]),vo(e,t,r))},hn.over=Pu,hn.overArgs=ls,hn.overEvery=Nu,hn.overSome=Fu,hn.partial=cs,hn.partialRight=ps,hn.partition=Xa,hn.pick=lu,hn.pickBy=cu,hn.property=qu,hn.propertyOf=function(e){return function(t){return null==e?i:Zn(e,t)}},hn.pull=Sa,hn.pullAll=ja,hn.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?wo(e,t,Pi(r,2)):e},hn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?wo(e,t,i,r):e},hn.pullAt=Ta,hn.range=Du,hn.rangeRight=Uu,hn.rearg=ds,hn.reject=function(e,t){return(gs(e)?Zt:Bn)(e,us(Pi(t,3)))},hn.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=Pi(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return xo(e,o),r},hn.rest=function(e,t){if("function"!=typeof e)throw new ot(u);return So(e,t=t===i?t:Us(t))},hn.reverse=za,hn.sampleSize=function(e,t,r){return t=(r?$i(e,t,r):t===i)?1:Us(t),(gs(e)?jn:To)(e,t)},hn.set=function(e,t,r){return null==e?e:zo(e,t,r)},hn.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:zo(e,t,r,n)},hn.shuffle=function(e){return(gs(e)?Tn:Eo)(e)},hn.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&$i(e,t,r)?(t=0,r=n):(t=null==t?0:Us(t),r=r===i?n:Us(r)),Co(e,t,r)):[]},hn.sortBy=Ka,hn.sortedUniq=function(e){return e&&e.length?Lo(e):[]},hn.sortedUniqBy=function(e,t){return e&&e.length?Lo(e,Pi(t,2)):[]},hn.split=function(e,t,r){return r&&"number"!=typeof r&&$i(e,t,r)&&(t=r=i),(r=r===i?N:r>>>0)?(e=Js(e))&&("string"==typeof t||null!=t&&!Ms(t))&&!(t=No(t))&&Sr(e)?Ho(Cr(e),0,r):e.split(t,r):[]},hn.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Wr(Us(t),0),So(function(r){var n=r[t],o=Ho(r,0,t);return n&&er(o,n),Jt(e,this,o)})},hn.tail=function(e){var t=null==e?0:e.length;return t?Co(e,1,t):[]},hn.take=function(e,t,r){return e&&e.length?Co(e,0,(t=r||t===i?1:Us(t))<0?0:t):[]},hn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Co(e,(t=n-(t=r||t===i?1:Us(t)))<0?0:t,n):[]},hn.takeRightWhile=function(e,t){return e&&e.length?Uo(e,Pi(t,3),!1,!0):[]},hn.takeWhile=function(e,t){return e&&e.length?Uo(e,Pi(t,3)):[]},hn.tap=function(e,t){return t(e),e},hn.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new ot(u);return zs(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),os(e,t,{leading:n,maxWait:t,trailing:o})},hn.thru=Da,hn.toArray=qs,hn.toPairs=pu,hn.toPairsIn=du,hn.toPath=function(e){return gs(e)?Qt(e,ca):Ls(e)?[e]:ni(la(Js(e)))},hn.toPlainObject=Ws,hn.transform=function(e,t,r){var n=gs(e),o=n||xs(e)||Ps(e);if(t=Pi(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:zs(e)&&Ss(i)?fn(Ct(e)):{}}return(o?$t:$n)(e,function(e,n,o){return t(r,e,n,o)}),r},hn.unary=function(e){return es(e,1)},hn.union=Oa,hn.unionBy=Aa,hn.unionWith=Ea,hn.uniq=function(e){return e&&e.length?Fo(e):[]},hn.uniqBy=function(e,t){return e&&e.length?Fo(e,Pi(t,2)):[]},hn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Fo(e,i,t):[]},hn.unset=function(e,t){return null==e||qo(e,t)},hn.unzip=Ca,hn.unzipWith=Ma,hn.update=function(e,t,r){return null==e?e:Do(e,t,Vo(r))},hn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Do(e,t,Vo(r),n)},hn.values=hu,hn.valuesIn=function(e){return null==e?[]:gr(e,iu(e))},hn.without=Ra,hn.words=Su,hn.wrap=function(e,t){return cs(Vo(t),e)},hn.xor=Ia,hn.xorBy=La,hn.xorWith=Pa,hn.zip=Na,hn.zipObject=function(e,t){return Wo(e||[],t||[],On)},hn.zipObjectDeep=function(e,t){return Wo(e||[],t||[],zo)},hn.zipWith=Fa,hn.entries=pu,hn.entriesIn=du,hn.extend=$s,hn.extendWith=Ys,Iu(hn,hn),hn.add=Wu,hn.attempt=ju,hn.camelCase=fu,hn.capitalize=yu,hn.ceil=Ju,hn.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=Bs(r))==r?r:0),t!==i&&(t=(t=Bs(t))==t?t:0),In(Bs(e),t,r)},hn.clone=function(e){return Ln(e,f)},hn.cloneDeep=function(e){return Ln(e,d|f)},hn.cloneDeepWith=function(e,t){return Ln(e,d|f,t="function"==typeof t?t:i)},hn.cloneWith=function(e,t){return Ln(e,f,t="function"==typeof t?t:i)},hn.conformsTo=function(e,t){return null==t||Pn(e,t,ou(t))},hn.deburr=mu,hn.defaultTo=function(e,t){return null==e||e!=e?t:e},hn.divide=Vu,hn.endsWith=function(e,t,r){e=Js(e),t=No(t);var n=e.length,o=r=r===i?n:In(Us(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},hn.eq=hs,hn.escape=function(e){return(e=Js(e))&&je.test(e)?e.replace(ke,_r):e},hn.escapeRegExp=function(e){return(e=Js(e))&&Re.test(e)?e.replace(Me,"\\$&"):e},hn.every=function(e,t,r){var n=gs(e)?Ht:Un;return r&&$i(e,t,r)&&(t=i),n(e,Pi(t,3))},hn.find=Ba,hn.findIndex=ma,hn.findKey=function(e,t){return ir(e,Pi(t,3),$n)},hn.findLast=Wa,hn.findLastIndex=ga,hn.findLastKey=function(e,t){return ir(e,Pi(t,3),Yn)},hn.floor=$u,hn.forEach=Ja,hn.forEachRight=Va,hn.forIn=function(e,t){return null==e?e:Jn(e,Pi(t,3),iu)},hn.forInRight=function(e,t){return null==e?e:Vn(e,Pi(t,3),iu)},hn.forOwn=function(e,t){return e&&$n(e,Pi(t,3))},hn.forOwnRight=function(e,t){return e&&Yn(e,Pi(t,3))},hn.get=Qs,hn.gt=fs,hn.gte=ys,hn.has=function(e,t){return null!=e&&Bi(e,t,eo)},hn.hasIn=eu,hn.head=ba,hn.identity=Eu,hn.includes=function(e,t,r,n){e=bs(e)?e:hu(e),r=r&&!n?Us(r):0;var o=e.length;return r<0&&(r=Wr(o+r,0)),Is(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&sr(e,t,r)>-1},hn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:Us(r);return o<0&&(o=Wr(n+o,0)),sr(e,t,o)},hn.inRange=function(e,t,r){return t=Ds(t),r===i?(r=t,t=0):r=Ds(r),function(e,t,r){return e>=Jr(t,r)&&e<Wr(t,r)}(e=Bs(e),t,r)},hn.invoke=nu,hn.isArguments=ms,hn.isArray=gs,hn.isArrayBuffer=vs,hn.isArrayLike=bs,hn.isArrayLikeObject=ws,hn.isBoolean=function(e){return!0===e||!1===e||Os(e)&&Kn(e)==W},hn.isBuffer=xs,hn.isDate=_s,hn.isElement=function(e){return Os(e)&&1===e.nodeType&&!Cs(e)},hn.isEmpty=function(e){if(null==e)return!0;if(bs(e)&&(gs(e)||"string"==typeof e||"function"==typeof e.splice||xs(e)||Ps(e)||ms(e)))return!e.length;var t=Gi(e);if(t==Z||t==re)return!e.size;if(Xi(e))return!lo(e).length;for(var r in e)if(ct.call(e,r))return!1;return!0},hn.isEqual=function(e,t){return io(e,t)},hn.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?io(e,t,i,r):!!n},hn.isError=ks,hn.isFinite=function(e){return"number"==typeof e&&Ur(e)},hn.isFunction=Ss,hn.isInteger=js,hn.isLength=Ts,hn.isMap=As,hn.isMatch=function(e,t){return e===t||ao(e,t,Fi(t))},hn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,ao(e,t,Fi(t),r)},hn.isNaN=function(e){return Es(e)&&e!=+e},hn.isNative=function(e){if(Zi(e))throw new Ke(s);return so(e)},hn.isNil=function(e){return null==e},hn.isNull=function(e){return null===e},hn.isNumber=Es,hn.isObject=zs,hn.isObjectLike=Os,hn.isPlainObject=Cs,hn.isRegExp=Ms,hn.isSafeInteger=function(e){return js(e)&&e>=-I&&e<=I},hn.isSet=Rs,hn.isString=Is,hn.isSymbol=Ls,hn.isTypedArray=Ps,hn.isUndefined=function(e){return e===i},hn.isWeakMap=function(e){return Os(e)&&Gi(e)==ae},hn.isWeakSet=function(e){return Os(e)&&Kn(e)==se},hn.join=function(e,t){return null==e?"":Gr.call(e,t)},hn.kebabCase=gu,hn.last=ka,hn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=Us(r))<0?Wr(n+o,0):Jr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):ar(e,lr,o,!0)},hn.lowerCase=vu,hn.lowerFirst=bu,hn.lt=Ns,hn.lte=Fs,hn.max=function(e){return e&&e.length?Gn(e,Eu,Qn):i},hn.maxBy=function(e,t){return e&&e.length?Gn(e,Pi(t,2),Qn):i},hn.mean=function(e){return cr(e,Eu)},hn.meanBy=function(e,t){return cr(e,Pi(t,2))},hn.min=function(e){return e&&e.length?Gn(e,Eu,po):i},hn.minBy=function(e,t){return e&&e.length?Gn(e,Pi(t,2),po):i},hn.stubArray=Gu,hn.stubFalse=Bu,hn.stubObject=function(){return{}},hn.stubString=function(){return""},hn.stubTrue=function(){return!0},hn.multiply=Hu,hn.nth=function(e,t){return e&&e.length?go(e,Us(t)):i},hn.noConflict=function(){return Rt._===this&&(Rt._=yt),this},hn.noop=Lu,hn.now=Qa,hn.pad=function(e,t,r){e=Js(e);var n=(t=Us(t))?Er(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return vi(Fr(o),r)+e+vi(Nr(o),r)},hn.padEnd=function(e,t,r){e=Js(e);var n=(t=Us(t))?Er(e):0;return t&&n<t?e+vi(t-n,r):e},hn.padStart=function(e,t,r){e=Js(e);var n=(t=Us(t))?Er(e):0;return t&&n<t?vi(t-n,r)+e:e},hn.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),$r(Js(e).replace(Le,""),t||0)},hn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&$i(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Ds(e),t===i?(t=e,e=0):t=Ds(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=Yr();return Jr(e+o*(t-e+At("1e-"+((o+"").length-1))),t)}return _o(e,t)},hn.reduce=function(e,t,r){var n=gs(e)?tr:hr,o=arguments.length<3;return n(e,Pi(t,4),r,o,qn)},hn.reduceRight=function(e,t,r){var n=gs(e)?rr:hr,o=arguments.length<3;return n(e,Pi(t,4),r,o,Dn)},hn.repeat=function(e,t,r){return t=(r?$i(e,t,r):t===i)?1:Us(t),ko(Js(e),t)},hn.replace=function(){var e=arguments,t=Js(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hn.result=function(e,t,r){var n=-1,o=(t=$o(t,e)).length;for(o||(o=1,e=i);++n<o;){var a=null==e?i:e[ca(t[n])];a===i&&(n=o,a=r),e=Ss(a)?a.call(e):a}return e},hn.round=Zu,hn.runInContext=e,hn.sample=function(e){return(gs(e)?Sn:jo)(e)},hn.size=function(e){if(null==e)return 0;if(bs(e))return Is(e)?Er(e):e.length;var t=Gi(e);return t==Z||t==re?e.size:lo(e).length},hn.snakeCase=wu,hn.some=function(e,t,r){var n=gs(e)?nr:Mo;return r&&$i(e,t,r)&&(t=i),n(e,Pi(t,3))},hn.sortedIndex=function(e,t){return Ro(e,t)},hn.sortedIndexBy=function(e,t,r){return Io(e,t,Pi(r,2))},hn.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Ro(e,t);if(n<r&&hs(e[n],t))return n}return-1},hn.sortedLastIndex=function(e,t){return Ro(e,t,!0)},hn.sortedLastIndexBy=function(e,t,r){return Io(e,t,Pi(r,2),!0)},hn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=Ro(e,t,!0)-1;if(hs(e[r],t))return r}return-1},hn.startCase=xu,hn.startsWith=function(e,t,r){return e=Js(e),r=null==r?0:In(Us(r),0,e.length),t=No(t),e.slice(r,r+t.length)==t},hn.subtract=Xu,hn.sum=function(e){return e&&e.length?fr(e,Eu):0},hn.sumBy=function(e,t){return e&&e.length?fr(e,Pi(t,2)):0},hn.template=function(e,t,r){var n=hn.templateSettings;r&&$i(e,t,r)&&(t=i),e=Js(e),t=Ys({},t,n,Ti);var o,a,s=Ys({},t.imports,n.imports,Ti),u=ou(s),l=gr(s,u),c=0,p=t.interpolate||Ze,d="__p += '",h=rt((t.escape||Ze).source+"|"+p.source+"|"+(p===Oe?Ge:Ze).source+"|"+(t.evaluate||Ze).source+"|$","g"),f="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++jt+"]")+"\n";e.replace(h,function(t,r,n,i,s,u){return n||(n=i),d+=e.slice(c,u).replace(Xe,kr),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),d+="';\n";var y=t.variable;y||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(be,""):d).replace(we,"$1").replace(xe,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=ju(function(){return Qe(u,f+"return "+d).apply(i,l)});if(m.source=d,ks(m))throw m;return m},hn.times=function(e,t){if((e=Us(e))<1||e>I)return[];var r=N,n=Jr(e,N);t=Pi(t),e-=N;for(var o=yr(n,t);++r<e;)t(r);return o},hn.toFinite=Ds,hn.toInteger=Us,hn.toLength=Gs,hn.toLower=function(e){return Js(e).toLowerCase()},hn.toNumber=Bs,hn.toSafeInteger=function(e){return e?In(Us(e),-I,I):0===e?e:0},hn.toString=Js,hn.toUpper=function(e){return Js(e).toUpperCase()},hn.trim=function(e,t,r){if((e=Js(e))&&(r||t===i))return e.replace(Ie,"");if(!e||!(t=No(t)))return e;var n=Cr(e),o=Cr(t);return Ho(n,br(n,o),wr(n,o)+1).join("")},hn.trimEnd=function(e,t,r){if((e=Js(e))&&(r||t===i))return e.replace(Pe,"");if(!e||!(t=No(t)))return e;var n=Cr(e);return Ho(n,0,wr(n,Cr(t))+1).join("")},hn.trimStart=function(e,t,r){if((e=Js(e))&&(r||t===i))return e.replace(Le,"");if(!e||!(t=No(t)))return e;var n=Cr(e);return Ho(n,br(n,Cr(t))).join("")},hn.truncate=function(e,t){var r=z,n=O;if(zs(t)){var o="separator"in t?t.separator:o;r="length"in t?Us(t.length):r,n="omission"in t?No(t.omission):n}var a=(e=Js(e)).length;if(Sr(e)){var s=Cr(e);a=s.length}if(r>=a)return e;var u=r-Er(n);if(u<1)return n;var l=s?Ho(s,0,u).join(""):e.slice(0,u);if(o===i)return l+n;if(s&&(u+=l.length-u),Ms(o)){if(e.slice(u).search(o)){var c,p=l;for(o.global||(o=rt(o.source,Js(Be.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var d=c.index;l=l.slice(0,d===i?u:d)}}else if(e.indexOf(No(o),u)!=u){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+n},hn.unescape=function(e){return(e=Js(e))&&Se.test(e)?e.replace(_e,Mr):e},hn.uniqueId=function(e){var t=++pt;return Js(e)+t},hn.upperCase=_u,hn.upperFirst=ku,hn.each=Ja,hn.eachRight=Va,hn.first=ba,Iu(hn,(Yu={},$n(hn,function(e,t){ct.call(hn.prototype,t)||(Yu[t]=e)}),Yu),{chain:!1}),hn.VERSION="4.17.11",$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hn[e].placeholder=hn}),$t(["drop","take"],function(e,t){gn.prototype[e]=function(r){r=r===i?1:Wr(Us(r),0);var n=this.__filtered__&&!t?new gn(this):this.clone();return n.__filtered__?n.__takeCount__=Jr(r,n.__takeCount__):n.__views__.push({size:Jr(r,N),type:e+(n.__dir__<0?"Right":"")}),n},gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),$t(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==C||3==r;gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Pi(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),$t(["head","last"],function(e,t){var r="take"+(t?"Right":"");gn.prototype[e]=function(){return this[r](1).value()[0]}}),$t(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");gn.prototype[e]=function(){return this.__filtered__?new gn(this):this[r](1)}}),gn.prototype.compact=function(){return this.filter(Eu)},gn.prototype.find=function(e){return this.filter(e).head()},gn.prototype.findLast=function(e){return this.reverse().find(e)},gn.prototype.invokeMap=So(function(e,t){return"function"==typeof e?new gn(this):this.map(function(r){return no(r,e,t)})}),gn.prototype.reject=function(e){return this.filter(us(Pi(e)))},gn.prototype.slice=function(e,t){e=Us(e);var r=this;return r.__filtered__&&(e>0||t<0)?new gn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=Us(t))<0?r.dropRight(-t):r.take(t-e)),r)},gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gn.prototype.toArray=function(){return this.take(N)},$n(gn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=hn[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(hn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof gn,l=s[0],c=u||gs(t),p=function(e){var t=o.apply(hn,er([e],s));return n&&d?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,h=!!this.__actions__.length,f=a&&!d,y=u&&!h;if(!a&&c){t=y?t:new gn(this);var m=e.apply(t,s);return m.__actions__.push({func:Da,args:[p],thisArg:i}),new mn(m,d)}return f&&y?e.apply(this,s):(m=this.thru(p),f?n?m.value()[0]:m.value():m)})}),$t(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);hn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(gs(o)?o:[],e)}return this[r](function(r){return t.apply(gs(r)?r:[],e)})}}),$n(gn.prototype,function(e,t){var r=hn[t];if(r){var n=r.name+"";(nn[n]||(nn[n]=[])).push({name:t,func:r})}}),nn[fi(i,v).name]=[{name:"wrapper",func:i}],gn.prototype.clone=function(){var e=new gn(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},gn.prototype.reverse=function(){if(this.__filtered__){var e=new gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=gs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Jr(t,e+a);break;case"takeRight":e=Wr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,p=c.length,d=0,h=Jr(u,this.__takeCount__);if(!r||!n&&o==u&&h==u)return Go(e,this.__actions__);var f=[];e:for(;u--&&d<h;){for(var y=-1,m=e[l+=t];++y<p;){var g=c[y],v=g.iteratee,b=g.type,w=v(m);if(b==M)m=w;else if(!w){if(b==C)continue e;break e}}f[d++]=m}return f},hn.prototype.at=Ua,hn.prototype.chain=function(){return qa(this)},hn.prototype.commit=function(){return new mn(this.value(),this.__chain__)},hn.prototype.next=function(){this.__values__===i&&(this.__values__=qs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hn.prototype.plant=function(e){for(var t,r=this;r instanceof yn;){var n=da(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gn){var t=e;return this.__actions__.length&&(t=new gn(this)),(t=t.reverse()).__actions__.push({func:Da,args:[za],thisArg:i}),new mn(t,this.__chain__)}return this.thru(za)},hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=function(){return Go(this.__wrapped__,this.__actions__)},hn.prototype.first=hn.prototype.head,Ft&&(hn.prototype[Ft]=function(){return this}),hn}();Rt._=Rr,(o=function(){return Rr}.call(t,r,t,n))===i||(n.exports=o)}).call(this)}).call(this,r(4),r(12)(e))},function(e,t,r){(function(e,r){(function(t){"use strict";var n={$version:8,$root:{version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},sources:{"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster:{type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},"*":{type:"*",doc:"Other keys to configure the data source."}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."}},source_video:{type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},source_image:{type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},layer:{id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_fill:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_circle:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key wehn they overlap. Features with a lower sort key will have priority over other features when doing placement.","sdk-support":{js:"0.53.0"},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"If `symbol-sort-key` is set, sort based on that. Otherwise sort symbols by their position relative to the viewport."},"viewport-y":{doc:"Symbols will be sorted by their y-position relative to the viewport."},source:{doc:"Symbols will be rendered in the same order as the source data with no sorting applied."}},default:"auto",doc:"Controls the order in which overlapping symbols in the same layer are rendered","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},"property-type":"constant"}},filter:{type:"array",value:"*",doc:"A filter selects specific features from a layer."},filter_operator:{type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'}},doc:"The filter operator."},geometry_type:{type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2,doc:"Zoom level and value pair."},expression:{type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},expression_name:{doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output whose label value matches the input value, or the fallback value if no match is found. The input can be any expression (e.g. `["get", "building_type"]`). Each label must either be a single literal value or an array of literal values (e.g. `"a"` or `["c", "b"]`), and those values must be all strings or all numbers. (The values `"1"` and `1` cannot both be labels in the same match expression.) Each label must be unique. If the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\n\nInterpolation types:\n- `["linear"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:"Returns `formatted` text containing annotations for use in mixed-format `text-field` entries. If set, the `text-font` argument overrides the font specified by the root layout properties. If set, the `font-scale` argument specifies a scaling factor relative to the `text-size` specified in the root layout properties.",group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String"},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},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,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}}},o=/("(?:[^\\"]|\\.)*")|[:,\][}{]/g;function i(e,t,r){return t in e?e[t]:r}var a=function(e,t){t=t||{};var r=JSON.stringify([1],null,i(t,"indent",2)).slice(2,-3),n=i(t,"margins",!1),a=""===r?1/0:i(t,"maxLength",80);return function e(t,i,s){t&&"function"==typeof t.toJSON&&(t=t.toJSON());var u=JSON.stringify(t);if(void 0===u)return u;var l=a-i.length-s;if(u.length<=l){var c=function(e,t){var r=t?" ":"",n={"{":"{"+r,"[":"["+r,"}":r+"}","]":r+"]",",":", ",":":": "};return e.replace(o,function(e,t){return t?e:n[e]})}(u,n);if(c.length<=l)return c}if("object"==typeof t&&null!==t){var p,d=i+r,h=[],f=function(e,t){return t===e.length-1?0:1};if(Array.isArray(t)){for(var y=0;y<t.length;y++)h.push(e(t[y],d,f(t,y))||"null");p="[]"}else Object.keys(t).forEach(function(r,n,o){var i=JSON.stringify(r)+": ",a=e(t[r],d,i.length+f(o,n));void 0!==a&&h.push(i+a)}),p="{}";if(h.length>0)return[p[0],r+h.join(",\n"+d),p[1]].join("\n"+i)}return u}(e,"",0)};function s(e,t){var r={};for(var n in t)void 0!==e[n]&&(r[n]=e[n]);for(var o in e)void 0===r[o]&&(r[o]=e[o]);return r}var u="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function l(e,t){return e(t={exports:{}},t.exports),t.exports}var c=l(function(e,t){!function(r){var n=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i="object"==typeof u&&u;i.global!==i&&i.window!==i&&i.self!==i||(r=i);var a,s,l=2147483647,c=36,p=1,d=26,h=38,f=700,y=72,m=128,g="-",v=/^xn--/,b=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-p,k=Math.floor,S=String.fromCharCode;function j(e){throw RangeError(x[e])}function T(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function z(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+T((e=e.replace(w,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function A(e){return T(e,function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?k(e/f):e>>1,e+=k(e/t);e>_*d>>1;n+=c)e=k(e/_);return k(n+(_+1)*e/(e+h))}function M(e){var t,r,n,o,i,a,s,u,h,f,v,b=[],w=e.length,x=0,_=m,S=y;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&j("not-basic"),b.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<w;){for(i=x,a=1,s=c;o>=w&&j("invalid-input"),((u=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||u>k((l-x)/a))&&j("overflow"),x+=u*a,!(u<(h=s<=S?p:s>=S+d?d:s-S));s+=c)a>k(l/(f=c-h))&&j("overflow"),a*=f;S=C(x-i,t=b.length+1,0==i),k(x/t)>l-_&&j("overflow"),_+=k(x/t),x%=t,b.splice(x++,0,_)}return A(b)}function R(e){var t,r,n,o,i,a,s,u,h,f,v,b,w,x,_,T=[];for(b=(e=O(e)).length,t=m,r=0,i=y,a=0;a<b;++a)(v=e[a])<128&&T.push(S(v));for(n=o=T.length,o&&T.push(g);n<b;){for(s=l,a=0;a<b;++a)(v=e[a])>=t&&v<s&&(s=v);for(s-t>k((l-r)/(w=n+1))&&j("overflow"),r+=(s-t)*w,t=s,a=0;a<b;++a)if((v=e[a])<t&&++r>l&&j("overflow"),v==t){for(u=r,h=c;!(u<(f=h<=i?p:h>=i+d?d:h-i));h+=c)_=u-f,x=c-f,T.push(S(E(f+_%x,0))),u=k(_/x);T.push(S(E(u,0))),i=C(r,w,n==o),r=0,++n}++r,++t}return T.join("")}if(a={version:"1.3.2",ucs2:{decode:O,encode:A},decode:M,encode:R,toASCII:function(e){return z(e,function(e){return b.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return z(e,function(e){return v.test(e)?M(e.slice(4).toLowerCase()):e})}},n&&o)if(e.exports==n)o.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else r.punycode=a}(u)}),p={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h=function(e,t,r,n){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,p,h,f=e[u].replace(i,"%20"),y=f.indexOf(r);y>=0?(l=f.substr(0,y),c=f.substr(y+1)):(l=f,c=""),p=decodeURIComponent(l),h=decodeURIComponent(c),d(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o},f=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},y=function(e,t,r,n){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(n){var o=encodeURIComponent(f(n))+r;return Array.isArray(e[n])?e[n].map(function(e){return o+encodeURIComponent(f(e))}).join(t):o+encodeURIComponent(f(e[n]))}).join(t):n?encodeURIComponent(f(n))+r+encodeURIComponent(f(e)):""},m=l(function(e,t){t.decode=t.parse=h,t.encode=t.stringify=y}),g=(m.decode,m.parse,m.encode,m.stringify,L),v=function(e,t){return L(e,!1,!0).resolve(t)},b=function(e,t){if(!e)return t;return L(e,!1,!0).resolveObject(t)},w=function(e){p.isString(e)&&(e=L(e));if(!(e instanceof _))return _.prototype.format.call(e);return e.format()},x=_;function _(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var k=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,j=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),z=["'"].concat(T),O=["%","/","?",";","#"].concat(z),A=["/","?","#"],E=/^[+a-z0-9A-Z_-]{0,63}$/,C=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},I={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function L(e,t,r){if(e&&p.isObject(e)&&e instanceof _)return e;var n=new _;return n.parse(e,t,r),n}_.prototype.parse=function(e,t,r){if(!p.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=-1!==n&&n<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!r&&1===e.split("#").length){var s=j.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=k.exec(a);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var d="//"===a.substr(0,2);!d||u&&R[u]||(a=a.substr(2),this.slashes=!0)}if(!R[u]&&(d||u&&!I[u])){for(var h,f,y=-1,g=0;g<A.length;g++){-1!==(v=a.indexOf(A[g]))&&(-1===y||v<y)&&(y=v)}-1!==(f=-1===y?a.lastIndexOf("@"):a.lastIndexOf("@",y))&&(h=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(h)),y=-1;for(g=0;g<O.length;g++){var v;-1!==(v=a.indexOf(O[g]))&&(-1===y||v<y)&&(y=v)}-1===y&&(y=a.length),this.host=a.slice(0,y),a=a.slice(y),this.parseHost(),this.hostname=this.hostname||"";var b="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!b)for(var w=this.hostname.split(/\./),x=(g=0,w.length);g<x;g++){var _=w[g];if(_&&!_.match(E)){for(var S="",T=0,L=_.length;T<L;T++)_.charCodeAt(T)>127?S+="x":S+=_[T];if(!S.match(E)){var P=w.slice(0,g),N=w.slice(g+1),F=_.match(C);F&&(P.push(F[1]),N.unshift(F[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),b||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+q,this.href+=this.host,b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!M[l])for(g=0,x=z.length;g<x;g++){var U=z[g];if(-1!==a.indexOf(U)){var G=encodeURIComponent(U);G===U&&(G=escape(U)),a=a.split(U).join(G)}}var B=a.indexOf("#");-1!==B&&(this.hash=a.substr(B),a=a.slice(0,B));var W=a.indexOf("?");if(-1!==W?(this.search=a.substr(W),this.query=a.substr(W+1),t&&(this.query=m.parse(this.query)),a=a.slice(0,W)):t&&(this.search="",this.query={}),a&&(this.pathname=a),I[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){q=this.pathname||"";var J=this.search||"";this.path=q+J}return this.href=this.format(),this},_.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(i=m.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||I[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},_.prototype.resolve=function(e){return this.resolveObject(L(e,!1,!0)).format()},_.prototype.resolveObject=function(e){if(p.isString(e)){var t=new _;t.parse(e,!1,!0),e=t}for(var r=new _,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return I[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!I[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var d=l[c];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||R[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var f=r.pathname||"",y=r.search||"";r.path=f+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||r.host&&e.pathname,b=v,w=r.pathname&&r.pathname.split("/")||[],x=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!I[r.protocol]);if(x&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===w[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=h;else if(h.length)w||(w=[]),w.pop(),w=w.concat(h),r.search=e.search,r.query=e.query;else if(!p.isNullOrUndefined(e.search)){if(x)r.hostname=r.host=w.shift(),(z=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=z.shift(),r.host=r.hostname=z.shift());return r.search=e.search,r.query=e.query,p.isNull(r.pathname)&&p.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],S=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,j=0,T=w.length;T>=0;T--)"."===(k=w[T])?w.splice(T,1):".."===k?(w.splice(T,1),j++):j&&(w.splice(T,1),j--);if(!v&&!b)for(;j--;j)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var z,O=""===w[0]||w[0]&&"/"===w[0].charAt(0);x&&(r.hostname=r.host=O?"":w.length?w.shift():"",(z=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=z.shift(),r.host=r.hostname=z.shift()));return(v=v||r.host&&w.length)&&!O&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),p.isNull(r.pathname)&&p.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},_.prototype.parseHost=function(){var e=this.host,t=S.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var P={parse:g,resolve:v,resolveObject:b,format:w,Url:x};function N(e){for(var t=0;t<n.layout.length;t++)for(var r in n[n.layout[t]])if(r===e)return n[n.layout[t]][r];for(var o=0;o<n.paint.length;o++)for(var i in n[n.paint[o]])if(i===e)return n[n.paint[o]][i];return null}function F(e,t){for(var r in e.sources)t(e.sources[r])}function q(e,t){for(var r=0,n=e.layers;r<n.length;r+=1){t(n[r])}}function D(e,t,r){function n(e,t){var n=e[t];n&&Object.keys(n).forEach(function(o){r({path:[e.id,t,o],key:o,value:n[o],reference:N(o),set:function(e){n[o]=e}})})}q(e,function(e){t.paint&&n(e,"paint"),t.layout&&n(e,"layout")})}function U(e,t){for(var r in e)0===r.indexOf("layout")&&t(e[r],r)}function G(e,t){for(var r in e)0===r.indexOf("paint")&&t(e[r],r)}function B(e,t){return"string"==typeof t&&"@"===t[0]?B(e,e.constants[t]):t}function W(e,t,r){e[r]=e[t],delete e[t]}function J(e){var t,r,n;e.version=8,F(e,function(e){"video"===e.type&&void 0!==e.url&&W(e,"url","urls"),"video"===e.type&&e.coordinates.forEach(function(e){return e.reverse()})}),q(e,function(e){U(e,function(e){void 0!==e["symbol-min-distance"]&&W(e,"symbol-min-distance","symbol-spacing")}),G(e,function(e){void 0!==e["background-image"]&&W(e,"background-image","background-pattern"),void 0!==e["line-image"]&&W(e,"line-image","line-pattern"),void 0!==e["fill-image"]&&W(e,"fill-image","fill-pattern")})}),D(e,{paint:!0,layout:!0},function(t){var r=B(e,t.value);(function(e){return Array.isArray(e.stops)})(r)&&r.stops.forEach(function(t){t[1]=B(e,t[1])}),t.set(r)}),delete e.constants,q(e,function(e){U(e,function(e){delete e["text-max-size"],delete e["icon-max-size"]}),G(e,function(t){t["text-size"]&&(e.layout||(e.layout={}),e.layout["text-size"]=t["text-size"],delete t["text-size"]),t["icon-size"]&&(e.layout||(e.layout={}),e.layout["icon-size"]=t["icon-size"],delete t["icon-size"])})}),e.glyphs&&(e.glyphs=(t=e.glyphs,r=P.parse(t),n=r.pathname.split("/"),"mapbox:"!==r.protocol?t:"fontstack"===r.hostname?"mapbox://fonts/mapbox/{fontstack}/{range}.pbf":"fonts"===r.hostname?"mapbox://fonts/"+n[2]+"/{fontstack}/{range}.pbf":void 0)),q(e,function(e){U(e,function(e){e["text-font"]&&(e["text-font"]=function(e){function t(e){return e.split(",").map(function(e){return e.trim()})}if(Array.isArray(e))return e;if("string"==typeof e)return t(e);if("object"==typeof e)return e.stops.forEach(function(e){e[1]=t(e[1])}),e;throw new Error("unexpected font value")}(e["text-font"]))})});for(var o=0,i=e.layers.length-1;i>=0;i--){if("symbol"!==e.layers[i].type){o=i+1;break}}var a=e.layers.splice(o);return a.reverse(),e.layers=e.layers.concat(a),e}function V(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];for(var n=0,o=t;n<o.length;n+=1){var i=o[n];for(var a in i)e[a]=i[a]}return e}var $=function(e){function t(t,r){e.call(this,r),this.message=r,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),Y=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var r=0,n=t;r<n.length;r+=1){var o=n[r],i=o[0],a=o[1];this.bindings[i]=a}};Y.prototype.concat=function(e){return new Y(this,e)},Y.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},Y.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var H={kind:"null"},Z={kind:"number"},X={kind:"string"},K={kind:"boolean"},Q={kind:"color"},ee={kind:"object"},te={kind:"value"},re={kind:"collator"},ne={kind:"formatted"};function oe(e,t){return{kind:"array",itemType:e,N:t}}function ie(e){if("array"===e.kind){var t=ie(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var ae=[H,Z,X,K,Q,ne,ee,oe(te)];function se(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!se(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 r=0,n=ae;r<n.length;r+=1){if(!se(n[r],t))return null}}return"Expected "+ie(e)+" but found "+ie(t)+" instead."}var ue=l(function(e,t){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(e){return(e=Math.round(e))<0?0:e>255?255:e}function o(e){return e<0?0:e>1?1:e}function i(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function a(e){return"%"===e[e.length-1]?o(parseFloat(e)/100):o(parseFloat(e))}function s(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}try{t.parseCSSColor=function(e){var t,o=e.replace(/ /g,"").toLowerCase();if(o in r)return r[o].slice();if("#"===o[0])return 4===o.length?(t=parseInt(o.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===o.length&&(t=parseInt(o.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var u=o.indexOf("("),l=o.indexOf(")");if(-1!==u&&l+1===o.length){var c=o.substr(0,u),p=o.substr(u+1,l-(u+1)).split(","),d=1;switch(c){case"rgba":if(4!==p.length)return null;d=a(p.pop());case"rgb":return 3!==p.length?null:[i(p[0]),i(p[1]),i(p[2]),d];case"hsla":if(4!==p.length)return null;d=a(p.pop());case"hsl":if(3!==p.length)return null;var h=(parseFloat(p[0])%360+360)%360/360,f=a(p[1]),y=a(p[2]),m=y<=.5?y*(f+1):y+f-y*f,g=2*y-m;return[n(255*s(g,m,h+1/3)),n(255*s(g,m,h)),n(255*s(g,m,h-1/3)),d];default:return null}}return null}}catch(e){}}).parseCSSColor,le=function(e,t,r,n){void 0===n&&(n=1),this.r=e,this.g=t,this.b=r,this.a=n};le.parse=function(e){if(e){if(e instanceof le)return e;if("string"==typeof e){var t=ue(e);if(t)return new le(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},le.prototype.toString=function(){var e=this.toArray(),t=e[0],r=e[1],n=e[2],o=e[3];return"rgba("+Math.round(t)+","+Math.round(r)+","+Math.round(n)+","+o+")"},le.prototype.toArray=function(){var e=this.r,t=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*r/n,n]},le.black=new le(0,0,0,1),le.white=new le(1,1,1,1),le.transparent=new le(0,0,0,0),le.red=new le(1,0,0,1);var ce=function(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ce.prototype.compare=function(e,t){return this.collator.compare(e,t)},ce.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var pe=function(e,t,r){this.text=e,this.scale=t,this.fontStack=r},de=function(e){this.sections=e};function he(e,t,r,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value ["+[e,t,r,n].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function fe(e){if(null===e)return H;if("string"==typeof e)return X;if("boolean"==typeof e)return K;if("number"==typeof e)return Z;if(e instanceof le)return Q;if(e instanceof ce)return re;if(e instanceof de)return ne;if(Array.isArray(e)){for(var t,r=e.length,n=0,o=e;n<o.length;n+=1){var i=fe(o[n]);if(t){if(t===i)continue;t=te;break}t=i}return oe(t||te,r)}return ee}function ye(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof le||e instanceof de?e.toString():JSON.stringify(e)}de.fromString=function(e){return new de([new pe(e,null,null)])},de.prototype.toString=function(){return this.sections.map(function(e){return e.text}).join("")},de.prototype.serialize=function(){for(var e=["format"],t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e.push(n.text);var o={};n.fontStack&&(o["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(o["font-scale"]=n.scale),e.push(o)}return e};var me=function(e,t){this.type=e,this.value=t};me.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!function e(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof le)return!0;if(t instanceof ce)return!0;if(t instanceof de)return!0;if(Array.isArray(t)){for(var r=0,n=t;r<n.length;r+=1)if(!e(n[r]))return!1;return!0}if("object"==typeof t){for(var o in t)if(!e(t[o]))return!1;return!0}return!1}(e[1]))return t.error("invalid value");var r=e[1],n=fe(r),o=t.expectedType;return"array"!==n.kind||0!==n.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(n=o),new me(n,r)},me.prototype.evaluate=function(){return this.value},me.prototype.eachChild=function(){},me.prototype.possibleOutputs=function(){return[this.value]},me.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof le?["rgba"].concat(this.value.toArray()):this.value instanceof de?this.value.serialize():this.value};var ge=function(e){this.name="ExpressionEvaluationError",this.message=e};ge.prototype.toJSON=function(){return this.message};var ve={string:X,number:Z,boolean:K,object:ee},be=function(e,t){this.type=e,this.args=t};be.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r,n=1,o=e[0];if("array"===o){var i,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in ve)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=ve[s],n++}else i=te;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);a=e[2],n++}r=oe(i,a)}else r=ve[o];for(var u=[];n<e.length;n++){var l=t.parse(e[n],n,te);if(!l)return null;u.push(l)}return new be(r,u)},be.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var r=this.args[t].evaluate(e);if(!se(this.type,fe(r)))return r;if(t===this.args.length-1)throw new ge("Expected value to be of type "+ie(this.type)+", but found "+ie(fe(r))+" instead.")}return null},be.prototype.eachChild=function(e){this.args.forEach(e)},be.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},be.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var r=e.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){t.push(r.kind);var n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map(function(e){return e.serialize()}))};var we=function(e){this.type=ne,this.sections=e};we.parse=function(e,t){if(e.length<3)return t.error("Expected at least two arguments.");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");for(var r=[],n=1;n<e.length-1;n+=2){var o=t.parse(e[n],1,te);if(!o)return null;var i=o.type.kind;if("string"!==i&&"value"!==i&&"null"!==i)return t.error("Formatted text type must be 'string', 'value', or 'null'.");var a=e[n+1];if("object"!=typeof a||Array.isArray(a))return t.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&&!(s=t.parse(a["font-scale"],1,Z)))return null;var u=null;if(a["text-font"]&&!(u=t.parse(a["text-font"],1,oe(X))))return null;r.push({text:o,scale:s,font:u})}return new we(r)},we.prototype.evaluate=function(e){return new de(this.sections.map(function(t){return new pe(ye(t.text.evaluate(e)),t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null)}))},we.prototype.eachChild=function(e){for(var t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e(n.text),n.scale&&e(n.scale),n.font&&e(n.font)}},we.prototype.possibleOutputs=function(){return[void 0]},we.prototype.serialize=function(){for(var e=["format"],t=0,r=this.sections;t<r.length;t+=1){var n=r[t];e.push(n.text.serialize());var o={};n.scale&&(o["font-scale"]=n.scale.serialize()),n.font&&(o["text-font"]=n.font.serialize()),e.push(o)}return e};var xe={"to-boolean":K,"to-color":Q,"to-number":Z,"to-string":X},_e=function(e,t){this.type=e,this.args=t};_e.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var r=e[0];if(("to-boolean"===r||"to-string"===r)&&2!==e.length)return t.error("Expected one argument.");for(var n=xe[r],o=[],i=1;i<e.length;i++){var a=t.parse(e[i],i,te);if(!a)return null;o.push(a)}return new _e(n,o)},_e.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,r,n=0,o=this.args;n<o.length;n+=1){if(r=null,(t=o[n].evaluate(e))instanceof le)return t;if("string"==typeof t){var i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&!(r=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":he(t[0],t[1],t[2],t[3])))return new le(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new ge(r||"Could not parse color from value '"+("string"==typeof t?t:JSON.stringify(t))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(e)))return 0;var l=Number(a);if(!isNaN(l))return l}throw new ge("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?de.fromString(ye(this.args[0].evaluate(e))):ye(this.args[0].evaluate(e))},_e.prototype.eachChild=function(e){this.args.forEach(e)},_e.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},_e.prototype.serialize=function(){if("formatted"===this.type.kind)return new we([{text:this.args[0],scale:null,font:null}]).serialize();var e=["to-"+this.type.kind];return this.eachChild(function(t){e.push(t.serialize())}),e};var ke=["Unknown","Point","LineString","Polygon"],Se=function(){this.globals=null,this.feature=null,this.featureState=null,this._parseColorCache={}};Se.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Se.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ke[this.feature.type]:this.feature.type:null},Se.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Se.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=le.parse(e)),t};var je=function(e,t,r,n){this.name=e,this.type=t,this._evaluate=r,this.args=n};je.prototype.evaluate=function(e){return this._evaluate(e,this.args)},je.prototype.eachChild=function(e){this.args.forEach(e)},je.prototype.possibleOutputs=function(){return[void 0]},je.prototype.serialize=function(){return[this.name].concat(this.args.map(function(e){return e.serialize()}))},je.parse=function(e,t){var r,n=e[0],o=je.definitions[n];if(!o)return t.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0);for(var i=Array.isArray(o)?o[0]:o.type,a=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=a.filter(function(t){var r=t[0];return!Array.isArray(r)||r.length===e.length-1}),u=null,l=0,c=s;l<c.length;l+=1){var p=c[l],d=p[0],h=p[1];u=new Ce(t.registry,t.path,null,t.scope);for(var f=[],y=!1,m=1;m<e.length;m++){var g=e[m],v=Array.isArray(d)?d[m-1]:d.type,b=u.parse(g,1+f.length,v);if(!b){y=!0;break}f.push(b)}if(!y)if(Array.isArray(d)&&d.length!==f.length)u.error("Expected "+d.length+" arguments, but found "+f.length+" instead.");else{for(var w=0;w<f.length;w++){var x=Array.isArray(d)?d[w]:d.type,_=f[w];u.concat(w+1).checkSubtype(x,_.type)}if(0===u.errors.length)return new je(n,i,h,f)}}if(1===s.length)(r=t.errors).push.apply(r,u.errors);else{for(var k=(s.length?s:a).map(function(e){var t,r=e[0];return t=r,Array.isArray(t)?"("+t.map(ie).join(", ")+")":"("+ie(t.type)+"...)"}).join(" | "),S=[],j=1;j<e.length;j++){var T=t.parse(e[j],1+S.length);if(!T)return null;S.push(ie(T.type))}t.error("Expected arguments of type "+k+", but found ("+S.join(", ")+") instead.")}return null},je.register=function(e,t){for(var r in je.definitions=t,t)e[r]=je};var Te=function(e,t,r){this.type=re,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=t};function ze(e){if(e instanceof je){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}var t=!0;return e.eachChild(function(e){t&&!ze(e)&&(t=!1)}),t}function Oe(e){if(e instanceof je&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild(function(e){t&&!Oe(e)&&(t=!1)}),t}function Ae(e,t){if(e instanceof je&&t.indexOf(e.name)>=0)return!1;var r=!0;return e.eachChild(function(e){r&&!Ae(e,t)&&(r=!1)}),r}Te.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var r=e[1];if("object"!=typeof r||Array.isArray(r))return t.error("Collator options argument must be an object.");var n=t.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,K);if(!n)return null;var o=t.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,K);if(!o)return null;var i=null;return r.locale&&!(i=t.parse(r.locale,1,X))?null:new Te(n,o,i)},Te.prototype.evaluate=function(e){return new ce(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},Te.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},Te.prototype.possibleOutputs=function(){return[void 0]},Te.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var Ee=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};Ee.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var r=e[1];return t.scope.has(r)?new Ee(r,t.scope.get(r)):t.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},Ee.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},Ee.prototype.eachChild=function(){},Ee.prototype.possibleOutputs=function(){return[void 0]},Ee.prototype.serialize=function(){return["var",this.name]};var Ce=function(e,t,r,n,o){void 0===t&&(t=[]),void 0===n&&(n=new Y),void 0===o&&(o=[]),this.registry=e,this.path=t,this.key=t.map(function(e){return"["+e+"]"}).join(""),this.scope=n,this.errors=o,this.expectedType=r};function Me(e,t){for(var r,n,o=0,i=e.length-1,a=0;o<=i;){if(r=e[a=Math.floor((o+i)/2)],n=e[a+1],t===r||t>r&&t<n)return a;if(r<t)o=a+1;else{if(!(r>t))throw new ge("Input is not a number.");i=a-1}}return Math.max(a-1,0)}Ce.prototype.parse=function(e,t,r,n,o){return void 0===o&&(o={}),t?this.concat(t,r,n)._parse(e,o):this._parse(e,o)},Ce.prototype._parse=function(e,t){function r(e,t,r){return"assert"===r?new be(t,[e]):"coerce"===r?new _e(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found "+typeof n+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var o=this.registry[n];if(o){var i=o.parse(e,this);if(!i)return null;if(this.expectedType){var a=this.expectedType,s=i.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else i=r(i,a,t.typeAnnotation||"coerce");else i=r(i,a,t.typeAnnotation||"assert")}if(!(i instanceof me)&&function e(t){if(t instanceof Ee)return e(t.boundExpression);if(t instanceof je&&"error"===t.name)return!1;if(t instanceof Te)return!1;var r=t instanceof _e||t instanceof be;var n=!0;t.eachChild(function(t){n=r?n&&e(t):n&&t instanceof me});if(!n)return!1;return ze(t)&&Ae(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(i)){var u=new Se;try{i=new me(i.type,i.evaluate(u))}catch(e){return this.error(e.message),null}}return i}return this.error('Unknown expression "'+n+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof e+" instead.")},Ce.prototype.concat=function(e,t,r){var n="number"==typeof e?this.path.concat(e):this.path,o=r?this.scope.concat(r):this.scope;return new Ce(this.registry,n,t||null,o,this.errors)},Ce.prototype.error=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=""+this.key+t.map(function(e){return"["+e+"]"}).join("");this.errors.push(new $(n,e))},Ce.prototype.checkSubtype=function(e,t){var r=se(e,t);return r&&this.error(r),r};var Re=function(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var n=0,o=r;n<o.length;n+=1){var i=o[n],a=i[0],s=i[1];this.labels.push(a),this.outputs.push(s)}};Re.parse=function(e,t){var r=e[1],n=e.slice(2);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(!(r=t.parse(r,1,Z)))return null;var o=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType),n.unshift(-1/0);for(var a=0;a<n.length;a+=2){var s=n[a],u=n[a+1],l=a+1,c=a+2;if("number"!=typeof s)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(o.length&&o[o.length-1][0]>=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var p=t.parse(u,c,i);if(!p)return null;i=i||p.type,o.push([s,p])}return new Re(i,r,o)},Re.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var o=t.length;return n>=t[o-1]?r[o-1].evaluate(e):r[Me(t,n)].evaluate(e)},Re.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t<r.length;t+=1){e(r[t])}},Re.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}))},Re.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Ie=Le;function Le(e,t,r,n){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=r,this.p2y=n}function Pe(e,t,r){return e*(1-r)+t*r}Le.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},Le.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},Le.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},Le.prototype.solveCurveX=function(e,t){var r,n,o,i,a;for(void 0===t&&(t=1e-6),o=e,a=0;a<8;a++){if(i=this.sampleCurveX(o)-e,Math.abs(i)<t)return o;var s=this.sampleCurveDerivativeX(o);if(Math.abs(s)<1e-6)break;o-=i/s}if((o=e)<(r=0))return r;if(o>(n=1))return n;for(;r<n;){if(i=this.sampleCurveX(o),Math.abs(i-e)<t)return o;e>i?r=o:n=o,o=.5*(n-r)+r}return o},Le.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Ne=Object.freeze({number:Pe,color:function(e,t,r){return new le(Pe(e.r,t.r,r),Pe(e.g,t.g,r),Pe(e.b,t.b,r),Pe(e.a,t.a,r))},array:function(e,t,r){return e.map(function(e,n){return Pe(e,t[n],r)})}}),Fe=.95047,qe=1,De=1.08883,Ue=4/29,Ge=6/29,Be=3*Ge*Ge,We=Ge*Ge*Ge,Je=Math.PI/180,Ve=180/Math.PI;function $e(e){return e>We?Math.pow(e,1/3):e/Be+Ue}function Ye(e){return e>Ge?e*e*e:Be*(e-Ue)}function He(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ze(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xe(e){var t=Ze(e.r),r=Ze(e.g),n=Ze(e.b),o=$e((.4124564*t+.3575761*r+.1804375*n)/Fe),i=$e((.2126729*t+.7151522*r+.072175*n)/qe);return{l:116*i-16,a:500*(o-i),b:200*(i-$e((.0193339*t+.119192*r+.9503041*n)/De)),alpha:e.a}}function Ke(e){var t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=qe*Ye(t),r=Fe*Ye(r),n=De*Ye(n),new le(He(3.2404542*r-1.5371385*t-.4985314*n),He(-.969266*r+1.8760108*t+.041556*n),He(.0556434*r-.2040259*t+1.0572252*n),e.alpha)}function Qe(e,t,r){var n=t-e;return e+r*(n>180||n<-180?n-360*Math.round(n/360):n)}var et={forward:Xe,reverse:Ke,interpolate:function(e,t,r){return{l:Pe(e.l,t.l,r),a:Pe(e.a,t.a,r),b:Pe(e.b,t.b,r),alpha:Pe(e.alpha,t.alpha,r)}}},tt={forward:function(e){var t=Xe(e),r=t.l,n=t.a,o=t.b,i=Math.atan2(o,n)*Ve;return{h:i<0?i+360:i,c:Math.sqrt(n*n+o*o),l:r,alpha:e.a}},reverse:function(e){var t=e.h*Je,r=e.c;return Ke({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})},interpolate:function(e,t,r){return{h:Qe(e.h,t.h,r),c:Pe(e.c,t.c,r),l:Pe(e.l,t.l,r),alpha:Pe(e.alpha,t.alpha,r)}}},rt=Object.freeze({lab:et,hcl:tt}),nt=function(e,t,r,n,o){this.type=e,this.operator=t,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var i=0,a=o;i<a.length;i+=1){var s=a[i],u=s[0],l=s[1];this.labels.push(u),this.outputs.push(l)}};function ot(e,t,r,n){var o=n-r,i=e-r;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}nt.interpolationFactor=function(e,t,r,n){var o=0;if("exponential"===e.name)o=ot(t,e.base,r,n);else if("linear"===e.name)o=ot(t,1,r,n);else if("cubic-bezier"===e.name){var i=e.controlPoints;o=new Ie(i[0],i[1],i[2],i[3]).solve(ot(t,1,r,n))}return o},nt.parse=function(e,t){var r=e[0],n=e[1],o=e[2],i=e.slice(3);if(!Array.isArray(n)||0===n.length)return t.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){var a=n[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:a}}else{if("cubic-bezier"!==n[0])return t.error("Unknown interpolation type "+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some(function(e){return"number"!=typeof e||e<0||e>1}))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:s}}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(!(o=t.parse(o,2,Z)))return null;var u=[],l=null;"interpolate-hcl"===r||"interpolate-lab"===r?l=Q:t.expectedType&&"value"!==t.expectedType.kind&&(l=t.expectedType);for(var c=0;c<i.length;c+=2){var p=i[c],d=i[c+1],h=c+3,f=c+4;if("number"!=typeof p)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',h);if(u.length&&u[u.length-1][0]>=p)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);var y=t.parse(d,f,l);if(!y)return null;l=l||y.type,u.push([p,y])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new nt(l,r,n,o,u):t.error("Type "+ie(l)+" is not interpolatable.")},nt.prototype.evaluate=function(e){var t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);var o=t.length;if(n>=t[o-1])return r[o-1].evaluate(e);var i=Me(t,n),a=t[i],s=t[i+1],u=nt.interpolationFactor(this.interpolation,n,a,s),l=r[i].evaluate(e),c=r[i+1].evaluate(e);return"interpolate"===this.operator?Ne[this.type.kind.toLowerCase()](l,c,u):"interpolate-hcl"===this.operator?tt.reverse(tt.interpolate(tt.forward(l),tt.forward(c),u)):et.reverse(et.interpolate(et.forward(l),et.forward(c),u))},nt.prototype.eachChild=function(e){e(this.input);for(var t=0,r=this.outputs;t<r.length;t+=1){e(r[t])}},nt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()}))},nt.prototype.serialize=function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],r=0;r<this.labels.length;r++)t.push(this.labels[r],this.outputs[r].serialize());return t};var it=function(e,t){this.type=e,this.args=t};it.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var r=null,n=t.expectedType;n&&"value"!==n.kind&&(r=n);for(var o=[],i=0,a=e.slice(1);i<a.length;i+=1){var s=a[i],u=t.parse(s,1+o.length,r,void 0,{typeAnnotation:"omit"});if(!u)return null;r=r||u.type,o.push(u)}var l=n&&o.some(function(e){return se(n,e.type)});return new it(l?te:r,o)},it.prototype.evaluate=function(e){for(var t=null,r=0,n=this.args;r<n.length;r+=1){if(null!==(t=n[r].evaluate(e)))break}return t},it.prototype.eachChild=function(e){this.args.forEach(e)},it.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map(function(e){return e.possibleOutputs()}))},it.prototype.serialize=function(){var e=["coalesce"];return this.eachChild(function(t){e.push(t.serialize())}),e};var at=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};at.prototype.evaluate=function(e){return this.result.evaluate(e)},at.prototype.eachChild=function(e){for(var t=0,r=this.bindings;t<r.length;t+=1){e(r[t][1])}e(this.result)},at.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var r=[],n=1;n<e.length-1;n+=2){var o=e[n];if("string"!=typeof o)return t.error("Expected string, but found "+typeof o+" instead.",n);if(/[^a-zA-Z0-9_]/.test(o))return t.error("Variable names must contain only alphanumeric characters or '_'.",n);var i=t.parse(e[n+1],n+1);if(!i)return null;r.push([o,i])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,r);return a?new at(r,a):null},at.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},at.prototype.serialize=function(){for(var e=["let"],t=0,r=this.bindings;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];e.push(o,i.serialize())}return e.push(this.result.serialize()),e};var st=function(e,t,r){this.type=e,this.index=t,this.input=r};st.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1,Z),n=t.parse(e[2],2,oe(t.expectedType||te));if(!r||!n)return null;var o=n.type;return new st(o.itemType,r,n)},st.prototype.evaluate=function(e){var t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new ge("Array index out of bounds: "+t+" < 0.");if(t>=r.length)throw new ge("Array index out of bounds: "+t+" > "+(r.length-1)+".");if(t!==Math.floor(t))throw new ge("Array index must be an integer, but found "+t+" instead.");return r[t]},st.prototype.eachChild=function(e){e(this.index),e(this.input)},st.prototype.possibleOutputs=function(){return[void 0]},st.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ut=function(e,t,r,n,o,i){this.inputType=e,this.type=t,this.input=r,this.cases=n,this.outputs=o,this.otherwise=i};ut.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 r,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var o={},i=[],a=2;a<e.length-1;a+=2){var s=e[a],u=e[a+1];Array.isArray(s)||(s=[s]);var l=t.concat(a);if(0===s.length)return l.error("Expected at least one branch label.");for(var c=0,p=s;c<p.length;c+=1){var d=p[c];if("number"!=typeof d&&"string"!=typeof d)return l.error("Branch labels must be numbers or strings.");if("number"==typeof d&&Math.abs(d)>Number.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof d&&Math.floor(d)!==d)return l.error("Numeric branch labels must be integer values.");if(r){if(l.checkSubtype(r,fe(d)))return null}else r=fe(d);if(void 0!==o[String(d)])return l.error("Branch labels must be unique.");o[String(d)]=i.length}var h=t.parse(u,a,n);if(!h)return null;n=n||h.type,i.push(h)}var f=t.parse(e[1],1,te);if(!f)return null;var y=t.parse(e[e.length-1],e.length-1,n);return y?"value"!==f.type.kind&&t.concat(1).checkSubtype(r,f.type)?null:new ut(r,n,f,o,i,y):null},ut.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(fe(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},ut.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},ut.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map(function(e){return e.possibleOutputs()})).concat(this.otherwise.possibleOutputs())},ut.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],r=[],n={},o=0,i=Object.keys(this.cases).sort();o<i.length;o+=1){var a=i[o];void 0===(p=n[this.cases[a]])?(n[this.cases[a]]=r.length,r.push([this.cases[a],[a]])):r[p][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},u=0,l=r;u<l.length;u+=1){var c=l[u],p=c[0],d=c[1];1===d.length?t.push(s(d[0])):t.push(d.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var lt=function(e,t,r){this.type=e,this.branches=t,this.otherwise=r};function ct(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function pt(e,t,r,n){return 0===n.compare(t,r)}function dt(e,t,r){var n="=="!==e&&"!="!==e;return function(){function o(e,t,r){this.type=K,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return o.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var r=e[0],i=t.parse(e[1],1,te);if(!i)return null;if(!ct(r,i.type))return t.concat(1).error('"'+r+"\" comparisons are not supported for type '"+ie(i.type)+"'.");var a=t.parse(e[2],2,te);if(!a)return null;if(!ct(r,a.type))return t.concat(2).error('"'+r+"\" comparisons are not supported for type '"+ie(a.type)+"'.");if(i.type.kind!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+ie(i.type)+"' and '"+ie(a.type)+"'.");n&&("value"===i.type.kind&&"value"!==a.type.kind?i=new be(a.type,[i]):"value"!==i.type.kind&&"value"===a.type.kind&&(a=new be(i.type,[a])));var s=null;if(4===e.length){if("string"!==i.type.kind&&"string"!==a.type.kind&&"value"!==i.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,re)))return null}return new o(i,a,s)},o.prototype.evaluate=function(o){var i=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(n&&this.hasUntypedArgument){var s=fe(i),u=fe(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new ge('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!n&&this.hasUntypedArgument){var l=fe(i),c=fe(a);if("string"!==l.kind||"string"!==c.kind)return t(o,i,a)}return this.collator?r(o,i,a,this.collator.evaluate(o)):t(o,i,a)},o.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},o.prototype.possibleOutputs=function(){return[!0,!1]},o.prototype.serialize=function(){var t=[e];return this.eachChild(function(e){t.push(e.serialize())}),t},o}()}lt.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var n=[],o=1;o<e.length-1;o+=2){var i=t.parse(e[o],o,K);if(!i)return null;var a=t.parse(e[o+1],o+1,r);if(!a)return null;n.push([i,a]),r=r||a.type}var s=t.parse(e[e.length-1],e.length-1,r);return s?new lt(r,n,s):null},lt.prototype.evaluate=function(e){for(var t=0,r=this.branches;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];if(o.evaluate(e))return i.evaluate(e)}return this.otherwise.evaluate(e)},lt.prototype.eachChild=function(e){for(var t=0,r=this.branches;t<r.length;t+=1){var n=r[t],o=n[0],i=n[1];e(o),e(i)}e(this.otherwise)},lt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.branches.map(function(e){e[0];return e[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs())},lt.prototype.serialize=function(){var e=["case"];return this.eachChild(function(t){e.push(t.serialize())}),e};var ht=dt("==",function(e,t,r){return t===r},pt),ft=dt("!=",function(e,t,r){return t!==r},function(e,t,r,n){return!pt(0,t,r,n)}),yt=dt("<",function(e,t,r){return t<r},function(e,t,r,n){return n.compare(t,r)<0}),mt=dt(">",function(e,t,r){return t>r},function(e,t,r,n){return n.compare(t,r)>0}),gt=dt("<=",function(e,t,r){return t<=r},function(e,t,r,n){return n.compare(t,r)<=0}),vt=dt(">=",function(e,t,r){return t>=r},function(e,t,r,n){return n.compare(t,r)>=0}),bt=function(e,t,r,n,o){this.type=X,this.number=e,this.locale=t,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=o};bt.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var r=t.parse(e[1],1,Z);if(!r)return null;var n=e[2];if("object"!=typeof n||Array.isArray(n))return t.error("NumberFormat options argument must be an object.");var o=null;if(n.locale&&!(o=t.parse(n.locale,1,X)))return null;var i=null;if(n.currency&&!(i=t.parse(n.currency,1,X)))return null;var a=null;if(n["min-fraction-digits"]&&!(a=t.parse(n["min-fraction-digits"],1,Z)))return null;var s=null;return n["max-fraction-digits"]&&!(s=t.parse(n["max-fraction-digits"],1,Z))?null:new bt(r,o,i,a,s)},bt.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))},bt.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)},bt.prototype.possibleOutputs=function(){return[void 0]},bt.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 wt=function(e){this.type=Z,this.input=e};wt.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var r=t.parse(e[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?t.error("Expected argument of type string or array, but found "+ie(r.type)+" instead."):new wt(r):null},wt.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 ge("Expected value to be of type string or array, but found "+ie(fe(t))+" instead.")},wt.prototype.eachChild=function(e){e(this.input)},wt.prototype.possibleOutputs=function(){return[void 0]},wt.prototype.serialize=function(){var e=["length"];return this.eachChild(function(t){e.push(t.serialize())}),e};var xt={"==":ht,"!=":ft,">":mt,"<":yt,">=":vt,"<=":gt,array:be,at:st,boolean:be,case:lt,coalesce:it,collator:Te,format:we,interpolate:nt,"interpolate-hcl":nt,"interpolate-lab":nt,length:wt,let:at,literal:me,match:ut,number:be,"number-format":bt,object:be,step:Re,string:be,"to-boolean":_e,"to-color":_e,"to-number":_e,"to-string":_e,var:Ee};function _t(e,t){var r=t[0],n=t[1],o=t[2],i=t[3];r=r.evaluate(e),n=n.evaluate(e),o=o.evaluate(e);var a=i?i.evaluate(e):1,s=he(r,n,o,a);if(s)throw new ge(s);return new le(r/255*a,n/255*a,o/255*a,a)}function kt(e,t){return e in t}function St(e,t){var r=t[e];return void 0===r?null:r}function jt(e){return{type:e}}function Tt(e){return{result:"success",value:e}}function zt(e){return{result:"error",value:e}}function Ot(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function At(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Et(e){return!!e.expression&&e.expression.interpolated}function Ct(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Mt(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Rt(e){return e}function It(e,t){var r,n,o,i="color"===t.type,a=e.stops&&"object"==typeof e.stops[0][0],s=a||void 0!==e.property,u=a||!s,l=e.type||(Et(t)?"exponential":"interval");if(i&&((e=V({},e)).stops&&(e.stops=e.stops.map(function(e){return[e[0],le.parse(e[1])]})),e.default?e.default=le.parse(e.default):e.default=le.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!rt[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===l)r=Ft;else if("interval"===l)r=Nt;else if("categorical"===l){r=Pt,n=Object.create(null);for(var c=0,p=e.stops;c<p.length;c+=1){var d=p[c];n[d[0]]=d[1]}o=typeof e.stops[0][0]}else{if("identity"!==l)throw new Error('Unknown function type "'+l+'"');r=qt}if(a){for(var h={},f=[],y=0;y<e.stops.length;y++){var m=e.stops[y],g=m[0].zoom;void 0===h[g]&&(h[g]={zoom:g,type:e.type,property:e.property,default:e.default,stops:[]},f.push(g)),h[g].stops.push([m[0].value,m[1]])}for(var v=[],b=0,w=f;b<w.length;b+=1){var x=w[b];v.push([h[x].zoom,It(h[x],t)])}return{kind:"composite",interpolationFactor:nt.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:v.map(function(e){return e[0]}),evaluate:function(r,n){var o=r.zoom;return Ft({stops:v,base:e.base},t,o).evaluate(o,n)}}}return u?{kind:"camera",interpolationFactor:"exponential"===l?nt.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(e){return e[0]}),evaluate:function(i){var a=i.zoom;return r(e,t,a,n,o)}}:{kind:"source",evaluate:function(i,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?Lt(e.default,t.default):r(e,t,s,n,o)}}}function Lt(e,t,r){return void 0!==e?e:void 0!==t?t:void 0!==r?r:void 0}function Pt(e,t,r,n,o){return Lt(typeof r===o?n[r]:void 0,e.default,t.default)}function Nt(e,t,r){if("number"!==Ct(r))return Lt(e.default,t.default);var n=e.stops.length;if(1===n)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];var o=Dt(e.stops,r);return e.stops[o][1]}function Ft(e,t,r){var n=void 0!==e.base?e.base:1;if("number"!==Ct(r))return Lt(e.default,t.default);var o=e.stops.length;if(1===o)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[o-1][0])return e.stops[o-1][1];var i=Dt(e.stops,r),a=function(e,t,r,n){var o=n-r,i=e-r;return 0===o?0:1===t?i/o:(Math.pow(t,i)-1)/(Math.pow(t,o)-1)}(r,n,e.stops[i][0],e.stops[i+1][0]),s=e.stops[i][1],u=e.stops[i+1][1],l=Ne[t.type]||Rt;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=rt[e.colorSpace];l=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=s.evaluate.apply(void 0,e),n=u.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==n)return l(r,n,a)}}:l(s,u,a)}function qt(e,t,r){return"color"===t.type?r=le.parse(r):"formatted"===t.type?r=de.fromString(r.toString()):Ct(r)===t.type||"enum"===t.type&&t.values[r]||(r=void 0),Lt(r,e.default,t.default)}function Dt(e,t){for(var r,n,o=0,i=e.length-1,a=0;o<=i;){if(r=e[a=Math.floor((o+i)/2)][0],n=e[a+1][0],t===r||t>r&&t<n)return a;r<t?o=a+1:r>t&&(i=a-1)}return Math.max(a-1,0)}je.register(xt,{error:[{kind:"error"},[X],function(e,t){var r=t[0];throw new ge(r.evaluate(e))}],typeof:[X,[te],function(e,t){return ie(fe(t[0].evaluate(e)))}],"to-rgba":[oe(Z,4),[Q],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Q,[Z,Z,Z],_t],rgba:[Q,[Z,Z,Z,Z],_t],has:{type:K,overloads:[[[X],function(e,t){return kt(t[0].evaluate(e),e.properties())}],[[X,ee],function(e,t){var r=t[0],n=t[1];return kt(r.evaluate(e),n.evaluate(e))}]]},get:{type:te,overloads:[[[X],function(e,t){return St(t[0].evaluate(e),e.properties())}],[[X,ee],function(e,t){var r=t[0],n=t[1];return St(r.evaluate(e),n.evaluate(e))}]]},"feature-state":[te,[X],function(e,t){return St(t[0].evaluate(e),e.featureState||{})}],properties:[ee,[],function(e){return e.properties()}],"geometry-type":[X,[],function(e){return e.geometryType()}],id:[te,[],function(e){return e.id()}],zoom:[Z,[],function(e){return e.globals.zoom}],"heatmap-density":[Z,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[Z,[],function(e){return e.globals.lineProgress||0}],accumulated:[te,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[Z,jt(Z),function(e,t){for(var r=0,n=0,o=t;n<o.length;n+=1){r+=o[n].evaluate(e)}return r}],"*":[Z,jt(Z),function(e,t){for(var r=1,n=0,o=t;n<o.length;n+=1){r*=o[n].evaluate(e)}return r}],"-":{type:Z,overloads:[[[Z,Z],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)-n.evaluate(e)}],[[Z],function(e,t){return-t[0].evaluate(e)}]]},"/":[Z,[Z,Z],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)/n.evaluate(e)}],"%":[Z,[Z,Z],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)%n.evaluate(e)}],ln2:[Z,[],function(){return Math.LN2}],pi:[Z,[],function(){return Math.PI}],e:[Z,[],function(){return Math.E}],"^":[Z,[Z,Z],function(e,t){var r=t[0],n=t[1];return Math.pow(r.evaluate(e),n.evaluate(e))}],sqrt:[Z,[Z],function(e,t){var r=t[0];return Math.sqrt(r.evaluate(e))}],log10:[Z,[Z],function(e,t){var r=t[0];return Math.log(r.evaluate(e))/Math.LN10}],ln:[Z,[Z],function(e,t){var r=t[0];return Math.log(r.evaluate(e))}],log2:[Z,[Z],function(e,t){var r=t[0];return Math.log(r.evaluate(e))/Math.LN2}],sin:[Z,[Z],function(e,t){var r=t[0];return Math.sin(r.evaluate(e))}],cos:[Z,[Z],function(e,t){var r=t[0];return Math.cos(r.evaluate(e))}],tan:[Z,[Z],function(e,t){var r=t[0];return Math.tan(r.evaluate(e))}],asin:[Z,[Z],function(e,t){var r=t[0];return Math.asin(r.evaluate(e))}],acos:[Z,[Z],function(e,t){var r=t[0];return Math.acos(r.evaluate(e))}],atan:[Z,[Z],function(e,t){var r=t[0];return Math.atan(r.evaluate(e))}],min:[Z,jt(Z),function(e,t){return Math.min.apply(Math,t.map(function(t){return t.evaluate(e)}))}],max:[Z,jt(Z),function(e,t){return Math.max.apply(Math,t.map(function(t){return t.evaluate(e)}))}],abs:[Z,[Z],function(e,t){var r=t[0];return Math.abs(r.evaluate(e))}],round:[Z,[Z],function(e,t){var r=t[0].evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[Z,[Z],function(e,t){var r=t[0];return Math.floor(r.evaluate(e))}],ceil:[Z,[Z],function(e,t){var r=t[0];return Math.ceil(r.evaluate(e))}],"filter-==":[K,[X,te],function(e,t){var r=t[0],n=t[1];return e.properties()[r.value]===n.value}],"filter-id-==":[K,[te],function(e,t){var r=t[0];return e.id()===r.value}],"filter-type-==":[K,[X],function(e,t){var r=t[0];return e.geometryType()===r.value}],"filter-<":[K,[X,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o<i}],"filter-id-<":[K,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n<o}],"filter->":[K,[X,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o>i}],"filter-id->":[K,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n>o}],"filter-<=":[K,[X,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o<=i}],"filter-id-<=":[K,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n<=o}],"filter->=":[K,[X,te],function(e,t){var r=t[0],n=t[1],o=e.properties()[r.value],i=n.value;return typeof o==typeof i&&o>=i}],"filter-id->=":[K,[te],function(e,t){var r=t[0],n=e.id(),o=r.value;return typeof n==typeof o&&n>=o}],"filter-has":[K,[te],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[K,[],function(e){return null!==e.id()}],"filter-type-in":[K,[oe(X)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[K,[oe(te)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[K,[X,oe(te)],function(e,t){var r=t[0];return t[1].value.indexOf(e.properties()[r.value])>=0}],"filter-in-large":[K,[X,oe(te)],function(e,t){var r=t[0],n=t[1];return function(e,t,r,n){for(;r<=n;){var o=r+n>>1;if(t[o]===e)return!0;t[o]>e?n=o-1:r=o+1}return!1}(e.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:K,overloads:[[[K,K],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)&&n.evaluate(e)}],[jt(K),function(e,t){for(var r=0,n=t;r<n.length;r+=1){if(!n[r].evaluate(e))return!1}return!0}]]},any:{type:K,overloads:[[[K,K],function(e,t){var r=t[0],n=t[1];return r.evaluate(e)||n.evaluate(e)}],[jt(K),function(e,t){for(var r=0,n=t;r<n.length;r+=1){if(n[r].evaluate(e))return!0}return!1}]]},"!":[K,[K],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[K,[X],function(e,t){var r=t[0],n=e.globals&&e.globals.isSupportedScript;return!n||n(r.evaluate(e))}],upcase:[X,[X],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[X,[X],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[X,jt(te),function(e,t){return t.map(function(t){return ye(t.evaluate(e))}).join("")}],"resolved-locale":[X,[re],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Ut=function(e,t){var r;this.expression=e,this._warningHistory={},this._evaluator=new Se,this._defaultValue=t?"color"===(r=t).type&&Mt(r.default)?new le(0,0,0,0):"color"===r.type?le.parse(r.default)||null:void 0===r.default?null:r.default:null,this._enumValues=t&&"enum"===t.type?t.values:null};function Gt(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in xt}function Bt(e,t){var r=new Ce(xt,[],t?function(e){var t={color:Q,string:X,number:Z,enum:X,boolean:K,formatted:ne};if("array"===e.type)return oe(t[e.value]||te,e.length);return t[e.type]}(t):void 0),n=r.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?Tt(new Ut(n,t)):zt(r.errors)}Ut.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this.expression.evaluate(this._evaluator)},Ut.prototype.evaluate=function(e,t,r){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&&!(n in this._enumValues))throw new ge("Expected value to be one of "+Object.keys(this._enumValues).map(function(e){return JSON.stringify(e)}).join(", ")+", but found "+JSON.stringify(n)+" instead.");return n}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var Wt=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Oe(t.expression)};Wt.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r)},Wt.prototype.evaluate=function(e,t,r){return this._styleExpression.evaluate(e,t,r)};var Jt=function(e,t,r){this.kind=e,this.zoomStops=r.labels,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Oe(t.expression),r instanceof nt&&(this._interpolationType=r.interpolation)};function Vt(e,t){if("error"===(e=Bt(e,t)).result)return e;var r=e.value.expression,n=ze(r);if(!n&&!Ot(t))return zt([new $("","data expressions not supported")]);var o=Ae(r,["zoom"]);if(!o&&!At(t))return zt([new $("","zoom expressions not supported")]);var i=function e(t){var r=null;if(t instanceof at)r=e(t.result);else if(t instanceof it)for(var n=0,o=t.args;n<o.length;n+=1){var i=o[n];if(r=e(i))break}else(t instanceof Re||t instanceof nt)&&t.input instanceof je&&"zoom"===t.input.name&&(r=t);if(r instanceof $)return r;t.eachChild(function(t){var n=e(t);n instanceof $?r=n:!r&&n?r=new $("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&n&&r!==n&&(r=new $("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))});return r}(r);return i||o?i instanceof $?zt([i]):i instanceof nt&&!Et(t)?zt([new $("",'"interpolate" expressions cannot be used with this property')]):Tt(i?new Jt(n?"camera":"composite",e.value,i):new Wt(n?"constant":"source",e.value)):zt([new $("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}Jt.prototype.evaluateWithoutErrorHandling=function(e,t,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r)},Jt.prototype.evaluate=function(e,t,r){return this._styleExpression.evaluate(e,t,r)},Jt.prototype.interpolationFactor=function(e,t,r){return this._interpolationType?nt.interpolationFactor(this._interpolationType,e,t,r):0};var $t=function(e,t){this._parameters=e,this._specification=t,V(this,It(this._parameters,this._specification))};function Yt(e){return"object"==typeof e?["literal",e]:e}function Ht(e,t){var r=e.stops;if(!r)return function(e,t){var r=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",r]:r;if("enum"===t.type)return["match",r,Object.keys(t.values),r,e.default];var n=["color"===t.type?"to-color":t.type,r,Yt(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}(e,t);var n=r&&"object"==typeof r[0][0],o=n||void 0!==e.property,i=n||!o;return r=r.map(function(e){return!o&&t.tokens&&"string"==typeof e[1]?[e[0],rr(e[1])]:[e[0],Yt(e[1])]}),n?function(e,t,r){for(var n={},o={},i=[],a=0;a<r.length;a++){var s=r[a],u=s[0].zoom;void 0===n[u]&&(n[u]={zoom:u,type:e.type,property:e.property,default:e.default},o[u]=[],i.push(u)),o[u].push([s[0].value,s[1]])}if("exponential"===tr({},t)){for(var l=[Zt(e),["linear"],["zoom"]],c=0,p=i;c<p.length;c+=1){var d=p[c],h=Kt(n[d],t,o[d]);er(l,d,h,!1)}return l}for(var f=["step",["zoom"]],y=0,m=i;y<m.length;y+=1){var g=m[y],v=Kt(n[g],t,o[g]);er(f,g,v,!0)}return Qt(f),f}(e,t,r):i?function(e,t,r,n){void 0===n&&(n=["zoom"]);var o,i=tr(e,t),a=!1;if("interval"===i)o=["step",n],a=!0;else{if("exponential"!==i)throw new Error('Unknown zoom function type "'+i+'"');var s=void 0!==e.base?e.base:1;o=[Zt(e),["exponential",s],n]}for(var u=0,l=r;u<l.length;u+=1){var c=l[u];er(o,c[0],c[1],a)}return Qt(o),o}(e,t,r):Kt(e,t,r)}function Zt(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Xt(e,t){return void 0!==e?e:void 0!==t?t:void 0}function Kt(e,t,r){var n=tr(e,t),o=["get",e.property];if("categorical"===n&&"boolean"==typeof r[0][0]){for(var i=["case"],a=0,s=r;a<s.length;a+=1){var u=s[a];i.push(["==",o,u[0]],u[1])}return i.push(Yt(Xt(e.default,t.default))),i}if("categorical"===n){for(var l=["match",o],c=0,p=r;c<p.length;c+=1){var d=p[c];er(l,d[0],d[1],!1)}return l.push(Yt(Xt(e.default,t.default))),l}if("interval"===n){for(var h=["step",["number",o]],f=0,y=r;f<y.length;f+=1){var m=y[f];er(h,m[0],m[1],!0)}return Qt(h),void 0===e.default?h:["case",["==",["typeof",o],"number"],h,Yt(e.default)]}if("exponential"===n){for(var g=void 0!==e.base?e.base:1,v=[Zt(e),["exponential",g],["number",o]],b=0,w=r;b<w.length;b+=1){var x=w[b];er(v,x[0],x[1],!1)}return void 0===e.default?v:["case",["==",["typeof",o],"number"],v,Yt(e.default)]}throw new Error("Unknown property function type "+n)}function Qt(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function er(e,t,r,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(r))}function tr(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function rr(e){for(var t=["concat"],r=/{([^{}]+)}/g,n=0,o=r.exec(e);null!==o;o=r.exec(e)){var i=e.slice(n,r.lastIndex-o[0].length);n=r.lastIndex,i.length>0&&t.push(i),t.push(["get",o[1]])}if(1===t.length)return e;if(n<e.length)t.push(e.slice(n));else if(2===t.length)return["to-string",t[1]];return t}function nr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":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,r=e.slice(1);t<r.length;t+=1){var n=r[t];if(!nr(n)&&"boolean"!=typeof n)return!1}return!0;default:return!0}}$t.deserialize=function(e){return new $t(e._parameters,e._specification)},$t.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var or={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ir(e,t){return e<t?-1:e>t?1:0}function ar(e){if(!e)return!0;var t,r=e[0];return e.length<=1?"any"!==r:"=="===r?sr(e[1],e[2],"=="):"!="===r?cr(sr(e[1],e[2],"==")):"<"===r||">"===r||"<="===r||">="===r?sr(e[1],e[2],r):"any"===r?(t=e.slice(1),["any"].concat(t.map(ar))):"all"===r?["all"].concat(e.slice(1).map(ar)):"none"===r?["all"].concat(e.slice(1).map(ar).map(cr)):"in"===r?ur(e[1],e.slice(2)):"!in"===r?cr(ur(e[1],e.slice(2))):"has"===r?lr(e[1]):"!has"!==r||cr(lr(e[1]))}function sr(e,t,r){switch(e){case"$type":return["filter-type-"+r,t];case"$id":return["filter-id-"+r,t];default:return["filter-"+r,e,t]}}function ur(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(ir)]]:["filter-in-small",e,["literal",t]]}}function lr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function cr(e){return["!",e]}function pr(e){return function e(t,r){var n;if(nr(t))return t;if(!t)return!0;var o=t[0];if(t.length<=1)return"any"!==o;var i;if("=="===o||"!="===o||"<"===o||">"===o||"<="===o||">="===o){var a=t,s=a[1],u=a[2];i=function(e,t,r,n){var o;if("$type"===e)return[r,["geometry-type"],t];o="$id"===e?["id"]:["get",e];if(n&&null!==t){var i=typeof t;n[e]=i}if("=="===r&&"$id"!==e&&null===t)return["all",["has",e],["==",o,null]];if("!="===r&&"$id"!==e&&null===t)return["any",["!",["has",e]],["!=",o,null]];return[r,o,t]}(s,u,o,r)}else{if("any"===o){var l=t.slice(1).map(function(t){var r={},n=e(t,r),o=function(e){var t=[];for(var r in e){var n="$id"===r?["id"]:["get",r];t.push(["==",["typeof",n],e[r]])}if(0===t.length)return!0;if(1===t.length)return t[0];return["all"].concat(t)}(r);return!0===o?n:["case",o,n,!1]});return["any"].concat(l)}if("all"===o){var c=t.slice(1).map(function(t){return e(t,r)});return c.length>1?["all"].concat(c):(n=[]).concat.apply(n,c)}if("none"===o)return["!",e(["any"].concat(t.slice(1)),{})];i="in"===o?dr(t[1],t.slice(2)):"!in"===o?dr(t[1],t.slice(2),!0):"has"===o?hr(t[1]):"!has"!==o||["!",hr(t[1])]}return i}(e,{})}function dr(e,t,r){if(void 0===r&&(r=!1),0===t.length)return r;var n;n="$type"===e?["geometry-type"]:"$id"===e?["id"]:["get",e];for(var o=!0,i=typeof t[0],a=0,s=t;a<s.length;a+=1){if(typeof s[a]!==i){o=!1;break}}return!o||"string"!==i&&"number"!==i?[r?"all":"any"].concat(t.map(function(e){return[r?"!=":"==",n,e]})):["match",n,t,!r,r]}function hr(e){return"$type"===e||("$id"===e?["!=",["id"],null]:["has",e])}function fr(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!fr(e[r],t[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!fr(e[n],t[n]))return!1;return!0}return e===t}var yr={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function mr(e,t,r){r.push({command:yr.addSource,args:[e,t[e]]})}function gr(e,t,r){t.push({command:yr.removeSource,args:[e]}),r[e]=!0}function vr(e,t,r,n){gr(e,r,n),mr(e,t,r)}function br(e,t,r){var n;for(n in e[r])if(e[r].hasOwnProperty(n)&&"data"!==n&&!fr(e[r][n],t[r][n]))return!1;for(n in t[r])if(t[r].hasOwnProperty(n)&&"data"!==n&&!fr(e[r][n],t[r][n]))return!1;return!0}function wr(e,t,r,n,o,i){var a;for(a in t=t||{},e=e||{})e.hasOwnProperty(a)&&(fr(e[a],t[a])||r.push({command:i,args:[n,a,t[a],o]}));for(a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(fr(e[a],t[a])||r.push({command:i,args:[n,a,t[a],o]}))}function xr(e){return e.id}function _r(e,t){return e[t.id]=t,e}var kr=function(e,t,r,n){this.message=(e?e+": ":"")+r,n&&(this.identifier=n),null!=t&&t.__line__&&(this.line=t.__line__)};function Sr(e){this.error=e,this.message=e.message;var t=e.message.match(/line (\d+)/);this.line=t?parseInt(t[1],10):0}function jr(e){var t=e.key,r=e.value;return r?[new kr(t,r,"constants have been deprecated as of v8")]:[]}function Tr(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function zr(e){return Array.isArray(e)?e.map(zr):Tr(e)}function Or(e){var t=e.key,r=e.value,n=e.valueSpec||{},o=e.objectElementValidators||{},i=e.style,a=e.styleSpec,s=[],u=Ct(r);if("object"!==u)return[new kr(t,r,"object expected, "+u+" found")];for(var l in r){var c=l.split(".")[0],p=n[c]||n["*"],d=void 0;if(o[c])d=o[c];else if(n[c])d=Br;else if(o["*"])d=o["*"];else{if(!n["*"]){s.push(new kr(t,r[l],'unknown property "'+l+'"'));continue}d=Br}s=s.concat(d({key:(t?t+".":t)+l,value:r[l],valueSpec:p,style:i,styleSpec:a,object:r,objectKey:l},r))}for(var h in n)o[h]||n[h].required&&void 0===n[h].default&&void 0===r[h]&&s.push(new kr(t,r,'missing required property "'+h+'"'));return s}function Ar(e){var t=e.value,r=e.valueSpec,n=e.style,o=e.styleSpec,i=e.key,a=e.arrayElementValidator||Br;if("array"!==Ct(t))return[new kr(i,t,"array expected, "+Ct(t)+" found")];if(r.length&&t.length!==r.length)return[new kr(i,t,"array length "+r.length+" expected, length "+t.length+" found")];if(r["min-length"]&&t.length<r["min-length"])return[new kr(i,t,"array length at least "+r["min-length"]+" expected, length "+t.length+" found")];var s={type:r.value};o.$version<7&&(s.function=r.function),"object"===Ct(r.value)&&(s=r.value);for(var u=[],l=0;l<t.length;l++)u=u.concat(a({array:t,arrayIndex:l,value:t[l],valueSpec:s,style:n,styleSpec:o,key:i+"["+l+"]"}));return u}function Er(e){var t=e.key,r=e.value,n=e.valueSpec,o=Ct(r);return"number"!==o?[new kr(t,r,"number expected, "+o+" found")]:"minimum"in n&&r<n.minimum?[new kr(t,r,r+" is less than the minimum value "+n.minimum)]:"maximum"in n&&r>n.maximum?[new kr(t,r,r+" is greater than the maximum value "+n.maximum)]:[]}function Cr(e){var t,r,n,o=e.valueSpec,i=Tr(e.value.type),a={},s="categorical"!==i&&void 0===e.value.property,u=!s,l="array"===Ct(e.value.stops)&&"array"===Ct(e.value.stops[0])&&"object"===Ct(e.value.stops[0][0]),c=Or({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 kr(e.key,e.value,'identity function may not have a "stops" property')];var t=[],r=e.value;t=t.concat(Ar({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:p})),"array"===Ct(r)&&0===r.length&&t.push(new kr(e.key,r,"array must have at least one stop"));return t},default:function(e){return Br({key:e.key,value:e.value,valueSpec:o,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&s&&c.push(new kr(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||c.push(new kr(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!Et(e.valueSpec)&&c.push(new kr(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(u&&!Ot(e.valueSpec)?c.push(new kr(e.key,e.value,"property functions not supported")):s&&!At(e.valueSpec)&&c.push(new kr(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!l||void 0!==e.value.property||c.push(new kr(e.key,e.value,'"property" property is required')),c;function p(e){var t=[],i=e.value,s=e.key;if("array"!==Ct(i))return[new kr(s,i,"array expected, "+Ct(i)+" found")];if(2!==i.length)return[new kr(s,i,"array length 2 expected, length "+i.length+" found")];if(l){if("object"!==Ct(i[0]))return[new kr(s,i,"object expected, "+Ct(i[0])+" found")];if(void 0===i[0].zoom)return[new kr(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new kr(s,i,"object stop key must have value")];if(n&&n>Tr(i[0].zoom))return[new kr(s,i[0].zoom,"stop zoom values must appear in ascending order")];Tr(i[0].zoom)!==n&&(n=Tr(i[0].zoom),r=void 0,a={}),t=t.concat(Or({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Er,value:d}}))}else t=t.concat(d({key:s+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return Gt(zr(i[1]))?t.concat([new kr(s+"[1]",i[1],"expressions are not allowed in function stops.")]):t.concat(Br({key:s+"[1]",value:i[1],valueSpec:o,style:e.style,styleSpec:e.styleSpec}))}function d(e,n){var s=Ct(e.value),u=Tr(e.value),l=null!==e.value?e.value:n;if(t){if(s!==t)return[new kr(e.key,l,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new kr(e.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){var c="number expected, "+s+" found";return Ot(o)&&void 0===i&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new kr(e.key,l,c)]}return"categorical"!==i||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==i&&"number"===s&&void 0!==r&&u<r?[new kr(e.key,l,"stop domain values must appear in ascending order")]:(r=u,"categorical"===i&&u in a?[new kr(e.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new kr(e.key,l,"integer expected, found "+u)]}}function Mr(e){var t=("property"===e.expressionContext?Vt:Bt)(zr(e.value),e.valueSpec);if("error"===t.result)return t.value.map(function(t){return new kr(""+e.key+t.key,e.value,t.message)});var r=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&-1!==r.possibleOutputs().indexOf(void 0))return[new kr(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Oe(r))return[new kr(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!Oe(r))return[new kr(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Ae(r,["zoom","feature-state"]))return[new kr(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!ze(r))return[new kr(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rr(e){var t=e.key,r=e.value,n=e.valueSpec,o=[];return Array.isArray(n.values)?-1===n.values.indexOf(Tr(r))&&o.push(new kr(t,r,"expected one of ["+n.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(n.values).indexOf(Tr(r))&&o.push(new kr(t,r,"expected one of ["+Object.keys(n.values).join(", ")+"], "+JSON.stringify(r)+" found")),o}function Ir(e){return nr(zr(e.value))?Mr(V({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var r=t.value;var n=t.key;if("array"!==Ct(r))return[new kr(n,r,"array expected, "+Ct(r)+" found")];var o=t.styleSpec;var i;var a=[];if(r.length<1)return[new kr(n,r,"filter array must have at least 1 element")];a=a.concat(Rr({key:n+"[0]",value:r[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec}));switch(Tr(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===Tr(r[1])&&a.push(new kr(n,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&&a.push(new kr(n,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length>=2&&"string"!==(i=Ct(r[1]))&&a.push(new kr(n+"[1]",r[1],"string expected, "+i+" found"));for(var s=2;s<r.length;s++)i=Ct(r[s]),"$type"===Tr(r[1])?a=a.concat(Rr({key:n+"["+s+"]",value:r[s],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new kr(n+"["+s+"]",r[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var u=1;u<r.length;u++)a=a.concat(e({key:n+"["+u+"]",value:r[u],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=Ct(r[1]),2!==r.length?a.push(new kr(n,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new kr(n+"[1]",r[1],"string expected, "+i+" found"))}return a}(e)}function Lr(e,t){var r=e.key,n=e.style,o=e.styleSpec,i=e.value,a=e.objectKey,s=o[t+"_"+e.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===t&&u&&s[u[1]]&&s[u[1]].transition)return Br({key:r,value:i,valueSpec:o.transition,style:n,styleSpec:o});var l,c=e.valueSpec||s[a];if(!c)return[new kr(r,i,'unknown property "'+a+'"')];if("string"===Ct(i)&&Ot(c)&&!c.tokens&&(l=/^{([^}]+)}$/.exec(i)))return[new kr(r,i,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(l[1])+" }`.")];var p=[];return"symbol"===e.layerType&&("text-field"===a&&n&&!n.glyphs&&p.push(new kr(r,i,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&Mt(zr(i))&&"identity"===Tr(i.type)&&p.push(new kr(r,i,'"text-font" does not support identity functions'))),p.concat(Br({key:e.key,value:i,valueSpec:c,style:n,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:a}))}function Pr(e){return Lr(e,"paint")}function Nr(e){return Lr(e,"layout")}function Fr(e){var t=[],r=e.value,n=e.key,o=e.style,i=e.styleSpec;r.type||r.ref||t.push(new kr(n,r,'either "type" or "ref" is required'));var a,s=Tr(r.type),u=Tr(r.ref);if(r.id)for(var l=Tr(r.id),c=0;c<e.arrayIndex;c++){var p=o.layers[c];Tr(p.id)===l&&t.push(new kr(n,r.id,'duplicate layer id "'+r.id+'", previously used at line '+p.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach(function(e){e in r&&t.push(new kr(n,r[e],'"'+e+'" is prohibited for ref layers'))}),o.layers.forEach(function(e){Tr(e.id)===u&&(a=e)}),a?a.ref?t.push(new kr(n,r.ref,"ref cannot reference another ref layer")):s=Tr(a.type):t.push(new kr(n,r.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(r.source){var d=o.sources&&o.sources[r.source],h=d&&Tr(d.type);d?"vector"===h&&"raster"===s?t.push(new kr(n,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===h&&"raster"!==s?t.push(new kr(n,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==h||r["source-layer"]?"raster-dem"===h&&"hillshade"!==s?t.push(new kr(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===h&&d.lineMetrics||t.push(new kr(n,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new kr(n,r,'layer "'+r.id+'" must specify a "source-layer"')):t.push(new kr(n,r.source,'source "'+r.source+'" not found'))}else t.push(new kr(n,r,'missing required property "source"'));return t=t.concat(Or({key:n,value:r,valueSpec:i.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Br({key:n+".type",value:r.type,valueSpec:i.layer.type,style:e.style,styleSpec:e.styleSpec,object:r,objectKey:"type"})},filter:Ir,layout:function(e){return Or({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Nr(V({layerType:s},e))}}})},paint:function(e){return Or({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Pr(V({layerType:s},e))}}})}}}))}function qr(e){var t=e.value,r=e.key,n=e.styleSpec,o=e.style;if(!t.type)return[new kr(r,t,'"type" is required')];var i,a=Tr(t.type);switch(a){case"vector":case"raster":case"raster-dem":if(i=Or({key:r,value:t,valueSpec:n["source_"+a.replace("-","_")],style:e.style,styleSpec:n}),"url"in t)for(var s in t)["type","url","tileSize"].indexOf(s)<0&&i.push(new kr(r+"."+s,t[s],'a source with a "url" property may not include a "'+s+'" property'));return i;case"geojson":if(i=Or({key:r,value:t,valueSpec:n.source_geojson,style:o,styleSpec:n}),t.cluster)for(var u in t.clusterProperties){var l=t.clusterProperties[u],c=l[0],p=l[1],d="string"==typeof c?[c,["accumulated"],["get",u]]:c;i.push.apply(i,Mr({key:r+"."+u+".map",value:p,expressionContext:"cluster-map"})),i.push.apply(i,Mr({key:r+"."+u+".reduce",value:d,expressionContext:"cluster-reduce"}))}return i;case"video":return Or({key:r,value:t,valueSpec:n.source_video,style:o,styleSpec:n});case"image":return Or({key:r,value:t,valueSpec:n.source_image,style:o,styleSpec:n});case"canvas":return[new kr(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Rr({key:r+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,styleSpec:n})}}function Dr(e){var t=e.value,r=e.styleSpec,n=r.light,o=e.style,i=[],a=Ct(t);if(void 0===t)return i;if("object"!==a)return i=i.concat([new kr("light",t,"object expected, "+a+" found")]);for(var s in t){var u=s.match(/^(.*)-transition$/);i=u&&n[u[1]]&&n[u[1]].transition?i.concat(Br({key:s,value:t[s],valueSpec:r.transition,style:o,styleSpec:r})):n[s]?i.concat(Br({key:s,value:t[s],valueSpec:n[s],style:o,styleSpec:r})):i.concat([new kr(s,t[s],'unknown property "'+s+'"')])}return i}function Ur(e){var t=e.value,r=e.key,n=Ct(t);return"string"!==n?[new kr(r,t,"string expected, "+n+" found")]:[]}var Gr={"*":function(){return[]},array:Ar,boolean:function(e){var t=e.value,r=e.key,n=Ct(t);return"boolean"!==n?[new kr(r,t,"boolean expected, "+n+" found")]:[]},number:Er,color:function(e){var t=e.key,r=e.value,n=Ct(r);return"string"!==n?[new kr(t,r,"color expected, "+n+" found")]:null===ue(r)?[new kr(t,r,'color expected, "'+r+'" found')]:[]},constants:jr,enum:Rr,filter:Ir,function:Cr,layer:Fr,object:Or,source:qr,light:Dr,string:Ur,formatted:function(e){return 0===Ur(e).length?[]:Mr(e)}};function Br(e){var t=e.value,r=e.valueSpec,n=e.styleSpec;return r.expression&&Mt(Tr(t))?Cr(e):r.expression&&Gt(zr(t))?Mr(e):r.type&&Gr[r.type]?Gr[r.type](e):Or(V({},e,{valueSpec:r.type?n[r.type]:r}))}function Wr(e){var t=e.value,r=e.key,n=Ur(e);return n.length?n:(-1===t.indexOf("{fontstack}")&&n.push(new kr(r,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&n.push(new kr(r,t,'"glyphs" url must include a "{range}" token')),n)}function Jr(e,t){t=t||n;var r=[];return r=r.concat(Br({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Wr,"*":function(){return[]}}})),e.constants&&(r=r.concat(jr({key:"constants",value:e.constants,style:e,styleSpec:t}))),Vr(r)}function Vr(e){return[].concat(e).sort(function(e,t){return e.line-t.line})}function $r(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Vr(e.apply(this,t))}}Jr.source=$r(qr),Jr.light=$r(Dr),Jr.layer=$r(Fr),Jr.filter=$r(Ir),Jr.paintProperty=$r(Pr),Jr.layoutProperty=$r(Nr);var Yr=l(function(e,t){var r=function(){var e=function(e,t,r,n){for(r=r||{},n=e.length;n--;r[e[n]]=t);return r},t=[1,12],r=[1,13],n=[1,9],o=[1,10],i=[1,11],a=[1,14],s=[1,15],u=[14,18,22,24],l=[18,22],c=[22,24],p={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(e,t,r,n,o,i,a){var s=i.length-1;switch(o){case 1:this.$=new String(e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(e),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=i[s-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=i[s-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[i[s-2],i[s]];break;case 16:this.$={},this.$[i[s][0]]=i[s][1];break;case 17:this.$=i[s-2],i[s-2][i[s][0]]=i[s][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[i[s]];break;case 21:this.$=i[s-2],i[s-2].push(i[s])}},table:[{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,12:1,13:2,15:7,16:8,17:a,23:s},{1:[3]},{14:[1,16]},e(u,[2,7]),e(u,[2,8]),e(u,[2,9]),e(u,[2,10]),e(u,[2,11]),e(u,[2,12]),e(u,[2,3]),e(u,[2,4]),e(u,[2,5]),e([14,18,21,22,24],[2,1]),e(u,[2,2]),{3:20,4:t,18:[1,17],19:18,20:19},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:23,15:7,16:8,17:a,23:s,24:[1,21],25:22},{1:[2,6]},e(u,[2,13]),{18:[1,24],22:[1,25]},e(l,[2,16]),{21:[1,26]},e(u,[2,18]),{22:[1,28],24:[1,27]},e(c,[2,20]),e(u,[2,14]),{3:20,4:t,20:29},{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:30,15:7,16:8,17:a,23:s},e(u,[2,19]),{3:5,4:t,5:6,6:r,7:3,8:n,9:4,10:o,11:i,13:31,15:7,16:8,17:a,23:s},e(l,[2,17]),e(l,[2,15]),e(c,[2,21])],defaultActions:{16:[2,6]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,r=[0],n=[null],o=[],i=this.table,a="",s=0,u=0,l=1,c=o.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(d.yy[h]=this.yy[h]);p.setInput(e,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;o.push(f);var y=p.options&&p.options.ranges;"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,g,v,b,w,x,_,k,S,j,T={};;){if(v=r[r.length-1],this.defaultActions[v]?b=this.defaultActions[v]:(null==m&&(j=void 0,"number"!=typeof(j=p.lex()||l)&&(j=t.symbols_[j]||j),m=j),b=i[v]&&i[v][m]),void 0===b||!b.length||!b[0]){var z="";for(x in S=[],i[v])this.terminals_[x]&&x>2&&S.push("'"+this.terminals_[x]+"'");z=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(m==l?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(z,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:f,expected:S})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+m);switch(b[0]){case 1:r.push(m),n.push(p.yytext),o.push(p.yylloc),r.push(b[1]),m=null,g?(m=g,g=null):(u=p.yyleng,a=p.yytext,s=p.yylineno,f=p.yylloc);break;case 2:if(_=this.productions_[b[1]][1],T.$=n[n.length-_],T._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},y&&(T._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(w=this.performAction.apply(T,[a,u,s,d.yy,b[1],n,o].concat(c))))return w;_&&(r=r.slice(0,-1*_*2),n=n.slice(0,-1*_),o=o.slice(0,-1*_)),r.push(this.productions_[b[1]][0]),n.push(T.$),o.push(T._$),k=i[r[r.length-2]][r[r.length-1]],r.push(k);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,r=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var r,n,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],r=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in o)this[i]=o[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),i=0;i<o.length;i++)if((r=this._input.match(this.rules[o[i]]))&&(!t||r[0].length>t[0].length)){if(t=r,n=i,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,o[i])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,o[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,r,n){switch(r){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt\/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return p.lexer=d,h.prototype=p,p.Parser=h,new h}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}});function Hr(e,t){if(e instanceof String||"string"==typeof e||e instanceof r)try{e=Yr.parse(e.toString())}catch(e){return[new Sr(e)]}return Jr(e,t=t||n)}Yr.parser,Yr.Parser,Yr.parse;var Zr={StyleExpression:Ut,isExpression:Gt,createExpression:Bt,createPropertyExpression:Vt,normalizePropertyExpression:function(e,t){if(Mt(e))return new $t(e,t);if(Gt(e)){var r=Vt(e,t);if("error"===r.result)throw new Error(r.value.map(function(e){return e.key+": "+e.message}).join(", "));return r.value}var n=e;return"string"==typeof e&&"color"===t.type&&(n=le.parse(e)),{kind:"constant",evaluate:function(){return n}}},ZoomConstantExpression:Wt,ZoomDependentExpression:Jt,StylePropertyFunction:$t},Xr={convertFunction:Ht,createFunction:It,isFunction:Mt},Kr={eachSource:F,eachLayer:q,eachProperty:D};Hr.parsed=Hr,Hr.latest=Hr,t.v8=n,t.latest=n,t.format=function(e,t){return void 0===t&&(t=2),(e=s(e,n.$root)).layers&&(e.layers=e.layers.map(function(e){return s(e,n.layer)})),a(e,{indent:t})},t.migrate=function(e){var t=!1;if(7===e.version&&(e=J(e),t=!0),8===e.version&&(t=function(e){var t=[];return q(e,function(e){e.filter&&(e.filter=pr(e.filter))}),D(e,{paint:!0,layout:!0},function(e){var r=e.path,n=e.value,o=e.reference,i=e.set;Gt(n)||("object"!=typeof n||Array.isArray(n)?o.tokens&&"string"==typeof n&&i(rr(n)):(i(Ht(n,o)),t.push(r.join("."))))}),e}(e),t=!0),!t)throw new Error("cannot migrate from",e.version);return e},t.composite=function(e){var t=[],r=[],n=[];for(var o in e.sources){var i=e.sources[o];if("vector"===i.type){var a=/^mapbox:\/\/(.*)/.exec(i.url);a&&(t.push(o),r.push(a[1]))}}if(t.length<2)return e;t.forEach(function(t){delete e.sources[t]});var s=r.join(",");return e.sources[s]={type:"vector",url:"mapbox://"+s},e.layers.forEach(function(e){if(t.indexOf(e.source)>=0&&(e.source=s,"source-layer"in e)){if(n.indexOf(e["source-layer"])>=0)throw new Error("Conflicting source layer names");n.push(e["source-layer"])}}),e},t.diff=function(e,t){if(!e)return[{command:yr.setStyle,args:[t]}];var r=[];try{if(!fr(e.version,t.version))return[{command:yr.setStyle,args:[t]}];fr(e.center,t.center)||r.push({command:yr.setCenter,args:[t.center]}),fr(e.zoom,t.zoom)||r.push({command:yr.setZoom,args:[t.zoom]}),fr(e.bearing,t.bearing)||r.push({command:yr.setBearing,args:[t.bearing]}),fr(e.pitch,t.pitch)||r.push({command:yr.setPitch,args:[t.pitch]}),fr(e.sprite,t.sprite)||r.push({command:yr.setSprite,args:[t.sprite]}),fr(e.glyphs,t.glyphs)||r.push({command:yr.setGlyphs,args:[t.glyphs]}),fr(e.transition,t.transition)||r.push({command:yr.setTransition,args:[t.transition]}),fr(e.light,t.light)||r.push({command:yr.setLight,args:[t.light]});var n={},o=[];!function(e,t,r,n){var o;for(o in t=t||{},e=e||{})e.hasOwnProperty(o)&&(t.hasOwnProperty(o)||gr(o,r,n));for(o in t)t.hasOwnProperty(o)&&(e.hasOwnProperty(o)?fr(e[o],t[o])||("geojson"===e[o].type&&"geojson"===t[o].type&&br(e,t,o)?r.push({command:yr.setGeoJSONSourceData,args:[o,t[o].data]}):vr(o,t,r,n)):mr(o,t,r))}(e.sources,t.sources,o,n);var i=[];e.layers&&e.layers.forEach(function(e){n[e.source]?r.push({command:yr.removeLayer,args:[e.id]}):i.push(e)}),r=r.concat(o),function(e,t,r){t=t||[];var n,o,i,a,s,u,l,c=(e=e||[]).map(xr),p=t.map(xr),d=e.reduce(_r,{}),h=t.reduce(_r,{}),f=c.slice(),y=Object.create(null);for(n=0,o=0;n<c.length;n++)i=c[n],h.hasOwnProperty(i)?o++:(r.push({command:yr.removeLayer,args:[i]}),f.splice(f.indexOf(i,o),1));for(n=0,o=0;n<p.length;n++)i=p[p.length-1-n],f[f.length-1-n]!==i&&(d.hasOwnProperty(i)?(r.push({command:yr.removeLayer,args:[i]}),f.splice(f.lastIndexOf(i,f.length-o),1)):o++,u=f[f.length-n],r.push({command:yr.addLayer,args:[h[i],u]}),f.splice(f.length-n,0,i),y[i]=!0);for(n=0;n<p.length;n++)if(a=d[i=p[n]],s=h[i],!y[i]&&!fr(a,s))if(fr(a.source,s.source)&&fr(a["source-layer"],s["source-layer"])&&fr(a.type,s.type)){for(l in wr(a.layout,s.layout,r,i,null,yr.setLayoutProperty),wr(a.paint,s.paint,r,i,null,yr.setPaintProperty),fr(a.filter,s.filter)||r.push({command:yr.setFilter,args:[i,s.filter]}),fr(a.minzoom,s.minzoom)&&fr(a.maxzoom,s.maxzoom)||r.push({command:yr.setLayerZoomRange,args:[i,s.minzoom,s.maxzoom]}),a)a.hasOwnProperty(l)&&"layout"!==l&&"paint"!==l&&"filter"!==l&&"metadata"!==l&&"minzoom"!==l&&"maxzoom"!==l&&(0===l.indexOf("paint.")?wr(a[l],s[l],r,i,l.slice(6),yr.setPaintProperty):fr(a[l],s[l])||r.push({command:yr.setLayerProperty,args:[i,l,s[l]]}));for(l in s)s.hasOwnProperty(l)&&!a.hasOwnProperty(l)&&"layout"!==l&&"paint"!==l&&"filter"!==l&&"metadata"!==l&&"minzoom"!==l&&"maxzoom"!==l&&(0===l.indexOf("paint.")?wr(a[l],s[l],r,i,l.slice(6),yr.setPaintProperty):fr(a[l],s[l])||r.push({command:yr.setLayerProperty,args:[i,l,s[l]]}))}else r.push({command:yr.removeLayer,args:[i]}),u=f[f.lastIndexOf(i)+1],r.push({command:yr.addLayer,args:[s,u]})}(i,t.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:yr.setStyle,args:[t]}]}return r},t.ValidationError=kr,t.ParsingError=Sr,t.expression=Zr,t.featureFilter=function(e){if(null==e)return function(){return!0};nr(e)||(e=ar(e));var t=Bt(e,or);if("error"===t.result)throw new Error(t.value.map(function(e){return e.key+": "+e.message}).join(", "));return function(e,r){return t.value.evaluate(e,r)}},t.Color=le,t.function=Xr,t.validate=Hr,t.visit=Kr,Object.defineProperty(t,"__esModule",{value:!0})})(t)}).call(this,r(4),r(13).Buffer)},function(e,t){var r={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},n=/(italic|oblique)$/i,o={};e.exports=function(e,t,i){var a=o[e];if(!a){Array.isArray(e)||(e=[e]);for(var s="normal",u="normal",l=[],c=0,p=e.length;c<p;++c){var d=e[c].split(" "),h=d[d.length-1].toLowerCase();for(var f in"normal"==h||"italic"==h||"oblique"==h?(u=h,d.pop(),h=d[d.length-1].toLowerCase()):n.test(h)&&(h=h.replace(n,""),u=d[d.length-1].replace(h,"")),r)if(h==f||h==f.replace("-","")||h==f.replace("-"," ")){s=r[f],d.pop();break}"number"==typeof h&&(s=h);var y=d.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==y.indexOf(" ")&&(y='"'+y+'"'),l.push(y)}a=o[e]=[u,s,l]}return a[0]+" "+a[1]+" "+t+"px"+(i?"/"+i:"")+" "+a[2]}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(){try{return ol}catch(e){return{}}}()},function(e){e.exports={$version:8,$root:{version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},sources:{"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster:{type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},"*":{type:"*",doc:"Other keys to configure the data source."}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."}},source_video:{type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},source_image:{type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},layer:{id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_fill:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_circle:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key wehn they overlap. Features with a lower sort key will have priority over other features when doing placement.","sdk-support":{js:"0.53.0"},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"If `symbol-sort-key` is set, sort based on that. Otherwise sort symbols by their position relative to the viewport."},"viewport-y":{doc:"Symbols will be sorted by their y-position relative to the viewport."},source:{doc:"Symbols will be rendered in the same order as the source data with no sorting applied."}},default:"auto",doc:"Controls the order in which overlapping symbols in the same layer are rendered","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},"property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},"property-type":"constant"}},filter:{type:"array",value:"*",doc:"A filter selects specific features from a layer."},filter_operator:{type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'}},doc:"The filter operator."},geometry_type:{type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2,doc:"Zoom level and value pair."},expression:{type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},expression_name:{doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output whose label value matches the input value, or the fallback value if no match is found. The input can be any expression (e.g. `["get", "building_type"]`). Each label must either be a single literal value or an array of literal values (e.g. `"a"` or `["c", "b"]`), and those values must be all strings or all numbers. (The values `"1"` and `1` cannot both be labels in the same match expression.) Each label must be unique. If the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\n\nInterpolation types:\n- `["linear"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:"Returns `formatted` text containing annotations for use in mixed-format `text-field` entries. If set, the `text-font` argument overrides the font specified by the root layout properties. If set, the `font-scale` argument specifies a scaling factor relative to the `text-size` specified in the root layout properties.",group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String"},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},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,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}}}},function(e,t){(function(){var t;e.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return t},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},t=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(this)},,function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";(function(e){
18
- /*!
19
- * The buffer module from node.js, for the browser.
20
- *
21
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
22
- * @license MIT
23
- */
24
- var n=r(14),o=r(15),i=r(16);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return D(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var p=!0,d=0;d<u;d++)if(l(e,i+d)!==l(t,d)){p=!1;break}if(p)return i}return-1}function v(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function b(e,t,r,n){return G(D(t,e.length-r),e,r,n)}function w(e,t,r,n){return G(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return w(e,t,r,n)}function _(e,t,r,n){return G(U(t),e,r,n)}function k(e,t,r,n){return G(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function j(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,l=e[o],c=null,p=l>239?4:l>223?3:l>191?2:1;if(o+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=p}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=f,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?j(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return j(this,t,r);case"ascii":return z(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),c=e.slice(t,r),p=0;p<s;++p)if(l[p]!==c[p]){i=l[p],a=c[p];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return x(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function z(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=q(e[i]);return o}function E(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function L(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,n,i){return i||L(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,i){return i||L(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||M(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);M(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:D(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function q(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(4))},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=l(e),n=r[0],a=r[1],s=new i(function(e,t,r){return 3*(t+r)/4-r}(0,n,a)),u=0,c=a>0?n-4:n,p=0;p<c;p+=4)t=o[e.charCodeAt(p)]<<18|o[e.charCodeAt(p+1)]<<12|o[e.charCodeAt(p+2)]<<6|o[e.charCodeAt(p+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=o[e.charCodeAt(p)]<<2|o[e.charCodeAt(p+1)]>>4,s[u++]=255&t);1===a&&(t=o[e.charCodeAt(p)]<<10|o[e.charCodeAt(p+1)]<<4|o[e.charCodeAt(p+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(c(e,a,a+16383>s?s:a+16383));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,l=u>>1,c=-7,p=r?o-1:0,d=r?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+p],p+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+p],p+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=l}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,p=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,f=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+p>=1?d/u:d*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=c?(s=0,a=c):a+p>=1?(s=(t*u-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=f,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[r+h]=255&a,h+=f,a/=256,l-=8);e[r+h-f]|=128*y}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},,,function(e,t,r){"use strict";r.r(t);r(9),r(10),r(11);var n=r(0),o=r.n(n);var i=class extends o.a.control.Control{constructor(e){const t=e||{};super({element:document.createElement("div"),target:t.target});const r=void 0!==t.align?t.align:"vertical",n=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,a=void 0!==t.zoomInLabel?t.zoomInLabel:"+",s=void 0!==t.zoomOutLabel?t.zoomOutLabel:"−",u=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=n+"-in",c.setAttribute("type","button"),c.title=u,c.appendChild("string"==typeof a?document.createTextNode(a):a),o.a.events.listen(c,o.a.events.EventType.CLICK,this.handleClick_.bind(this,i));const p=document.createElement("button");p.className=n+"-out",p.setAttribute("type","button"),p.title=l,p.appendChild("string"==typeof s?document.createTextNode(s):s),o.a.events.listen(p,o.a.events.EventType.CLICK,this.handleClick_.bind(this,-i));const d=document.createElement("span");d.className=n+"-level level";const h=document.createElement("div");h.className="out-in-"+r,h.appendChild(c),h.appendChild(p);const f=n+" "+o.a.css.CLASS_UNSELECTABLE+" "+o.a.css.CLASS_CONTROL,y=this.element;y.className=f,y.appendChild(d),y.appendChild(h),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const t=this.getMap().getView();if(!t)return;const r=t.getResolution();if(r){const n=t.constrainResolution(r,e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:n,duration:this.duration_,easing:o.a.easing.easeOut})):t.setResolution(n)}}setMap(e){e.on("moveend",this.updateZoomLevel_.bind(this)),super.setMap(e)}updateZoomLevel_(e){console.log(e,this);const t=e.target,r=Math.floor(10*t.getView().getZoom())/10;this.element.querySelector(".level").innerText=r}};const a="projection",s="coordinateFormat";function u(e){const t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}var l=class extends o.a.control.Control{constructor(e){const t=e||{},r=document.createElement("div");r.className=void 0!==t.className?t.className:"ol-mouse-position",r.positionNum=t.positionNum,super({element:r,render:t.render||u,target:t.target,positionNum:t.positionNum}),o.a.events.listen(this,o.a.Object.getChangeEventType(a),this.handleProjectionChanged_,this),t.coordinateFormat&&this.setCoordinateFormat(t.coordinateFormat),t.projection&&this.setProjection(t.projection),this.undefinedHTML_=void 0!==t.undefinedHTML?t.undefinedHTML:"&#160;",this.renderOnMouseOut_=!!this.undefinedHTML_,this.renderedHTML_=r.innerHTML,this.mapProjection_=null,this.transform_=null,this.lastMouseMovePixel_=null}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(s)}getProjection(){return this.get(a)}handleMouseMove(e){const t=this.getMap();this.lastMouseMovePixel_=t.getEventPixel(e),this.updateHTML_(this.lastMouseMovePixel_)}handleMouseOut(e){this.updateHTML_(null),this.lastMouseMovePixel_=null}setMap(e){if(super.setMap(e),e){const t=e.getViewport();this.listenerKeys.push(o.a.events.listen(t,o.a.events.EventType.MOUSEMOVE,this.handleMouseMove,this),o.a.events.listen(t,o.a.events.EventType.TOUCHSTART,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(o.a.events.listen(t,o.a.events.MOUSEOUT,this.handleMouseOut,this),o.a.events.listen(t,o.a.events.EventType.TOUCHEND,this.handleMouseOut,this))}}setCoordinateFormat(e){this.set(s,e)}setProjection(e){this.set(a,this.getProjection(e))}updateHTML_(e){let t=this.undefinedHTML_;if(e&&this.mapProjection_){if(!this.transform_){const e=this.getProjection();this.transform_=e?o.a.proj.getTransformFromProjections(this.mapProjection_,e):o.a.proj.identityTransform}const r=this.getMap().getCoordinateFromPixel(e);if(r){this.transform_(r,r);const e=this.getCoordinateFormat();if(e)t=e(r);else{let e=r[0],n=r[1];const o=this.getProjection();o?"EPSG:4326"===o.code_?t="经度:"+e.toFixed(this.element.positionNum)+"&nbsp;纬度:"+n.toFixed(this.element.positionNum):"EPSG:3857"===o.code_&&(t="纬度:"+e.toFixed(this.element.positionNum)+"&nbsp;纬度:"+n.toFixed(this.element.positionNum)):"EPSG:4326"===this.mapProjection_.code_?t="经度:"+e.toFixed(this.element.positionNum)+"&nbsp;纬度:"+n.toFixed(this.element.positionNum):"EPSG:3857"===this.mapProjection_.code_&&(t="X:"+e.toFixed(this.element.positionNum)+"&nbsp;Y:"+n.toFixed(this.element.positionNum))}}}this.renderedHTML_&&t===this.renderedHTML_||(this.element.innerHTML=t,this.renderedHTML_=t)}};const c="units",p={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},d=[1,2,5];function h(e){const t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}var f=class extends o.a.control.Control{constructor(e){const t=e||{},r=void 0!==t.className?t.className:"ol-scale-line";super({element:document.createElement("div"),render:t.render||h,target:t.target}),this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-font",this.element.className=r+" "+o.a.css.CLASS_UNSELECTABLE,this.element.appendChild(this.innerElement_),this.innerElement_line=document.createElement("div"),this.innerElement_line.className=r+"-inner",this.element.appendChild(this.innerElement_line),this.viewState_=null,this.minWidth_=void 0!==t.minWidth?t.minWidth:64,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",o.a.events.listen(this,o.a.Object.getChangeEventType(c),this.handleUnitsChanged_,this),this.setUnits(t.units||p.METRIC)}getUnits(){return this.get(c)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(c,e)}updateElement_(){const e=this.viewState_;if(!e)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const t=e.center,r=e.projection,n=this.getUnits(),i=n==p.DEGREES?p.DEGREES:o.a.proj.Units.METERS;let a=o.a.proj.getPointResolution(r,e.resolution,t,i);r.getUnits()!=p.DEGREES&&r.getMetersPerUnit()&&i==o.a.proj.Units.METERS&&(a*=r.getMetersPerUnit());let s=this.minWidth_*a,u="";if(n==p.DEGREES){const e=o.a.proj.METERS_PER_UNIT[p.DEGREES];r.getUnits()==p.DEGREES?s*=e:a/=e,s<e/60?(u="″",a*=3600):s<e?(u="′",a*=60):u="°"}else n==p.IMPERIAL?s<.9144?(u="英寸",a/=.0254):s<1609.344?(u="英尺",a/=.3048):(u="英里",a/=1609.344):n==p.NAUTICAL?(a/=1852,u="纳米"):n==p.METRIC?s<.001?(u="微米",a*=1e6):s<1?(u="毫米",a*=1e3):s<1e3?u="米":(u="千米",a/=1e3):n==p.US?s<.9144?(u="英寸",a*=39.37):s<1609.344?(u="英尺",a/=.30480061):(u="英里",a/=1609.3472):o.a.asserts.assert(!1,33);let l,c,h=3*Math.floor(Math.log(this.minWidth_*a)/Math.log(10));for(;;){if(l=d[(h%3+3)%3]*Math.pow(10,Math.floor(h/3)),c=Math.round(l/a),isNaN(c))return this.element.style.display="none",void(this.renderedVisible_=!1);if(c>=this.minWidth_)break;++h}const f=l+" "+u;this.renderedHTML_!=f&&(this.innerElement_.innerHTML=f,this.renderedHTML_=f),this.renderedWidth_!=c&&(this.innerElement_.style.width=c+"px",this.renderedWidth_=c),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}},y=r(1),m=r.n(y);class g extends o.a.layer.Group{constructor(e){super(e),this.maxLength=0}getLayersBy(e,t){if(!e||!t)return[];let r=this.getLayers(),n=[];return r.forEach(function(r){r.get(e)===t&&n.push(r)}),n}removeLayer(e){let t=this.getLayers();e instanceof o.a.layer.Base&&t.remove(e)}addLayer(e){if(this.maxLength>0&&this.getLayers().getLength()>=this.maxLength)return void this.dispatchEvent("overflow");this.getLayers().push(e);let t=Object(y.sortBy)(this.getLayers().getArray(),function(e){return e.get("layerIndex")});t=new o.a.Collection(t.slice(),{unique:!0}),this.setLayers(t)}setMaxLength(e){isNaN(e)||(this.maxLength=Number(e))}}r(5);const v=()=>{let e=[];for(let t=0;t<22;t++)e.push(.703125/Math.pow(2,t));return{extent:[-180,-90,180,90],origin:[-180,90],resolutions:e,tileSize:512,projection:"EPSG:4326"}},b=()=>{const e=12756274*Math.PI/512;let t=[];for(let r=0;r<22;r++)t.push(e/Math.pow(2,r));return{extent:[-180,-90,180,90],origin:[-180,90],resolutions:t,tileSize:512}};var w=class extends o.a.Observable{constructor(e){super();const t=(e=e||{}).renderType||"SuperMapRest";this.selectedStyle=e.selectedStyle,this.renderType=t,this.setMap(e.map);const r=e.url||"";this.parserUrlTemplate(r),this.on("styleloaded",this.styleLoaded,this)}parserUrlTemplate(e){const t=e.split("?"),r=t.length>1?m.a.chain(t[1]).split("&").map(e=>e.split("=")).fromPairs().value():{};this.extractDimensions(r);const n=t[0]+"/"+r.source;this.createVectorTile(),this.setProjection(r.projection),this.setSourceLayer(r.source),this.setUrl(n),this.setFormat(r.format)}extractDimensions(e){const t={};m.a.mapKeys(e,(e,r)=>{t[m.a.toUpper(r)]=e}),this.keyParams=t}createVectorTile(){const e=new o.a.layer.VectorTile({declutter:!0});this.VectorTile=e}setMaxResolution(e){this.VectorTile.setMaxResolution(e)}setMinResolution(e){this.VectorTile.setMinResolution(e)}setUrl(e){this.url=e,"SuperMapRestJsr"===this.renderType&&this.setStyleUrl(),this.setStyle()}getUrl(){return this.url}styleLoaded(){let e=null;if(this.getLayer().setStyle(this.getStyle().getStyleFunction()),this.getLayer().set("styleObj",this.getStyle()),"SuperMapRest"===this.renderType?e=this.getSuperMapRestSource():"SuperMapRestJsr"===this.renderType&&(e=this.getSuperMapRestJsrSource()),this.setSource(e),this.keyParams.STRICT){let t=e.getTileGrid().getResolutions(),r=0;if(r=isNaN(this.keyParams.MINZOOM)?t[0]:t[Number(this.keyParams.MINZOOM)],this.VectorTile.setMaxResolution(r),!isNaN(this.keyParams.MAXZOOM)){let e;e=this.keyParams.MAXZOOM>t.length-1?t[t.length-1]:t[this.keyParams.MAXZOOM],this.VectorTile.setMinResolution(e)}}this.dispatchEvent("sourceloaded")}setMap(e){this.map=e}getMap(){return this.map}setStyleUrl(){this.styleUrl=this.getUrl()+"/style.json"}getStyleUrl(){return this.styleUrl}setStyle(){let e;"SuperMapRest"===this.renderType?e=new o.a.supermap.MapboxStyles({url:this.getUrl(),source:this.rceLayer(),selectedStyle:this.selectedStyle,map:this.getMap()}):"SuperMapRestJsr"===this.renderType&&(e=new o.a.supermap.MapboxStyles({style:this.getStyleUrl(),source:this.getSourceLayer(),selectedStyle:this.selectedStyle,map:this.getMap()})),e.on("styleloaded",()=>{this.style=e,this.dispatchEvent("styleloaded")})}getStyle(){return this.style}setProjection(e){this.projection=e||"EPSG:3857"}getProjection(){return this.projection}setFormat(e){let t;switch(e){case"MVT":default:t=new o.a.format.MVT({featureClass:o.a.render.Feature})}this.format=t}getFormat(){return this.format}setSourceLayer(e){this.sourceLayer=e}getSourceLayer(){return this.sourceLayer}getTileGrid(e){let t={};switch(e){case"EPSG:4490":case"EPSG:4326":t=v();break;case"EPSG:3857":default:t=b()}return new o.a.tilegrid.TileGrid(t)}setSource(e){this.getLayer().setSource(e)}getSuperMapRestSource(){return new o.a.source.VectorTileSuperMapRest({format:this.getFormat(),tileType:"ScaleXY",projection:this.getProjection(),url:this.getUrl(),tileGrid:this.getTileGrid(this.getProjection())})}getSuperMapRestJsrSource(){return new o.a.source.VectorTileSuperMapRest({format:this.getFormat(),style:this.getStyleUrl(),source:this.getSourceLayer(),projection:this.getProjection(),tileGrid:this.getTileGrid(this.getProjection())})}getLayer(){return this.VectorTile}};const x=["URL","LAYER","STYLE","TILEMATRIXSET","FORMAT","PROJECTION","TOPRESOLUTION","MINZOOM","MAXZOOM","SERVICE","REQUEST","VERSION","TILEMATRIX","TILEROW","TILECOL","CROSSORIGIN","WRAPX","EXTENT","ORIGIN","OFFSET","LAYERTYPE","LAYERINDE","STRICT","TILE_SIZE","LAYER_EXTENT"];var _=class extends o.a.Observable{constructor(e){super(),e=e||{},this.TileLayer=new o.a.layer.Tile,this.dimensions={};const t=e.url||"";this.parserUrlTemplate(t);const r=this.createWMTSSource();if(this.TileLayer.setSource(r),this.keyParams.STRICT){let e=r.getTileGrid().getResolutions(),t=0;t=isNaN(this.keyParams.MINZOOM)?e[0]:e[Number(this.keyParams.MINZOOM)];let n=e[e.length-1];this.TileLayer.setMinResolution(n),this.TileLayer.setMaxResolution(t)};if(this.keyParams.LAYER_EXTENT){let n=this.keyParams.LAYER_EXTENT.split(",").map(e=>+e);this.TileLayer.setExtent(n)}}parserUrlTemplate(e){const t=e.split("?"),r=t.length>1?m.a.chain(t[1]).split("&").map(e=>e.split("=")).fromPairs().value():{};this.setUrl(t[0]),this.extractDimensions(r)}extractDimensions(e){const t={},r={};m.a.mapKeys(e,(e,n)=>{-1===x.indexOf(m.a.toUpper(n))?t[n]=e:r[m.a.toUpper(n)]=e}),this.dimensions=t,this.keyParams=r}getTileGrid(){let e,t,r;switch(this.keyParams.PROJECTION||"EPSG:3857"){case"EPSG:4490":case"EPSG:4326":case"WGS84":e=.703125,t=[-180,-90,180,90],r=[-180,90];break;case"EPSG:3857":e=12756274*Math.PI/512,t=[-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892],r=[-20037508.3427892,20037508.3427892];break;default:e=12756274*Math.PI/512}const n=[],i=[];e=this.keyParams.TOPRESOLUTION||e,this.keyParams.EXTENT&&(t=this.keyParams.EXTENT.split(",").map(e=>+e)),this.keyParams.ORIGIN&&(r=this.keyParams.ORIGIN.split(",").map(e=>+e));const a=isNaN(this.keyParams.MINZOOM)?1:Number(this.keyParams.MINZOOM),s=isNaN(this.keyParams.MAXZOOM)?18:Number(this.keyParams.MAXZOOM),u=isNaN(this.keyParams.OFFSET)?0:Number(this.keyParams.OFFSET),w=isNaN(this.keyParams.TILE_SIZE)?256:Number(this.keyParams.TILE_SIZE);for(let t=0;t<s;t++)n.push(e/Math.pow(2,t)),i.push(t+1+u);return new o.a.tilegrid.WMTS({extent:t,minZoom:a,resolutions:n,matrixIds:i,origin:r,tileSize:w})}setUrl(e){this.url=e}getUrl(){return this.url}createWMTSSource(){return new o.a.source.WMTS({version:this.keyParams.VERSION||"1.0.0",format:this.keyParams.FORMAT||"image/png",layer:this.keyParams.LAYER,matrixSet:this.keyParams.TILEMATRIXSET,style:this.keyParams.STYLE||"default",crossOrigin:this.keyParams.CROSSORIGIN === 'null' ? null : (this.keyParams.CROSSORIGIN || "anonymous"),url:this.getUrl(),projection:this.keyParams.PROJECTION||"EPSG:3857",wrapX:this.keyParams.WRAPX||!1,dimensions:this.dimensions,tileGrid:this.getTileGrid()})}getLayer(){return this.TileLayer}};function k(){return function(){throw new Error("Unimplemented abstract method.")}()}var S=0;function j(e){return e.ol_uid||(e.ol_uid=String(++S))}var T="5.3.2",z=function(e){function t(t){var r="Assertion failed. See https://openlayers.org/en/"+("latest"===T?T:"v"+T.split("-")[0])+"/doc/errors/#"+t+" for details.";e.call(this,r),this.code=t,this.name="AssertionError",this.message=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);function O(e,t){if(!e)throw new z(t)}var A={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"};function E(e,t,r){return Math.min(Math.max(e,t),r)}var C="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};function M(e,t,r,n){var o=r-e,i=n-t;return o*o+i*i}var R=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,I=/^([a-z]*)$/i;function L(e){return"string"==typeof e?e:F(e)}var P=function(){var e={},t=0;return function(r){var n;if(e.hasOwnProperty(r))n=e[r];else{if(t>=1024){var o=0;for(var i in e)0==(3&o++)&&(delete e[i],--t)}n=function(e){var t,r,n,o,i;I.exec(e)&&(e=function(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var r=getComputedStyle(t).color;return document.body.removeChild(t),r}return""}(e));if(R.exec(e)){var a,s=e.length-1;a=s<=4?1:2;var u=4===s||8===s;t=parseInt(e.substr(1+0*a,a),16),r=parseInt(e.substr(1+1*a,a),16),n=parseInt(e.substr(1+2*a,a),16),o=u?parseInt(e.substr(1+3*a,a),16):255,1==a&&(t=(t<<4)+t,r=(r<<4)+r,n=(n<<4)+n,u&&(o=(o<<4)+o)),i=[t,r,n,o/255]}else 0==e.indexOf("rgba(")?N(i=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((i=e.slice(4,-1).split(",").map(Number)).push(1),N(i)):O(!1,14);return i}(r),e[r]=n,++t}return n}}();function N(e){return e[0]=E(e[0]+.5|0,0,255),e[1]=E(e[1]+.5|0,0,255),e[2]=E(e[2]+.5|0,0,255),e[3]=E(e[3],0,1),e}function F(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var r=e[1];r!=(0|r)&&(r=r+.5|0);var n=e[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+r+","+n+","+(void 0===e[3]?1:e[3])+")"}function q(e){return Array.isArray(e)?F(e):e}function D(e,t){var r=document.createElement("canvas");return e&&(r.width=e),t&&(r.height=t),r.getContext("2d")}var U="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",G=(U.indexOf("firefox"),-1!==U.indexOf("safari")&&U.indexOf("chrom"),-1!==U.indexOf("webkit")&&U.indexOf("edge"),U.indexOf("macintosh"),window.devicePixelRatio,function(){var e=!1;try{e=!!document.createElement("canvas").getContext("2d").setLineDash}catch(e){}return e}()),B=(navigator,window,window,navigator.msPointerEnabled,{IDLE:0,LOADING:1,LOADED:2,ERROR:3}),W=function(){var e,t={};return function(r){if(e||(e=document.createElement("div").style),!(r in t)){e.font=r;var n=e.fontFamily;if(e.font="",!n)return null;t[r]=n.split(/,\s?/)}return t[r]}}(),J="function"==typeof Object.assign?Object.assign:function(e,t){var r=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),o=1,i=arguments.length;o<i;++o){var a=r[o];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])}return n};function V(e){for(var t in e)delete e[t]}var $=function(){this.disposed_=!1};$.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},$.prototype.disposeInternal=function(){};var Y=$;function H(e,t,r,n){for(var o,i=0,a=e.length;i<a;++i)if((o=e[i]).listener===t&&o.bindTo===r)return n&&(o.deleteIndex=i),o}function Z(e,t){var r=X(e);return r?r[t]:void 0}function X(e,t){var r=e.ol_lm;return!r&&t&&(r=e.ol_lm={}),r}function K(e,t){var r=Z(e,t);if(r){for(var n=0,o=r.length;n<o;++n)e.removeEventListener(t,r[n].boundListener),V(r[n]);r.length=0;var i=X(e);i&&(delete i[t],0===Object.keys(i).length&&function(e){delete e.ol_lm}(e))}}function Q(e,t,r,n,o){var i=X(e,!0),a=i[t];a||(a=i[t]=[]);var s=H(a,r,n,!1);return s?o||(s.callOnce=!1):(s={bindTo:n,callOnce:!!o,listener:r,target:e,type:t},e.addEventListener(t,function(e){var t=function(t){var r=e.listener,n=e.bindTo||e.target;return e.callOnce&&re(e),r.call(n,t)};return e.boundListener=t,t}(s)),a.push(s)),s}function ee(e,t,r,n){return Q(e,t,r,n,!0)}function te(e,t,r,n){var o=Z(e,t);if(o){var i=H(o,r,n,!0);i&&re(i)}}function re(e){if(e&&e.target){e.target.removeEventListener(e.type,e.boundListener);var t=Z(e.target,e.type);if(t){var r="deleteIndex"in e?e.deleteIndex:t.indexOf(e);-1!==r&&t.splice(r,1),0===t.length&&K(e.target,e.type)}V(e)}}function ne(){}var oe=function(e){this.propagationStopped,this.type=e,this.target=null};oe.prototype.preventDefault=function(){this.propagationStopped=!0},oe.prototype.stopPropagation=function(){this.propagationStopped=!0};var ie=oe,ae=function(e){function t(){e.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.addEventListener=function(e,t){var r=this.listeners_[e];r||(r=this.listeners_[e]=[]),-1===r.indexOf(t)&&r.push(t)},t.prototype.dispatchEvent=function(e){var t="string"==typeof e?new ie(e):e,r=t.type;t.target=this;var n,o=this.listeners_[r];if(o){r in this.dispatching_||(this.dispatching_[r]=0,this.pendingRemovals_[r]=0),++this.dispatching_[r];for(var i=0,a=o.length;i<a;++i)if(!1===o[i].call(this,t)||t.propagationStopped){n=!1;break}if(--this.dispatching_[r],0===this.dispatching_[r]){var s=this.pendingRemovals_[r];for(delete this.pendingRemovals_[r];s--;)this.removeEventListener(r,ne);delete this.dispatching_[r]}return n}},t.prototype.disposeInternal=function(){!function(e){var t=X(e);if(t)for(var r in t)K(e,r)}(this)},t.prototype.getListeners=function(e){return this.listeners_[e]},t.prototype.hasListener=function(e){return e?e in this.listeners_:Object.keys(this.listeners_).length>0},t.prototype.removeEventListener=function(e,t){var r=this.listeners_[e];if(r){var n=r.indexOf(t);e in this.pendingRemovals_?(r[n]=ne,++this.pendingRemovals_[e]):(r.splice(n,1),0===r.length&&delete this.listeners_[e])}},t}(Y),se="change",ue="clear",le="error",ce="load",pe=function(e){function t(t){e.call(this),this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(ue)},t.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},t.prototype.forEach=function(e,t){for(var r=this.oldest_;r;)e.call(t,r.value_,r.key_,this),r=r.newer},t.prototype.get=function(e){var t=this.entries_[e];return O(void 0!==t,15),t===this.newest_?t.value_:(t===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(t.newer.older=t.older,t.older.newer=t.newer),t.newer=null,t.older=this.newest_,this.newest_.newer=t,this.newest_=t,t.value_)},t.prototype.remove=function(e){var t=this.entries_[e];return O(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var e,t=new Array(this.count_),r=0;for(e=this.newest_;e;e=e.older)t[r++]=e.key_;return t},t.prototype.getValues=function(){var e,t=new Array(this.count_),r=0;for(e=this.newest_;e;e=e.older)t[r++]=e.value_;return t},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},t.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},t.prototype.set=function(e,t){O(!(e in this.entries_),16);var r={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[e]=r,++this.count_},t.prototype.setSize=function(e){this.highWaterMark=e},t.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},t}(ae);new Array(6);var de=[0,0,0,1],he=[0,0,0,1],fe=new pe,ye={},me=null,ge={};!function(){var e,t,r=60,n=ye,o="32px ",i=["monospace","serif"],a=i.length,s="wmytzilWMYTZIL@#/&?$%10";function u(e){for(var r=ve(),n=100;n<=700;n+=300){for(var u=n+" ",l=!0,c=0;c<a;++c){var p=i[c];if(r.font=u+o+p,t=r.measureText(s).width,e!=p){r.font=u+o+e+","+p;var d=r.measureText(s).width;l=l&&d!=t}}if(l)return!0}return!1}function l(){var t=!0;for(var o in n)n[o]<r&&(u(o)?(n[o]=r,V(ge),me=null,fe.clear()):(++n[o],t=!1));t&&(clearInterval(e),e=void 0)}}();function ve(){return me||(me=D(1,1)),me}var be,we;we=ge;var xe=function(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale};xe.prototype.clone=function(){return new xe({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},xe.prototype.getOpacity=function(){return this.opacity_},xe.prototype.getRotateWithView=function(){return this.rotateWithView_},xe.prototype.getRotation=function(){return this.rotation_},xe.prototype.getScale=function(){return this.scale_},xe.prototype.getSnapToPixel=function(){return!1},xe.prototype.getAnchor=function(){return k()},xe.prototype.getImage=function(e){return k()},xe.prototype.getHitDetectionImage=function(e){return k()},xe.prototype.getImageState=function(){return k()},xe.prototype.getImageSize=function(){return k()},xe.prototype.getHitDetectionImageSize=function(){return k()},xe.prototype.getOrigin=function(){return k()},xe.prototype.getSize=function(){return k()},xe.prototype.setOpacity=function(e){this.opacity_=e},xe.prototype.setRotateWithView=function(e){this.rotateWithView_=e},xe.prototype.setRotation=function(e){this.rotation_=e},xe.prototype.setScale=function(e){this.scale_=e},xe.prototype.setSnapToPixel=function(e){},xe.prototype.listenImageChange=function(e,t){return k()},xe.prototype.load=function(){k()},xe.prototype.unlistenImageChange=function(e,t){k()};var _e=xe,ke=function(e){function t(t){var r=t||{};e.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,atlasManager:r.atlasManager})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.setRadius=function(e){this.radius_=e,this.render_(this.atlasManager_)},t}(function(e){function t(t){var r=void 0!==t.rotateWithView&&t.rotateWithView;e.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==t.rotation?t.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=t.atlasManager,this.render_(this.atlasManager_)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){var e=new t({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return e.setOpacity(this.getOpacity()),e.setScale(this.getScale()),e},t.prototype.getAnchor=function(){return this.anchor_},t.prototype.getAngle=function(){return this.angle_},t.prototype.getFill=function(){return this.fill_},t.prototype.getHitDetectionImage=function(e){return this.hitDetectionCanvas_},t.prototype.getImage=function(e){return this.canvas_},t.prototype.getImageSize=function(){return this.imageSize_},t.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},t.prototype.getImageState=function(){return B.LOADED},t.prototype.getOrigin=function(){return this.origin_},t.prototype.getPoints=function(){return this.points_},t.prototype.getRadius=function(){return this.radius_},t.prototype.getRadius2=function(){return this.radius2_},t.prototype.getSize=function(){return this.size_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.listenImageChange=function(e,t){},t.prototype.load=function(){},t.prototype.unlistenImageChange=function(e,t){},t.prototype.render_=function(e){var t,r,n="",o="",i=0,a=null,s=0,u=0;this.stroke_&&(null===(r=this.stroke_.getColor())&&(r=he),r=q(r),void 0===(u=this.stroke_.getWidth())&&(u=1),a=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset(),G||(a=null,s=0),void 0===(o=this.stroke_.getLineJoin())&&(o="round"),void 0===(n=this.stroke_.getLineCap())&&(n="round"),void 0===(i=this.stroke_.getMiterLimit())&&(i=10));var l=2*(this.radius_+u)+1,c={strokeStyle:r,strokeWidth:u,size:l,lineCap:n,lineDash:a,lineDashOffset:s,lineJoin:o,miterLimit:i};if(void 0===e){var p=D(l,l);this.canvas_=p.canvas,t=l=this.canvas_.width,this.draw_(c,p,0,0),this.createHitDetectionCanvas_(c)}else{l=Math.round(l);var d,h=!this.fill_;h&&(d=this.drawHitDetectionCanvas_.bind(this,c));var f=this.getChecksum(),y=e.add(f,l,l,this.draw_.bind(this,c),d);this.canvas_=y.image,this.origin_=[y.offsetX,y.offsetY],t=y.image.width,h?(this.hitDetectionCanvas_=y.hitImage,this.hitDetectionImageSize_=[y.hitImage.width,y.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[t,t])}this.anchor_=[l/2,l/2],this.size_=[l,l],this.imageSize_=[t,t]},t.prototype.draw_=function(e,t,r,n){var o,i,a;t.setTransform(1,0,0,1,0,0),t.translate(r,n),t.beginPath();var s=this.points_;if(s===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(s*=2),o=0;o<=s;o++)i=2*o*Math.PI/s-Math.PI/2+this.angle_,a=o%2==0?this.radius_:u,t.lineTo(e.size/2+a*Math.cos(i),e.size/2+a*Math.sin(i))}if(this.fill_){var l=this.fill_.getColor();null===l&&(l=de),t.fillStyle=q(l),t.fill()}this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke()),t.closePath()},t.prototype.createHitDetectionCanvas_=function(e){if(this.hitDetectionImageSize_=[e.size,e.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var t=D(e.size,e.size);this.hitDetectionCanvas_=t.canvas,this.drawHitDetectionCanvas_(e,t,0,0)}},t.prototype.drawHitDetectionCanvas_=function(e,t,r,n){t.setTransform(1,0,0,1,0,0),t.translate(r,n),t.beginPath();var o=this.points_;if(o===1/0)t.arc(e.size/2,e.size/2,this.radius_,0,2*Math.PI,!0);else{var i,a,s,u=void 0!==this.radius2_?this.radius2_:this.radius_;for(u!==this.radius_&&(o*=2),i=0;i<=o;i++)s=2*i*Math.PI/o-Math.PI/2+this.angle_,a=i%2==0?this.radius_:u,t.lineTo(e.size/2+a*Math.cos(s),e.size/2+a*Math.sin(s))}t.fillStyle=L(de),t.fill(),this.stroke_&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.stroke()),t.closePath()},t.prototype.getChecksum=function(){var e=this.stroke_?this.stroke_.getChecksum():"-",t=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||e!=this.checksums_[1]||t!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var r="r"+e+t+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[r,e,t,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},t}(_e)),Se=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.checksum_=void 0};Se.prototype.clone=function(){var e=this.getColor();return new Se({color:Array.isArray(e)?e.slice():e||void 0})},Se.prototype.getColor=function(){return this.color_},Se.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},Se.prototype.getChecksum=function(){if(void 0===this.checksum_){var e=this.color_;e?Array.isArray(e)||"string"==typeof e?this.checksum_="f"+L(e):this.checksum_=j(this.color_):this.checksum_="f-"}return this.checksum_};var je=Se,Te=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width,this.checksum_=void 0};Te.prototype.clone=function(){var e=this.getColor();return new Te({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},Te.prototype.getColor=function(){return this.color_},Te.prototype.getLineCap=function(){return this.lineCap_},Te.prototype.getLineDash=function(){return this.lineDash_},Te.prototype.getLineDashOffset=function(){return this.lineDashOffset_},Te.prototype.getLineJoin=function(){return this.lineJoin_},Te.prototype.getMiterLimit=function(){return this.miterLimit_},Te.prototype.getWidth=function(){return this.width_},Te.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},Te.prototype.setLineCap=function(e){this.lineCap_=e,this.checksum_=void 0},Te.prototype.setLineDash=function(e){this.lineDash_=e,this.checksum_=void 0},Te.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e,this.checksum_=void 0},Te.prototype.setLineJoin=function(e){this.lineJoin_=e,this.checksum_=void 0},Te.prototype.setMiterLimit=function(e){this.miterLimit_=e,this.checksum_=void 0},Te.prototype.setWidth=function(e){this.width_=e,this.checksum_=void 0},Te.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=j(this.color_):this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_};var ze=Te,Oe=function(e){var t=e||{};this.geometry_=null,this.geometryFunction_=Ae,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex};Oe.prototype.clone=function(){var e=this.getGeometry();return e&&"object"==typeof e&&(e=e.clone()),new Oe({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},Oe.prototype.getRenderer=function(){return this.renderer_},Oe.prototype.setRenderer=function(e){this.renderer_=e},Oe.prototype.getGeometry=function(){return this.geometry_},Oe.prototype.getGeometryFunction=function(){return this.geometryFunction_},Oe.prototype.getFill=function(){return this.fill_},Oe.prototype.setFill=function(e){this.fill_=e},Oe.prototype.getImage=function(){return this.image_},Oe.prototype.setImage=function(e){this.image_=e},Oe.prototype.getStroke=function(){return this.stroke_},Oe.prototype.setStroke=function(e){this.stroke_=e},Oe.prototype.getText=function(){return this.text_},Oe.prototype.setText=function(e){this.text_=e},Oe.prototype.getZIndex=function(){return this.zIndex_},Oe.prototype.setGeometry=function(e){"function"==typeof e?this.geometryFunction_=e:"string"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=Ae,this.geometry_=e},Oe.prototype.setZIndex=function(e){this.zIndex_=e};function Ae(e){return e.getGeometry()}var Ee=Oe,Ce={FRACTION:"fraction",PIXELS:"pixels"},Me=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function Re(e,t,r){return t+":"+e+":"+(r?L(r):"null")}Me.prototype.clear=function(){this.cache_={},this.cacheSize_=0},Me.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var e=0;for(var t in this.cache_){var r=this.cache_[t];0!=(3&e++)||r.hasListener()||(delete this.cache_[t],--this.cacheSize_)}}},Me.prototype.get=function(e,t,r){var n=Re(e,t,r);return n in this.cache_?this.cache_[n]:null},Me.prototype.set=function(e,t,r,n){var o=Re(e,t,r);this.cache_[o]=n,++this.cacheSize_},Me.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()};var Ie=new Me,Le=function(e){function t(t,r,n,o,i,a){e.call(this),this.hitDetectionImage_=null,this.image_=t||new Image,null!==o&&(this.image_.crossOrigin=o),this.canvas_=a?document.createElement("canvas"):null,this.color_=a,this.imageListenerKeys_=null,this.imageState_=i,this.size_=n,this.src_=r,this.tainted_}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===B.LOADED){this.tainted_=!1;var e=D(1,1);try{e.drawImage(this.image_,0,0),e.getImageData(0,0,1,1)}catch(e){this.tainted_=!0}}return!0===this.tainted_},t.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(se)},t.prototype.handleImageError_=function(){this.imageState_=B.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},t.prototype.handleImageLoad_=function(){this.imageState_=B.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},t.prototype.getImage=function(e){return this.canvas_?this.canvas_:this.image_},t.prototype.getImageState=function(){return this.imageState_},t.prototype.getHitDetectionImage=function(e){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],r=this.size_[1],n=D(t,r);n.fillRect(0,0,t,r),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},t.prototype.getSize=function(){return this.size_},t.prototype.getSrc=function(){return this.src_},t.prototype.load=function(){if(this.imageState_==B.IDLE){this.imageState_=B.LOADING,this.imageListenerKeys_=[ee(this.image_,le,this.handleImageError_,this),ee(this.image_,ce,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(e){this.handleImageError_()}}},t.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var e=this.canvas_.getContext("2d");e.drawImage(this.image_,0,0);for(var t=e.getImageData(0,0,this.image_.width,this.image_.height),r=t.data,n=this.color_[0]/255,o=this.color_[1]/255,i=this.color_[2]/255,a=0,s=r.length;a<s;a+=4)r[a]*=n,r[a+1]*=o,r[a+2]*=i;e.putImageData(t,0,0)}},t.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(re),this.imageListenerKeys_=null},t}(ae);var Pe={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Ne=function(e){function t(t){var r=t||{},n=void 0!==r.opacity?r.opacity:1,o=void 0!==r.rotation?r.rotation:0,i=void 0!==r.scale?r.scale:1,a=void 0!==r.rotateWithView&&r.rotateWithView;e.call(this,{opacity:n,rotation:o,scale:i,rotateWithView:a}),this.anchor_=void 0!==r.anchor?r.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==r.anchorOrigin?r.anchorOrigin:Pe.TOP_LEFT,this.anchorXUnits_=void 0!==r.anchorXUnits?r.anchorXUnits:Ce.FRACTION,this.anchorYUnits_=void 0!==r.anchorYUnits?r.anchorYUnits:Ce.FRACTION,this.crossOrigin_=void 0!==r.crossOrigin?r.crossOrigin:null;var s=void 0!==r.img?r.img:null,u=void 0!==r.imgSize?r.imgSize:null,l=r.src;O(!(void 0!==l&&s),4),O(!s||s&&u,5),void 0!==l&&0!==l.length||!s||(l=s.src||j(s)),O(void 0!==l&&l.length>0,6);var c,p=void 0!==r.src?B.IDLE:B.LOADED;this.color_=void 0!==r.color?(c=r.color,Array.isArray(c)?c:P(c)):null,this.iconImage_=function(e,t,r,n,o,i){var a=Ie.get(t,n,i);return a||(a=new Le(e,t,r,n,o,i),Ie.set(t,n,i,a)),a}(s,l,u,this.crossOrigin_,p,this.color_),this.offset_=void 0!==r.offset?r.offset:[0,0],this.offsetOrigin_=void 0!==r.offsetOrigin?r.offsetOrigin:Pe.TOP_LEFT,this.origin_=null,this.size_=void 0!==r.size?r.size:null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},t.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var e=this.anchor_,t=this.getSize();if(this.anchorXUnits_==Ce.FRACTION||this.anchorYUnits_==Ce.FRACTION){if(!t)return null;e=this.anchor_.slice(),this.anchorXUnits_==Ce.FRACTION&&(e[0]*=t[0]),this.anchorYUnits_==Ce.FRACTION&&(e[1]*=t[1])}if(this.anchorOrigin_!=Pe.TOP_LEFT){if(!t)return null;e===this.anchor_&&(e=this.anchor_.slice()),this.anchorOrigin_!=Pe.TOP_RIGHT&&this.anchorOrigin_!=Pe.BOTTOM_RIGHT||(e[0]=-e[0]+t[0]),this.anchorOrigin_!=Pe.BOTTOM_LEFT&&this.anchorOrigin_!=Pe.BOTTOM_RIGHT||(e[1]=-e[1]+t[1])}return this.normalizedAnchor_=e,this.normalizedAnchor_},t.prototype.setAnchor=function(e){this.anchor_=e,this.normalizedAnchor_=null},t.prototype.getColor=function(){return this.color_},t.prototype.getImage=function(e){return this.iconImage_.getImage(e)},t.prototype.getImageSize=function(){return this.iconImage_.getSize()},t.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},t.prototype.getImageState=function(){return this.iconImage_.getImageState()},t.prototype.getHitDetectionImage=function(e){return this.iconImage_.getHitDetectionImage(e)},t.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var e=this.offset_;if(this.offsetOrigin_!=Pe.TOP_LEFT){var t=this.getSize(),r=this.iconImage_.getSize();if(!t||!r)return null;e=e.slice(),this.offsetOrigin_!=Pe.TOP_RIGHT&&this.offsetOrigin_!=Pe.BOTTOM_RIGHT||(e[0]=r[0]-t[0]-e[0]),this.offsetOrigin_!=Pe.BOTTOM_LEFT&&this.offsetOrigin_!=Pe.BOTTOM_RIGHT||(e[1]=r[1]-t[1]-e[1])}return this.origin_=e,this.origin_},t.prototype.getSrc=function(){return this.iconImage_.getSrc()},t.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},t.prototype.listenImageChange=function(e,t){return Q(this.iconImage_,se,e,t)},t.prototype.load=function(){this.iconImage_.load()},t.prototype.unlistenImageChange=function(e,t){te(this.iconImage_,se,e,t)},t}(_e),Fe="point",qe=function(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new je({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:Fe,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding};qe.prototype.clone=function(){return new qe({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0})},qe.prototype.getOverflow=function(){return this.overflow_},qe.prototype.getFont=function(){return this.font_},qe.prototype.getMaxAngle=function(){return this.maxAngle_},qe.prototype.getPlacement=function(){return this.placement_},qe.prototype.getOffsetX=function(){return this.offsetX_},qe.prototype.getOffsetY=function(){return this.offsetY_},qe.prototype.getFill=function(){return this.fill_},qe.prototype.getRotateWithView=function(){return this.rotateWithView_},qe.prototype.getRotation=function(){return this.rotation_},qe.prototype.getScale=function(){return this.scale_},qe.prototype.getStroke=function(){return this.stroke_},qe.prototype.getText=function(){return this.text_},qe.prototype.getTextAlign=function(){return this.textAlign_},qe.prototype.getTextBaseline=function(){return this.textBaseline_},qe.prototype.getBackgroundFill=function(){return this.backgroundFill_},qe.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},qe.prototype.getPadding=function(){return this.padding_},qe.prototype.setOverflow=function(e){this.overflow_=e},qe.prototype.setFont=function(e){this.font_=e},qe.prototype.setMaxAngle=function(e){this.maxAngle_=e},qe.prototype.setOffsetX=function(e){this.offsetX_=e},qe.prototype.setOffsetY=function(e){this.offsetY_=e},qe.prototype.setPlacement=function(e){this.placement_=e},qe.prototype.setFill=function(e){this.fill_=e},qe.prototype.setRotation=function(e){this.rotation_=e},qe.prototype.setScale=function(e){this.scale_=e},qe.prototype.setStroke=function(e){this.stroke_=e},qe.prototype.setText=function(e){this.text_=e},qe.prototype.setTextAlign=function(e){this.textAlign_=e},qe.prototype.setTextBaseline=function(e){this.textBaseline_=e},qe.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},qe.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},qe.prototype.setPadding=function(e){this.padding_=e};var De=qe;function Ue(e,t,r){return e[0]<=t&&t<=e[2]&&e[1]<=r&&r<=e[3]}function Ge(e,t,r,n,o){return o?(o[0]=e,o[1]=t,o[2]=r,o[3]=n,o):[e,t,r,n]}function Be(e){return Ge(1/0,1/0,-1/0,-1/0,e)}function We(e,t,r,n,o){return function(e,t,r,n,o){for(;r<n;r+=o)Je(e,t[r],t[r+1]);return e}(Be(o),e,t,r,n)}function Je(e,t,r){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],r)}function Ve(e){return e[3]-e[1]}var $e="propertychange";var Ye=function(e){function t(){e.call(this),this.revision_=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.changed=function(){++this.revision_,this.dispatchEvent(se)},t.prototype.getRevision=function(){return this.revision_},t.prototype.on=function(e,t){if(Array.isArray(e)){for(var r=e.length,n=new Array(r),o=0;o<r;++o)n[o]=Q(this,e[o],t);return n}return Q(this,e,t)},t.prototype.once=function(e,t){if(Array.isArray(e)){for(var r=e.length,n=new Array(r),o=0;o<r;++o)n[o]=ee(this,e[o],t);return n}return ee(this,e,t)},t.prototype.un=function(e,t){if(Array.isArray(e))for(var r=0,n=e.length;r<n;++r)te(this,e[r],t);else te(this,e,t)},t}(ae),He=function(e){function t(t,r,n){e.call(this,t),this.key=r,this.oldValue=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ie),Ze=function(e){function t(t){e.call(this),j(this),this.values_={},void 0!==t&&this.setProperties(t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){var t;return this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t},t.prototype.getKeys=function(){return Object.keys(this.values_)},t.prototype.getProperties=function(){return J({},this.values_)},t.prototype.notify=function(e,t){var r;r=function(e){return Xe.hasOwnProperty(e)?Xe[e]:Xe[e]="change:"+e}(e),this.dispatchEvent(new He(r,e,t)),r=$e,this.dispatchEvent(new He(r,e,t))},t.prototype.set=function(e,t,r){if(r)this.values_[e]=t;else{var n=this.values_[e];this.values_[e]=t,n!==t&&this.notify(e,n)}},t.prototype.setProperties=function(e,t){for(var r in e)this.set(r,e[r],t)},t.prototype.unset=function(e,t){if(e in this.values_){var r=this.values_[e];delete this.values_[e],t||this.notify(e,r)}},t}(Ye),Xe={};var Ke=Ze;function Qe(e,t,r,n,o,i){for(var a=i||[],s=0,u=t;u<r;u+=n){var l=e[u],c=e[u+1];a[s++]=o[0]*l+o[2]*c+o[4],a[s++]=o[1]*l+o[3]*c+o[5]}return i&&a.length!=s&&(a.length=s),a}var et={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},tt={};tt[et.DEGREES]=2*Math.PI*6370997/360,tt[et.FEET]=.3048,tt[et.METERS]=1,tt[et.USFEET]=1200/3937;var rt=et,nt=function(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit};nt.prototype.canWrapX=function(){return this.canWrapX_},nt.prototype.getCode=function(){return this.code_},nt.prototype.getExtent=function(){return this.extent_},nt.prototype.getUnits=function(){return this.units_},nt.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||tt[this.units_]},nt.prototype.getWorldExtent=function(){return this.worldExtent_},nt.prototype.getAxisOrientation=function(){return this.axisOrientation_},nt.prototype.isGlobal=function(){return this.global_},nt.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},nt.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},nt.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},nt.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},nt.prototype.setWorldExtent=function(e){this.worldExtent_=e},nt.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},nt.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var ot=nt,it=6378137,at=Math.PI*it,st=[-at,-at,at,at],ut=[-180,-85,180,85],lt=function(e){function t(t){e.call(this,{code:t,units:rt.METERS,extent:st,global:!0,worldExtent:ut,getPointResolution:function(e,t){return e/C(t[1]/it)}})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ot),ct=[new lt("EPSG:3857"),new lt("EPSG:102100"),new lt("EPSG:102113"),new lt("EPSG:900913"),new lt("urn:ogc:def:crs:EPSG:6.18:3:3857"),new lt("urn:ogc:def:crs:EPSG::3857"),new lt("http://www.opengis.net/gml/srs/epsg.xml#3857")];function pt(e,t,r){var n=e.length,o=r>1?r:2,i=t;void 0===i&&(i=o>2?e.slice():new Array(n));for(var a=at,s=0;s<n;s+=o){i[s]=a*e[s]/180;var u=it*Math.log(Math.tan(Math.PI*(e[s+1]+90)/360));u>a?u=a:u<-a&&(u=-a),i[s+1]=u}return i}function dt(e,t,r){var n=e.length,o=r>1?r:2,i=t;void 0===i&&(i=o>2?e.slice():new Array(n));for(var a=0;a<n;a+=o)i[a]=180*e[a]/at,i[a+1]=360*Math.atan(Math.exp(e[a+1]/it))/Math.PI-90;return i}var ht=[-180,-90,180,90],ft=6378137*Math.PI/180,yt=function(e){function t(t,r){e.call(this,{code:t,units:rt.DEGREES,extent:ht,axisOrientation:r,global:!0,metersPerUnit:ft,worldExtent:ht})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ot),mt=[new yt("CRS:84"),new yt("EPSG:4326","neu"),new yt("urn:ogc:def:crs:EPSG::4326","neu"),new yt("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new yt("urn:ogc:def:crs:OGC:1.3:CRS84"),new yt("urn:ogc:def:crs:OGC:2:84"),new yt("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new yt("urn:x-ogc:def:crs:EPSG:4326","neu")],gt={};var vt,bt,wt,xt={};function _t(e,t,r){var n=e.getCode(),o=t.getCode();n in xt||(xt[n]={}),xt[n][o]=r}function kt(e,t,r){var n;if(void 0!==t){for(var o=0,i=e.length;o<i;++o)t[o]=e[o];n=t}else n=e.slice();return n}function St(e,t,r){if(void 0!==t&&e!==t){for(var n=0,o=e.length;n<o;++n)t[n]=e[n];e=t}return e}function jt(e){!function(e,t){gt[e]=t}(e.getCode(),e),_t(e,e,kt)}function Tt(e){return"string"==typeof e?gt[e]||null:e||null}function zt(e){!function(e){e.forEach(jt)}(e),e.forEach(function(t){e.forEach(function(e){t!==e&&_t(t,e,kt)})})}function Ot(e,t){var r=function(e,t){var r;return e in xt&&t in xt[e]&&(r=xt[e][t]),r}(e.getCode(),t.getCode());return r||(r=St),r}function At(e,t){return Ot(Tt(e),Tt(t))}zt(ct),zt(mt),vt=ct,bt=pt,wt=dt,mt.forEach(function(e){vt.forEach(function(t){_t(e,t,bt),_t(t,e,wt)})});var Et=[1,0,0,1,0,0],Ct={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"};function Mt(e){var t;return e==Ct.XY?t=2:e==Ct.XYZ||e==Ct.XYM?t=3:e==Ct.XYZM&&(t=4),t}var Rt=function(e){function t(t,r){e.call(this),this.setCoordinates(t,r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),this.layout)},t.prototype.closestPointXY=function(e,t,r,n){var o=this.flatCoordinates,i=M(e,t,o[0],o[1]);if(i<n){for(var a=this.stride,s=0;s<a;++s)r[s]=o[s];return r.length=a,i}return n},t.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},t.prototype.computeExtent=function(e){return t=this.flatCoordinates,r=e,n=t[0],o=t[1],Ge(n,o,n,o,r);var t,r,n,o},t.prototype.getType=function(){return A.POINT},t.prototype.intersectsExtent=function(e){return Ue(e,this.flatCoordinates[0],this.flatCoordinates[1])},t.prototype.setCoordinates=function(e,t){this.setLayout(t,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=function(e,t,r,n){for(var o=0,i=r.length;o<i;++o)e[t++]=r[o];return t}(this.flatCoordinates,0,e,this.stride),this.changed()},t}(function(e){function t(){e.call(this),this.layout=Ct.XY,this.stride=2,this.flatCoordinates=null}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.computeExtent=function(e){return We(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},t.prototype.getCoordinates=function(){return k()},t.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},t.prototype.getFlatCoordinates=function(){return this.flatCoordinates},t.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},t.prototype.getLayout=function(){return this.layout},t.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!=this.getRevision()&&(V(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=e.toString();if(this.simplifiedGeometryCache.hasOwnProperty(t))return this.simplifiedGeometryCache[t];var r=this.getSimplifiedGeometryInternal(e);return r.getFlatCoordinates().length<this.flatCoordinates.length?(this.simplifiedGeometryCache[t]=r,r):(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)},t.prototype.getSimplifiedGeometryInternal=function(e){return this},t.prototype.getStride=function(){return this.stride},t.prototype.setFlatCoordinates=function(e,t){this.stride=Mt(e),this.layout=e,this.flatCoordinates=t},t.prototype.setCoordinates=function(e,t){k()},t.prototype.setLayout=function(e,t,r){var n;if(e)n=Mt(e);else{for(var o=0;o<r;++o){if(0===t.length)return this.layout=Ct.XY,void(this.stride=2);t=t[0]}e=function(e){var t;2==e?t=Ct.XY:3==e?t=Ct.XYZ:4==e&&(t=Ct.XYZM);return t}(n=t.length)}this.layout=e,this.stride=n},t.prototype.applyTransform=function(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},t.prototype.rotate=function(e,t){var r=this.getFlatCoordinates();if(r){var n=this.getStride();!function(e,t,r,n,o,i,a){for(var s=a||[],u=Math.cos(o),l=Math.sin(o),c=i[0],p=i[1],d=0,h=t;h<r;h+=n){var f=e[h]-c,y=e[h+1]-p;s[d++]=c+f*u-y*l,s[d++]=p+f*l+y*u;for(var m=h+2;m<h+n;++m)s[d++]=e[m]}a&&s.length!=d&&(s.length=d)}(r,0,r.length,n,e,t,r),this.changed()}},t.prototype.scale=function(e,t,r){var n=t;void 0===n&&(n=e);var o,i=r;i||(i=[((o=this.getExtent())[0]+o[2])/2,(o[1]+o[3])/2]);var a=this.getFlatCoordinates();if(a){var s=this.getStride();!function(e,t,r,n,o,i,a,s){for(var u=s||[],l=a[0],c=a[1],p=0,d=t;d<r;d+=n){var h=e[d]-l,f=e[d+1]-c;u[p++]=l+o*h,u[p++]=c+i*f;for(var y=d+2;y<d+n;++y)u[p++]=e[y]}s&&u.length!=p&&(u.length=p)}(a,0,a.length,s,e,n,i,a),this.changed()}},t.prototype.translate=function(e,t){var r=this.getFlatCoordinates();if(r){var n=this.getStride();!function(e,t,r,n,o,i,a){for(var s=a||[],u=0,l=t;l<r;l+=n){s[u++]=e[l]+o,s[u++]=e[l+1]+i;for(var c=l+2;c<l+n;++c)s[u++]=e[c]}a&&s.length!=u&&(s.length=u)}
25
- /**
26
- * @license
27
- * Latitude/longitude spherical geodesy formulae taken from
28
- * http://www.movable-type.co.uk/scripts/latlong.html
29
- * Licensed under CC-BY-3.0.
30
- */(r,0,r.length,n,e,t,r),this.changed()}},t}(function(e){function t(){e.call(this),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return k()},t.prototype.closestPointXY=function(e,t,r,n){return k()},t.prototype.containsXY=function(e,t){return!1},t.prototype.getClosestPoint=function(e,t){var r=t||[NaN,NaN];return this.closestPointXY(e[0],e[1],r,1/0),r},t.prototype.intersectsCoordinate=function(e){return this.containsXY(e[0],e[1])},t.prototype.computeExtent=function(e){return k()},t.prototype.getExtent=function(e){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),function(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}(this.extent_,e)},t.prototype.rotate=function(e,t){k()},t.prototype.scale=function(e,t,r){k()},t.prototype.simplify=function(e){return this.getSimplifiedGeometry(e*e)},t.prototype.getSimplifiedGeometry=function(e){return k()},t.prototype.getType=function(){return k()},t.prototype.applyTransform=function(e){k()},t.prototype.intersectsExtent=function(e){return k()},t.prototype.translate=function(e,t){k()},t.prototype.transform=function(e,t){var r=Tt(e),n=r.getUnits()==rt.TILE_PIXELS?function(e,n,o){var i,a,s,u,l,c,p,d,h,f,y=r.getExtent(),m=r.getWorldExtent(),g=Ve(m)/Ve(y);return i=Et,a=m[0],s=m[3],u=g,l=-g,c=0,p=0,d=0,h=Math.sin(c),f=Math.cos(c),i[0]=u*f,i[1]=l*h,i[2]=-u*h,i[3]=l*f,i[4]=p*u*f-d*u*h+a,i[5]=p*l*h+d*l*f+s,Qe(e,0,e.length,o,Et,n),At(r,t)(e,n,o)}:At(r,t);return this.applyTransform(n),this},t}(Ke))),It=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Lt(e,t){const r={};for(const t in e)"ref"!==t&&(r[t]=e[t]);return It.forEach(e=>{e in t&&(r[e]=t[e])}),r}var Pt=function(e){e=e.slice();const t=Object.create(null);for(let r=0;r<e.length;r++)t[e[r].id]=e[r];for(let r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Lt(e[r],t[e[r].ref]));return e};var Nt=r(6),Ft=r(2),qt=r(3),Dt=r.n(qt);function Ut(e){return e*Math.PI/180}const Gt=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();const Bt=Array(256).join(" ");function Wt(e,t){if(t>=.05){let r="";const n=e.split("\n"),o=Bt.slice(0,Math.round(t/.1));for(let e=0,t=n.length;e<t;++e)e>0&&(r+="\n"),r+=n[e].split("").join(o);return r}return e}const Jt=document.createElement("CANVAS").getContext("2d");function Vt(e,t){return Jt.measureText(e).width+(e.length-1)*t}let $t={};function Yt(e,t,r,n){const o=r+","+t+","+e+","+n;let i=$t[o];if(!i){const a=e.split(" ");if(a.length>1){Jt.font=t;const e=Jt.measureText("M").width*r;let o="";const s=[];for(let t=0,r=a.length;t<r;++t){const r=a[t],i=o+(o?" ":"")+r;Vt(i,n)<=e?o=i:(o&&s.push(o),o=r)}o&&s.push(o);for(let t=0,r=s.length;t<r;++t){const o=s[t];if(Vt(o,n)<.35*e){const e=t>0?Vt(s[t-1],n):1/0,i=t<r-1?Vt(s[t+1],n):1/0;s.splice(t,1),e<i?(s[t-1]+=" "+o,t-=1):s[t]=o+" "+s[t],r-=1}}for(let t=0,r=s.length-1;t<r;++t){const o=s[t],i=s[t+1];if(Vt(o,n)>.7*e&&Vt(i,n)<.6*e){const a=o.split(" "),u=a.pop();Vt(u,n)<.2*e&&(s[t]=a.join(" "),s[t+1]=u+" "+i),r-=1}}i=s.join("\n")}else i=e;i=Wt(i,n),$t[o]=i}return i}fe&&Q(fe,ue,function(){$t={}});const Ht=Ft.function.isFunction,Zt=Ft.function.convertFunction,Xt=Ft.expression.isExpression,Kt=Ft.expression.createPropertyExpression,Qt={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},er=function(e,t){const r=Kt(e,t);if("error"===r.result)throw new Error(r.value.map(e=>`${e.key}: ${e.message}`).join(", "));return r.value},tr={},rr={zoom:0},nr={};function or(e,t,r,n,o){const i=e.id;nr[i]||(nr[i]={});const a=nr[i];if(!a[r]){let n=(e[t]||tr)[r];const o=Nt[`${t}_${e.type}`][r];void 0===n&&(n=o.default);let i=Xt(n);if(!i&&Ht(n)&&(n=Zt(n,o),i=!0),i){const e=er(n,o);a[r]=e.evaluate.bind(e)}else"color"==o.type&&(n=Ft.Color.parse(n)),a[r]=function(){return n}}return rr.zoom=n,a[r](rr,o)}const ir={};function ar(e,t,r,n){return e in ir||(ir[e]=Object(Ft.featureFilter)(t)),rr.zoom=n,ir[e](rr,r)}function sr(e,t){if(e){if(0===e.a||0===t)return;const r=e.a;return t=void 0===t?1:t,"rgba("+Math.round(255*e.r/r)+","+Math.round(255*e.g/r)+","+Math.round(255*e.b/r)+","+r*t+")"}return e}const ur=/^([^]*)\{(.*)\}([^]*)$/;function lr(e,t){let r;do{if(r=e.match(ur)){const n=t[r[2]]||"";e=r[1]+n+r[3]}}while(r);return e}var cr=function(e,t,r,n=Gt,o,i,a){if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");let s,u;if(i){const t=new Image;t.crossOrigin="anonymous",t.onload=function(){s=t,u=[t.width,t.height],e.changed(),t.onload=null},t.src=i}const l=Pt(t.layers),c={},p=[];let d;for(let e=0,n=l.length;e<n;++e){const n=l[e],o=n.id;if("string"==typeof r&&n.source==r||-1!==r.indexOf(o)){const r=n["source-layer"];if(!d){d=n.source;const e=t.sources[d];if(!e)throw new Error(`Source "${d}" is not defined`);const r=e.type;if("vector"!==r&&"geojson"!==r)throw new Error(`Source "${d}" is not of type "vector" or "geojson", but "${r}"`)}let i=c[r];i||(i=c[r]=[]),i.push({layer:n,index:e}),p.push(o)}delete nr[o],delete ir[o]}const h=new ze,f=new je,y={},m={},g=[],v=function(e,t){const r=e.getProperties(),i=c[r.layer];if(!i)return;let l=n.indexOf(t);-1==l&&(l=function(e,t){let r=0;const n=t.length;for(;r<n;++r)if(t[r]<e&&r+1<n){const n=t[r]/t[r+1];return r+Math.log(t[r]/e)/Math.log(n)}return n-1}(t,n));const p=Qt[e.getGeometry().getType()],d={properties:r,type:p};let v=-1;for(let n=0,c=i.length;n<c;++n){const c=i[n],b=c.layer,w=b.id,x=b.layout||tr,_=b.paint||tr;if("none"===x.visibility||"minzoom"in b&&l<b.minzoom||"maxzoom"in b&&l>=b.maxzoom)continue;const k=b.filter;if(!k||ar(w,k,d,l)){let n,i,w,k,S,j;const T=c.index;if(3==p&&"fill"==b.type)if(i=or(b,"paint","fill-opacity",l,d),"fill-pattern"in _){const e=or(b,"paint","fill-pattern",l,d);if(e){const t=lr(e,r);if(s&&o&&o[t]){(j=g[++v])&&j.getFill()&&!j.getStroke()&&!j.getText()||(j=g[v]=new Ee({fill:new je})),w=j.getFill(),j.setZIndex(T);const e=t+"."+i;let r=m[e];if(!r){const n=o[t],a=document.createElement("canvas");a.width=n.width,a.height=n.height;const u=a.getContext("2d");u.globalAlpha=i,u.drawImage(s,n.x,n.y,n.width,n.height,0,0,n.width,n.height),r=u.createPattern(a,"repeat"),m[e]=r}w.setColor(r)}}}else(n=sr(or(b,"paint","fill-color",l,d),i))&&("fill-outline-color"in _&&(S=sr(or(b,"paint","fill-outline-color",l,d),i)),S||(S=n),(j=g[++v])&&j.getFill()&&j.getStroke()&&!j.getText()||(j=g[v]=new Ee({fill:new je,stroke:new ze})),(w=j.getFill()).setColor(n),(k=j.getStroke()).setColor(S),k.setWidth(1),j.setZIndex(T));if(1!=p&&"line"==b.type){n=!("line-pattern"in _)&&"line-color"in _?sr(or(b,"paint","line-color",l,d),or(b,"paint","line-opacity",l,d)):void 0;const e=or(b,"paint","line-width",l,d);n&&e>0&&((j=g[++v])&&j.getStroke()&&!j.getFill()&&!j.getText()||(j=g[v]=new Ee({stroke:new ze})),(k=j.getStroke()).setLineCap(or(b,"layout","line-cap",l,d)),k.setLineJoin(or(b,"layout","line-join",l,d)),k.setMiterLimit(or(b,"layout","line-miter-limit",l,d)),k.setColor(n),k.setWidth(e),k.setLineDash(_["line-dasharray"]?or(b,"paint","line-dasharray",l,d).map(function(t){return t*e}):null),j.setZIndex(T))}let z,O,A,E,C=!1,M=null,R=0;if((1==p||2==p)&&"icon-image"in x){const i=or(b,"layout","icon-image",l,d);if(i){z=lr(i,r);let a=void 0;if(s&&o&&o[z]){const r=or(b,"layout","icon-rotation-alignment",l,d);if(2==p){const n=e.getGeometry();if(n.getFlatMidpoint){const e=n.getExtent();if(Math.sqrt(Math.max(Math.pow((e[2]-e[0])/t,2),Math.pow((e[3]-e[1])/t,2)))>150){const e=n.getFlatMidpoint();if(a=new Rt(e),"line"===or(b,"layout","symbol-placement",l,d)&&"map"===r){const t=n.getStride(),r=n.getFlatCoordinates();for(let n=0,o=r.length-t;n<o;n+=t){const o=r[n],i=r[n+1],a=r[n+t],s=r[n+t+1],u=Math.min(o,a),l=Math.min(i,s),c=Math.max(o,a),p=Math.max(i,s);if(e[0]>=u&&e[0]<=c&&e[1]>=l&&e[1]<=p){R=Math.atan2(i-s,a-o);break}}}}}}if(2!==p||a){(j=g[++v])&&j.getImage()&&!j.getFill()&&!j.getStroke()||(j=g[v]=new Ee),j.setGeometry(a);const e=or(b,"layout","icon-size",l,d),t=void 0!==_["icon-color"]?or(b,"paint","icon-color",l,d):null;let i=z+"."+e;if(null!==t&&(i+="."+t),!(O=y[i])){const a=o[z];if(null!==t){n=sr(t,1);const r=document.createElement("canvas");r.width=a.width,r.height=a.height;const o=r.getContext("2d");o.drawImage(s,a.x,a.y,a.width,a.height,0,0,a.width,a.height);const u=o.getImageData(0,0,r.width,r.height);for(let e=0,t=u.data.length;e<t;e+=4)u.data[e]=n[0],u.data[e+1]=n[1],u.data[e+2]=n[2];o.putImageData(u,0,0),O=y[i]=new Ne({img:r,imgSize:[r.width,r.height],scale:e/a.pixelRatio})}else O=y[i]=new Ne({img:s,imgSize:u,size:[a.width,a.height],offset:[a.x,a.y],rotateWithView:"map"===r,scale:e/a.pixelRatio})}O.setRotation(R+Ut(or(b,"layout","icon-rotate",l,d))),O.setOpacity(or(b,"paint","icon-opacity",l,d)),j.setImage(O),M=j.getText(),j.setText(void 0),j.setZIndex(99999-T),C=!0,A=!1}else A=!0}}}if(1==p&&"circle-radius"in _){(j=g[++v])&&j.getImage()&&!j.getFill()&&!j.getStroke()||(j=g[v]=new Ee);const e=or(b,"paint","circle-radius",l,d),t=sr(or(b,"paint","circle-stroke-color",l,d),or(b,"paint","circle-stroke-opacity",l,d)),r=sr(or(b,"paint","circle-color",l,d),or(b,"paint","circle-opacity",l,d)),n=or(b,"paint","circle-stroke-width",l,d),o=e+"."+t+"."+r+"."+n;(O=y[o])||(O=y[o]=new ke({radius:e,stroke:t&&n>0?new ze({width:n,color:t}):void 0,fill:r?new je({color:r}):void 0})),j.setImage(O),M=j.getText(),j.setText(void 0),j.setGeometry(void 0),j.setZIndex(99999-T),C=!0}if("text-field"in x){E=lr(or(b,"layout","text-field",l,d).toString(),r),i=or(b,"paint","text-opacity",l,d)}if(E&&i&&!A){C||((j=g[++v])&&j.getText()&&!j.getFill()&&!j.getStroke()||(j=g[v]=new Ee),j.setImage(void 0),j.setGeometry(void 0)),j.getText()||j.setText(M||new De({padding:[2,2,2,2]})),M=j.getText();const e=or(b,"layout","text-size",l,d),t=or(b,"layout","text-font",l,d),r=or(b,"layout","text-line-height",l,d),n=Dt()(a?a(t):t,e,r),o=x["text-transform"];"uppercase"==o?E=E.toUpperCase():"lowercase"==o&&(E=E.toLowerCase());const s=or(b,"layout","text-max-width",l,d),u=or(b,"layout","text-letter-spacing",l,d),c=2==p?Wt(E,u):Yt(E,n,s,u);M.setText(c),M.setFont(n),M.setRotation(Ut(or(b,"layout","text-rotate",l,d)));const y=or(b,"layout","text-anchor",l,d),m=C||1==p?"point":or(b,"layout","symbol-placement",l,d);M.setPlacement(m);let w=or(b,"paint","text-halo-width",l,d);const _=or(b,"layout","text-offset",l,d),k=or(b,"paint","text-translate",l,d);let S=0,z=0;if("point"==m){let e="center";-1!==y.indexOf("left")?(e="left",z=w):-1!==y.indexOf("right")&&(e="right",z=-w),M.setTextAlign(e)}else M.setMaxAngle(Ut(or(b,"layout","text-max-angle",l,d))),M.setTextAlign();let O="middle";0==y.indexOf("bottom")?(O="bottom",S=-w-.5*(r-1)*e):0==y.indexOf("top")&&(O="top",S=w+.5*(r-1)*e),M.setTextBaseline(O),M.setOffsetX(_[0]*e+z+k[0]),M.setOffsetY(_[1]*e+S+k[1]),f.setColor(sr(or(b,"paint","text-color",l,d),i)),M.setFill(f);const A=sr(or(b,"paint","text-halo-color",l,d),i);if(A){h.setColor(A),w*=2;const t=.5*e;h.setWidth(w<=t?w:t),M.setStroke(h)}else M.setStroke(void 0);const R=or(b,"layout","text-padding",l,d),I=M.getPadding();R!==I[0]&&(I[0]=I[1]=I[2]=I[3]=R),j.setZIndex(99999-T)}}}return v>-1?(g.length=v+1,g):void 0};return e.setStyle(v),e.set("mapbox-source",d),e.set("mapbox-layers",p),v},pr=r(7),dr=r.n(pr);const hr=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}(),fr=/font-family: ?([^;]*);/,yr=/("|')/g;let mr;const gr=e=>{if(!mr){mr={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const r=e[t];try{const e=r.rules||r.cssRules;if(e)for(let t=0,r=e.length;t<r;++t){const r=e[t];if(5==r.type){const e=r.cssText.match(fr);mr[e[1].replace(yr,"")]=!0}}}catch(e){}}}return e in mr},vr={},br=dr.a.getNames(),wr=e=>{const t=e.toString();if(t in vr)return e;const r=e.map(function(e){const t=Dt()(e,1).split(" ");return[t.slice(3,5).join(" ").replace(/"/g,""),t[1]+t[0]]});for(let e=0,t=r.length;e<t;++e){const t=r[e],n=t[0];if(!gr(n)&&-1!==br.indexOf(n)){const e="https://fonts.googleapis.com/css?family="+n.replace(/ /g,"+")+":"+t[1];if(!document.querySelector('link[href="'+e+'"]')){const t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)}}}return vr[t]=!0,e},xr=/^(.*)(\?.*)$/,_r=(e,t)=>(t&&e.startsWith(".")&&(e=t+e),e),kr=(e,t,r)=>{const n=(e=_r(e,t)).match(xr);return n?n[1]+r+(n.length>2?n[2]:""):e+r},Sr=(e,t)=>{let r;return e.some(e=>(e.id==t&&(r=e.source),!0)),r},jr=(e,t,r,n,i)=>new Promise(function(a,s){if("object"!=typeof t&&(t=JSON.parse(t)),8!=t.version)return s(new Error("glStyle version 8 required."));if(!(e instanceof o.a.layer.Vector||e instanceof o.a.layer.VectorTile))return s(new Error("Can only apply to VectorLayer or VectorTileLayer"));let u,l,c,p;function d(){p||t.sprite&&!l?p?(e.setStyle(p),a()):s(new Error("Something went wrong trying to apply style.")):(p=cr(e,t,r,i,l,c,wr),e.getStyle()?a():s(new Error(`Nothing to show for source [${r}]`)))}if(t.sprite){const e=.5==(u=window.devicePixelRatio>=1.5?.5:1)?"@2x":"";let r=kr(t.sprite,n,e+".json");fetch(r,{credentials:"same-origin"}).then(function(o){return o.ok||""===e?o:(r=kr(t.sprite,n,".json"),fetch(r,{credentials:"same-origin"}))}).then(function(e){if(e.ok)return e.json();s(new Error(`Problem fetching sprite from ${r}: ${e.statusText}`))}).then(function(r){if(void 0===r||0===Object.keys(r).length)return s(new Error("No sprites found."));l=r,c=kr(t.sprite,n,e+".png"),d()}).catch(function(e){s(new Error(`Sprites cannot be loaded: ${r}: ${e.message}`))})}else d()}),Tr=e=>{const t=e.bounds;if(t){const e=o.a.proj.fromLonLat([t[0],t[1]]),r=o.a.proj.fromLonLat([t[2],t[3]]);return[e[0],e[1],r[0],r[1]]}},zr=(e,t,r)=>{if(e=Object.assign({},e),r&&0==r.indexOf("mapbox://")){const n=r.replace("mapbox://","");e.tiles=["a","b","c","d"].map(function(r){return"https://"+r+".tiles.mapbox.com/v4/"+n+"/{z}/{x}/{y}."+("vector"==e.type?"vector.pbf":"png")+t})}const n=new o.a.layer.VectorTile({declutter:!0,visible:!1}),i=new o.a.source.TileJSON({url:e.tiles?void 0:r,tileJSON:e.tiles?e:void 0}),a=i.on("change",function(){const t=i.getState();if("ready"===t){const t=i.getTileJSON(),r=Array.isArray(t.tiles)?t.tiles:[t.tiles];if(e.url)for(let t=0,n=r.length;t<n;++t){const n=r[t];0!=n.indexOf("http")&&(r[t]=e.url+n)}const s=i.getTileGrid(),u=Tr(t),l=t.minzoom||t.zoom_min||0,c=t.maxzoom||t.zoom_max||22,p=new o.a.source.VectorTile({attributions:i.getAttributions(),format:new o.a.format.MVT,tileGrid:new o.a.tilegrid.TileGrid({origin:s.getOrigin(),extent:u||s.getExtent(),minZoom:l,resolutions:hr.slice(0,c+1),tileSize:512}),urls:r});o.a.Observable.unByKey(a),n.setSource(p)}else"error"===t&&(o.a.Observable.unByKey(a),n.setSource(void 0))});return e.tiles&&i.changed(),n},Or=(e,t)=>{const r=new o.a.layer.Tile,n=new o.a.source.TileJSON({transition:0,url:e.tiles?void 0:t,tileJSON:e.tiles?e:void 0,crossOrigin:"anonymous"}),i=n.on("change",function(){const t=n.getState();if("ready"===t){o.a.Observable.unByKey(i);const t=n.getTileJSON(),a=Tr(t),s=n.getTileGrid(),u=e.tileSize||t.tileSize||512,l=t.minzoom||t.zoom_min||0,c=t.maxzoom||t.zoom_max||22;n.tileGrid=new o.a.tilegrid.TileGrid({origin:s.getOrigin(),extent:a||s.getExtent(),minZoom:l,resolutions:o.a.tilegrid.createXYZ({maxZoom:c,tileSize:u}).getResolutions(),tileSize:u}),r.setSource(n)}else"error"===t&&(o.a.Observable.unByKey(i),r.setSource(void 0))});return n.setTileLoadFunction(function(e,t){if(-1!=t.indexOf("{bbox-epsg-3857}")){const r=n.getTileGrid().getTileCoordExtent(e.getTileCoord());t=t.replace("{bbox-epsg-3857}",r.toString())}e.getImage().src=t}),r},Ar=new o.a.format.GeoJSON,Er=(e,t)=>{const r=e.data;let n,i;return"string"==typeof r?i=_r(r,t):n=Ar.readFeatures(r,{featureProjection:"EPSG:3857"}),new o.a.layer.Vector({source:new o.a.source.Vector({attributions:e.attribution,features:n,format:Ar,url:i}),visible:!1})};var Cr=class extends o.a.Observable{constructor(e){super(),e=e||{},this.accessToken=e.accessToken||"",this.layerGroup=new g,e.url&&""!==e.url&&this.setUrl(e.url)}setUrl(e){this.url=e,fetch(this.url).then(e=>e.json()).then(e=>{this.processStyle(e,this.layerGroup,this.url,void 0,void 0,void 0)}).catch(function(t){new Error(`Could not load ${e}: ${t.message}`)})}processStyle(e,t,r,n,o,i){const a=[];e.sprite&&(0==e.sprite.indexOf("mapbox://")?e.sprite=r+"/sprite"+i:0!=e.sprite.indexOf("http")&&(e.sprite=(n?n+o:"")+e.sprite+i));const s=e.layers;let u,l,c,p,d,h,f=[];for(let r=0,n=s.length;r<n;++r){const n=(u=s[r]).type;"heatmap"==n||"fill-extrusion"==n||"hillshade"==n||"background"==n||((p=u.source||Sr(s,u.ref))!=c&&(f.length&&(a.push(this.finalizeLayer(d,f,e,o,t)),f=[]),(h=(l=e.sources[p]).url)&&o&&h.startsWith(".")&&(h=o+h),"vector"==l.type?d=zr(l,i,h):"raster"==l.type?(d=Or(l,h)).setVisible(!u.layout||"none"!==u.layout.visibility):"geojson"==l.type&&(d=Er(l,o)),c=p,d&&d.set("mapbox-source",c)),f.push(u.id))}a.push(this.finalizeLayer(d,f,e,o,t)),Promise.all(a)}finalizeLayer(e,t,r,n,i){let a=24,s=0;const u=r.layers;for(let e=0,r=u.length;e<r;++e){const r=u[e];-1!==t.indexOf(r.id)&&(a=Math.min("minzoom"in r?r.minzoom:0,a),s=Math.max("maxzoom"in r?r.maxzoom:24,s))}return new Promise(function(u,l){const c=function(){const i=e.getSource();if(i&&"error"!==i.getState()){if("function"==typeof i.getTileGrid){const t=i.getTileGrid();if(t){const r=t.getMinZoom();(a>0||r>0)&&e.setMaxResolution(Math.min(hr[a],t.getResolution(r))+1e-9),s<24&&e.setMinResolution(hr[s]+1e-9)}}i instanceof o.a.source.Vector||i instanceof o.a.source.VectorTile?jr(e,r,t,n).then(()=>{e.setVisible(!0),u()},function(e){l(e)}):u()}else l(new Error("Error accessing data for source "+e.get("mapbox-source")))};e.set("mapbox-layers",t),i.getLayers().push(e),e.getSource()?c():e.once("change:source",c)})}getLayer(){return this.layerGroup}};window.ol=ol||{},ol.onemap=ol.onemap||{},ol.onemap={Map:class extends o.a.Map{constructor(e){e.layers=void 0!==e.layers?e.layers:[];let t=new g({title:"底图图层",description:"底图图层, 存放layerType为0的图层"}),r=new g({title:"底图注记图层",description:"底图注记图层, 存放layerType为4的图层"}),n=new g({title:"要素图层",description:"要素图层,存放layerType为1的图层,主要针对河湖库等基础水利要素和专题要素例如机井,泵站等"}),o=new g({title:"业务图层",description:"业务图层,存放layerType为2的图层,主要针对ol.layer.Vector类型的处理业务逻辑的图层"}),i=new g({title:"其他图层",description:"其他图层,没有layerType属性的图层"}),a=new g({title:"注记图层",description:"注记图层,没有layerType为3的图层"});e.layers.push(t,r,n,o,i,a),super(e),this.baseLayerGroup=t,this.baseLabelLayerGroup=r,this.themeLayerGroup=n,this.bussinessesLayerGroup=o,this.labelLayerGroup=a,this.customLayerGroup=i}addLayer(e){switch(e.get("layerType")){case 0:this.baseLayerGroup.addLayer(e);break;case 4:this.baseLabelLayerGroup.addLayer(e);break;case 1:this.themeLayerGroup.addLayer(e);break;case 2:this.bussinessesLayerGroup.addLayer(e);break;case 3:this.labelLayerGroup.addLayer(e);break;default:this.customLayerGroup.addLayer(e)}}addLayers(e){for(const t of e)this.addLayer(t)}removeLayer(e){switch(e.get("layerType")){case 0:this.baseLayerGroup.getLayers().remove(e);break;case 4:this.baseLabelLayerGroup.getLayers().remove(e);break;case 1:this.themeLayerGroup.getLayers().remove(e);break;case 2:this.bussinessesLayerGroup.getLayers().remove(e);break;case 3:this.labelLayerGroup.getLayers().remove(e);break;default:this.customLayerGroup.getLayers().remove(e)}}removeLayers(e){for(const t of e)this.removeLayer(t)}getLayersById(e){let t=[];return this.getLayers().forEach(r=>{r instanceof g?r.get("id")===e?t.push(r):t.push(r.getLayersBy("id",e)):r instanceof o.a.layer.Base&&r.get("id")===e&&t.push(r)}),Object(y.flatMap)(t)}},control:{Zoom:i,MousePosition:l,ScaleLine:f},layer:{Group:g},format:{VectorTile:w,WMTS:_,MapboxVT:Cr}},window.ol=ol}]);
31
- //# sourceMappingURL=ol-onemap.js.map