PageSourceSearch

https://suda.io/bundle.js

js suda.io collected 2026-10-07 12:08:54 UTC 2,286,150 bytes, 77 lines download raw bytes

1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=260)}([function(e,t,n){"use strict";e.exports=n(262)},function(e,t){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},r={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},i=Object.prototype.toString,o=Array.prototype,a=o.forEach,s=o.filter,l=o.slice,u=o.map,c=o.reduce,h={};function p(e){if(null==e||"object"!=typeof e)return e;var t=e,o=i.call(e);if("[object Array]"===o){if(!S(e)){t=[];for(var a=0,s=e.length;a<s;a++)t[a]=p(e[a])}}else if(r[o]){if(!S(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(a=0,s=e.length;a<s;a++)t[a]=p(e[a])}}}else if(!n[o]&&!S(e)&&!w(e))for(var u in t={},e)e.hasOwnProperty(u)&&(t[u]=p(e[u]));return t}function d(e,t,n){if(!x(t)||!x(e))return n?p(t):e;for(var r in t)if(t.hasOwnProperty(r)){var i=e[r],o=t[r];!x(o)||!x(i)||_(o)||_(i)||w(o)||w(i)||b(o)||b(i)||S(o)||S(i)?!n&&r in e||(e[r]=p(t[r])):d(i,o,n)}return e}function f(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(n?null!=t[r]:null==e[r])&&(e[r]=t[r]);return e}var m,g=function(){return h.createCanvas()};function y(e,t,n){if(e&&t)if(e.forEach&&e.forEach===a)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function v(e,t){var n=l.call(arguments,2);return function(){return e.apply(t,n.concat(l.call(arguments)))}}function _(e){return"[object Array]"===i.call(e)}function x(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function b(e){return!!n[i.call(e)]}function w(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}h.createCanvas=function(){return document.createElement("canvas")};function S(e){return e.__ec_primitive__}function k(e){var t=_(e);this.data={};var n=this;function r(e,r){t?n.set(e,r):n.set(r,e)}e instanceof k?e.each(r):e&&y(e,r)}k.prototype={constructor:k,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=v(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=function(e,t){"createCanvas"===e&&(m=null),h[e]=t},t.clone=p,t.merge=d,t.mergeAll=function(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=d(n,e[r],t);return n},t.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.defaults=f,t.createCanvas=g,t.getContext=function(){return m||(m=g().getContext("2d")),m},t.indexOf=function(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1},t.inherits=function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t},t.mixin=function(e,t,n){f(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,n)},t.isArrayLike=function(e){if(e)return"string"!=typeof e&&"number"==typeof e.length},t.each=y,t.map=function(e,t,n){if(e&&t){if(e.map&&e.map===u)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}},t.reduce=function(e,t,n,r){if(e&&t){if(e.reduce&&e.reduce===c)return e.reduce(t,n,r);for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}},t.filter=function(e,t,n){if(e&&t){if(e.filter&&e.filter===s)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}},t.find=function(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}
vendor: 25,141 bytes, line 1
1,t.bind=v,t.curry=function(e){var t=l.call(arguments,1);return function(){return e.apply(this,t.concat(l.call(arguments)))}},t.isArray=_,t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"[object String]"===i.call(e)},t.isObject=x,t.isBuiltInObject=b,t.isTypedArray=function(e){return!!r[i.call(e)]},t.isDom=w,t.eqNaN=function(e){return e!=e},t.retrieve=function(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]},t.retrieve2=function(e,t){return null!=e?e:t},t.retrieve3=function(e,t,n){return null!=e?e:null!=t?t:n},t.slice=function(){return Function.call.apply(l,arguments)},t.normalizeCssArray=function(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},t.assert=function(e,t){if(!e)throw new Error(t)},t.trim=function(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},t.setAsPrimitive=function(e){e.__ec_primitive__=!0},t.isPrimitive=S,t.createHashMap=function(e){return new k(e)},t.concatArray=function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n},t.noop=function(){}},function(e,t,n){e.exports=n(266)()},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return tt})),n.d(t,"c",(function(){return _e})),n.d(t,"a",(function(){return We})),n.d(t,"e",(function(){return nt}));var r=n(153),i=n.n(r),o=n(252),a=n.n(o),s=n(0),l=n.n(s),u=n(253),c=n(78),h=n(154),p=n(258),d=n(259),f=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},x=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},b=function(e){return"object"===(void 0===e?"undefined":m(e))&&e.constructor===Object},w=Object.freeze([]),S=Object.freeze({});function k(e){return"function"==typeof e}function T(e){return e.displayName||e.name||"Component"}function M(e){return e&&"string"==typeof e.styledComponentId}var E=void 0!==e&&(Object({REACT_APP_PARSE_APP_ID:void 0,REACT_APP_PARSE_SERVER_URL:void 0}).REACT_APP_SC_ATTR||Object({REACT_APP_PARSE_APP_ID:void 0,REACT_APP_PARSE_SERVER_URL:void 0}).SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(Object({REACT_APP_PARSE_APP_ID:void 0,REACT_APP_PARSE_SERVER_URL:void 0}).REACT_APP_SC_DISABLE_SPEEDY||Object({REACT_APP_PARSE_APP_ID:void 0,REACT_APP_PARSE_SERVER_URL:void 0}).SC_DISABLE_SPEEDY)||!1,A={};var P=function(e){function t(n){g(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=x(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(i.length>0?" Additional arguments: "+i.join(", "):"")));return x(a)}return _(t,e),t}(Error),D=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,L=function(e){var t=""+(e||""),n=[];return t.replace(D,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var i=e.componentId,o=e.matchIndex,a=n[r+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},O=/^\s*\/\/.*$/gm,R=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),z=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),N=[],B=function(e){if(-2===e){var t=N;return N=[],t}},F=a()((function(e){N.push(e)})),V=void 0,j=void 0,U=void 0,G=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(j)&&n.slice(t-j.length,t)!==j?"."+V:e};z.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(j)>0&&(n[0]=n[0].replace(U,G))},F,B]),R.use([F,B]);var q=function(e){return R("",e)};function H(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(O,""),o=t&&n?n+" "+t+" { "+i+" }":i;return V=r,j=t,U=new RegExp("\\"+j+"\\b","g"),z(n||!t?"":t,o)}var W=function(){return n.nc},Z=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},Y=function(e,t){e[t]=Object.create(null)},X=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},K=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},$=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new P(10)},J=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(e){return!1}return!0},Q=function(e){return"\n/* sc-component-id: "+e+" */\n"},ee=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},te=function(e,t){return function(n){var r=W();return"<style "+[r&&'nonce="'+r+'"',E+'="'+K(t)+'"','data-styled-version="4.4.1"',n].filter(Boolean).join(" ")+">"+e()+"</style>"}},ne=function(e,t){return function(){var n,r=((n={})[E]=K(t),n["data-styled-version"]="4.4.1",n),i=W();return i&&(r.nonce=i),l.a.createElement("style",v({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ie=function(e,t){return e.createTextNode(Q(t))},oe=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=Q(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=v({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:re(i),hasNameForId:X(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),Z(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",Y(r,e))},sealed:!1,styleTag:null,toElement:ne(a,r),toHTML:te(a,r)}},ae=function(e,t,n,r,i){if(C&&!n){var o=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var i=r.createElement("style");i.setAttribute(E,""),i.setAttribute("data-styled-version","4.4.1");var o=W();if(o&&i.setAttribute("nonce",o),i.appendChild(r.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new P(6);t.parentNode.insertBefore(i,n?t:t.nextSibling)}return i}(e,t,r);return I?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=ie(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new P(5)},css:s,getIds:re(r),hasNameForId:X(n),insertMarker:a,insertRules:function(e,r,s){for(var l=a(e),u=[],c=r.length,h=0;h<c;h+=1){var p=r[h],d=i;if(d&&-1!==p.indexOf("@import"))u.push(p);else{d=!1;var f=h===c-1?"":" ";l.appendData(""+p+f)}}Z(n,e,s),i&&u.length>0&&(o=!0,t().insertRules(e+"-import",u))},removeRules:function(a){var s=r[a];if(void 0!==s){var l=ie(e.ownerDocument,a);e.replaceChild(l,s),r[a]=l,Y(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),Y(n,e),r[e])},l=function(){var t=$(e).cssRules,n="";for(var o in r){n+=Q(o);for(var a=r[o],s=ee(i,a),l=s-i[a];l<s;l+=1){var u=t[l];void 0!==u&&(n+=u.cssText)}}return n};return{clone:function(){throw new P(5)},css:l,getIds:re(r),hasNameForId:X(n),insertMarker:s,insertRules:function(r,l,u){for(var c=s(r),h=$(e),p=ee(i,c),d=0,f=[],m=l.length,g=0;g<m;g+=1){var y=l[g],v=o;v&&-1!==y.indexOf("@import")?f.push(y):J(h,y,p+d)&&(v=!1,d+=1)}o&&f.length>0&&(a=!0,t().insertRules(r+"-import",f)),i[c]+=d,Z(n,r,u)},removeRules:function(s){var l=r[s];if(void 0!==l&&!1!==e.isConnected){var u=i[l];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}($(e),ee(i,l)-1,u),i[l]=0,Y(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ne(l,n),toHTML:te(l,n)}}(o,i)}return oe()},se=/\s+/,le=void 0;le=C?I?40:1e3:-1;var ue=0,ce=void 0,he=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ae(t.target,n?n.styleTag:null,t.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!C||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+E+'][data-styled-version="4.4.1"]'),i=r.length;if(!i)return this;for(var o=0;o<i;o+=1){var a=r[o];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,l=(a.getAttribute(E)||"").trim().split(se),u=l.length,c=0;c<u;c+=1)s=l[c],this.rehydratedNames[s]=!0;t.push.apply(t,L(a.textContent)),e.push(a)}var h=t.length;if(!h)return this;var p=this.makeTag(null);!function(e,t,n){for(var r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.componentId,s=o.cssFromDOM,l=q(s);e.insertRules(a,l)}for(var u=0,c=t.length;u<c;u+=1){var h=t[u];h.parentNode&&h.parentNode.removeChild(h)}}(p,e,t),this.capacity=Math.max(1,le-h),this.tags.push(p);for(var d=0;d<h;d+=1)this.tagMap[t[d].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ce=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<n.length;i+=1)t.tagMap[n[i]]=r;return r})),t.rehydratedNames=v({},this.rehydratedNames),t.deferred=v({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ae(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=le,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,i=0;i<r.length;i+=1)r[i].inject(e,t,n);var o=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);o.insertRules(e,a,n),this.deferred[e]=void 0}else o.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return Object(s.cloneElement)(t.toElement(),{key:r})}))},y(e,null,[{key:"master",get:function(){return ce||(ce=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),pe=function(){function e(t,n){var r=this;g(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new P(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),de=/([A-Z])/g,fe=/^ms-/;function me(e){return e.replace(de,"-$1").toLowerCase().replace(fe,"-ms-")}var ge=function(e){return null==e||!1===e||""===e},ye=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!ge(t[n])){if(b(t[n]))return r.push.apply(r,e(t[n],n)),r;if(k(t[n]))return r.push(me(n)+":",t[n],";"),r;r.push(me(n)+": "+function(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in u.a?String(t).trim():t+"px"}(n,t[n])+";")}return r})),n?[n+" {"].concat(r,["}"]):r};function ve(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o<a;o+=1)null!==(r=ve(e[o],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return ge(e)?null:M(e)?"."+e.styledComponentId:k(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ve(e(t),t,n):e instanceof pe?n?(e.inject(n),e.getName()):e:b(e)?ye(e):e.toString();var s}function _e(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return k(e)||b(e)?ve(f(w,[e].concat(n))):ve(f(e,n))}function xe(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var be=function(e){return String.fromCharCode(e+(e>25?39:97))};function we(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=be(n%52)+t;return be(n%52)+t}function Se(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Se(r,t))return!1;if(k(r)&&!M(r))return!1}return!t.some((function(e){return k(e)||function(e){for(var t in e)if(k(e[t]))return!0;return!1}(e)}))}var ke,Te=function(e){return we(xe(e))},Me=function(){function e(t,n,r){g(this,e),this.rules=t,this.isStatic=Se(t,n),this.componentId=r,he.master.hasId(r)||he.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,i=this.lastClassName;if(C&&n&&"string"==typeof i&&t.hasNameForId(r,i))return i;var o=ve(this.rules,e,t),a=Te(this.componentId+o.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,H(o,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return Te(e)},e}(),Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=!!n&&e.theme===n.theme,i=e.theme&&!r?e.theme:t||n.theme;return i},Ce=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Ae(e){return e.replace(Ce,"-").replace(Ie,"")}function Pe(e){return"string"==typeof e&&!0}var De={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oe=((ke={})[c.ForwardRef]={$$typeof:!0,render:!0},ke),Re=Object.defineProperty,ze=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Be=void 0===Ne?function(){return[]}:Ne,Fe=Object.getOwnPropertyDescriptor,Ve=Object.getPrototypeOf,je=Object.prototype,Ue=Array.prototype;function Ge(e,t,n){if("string"!=typeof t){var r=Ve(t);r&&r!==je&&Ge(e,r,n);for(var i=Ue.concat(ze(t),Be(t)),o=Oe[e.$$typeof]||De,a=Oe[t.$$typeof]||De,s=i.length,l=void 0,u=void 0;s--;)if(u=i[s],!(Le[u]||n&&n[u]||a&&a[u]||o&&o[u])&&(l=Fe(t,u)))try{Re(e,u,l)}catch(e){}return e}return e}var qe=Object(s.createContext)(),He=qe.Consumer,We=function(e){function t(n){g(this,t);var r=x(this,e.call(this,n));return r.getContext=Object(h.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return _(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(qe.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(qe.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(k(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":m(e)))throw new P(8);return v({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),Ze=(function(){function e(){g(this,e),this.masterSheet=he.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new P(2);return l.a.createElement(Xe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new P(3)}}(),Object(s.createContext)()),Ye=Ze.Consumer,Xe=function(e){function t(n){g(this,t);var r=x(this,e.call(this,n));return r.getContext=Object(h.a)(r.getContext),r}return _(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new he(t);throw new P(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return l.a.createElement(Ze.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),Ke={};var $e=function(e){function t(){g(this,t);var n=x(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return _(t,e),t.prototype.render=function(){return l.a.createElement(Ye,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(He,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(S,this.props):this.generateAndInjectStyles(Ee(this.props,e,r)||S,this.props);var u=this.props.as||this.attrs.as||a,c=Pe(u),h={},d=v({},this.props,this.attrs),f=void 0;for(f in d)"forwardedComponent"!==f&&"as"!==f&&("forwardedRef"===f?h.ref=d[f]:"forwardedAs"===f?h.as=d[f]:c&&!Object(p.a)(f)||(h[f]=d[f]));return this.props.style&&this.attrs.style&&(h.style=v({},this.attrs.style,this.props.style)),h.className=Array.prototype.concat(i,o,l!==o?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(u,h)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=v({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in k(n)&&(n=n(i),o=!0),n)a=n[s],o||!k(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||M(a)||(a=a(i)),r.attrs[s]=a,i[s]=a})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(S,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function Je(e,t,n){var r=M(e),i=!Pe(e),o=t.displayName,a=void 0===o?function(e){return Pe(e)?"styled."+e:"Styled("+T(e)+")"}(e):o,s=t.componentId,u=void 0===s?function(e,t,n){var r="string"!=typeof t?"sc":Ae(t),i=(Ke[r]||0)+1;Ke[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(Me,t.displayName,t.parentComponentId):s,c=t.ParentComponent,h=void 0===c?$e:c,p=t.attrs,f=void 0===p?w:p,m=t.displayName&&t.componentId?Ae(t.displayName)+"-"+t.componentId:t.componentId||u,g=r&&e.attrs?Array.prototype.concat(e.attrs,f).filter(Boolean):f,y=new Me(r?e.componentStyle.rules.concat(n):n,g,m),_=void 0,x=function(e,t){return l.a.createElement(h,v({},e,{forwardedComponent:_,forwardedRef:t}))};return x.displayName=a,(_=l.a.forwardRef(x)).displayName=a,_.attrs=g,_.componentStyle=y,_.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):w,_.styledComponentId=m,_.target=r?e.target:e,_.withComponent=function(e){var r=t.componentId,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),o=r&&r+"-"+(Pe(e)?e:Ae(T(e)));return Je(e,v({},i,{attrs:g,componentId:o,ParentComponent:h}),n)},Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(d.a)(e.defaultProps,t):t}}),_.toString=function(){return"."+_.styledComponentId},i&&Ge(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),_}var Qe=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(!Object(c.isValidElementType)(n))throw new P(1,String(n));var i=function(){return t(n,r,_e.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,v({},r,i))},i.attrs=function(i){return e(t,n,v({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Qe[e]=Qe(e)}));var et=function(){function e(t,n){g(this,e),this.rules=t,this.componentId=n,this.isStatic=Se(t,w),he.master.hasId(n)||he.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=H(ve(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function tt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=_e.apply(void 0,[e].concat(n)),o="sc-global-"+xe(JSON.stringify(i)),a=new et(i,o),s=function(e){function t(n){g(this,t);var r=x(this,e.call(this,n)),i=r.constructor,o=i.globalStyle,a=i.styledComponentId;return C&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),r.state={globalStyle:o,styledComponentId:a},r}return _(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return l.a.createElement(Ye,null,(function(t){e.styleSheet=t||he.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(A,e.styleSheet),null):l.a.createElement(He,null,(function(t){var r=e.constructor.defaultProps,i=v({},e.props);return void 0!==t&&(i.theme=Ee(e.props,t,r)),n.renderStyles(i,e.styleSheet),null}))}))},t}(l.a.Component);return s.globalStyle=a,s.styledComponentId=o,s}C&&(window.scCGSHMRCache={});var nt=function(e){var t=l.a.forwardRef((function(t,n){return l.a.createElement(He,null,(function(r){var i=e.defaultProps,o=Ee(t,r,i);return l.a.createElement(e,v({},t,{theme:o,ref:n}))}
1))}));return Ge(t,e),t.displayName="WithTheme("+T(e)+")",t};t.d=Qe}).call(this,n(293))},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){n(15).__DEV__;var r=n(98),i=n(1),o=n(39),a=n(22),s=n(119),l=n(57),u=n(173),c=n(186),h=n(36),p=n(339),d=n(340),f=n(342),m=n(24),g=n(25),y=n(104),v=n(40),_=n(12),x=n(14),b=n(49).throttle,w=n(343),S=n(344),k=n(345),T=n(346),M=n(347),E=n(348);n(187);var C=n(128),I=i.assert,A=i.each,P=i.isFunction,D=i.isObject,L=m.parseClassType,O={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},R="__flagInMainProcess",z=/^[a-zA-Z0-9_]+$/;function N(e,t){return function(n,r,i){t||!this._disposed?(n=n&&n.toLowerCase(),l.prototype[e].call(this,n,r,i)):this.id}}function B(){l.call(this)}function F(e,t,n){n=n||{},"string"==typeof t&&(t=ue[t]),this.id,this.group,this._dom=e;var o=this._zr=r.init(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=b(i.bind(o.flush,o),17),(t=i.clone(t))&&d(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var a,u,p=this._api=(u=(a=this)._coordSysMgr,i.extend(new c(a),{getCoordinateSystems:i.bind(u.getCoordinateSystems,u),getComponentByElement:function(e){for(;e;){var t=e.__ecComponentInfo;if(null!=t)return a._model.getComponent(t.mainType,t.index);e=e.parent}}}));function f(e,t){return e.__prio-t.__prio}s(le,f),s(oe,f),this._scheduler=new T(this,p,oe,le),l.call(this,this._ecEventProcessor=new ne),this._messageCenter=new B,this._initEvents(),this.resize=i.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),function(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t.__optionUpdated||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}(o,this),i.setAsPrimitive(this)}B.prototype.on=N("on",!0),B.prototype.off=N("off",!0),B.prototype.one=N("one",!0),i.mixin(B,l);var V=F.prototype;function j(e,t,n){if(this._disposed)this.id;else{var r,i=this._model,o=this._coordSysMgr.getCoordinateSystems();t=x.parseFinder(i,t);for(var a=0;a<o.length;a++){var s=o[a];if(s[e]&&null!=(r=s[e](i,t,n)))return r}}}V._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this.__optionUpdated){var t=this.__optionUpdated.silent;this[R]=!0,G(this),U.update.call(this),this[R]=!1,this.__optionUpdated=!1,Z.call(this,t),Y.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),H(this,r),e.performVisualTasks(r),J(this,this._model,i,"remain"),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},V.getDom=function(){return this._dom},V.getZr=function(){return this._zr},V.setOption=function(e,t,n){if(this._disposed)this.id;else{var r;if(D(t)&&(n=t.lazyUpdate,r=t.silent,t=t.notMerge),this[R]=!0,!this._model||t){var i=new p(this._api),o=this._theme,a=this._model=new u;a.scheduler=this._scheduler,a.init(null,null,o,i)}this._model.setOption(e,ae),n?(this.__optionUpdated={silent:r},this[R]=!1):(G(this),U.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this[R]=!1,Z.call(this,r),Y.call(this,r))}},V.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},V.getModel=function(){return this._model},V.getOption=function(){return this._model&&this._model.getOption()},V.getWidth=function(){return this._zr.getWidth()},V.getHeight=function(){return this._zr.getHeight()},V.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},V.getRenderedCanvas=function(e){if(a.canvasSupported)return(e=e||{}).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},V.getSvgDataURL=function(){if(a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return i.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},V.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;A(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));
1var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(r,(function(e){e.group.ignore=!1})),o}this.id},V.getConnectedDataURL=function(e){if(this._disposed)this.id;else if(a.canvasSupported){var t="svg"===e.type,n=this.group,o=Math.min,s=Math.max;if(pe[n]){var l=1/0,u=1/0,c=-1/0,h=-1/0,p=[],d=e&&e.pixelRatio||1;i.each(he,(function(r,a){if(r.group===n){var d=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(i.clone(e)),f=r.getDom().getBoundingClientRect();l=o(f.left,l),u=o(f.top,u),c=s(f.right,c),h=s(f.bottom,h),p.push({dom:d,left:f.left,top:f.top})}}));var f=(c*=d)-(l*=d),m=(h*=d)-(u*=d),g=i.createCanvas(),y=r.init(g,{renderer:t?"svg":"canvas"});if(y.resize({width:f,height:m}),t){var v="";return A(p,(function(e){var t=e.left-l,n=e.top-u;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new _.Rect({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),A(p,(function(e){var t=new _.Image({style:{x:e.left*d-l,y:e.top*d-u,image:e.dom}});y.add(t)})),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},V.convertToPixel=i.curry(j,"convertToPixel"),V.convertFromPixel=i.curry(j,"convertFromPixel"),V.containPixel=function(e,t){if(!this._disposed){var n,r=this._model;return e=x.parseFinder(r,e),i.each(e,(function(e,r){r.indexOf("Models")>=0&&i.each(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n|=!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n|=o.containPoint(t,e))}}),this)}),this),!!n}this.id},V.getVisual=function(e,t){var n=this._model,r=(e=x.parseFinder(n,e,{defaultMainType:"series"})).seriesModel.getData(),i=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return null!=i?r.getItemVisual(i,t):r.getVisual(t)},V.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},V.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var U={prepareAndUpdate:function(e){G(this),U.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,s=this._scheduler;if(t){s.restoreData(t,e),s.performSeriesTasks(t),i.create(t,n),s.performDataProcessorTasks(t,e),H(this,t),i.update(t,n),K(t),s.performVisualTasks(t,e),$(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(a.canvasSupported)r.setBackgroundColor(l);else{var u=o.parse(l);l=o.stringify(u,"rgb"),0===u[3]&&(l="transparent")}Q(t,n)}},updateTransform:function(e){var t=this._model,n=this,r=this._api;if(t){var o=[];t.eachComponent((function(i,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,r,e);l&&l.update&&o.push(s)}else o.push(s)}));var a=i.createHashMap();t.eachSeries((function(i){var o=n._chartsMap[i.__viewId];if(o.updateTransform){var s=o.updateTransform(i,t,r,e);s&&s.update&&a.set(i.uid,1)}else a.set(i.uid,1)})),K(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),J(n,t,r,e,a),Q(t,this._api)}},updateView:function(e){var t=this._model;t&&(v.markUpdateMethod(e,"updateView"),K(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),$(this,this._model,this._api,e),Q(t,this._api))},updateVisual:function(e){U.update.call(this,e)},updateLayout:function(e){U.update.call(this,e)}};function G(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),X(e,"component",t,n),X(e,"chart",t,n),n.plan()}function q(e,t,n,r,o){var a=e._model;if(r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};o&&(l.subType=o);var u=n.excludeSeriesId;null!=u&&(u=i.createHashMap(x.normalizeToArray(u))),a&&a.eachComponent(l,(function(t){u&&null!=u.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else A(e._componentsViews.concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}}function H(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))}function W(e,t){var n=e.type,r=e.escapeConnect,o=re[n],a=o.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&L(s[0]),this[R]=!0;var u=[e],c=!1;e.batch&&(c=!0,u=i.map(e.batch,(function(t){return(t=i.defaults(i.extend({},t),e)).batch=null,t})));var h,p=[],d="highlight"===n||"downplay"===n;A(u,(function(e){(h=(h=o.action(e,this._model,this._api))||i.extend({},e)).type=a.event||h.type,p.push(h),d?q(this,l,e,"series"):s&&q(this,l,e,s.main,s.sub)}),this),"none"===l||d||s||(this.__optionUpdated?(G(this),U.update.call(this,e),this.__optionUpdated=!1):U[l].call(this,e)),h=c?{type:a.event||n,escapeConnect:r,batch:p}:p[0],this[R]=!1,!t&&this._messageCenter.trigger(h.type,h)}
1function Z(e){for(var t=this._pendingActions;t.length;){var n=t.shift();W.call(this,n,e)}}function Y(e){!e&&this.trigger("updated")}function X(e,t,n,r){for(var i="component"===t,o=i?e._componentsViews:e._chartsViews,a=i?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,u=0;u<o.length;u++)o[u].__alive=!1;function c(e){var t="_ec_"+e.id+"_"+e.type,u=a[t];if(!u){var c=L(e.type);(u=new(i?y.getClass(c.main,c.sub):v.getClass(c.sub))).init(n,l),a[t]=u,o.push(u),s.add(u.group)}e.__viewId=u.__id=t,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!i&&r.prepareView(u,e,n,l)}i?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(u=0;u<o.length;){var h=o[u];h.__alive?u++:(!i&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function K(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function $(e,t,n,r){!function(e,t,n,r,i){A(i||e._componentsViews,(function(e){var i=e.__model;e.render(i,t,n,r),te(i,e)}))}(e,t,n,r),A(e._chartsViews,(function(e){e.__alive=!1})),J(e,t,n,r),A(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))}function J(e,t,n,r,i){var o,s=e._scheduler;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var a=n.renderTask;s.updatePayload(a,r),i&&i.get(t.uid)&&a.dirty(),o|=a.perform(s.getPerformArgs(a)),n.group.silent=!!t.get("silent"),te(t,n),function(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}(t,n)})),s.unfinished|=o,function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){r++})),r>t.get("hoverLayerThreshold")&&!a.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}(e,t),S(e._zr.dom,t)}function Q(e,t){A(se,(function(n){n(e,t)}))}V.resize=function(e){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[R]=!0,n&&G(this),U.update.call(this),this[R]=!1,Z.call(this,r),Y.call(this,r)}}},V.showLoading=function(e,t){if(this._disposed)this.id;else if(D(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ce[e]){var n=ce[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},V.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},V.makeActionFromEvent=function(e){var t=i.extend({},e);return t.type=ie[e.type],t},V.dispatchAction=function(e,t){this._disposed?this.id:(D(t)||(t={silent:!!t}),re[e.type]&&this._model&&(this[R]?this._pendingActions.push(e):(W.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&a.browser.weChat&&this._throttledZrFlush(),Z.call(this,t.silent),Y.call(this,t.silent))))},V.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0}},V.on=N("on",!1),V.off=N("off",!1),V.one=N("one",!1);var ee=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function te(e,t){var n=e.get("z"),r=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=r&&(e.zlevel=r))}))}function ne(){this.eventInfo}V._initEvents=function(){A(ee,(function(e){var t=function(t){var n,r=this.getModel(),o=t.target;if("globalout"===e)n={};else if(o&&null!=o.dataIndex){var a=o.dataModel||r.getSeriesByIndex(o.seriesIndex);n=a&&a.getDataParams(o.dataIndex,o.dataType,o)||{}}else o&&o.eventData&&(n=i.extend({},o.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),A(ie,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},V.isDisposed=function(){return this._disposed},V.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},V.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,x.setAttribute(this.getDom(),me,"");var e=this._api,t=this._model;A(this._componentsViews,(function(n){n.dispose(t,e)})),A(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete he[this.id]}},i.mixin(F,l),ne.prototype={constructor:ne,normalizeQuery:function(e){var t={},n={},r={};if(i.isString(e)){var o=L(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};i.each(e,(function(e,i){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(i)&&(n[i]=e,o=!0),o||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},filter:function(e,t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,o));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var re={},ie={},oe=[],ae=[],se=[],le=[],ue={},ce={},he={},pe={},de=new Date-0,fe=new Date-0,me="_echarts_instance_";function ge(e){pe[e]=!1}var ye=ge;function ve(e){return he[x.getAttribute(e,me)]}function _e(e,t){ue[e]=t}function xe(e){ae.push(e)}function be(e,t){ke(oe,e,t,1e3)}function we(e,t,n){"function"==typeof t&&(n=t,t="");var r=D(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,I(z.test(r)&&z.test(t)),re[r]||(re[r]={action:n,actionInfo:e}),ie[t]=r}function Se(e,t){ke(le,e,t,3e3,"visual")}function ke(e,t,n,r,i){(P(t)||D(t))&&(n=t,t=r);var o=T.wrapStageHandler(n,i);return o.__prio=t,o.__raw=n,e.push(o),o}function Te(e,t){ce[e]=t}Se(2e3,w),xe(d),be(900,f),Te("default",k),we({type:"highlight",event:"highlight",update:"highlight"},i.noop),we({type:"downplay",event:"downplay",update:"downplay"},i.noop),_e("light",M),_e("dark",E);t.version="4.9.0",t.dependencies={zrender:"4.3.2"},t.PRIORITY=O,t.init=function(e,t,n){var r=ve(e);
1if(r)return r;var i=new F(e,t,n);return i.id="ec_"+de++,he[i.id]=i,x.setAttribute(e,me,i.id),function(e){var t="__connectUpdateStatus";function n(e,n){for(var r=0;r<e.length;r++){e[r][t]=n}}A(ie,(function(r,i){e._messageCenter.on(i,(function(r){if(pe[e.group]&&0!==e[t]){if(r&&r.escapeConnect)return;var i=e.makeActionFromEvent(r),o=[];A(he,(function(t){t!==e&&t.group===e.group&&o.push(t)})),n(o,0),A(o,(function(e){1!==e[t]&&e.dispatchAction(i)})),n(o,2)}}))}))}(i),i},t.connect=function(e){if(i.isArray(e)){var t=e;e=null,A(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+fe++,A(t,(function(t){t.group=e}))}return pe[e]=!0,e},t.disConnect=ge,t.disconnect=ye,t.dispose=function(e){"string"==typeof e?e=he[e]:e instanceof F||(e=ve(e)),e instanceof F&&!e.isDisposed()&&e.dispose()},t.getInstanceByDom=ve,t.getInstanceById=function(e){return he[e]},t.registerTheme=_e,t.registerPreprocessor=xe,t.registerProcessor=be,t.registerPostUpdate=function(e){se.push(e)},t.registerAction=we,t.registerCoordinateSystem=function(e,t){h.register(e,t)},t.getCoordinateSystemDimensions=function(e){var t=h.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.registerLayout=function(e,t){ke(le,e,t,1e3,"layout")},t.registerVisual=Se,t.registerLoading=Te,t.extendComponentModel=function(e){return m.extend(e)},t.extendComponentView=function(e){return y.extend(e)},t.extendSeriesModel=function(e){return g.extend(e)},t.extendChartView=function(e){return v.extend(e)},t.setCanvasCreator=function(e){i.$override("createCanvas",e)},t.registerMap=function(e,t,n){C.registerMap(e,t,n)},t.getMap=function(e){var t=C.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}},t.dataTool={};var Me=n(189);!function(){for(var e in Me)Me.hasOwnProperty(e)&&(t[e]=Me[e])}()},function(e,t,n){var r=n(271);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(269),i=n(270);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(1),i=n(174),o=n(39),a=n(29),s=n(18),l=n(20),u=n(99),c=n(68);t.Image=c;var h=n(58);t.Group=h;var p=n(59);t.Text=p;var d=n(179);t.Circle=d;var f=n(328);t.Sector=f;var m=n(329);t.Ring=m;var g=n(181);t.Polygon=g;var y=n(183);t.Polyline=y;var v=n(122);t.Rect=v;var _=n(184);t.Line=_;var x=n(332);t.BezierCurve=x;var b=n(333);t.Arc=b;var w=n(334);t.CompoundPath=w;var S=n(124);t.LinearGradient=S;var k=n(335);t.RadialGradient=k;var T=n(19);t.BoundingRect=T;var M=n(125);t.IncrementalDisplayable=M;var E=n(123),C=Math.max,I=Math.min,A={},P=1,D={},L={};function O(e,t){L[e]=t}function R(e,t,n,r){var o=i.createFromString(e,t);return n&&("center"===r&&(n=z(n,o.getBoundingRect())),B(o,n)),o}function z(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var N=i.mergePath;function B(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}var F=E.subPixelOptimize;function V(e){return null!=e&&"none"!==e}var j=r.createHashMap(),U=0;function G(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,r=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=r?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var i=e,o=e.style;r&&(o=(i=n.addHover(e)).style),oe(o),r||function(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var r=e.style;for(var i in t)null!=t[i]&&(n[i]=r[i]);n.fill=r.fill,n.stroke=r.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}(i),o.extendFrom(t),q(o,t,"fill"),q(o,t,"stroke"),ie(o),r||(e.dirty(!1),e.z2+=1)}}}function q(e,t,n){!V(t[n])&&V(e[n])&&(e[n]=function(e){if("string"!=typeof e)return e;var t=j.get(e);return t||(t=o.lift(e,-.1),U<1e4&&(j.set(e,t),U++)),t}(e[n]))}function H(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,r=e.__cachedNormalStl;r&&(oe(n),e.setStyle(r),ie(n));var i=e.__cachedNormalZ2;null!=i&&e.z2-i==1&&(e.z2=i)}}function W(e,t,n){var r,i="normal",o="normal";e.__highlighted&&(i="emphasis",r=!0),t(e,n),e.__highlighted&&(o="emphasis",r=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),r&&e.__highDownOnUpdate&&e.__highDownOnUpdate(i,o)}function Z(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,H(e),G(e))}function Y(e){!J(this,e)&&!this.__highByOuter&&W(this,G)}function X(e){!J(this,e)&&!this.__highByOuter&&W(this,H)}function K(e){this.__highByOuter|=1<<(e||0),W(this,G)}function $(e){!(this.__highByOuter&=~(1<<(e||0)))&&W(this,H)}function J(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Q(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var r=n?"off":"on";e[r]("mouseover",Y)[r]("mouseout",X),e[r]("emphasis",K)[r]("normal",$),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function ee(e,t,n,i,o){return te(e,t,i,o),n&&r.extend(e,n),e}function te(e,t,n,i){if((n=n||A).isRectText){var o;n.getTextPosition?o=n.getTextPosition(t,i):"outside"===(o=t.getShallow("position")||(i?null:"inside"))&&(o="top"),e.textPosition=o,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=r.retrieve2(t.getShallow("distance"),i?null:5)}
1var s,l=t.ecModel,u=l&&l.option.textStyle,c=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||A).rich;if(n)for(var r in t=t||{},n)n.hasOwnProperty(r)&&(t[r]=1);e=e.parentModel}return t}(t);if(c)for(var h in s={},c)if(c.hasOwnProperty(h)){var p=t.getModel(["rich",h]);ne(s[h]={},p,u,n,i)}return e.rich=s,ne(e,t,u,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function ne(e,t,n,i,o,a){n=!o&&n||A,e.textFill=re(t.getShallow("color"),i)||n.color,e.textStroke=re(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=r.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(e.insideRollbackOpt=i,ie(e)),null==e.textFill&&(e.textFill=i.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&i.disableBox||(e.textBackgroundColor=re(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=re(t.getShallow("borderColor"),i),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function re(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function ie(e){var t,n=e.textPosition,r=e.insideRollbackOpt;if(r&&null==e.textFill){var i=r.autoColor,o=r.isRectText,a=r.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=i;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=i,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=i)}e.insideRollback=t}function oe(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function ae(e,t,n,r,i,o){if("function"==typeof i&&(o=i,i=null),r&&r.isAnimationEnabled()){var a=e?"Update":"",s=r.getShallow("animationDuration"+a),l=r.getShallow("animationEasing"+a),u=r.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"==typeof s&&(s=s(i)),s>0?t.animateTo(n,s,u||0,l,o,!!o):(t.stopAnimation(),t.attr(n),o&&o())}else t.stopAnimation(),t.attr(n),o&&o()}function se(e,t,n,r,i){ae(!0,e,t,n,r,i)}function le(e,t,n){return t&&!r.isArrayLike(t)&&(t=u.getLocalTransform(t)),n&&(t=a.invert([],t)),s.applyTransform([],e,t)}function ue(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,h=a-i,p=s-o,d=ce(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=e-i,m=t-o,g=ce(f,m,u,c)/d;if(g<0||g>1)return!1;var y=ce(f,m,h,p)/d;return!(y<0||y>1)}function ce(e,t,n,r){return e*r-n*t}O("circle",d),O("sector",f),O("ring",m),O("polygon",g),O("polyline",y),O("rect",v),O("line",_),O("bezierCurve",x),O("arc",b),t.Z2_EMPHASIS_LIFT=1,t.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},t.extendShape=function(e){return l.extend(e)},t.extendPath=function(e,t){return i.extendFromString(e,t)},t.registerShape=O,t.getShapeClass=function(e){if(L.hasOwnProperty(e))return L[e]},t.makePath=R,t.makeImage=function(e,t,n){var r=new c({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(z(t,i))}}});return r},t.mergePath=N,t.resizePath=B,t.subPixelOptimizeLine=function(e){return E.subPixelOptimizeLine(e.shape,e.shape,e.style),e},t.subPixelOptimizeRect=function(e){return E.subPixelOptimizeRect(e.shape,e.shape,e.style),e},t.subPixelOptimize=F,t.setElementHoverStyle=Z,t.setHoverStyle=function(e,t){Q(e,!0),W(e,Z,t)},t.setAsHighDownDispatcher=Q,t.isHighDownDispatcher=function(e){return!(!e||!e.__highDownDispatcher)},t.getHighlightDigit=function(e){var t=D[e];return null==t&&P<=32&&(t=D[e]=P++),t},t.setLabelStyle=function(e,t,n,i,o,a,s){var l,u=(o=o||A).labelFetcher,c=o.labelDataIndex,h=o.labelDimIndex,p=o.labelProp,d=n.get
1Shallow("show"),f=i.getShallow("show");(d||f)&&(u&&(l=u.getFormattedLabel(c,"normal",null,h,p)),null==l&&(l=r.isFunction(o.defaultText)?o.defaultText(c,o):o.defaultText));var m=d?l:null,g=f?r.retrieve2(u?u.getFormattedLabel(c,"emphasis",null,h,p):null,l):null;null==m&&null==g||(ee(e,n,a,o),ee(t,i,s,o,!0)),e.text=m,t.text=g},t.modifyLabelStyle=function(e,t,n){var i=e.style;t&&(oe(i),e.setStyle(t),ie(i)),i=e.__hoverStl,n&&i&&(oe(i),r.extend(i,n),ie(i))},t.setTextStyle=ee,t.setText=function(e,t,n){var r,i={isRectText:!0};!1===n?r=!0:i.autoColor=n,te(e,t,i,r)},t.getFont=function(e,t){var n=t&&t.getModel("textStyle");return r.trim([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},t.updateProps=se,t.initProps=function(e,t,n,r,i){ae(!1,e,t,n,r,i)},t.getTransform=function(e,t){for(var n=a.identity([]);e&&e!==t;)a.mul(n,e.getLocalTransform(),n),e=e.parent;return n},t.applyTransform=le,t.transformDirection=function(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=le(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},t.groupTransition=function(e,t,n,i){if(e&&t){var o,a=(o={},e.traverse((function(e){!e.isGroup&&e.anid&&(o[e.anid]=e)})),o);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var r=l(e);e.attr(l(t)),se(e,r,n,e.dataIndex)}}}))}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=r.extend({},e.shape)),t}},t.clipPointsByRect=function(e,t){return r.map(e,(function(e){var n=e[0];n=C(n,t.x),n=I(n,t.x+t.width);var r=e[1];return r=C(r,t.y),[n,r=I(r,t.y+t.height)]}))},t.clipRectByRect=function(e,t){var n=C(e.x,t.x),r=I(e.x+e.width,t.x+t.width),i=C(e.y,t.y),o=I(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},t.createIcon=function(e,t,n){var i=(t=r.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),r.defaults(i,n),new c(t)):R(e.replace("path://",""),t,n,"center")},t.linePolygonIntersect=function(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(ue(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},t.lineLineIntersect=ue},function(e,t,n){var r=n(1);var i=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}t.linearMap=function(e,t,n,r){var i=t[1]-t[0],o=n[1]-n[0];if(0===i)return 0===o?n[0]:(n[0]+n[1])/2;if(r)if(i>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*o+n[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n},t.round=function(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e},t.asc=function(e){return e.sort((function(e,t){return e-t})),e},t.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n},t.getPrecisionSafe=function(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i},t.getPixelPrecision=function(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20},t.getPercentWithPrecision=function(e,t,n){if(!e[t])return 0;var i=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;for(var o=Math.pow(10,n),a=r.map(e,(function(e){return(isNaN(e)?0:e)/i*o*100})),s=100*o,l=r.map(a,(function(e){return Math.floor(e)})),u=r.reduce(l,(function(e,t){return e+t}),0),c=r.map(a,(function(e,t){return e-l[t]}));u<s;){for(var h=Number.NEGATIVE_INFINITY,p=null,d=0,f=c.length;d<f;++d)c[d]>h&&(h=c[d],p=d);++l[p],c[p]=0,++u}return l[t]/o},t.MAX_SAFE_INTEGER=9007199254740991,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return e>-1e-4&&e<1e-4},t.parseDate=function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=i.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))},t.quantity=function(e){return Math.pow(10,o(e))},t.quantityExponent=o,t.nice=function(e,t){var n=o(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,
1n>=-20?+e.toFixed(n<0?-n:0):e},t.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i},t.reformIntervals=function(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]==(r?-1:1)||!r&&e(t,n,1))}(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?e.splice(r,1):r++}return e},t.isNumeric=function(e){return e-parseFloat(e)>=0}},function(e,t,n){var r=n(1),i=n(22),o=r.each,a=r.isObject,s=r.isArray;function l(e){return e instanceof Array?e:null==e?[]:[e]}function u(e){return a(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}var c=0;function h(e,t){return e&&e.hasOwnProperty(t)}t.normalizeToArray=l,t.defaultEmphasis=function(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}},t.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],t.getDataItemValue=function(e){return!a(e)||s(e)||e instanceof Date?e:e.value},t.isDataItemOption=function(e){return a(e)&&!(e instanceof Array)},t.mappingToExists=function(e,t){t=(t||[]).slice();var n=r.map(e||[],(function(e,t){return{exist:e}}));return o(t,(function(e,r){if(a(e)){for(var i=0;i<n.length;i++)if(!n[i].option&&null!=e.id&&n[i].exist.id===e.id+"")return n[i].option=e,void(t[r]=null);for(i=0;i<n.length;i++){var o=n[i].exist;if(!(n[i].option||null!=o.id&&null!=e.id||null==e.name||u(e)||u(o)||o.name!==e.name+""))return n[i].option=e,void(t[r]=null)}}})),o(t,(function(e,t){if(a(e)){for(var r=0;r<n.length;r++){var i=n[r].exist;if(!n[r].option&&!u(i)&&null==e.id){n[r].option=e;break}}r>=n.length&&n.push({option:e})}})),n},t.makeIdAndName=function(e){var t=r.createHashMap();o(e,(function(e,n){var r=e.exist;r&&t.set(r.id,e)})),o(e,(function(e,n){var i=e.option;r.assert(!i||null==i.id||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})})),o(e,(function(e,n){var r=e.exist,i=e.option,o=e.keyInfo;if(a(i)){if(o.name=null!=i.name?i.name+"":r?r.name:"series\0"+n,r)o.id=r.id;else if(null!=i.id)o.id=i.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(t.get(o.id))}t.set(o.id,e)}}))},t.isNameSpecified=function(e){var t=e.name;return!(!t||!t.indexOf("series\0"))},t.isIdInner=u,t.compressBatches=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++)for(var o=e[r].seriesId,a=l(e[r].dataIndex),s=n&&n[o],u=0,c=a.length;u<c;u++){var h=a[u];s&&s[h]?s[h]=null:(t[o]||(t[o]={}))[h]=1}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}},t.queryDataIndex=function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?r.isArray(t.dataIndex)?r.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?r.isArray(t.name)?r.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0},t.makeInner=function(){var e="__\0ec_inner_"+c+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}},t.parseFinder=function(e,t,n){if(r.isString(t)){var i={};i[t+"Index"]=0,t=i}var a=n&&n.defaultMainType;!a||h(t,a+"Index")||h(t,a+"Id")||h(t,a+"Name")||(t[a+"Index"]=0);var s={};return o(t,(function(i,o){i=t[o];if("dataIndex"!==o&&"dataIndexInside"!==o){var a=o.match(/^(\w+)(Index|Id|Name)$/)||[],l=a[1],u=(a[2]||"").toLowerCase();if(!(!l||!u||null==i||"index"===u&&"none"===i||n&&n.includeMainTypes&&r.indexOf(n.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===i||(c[u]=i);var h=e.queryComponents(c);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[o]=i})),s},t.setAttribute=function(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n},t.getAttribute=function(e,t){return e.getAttribute?e.getAttribute(t):e[t]},t.getTooltipRenderMode=function(e){return"auto"===e?i.domSupported?"html":"richText":e||"html"},t.groupData=function(e,t){var n=r.createHashMap(),i=[];return r.each(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}},function(e,t,n){(function(e){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==e&&(n=e.__DEV__),void 0===n&&(n=!0);var r=n;t.__DEV__=r}).call(this,n(159))},function(e,t,n){var r=n(1),i=n(19),o=n(13).parsePercent,a=n(17),s=r.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,h,p=l.position,d=l.getBoundingRect
1(),f=t.childAt(u+1),m=f&&f.getBoundingRect();if("horizontal"===e){var g=d.width+(m?-m.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(m?-m.y+d.y:0);(h=a+y)>i||l.newline?(o+=s+n,a=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(p[0]=o,p[1]=a,"horizontal"===e?o=c+n:a=h+n)}))}var h=c,p=r.curry(c,"vertical"),d=r.curry(c,"horizontal");function f(e,t,n){n=a.normalizeCssArray(n||0);var r=t.width,s=t.height,l=o(e.left,r),u=o(e.top,s),c=o(e.right,r),h=o(e.bottom,s),p=o(e.width,r),d=o(e.height,s),f=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(p)&&(p=r-c-m-l),isNaN(d)&&(d=s-h-f-u),null!=g&&(isNaN(p)&&isNaN(d)&&(g>r/s?p=.8*r:d=.8*s),isNaN(p)&&(p=g*d),isNaN(d)&&(d=p/g)),isNaN(l)&&(l=r-c-p-m),isNaN(u)&&(u=s-h-d-f),e.left||e.right){case"center":l=r/2-p/2-n[3];break;case"right":l=r-p-m}switch(e.top||e.bottom){case"middle":case"center":u=s/2-d/2-n[0];break;case"bottom":u=s-d-f}l=l||0,u=u||0,isNaN(p)&&(p=r-m-l-(c||0)),isNaN(d)&&(d=s-f-u-(h||0));var y=new i(l+n[3],u+n[0],p,d);return y.margin=n,y}function m(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}t.LOCATION_PARAMS=l,t.HV_NAMES=u,t.box=h,t.vbox=p,t.hbox=d,t.getAvailableSize=function(e,t,n){var r=t.width,i=t.height,s=o(e.x,r),l=o(e.y,i),u=o(e.x2,r),c=o(e.y2,i);return(isNaN(s)||isNaN(parseFloat(e.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.x2)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.y2)))&&(c=i),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},t.getLayoutRect=f,t.positionElement=function(e,t,n,o,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===e.type?new i(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();(c=c.clone()).applyTransform(h)}t=f(r.defaults({width:c.width,height:c.height},t),n,o);var p=e.position,d=s?t.x-c.x:0,m=l?t.y-c.y:0;e.attr("position","raw"===u?[d,m]:[p[0]+d,p[1]+m])}},t.sizeCalculable=function(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]},t.mergeLayoutParam=function(e,t,n){!r.isObject(n)&&(n={});var i=n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=l(u[0],0),a=l(u[1],1);function l(n,r){var o={},a=0,l={},u=0;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(o[e]=l[e]=t[e]),h(o,e)&&a++,h(l,e)&&u++})),i[r])return h(t,n[1])?l[n[2]]=null:h(t,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var d=n[p];if(!c(o,d)&&c(e,d)){o[d]=e[d];break}}return o}return l}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function p(e,t,n){s(e,(function(e){t[e]=n[e]}))}p(u[0],e,o),p(u[1],e,a)},t.getLayoutParams=function(e){return m({},e)},t.copyLayoutParams=m},function(e,t,n){var r=n(1),i=n(32),o=n(13);var a=r.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u(e){return null==e?"":(e+"").replace(s,(function(e,t){return l[t]}))}var c=["a","b","c","d","e","f","g"],h=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t){return"0000".substr(0,t-(e+="").length)+e}var d=i.truncateText;t.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")},t.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},t.normalizeCssArray=a,t.encodeHTML=u,t.formatTpl=function(e,t,n){r.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],a=0;a<o.length;a++){var s=c[a];e=e.replace(h(s),h(s,0))}for(var l=0;l<i;l++)for(var p=0;p<o.length;p++){var d=t[l][o[p]];e=e.replace(h(c[p],l),n?u(d):d)}return e},t.formatTplSimple=function(e,t,n){return r.each(t,(function(t,r){e=e.replace("{"+r+"}",n?u(t):t)})),e},t.getTooltipMarker=function(e,t){var n=(e=r.isString(e)?{color:e,extraCssText:t}:e||{}).color,i=e.type,o=(t=e.extraCssText,e.renderMode||"html"),a=e.markerId||"X";return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+u(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+u(n)+";"+(t||"")+'"></span>':{renderMode:o,content:"{marker"+a+"|}  ",style:{color:n}}:""},t.formatTime=function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=o.parseDate(t),i=n?"UTC":"",a=r["get"+i+"FullYear"](),s=r["get"+i+"Month"]()+1,l=r["get"+i+"Date"](),u=r["get"+i+"Hours"](),c=r["get"+i+"Minutes"](),h=r["get"+i+"Seconds"](),d=r["get"+i+"Milliseconds"]();return e=e.replace("MM",p(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",p(l,2)).replace("d",l).replace("hh",p(u,2)).replace("h",u).replace("mm",p(c,2)).replace("m",c).replace("ss",p(h,2)).replace("s",h).replace("SSS",p(d,3))},t.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.truncateText=d,t.getTextBoundingRect=function(e){return i.getBoundingRect
1(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)},t.getTextRect=function(e,t,n,r,o,a,s,l){return i.getBoundingRect(e,t,n,r,o,l,a,s)},t.windowOpen=function(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}},function(e,t){var n="undefined"==typeof Float32Array?Array:Float32Array;function r(e){return Math.sqrt(o(e))}var i=r;function o(e){return e[0]*e[0]+e[1]*e[1]}var a=o;function s(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var l=s;function u(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var c=u;t.create=function(e,t){var r=new n(2);return null==e&&(e=0),null==t&&(t=0),r[0]=e,r[1]=t,r},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t},t.set=function(e,t,n){return e[0]=t,e[1]=n,e},t.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},t.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},t.sub=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},t.len=r,t.length=i,t.lenSquare=o,t.lengthSquare=a,t.mul=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},t.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},t.normalize=function(e,t){var n=r(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e},t.distance=s,t.dist=l,t.distanceSquare=u,t.distSquare=c,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e},t.applyTransform=function(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e},t.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},t.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},function(e,t,n){var r,i,o,a,s=n(18),l=n(29),u=s.applyTransform,c=Math.min,h=Math.max;function p(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}p.prototype={constructor:p,union:function(e){var t=c(e.x,this.x),n=c(e.y,this.y);this.width=h(e.x+e.width,this.x+this.width)-t,this.height=h(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:(r=[],i=[],o=[],a=[],function(e){if(e){r[0]=o[0]=this.x,r[1]=a[1]=this.y,i[0]=a[0]=this.x+this.width,i[1]=o[1]=this.y+this.height,u(r,r,e),u(i,i,e),u(o,o,e),u(a,a,e),this.x=c(r[0],i[0],o[0],a[0]),this.y=c(r[1],i[1],o[1],a[1]);var t=h(r[0],i[0],o[0],a[0]),n=h(r[1],i[1],o[1],a[1]);this.width=t-this.x,this.height=n-this.y}}),calculateTransform:function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=l.create();return l.translate(i,i,[-t.x,-t.y]),l.scale(i,i,[n,r]),l.translate(i,i,[e.x,e.y]),i},intersect:function(e){if(!e)return!1;e instanceof p||(e=p.create(e));var t=this,n=t.x,r=t.x+t.width,i=t.y,o=t.y+t.height,a=e.x,s=e.x+e.width,l=e.y,u=e.y+e.height;return!(r<a||s<n||o<l||u<i)},contain:function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},clone:function(){return new p(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},p.create=function(e){return new p(e.x,e.y,e.width,e.height)};var d=p;e.exports=d},function(e,t,n){var r=n(83),i=n(1),o=n(70),a=n(324),s=n(169).prototype.getCanvasPattern,l=Math.abs,u=new o(!0);function c(e){r.call(this,e),this.path=null}c.prototype={constructor:c,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,r=this.style,i=this.path||u,o=r.hasStroke(),a=r.hasFill(),l=r.fill,c=r.stroke,h=a&&!!l.colorStops,p=o&&!!c.colorStops,d=a&&!!l.image,f=o&&!!c.image;(r.bind(e,this,t),this.setTransform(e),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=r.getGradient(e,l,n)),p&&(n=n||this.getBoundingRect(),this._strokeGradient=r.getGradient(e,c,n)));h?e.fillStyle=this._fillGradient:d&&(e.fillStyle=s.call(l,e)),p?e.strokeStyle=this._strokeGradient:f&&(e.strokeStyle=s.call(c,e));var m=r.lineDash,g=r.lineDashOffset,y=!!e.setLineDash,v=this.getGlobalScale();if(i.setScale(v[0],v[1],this.segmentIgnoreThreshold),this.__dirtyPath||m&&!y&&o?(i.beginPath(e),m&&!y&&(i.setLineDash(m),i.setLineDashOffset(g)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a)if(null!=r.fillOpacity){var _=e.globalAlpha;e.globalAlpha=r.fillOpacity*r.opacity,i.fill(e),e.globalAlpha=_}else i.fill(e);
1if(m&&y&&(e.setLineDash(m),e.lineDashOffset=g),o)if(null!=r.strokeOpacity){_=e.globalAlpha;e.globalAlpha=r.strokeOpacity*r.opacity,i.stroke(e),e.globalAlpha=_}else i.stroke(e);m&&y&&e.setLineDash([]),null!=r.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var r=this.path;r||(r=this.path=new o),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),e=r.getBoundingRect()}if(this._rect=e,t.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){i.copy(e);var a=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(i.width+=a/s,i.height+=a/s,i.x-=a/s/2,i.y-=a/s/2)}return i}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path.data;if(i.hasStroke()){var s=i.lineWidth,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(i.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/l,e,t)))return!0}if(i.hasFill())return a.contain(o,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(i.isObject(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&l(e[0]-1)>1e-10&&l(e[3]-1)>1e-10?Math.sqrt(l(e[0]*e[3]-e[2]*e[1])):1}},c.extend=function(e){var t=function(t){c.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var i in n)!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(r[i]=n[i])}e.init&&e.init.call(this,t)};for(var n in i.inherits(t,c),e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},i.inherits(c,r);var h=c;e.exports=h},function(e,t,n){"use strict";
1e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t){var n="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(e){var t={},n=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(t.firefox=!0,t.version=n[1]);r&&(t.ie=!0,t.version=r[1]);i&&(t.edge=!0,t.version=i[1]);o&&(t.weChat=!0);return{browser:t,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!t.ie&&!t.edge,pointerEventsSupported:"onpointerdown"in window&&(t.edge||t.ie&&t.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);e.exports=n},function(e,t,n){var r=n(1),i=n(22),o=n(14).makeInner,a=n(42),s=a.enableClassExtend,l=a.enableClassCheck,u=n(321),c=n(322),h=n(323),p=n(336),d=r.mixin,f=o();function m(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function g(e,t,n){for(var r=0;r<t.length&&(!t[r]||null!=(e=e&&"object"==typeof e?e[t[r]]:null));r++);return null==e&&n&&(e=n.get(t)),e}function y(e,t){var n=f(e).getParent;return n?n.call(e,t):e.parentModel}m.prototype={constructor:m,init:null,mergeOption:function(e){r.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:g(this.option,this.parsePath(e),!t&&y(this,e))},getShallow:function(e,t){var n=this.option,r=null==n?n:n[e],i=!t&&y(this,e);return null==r&&i&&(r=i.getShallow(e)),r},getModel:function(e,t){var n;return new m(null==e?this.option:g(this.option,e=this.parsePath(e)),t=t||(n=y(this,e))&&n.getModel(e),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(r.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"==typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){f(this).getParent=e},isAnimationEnabled:function(){if(!i.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s(m),l(m),d(m,u),d(m,c),d(m,h),d(m,p);var v=m;e.exports=v},function(e,t,n){var r=n(1),i=n(23),o=n(85),a=n(42),s=a.enableClassManagement,l=a.parseClassType,u=n(14).makeInner,c=n(16),h=n(337),p=u(),d=i.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,r){i.call(this,e,t,n,r),this.uid=o.getUID("ec_cpt_model")},init:function(e,t,n,r){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?c.getLayoutParams(e):{},o=t.getTheme();r.merge(e,o.get(this.mainType)),r.merge(e,this.getDefaultOption()),n&&c.mergeLayoutParam(e,i,n)},mergeOption:function(e,t){r.merge(this.option,e,!0);var n=this.layoutMode;
1n&&c.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=p(this);if(!e.defaultOption){for(var t=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var o={},a=t.length-1;a>=0;a--)o=r.merge(o,t[a],!0);e.defaultOption=o}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});s(d,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(d),o.enableTopologicalTravel(d,(function(e){var t=[];r.each(d.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=r.map(t,(function(e){return l(e).main})),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t})),r.mixin(d,h);var f=d;e.exports=f},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(22),o=n(17),a=o.formatTime,s=o.encodeHTML,l=o.addCommas,u=o.getTooltipMarker,c=n(14),h=n(24),p=n(185),d=n(126),f=n(16),m=f.getLayoutParams,g=f.mergeLayoutParam,y=n(127).createTask,v=n(43),_=v.prepareSource,x=v.getSource,b=n(60).retrieveRawValue,w=c.makeInner(),S=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,r){this.seriesIndex=this.componentIndex,this.dataTask=y({count:T,reset:M}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),_(this);var i=this.getInitialData(e,n);C(i,this),this.dataTask.context.data=i,w(this).dataBeforeProcessed=i,k(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?m(e):{},o=this.subType;h.hasClass(o)&&(o+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),c.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&g(e,i,n)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;
1n&&g(this.option,e,n),_(this);var i=this.getInitialData(e,t);C(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,w(this).dataBeforeProcessed=i,k(this)},fillDataTextStyle:function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&c.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){this.getRawData().appendData(e.data)},getData:function(e){var t=A(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return w(this).data},setData:function(e){var t=A(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}w(this).data=e},getSource:function(){return x(this)},getRawData:function(){return w(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,i){var o=this,h="html"===(i=i||"html")?"<br/>":"\n",p="richText"===i,d={},f=0;function m(e){return{renderMode:i,content:s(l(e)),style:d}}var g=this.getData(),y=g.mapDimension("defaultedTooltip",!0),v=y.length,_=this.getRawValue(e),x=r.isArray(_),w=g.getItemVisual(e,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=(v>1||x&&!v?function(n){var c=r.reduce(n,(function(e,t,n){var r=g.getDimensionInfo(n);return e|(r&&!1!==r.tooltip&&null!=r.displayName)}),0),h=[];function m(e,n){var r=g.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var m=r.type,y="sub"+o.seriesIndex+"at"+f,v=u({color:w,type:"subItem",renderMode:i,markerId:y}),_="string"==typeof v?v:v.content,x=(c?_+s(r.displayName||"-")+": ":"")+s("ordinal"===m?e+"":"time"===m?t?"":a("yyyy/MM/dd hh:mm:ss",e):l(e));x&&h.push(x),p&&(d[y]=w,++f)}}y.length?r.each(y,(function(t){m(b(g,e,t),t)})):r.each(n,m);var v=c?p?"\n":"<br/>":"",_=v+h.join(v||", ");return{renderMode:i,content:_,style:d}}(_):m(v?b(g,e,y[0]):x?_[0]:_)).content,k=o.seriesIndex+"at"+f,T=u({color:w,type:"item",renderMode:i,markerId:k});d[k]=w,++f;var M=g.getName(e),E=this.name;c.isNameSpecified(this)||(E=""),E=E?s(E)+(t?": ":h):"";var C="string"==typeof T?T:T.content;return{html:t?C+E+S:E+C+(M?s(M)+": "+S:S),markers:d}},isAnimationEnabled:function(){if(i.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var r=this.ecModel,i=p.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(e){var t=e.name;c.isNameSpecified(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function T(e){return e.model.getRawData().count()}function M(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),E}function E(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function C(e,t){r.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,r.curry(I,t))}))}function I(e){var t=A(e);t&&t.setOutputEnd(this.count())}function A(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}r.mixin(S,d),r.mixin(S,p);var P=S;e.exports=P},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){e.exports=function(){"use strict";var e,t,n;function r(r,i){if(e)if(t){var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",a={};e(a),(n=i(a)).workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}else t=i;else e=i}return r(0,(function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r;function r(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);
vendor: 13,841 bytes, line 1
1if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var i=o;function o(e,t){this.x=e,this.y=t}function a(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!a(e[n],t[n]))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 r in e)if(!a(e[r],t[r]))return!1;return!0}return e===t}function s(e,t,r,i){var o=new n(e,t,r,i);return function(e){return o.solve(e)}}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,i=n*this.x+t*this.y;return this.x=r,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),i=t.x+n*(this.x-t.x)-r*(this.y-t.y),o=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var l=s(.25,.1,.25,1);function u(e,t,n){return Math.min(n,Math.max(t,e))}function c(e,t,n){var r=n-t,i=((e-t)%r+r)%r+t;return i===t?n:i}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}var p=1;function d(){return p++}function f(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function m(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function g(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function y(e,t){return-1!==e.indexOf(t,e.length-t.length)}function v(e,t,n){var r={};for(var i in e)r[i]=t.call(n||this,e[i],i,e);return r}function _(e,t,n){var r={};for(var i in e)t.call(n||this,e[i],i,e)&&(r[i]=e[i]);return r}function x(e){return Array.isArray(e)?e.map(x):"object"==typeof e&&e?v(e,x):e}var b={};function w(e){b[e]||("undefined"!=typeof console&&console.warn(e),b[e]=!0)}function S(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function k(e){for(var t=0,n=0,r=e.length,i=r-1,o=void 0,a=void 0;n<r;i=n++)o=e[n],t+=((a=e[i]).x-o.x)*(o.y+a.y);return t}function T(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function M(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(e,n,r,i){var o=r||i;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}var E=null;function C(e){if(null==E){var t=e.navigator?e.navigator.userAgent:null;E=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return E}function I(e){try{var t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}var A,P,D,L,O=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),R=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,z=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,N={now:O,frame:function(e){var t=R(e);return{cancel:function(){return z(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=self.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return A||(A=self.document.createElement("a")),A.href=e,A.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==P&&(P=self.matchMedia("(prefers-reduced-motion: reduce)")),P.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},F={supported:!1,testSupport:function(e){!V&&L&&(j?U(e):D=e)}},V=!1,j=!1;function U(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,L),e.isContextLost())return;F.supported=!0}catch(e){}e.deleteTexture(t),V=!0}self.document&&((L=self.document.createElement("img")).onload=function(){D&&U(D),D=null,j=!0},L.onerror=function(){V=!0,D=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var G="01",q=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function H(e){return 0===e.indexOf("mapbox:")}q.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",G,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},q.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},q.prototype.normalizeStyleURL=function(e,t){if(!H(e))return e;var n=X(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},q.prototype.normalizeGlyphsURL=function(e,t){if(!H(e))return e;var n=X(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},q.prototype.normalizeSourceURL=function(e,t){if(!H(e))return e;var n=X(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},q.prototype.normalizeSpriteURL=function(e,t,n,r){var i=X(e);return H(e)?(i.path="/styles/v1"+i.path+"/sprite"+t+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+t+n,K(i))},q.prototype.normalizeTileURL=function(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),!t||!H(t))return e;var r=X(e),i=N.devicePixelRatio>=2||512===n?"@2x":"",o=F.supported?".webp":"$1";return r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+i+o),r.path=r.path.replace(/^.+\/v4\//,"/"),r.path="/v4"+r.path,B.REQUIRE_ACCESS_TOKEN&&(B.ACCESS_TOKEN||this._customAccessToken)&&this._skuToken&&r.params.push("sku="+this._skuToken),this._makeAPIURL(r,this._customAccessToken)},q.prototype.canonicalizeTileURL=function(e){var t=X(e);if(!t.path.match(/(^\/v4\/)/)||!t.path.match(/\.[\w]+$/))return e;var n="mapbox://tiles/";n+=t.path.replace("/v4/","");var r=t.params.filter((function(e){return!e.match(/^access_token=/)}));return r.length&&(n+="?"+r.join("&")),n},q.prototype.canonicalizeTileset=function(e,t){if(!H(t))return e.tiles||[];for(var n=[],r=0,i=e.tiles;r<i.length;r+=1){var o=i[r],a=this.canonicalizeTileURL(o);n.push(a)}return n},q.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=X(B.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"/"!==r.path&&(e.path=""+r.path+e.path),!B.REQUIRE_ACCESS_TOKEN)return K(e);if(!(t=t||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter((function(e){return-1===e.indexOf("access_token")})),e.params.push("access_token="+t),K(e)};var W=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Z(e){return W.test(e)}var Y=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(e){var t=e.match(Y);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function K(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}function $(e){if(!e)return null;var t,n=e.split(".");if(!n||3!==n.length)return null;try{return JSON.parse((t=n[1],decodeURIComponent(self.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(e){return null}}var J=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};J.prototype.getStorageKey=function(e){var t,n=$(B.ACCESS_TOKEN),r="";return n&&n.u?(t=n.u,r=self.btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))})))):r=B.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+r:"mapbox.eventData:"+r},J.prototype.fetchEventData=function(){var e=I("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=self.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var i=self.localStorage.getItem(n);i&&(this.anonId=i)}catch(e){w("Unable to read from LocalStorage")}},J.prototype.saveEventData=function(){var e=I("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{self.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&self.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){w("Unable to write to LocalStorage")}},J.prototype.processRequests=function(e){},J.prototype.postEvent=function(e,t,n,r){var i=this;if(B.EVENTS_URL){var o=X(B.EVENTS_URL);o.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.5.1",skuId:G,userId:this.anonId},s=t?h(a,t):a,l={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=be(l,(function(e){i.pendingRequest=null,n(e),i.saveEventData(),i.processRequests(r)}))}},J.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var Q,ee,te=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return H(e)||Z(e)})))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,i=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),m(this.anonId)||(this.anonId=f()),this.postEvent(i,{skuToken:this.skuToken},(function(e){e||r&&(t.success[r]=!0)}),e))}},t}(J),ne=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.postTurnstileEvent=function(e,t){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return H(e)||Z(e)}))&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=$(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,i=r!==this.eventData.tokenU;m(this.anonId)||(this.anonId=f(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=o,t.eventData.tokenU=r)}),e)}},t}(J)),re=ne.postTurnstileEvent.bind(ne),ie=new te,oe=ie.postMapLoadEvent.bind(ie),ae="mapbox-tiles",se=500,le=50;
vendor: 4,434 bytes, line 1
1function ue(){self.caches&&!Q&&(Q=self.caches.open(ae))}function ce(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var he=1/0,pe={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(pe);var de=function(e){function t(t,n,r){401===n&&Z(r)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error);function fe(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}var me=fe()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function ge(e,t){var n,r=new self.AbortController,i=new self.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:me(),signal:r.signal}),o=!1,a=!1,s=(n=i.url).indexOf("sku=")>0&&Z(n);"json"===e.type&&i.headers.set("Accept","application/json");var l=function(n,r,o){if(!a){if(n&&"SecurityError"!==n.message&&w(n),r&&o)return u(r);var l=Date.now();self.fetch(i).then((function(n){if(n.ok){var r=s?n.clone():null;return u(n,r,l)}return t(new de(n.statusText,n.status,e.url))})).catch((function(e){20!==e.code&&t(new Error(e.message))}))}},u=function(n,r,s){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((function(e){a||(r&&s&&function(e,t,n){if(ue(),Q){var r={status:t.status,statusText:t.statusText,headers:new self.Headers};t.headers.forEach((function(e,t){return r.headers.set(t,e)}));var i=M(t.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&r.headers.set("Expires",new Date(n+1e3*i["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===ee)try{new Response(new ReadableStream),ee=!0}catch(e){ee=!1}ee?t(e.body):e.blob().then(t)}(t,(function(t){var n=new self.Response(t,r);ue(),Q&&Q.then((function(t){return t.put(ce(e.url),n)})).catch((function(e){return w(e.message)}))})))}}(i,r,s),o=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(e){return t(new Error(e.message))}))};return s?function(e,t){if(ue(),!Q)return t(null);var n=ce(e.url);Q.then((function(e){e.match(n).then((function(r){var i=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=M(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),i&&e.put(n,r.clone()),t(null,r,i)})).catch(t)})).catch(t)}(i,l):l(null,null),{cancel:function(){a=!0,o||r.abort()}}}var ye,ve,_e=function(e,t){if(n=e.url,!(/^file:/.test(n)||/^file:/.test(me())&&!/^\w+:/.test(n))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return ge(e,t);if(fe()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){var n=new self.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new de(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},xe=function(e,t){return _e(h(e,{type:"arrayBuffer"}),t)},be=function(e,t){return _e(h(e,{method:"POST"}),t)};ye=[],ve=0;var we=function(e,t){if(ve>=B.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return ye.push(n),n}ve++;var r=!1,i=function(){if(!r)for(r=!0,ve--;ye.length&&ve<B.MAX_PARALLEL_IMAGE_REQUESTS;){var e=ye.shift(),t=e.requestParameters,n=e.callback;
vendor: 4,554 bytes, line 1
1e.cancelled||(e.cancel=we(t,n).cancel)}},o=xe(e,(function(e,n,r,o){if(i(),e)t(e);else if(n){var a=new self.Image,s=self.URL||self.webkitURL;a.onload=function(){t(null,a),s.revokeObjectURL(a.src)},a.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var l=new self.Blob([new Uint8Array(n)],{type:"image/png"});a.cacheControl=r,a.expires=o,a.src=n.byteLength?s.createObjectURL(l):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}}));return{cancel:function(){o.cancel(),i()}}};function Se(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function ke(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}var Te=function(e,t){void 0===t&&(t={}),h(this,t),this.type=e},Me=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",h({error:t},n))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Te),Ee=function(){};Ee.prototype.on=function(e,t){return this._listeners=this._listeners||{},Se(e,t,this._listeners),this},Ee.prototype.off=function(e,t){return ke(e,t,this._listeners),ke(e,t,this._oneTimeListeners),this},Ee.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},Se(e,t,this._oneTimeListeners),this},Ee.prototype.fire=function(e,t){"string"==typeof e&&(e=new Te(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,i=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<i.length;r+=1)i[r].call(this,e);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<a.length;o+=1){var s=a[o];ke(n,s,this._oneTimeListeners),s.call(this,e)}var l=this._eventedParent;l&&(h(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(e))}else e instanceof Me&&console.error(e.error);return this},Ee.prototype.listens=function(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},Ee.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var Ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0}
vendor: 5,089 bytes, line 1
1,clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}
vendor: 4,077 bytes, line 1
1,"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}
vendor: 5,167 bytes, line 1
1,"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0
vendor: 14,045 bytes, line 1
1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}
vendor: 15,753 bytes, line 1
1},Ie=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Ae(e){var t=e.key,n=e.value;return n?[new Ie(t,n,"constants have been deprecated as of v8")]:[]}function Pe(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,i=t;r<i.length;r+=1){var o=i[r];for(var a in o)e[a]=o[a]}return e}function De(e){return e instanceof Number||e instanceof String||e instanceof Boolean}function Le(e){return De(e)?e.valueOf():e}function Oe(e){if(Array.isArray(e))return e.map(Oe);if(e instanceof Object&&!De(e)){var t={};for(var n in e)t[n]=Oe(e[n]);return t}return Le(e)}var Re=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ze=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var i=r[n],o=i[0],a=i[1];this.bindings[o]=a}};ze.prototype.concat=function(e){return new ze(this,e)},ze.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.")},ze.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var Ne={kind:"null"},Be={kind:"number"},Fe={kind:"string"},Ve={kind:"boolean"},je={kind:"color"},Ue={kind:"object"},Ge={kind:"value"},qe={kind:"collator"},He={kind:"formatted"},We={kind:"resolvedImage"};function Ze(e,t){return{kind:"array",itemType:e,N:t}}function Ye(e){if("array"===e.kind){var t=Ye(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var Xe=[Ne,Be,Fe,Ve,je,He,Ue,Ze(Ge),We];function Ke(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ke(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var n=0,r=Xe;n<r.length;n+=1)if(!Ke(r[n],t))return null}return"Expected "+Ye(e)+" but found "+Ye(t)+" instead."}var $e=t((function(e,t){var n={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 r(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return e<0?0:e>1?1:e}function o(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function a(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,i=e.replace(/ /g,"").toLowerCase();if(i in n)return n[i].slice();if("#"===i[0])return 4===i.length?(t=parseInt(i.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===i.length&&(t=parseInt(i.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=i.indexOf("("),u=i.indexOf(")");if(-1!==l&&u+1===i.length){var c=i.substr(0,l),h=i.substr(l+1,u-(l+1)).split(","),p=1;switch(c){case"rgba":if(4!==h.length)return null;p=a(h.pop());case"rgb":return 3!==h.length?null:[o(h[0]),o(h[1]),o(h[2]),p];case"hsla":if(4!==h.length)return null;p=a(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,f=a(h[1]),m=a(h[2]),g=m<=.5?m*(f+1):m+f-m*f,y=2*m-g;return[r(255*s(y,g,d+1/3)),r(255*s(y,g,d)),r(255*s(y,g,d-1/3)),p];default:return null}}return null}}catch(e){}})).parseCSSColor,Je=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};Je.parse=function(e){if(e){if(e instanceof Je)return e;if("string"==typeof e){var t=$e(e);if(t)return new Je(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},Je.prototype.toString=function(){var e=this.toArray(),t=e[0],n=e[1],r=e[2],i=e[3];return"rgba("+Math.round(t)+","+Math.round(n)+","+Math.round(r)+","+i+")"},Je.prototype.toArray=function(){var e=this.r,t=this.g,n=this.b,r=this.a;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*n/r,r]},Je.black=new Je(0,0,0,1),Je.white=new Je(1,1,1,1),Je.transparent=new Je(0,0,0,0),Je.red=new Je(1,0,0,1);var Qe=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Qe.prototype.compare=function(e,t){return this.collator.compare(e,t)},Qe.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var et=function(e,t,n,r){this.text=e,this.scale=t,this.fontStack=n,this.textColor=r},tt=function(e){this.sections=e};tt.fromString=function(e){return new tt([new et(e,null,null,null)])},tt.prototype.toString=function(){return this.sections.map((function(e){return e.text})).join("")},tt.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.text);var i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}return e};var nt=function(e){this.name=e.name,this.available=e.available};function rt(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function it(e){if(null===e)return Ne;if("string"==typeof e)return Fe;if("boolean"==typeof e)return Ve;if("number"==typeof e)return Be;if(e instanceof Je)return je;if(e instanceof Qe)return qe;if(e instanceof tt)return He;if(e instanceof nt)return We;if(Array.isArray(e)){for(var t,n=e.length,r=0,i=e;r<i.length;r+=1){var o=it(i[r]);if(t){if(t===o)continue;t=Ge;break}t=o}return Ze(t||Ge,n)}return Ue}function ot(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Je||e instanceof tt||e instanceof nt?e.toString():JSON.stringify(e)}nt.prototype.toString=function(){return this.name},nt.fromString=function(e){return new nt({name:e,available:!1})},nt.prototype.serialize=function(){return["image",this.name]};var at=function(e,t){this.type=e,this.value=t};at.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 Je)return!0;if(t instanceof Qe)return!0;if(t instanceof tt)return!0;if(t instanceof nt)return!0;if(Array.isArray(t)){for(var n=0,r=t;n<r.length;n+=1)if(!e(r[n]))return!1;return!0}if("object"==typeof t){for(var i in t)if(!e(t[i]))return!1;return!0}return!1}(e[1]))return t.error("invalid value");var n=e[1],r=it(n),i=t.expectedType;return"array"!==r.kind||0!==r.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(r=i),new at(r,n)},at.prototype.evaluate=function(){return this.value},at.prototype.eachChild=function(){},at.prototype.possibleOutputs=function(){return[this.value]},at.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Je?["rgba"].concat(this.value.toArray()):this.value instanceof tt?this.value.serialize():this.value};var st=function(e){this.name="ExpressionEvaluationError",this.message=e};st.prototype.toJSON=function(){return this.message};var lt={string:Fe,number:Be,boolean:Ve,object:Ue},ut=function(e,t){this.type=e,this.args=t};ut.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,i=e[0];if("array"===i){var o,a;if(e.length>2){var s=e[1];if("string"!=typeof s||!(s in lt)||"object"===s)return t.error('The item type argument of "array" must be one of string, number, boolean',1);o=lt[s],r++}else o=Ge;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],r++}n=Ze(o,a)}else n=lt[i];for(var l=[];r<e.length;r++){var u=t.parse(e[r],r,Ge);if(!u)return null;l.push(u)}return new ut(n,l)},ut.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!Ke(this.type,it(n)))return n;if(t===this.args.length-1)throw new st("Expected value to be of type "+Ye(this.type)+", but found "+Ye(it(n))+" instead.")}return null},ut.prototype.eachChild=function(e){this.args.forEach(e)},ut.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map((function(e){return e.possibleOutputs()})))},ut.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var ct=function(e){this.type=He,this.sections=e};ct.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 n=[],r=1;r<e.length-1;r+=2){var i=t.parse(e[r],1,Ge);if(!i)return null;var o=i.type.kind;if("string"!==o&&"value"!==o&&"null"!==o)return t.error("Formatted text type must be 'string', 'value', or 'null'.");var a=e[r+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,Be)))return null;var l=null;if(a["text-font"]&&!(l=t.parse(a["text-font"],1,Ze(Fe))))return null;var u=null;if(a["text-color"]&&!(u=t.parse(a["text-color"],1,je)))return null;n.push({text:i,scale:s,font:l,textColor:u})}return new ct(n)},ct.prototype.evaluate=function(e){return new tt(this.sections.map((function(t){return new et(ot(t.text.evaluate(e)),t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},ct.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.text),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},ct.prototype.possibleOutputs=function(){return[void 0]},ct.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.text.serialize());var i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e};var ht=function(e){this.type=We,this.input=e};ht.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Fe);return n?new ht(n):t.error("No image name provided.")},ht.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=!1;return e.availableImages&&e.availableImages.indexOf(t)>-1&&(n=!0),new nt({name:t,available:n})},ht.prototype.eachChild=function(e){e(this.input)},ht.prototype.possibleOutputs=function(){return[void 0]},ht.prototype.serialize=function(){return["image",this.input.serialize()]};var pt={"to-boolean":Ve,"to-color":je,"to-number":Be,"to-string":Fe},dt=function(e,t){this.type=e,this.args=t};dt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=pt[n],i=[],o=1;o<e.length;o++){var a=t.parse(e[o],o,Ge);if(!a)return null;i.push(a)}return new dt(r,i)},dt.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,n,r=0,i=this.args;r<i.length;r+=1){if(n=null,(t=i[r].evaluate(e))instanceof Je)return t;if("string"==typeof t){var o=e.parseColor(t);if(o)return o}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":rt(t[0],t[1],t[2],t[3]))
vendor: 40,510 bytes, line 1
1)return new Je(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new st(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s<l.length;s+=1){if(null===(a=l[s].evaluate(e)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new st("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?tt.fromString(ot(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?nt.fromString(ot(this.args[0].evaluate(e))):ot(this.args[0].evaluate(e))},dt.prototype.eachChild=function(e){this.args.forEach(e)},dt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map((function(e){return e.possibleOutputs()})))},dt.prototype.serialize=function(){if("formatted"===this.type.kind)return new ct([{text:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new ht(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild((function(t){e.push(t.serialize())})),e};var ft=["Unknown","Point","LineString","Polygon"],mt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null};mt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},mt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ft[this.feature.type]:this.feature.type:null},mt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},mt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Je.parse(e)),t};var gt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};gt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},gt.prototype.eachChild=function(e){this.args.forEach(e)},gt.prototype.possibleOutputs=function(){return[void 0]},gt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))},gt.parse=function(e,t){var n,r=e[0],i=gt.definitions[r];if(!i)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter((function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1})),l=null,u=0,c=s;u<c.length;u+=1){var h=c[u],p=h[0],d=h[1];l=new wt(t.registry,t.path,null,t.scope);for(var f=[],m=!1,g=1;g<e.length;g++){var y=e[g],v=Array.isArray(p)?p[g-1]:p.type,_=l.parse(y,1+f.length,v);if(!_){m=!0;break}f.push(_)}if(!m)if(Array.isArray(p)&&p.length!==f.length)l.error("Expected "+p.length+" arguments, but found "+f.length+" instead.");else{for(var x=0;x<f.length;x++){var b=Array.isArray(p)?p[x]:p.type,w=f[x];l.concat(x+1).checkSubtype(b,w.type)}if(0===l.errors.length)return new gt(r,o,d,f)}}if(1===s.length)(n=t.errors).push.apply(n,l.errors);else{for(var S=(s.length?s:a).map((function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(Ye).join(", ")+")":"("+Ye(t.type)+"...)"})).join(" | "),k=[],T=1;T<e.length;T++){var M=t.parse(e[T],1+k.length);if(!M)return null;k.push(Ye(M.type))}t.error("Expected arguments of type "+S+", but found ("+k.join(", ")+") instead.")}return null},gt.register=function(e,t){for(var n in gt.definitions=t,t)e[n]=gt};var yt=function(e,t,n){this.type=qe,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};function vt(e){if(e instanceof gt){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&&!vt(e)&&(t=!1)})),t}function _t(e){if(e instanceof gt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!_t(e)&&(t=!1)})),t}function xt(e,t){if(e instanceof gt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild((function(e){n&&!xt(e,t)&&(n=!1)})),n}yt.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ve);if(!r)return null;var i=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ve);if(!i)return null;var o=null;return n.locale&&!(o=t.parse(n.locale,1,Fe))?null:new yt(r,i,o)},yt.prototype.evaluate=function(e){return new Qe(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},yt.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},yt.prototype.possibleOutputs=function(){return[void 0]},yt.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 bt=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};bt.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new bt(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},bt.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},bt.prototype.eachChild=function(){},bt.prototype.possibleOutputs=function(){return[void 0]},bt.prototype.serialize=function(){return["var",this.name]};var wt=function(e,t,n,r,i){void 0===t&&(t=[]),void 0===r&&(r=new ze),void 0===i&&(i=[]),this.registry=e,this.path=t,this.key=t.map((function(e){return"["+e+"]"})).join(""),this.scope=r,this.errors=i,this.expectedType=n};function St(e,t){for(var n,r,i=e.length-1,o=0,a=i,s=0;o<=a;)if(n=e[s=Math.floor((o+a)/2)],r=e[s+1],n<=t){if(s===i||t<r)return s;o=s+1}else{if(!(n>t))throw new st("Input is not a number.");a=s-1}return 0}wt.prototype.parse=function(e,t,n,r,i){return void 0===i&&(i={}),t?this.concat(t,n,r)._parse(e,i):this._parse(e,i)},wt.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new ut(t,[e]):"coerce"===n?new dt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(e,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,t.typeAnnotation||"coerce");else o=n(o,a,t.typeAnnotation||"assert")}if(!(o instanceof at)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof bt)return e(t.boundExpression);if(t instanceof gt&&"error"===t.name)return!1;if(t instanceof yt)return!1;var n=t instanceof dt||t instanceof ut,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof at})),!!r&&vt(t)&&xt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new mt;try{o=new at(o.type,o.evaluate(l))}catch(e){return this.error(e.message),null}}return o}return this.error('Unknown expression "'+r+'". 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.")},wt.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,i=n?this.scope.concat(n):this.scope;return new wt(this.registry,r,t||null,i,this.errors)},wt.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new Re(r,e))},wt.prototype.checkSubtype=function(e,t){var n=Ke(e,t);return n&&this.error(n),n};var kt=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,i=n;r<i.length;r+=1){var o=i[r],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};kt.parse=function(e,t){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.");var n=t.parse(e[1],1,Be);if(!n)return null;var r=[],i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(var o=1;o<e.length;o+=2){var a=1===o?-1/0:e[o],s=e[o+1],l=o,u=o+1;if("number"!=typeof a)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(r.length&&r[r.length-1][0]>=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=t.parse(s,u,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new kt(i,n,r)},kt.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;return r>=t[i-1]?n[i-1].evaluate(e):n[St(t,r)].evaluate(e)},kt.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},kt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map((function(e){return e.possibleOutputs()})))},kt.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 Tt=Mt;function Mt(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}function Et(e,t,n){return e*(1-n)+t*n}Mt.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},Mt.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},Mt.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},Mt.prototype.solveCurveX=function(e,t){var n,r,i,o,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(o=this.sampleCurveX(i)-e,Math.abs(o)<t)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=e)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-e)<t)return i;e>o?n=i:r=i,i=.5*(r-n)+n}return i},Mt.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Ct=Object.freeze({__proto__:null,number:Et,color:function(e,t,n){return new Je(Et(e.r,t.r,n),Et(e.g,t.g,n),Et(e.b,t.b,n),Et(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return Et(e,t[r],n)}))}}),It=6/29,At=3*It*It,Pt=Math.PI/180,Dt=180/Math.PI;function Lt(e){return e>.008856451679035631?Math.pow(e,1/3):e/At+4/29}function Ot(e){return e>It?e*e*e:At*(e-4/29)}function Rt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Nt(e){var t=zt(e.r),n=zt(e.g),r=zt(e.b),i=Lt((.4124564*t+.3575761*n+.1804375*r)/.95047),o=Lt((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Lt((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function Bt(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Ot(t),n=.95047*Ot(n),r=1.08883*Ot(r),new Je(Rt(3.2404542*n-1.5371385*t-.4985314*r),Rt(-.969266*n+1.8760108*t+.041556*r),Rt(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Ft(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var Vt={forward:Nt,reverse:Bt,interpolate:function(e,t,n){return{l:Et(e.l,t.l,n),a:Et(e.a,t.a,n),b:Et(e.b,t.b,n),alpha:Et(e.alpha,t.alpha,n)}}},jt={forward:function(e){var t=Nt(e),n=t.l,r=t.a,i=t.b,o=Math.atan2(i,r)*Dt;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:e.a}},reverse:function(e){var t=e.h*Pt,n=e.c;return Bt({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Ft(e.h,t.h,n),c:Et(e.c,t.c,n),l:Et(e.l,t.l,n),alpha:Et(e.alpha,t.alpha,n)}}},Ut=Object.freeze({__proto__:null,lab:Vt,hcl:jt}),Gt=function(e,t,n,r,i){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o<a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function qt(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}Gt.interpolationFactor=function(e,t,n,r){var i=0;if("exponential"===e.name)i=qt(t,e.base,n,r);else if("linear"===e.name)i=qt(t,1,n,r);else if("cubic-bezier"===e.name){var o=e.controlPoints;i=new Tt(o[0],o[1],o[2],o[3]).solve(qt(t,1,n,r))}return i},Gt.parse=function(e,t){var n=e[0],r=e[1],i=e[2],o=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var a=r[1];if("number"!=typeof a)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:a}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var s=r.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);r={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(!(i=t.parse(i,2,Be)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=je:t.expectedType&&"value"!==t.expectedType.kind&&(u=t.expectedType);for(var c=0;c<o.length;c+=2){var h=o[c],p=o[c+1],d=c+3,f=c+4;if("number"!=typeof h)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(l.length&&l[l.length-1][0]>=h)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var m=t.parse(p,f,u);if(!m)return null;u=u||m.type,l.push([h,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new Gt(u,n,r,i,l):t.error("Type "+Ye(u)+" is not interpolatable.")},Gt.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var i=t.length;if(r>=t[i-1])return n[i-1].evaluate(e);var o=St(t,r),a=t[o],s=t[o+1],l=Gt.interpolationFactor(this.interpolation,r,a,s),u=n[o].evaluate(e),c=n[o+1].evaluate(e);return"interpolate"===this.operator?Ct[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?jt.reverse(jt.interpolate(jt.forward(u),jt.forward(c),l)):Vt.reverse(Vt.interpolate(Vt.forward(u),Vt.forward(c),l))},Gt.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},Gt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map((function(e){return e.possibleOutputs()})))},Gt.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()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var Ht=function(e,t){this.type=e,this.args=t};Ht.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var i=[],o=0,a=e.slice(1);o<a.length;o+=1){var s=a[o],l=t.parse(s,1+i.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,i.push(l)}var u=r&&i.some((function(e){return Ke(r,e.type)}));return new Ht(u?Ge:n,i)},Ht.prototype.evaluate=function(e){for(var t,n=null,r=0,i=0,o=this.args;i<o.length;i+=1){var a=o[i];if(r++,n=a.evaluate(e),"resolvedImage"!==a.type.kind||n.available||(t||(t=a.evaluate(e).name),n=null,r===this.args.length&&(n=t)),null!==n)break}return n},Ht.prototype.eachChild=function(e){this.args.forEach(e)},Ht.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.args.map((function(e){return e.possibleOutputs()})))},Ht.prototype.serialize=function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Wt=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};Wt.prototype.evaluate=function(e){return this.result.evaluate(e)},Wt.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},Wt.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var i=e[r];if("string"!=typeof i)return t.error("Expected string, but found "+typeof i+" instead.",r);if(/[^a-zA-Z0-9_]/.test(i))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=t.parse(e[r+1],r+1);if(!o)return null;n.push([i,o])}var a=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return a?new Wt(n,a):null},Wt.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},Wt.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];e.push(i,o.serialize())}return e.push(this.result.serialize()),e};var Zt=function(e,t,n){this.type=e,this.index=t,this.input=n};Zt.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Be),r=t.parse(e[2],2,Ze(t.expectedType||Ge));if(!n||!r)return null;var i=r.type;return new Zt(i.itemType,n,r)},Zt.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new st("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new st("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new st("Array index must be an integer, but found "+t+" instead.");return n[t]},Zt.prototype.eachChild=function(e){e(this.index),e(this.input)},Zt.prototype.possibleOutputs=function(){return[void 0]},Zt.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Yt=function(e,t,n,r,i,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};Yt.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var i={},o=[],a=2;a<e.length-1;a+=2){var s=e[a],l=e[a+1];Array.isArray(s)||(s=[s]);var u=t.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,h=s;c<h.length;c+=1){var p=h[c];if("number"!=typeof p&&"string"!=typeof p)return u.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,it(p)))return null}else n=it(p);if(void 0!==i[String(p)])return u.error("Branch labels must be unique.");i[String(p)]=o.length}var d=t.parse(l,a,r);if(!d)return null;r=r||d.type,o.push(d)}var f=t.parse(e[1],1,Ge);if(!f)return null;var m=t.parse(e[e.length-1],e.length-1,r);return m?"value"!==f.type.kind&&t.concat(1).checkSubtype(n,f.type)?null:new Yt(n,r,f,i,o,m):null},Yt.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(it(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},Yt.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},Yt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.outputs.map((function(e){return e.possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},Yt.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i<o.length;i+=1){var a=o[i];void 0===(h=r[this.cases[a]])?(r[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[h][1].push(a)}for(var s=function(t){return"number"===e.inputType.kind?Number(t):t},l=0,u=n;l<u.length;l+=1){var c=u[l],h=c[0],p=c[1];1===p.length?t.push(s(p[0])):t.push(p.map(s)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var Xt=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};function Kt(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 $t(e,t,n,r){return 0===r.compare(t,n)}function Jt(e,t,n){var r="=="!==e&&"!="!==e;return function(){function i(e,t,n){this.type=Ve,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return i.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],o=t.parse(e[1],1,Ge);if(!o)return null;if(!Kt(n,o.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+Ye(o.type)+"'.");var a=t.parse(e[2],2,Ge);if(!a)return null;if(!Kt(n,a.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+Ye(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '"+Ye(o.type)+"' and '"+Ye(a.type)+"'.");r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new ut(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new ut(o.type,[a])));var s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,qe)))return null}return new i(o,a,s)},i.prototype.evaluate=function(i){var o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(r&&this.hasUntypedArgument){var s=it(o),l=it(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new st('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=it(o),c=it(a);if("string"!==u.kind||"string"!==c.kind)return t(i,o,a)}return this.collator?n(i,o,a,this.collator.evaluate(i)):t(i,o,a)},i.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},i.prototype.possibleOutputs=function(){return[!0,!1]},i.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},i}()}Xt.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 n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],i=1;i<e.length-1;i+=2){var o=t.parse(e[i],i,Ve);if(!o)return null;var a=t.parse(e[i+1],i+1,n);if(!a)return null;r.push([o,a]),n=n||a.type}var s=t.parse(e[e.length-1],e.length-1,n);return s?new Xt(n,r,s):null},Xt.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];if(i.evaluate(e))return o.evaluate(e)}return this.otherwise.evaluate(e)},Xt.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],i=r[0],o=r[1];e(i),e(o)}e(this.otherwise)},Xt.prototype.possibleOutputs=function(){var e;return(e=[]).concat.apply(e,this.branches.map((function(e){return e[0],e[1].possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},Xt.prototype.serialize=function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Qt=Jt("==",(function(e,t,n){return t===n}),$t),en=Jt("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!$t(0,t,n,r)})),tn=Jt("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),nn=Jt(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),rn=Jt("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),on=Jt(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),an=function(e,t,n,r,i){this.type=Fe,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};an.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Be);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=t.parse(r.locale,1,Fe)))return null;var o=null;if(r.currency&&!(o=t.parse(r.currency,1,Fe)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=t.parse(r["min-fraction-digits"],1,Be)))return null;var s=null;return r["max-fraction-digits"]&&!(s=t.parse(r["max-fraction-digits"],1,Be))?null:new an(n,i,o,a,s)},an.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))},an.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)},an.prototype.possibleOutputs=function(){return[void 0]},an.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 sn=function(e){this.type=Be,this.input=e};sn.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+Ye(n.type)+" instead."):new sn(n):null},sn.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 st("Expected value to be of type string or array, but found "+Ye(it(t))+" instead.")},sn.prototype.eachChild=function(e){e(this.input)},sn.prototype.possibleOutputs=function(){return[void 0]},sn.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var ln={"==":Qt,"!=":en,">":nn,"<":tn,">=":on,"<=":rn,array:ut,at:Zt,boolean:ut,case:Xt,coalesce:Ht,collator:yt,format:ct,image:ht,interpolate:Gt,"interpolate-hcl":Gt,"interpolate-lab":Gt,length:sn,let:Wt,literal:at,match:Yt,number:ut,"number-format":an,object:ut,step:kt,string:ut,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,var:bt};function un(e,t){var n=t[0],r=t[1],i=t[2],o=t[3];n=n.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);var a=o?o.evaluate(e):1,s=rt(n,r,i,a);if(s)throw new st(s);return new Je(n/255*a,r/255*a,i/255*a,a)}function cn(e,t){return e in t}function hn(e,t){var n=t[e];return void 0===n?null:n}function pn(e){return{type:e}}function dn(e){return{result:"success",value:e}}function fn(e){return{result:"error",value:e}}function mn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function gn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function yn(e){return!!e.expression&&e.expression.interpolated}function vn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function _n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function xn(e){return e}function bn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function wn(e,t,n,r,i){return bn(typeof n===i?r[n]:void 0,e.default,t.default)}function Sn(e,t,n){if("number"!==vn(n))return bn(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var i=St(e.stops.map((function(e){return e[0]})),n);return e.stops[i][1]}function kn(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==vn(n))return bn(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];var o=St(e.stops.map((function(e){return e[0]})),n),a=function(e,t,n,r){var i=r-n,o=e-n;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],l=e.stops[o+1][1],u=Ct[t.type]||xn;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=Ut[e.colorSpace];u=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 n=s.evaluate.apply(void 0,e),r=l.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return u(n,r,a)}}:u(s,l,a)}function Tn(e,t,n){return"color"===t.type?n=Je.parse(n):"formatted"===t.type?n=tt.fromString(n.toString()):"resolvedImage"===t.type?n=nt.fromString(n.toString()):vn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),bn(n,e.default,t.default)}gt.register(ln,{error:[{kind:"error"},[Fe],function(e,t){var n=t[0];throw new st(n.evaluate(e))}],typeof:[Fe,[Ge],function(e,t){return Ye(it(t[0].evaluate(e)))}],"to-rgba":[Ze(Be,4),[je],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[je,[Be,Be,Be],un],rgba:[je,[Be,Be,Be,Be],un],has:{type:Ve,overloads:[[[Fe],function(e,t){return cn(t[0].evaluate(e),e.properties())}],[[Fe,Ue],function(e,t){var n=t[0],r=t[1];return cn(n.evaluate(e),r.evaluate(e))}]]},get:{type:Ge,overloads:[[[Fe],function(e,t){return hn(t[0].evaluate(e),e.properties())}],[[Fe,Ue],function(e,t){var n=t[0],r=t[1];return hn(n.evaluate(e),r.evaluate(e))}]]},"feature-state":[Ge,[Fe],function(e,t){return hn(t[0].evaluate(e),e.featureState||{})}],properties:[Ue,[],function(e){return e.properties()}],"geometry-type":[Fe,[],function(e){return e.geometryType()}],id:[Ge,[],function(e){return e.id()}],zoom:[Be,[],function(e){return e.globals.zoom}],"heatmap-density":[Be,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[Be,[],function(e){return e.globals.lineProgress||0}],accumulated:[Ge,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[Be,pn(Be),function(e,t){for(var n=0,r=0,i=t;r<i.length;r+=1)n+=i[r].evaluate(e);return n}],"*":[Be,pn(Be),function(e,t){for(var n=1,r=0,i=t;r<i.length;r+=1)n*=i[r].evaluate(e);return n}],"-":{type:Be,overloads:[[[Be,Be],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)-r.evaluate(e)}],[[Be],function(e,t){return-t[0].evaluate(e)}]]},"/":[Be,[Be,Be],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)/r.evaluate(e)}],"%":[Be,[Be,Be],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)%r.evaluate(e)}],ln2:[Be,[],function(){return Math.LN2}],pi:[Be,[],function(){return Math.PI}],e:[Be,[],function(){return Math.E}],"^":[Be,[Be,Be],function(e,t){var n=t[0],r=t[1];return Math.pow(n.evaluate(e),r.evaluate(e))}],sqrt:[Be,[Be],function(e,t){var n=t[0];return Math.sqrt(n.evaluate(e))}],log10:[Be,[Be],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN10}],ln:[Be,[Be],function(e,t){var n=t[0];return Math.log(n.evaluate(e))}],log2:[Be,[Be],function(e,t){var n=t[0];return Math.log(n.evaluate(e))/Math.LN2}],sin:[Be,[Be],function(e,t){var n=t[0];return Math.sin(n.evaluate(e))}],cos:[Be,[Be],function(e,t){var n=t[0];return Math.cos(n.evaluate(e))}],tan:[Be,[Be],function(e,t){var n=t[0];return Math.tan(n.evaluate(e))}],asin:[Be,[Be],function(e,t){var n=t[0];return Math.asin(n.evaluate(e))}],acos:[Be,[Be],function(e,t){var n=t[0];return Math.acos(n.evaluate(e))}],atan:[Be,[Be],function(e,t){var n=t[0];return Math.atan(n.evaluate(e))}],min:[Be,pn(Be),function(e,t){return Math.min.apply(Math,t.map((function(t){return t.evaluate(e)})))}],max:[Be,pn(Be),function(e,t){return Math.max.apply(Math,t.map((function(t){return t.evaluate(e)})))}],abs:[Be,[Be],function(e,t){var n=t[0];return Math.abs(n.evaluate(e))}],round:[Be,[Be],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[Be,[Be],function(e,t){var n=t[0];return Math.floor(n.evaluate(e))}],ceil:[Be,[Be],function(e,t){var n=t[0];return Math.ceil(n.evaluate(e))}],"filter-==":[Ve,[Fe,Ge],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[Ve,[Ge],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[Ve,[Fe],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[Ve,[Fe,Ge],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[Ve,[Ge],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<i}],"filter->":[Ve,[Fe,Ge],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[Ve,[Ge],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[Ve,[Fe,Ge],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[Ve,[Ge],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[Ve,[Fe,Ge],function(e,t){var n=t[0],r=t[1],i=e.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[Ve,[Ge],function(e,t){var n=t[0],r=e.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[Ve,[Ge],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[Ve,[],function(e){return null!==e.id()}],"filter-type-in":[Ve,[Ze(Fe)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[Ve,[Ze(Ge)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[Ve,[Fe,Ze(Ge)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[Ve,[Fe,Ze(Ge)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var i=n+r>>1;if(t[i]===e)return!0;t[i]>e?r=i-1:n=i+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:Ve,overloads:[[[Ve,Ve],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)&&r.evaluate(e)}],[pn(Ve),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:Ve,overloads:[[[Ve,Ve],function(e,t){var n=t[0],r=t[1];return n.evaluate(e)||r.evaluate(e)}],[pn(Ve),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[Ve,[Ve],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[Ve,[Fe],function(e,t){var n=t[0],r=e.globals&&e.globals.isSupportedScript;return!r||r(n.evaluate(e))}],upcase:[Fe,[Fe],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Fe,[Fe],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Fe,pn(Ge),function(e,t){return t.map((function(t){return ot(t.evaluate(e))})).join("")}],"resolved-locale":[Fe,[qe],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Mn=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new mt,this._defaultValue=t?function(e){return"color"===e.type&&_n(e.default)?new Je(0,0,0,0):"color"===e.type?Je.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};function En(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in ln}function Cn(e,t){var n=new wt(ln,[],t?function(e){var t={color:je,string:Fe,number:Be,enum:Fe,boolean:Ve,formatted:He,resolvedImage:We};return"array"===e.type?Ze(t[e.value]||Ge,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?dn(new Mn(r,t)):fn(n.errors)}Mn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},Mn.prototype.evaluate=function(e,t,n,r,i){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=i||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new st("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(o)+" instead.");return o}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var In=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!_t(t.expression)};In.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i)},In.prototype.evaluate=function(e,t,n,r,i){return this._styleExpression.evaluate(e,t,n,r,i)};var An=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!_t(t.expression),this.interpolationType=r};function Pn(e,t){if("error"===(e=Cn(e,t)).result)return e;var n=e.value.expression,r=vt(n);if(!r&&!mn(t))return fn([new Re("","data expressions not supported")]);var i=xt(n,["zoom"]);if(!i&&!gn(t))return fn([new Re("","zoom expressions not supported")]);var o=function e(t){var n=null;if(t instanceof Wt)n=e(t.result);else if(t instanceof Ht)for(var r=0,i=t.args;r<i.length;r+=1){var o=i[r];if(n=e(o))break}else(t instanceof kt||t instanceof Gt)&&t.input instanceof gt&&"zoom"===t.input.name&&(n=t);return n instanceof Re||t.eachChild((function(t){var r=e(t);r instanceof Re?n=r:!n&&r?n=new Re("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Re("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);if(!o&&!i)return fn([new Re("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Re)return fn([o]);if(o instanceof Gt&&!yn(t))return fn([new Re("",'"interpolate" expressions cannot be used with this property')]);if(!o)return dn(new In(r?"constant":"source",e.value));var a=o instanceof Gt?o.interpolation:void 0;return dn(new An(r?"camera":"composite",e.value,o.labels,a))}An.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,i){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,i)},An.prototype.evaluate=function(e,t,n,r,i){return this._styleExpression.evaluate(e,t,n,r,i)},An.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?Gt.interpolationFactor(this.interpolationType,e,t,n):0};var Dn=function(e,t){this._parameters=e,this._specification=t,Pe(this,function e(t,n){var r,i,o,a="color"===n.type,s=t.stops&&"object"==typeof t.stops[0][0],l=s||void 0!==t.property,u=s||!l,c=t.type||(yn(n)?"exponential":"interval");
vendor: 24,124 bytes, line 1
1if(a&&((t=Pe({},t)).stops&&(t.stops=t.stops.map((function(e){return[e[0],Je.parse(e[1])]}))),t.default?t.default=Je.parse(t.default):t.default=Je.parse(n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!Ut[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===c)r=kn;else if("interval"===c)r=Sn;else if("categorical"===c){r=wn,i=Object.create(null);for(var h=0,p=t.stops;h<p.length;h+=1){var d=p[h];i[d[0]]=d[1]}o=typeof t.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');r=Tn}if(s){for(var f={},m=[],g=0;g<t.stops.length;g++){var y=t.stops[g],v=y[0].zoom;void 0===f[v]&&(f[v]={zoom:v,type:t.type,property:t.property,default:t.default,stops:[]},m.push(v)),f[v].stops.push([y[0].value,y[1]])}for(var _=[],x=0,b=m;x<b.length;x+=1){var w=b[x];_.push([f[w].zoom,e(f[w],n)])}var S={name:"linear"};return{kind:"composite",interpolationType:S,interpolationFactor:Gt.interpolationFactor.bind(void 0,S),zoomStops:_.map((function(e){return e[0]})),evaluate:function(e,r){var i=e.zoom;return kn({stops:_,base:t.base},n,i).evaluate(i,r)}}}if(u){var k="exponential"===c?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:k,interpolationFactor:Gt.interpolationFactor.bind(void 0,k),zoomStops:t.stops.map((function(e){return e[0]})),evaluate:function(e){var a=e.zoom;return r(t,n,a,i,o)}}}return{kind:"source",evaluate:function(e,a){var s=a&&a.properties?a.properties[t.property]:void 0;return void 0===s?bn(t.default,n.default):r(t,n,s,i,o)}}}(this._parameters,this._specification))};function Ln(e){var t=e.key,n=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,a=e.styleSpec,s=[],l=vn(n);if("object"!==l)return[new Ie(t,n,"object expected, "+l+" found")];for(var u in n){var c=u.split(".")[0],h=r[c]||r["*"],p=void 0;if(i[c])p=i[c];else if(r[c])p=rr;else if(i["*"])p=i["*"];else{if(!r["*"]){s.push(new Ie(t,n[u],'unknown property "'+u+'"'));continue}p=rr}s=s.concat(p({key:(t?t+".":t)+u,value:n[u],valueSpec:h,style:o,styleSpec:a,object:n,objectKey:u},n))}for(var d in r)i[d]||r[d].required&&void 0===r[d].default&&void 0===n[d]&&s.push(new Ie(t,n,'missing required property "'+d+'"'));return s}function On(e){var t=e.value,n=e.valueSpec,r=e.style,i=e.styleSpec,o=e.key,a=e.arrayElementValidator||rr;if("array"!==vn(t))return[new Ie(o,t,"array expected, "+vn(t)+" found")];if(n.length&&t.length!==n.length)return[new Ie(o,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new Ie(o,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var s={type:n.value,values:n.values};i.$version<7&&(s.function=n.function),"object"===vn(n.value)&&(s=n.value);for(var l=[],u=0;u<t.length;u++)l=l.concat(a({array:t,arrayIndex:u,value:t[u],valueSpec:s,style:r,styleSpec:i,key:o+"["+u+"]"}));return l}function Rn(e){var t=e.key,n=e.value,r=e.valueSpec,i=vn(n);return"number"!==i?[new Ie(t,n,"number expected, "+i+" found")]:"minimum"in r&&n<r.minimum?[new Ie(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Ie(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function zn(e){var t,n,r,i=e.valueSpec,o=Le(e.value.type),a={},s="categorical"!==o&&void 0===e.value.property,l=!s,u="array"===vn(e.value.stops)&&"array"===vn(e.value.stops[0])&&"object"===vn(e.value.stops[0][0]),c=Ln({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new Ie(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat(On({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:h})),"array"===vn(n)&&0===n.length&&t.push(new Ie(e.key,n,"array must have at least one stop")),t},default:function(e){return rr({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&s&&c.push(new Ie(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new Ie(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!yn(e.valueSpec)&&c.push(new Ie(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!mn(e.valueSpec)?c.push(new Ie(e.key,e.value,"property functions not supported")):s&&!gn(e.valueSpec)&&c.push(new Ie(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==e.value.property||c.push(new Ie(e.key,e.value,'"property" property is required')),c;function h(e){var t=[],o=e.value,s=e.key;if("array"!==vn(o))return[new Ie(s,o,"array expected, "+vn(o)+" found")];if(2!==o.length)return[new Ie(s,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==vn(o[0]))return[new Ie(s,o,"object expected, "+vn(o[0])+" found")];if(void 0===o[0].zoom)return[new Ie(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new Ie(s,o,"object stop key must have value")];if(r&&r>Le(o[0].zoom))return[new Ie(s,o[0].zoom,"stop zoom values must appear in ascending order")];Le(o[0].zoom)!==r&&(r=Le(o[0].zoom),n=void 0,a={}),t=t.concat(Ln({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Rn,value:p}}))}else t=t.concat(p({key:s+"[0]",value:o[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},o));return En(Oe(o[1]))?t.concat([new Ie(s+"[1]",o[1],"expressions are not allowed in function stops.")]):t.concat(rr({key:s+"[1]",value:o[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function p(e,r){var s=vn(e.value),l=Le(e.value),u=null!==e.value?e.value:r;if(t){if(s!==t)return[new Ie(e.key,u,s+" stop domain type must match previous stop domain type "+t)]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new Ie(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return mn(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ie(e.key,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===s&&void 0!==n&&l<n?[new Ie(e.key,u,"stop domain values must appear in ascending order")]:(n=l,"categorical"===o&&l in a?[new Ie(e.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new Ie(e.key,u,"integer expected, found "+l)]}}function Nn(e){var t=("property"===e.expressionContext?Pn:Cn)(Oe(e.value),e.valueSpec);if("error"===t.result)return t.value.map((function(t){return new Ie(""+e.key+t.key,e.value,t.message)}));var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&-1!==n.possibleOutputs().indexOf(void 0))return[new Ie(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&&!_t(n))return[new Ie(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!_t(n))return[new Ie(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!xt(n,["zoom","feature-state"]))return[new Ie(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!vt(n))return[new Ie(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Bn(e){var t=e.key,n=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?-1===r.values.indexOf(Le(n))&&i.push(new Ie(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Le(n))&&i.push(new Ie(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),i}function Fn(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,n=e.slice(1);t<n.length;t+=1){var r=n[t];if(!Fn(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Dn.deserialize=function(e){return new Dn(e._parameters,e._specification)},Dn.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var Vn={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function jn(e){if(null==e)return function(){return!0};Fn(e)||(e=Gn(e));var t=Cn(e,Vn);if("error"===t.result)throw new Error(t.value.map((function(e){return e.key+": "+e.message})).join(", "));return function(e,n){return t.value.evaluate(e,n)}}function Un(e,t){return e<t?-1:e>t?1:0}function Gn(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?qn(e[1],e[2],"=="):"!="===n?Zn(qn(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?qn(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(Gn))):"all"===n?["all"].concat(e.slice(1).map(Gn)):"none"===n?["all"].concat(e.slice(1).map(Gn).map(Zn)):"in"===n?Hn(e[1],e.slice(2)):"!in"===n?Zn(Hn(e[1],e.slice(2))):"has"===n?Wn(e[1]):"!has"!==n||Zn(Wn(e[1]))}function qn(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function Hn(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(Un)]]:["filter-in-small",e,["literal",t]]}}function Wn(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Zn(e){return["!",e]}function Yn(e){return Fn(Oe(e.value))?Nn(Pe({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==vn(n))return[new Ie(r,n,"array expected, "+vn(n)+" found")];var i,o=t.styleSpec,a=[];if(n.length<1)return[new Ie(r,n,"filter array must have at least 1 element")];switch(a=a.concat(Bn({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec})),Le(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Le(n[1])&&a.push(new Ie(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new Ie(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=vn(n[1]))&&a.push(new Ie(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s<n.length;s++)i=vn(n[s]),"$type"===Le(n[1])?a=a.concat(Bn({key:r+"["+s+"]",value:n[s],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&a.push(new Ie(r+"["+s+"]",n[s],"string, number, or boolean expected, "+i+" found"));break;case"any":case"all":case"none":for(var l=1;l<n.length;l++)a=a.concat(e({key:r+"["+l+"]",value:n[l],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=vn(n[1]),2!==n.length?a.push(new Ie(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==i&&a.push(new Ie(r+"[1]",n[1],"string expected, "+i+" found"))}return a}(e)}function Xn(e,t){var n=e.key,r=e.style,i=e.styleSpec,o=e.value,a=e.objectKey,s=i[t+"_"+e.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===t&&l&&s[l[1]]&&s[l[1]].transition)return rr({key:n,value:o,valueSpec:i.transition,style:r,styleSpec:i});var u,c=e.valueSpec||s[a];if(!c)return[new Ie(n,o,'unknown property "'+a+'"')];if("string"===vn(o)&&mn(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new Ie(n,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var h=[];return"symbol"===e.layerType&&("text-field"===a&&r&&!r.glyphs&&h.push(new Ie(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&_n(Oe(o))&&"identity"===Le(o.type)&&h.push(new Ie(n,o,'"text-font" does not support identity functions'))),h.concat(rr({key:e.key,value:o,valueSpec:c,style:r,styleSpec:i,expressionContext:"property",propertyType:t,propertyKey:a}))}function Kn(e){return Xn(e,"paint")}function $n(e){return Xn(e,"layout")}function Jn(e){var t=[],n=e.value,r=e.key,i=e.style,o=e.styleSpec;n.type||n.ref||t.push(new Ie(r,n,'either "type" or "ref" is required'));var a,s=Le(n.type),l=Le(n.ref);if(n.id)for(var u=Le(n.id),c=0;c<e.arrayIndex;c++){var h=i.layers[c];Le(h.id)===u&&t.push(new Ie(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+h.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(e){e in n&&t.push(new Ie(r,n[e],'"'+e+'" is prohibited for ref layers'))})),i.layers.forEach((function(e){Le(e.id)===l&&(a=e)})),a?a.ref?t.push(new Ie(r,n.ref,"ref cannot reference another ref layer")):s=Le(a.type):t.push(new Ie(r,n.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(n.source){var p=i.sources&&i.sources[n.source],d=p&&Le(p.type);p?"vector"===d&&"raster"===s?t.push(new Ie(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===d&&"raster"!==s?t.push(new Ie(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==d||n["source-layer"]?"raster-dem"===d&&"hillshade"!==s?t.push(new Ie(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!n.paint||!n.paint["line-gradient"]||"geojson"===d&&p.lineMetrics||t.push(new Ie(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new Ie(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new Ie(r,n.source,'source "'+n.source+'" not found'))}else t.push(new Ie(r,n,'missing required property "source"'));return t=t.concat(Ln({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return rr({key:r+".type",value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:Yn,layout:function(e){return Ln({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return $n(Pe({layerType:s},e))}}})},paint:function(e){return Ln({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return Kn(Pe({layerType:s},e))}}})}}}))}function Qn(e){var t=e.value,n=e.key,r=e.styleSpec,i=e.style;if(!t.type)return[new Ie(n,t,'"type" is required')];var o,a=Le(t.type);switch(a){case"vector":case"raster":case"raster-dem":return Ln({key:n,value:t,valueSpec:r["source_"+a.replace("-","_")],style:e.style,styleSpec:r});case"geojson":if(o=Ln({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r}),t.cluster)for(var s in t.clusterProperties){var l=t.clusterProperties[s],u=l[0],c=l[1],h="string"==typeof u?[u,["accumulated"],["get",s]]:u;o.push.apply(o,Nn({key:n+"."+s+".map",value:c,expressionContext:"cluster-map"})),o.push.apply(o,Nn({key:n+"."+s+".reduce",value:h,expressionContext:"cluster-reduce"}))}return o;case"video":return Ln({key:n,value:t,valueSpec:r.source_video,style:i,styleSpec:r});case"image":return Ln({key:n,value:t,valueSpec:r.source_image,style:i,styleSpec:r});case"canvas":return[new Ie(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Bn({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:r})}}function er(e){var t=e.value,n=e.styleSpec,r=n.light,i=e.style,o=[],a=vn(t);if(void 0===t)return o;if("object"!==a)return o.concat([new Ie("light",t,"object expected, "+a+" found")]);for(var s in t){var l=s.match(/^(.*)-transition$/);o=l&&r[l[1]]&&r[l[1]].transition?o.concat(rr({key:s,value:t[s],valueSpec:n.transition,style:i,styleSpec:n})):r[s]?o.concat(rr({key:s,value:t[s],valueSpec:r[s],style:i,styleSpec:n})):o.concat([new Ie(s,t[s],'unknown property "'+s+'"')])}return o}function tr(e){var t=e.value,n=e.key,r=vn(t);return"string"!==r?[new Ie(n,t,"string expected, "+r+" found")]:[]}var nr={"*":function(){return[]},array:On,boolean:function(e){var t=e.value,n=e.key,r=vn(t);return"boolean"!==r?[new Ie(n,t,"boolean expected, "+r+" found")]:[]},number:Rn,color:function(e){var t=e.key,n=e.value,r=vn(n);return"string"!==r?[new Ie(t,n,"color expected, "+r+" found")]:null===$e(n)?[new Ie(t,n,'color expected, "'+n+'" found')]:[]},constants:Ae,enum:Bn,filter:Yn,function:zn,layer:Jn,object:Ln,source:Qn,light:er,string:tr,formatted:function(e){return 0===tr(e).length?[]:Nn(e)},resolvedImage:function(e){return 0===tr(e).length?[]:Nn(e)}};function rr(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&_n(Le(t))?zn(e):n.expression&&En(Oe(t))?Nn(e):n.type&&nr[n.type]?nr[n.type](e):Ln(Pe({},e,{valueSpec:n.type?r[n.type]:n}))}function ir(e){var t=e.value,n=e.key,r=tr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Ie(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Ie(n,t,'"glyphs" url must include a "{range}" token'))),r}function or(e,t){void 0===t&&(t=Ce);var n=[];return n=n.concat(rr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:ir,"*":function(){return[]}}})),e.constants&&(n=n.concat(Ae({key:"constants",value:e.constants,style:e,styleSpec:t}))),ar(n)}function ar(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function sr(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return ar(e.apply(this,t))}}or.source=sr(Qn),or.light=sr(er),or.layer=sr(Jn),or.filter=sr(Yn),or.paintProperty=sr(Kn),or.layoutProperty=sr($n);var lr=or,ur=lr.light,cr=lr.paintProperty,hr=lr.layoutProperty;function pr(e,t){var n=!1;if(t&&t.length)for(var r=0,i=t;r<i.length;r+=1){var o=i[r];e.fire(new Me(new Error(o.message))),n=!0}return n}var dr=fr;function fr(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var i=new Int32Array(this.arrayBuffer);e=i[0],t=i[1],n=i[2],this.d=t+2*n;for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var l=i[3+r.length],u=i[3+r.length+1];this.keys=i.subarray(l,u),this.bboxes=i.subarray(u),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var h=n/t*e;this.min=-h,this.max=e+h}fr.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},fr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},fr.prototype._insertCell=function(e,t,n,r,i,o){this.cells[i].push(o)},fr.prototype.query=function(e,t,n,r,i){var o=this.min,a=this.max;if(e<=o&&t<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,r,this._queryCell,s,{},i),s},fr.prototype._queryCell=function(e,t,n,r,i,o,a,s){var l=this.cells[i];if(null!==l)for(var u=this.keys,c=this.bboxes,h=0;h<l.length;h++){var p=l[h];if(void 0===a[p]){var d=4*p;(s?s(c[d+0],c[d+1],c[d+2],c[d+3]):e<=c[d+2]&&t<=c[d+3]&&n>=c[d+0]&&r>=c[d+1])?(a[p]=!0,o.push(u[p])):a[p]=!1}}},fr.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var l=this._convertToCellCoord(e),u=this._convertToCellCoord(t),c=this._convertToCellCoord(n),h=this._convertToCellCoord(r),p=l;p<=c;p++)for(var d=u;d<=h;d++){var f=this.d*d+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&i.call(this,e,t,n,r,f,o,a,s))return}},fr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},fr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},fr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(t+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=t,a=0;a<e.length;a++){var s=e[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+e.length]=o,i.set(this.keys,o),o+=this.keys.length,i[3+e.length+1]=o,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer};var mr=self.ImageData,gr={};function yr(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),gr[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}for(var vr in yr("Object",Object),dr.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},dr.deserialize=function(e){return new dr(e.buffer)},yr("Grid",dr),yr("Color",Je),yr("Error",Error),yr("ResolvedImage",nt),yr("StylePropertyFunction",Dn),yr("StyleExpression",Mn,{omit:["_evaluator"]}),yr("ZoomDependentExpression",An),yr("ZoomConstantExpression",In),yr("CompoundExpression",gt,{omit:["_evaluate"]}),ln)ln[vr]._classRegistryKey||yr("Expression_"+vr,ln[vr]);function _r(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function xr(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(_r(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof mr)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],i=0,o=e;i<o.length;i+=1){var a=o[i];r.push(xr(a,t))}return r}if("object"==typeof e){var s=e.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var u=s.serialize?s.serialize(e,t):{};if(!s.serialize){for(var c in e)if(e.hasOwnProperty(c)&&!(gr[l].omit.indexOf(c)>=0)){var h=e[c];u[c]=gr[l].shallow.indexOf(c)>=0?h:xr(h,t)}e instanceof Error&&(u.message=e.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(u.$name=l),u}throw new Error("can't serialize object of type "+typeof e)}function br(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||_r(e)||ArrayBuffer.isView(e)||e instanceof mr)return e;if(Array.isArray(e))return e.map(br);if("object"==typeof e){var t=e.$name||"Object",n=gr[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),i=0,o=Object.keys(e);i<o.length;i+=1){var a=o[i];if("$name"!==a){var s=e[a];r[a]=gr[t].shallow.indexOf(a)>=0?s:br(s)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var wr=function(){this.first=!0};wr.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))};var Sr={"Latin-1 Supplement":function(e){return e>=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>
vendor: 5,587 bytes, line 1
1=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function kr(e){for(var t=0,n=e;t<n.length;t+=1)if(Mr(n[t].charCodeAt(0)))return!0;return!1}function Tr(e){return!(Sr.Arabic(e)||Sr["Arabic Supplement"](e)||Sr["Arabic Extended-A"](e)||Sr["Arabic Presentation Forms-A"](e)||Sr["Arabic Presentation Forms-B"](e))}function Mr(e){return!(746!==e&&747!==e&&(e<4352||!(Sr["Bopomofo Extended"](e)||Sr.Bopomofo(e)||Sr["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Sr["CJK Compatibility Ideographs"](e)||Sr["CJK Compatibility"](e)||Sr["CJK Radicals Supplement"](e)||Sr["CJK Strokes"](e)||!(!Sr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Sr["CJK Unified Ideographs Extension A"](e)||Sr["CJK Unified Ideographs"](e)||Sr["Enclosed CJK Letters and Months"](e)||Sr["Hangul Compatibility Jamo"](e)||Sr["Hangul Jamo Extended-A"](e)||Sr["Hangul Jamo Extended-B"](e)||Sr["Hangul Jamo"](e)||Sr["Hangul Syllables"](e)||Sr.Hiragana(e)||Sr["Ideographic Description Characters"](e)||Sr.Kanbun(e)||Sr["Kangxi Radicals"](e)||Sr["Katakana Phonetic Extensions"](e)||Sr.Katakana(e)&&12540!==e||!(!Sr["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Sr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Sr["Unified Canadian Aboriginal Syllabics"](e)||Sr["Unified Canadian Aboriginal Syllabics Extended"](e)||Sr["Vertical Forms"](e)||Sr["Yijing Hexagram Symbols"](e)||Sr["Yi Syllables"](e)||Sr["Yi Radicals"](e))))}function Er(e){return!(Mr(e)||function(e){return!!(Sr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Sr["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Sr["Letterlike Symbols"](e)||Sr["Number Forms"](e)||Sr["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Sr["Control Pictures"](e)&&9251!==e||Sr["Optical Character Recognition"](e)||Sr["Enclosed Alphanumerics"](e)||Sr["Geometric Shapes"](e)||Sr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Sr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Sr["CJK Symbols and Punctuation"](e)||Sr.Katakana(e)||Sr["Private Use Area"](e)||Sr["CJK Compatibility Forms"](e)||Sr["Small Form Variants"](e)||Sr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Cr(e,t){return!(!t&&(e>=1424&&e<=2303||Sr["Arabic Presentation Forms-A"](e)||Sr["Arabic Presentation Forms-B"](e))||e>=2304&&e<=3583||e>=3840&&e<=4255||Sr.Khmer(e))}var Ir,Ar="unavailable",Pr="loading",Dr="loaded",Lr=Ar,Or=null,Rr=ne
vendor: 11,589 bytes, line 1
1w Ee,zr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Lr===Dr||null!=zr.applyArabicShaping}},Nr=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new wr,this.transition={})};Nr.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;n+=1)if(!Cr(r[n].charCodeAt(0),t))return!1;return!0}(e,zr.isLoaded())},Nr.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Nr.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var Br=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(_n(e))return new Dn(e,t);if(En(e)){var n=Pn(e,t);if("error"===n.result)throw new Error(n.value.map((function(e){return e.key+": "+e.message})).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=Je.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};Br.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Br.prototype.possiblyEvaluate=function(e,t){return this.property.possiblyEvaluate(this,e,t)};var Fr=function(e){this.property=e,this.value=new Br(e,void 0)};Fr.prototype.transitioned=function(e,t){return new jr(this.property,this.value,t,h({},e.transition,this.transition),e.now)},Fr.prototype.untransitioned=function(){return new jr(this.property,this.value,null,{},0)};var Vr=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};Vr.prototype.getValue=function(e){return x(this._values[e].value.value)},Vr.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Fr(this._values[e].property)),this._values[e].value=new Br(this._values[e].property,null===t?void 0:x(t))},Vr.prototype.getTransition=function(e){return x(this._values[e].transition)},Vr.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Fr(this._values[e].property)),this._values[e].transition=x(t)||void 0},Vr.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i);var o=this.getTransition(r);void 0!==o&&(e[r+"-transition"]=o)}return e},Vr.prototype.transitioned=function(e,t){for(var n=new Ur(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].transitioned(e,t._values[o])}return n},Vr.prototype.untransitioned=function(){for(var e=new Ur(this._properties),t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t];e._values[r]=this._values[r].untransitioned()}return e};var jr=function(e,t,n,r,i){this.property=e,this.value=t,this.begin=i+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};jr.prototype.possiblyEvaluate=function(e,t){var n=e.now||0,r=this.value.possiblyEvaluate(e,t),i=this.prior;if(i){if(n>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(n<this.begin)return i.possiblyEvaluate(e,t);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(e,t),r,function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(o))}return r};var Ur=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};Ur.prototype.possiblyEvaluate=function(e,t){for(var n=new Hr(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].possiblyEvaluate(e,t)}return n},Ur.prototype.hasTransition=function(){for(var e=0,t=Object.keys(this._values);e<t.length;e+=1){var n=t[e];if(this._values[n].prior)return!0}return!1};var Gr=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};Gr.prototype.getValue=function(e){return x(this._values[e].value)},Gr.prototype.setValue=function(e,t){this._values[e]=new Br(this._values[e].property,null===t?void 0:x(t))},Gr.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],i=this.getValue(r);void 0!==i&&(e[r]=i)}return e},Gr.prototype.possiblyEvaluate=function(e,t){for(var n=new Hr(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var o=i[r];n._values[o]=this._values[o].possiblyEvaluate(e,t)}return n};var qr=function(e,t,n){this.property=e,this.value=t,this.parameters=n};qr.prototype.isConstant=function(){return"constant"===this.value.kind},qr.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},qr.prototype.evaluate=function(e,t,n){return this.property.evaluate(this.value,this.parameters,e,t,n)};var Hr=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};Hr.prototype.get=function(e){return this._values[e]};var Wr=function(e){this.specification=e};Wr.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},Wr.prototype.interpolate=function(e,t,n){var r=Ct[this.specification.type];return r?r(e,t,n):e};var Zr=function(e,t){this.specification=e,this.overrides=t};Zr.prototype.possiblyEvaluate=function(e,t,n){return"constant"===e.expression.kind||"camera"===e.expression.kind?new qr(this,{kind:"constant",value:e.expression.evaluate(t,null,{},n)},t):new qr(this,e.expression,t)},Zr.prototype.interpolate=function(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new qr(this,{kind:"constant",value:void 0},e.parameters);var r=Ct[this.specification.type];return r?new qr(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},Zr.prototype.evaluate=function(e,t,n,r,i){return"constant"===e.kind?e.value:e.evaluate(t,n,r,i)};var Yr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(e,t,n){if(void 0===e.value)return new qr(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var r=e.expression.evaluate(t,null,{},n),i="resolvedImage"===e.property.specification.type&&"string"!=typeof r?r.name:r,o=this._calculate(i,i,i,t);return new qr(this,{kind:"constant",value:o},t)}if("camera"===e.expression.kind){var a=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new qr(this,{kind:"constant",value:a},t)}return new qr(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r,i){if("source"===e.kind){var o=e.evaluate(t,n,r,i);return this._calculate(o,o,o,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value},t.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(Zr),Xr=function(e){this.specification=e};Xr.prototype.possiblyEvaluate=function(e,t,n){if(void 0!==e.value){if("constant"===e.expression.kind){var r=e.expression.evaluate(t,null,{},n);return this._calculate(r,r,r,t)}return this._calculate(e.expression.evaluate(new Nr(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Nr(Math.floor(t.zoom),t)),e.expression.evaluate(new Nr(Math.floor(t.zoom+1),t)),t)}},Xr.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},Xr.prototype.interpolate=function(e){return e};var Kr=function(e){this.specification=e};Kr.prototype.possiblyEvaluate=function(e,t,n){return!!e.expression.evaluate(t,null,{},n)},Kr.prototype.interpolate=function(){return!1};var $r=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new Br(n,void 0),i=this.defaultTransitionablePropertyValues[t]=new Fr(n);this.defaultTransitioningPropertyValues[t]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};yr("DataDrivenProperty",Zr),yr("DataConstantProperty",Wr),yr("CrossFadedDataDrivenProperty",Yr),yr("CrossFadedProperty",Xr),yr("ColorRampProperty",Kr);var Jr=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter=function(){return!0},"custom"!==t.type&&(t=t,this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new Gr(n.layout)),n.paint)){for(var r in this._transitionablePaint=new Vr(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".layout."+e;if(this._validate(hr,r,e,t,n))return}"visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t},t.prototype.getPaintProperty=function(e){return y(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t){var r="layers."+this.id+".paint."+e;if(this._validate(cr,r,e,t,n))return!1}if(y(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var i=this._transitionablePaint._values[e],o="cross-faded-data-driven"===i.property.specification["property-type"],a=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||a||o||this._handleOverridablePaintPropertyUpdate(e,s,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,t)}
vendor: 16,384 bytes, line 1
1,t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),_(e,(function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)}))},t.prototype._validate=function(e,t,n,r,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&pr(this,e.call(lr,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Ce,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof qr&&mn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(Ee),Qr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},ei=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ti=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function ni(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map((function(e){var i,o=(i=e.type,Qr[i].BYTES_PER_ELEMENT),a=n=ri(n,Math.max(t,o)),s=e.components||1;return r=Math.max(r,o),n+=o*s,{name:e.name,type:e.type,components:s,offset:a}})),size:ri(n,Math.max(r,t)),alignment:t}}function ri(e,t){return Math.ceil(e/t)*t}ti.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},ti.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},ti.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ti.prototype.clear=function(){this.length=0},ti.prototype.resize=function(e){this.reserve(e),this.length=e},ti.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},ti.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var ii=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(ti);ii.prototype.bytesPerElement=4,yr("StructArrayLayout2i4",ii);var oi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,e},t}(ti);oi.prototype.bytesPerElement=8,yr("StructArrayLayout4i8",oi);var ai=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(ti);ai.prototype.bytesPerElement=12,yr("StructArrayLayout2i4i12",ai);var si=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=i,this.uint8[l+6]=o,this.uint8[l+7]=a,e},t}(ti);si.prototype.bytesPerElement=8,yr("StructArrayLayout2i4ub8",si);var li=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,l){var u=8*e;return this.uint16[u+0]=t,this.uint16[u+1]=n,this.uint16[u+2]=r,this.uint16[u+3]=i,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,e},t}(ti);li.prototype.bytesPerElement=16,yr("StructArrayLayout8ui16",li);var ui=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,e,t,n,r,i,o,a,s)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,l){var u=8*e;return this.int16[u+0]=t,this.int16[u+1]=n,this.int16[u+2]=r,this.int16[u+3]=i,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,e},t}(ti);ui.prototype.bytesPerElement=16,yr("StructArrayLayout4i4ui16",ui);var ci=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,e},t}(ti);ci.prototype.bytesPerElement=12,yr("StructArrayLayout3f12",ci);var hi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint32[n+0]=t,e},t}(ti);hi.prototype.bytesPerElement=4,yr("StructArrayLayout1ul4",hi);var pi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,l,u,c){var h=this.length;return this.resize(h+1),this.emplace(h,e,t,n,r,i,o,a,s,l,u,c)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,l,u,c,h){var p=12*e,d=6*e;return this.int16[p+0]=t,this.int16[p+1]=n,this.int16[p+2]=r,this.int16[p+3]=i,this.int16[p+4]=o,this.int16[p+5]=a,this.uint32[d+3]=s,this.uint16[p+8]=l,this.uint16[p+9]=u,this.int16[p+10]=c,this.int16[p+11]=h,e},t}(ti);pi.prototype.bytesPerElement=24,yr("StructArrayLayout6i1ul2ui2i24",pi);var di=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r,i,o)},t.prototype.emplace=function(e,t,n,r,i,o,a){var s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e},t}(ti);di.prototype.bytesPerElement=12,yr("StructArrayLayout2i2i2i12",di);var fi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=12*e,a=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,e},t}(ti);fi.prototype.bytesPerElement=12,yr("StructArrayLayout2ub2f12",fi);var mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g){var y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g,y){var v=24*e,_=12*e,x=48*e;return this.int16[v+0]=t,this.int16[v+1]=n,this.uint16[v+2]=r,this.uint16[v+3]=i,this.uint32[_+2]=o,this.uint32[_+3]=a,this.uint32[_+4]=s,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=c,this.float32[_+7]=h,this.float32[_+8]=p,this.uint8[x+36]=d,this.uint8[x+37]=f,this.uint8[x+38]=m,this.uint32[_+10]=g,this.int16[v+22]=y,e},t}(ti);mi.prototype.bytesPerElement=48,yr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",mi);var gi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g,y,v,_,x,b,w,S,k,T){var M=this.length;return this.resize(M+1),this.emplace(M,e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g,y,v,_,x,b,w,S,k,T)},t.prototype.emplace=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g,y,v,_,x,b,w,S,k,T,M){var E=30*e,C=15*e;return this.int16[E+0]=t,this.int16[E+1]=n,this.int16[E+2]=r,this.int16[E+3]=i,this.int16[E+4]=o,this.int16[E+5]=a,this.int16[E+6]=s,this.int16[E+7]=l,this.uint16[E+8]=u,this.uint16[E+9]=c,this.uint16[E+10]=h,this.uint16[E+11]=p,this.uint16[E+12]=d,this.uint16[E+13]=f,this.uint16[E+14]=m,this.uint16[E+15]=g,this.uint16[E+16]=y,this.uint16[E+17]=v,this.uint16[E+18]=_,this.uint16[E+19]=x,this.uint16[E+20]=b,this.uint16[E+21]=w,this.uint32[C+11]=S,this.float32[C+12]=k,this.float32[C+13]=T,this.float32[C+14]=M,e},t}(ti);gi.prototype.bytesPerElement=60,yr("StructArrayLayout8i14ui1ul3f60",gi);var yi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.float32[n+0]=t,e},t}(ti);yi.prototype.bytesPerElement=4,yr("StructArrayLayout1f4",yi);var vi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.int16[i+0]=t,this.int16[i+1]=n,this.int16[i+2]=r,e},t}(ti);vi.prototype.bytesPerElement=6,yr("StructArrayLayout3i6",vi);var _i=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=2*e,o=4*e;return this.uint32[i+0]=t,this.uint16[o+2]=n,this.uint16[o+3]=r,e},t}(ti);_i.prototype.bytesPerElement=8,yr("StructArrayLayout1ul2ui8",_i);var xi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,this.uint16[i+2]=r,e},t}(ti);xi.prototype.bytesPerElement=6,yr("StructArrayLayout3ui6",xi);var bi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(ti);bi.prototype.bytesPerElement=4,yr("StructArrayLayout2ui4",bi);var wi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){var n=1*e;return this.uint16[n+0]=t,e},t}(ti);wi.prototype.bytesPerElement=2,yr("StructArrayLayout1ui2",wi);var Si=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(ti);Si.prototype.bytesPerElement=8,yr("StructArrayLayout2f8",Si);var ki=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(th
vendor: 12,673 bytes, line 1
1is.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,i){var o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,e},t}(ti);ki.prototype.bytesPerElement=16,yr("StructArrayLayout4f16",ki);var Ti=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorPointY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.x1.set=function(e){this._structArray.int16[this._pos2+2]=e},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.y1.set=function(e){this._structArray.int16[this._pos2+3]=e},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.x2.set=function(e){this._structArray.int16[this._pos2+4]=e},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.y2.set=function(e){this._structArray.int16[this._pos2+5]=e},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.featureIndex.set=function(e){this._structArray.uint32[this._pos4+3]=e},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.sourceLayerIndex.set=function(e){this._structArray.uint16[this._pos2+8]=e},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.bucketIndex.set=function(e){this._structArray.uint16[this._pos2+9]=e},n.radius.get=function(){return this._structArray.int16[this._pos2+10]},n.radius.set=function(e){this._structArray.int16[this._pos2+10]=e},n.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},n.signedDistanceFromAnchor.set=function(e){this._structArray.int16[this._pos2+11]=e},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(ei);Ti.prototype.size=24;var Mi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ti(this,e)},t}(pi);yr("CollisionBoxArray",Mi);var Ei=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.glyphStartIndex.set=function(e){this._structArray.uint16[this._pos2+2]=e},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.numGlyphs.set=function(e){this._structArray.uint16[this._pos2+3]=e},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.vertexStartIndex.set=function(e){this._structArray.uint32[this._pos4+2]=e},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineStartIndex.set=function(e){this._structArray.uint32[this._pos4+3]=e},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.lineLength.set=function(e){this._structArray.uint32[this._pos4+4]=e},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.segment.set=function(e){this._structArray.uint16[this._pos2+10]=e},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.lowerSize.set=function(e){this._structArray.uint16[this._pos2+11]=e},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.upperSize.set=function(e){this._structArray.uint16[this._pos2+12]=e},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetX.set=function(e){this._structArray.float32[this._pos4+7]=e},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.lineOffsetY.set=function(e){this._structArray.float32[this._pos4+8]=e},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.writingMode.set=function(e){this._structArray.uint8[this._pos1+36]=e},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},n.associatedIconIndex.set=function(e){this._structArray.int16[this._pos2+22]=e},Object.defineProperties(t.prototype,n),t}(ei);Ei.prototype.size=48;var Ci=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ei(this,e)},t}(mi);yr("PlacedSymbolArray",Ci);var Ii=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorX.set=function(e){this._structArray.int16[this._pos2+0]=e},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.anchorY.set=function(e){this._structArray.int16[this._pos2+1]=e},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.rightJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+2]=e},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.centerJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+3]=e},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.leftJustifiedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+4]=e},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.verticalPlacedTextSymbolIndex.set=function(e){this._structArray.int16[this._pos2+5]=e},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.placedIconSymbolIndex.set=function(e){this._structArray.int16[this._pos2+6]=e},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.verticalPlacedIconSymbolIndex.set=function(e){this._structArray.int16[this._pos2+7]=e},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.key.set=function(e){this._structArray.uint16[this._pos2+8]=e},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+9]=e},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.textBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+10]=e},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+11]=e},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.verticalTextBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+12]=e},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+13]=e},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.iconBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+14]=e},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxStartIndex.set=function(e){this._structArray.uint16[this._pos2+15]=e},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.verticalIconBoxEndIndex.set=function(e){this._structArray.uint16[this._pos2+16]=e},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.featureIndex.set=function(e){this._structArray.uint16[this._pos2+17]=e},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numHorizontalGlyphVertices.set=function(e){this._structArray.uint16[this._pos2+18]=e},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numVerticalGlyphVertices.set=function(e){this._structArray.uint16[this._pos2+19]=e},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numIconVertices.set=function(e){this._structArray.uint16[this._pos2+20]=e},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.numVerticalIconVertices.set=function(e){this._structArray.uint16[this._pos2+21]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+11]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+11]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+12]},n.textBoxScale.set=function(e){this._structArray.float32[this._pos4+12]=e},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.set=function(e){this._structArray.float32[this._pos4+13]=e},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.set=function(e){this._structArray.float32[this._pos4+14]=e},Object.defineProperties(t.prototype,n),t}(ei);Ii.prototype.size=60;var Ai=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ii(this,e)},t}(gi);yr("SymbolInstanceArray",Ai);var Pi=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={offsetX:{configurable:!0}};return n.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},n.offsetX.set=function(e){this._structArray.float32[this._pos4+0]=e},Object.defineProperties(t.prototype,n),t}(ei);Pi.prototype.size=4;var Di=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t.prototype.get=function(e){return new Pi(this,e)},t}(yi);
vendor: 16,384 bytes, line 1
1yr("GlyphOffsetArray",Di);var Li=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return n.x.get=function(){return this._structArray.int16[this._pos2+0]},n.x.set=function(e){this._structArray.int16[this._pos2+0]=e},n.y.get=function(){return this._structArray.int16[this._pos2+1]},n.y.set=function(e){this._structArray.int16[this._pos2+1]=e},n.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},n.tileUnitDistanceFromAnchor.set=function(e){this._structArray.int16[this._pos2+2]=e},Object.defineProperties(t.prototype,n),t}(ei);Li.prototype.size=6;var Oi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t.prototype.get=function(e){return new Li(this,e)},t}(vi);yr("SymbolLineVertexArray",Oi);var Ri=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.featureIndex.set=function(e){this._structArray.uint32[this._pos4+0]=e},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.sourceLayerIndex.set=function(e){this._structArray.uint16[this._pos2+2]=e},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},n.bucketIndex.set=function(e){this._structArray.uint16[this._pos2+3]=e},Object.defineProperties(t.prototype,n),t}(ei);Ri.prototype.size=8;var zi=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e){return new Ri(this,e)},t}(_i);yr("FeatureIndexArray",zi);var Ni=ni([{name:"a_pos",components:2,type:"Int16"}],4).members,Bi=function(e){void 0===e&&(e=[]),this.segments=e};function Fi(e,t){return 256*(e=u(Math.floor(e),0,255))+u(Math.floor(t),0,255)}Bi.prototype.prepareSegment=function(e,t,n,r){var i=this.segments[this.segments.length-1];return e>Bi.MAX_VERTEX_ARRAY_LENGTH&&w("Max vertices per segment is "+Bi.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!i||i.vertexLength+e>Bi.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},Bi.prototype.get=function(){return this.segments},Bi.prototype.destroy=function(){for(var e=0,t=this.segments;e<t.length;e+=1){var n=t[e];for(var r in n.vaos)n.vaos[r].destroy()}},Bi.simpleSegment=function(e,t,n,r){return new Bi([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},Bi.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,yr("SegmentVector",Bi);var Vi=function(){this.ids=[],this.positions=[],this.indexed=!1};function ji(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}Vi.prototype.add=function(e,t,n,r){this.ids.push(e),this.positions.push(t,n,r)},Vi.prototype.getPositions=function(e){for(var t=0,n=this.ids.length-1;t<n;){var r=t+n>>1;this.ids[r]>=e?n=r:t=r+1}for(var i=[];this.ids[t]===e;){var o=this.positions[3*t],a=this.positions[3*t+1],s=this.positions[3*t+2];i.push({index:o,start:a,end:s}),t++}return i},Vi.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,i){if(!(r>=i)){for(var o=t[r+i>>1],a=r-1,s=i+1;;){do{a++}while(t[a]<o);do{s--}while(t[s]>o);if(a>=s)break;ji(t,a,s),ji(n,3*a,3*s),ji(n,3*a+1,3*s+1),ji(n,3*a+2,3*s+2)}e(t,n,r,s),e(t,n,s+1,i)}}(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}},Vi.deserialize=function(e){var t=new Vi;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t},yr("FeaturePositionMap",Vi);var Ui=function(e,t){this.gl=e.gl,this.location=t},Gi=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))},t}(Ui),qi=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))},t}(Ui),Hi=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))},t}(Ui),Wi=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))},t}(Ui),Zi=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0,0]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))},t}(Ui),Yi=function(e){function t(t,n){e.call(this,t,n),this.current=Je.transparent}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))},t}(Ui),Xi=new Float32Array(16),Ki=function(e){function t(t,n){e.call(this,t,n),this.current=Xi}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(var t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}},t}(Ui);function $i(e){return[Fi(255*e.r,255*e.g),Fi(255*e.b,255*e.a)]}var Ji=function(e,t,n){this.value=e,this.names=t,this.uniformNames=this.names.map((function(e){return"u_"+e})),this.type=n,this.maxValue=-1/0};Ji.prototype.defines=function(){return this.names.map((function(e){return"#define HAS_UNIFORM_u_"+e}))},Ji.prototype.setConstantPatternPositions=function(){},Ji.prototype.populatePaintArray=function(){},Ji.prototype.updatePaintArray=function(){},Ji.prototype.upload=function(){},Ji.prototype.destroy=function(){},Ji.prototype.setUniforms=function(e,t,n,r){t.set(r.constantOr(this.value))},Ji.prototype.getBinding=function(e,t){return"color"===this.type?new Yi(e,t):new qi(e,t)},Ji.serialize=function(e){var t=e.value,n=e.names,r=e.type;return{value:xr(t),names:n,type:r}},Ji.deserialize=function(e){var t=e.value,n=e.names,r=e.type;return new Ji(br(t),n,r)};var Qi=function(e,t,n){this.value=e,this.names=t,this.uniformNames=this.names.map((function(e){return"u_"+e})),this.type=n,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};Qi.prototype.defines=function(){return this.names.map((function(e){return"#define HAS_UNIFORM_u_"+e}))},Qi.prototype.populatePaintArray=function(){},Qi.prototype.updatePaintArray=function(){},Qi.prototype.upload=function(){},Qi.prototype.destroy=function(){},Qi.prototype.setConstantPatternPositions=function(e,t){this.patternPositions.patternTo=e.tlbr,this.patternPositions.patternFrom=t.tlbr},Qi.prototype.setUniforms=function(e,t,n,r,i){var o=this.patternPositions;"u_pattern_to"===i&&o.patternTo&&t.set(o.patternTo),"u_pattern_from"===i&&o.patternFrom&&t.set(o.patternFrom)},Qi.prototype.getBinding=function(e,t){return new Zi(e,t)};var eo=function(e,t,n,r){this.expression=e,this.names=t,this.type=n,this.uniformNames=this.names.map((function(e){return"a_"+e})),this.maxValue=-1/0,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0}})),this.paintVertexArray=new r};eo.prototype.defines=function(){return[]},eo.prototype.setConstantPatternPositions=function(){},eo.prototype.populatePaintArray=function(e,t,n,r){var i=this.paintVertexArray,o=i.length;i.reserve(e);var a=this.expression.evaluate(new Nr(0),t,{},[],r);if("color"===this.type)for(var s=$i(a),l=o;l<e;l++)i.emplaceBack(s[0],s[1]);else{for(var u=o;u<e;u++)i.emplaceBack(a);this.maxValue=Math.max(this.maxValue,a)}},eo.prototype.updatePaintArray=function(e,t,n,r){var i=this.paintVertexArray,o=this.expression.evaluate({zoom:0},n,r);if("color"===this.type)for(var a=$i(o),s=e;s<t;s++)i.emplace(s,a[0],a[1]);else{for(var l=e;l<t;l++)i.emplace(l,o);this.maxValue=Math.max(this.maxValue,o)}},eo.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},eo.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},eo.prototype.setUniforms=function(e,t){t.set(0)},eo.prototype.getBinding=function(e,t){return new qi(e,t)};var to=function(e,t,n,r,i,o){this.expression=e,this.names=t,this.uniformNames=this.names.map((function(e){return"u_"+e+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=i,this.maxValue=-1/0;var a=o;this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0}})),this.paintVertexArray=new a};to.prototype.defines=function(){return[]},to.prototype.setConstantPatternPositions=function(){},to.prototype.populatePaintArray=function(e,t,n,r){var i=this.paintVertexArray,o=i.length;i.reserve(e);var a=this.expression.evaluate(new Nr(this.zoom),t,{},[],r),s=this.expression.evaluate(new Nr(this.zoom+1),t,{},[],r);if("color"===this.type)for(var l=$i(a),u=$i(s),c=o;c<e;c++)i.emplaceBack(l[0],l[1],u[0],u[1]);else{for(var h=o;h<e;h++)i.emplaceBack(a,s);this.maxValue=Math.max(this.maxValue,a,s)}},to.prototype.updatePaintArray=function(e,t,n,r){var i=this.paintVertexArray,o=this.expression.evaluate({zoom:this.zoom},n,r),a=this.expression.evaluate({zoom:this.zoom+1},n,r);if("color"===this.type)for(var s=$i(o),l=$i(a),u=e;u<t;u++)i.emplace(u,s[0],s[1],l[0],l[1]);else{for(var c=e;c<t;c++)i.emplace(c,o,a);this.maxValue=Math.max(this.maxValue,o,a)}},to.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},to.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},to.prototype.interpolationFactor=function(e){return this.useIntegerZoom&&(e=Math.floor(e)),u(this.expression.interpolationFactor(e,this.zoom,this.zoom+1),0,1)},to.prototype.setUniforms=function(e,t,n){t.set(this.interpolationFactor(n.zoom))},to.prototype.getBinding=function(e,t){return new qi(e,t)};var no=function(e,t,n,r,i,o,a){this.expression=e,this.names=t,this.type=n,this.uniformNames=this.names.map((function(e){return"u_"+e+"_t"})),this.useIntegerZoom=r,this.zoom=i,this.maxValue=-1/0,this.layerId=a,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Uint16",components:4,offset:0}})),this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};no.prototype.defines=function(){return[]},no.prototype.setConstantPatternPositions=function(){},no.prototype.populatePaintArray=function(e,t,n){var r=this.zoomInPaintVertexArray,i=this.zoomOutPaintVertexArray,o=this.layerId,a=r.length;if(r.reserve(e),i.reserve(e),n&&t.patterns&&t.patterns[o]){var s=t.patterns[o],l=s.min,u=s.mid,c=s.max,h=n[l],p=n[u],d=n[c];if(!h||!p||!d)return;for(var f=a;f<e;f++)r.emplaceBack(p.tl[0],p.tl[1],p.br[0],p.br[1],h.tl[0],h.tl[1],h.br[0],h.br[1]),i.emplaceBack(p.tl[0],p.tl[1],p.br[0],p.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1])}},no.prototype.updatePaintArray=function(e,t,n,r,i){var o=this.zoomInPaintVertexArray,a=this.zoomOutPaintVertexArray,s=this.layerId;if(i&&n.patterns&&n.patterns[s]){var l=n.patterns[s],u=l.min,c=l.mid,h=l.max,p=i[u],d=i[c],f=i[h];if(!p||!d||!f)return;for(var m=e;m<t;m++)o.emplace(m,d.tl[0],d.tl[1],d.br[0],d.br[1],p.tl[0],p.tl[1],p.br[0],p.br[1]),a.emplace(m,d.tl[0],d.tl[1],d.br[0],d.br[1],f.tl[0],f.tl[1],f.br[0],f.br[1])}},no.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},no.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()},no.prototype.setUniforms=function(e,t){t.set(0)},no.prototype.getBinding=function(e,t){return new qi(e,t)};var ro=function(){this.binders={},this.cacheKey="",this._buffers=[],this._featureMap=new Vi,this._bufferOffset=0};ro.createDynamic=function(e,t,n){var r=new ro,i=[];for(var o in e.paint._values)if(n(o)){var a=e.paint.get(o);if(a instanceof qr&&mn(a.property.specification)){var s=oo(o,e.type),l=a.property.specification.type,u=a.property.useIntegerZoom;if("cross-faded"===a.property.specification["property-type"]||"cross-faded-data-driven"===a.property.specification["property-type"])if("constant"===a.value.kind)r.binders[o]=new Qi(a.value.value,s,l),i.push("/u_"+o);else{var c=ao(o,l,"source");r.binders[o]=new no(a.value,s,l,u,t,c,e.id),i.push("/a_"+o)}else if("constant"===a.value.kind)r.binders[o]=new Ji(a.value.value,s,l),i.push("/u_"+o);else if("source"===a.value.kind){var h=ao(o,l,"source");r.binders[o]=new eo(a.value,s,l,h),i.push("/a_"+o)}else{var p=ao(o,l,"composite");r.binders[o]=new to(a.value,s,l,u,t,p),i.push("/z_"+o)}}}return r.cacheKey=i.sort().join(""),r},ro.prototype.populatePaintArrays=function(e,t,n,r,i){for(var o in this.binders)this.binders[o].populatePaintArray(e,t,r,i);void 0!==t.id&&this._featureMap.add(+t.id,n,this._bufferOffset,e),this._bufferOffset=e},ro.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders)this.binders[n].setConstantPatternPositions(e,t)},ro.prototype.updatePaintArrays=function(e,t,n,r){var i=!1;for(var o in e)for(var a=0,s=this._featureMap.getPositions(+o);a<s.length;a+=1){var l=s[a],u=t.feature(l.index);for(var c in this.binders){var h=this.binders[c];if(!(h instanceof Ji||h instanceof Qi)&&!0===h.expression.isStateDependent){var p=n.paint.get(c);h.expression=p.value,h.updatePaintArray(l.start,l.end,u,e[o],r),i=!0}}}return i},ro.prototype.defines=function(){var e=[];for(var t in this.binders)e.push.apply(e,this.binders[t].defines());return e},ro.prototype.getPaintVertexBuffers=function(){return this._buffers},ro.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders)for(var i=this.binders[r],o=0,a=i.uniformNames;o<a.length;o+=1){var s=a[o];if(t[s]){var l=i.getBinding(e,t[s]);n.push({name:s,property:r,binding:l})}}return n},ro.prototype.setUniforms=function(e,t,n,r){for(var i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.name,l=a.property,u=a.binding;this.binders[l].setUniforms(e,u,r,n.get(l),s)}},ro.prototype.updatePatternPaintBuffers=function(e){var t=[];for(var n in this.binders){var r=this.binders[n];if(r instanceof no){var i=2===e.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&t.push(i)}else(r instanceof eo||r instanceof to)&&r.paintVertexBuffer&&t.pus
vendor: 16,496 bytes, line 1
1h(r.paintVertexBuffer)}this._buffers=t},ro.prototype.upload=function(e){for(var t in this.binders)this.binders[t].upload(e);var n=[];for(var r in this.binders){var i=this.binders[r];(i instanceof eo||i instanceof to)&&i.paintVertexBuffer&&n.push(i.paintVertexBuffer)}this._buffers=n},ro.prototype.destroy=function(){for(var e in this.binders)this.binders[e].destroy()};var io=function(e,t,n,r){void 0===r&&(r=function(){return!0}),this.programConfigurations={};for(var i=0,o=t;i<o.length;i+=1){var a=o[i];this.programConfigurations[a.id]=ro.createDynamic(a,n,r),this.programConfigurations[a.id].layoutAttributes=e}this.needsUpload=!1};function oo(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function ao(e,t,n){var r={color:{source:Si,composite:ki},number:{source:yi,composite:Si}},i=function(e){return{"line-pattern":{source:li,composite:li},"fill-pattern":{source:li,composite:li},"fill-extrusion-pattern":{source:li,composite:li}}[e]}(e);return i&&i[n]||r[t][n]}io.prototype.populatePaintArrays=function(e,t,n,r,i){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(e,t,n,r,i);this.needsUpload=!0},io.prototype.updatePaintArrays=function(e,t,n,r){for(var i=0,o=n;i<o.length;i+=1){var a=o[i];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,t,a,r)||this.needsUpload}},io.prototype.get=function(e){return this.programConfigurations[e]},io.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},io.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},yr("ConstantBinder",Ji),yr("CrossFadedConstantBinder",Qi),yr("SourceExpressionBinder",eo),yr("CrossFadedCompositeBinder",no),yr("CompositeExpressionBinder",to),yr("ProgramConfiguration",ro,{omit:["_buffers"]}),yr("ProgramConfigurationSet",io);var so=8192,lo={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function uo(e){for(var t=so/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.length;o++){var a=i[o];a.x=Math.round(a.x*t),a.y=Math.round(a.y*t),(a.x<lo.min||a.x>lo.max||a.y<lo.min||a.y>lo.max)&&(w("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a.x=u(a.x,lo.min,lo.max),a.y=u(a.y,lo.min,lo.max))}return n}function co(e,t,n,r,i){e.emplaceBack(2*t+(r+1)/2,2*n+(i+1)/2)}var ho=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ii,this.indexArray=new xi,this.segments=new Bi,this.programConfigurations=new io(Ni,e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function po(e,t){for(var n=0;n<e.length;n++)if(wo(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(wo(e,t[r]))return!0;return!!yo(e,t)}function fo(e,t,n){return!!wo(e,t)||!!_o(t,e,n)}function mo(e,t){if(1===e.length)return bo(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)if(wo(e,r[i]))return!0;for(var o=0;o<e.length;o++)if(bo(t,e[o]))return!0;for(var a=0;a<t.length;a++)if(yo(e,t[a]))return!0;return!1}function go(e,t,n){if(e.length>1){if(yo(e,t))return!0;for(var r=0;r<t.length;r++)if(_o(t[r],e,n))return!0}for(var i=0;i<e.length;i++)if(_o(e[i],t,n))return!0;return!1}function yo(e,t){if(0===e.length||0===t.length)return!1;for(var n=0;n<e.length-1;n++)for(var r=e[n],i=e[n+1],o=0;o<t.length-1;o++)if(vo(r,i,t[o],t[o+1]))return!0;return!1}function vo(e,t,n,r){return S(e,n,r)!==S(t,n,r)&&S(e,t,n)!==S(e,t,r)}function _o(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var i=1;i<t.length;i++)if(xo(e,t[i-1],t[i])<r)return!0;return!1}function xo(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return i<0?e.distSqr(t):i>1?e.distSqr(n):e.distSqr(n.sub(t)._mult(i)._add(t))}function bo(e,t){for(var n,r,i,o=!1,a=0;a<e.length;a++)for(var s=0,l=(n=e[a]).length-1;s<n.length;l=s++)r=n[s],i=n[l],r.y>t.y!=i.y>t.y&&t.x<(i.x-r.x)*(t.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function wo(e,t){for(var n=!1,r=0,i=e.length-1;r<e.length;i=r++){var o=e[r],a=e[i];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function So(e,t,n){var r=n[0],i=n[2];if(e.x<r.x&&t.x<r.x||e.x>i.x&&t.x>i.x||e.y<r.y&&t.y<r.y||e.y>i.y&&t.y>i.y)return!1;var o=S(e,t,n[0]);return o!==S(e,t,n[1])||o!==S(e,t,n[2])||o!==S(e,t,n[3])}function ko(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).binders[e].maxValue}function To(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Mo(e,t,n,r,o){if(!t[0]&&!t[1])return e;var a=i.convert(t)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],l=0;l<e.length;l++){var u=e[l];s.push(u.sub(a))}return s}ho.prototype.populate=function(e,t){var n=this.layers[0],r=[],i=null;"circle"===n.type&&(i=n.layout.get("circle-sort-key"));for(var o=0,a=e;o<a.length;o+=1){var s=a[o],l=s.feature,u=s.index,c=s.sourceLayerIndex;if(this.layers[0]._featureFilter(new Nr(this.zoom),l)){var h=uo(l),p=i?i.evaluate(l,{}):void 0,d={id:l.id,properties:l.properties,type:l.type,sourceLayerIndex:c,index:u,geometry:h,patterns:{},sortKey:p};r.push(d)}}i&&r.sort((function(e,t){return e.sortKey-t.sortKey}));for(var f=0,m=r;f<m.length;f+=1){var g=m[f],y=g,v=y.geometry,_=y.index,x=y.sourceLayerIndex,b=e[_].feature;this.addFeature(g,v,_),t.featureIndex.insert(b,v,_,x,this.index)}},ho.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},ho.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ho.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ho.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ni),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},ho.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},ho.prototype.addFeature=function(e,t,n){for(var r=0,i=t;r<i.length;r+=1)for(var o=0,a=i[r];o<a.length;o+=1){var s=a[o],l=s.x,u=s.y;if(!(l<0||l>=so||u<0||u>=so)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),h=c.vertexLength;co(this.layoutVertexArray,l,u,-1,-1),co(this.layoutVertexArray,l,u,1,-1),co(this.layoutVertexArray,l,u,1,1),co(this.layoutVertexArray,l,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{})},yr("CircleBucket",ho,{omit:["layers"]});var Eo,Co=new $r({"circle-sort-key":new Zr(Ce.layout_circle["circle-sort-key"])}),Io={paint:new $r({"circle-radius":new Zr(Ce.paint_circle["circle-radius"]),"circle-color":new Zr(Ce.paint_circle["circle-color"]),"circle-blur":new Zr(Ce.paint_circle["circle-blur"]),"circle-opacity":new Zr(Ce.paint_circle["circle-opacity"]),"circle-translate":new Wr(Ce.paint_circle["circle-translate"]),"circle-translate-anchor":new Wr(Ce.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Wr(Ce.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Wr(Ce.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Zr(Ce.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Zr(Ce.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Zr(Ce.paint_circle["circle-stroke-opacity"])}),layout:Co},Ao="undefined"!=typeof Float32Array?Float32Array:Array;function Po(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,n=arguments.length;n--;)t+=e[n]*e[n];return Math.sqrt(t)}),Eo=new Ao(3),Ao!=Float32Array&&(Eo[0]=0,Eo[1]=0,Eo[2]=0),function(){var e=new Ao(4);Ao!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var Do=function(e){function t(t){e.call(this,t,Io)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new ho(e)},t.prototype.queryRadius=function(e){var t=e;return ko("circle-radius",this,t)+ko("circle-stroke-width",this,t)+To(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a,s){for(var l=Mo(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),c="map"===this.paint.get("circle-pitch-alignment"),h=c?l:function(e,t){return e.map((function(e){return Lo(e,t)}))}(l,s),p=c?u*a:u,d=0,f=r;d<f.length;d+=1)for(var m=0,g=f[d];m<g.length;m+=1){var y=g[m],v=c?y:Lo(y,s),_=p,x=Po([],[y.x,y.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?_*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(_*=o.cameraToCenterDistance/x[3]),fo(h,v,_))return!0}return!1},t}(Jr);function Lo(e,t){var n=Po([],[e.x,e.y,0,1],t);return new i(n[0]/n[3],n[1]/n[3])}var Oo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(ho);function Ro(e,t,n,r){var i=t.width,o=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return e.width=i,e.height=o,e.data=r,e}function zo(e,t,n){var r=t.width,i=t.height;if(r!==e.width||i!==e.height){var o=Ro({},{width:r,height:i},n);No(e,o,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,i)},n),e.width=r,e.height=i,e.data=o.data}}function No(e,t,n,r,i,o){if(0===i.width||0===i.height)return t;if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=e.data,s=t.data,l=0;l<i.height;l++)for(var u=((n.y+l)*e.width+n.x)*o,c=((r.y+l)*t.width+r.x)*o,h=0;h<i.width*o;h++)s[c+h]=a[u+h];return t}yr("HeatmapBucket",Oo,{omit:["layers"]});var Bo=function(e,t){Ro(this,e,1,t)};Bo.prototype.resize=function(e){zo(this,e,1)},Bo.prototype.clone=function(){return new Bo({width:this.width,height:this.height},new Uint8Array(this.data))},Bo.copy=function(e,t,n,r,i){No(e,t,n,r,i,1)};var Fo=function(e,t){Ro(this,e,4,t)};Fo.prototype.resize=function(e){zo(this,e,4)},Fo.prototype.replace=function(e,t){t?this.data.set(e):e instanceof Uint8ClampedArray?this.data=new Uint8Array(e.buffer):this.data=e},Fo.prototype.clone=function(){return new Fo({width:this.width,height:this.height},new Uint8Array(this.data))},Fo.copy=function(e,t,n,r,i){No(e,t,n,r,i,4)},yr("AlphaImage",Bo),yr("RGBAImage",Fo);var Vo={paint:new $r({"heatmap-radius":new Zr(Ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Zr(Ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Wr(Ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Kr(Ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Wr(Ce.paint_heatmap["heatmap-opacity"])})};function jo(e,t){for(var n=new Uint8Array(1024),r={},i=0,o=0;i<256;i++,o+=4){r[t]=i/255;var a=e.evaluate(r);n[o+0]=Math.floor(255*a.r/a.a),n[o+1]=Math.floor(255*a.g/a.a),n[o+2]=Math.floor(255*a.b/a.a),n[o+3]=Math.floor(255*a.a)}return new Fo({width:256,height:1},n)}var Uo=function(e){function t(t){e.call(this,t,Vo),this._updateColorRamp()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new Oo(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){var e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=jo(e,"heatmapDensity"),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(Jr),Go={paint:new $r({"hillshade-illumination-direction":new Wr(Ce.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Wr(Ce.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Wr(Ce.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Wr(Ce.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Wr(Ce.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Wr(Ce.paint_hillshade["hillshade-accent-color"])})},qo=function(e){function t(t){e.call(this,t,Go)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(Jr),Ho=ni([{name:"a_pos",components:2,type:"Int16"}],4).members,Wo=Yo,Zo=Yo;function Yo(e,t,n){n=n||2;var r,i,o,a,s,l,u,c=t&&t.length,h=c?t[0]*n:e.length,p=Xo(e,0,h,n,!0),d=[];if(!p||p.next===p.prev)return d;if(c&&(p=function(e,t,n,r){var i,o,a,s=[];for(i=0,o=t.length;i<o;i++)(a=Xo(e,t[i]*r,i<o-1?t[i+1]*r:e.length,r,!1))===a.next&&(a.steiner=!0),s.push(aa(a));for(s.sort(na),i=0;i<s.length;i++)ra(s[i],n),n=Ko(n,n.next);return n}(e,t,p,n)),e.length>80*n){r=o=e[0],i=a=e[1];for(var f=n;f<h;f+=n)(s=e[f])<r&&(r=s),(l=e[f+1])<i&&(i=l),s>o&&(o=s),l>a&&(a=l);u=0!==(u=Math.max(o-r,a-i))?1/u:0}return $o(p,d,n,r,i,u),d}function Xo(e,t,n,r,i){var o,a;if(i===_a(e,t,n,r)>0)for(o=t;o<n;o+=r)a=ga(o,e[o],e[o+1],a);else for(o=n-r;o>=t;o-=r)a=ga(o,e[o],e[o+1],a);return a&&ca(a,a.next)&&(ya(a),a=a.next),a}function Ko(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!ca(r,r.next)&&0!==ua(r.prev,r,r.next))r=r.next;else{if(ya(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function $o(e,t,n,r,i,o,a){if(e){!a&&o&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=oa(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,u=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t<u&&(s++,r=r.nextZ);t++);for(l=u;s>0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(e,r,i,o);for(var s,l,u=e;e.prev!==e.next;)if(s=e.prev,l=e.next,o?Qo(e,r,i,o):Jo(e))t.push(s.i/n),t.push(e.i/n),t.push(l.i/n),ya(e),e=l.next,u=l.next;else if((e=l)===u){a?1===a?$o(e=ea(Ko(e),t,n),t,n,r,i,o,2):2===a&&ta(e,t,n,r,i,o):$o(Ko(e),t,n,r,i,o,1);break}}}function Jo(e){var t=e.prev,n=e,r=e.next;if(ua(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(sa(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&ua(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Qo(e,t,n,r){var i=e.prev,o=e,a=e.next;if(ua(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,l=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,u=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,h=oa(s,l,t,n,r),p=oa(u,c,t,n,r),d=e.prevZ,f=e.nextZ;d&&d.z>=h&&f&&f.z<=p;){if(d!==e.prev&&d!==e.next&&sa(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ua(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,f!==e.prev&&f!==e.next&&sa(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ua(f.prev,f,f.next)>=0)return!1;
vendor: 6,161 bytes, line 1
1f=f.nextZ}for(;d&&d.z>=h;){if(d!==e.prev&&d!==e.next&&sa(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ua(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;f&&f.z<=p;){if(f!==e.prev&&f!==e.next&&sa(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ua(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function ea(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!ca(i,o)&&ha(i,r,r.next,o)&&fa(i,o)&&fa(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),ya(r),ya(r.next),r=e=o),r=r.next}while(r!==e);return Ko(r)}function ta(e,t,n,r,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&la(a,s)){var l=ma(a,s);return a=Ko(a,a.next),l=Ko(l,l.next),$o(a,t,n,r,i,o),void $o(l,t,n,r,i,o)}s=s.next}a=a.next}while(a!==e)}function na(e,t){return e.x-t.x}function ra(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(i===a)return n;var l,u=n,c=n.x,h=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&sa(o<h?i:a,o,c,h,o<h?a:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),fa(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&ia(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t)){var n=ma(t,e);Ko(n,n.next)}}function ia(e,t){return ua(e.prev,e,t.prev)<0&&ua(t.next,e,e.next)<0}function oa(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function aa(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function sa(e,t,n,r,i,o,a,s){return(i-a)*(t-s)-(e-a)*(o-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function la(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&ha(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(fa(e,t)&&fa(t,e)&&function(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(ua(e.prev,e,t.prev)||ua(e,t.prev,t))||ca(e,t)&&ua(e.prev,e,e.next)>0&&ua(t.prev,t,t.next)>0)}function ua(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function ca(e,t){return e.x===t.x&&e.y===t.y}function ha(e,t,n,r){var i=da(ua(e,t,n)),o=da(ua(e,t,r)),a=da(ua(n,r,e)),s=da(ua(n,r,t));return i!==o&&a!==s||!(0!==i||!pa(e,n,t))||!(0!==o||!pa(e,r,t))||!(0!==a||!pa(n,e,r))||!(0!==s||!pa(n,t,r))}function pa(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function da(e){return e>0?1:e<0?-1:0}function fa(e,t){return ua(e.prev,e,e.next)<0?ua(e,t,e.next)>=0&&ua(e,e.prev,t)>=0:ua(e,t,e.prev)<0||ua(e,e.next,t)<0}function ma(e,t){var n=new va(e.i,e.x,e.y),r=new va(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function ga(e,t,n,r){var i=new va(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function ya(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function va(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _a(e,t,n,r){for(var i=0,o=t,a=n-r;o<n;o+=r)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}function xa(e,t,n,r,i){!function e(t,n,r,i,o){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-s*u/a+c)),Math.min(i,Math.floor(n+(a-s)*u/a+c)),o)}var h=t[n],p=r,d=i;for(ba(t,r,n),o(t[i],h)>0&&ba(t,r,i);p<d;){for(ba(t,p,d),p++,d--;o(t[p],h)<0;)p++;for(;o(t[d],h)>0;)d--}0===o(t[r],h)?ba(t,r,d):ba(t,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(e,t,n||0,r||e.length-1,i||wa)}function ba(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function wa(e,t){return e<t?-1:e>t?1:0}function Sa(e,t){var n=e.length;if(n<=1)return[e];for(var r,i,o=[],a=0;a<n;a++){var s=k(e[a]);0!==s&&(e[a].area=Math.abs(s),void 0===i&&(i=s<0),i===s<0?(r&&o.push(r),r=[e[a]]):r.push(e[a]))}if(r&&o.push(r),t>1)for(var l=0;l<o.length;l++)o[l].length<=t||(xa(o[l],t,1,o[l].length-1,ka),o[l]=o[l].slice(0,t));return o}function ka(e,t){return t.area-e.area}function Ta(e,t,n){for(var r=n.patternDependencies,i=!1,o=0,a=t;o<a.length;o+=1){var s=a[o].paint.get(e+"-pattern");s.isConstant()||(i=!0);var l=s.constantOr(null);l&&(i=!0,r[l.to]=!0,r[l.from]=!0)}return i}function Ma(e,t,n,r,i){for(var o=i.patternDependencies,a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.paint.get(e+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},n,{},i.availableImages),h=u.evaluate({zoom:r},n,{},i.availableImages),p=u.evaluate({zoom:r+1},n,{},i.availableImages);c=c&&c.name?c.name:c,h=h&&h.name?h.name:h,p=p&&p.name?p.name:p,o[c]=!0,o[h]=!0,o[p]=!0,n.patterns[l.id]={min:c,mid:h,max:p}}}return n}Yo.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,a=Math.abs(_a(e,0,o,n));if(i)for(var s=0,l=t.length;s<l;s++){var u=t[s]*n,c=s<l-1?t[s+1]*n:e.length;a-=Math.abs(_a(e,u,c,n))}var h=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,d=r[s+1]*n,f=r[s+2]*n;h+=Math.abs((e[p]-e[f])*(e[d+1]-e[p+1])-(e[p]-e[d])*(e[f+1]-e[p+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},Yo.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)n.vertices.push(e[i][o][a]);i>0&&(r+=e[i-1].length,n.holes.push(r))}return n},Wo.default=Zo;var Ea=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ii,this.indexArray=new xi,this.indexArray2=new bi,this.programConfigurations=new io(Ho,e.layers,e.zoom),this.segments=new Bi,this.segments2=new Bi,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()}
vendor: 5,801 bytes, line 1
1)).map((function(e){return e.id}))};Ea.prototype.populate=function(e,t){this.hasPattern=Ta("fill",this.layers,t);for(var n=this.layers[0].layout.get("fill-sort-key"),r=[],i=0,o=e;i<o.length;i+=1){var a=o[i],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Nr(this.zoom),s)){var c=uo(s),h=n?n.evaluate(s,{},t.availableImages):void 0,p={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:h};r.push(p)}}n&&r.sort((function(e,t){return e.sortKey-t.sortKey}));for(var d=0,f=r;d<f.length;d+=1){var m=f[d],g=m,y=g.geometry,v=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var x=Ma("fill",this.layers,m,this.zoom,t);this.patternFeatures.push(x)}else this.addFeature(m,y,v,{});var b=e[v].feature;t.featureIndex.insert(b,y,v,_,this.index)}},Ea.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Ea.prototype.addFeatures=function(e,t){for(var n=0,r=this.patternFeatures;n<r.length;n+=1){var i=r[n];this.addFeature(i,i.geometry,i.index,t)}},Ea.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ea.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ea.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ho),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},Ea.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},Ea.prototype.addFeature=function(e,t,n,r){for(var i=0,o=Sa(t,500);i<o.length;i+=1){for(var a=o[i],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),h=c.vertexLength,p=[],d=[],f=0,m=a;f<m.length;f+=1){var g=m[f];if(0!==g.length){g!==a[0]&&d.push(p.length/2);var y=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),v=y.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(v+g.length-1,v),p.push(g[0].x),p.push(g[0].y);for(var _=1;_<g.length;_++)this.layoutVertexArray.emplaceBack(g[_].x,g[_].y),this.indexArray2.emplaceBack(v+_-1,v+_),p.push(g[_].x),p.push(g[_].y);y.vertexLength+=g.length,y.primitiveLength+=g.length}}for(var x=Wo(p,d),b=0;b<x.length;b+=3)this.indexArray.emplaceBack(h+x[b],h+x[b+1],h+x[b+2]);c.vertexLength+=s,c.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r)},yr("FillBucket",Ea,{omit:["layers","patternFeatures"]});var Ca=new $r({"fill-sort-key":new Zr(Ce.layout_fill["fill-sort-key"])}),Ia={paint:new $r({"fill-antialias":new Wr(Ce.paint_fill["fill-antialias"]),"fill-opacity":new Zr(Ce.paint_fill["fill-opacity"]),"fill-color":new Zr(Ce.paint_fill["fill-color"]),"fill-outline-color":new Zr(Ce.paint_fill["fill-outline-color"]),"fill-translate":new Wr(Ce.paint_fill["fill-translate"]),"fill-translate-anchor":new Wr(Ce.paint_fill["fill-translate-anchor"]),"fill-pattern":new Yr(Ce.paint_fill["fill-pattern"])}),layout:Ca},Aa=function(e){function t(t){e.call(this,t,Ia)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},t.prototype.createBucket=function(e){return new Ea(e)},t.prototype.queryRadius=function(){return To(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,i,o,a){return mo(Mo(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),r)},t.prototype.isTileClipped=function(){return!0},t}(Jr),Pa=ni([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,Da=La;function La(e,t,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=i,e.readFields(Oa,this,t)}function Oa(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],i=t._values[e.readVarint()];t.properties[r]=i}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function Ra(e){for(var t,n,r=0,i=0,o=e.length,a=o-1;i<o;a=i++)t=e[i],r+=((n=e[a]).x-t.x)*(t.y+n.y);return r}La.types=["Unknown","Point","LineString","Polygon"],La.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,a=0,s=0,l=[];e.pos<n;){if(o<=0){var u=e.readVarint();r=7&u,o=u>>3}if(o--,1===r||2===r)a+=e.readSVarint(),s+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&l.push(t),l},La.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;e.pos<t;){if(r<=0){var c=e.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=e.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=e.readSVarint())<l&&(l=o),o>u&&(u=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},La.prototype.toGeoJSON=function(e,t,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*e,s=this.extent*t,l=this.loadGeometry(),u=La.types[this.type];function c(e){for(var t=0;t<e.length;t++){var n=e[t],r=180-360*(n.y+s)/o;e[t]=[360*(n.x+a)/o-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180)
vendor: 14,747 bytes, line 1
1)-90]}}switch(this.type){case 1:var h=[];for(r=0;r<l.length;r++)h[r]=l[r][0];c(l=h);break;case 2:for(r=0;r<l.length;r++)c(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,i=[],o=0;o<t;o++){var a=Ra(e[o]);0!==a&&(void 0===r&&(r=a<0),r===a<0?(n&&i.push(n),n=[e[o]]):n.push(e[o]))}return n&&i.push(n),i}(l),r=0;r<l.length;r++)for(i=0;i<l[r].length;i++)c(l[r][i])}1===l.length?l=l[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var za=Na;function Na(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(Ba,this,t),this.length=this._features.length}function Ba(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function Fa(e,t,n){if(3===e){var r=new za(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}Na.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Da(this._pbf,t,this.extent,this._keys,this._values)};var Va={VectorTile:function(e,t){this.layers=e.readFields(Fa,{},t)},VectorTileFeature:Da,VectorTileLayer:za},ja=Va.VectorTileFeature.types,Ua=Math.pow(2,13);function Ga(e,t,n,r,i,o,a,s){e.emplaceBack(t,n,2*Math.floor(r*Ua)+a,i*Ua*2,o*Ua*2,Math.round(s))}var qa=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ai,this.indexArray=new xi,this.programConfigurations=new io(Pa,e.layers,e.zoom),this.segments=new Bi,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Ha(e,t){return e.x===t.x&&(e.x<0||e.x>so)||e.y===t.y&&(e.y<0||e.y>so)}function Wa(e){return e.every((function(e){return e.x<0}))||e.every((function(e){return e.x>so}))||e.every((function(e){return e.y<0}))||e.every((function(e){return e.y>so}))}qa.prototype.populate=function(e,t){this.features=[],this.hasPattern=Ta("fill-extrusion",this.layers,t);for(var n=0,r=e;n<r.length;n+=1){var i=r[n],o=i.feature,a=i.index,s=i.sourceLayerIndex;if(this.layers[0]._featureFilter(new Nr(this.zoom),o)){var l=uo(o),u={sourceLayerIndex:s,index:a,geometry:l,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(u.id=o.id),this.hasPattern?this.features.push(Ma("fill-extrusion",this.layers,u,this.zoom,t)):this.addFeature(u,l,a,{}),t.featureIndex.insert(o,l,a,s,this.index,!0)}}},qa.prototype.addFeatures=function(e,t){for(var n=0,r=this.features;n<r.length;n+=1){var i=r[n],o=i.geometry;this.addFeature(i,o,i.index,t)}},qa.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},qa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},qa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},qa.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pa),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},qa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},qa.prototype.addFeature=function(e,t,n,r){for(var i=0,o=Sa(t,500);i<o.length;i+=1){for(var a=o[i],s=0,l=0,u=a;l<u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=a;h<p.length;h+=1){var d=p[h];if(0!==d.length&&!Wa(d))for(var f=0,m=0;m<d.length;m++){var g=d[m];if(m>=1){var y=d[m-1];if(!Ha(g,y)){c.vertexLength+4>Bi.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=g.sub(y)._perp()._unit(),_=y.dist(g);f+_>32768&&(f=0),Ga(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,0,f),Ga(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,1,f),f+=_,Ga(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,0,f),Ga(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,1,f);var x=c.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),c.vertexLength+=4,c.primitiveLength+=2}}}}if(c.vertexLength+s>Bi.MAX_VERTEX_ARRAY_LENGTH&&(c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray)),"Polygon"===ja[e.type]){for(var b=[],w=[],S=c.vertexLength,k=0,T=a;k<T.length;k+=1){var M=T[k];if(0!==M.length){M!==a[0]&&w.push(b.length/2);for(var E=0;E<M.length;E++){var C=M[E];Ga(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),b.push(C.x),b.push(C.y)}}}for(var I=Wo(b,w),A=0;A<I.length;A+=3)this.indexArray.emplaceBack(S+I[A],S+I[A+2],S+I[A+1]);c.primitiveLength+=I.length/3,c.vertexLength+=s}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r)},yr("FillExtrusionBucket",qa,{omit:["layers","features"]});var Za={paint:new $r({"fill-extrusion-opacity":new Wr(Ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Zr(Ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Wr(Ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Wr(Ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Yr(Ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Zr(Ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Zr(Ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Wr(Ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Ya=function(e){function t(t){e.call(this,t,Za)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.createBucket=function(e){return new qa(e)},t.prototype.queryRadius=function(){return To(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s,l){var u=Mo(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),c=this.paint.get("fill-extrusion-height").evaluate(t,n),h=this.paint.get("fill-extrusion-base").evaluate(t,n),p=function(e,t,n,r){for(var o=[],a=0,s=e;a<s.length;a+=1){var l=s[a],u=[l.x,l.y,0,1];Po(u,u,t),o.push(new i(u[0]/u[3],u[1]/u[3]))}return o}(u,l),d=function(e,t,n,r){for(var o=[],a=[],s=r[8]*t,l=r[9]*t,u=r[10]*t,c=r[11]*t,h=r[8]*n,p=r[9]*n,d=r[10]*n,f=r[11]*n,m=0,g=e;m<g.length;m+=1){for(var y=[],v=[],_=0,x=g[m];_<x.length;_+=1){var b=x[_],w=b.x,S=b.y,k=r[0]*w+r[4]*S+r[12],T=r[1]*w+r[5]*S+r[13],M=r[2]*w+r[6]*S+r[14],E=r[3]*w+r[7]*S+r[15],C=M+u,I=E+c,A=k+h,P=T+p,D=M+d,L=E+f,O=new i((k+s)/I,(T+l)/I);O.z=C/I,y.push(O);var R=new i(A/L,P/L);R.z=D/L,v.push(R)}o.push(y),a.push(v)}return[o,a]}(r,h,c,l);return function(e,t,n){var r=1/0;mo(n,t)&&(r=Ka(n,t[0]));for(var i=0;i<t.length;i++)for(var o=t[i],a=e[i],s=0;s<o.length-1;s++){var l=o[s],u=o[s+1],c=a[s],h=[l,u,a[s+1],c,l];po(n,h)&&(r=Math.min(r,Ka(n,h)))}return r!==1/0&&r}(d[0],d[1],p)},t}(Jr);function Xa(e,t){return e.x*t.x+e.y*t.y}function Ka(e,t){if(1===e.length){var n=t[0],r=t[1],i=t[3],o=e[0],a=r.sub(n),s=i.sub(n),l=o.sub(n),u=Xa(a,a),c=Xa(a,s),h=Xa(s,s),p=Xa(l,a),d=Xa(l,s),f=u*h-c*c,m=(h*p-c*d)/f,g=(u*d-c*p)/f,y=1-m-g;return n.z*y+r.z*m+i.z*g}for(var v=1/0,_=0,x=t;_<x.length;_+=1){var b=x[_];v=Math.min(v,b.z)}return v}var $a=ni([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ja=Va.VectorTileFeature.types,Qa=Math.cos(Math.PI/180*37.5),es=Math.pow(2,14)/.5,ts=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new si,this.indexArray=new xi,this.programConfigurations=new io($a,e.layers,e.zoom),this.segments=new Bi,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};ts.prototype.populate=function(e,t){this.hasPattern=Ta("line",this.layers,t);for(var n=this.layers[0].layout.get("line-sort-key"),r=[],i=0,o=e;i<o.length;i+=1){var a=o[i],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new Nr(this.zoom),s)){var c=uo(s),h=n?n.evaluate(s,{}):void 0,p={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:h};r.push(p)}}n&&r.sort((function(e,t){return e.sortKey-t.sortKey}));for(var d=0,f=r;d<f.length;d+=1){var m=f[d],g=m,y=g.geometry,v=g.index,_=g.sourceLayerIndex;if(this.hasPattern){var x=Ma("line",this.layers,m,this.zoom,t);this.patternFeatures.push(x)}else this.addFeature(m,y,v,{});var b=e[v].feature;t.featureIndex.insert(b,y,v,_,this.index)}},ts.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},ts.prototype.addFeatures=function(e,t){for(var n=0,r=this.patternFeatures;n<r.length;n+=1){var i=r[n];this.addFeature(i,i.geometry,i.index,t)}},ts.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ts.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ts.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,$a),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},ts.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},ts.prototype.addFeature=function(e,t,n,r){for(var i=this.layers[0].layout,o=i.get("line-join").evaluate(e,{}),a=i.get("line-cap"),s=i.get("line-miter-limit"),l=i.get("line-round-limit"),u=0,c=t;u<c.length;u+=1){var h=c[u];this.addLine(h,e,o,a,s,l,n,r)}},ts.prototype.addLine=function(e,t,n,r,i,o,a,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+t.properties.mapbox_clip_start,this.clipEnd=+t.properties.mapbox_clip_end;for(var l=0;l<e.length-1;l++)this.totalDistance+=e[l].dist(e[l+1])}for(var u="Polygon"===Ja[t.type],c=e.length;c>=2&&e[c-1].equals(e[c-2]);)c--;for(var h=0;h<c-1&&e[h].equals(e[h+1]);)h++;if(!(c<(u?3:2))){"bevel"===n&&(i=1.05);var p,d=so/(512*this.overscaling)*15,f=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray),m=void 0,g=void 0,y=void 0,v=void 0;this.e1=this.e2=-1,u&&(p=e[c-2],v=e[h].sub(p)._unit()._perp());for(var _=h;_<c;_++)if(!(g=u&&_===c-1?e[h+1]:e[_+1])||!e[_].equals(g)){v&&(y=v),p&&(m=p),p=e[_],v=g?g.sub(p)._unit()._perp():y;var x=(y=y||v).add(v);0===x.x&&0===x.y||x._unit();var b=y.x*v.x+y.y*v.y,w=x.x*v.x+x.y*v.y,S=0!==w?1/w:1/0,k=2*Math.sqrt(2-2*w),T=w<Qa&&m&&g,M=y.x*v.y-y.y*v.x>0;if(T&&_>h){var E=p.dist(m);if(E>2*d){var C=p.sub(p.sub(m)._mult(d/E)._round());this.updateDistance(m,C),this.addCurrentVertex(C,y,0,0,f),m=C}}var I=m&&g,A=I?n:u?"butt":r;if(I&&"round"===A&&(S<o?A="miter":S<=2&&(A="fakeround")),"miter"===A&&S>i&&(A="bevel"),"bevel"===A&&(S>2&&(A="flipbevel"),S<i&&(A="miter")),m&&this.updateDistance(m,p),"miter"===A)x._mult(S),this.addCurrentVertex(p,x,0,0,f);else if("flipbevel"===A){if(S>100)x=v.mult(-1);else{var P=S*y.add(v).mag()/y.sub(v).mag();x._perp()._mult(P*(M?-1:1))}this.addCurrentVertex(p,x,0,0,f),this.addCurrentVertex(p,x.mult(-1),0,0,f)}else if("bevel"===A||"fakeround"===A){var D=-Math.sqrt(S*S-1),L=M?D:0,O=M?0:D;if(m&&this.addCurrentVertex(p,y,L,O,f),"fakeround"===A)for(var R=Math.round(180*k/Math.PI/20),z=1;z<R;z++){var N=z/R;if(.5!==N){var B=N-.5;N+=N*B*(N-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*B*B+(.848013+b*(.215638*b-1.06021)))}var F=v.sub(y)._mult(N)._add(y)._unit()._mult(M?-1:1);this.addHalfVertex(p,F.x,F.y,!1,M,0,f)}g&&this.addCurrentVertex(p,v,-L,-O,f)}else if("butt"===A)this.addCurrentVertex(p,x,0,0,f);else if("square"===A){var V=m?1:-1;this.addCurrentVertex(p,x,V,V,f)}else"round"===A&&(m&&(this.addCurrentVertex(p,y,0,0,f),this.addCurrentVertex(p,y,1,1,f,!0)),g&&(this.addCurrentVertex(p,v,-1,-1,f,!0),this.addCurrentVertex(p,v,0,0,f)));if(T&&_<c-1){var j=p.dist(g);if(j>2*d){var U=p.add(g.sub(p)._mult(d/j)._round());this.updateDistance(p,U),this.addCurrentVertex(U,v,0,0,f),p=U}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,a,s)}},ts.prototype.addCurrentVertex=function(e,t,n,r,i,o){void 0===o&&(o=!1);var a=t.x+t.y*n,s=t.y-t.x*n,l=-t.x+t.y*r,u=-t.y-t.x*r;this.addHalfVertex(e,a,s,o,!1,n,i),this.addHalfVertex(e,l,u,o,!0,-r,i),this.distance>es/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,i,o))},ts.prototype.addHalfVertex=function(e,t,n,r,i,o,a){var s=e.x,l=e.y,u=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s<<1)+(r?1:0),(l<<1)+(i?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&u)<<2,u>>6);var c=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),i?this.e2=c:this.e1=c},ts.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(es-1):this.distance},yr("LineBucket",ts,{omit:["layers","patternFeatures"]});var ns=new $r({"line-cap":new Wr(Ce.layout_line["line-cap"]),"line-join":new Zr(Ce.layout_line["line-join"]),"line-miter-limit":new Wr(Ce.layout_line["line-miter-limit"]),"line-round-limit":new Wr(Ce.layout_line["line-round-limit"]),"line-sort-key":new Zr(Ce.layout_line["line-sort-key"])}),rs={paint:new $r({"line-opacity":new Zr(Ce.paint_line["line-opacity"]),"line-color":new Zr(Ce.paint_line["line-color"]),"line-translate":new Wr(Ce.paint_line["line-translate"]),"line-translate-anchor":new Wr(Ce.paint_line["line-translate-anchor"]),"line-width":new Zr(Ce.paint_line["line-width"]),"line-gap-width":new Zr(Ce.paint_line["line-gap-width"]),"line-offset":new Zr(Ce.paint_line["line-offset"]),"line-blur"
1:new Zr(Ce.paint_line["line-blur"]),"line-dasharray":new Xr(Ce.paint_line["line-dasharray"]),"line-pattern":new Yr(Ce.paint_line["line-pattern"]),"line-gradient":new Kr(Ce.paint_line["line-gradient"])}),layout:ns},is=new(function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new Nr(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,i){return n=h({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,i)},t}(Zr))(rs.paint.properties["line-width"].specification);is.useIntegerZoom=!0;var os=function(e){function t(t){e.call(this,t,rs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&this._updateGradient()},t.prototype._updateGradient=function(){var e=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=jo(e,"lineProgress"),this.gradientTexture=null},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=is.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new ts(e)},t.prototype.queryRadius=function(e){var t=e,n=as(ko("line-width",this,t),ko("line-gap-width",this,t)),r=ko("line-offset",this,t);return n/2+Math.abs(r)+To(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,a,s){var l=Mo(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*as(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),c=this.paint.get("line-offset").evaluate(t,n);return c&&(r=function(e,t){for(var n=[],r=new i(0,0),o=0;o<e.length;o++){for(var a=e[o],s=[],l=0;l<a.length;l++){var u=a[l-1],c=a[l],h=a[l+1],p=0===l?r:c.sub(u)._unit()._perp(),d=l===a.length-1?r:h.sub(c)._unit()._perp(),f=p._add(d)._unit(),m=f.x*d.x+f.y*d.y;f._mult(1/m),s.push(f._mult(t)._add(c))}n.push(s)}return n}(r,c*s)),function(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];if(e.length>=3)for(var o=0;o<i.length;o++)if(wo(e,i[o]))return!0;if(go(e,i,n))return!0}return!1}(l,r,u)},t.prototype.isTileClipped=function(){return!0},t}(Jr);function as(e,t){return t>0?t+2*e:e}var ss=ni([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),ls=ni([{name:"a_projected_pos",components:3,type:"Float32"}],4),us=(ni([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ni([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),cs=(ni([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),ni([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),hs=ni([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function ps(e,t,n){return e.sections.forEach((function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),zr.applyArabicShaping&&(e=zr.applyArabicShaping(e)),e}(e.text,t,n)})),e}ni([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ni([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"}]),ni([{type:"Float32",name:"offsetX"}]),ni([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ds={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},fs={horizontal:1,vertical:2,horizontalOnly:3},ms=function(){this.text="",this.sectionIndex=[],this.sections=[]};function gs(e,t,n,r,i,o,a,s,l,u,c,h){var p,d=ms.fromFeature(e,n);u===fs.vertical&&d.verticalizePunctuation();var f=zr.processBidirectionalText,m=zr.processStyledBidirectionalText;if(f&&1===d.sections.length){p=[];for(var g=0,y=f(d.toString(),ws(d,s,r,t,h));g<y.length;g+=1){var v=y[g],_=new ms;_.text=v,_.sections=d.sections;for(var x=0;x<v.length;x++)_.sectionIndex.push(0);p.push(_)}}else if(m){p=[];for(var b=0,w=m(d.text,d.sectionIndex,ws(d,s,r,t,h));b<w.length;b+=1){var S=w[b],k=new ms;k.text=S[0],k.sectionIndex=S[1],k.sections=d.sections,p.push(k)}}else p=function(e,t){for(var n=[],r=e.text,i=0,o=0,a=t;o<a.length;o+=1){var s=a[o];n.push(e.substring(i,s)),i=s}return i<r.length&&n.push(e.substring(i,r.length)),n}(d,ws(d,s,r,t,h));var T=[],M={positionedGlyphs:T,text:d.toString(),top:l[1],bottom:l[1],left:l[0],right:l[0],writingMode:u,lineCount:p.length,yOffset:-17};return function(e,t,n,r,i,o,a,s,l){for(var u=0,c=e.yOffset,h=0,p=e.positionedGlyphs,d="right"===o?1:"left"===o?0:.5,f=0,m=n;f<m.length;f+=1){var g=m[f];g.trim();var y=g.getMaxScale();if(g.length()){for(var v=p.length,_=0;_<g.length();_++){var x=g.getSection(_),b=g.getSectionIndex(_),w=g.getCharCode(_),S=24*(y-x.scale),k=t[x.fontStack],T=k&&k[w];T&&(a===fs.horizontal||!l&&!Mr(w)||l&&(ys[w]||Sr.Arabic(E=w)||Sr["Arabic Supplement"](E)||Sr["Arabic Extended-A"](E)||Sr["Arabic Presentation Forms-A"](E)||Sr["Arabic Presentation Forms-B"](E))?(p.push({glyph:w,x:u,y:c+S,vertical:!1,scale:x.scale,fontStack:x.fontStack,sectionIndex:b}),u+=T.metrics.advance*x.scale+s):(p.push({glyph:w,x:u,y:c+S,vertical:!0,scale:x.scale,fontStack:x.fontStack,sectionIndex:b}),u+=24*x.scale+s))}if(p.length!==v){var M=u-s;h=Math.max(M,h),ks(p,t,v,p.length-1,d)}u=0,c+=r*y}else c+=r}var E,C=Ss(i),I=C.horizontalAlign,A=C.verticalAlign;!function(e,t,n,r,i,o,a){for(var s=(t-n)*i,l=(-r*a+.5)*o,u=0;u<e.length;u++)e[u].x+=s,e[u].y+=l}(p,d,I,A,h,r,n.length);var P=c-e.yOffset;e.top+=-A*P,e.bottom=e.top+P,e.left+=-I*h,e.right=e.left+h}(M,t,p,i,o,a,u,s,c),!!T.length&&M}ms.fromFeature=function(e,t){for(var n=new ms,r=0;r<e.sections.length;r++){var i=e.sections[r];n.sections.push({scale:i.scale||1,fontStack:i.fontStack||t}),n.text+=i.text;for(var o=0;o<i.text.length;o++)n.sectionIndex.push(r)}return n},ms.prototype.length=function(){return this.text.length},ms.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},ms.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},ms.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},ms.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,i=e.charCodeAt(n-1)||null;r&&Er(r)&&!ds[e[n+1]]||i&&Er(i)&&!ds[e[n-1]]||!ds[e[n]]?t+=e[n]:t
vendor: 6,820 bytes, line 1
1+=ds[e[n]]}return t}(this.text)},ms.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&ys[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&ys[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},ms.prototype.substring=function(e,t){var n=new ms;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},ms.prototype.toString=function(){return this.text},ms.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,n){return Math.max(t,e.sections[n].scale)}),0)};var ys={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},vs={};function _s(e,t,n,r){var i=Math.pow(e-t,2);return r?e<t?i/2:2*i:i+Math.abs(n)*n}function xs(e,t,n){var r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function bs(e,t,n,r,i,o){for(var a=null,s=_s(t,n,i,o),l=0,u=r;l<u.length;l+=1){var c=u[l],h=_s(t-c.x,n,i,o)+c.badness;h<=s&&(a=c,s=h)}return{index:e,x:t,priorBreak:a,badness:s}}function ws(e,t,n,r,i){if("point"!==i)return[];if(!e)return[];for(var o,a=[],s=function(e,t,n,r){for(var i=0,o=0;o<e.length();o++){var a=e.getSection(o),s=r[a.fontStack],l=s&&s[e.getCharCode(o)];l&&(i+=l.metrics.advance*a.scale+t)}return i/Math.max(1,Math.ceil(i/n))}(e,t,n,r),l=e.text.indexOf("​")>=0,u=0,c=0;c<e.length();c++){var h=e.getSection(c),p=e.getCharCode(c),d=r[h.fontStack],f=d&&d[p];if(f&&!ys[p]&&(u+=f.metrics.advance*h.scale+t),c<e.length()-1){var m=!((o=p)<11904||!(Sr["Bopomofo Extended"](o)||Sr.Bopomofo(o)||Sr["CJK Compatibility Forms"](o)||Sr["CJK Compatibility Ideographs"](o)||Sr["CJK Compatibility"](o)||Sr["CJK Radicals Supplement"](o)||Sr["CJK Strokes"](o)||Sr["CJK Symbols and Punctuation"](o)||Sr["CJK Unified Ideographs Extension A"](o)||Sr["CJK Unified Ideographs"](o)||Sr["Enclosed CJK Letters and Months"](o)||Sr["Halfwidth and Fullwidth Forms"](o)||Sr.Hiragana(o)||Sr["Ideographic Description Characters"](o)||Sr["Kangxi Radicals"](o)||Sr["Katakana Phonetic Extensions"](o)||Sr.Katakana(o)||Sr["Vertical Forms"](o)||Sr["Yi Radicals"](o)||Sr["Yi Syllables"](o)));(vs[p]||m)&&a.push(bs(c+1,u,s,a,xs(p,e.getCharCode(c+1),m&&l),!1))}}return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(bs(e.length(),u,s,a,0,!0))}function Ss(e){var t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function ks(e,t,n,r,i){if(i){var o=e[r],a=t[o.fontStack],s=a&&a[o.glyph];if(s)for(var l=s.metrics.advance*o.scale,u=(e[r].x+l)*i,c=n;c<=r;c++)e[c].x-=u}}function Ts(e,t,n,r,i,o){var a,s,l,u,c=e.image,h=t.left*o,p=t.right*o;"width"===n||"both"===n?(u=i[0]+h-r[3],s=i[0]+p+r[1]):s=(u=i[0]+(h+p-c.displaySize[0])/2)+c.displaySize[0];var d=t.top*o,f=t.bottom*o;return"height"===n||"both"===n?(a=i[1]+d-r[0],l=i[1]+f+r[2]):l=(a=i[1]+(d+f-c.displaySize[1])/2)+c.displaySize[1],{image:c,top:a,right:s,bottom:l,left:u}}vs[10]=!0,vs[32]=!0,vs[38]=!0,vs[40]=!0,vs[41]=!0,vs[43]=!0,vs[45]=!0,vs[47]=!0,vs[173]=!0,vs[183]=!0,vs[8203]=!0,vs[8208]=!0,vs[8211]=!0,vs[8231]=!0;var Ms=function(e){function t(t,n,r,i){e.call(this,t,n),this.angle=r,void 0!==i&&(this.segment=i)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(i);yr("Anchor",Ms);var Es=256;function Cs(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Nr(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,i=n.interpolationType,o=0;o<r.length&&r[o]<=e;)o++;for(var a=o=Math.max(0,o-1);a<r.length&&r[a]<e+1;)a++;a=Math.min(r.length-1,a);var s=r[o],l=r[a];return"composite"===n.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:i}:{kind:"camera",minZoom:s,maxZoom:l,minSize:n.evaluate(new Nr(s)),maxSize:n.evaluate(new Nr(l)),interpolationType:i}}function Is(e,t,n){var r=t.uSize,i=t.uSizeT,o=n.lowerSize,a=n.upperSize;return"source"===e.kind?o/Es:"composite"===e.kind?Et(o/Es,a/Es,i):r}function As(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var i=e.interpolationType,o=e.minZoom,a=e.maxZoom,s=i?u(Gt.interpolationFactor(i,t,o,a),0,1):0;"camera"===e.kind?r=Et(e.minSize,e.maxSize,s):n=s}return{uSizeT:n,uSize:r}}var Ps=Object.freeze({__proto__:null,getSizeData:Cs,evaluateSizeForFeature:Is,evaluateSizeForZoom:As,SIZE_PACK_FACTOR:Es}),Ds=Va.VectorTileFeature.types,Ls=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Os(e,t,n,r,i,o,a,s){e.emplaceBack(t,n,Math.round(32*r),Math.round(32*i),o,a,s?s[0]:0,s?s[1]:0)}function Rs(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}var zs=function(e){this.layoutVertexArray=new ui,this.indexArray=new xi,this.programConfigurations=e,this.segments=new Bi,this.dynamicLayoutVertexArray=new ci,this.opacityVertexArray=new hi,this.placedSymbolArray=new Ci};zs.prototype.upload=function(e,t,n,r){n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ss.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,ls.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Ls,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e)},zs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},yr("SymbolBuffers",zs);var Ns=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new Bi,this.collisionVertexArray=new fi};Ns.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,us.members,!0)},Ns.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},yr("CollisionBuffers",Ns);var Bs=function(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.s
vendor: 24,187 bytes, line 1
1ourceLayerIndex,this.hasPattern=!1,this.hasPaintOverrides=!1;var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Cs(this.zoom,t["text-size"]),this.iconSizeData=Cs(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),i=n.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==i&&void 0!==r.constantOr(1);var o="viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey;this.sortFeaturesByY=o&&(n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement")),"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(e){return fs[e]}))),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id})),this.sourceID=e.sourceID};Bs.prototype.createArrays=function(){var e=this.layers[0].layout;this.hasPaintOverrides=Us.hasPaintOverrides(e),this.text=new zs(new io(ss.members,this.layers,this.zoom,(function(e){return/^text/.test(e)}))),this.icon=new zs(new io(ss.members,this.layers,this.zoom,(function(e){return/^icon/.test(e)}))),this.textCollisionBox=new Ns(di,cs.members,bi),this.iconCollisionBox=new Ns(di,cs.members,bi),this.textCollisionCircle=new Ns(di,hs.members,xi),this.iconCollisionCircle=new Ns(di,hs.members,xi),this.glyphOffsetArray=new Di,this.lineVertexArray=new Oi,this.symbolInstances=new Ai},Bs.prototype.calculateGlyphDependencies=function(e,t,n,r,i){for(var o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,(n||r)&&i){var a=ds[e.charAt(o)];a&&(t[a.charCodeAt(0)]=!0)}},Bs.prototype.populate=function(e,t){var n=this.layers[0],r=n.layout,i=r.get("text-font"),o=r.get("text-field"),a=r.get("icon-image"),s=("constant"!==o.value.kind||o.value.value.toString().length>0)&&("constant"!==i.value.kind||i.value.value.length>0),l=("constant"!==a.value.kind||!!a.value.value)&&Object.keys(a.parameters).length>0,u=r.get("symbol-sort-key");if(this.features=[],s||l){for(var c=t.iconDependencies,h=t.glyphDependencies,p=t.availableImages,d=new Nr(this.zoom),f=0,m=e;f<m.length;f+=1){var g=m[f],y=g.feature,v=g.index,_=g.sourceLayerIndex;if(n._featureFilter(d,y)){var x=void 0;if(s){var b=n.getValueAndResolveTokens("text-field",y,p);x=ps(b instanceof tt?b:tt.fromString(b),n,y)}var w=void 0;if(l){var S=n.getValueAndResolveTokens("icon-image",y,p);w=S instanceof nt?S:nt.fromString(S)}if(x||w){var k=this.sortFeaturesByKey?u.evaluate(y,{}):void 0,T={text:x,icon:w,index:v,sourceLayerIndex:_,geometry:uo(y),properties:y.properties,type:Ds[y.type],sortKey:k};if(void 0!==y.id&&(T.id=y.id),this.features.push(T),w&&(c[w.name]=!0),x){var M=i.evaluate(y,{}).join(","),E="map"===r.get("text-rotation-alignment")&&"point"!==r.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(fs.vertical)>=0;for(var C=0,I=x.sections;C<I.length;C+=1){var A=I[C],P=kr(x.toString()),D=A.fontStack||M,L=h[D]=h[D]||{};this.calculateGlyphDependencies(A.text,L,E,this.allowVerticalPlacement,P)}}}}}"line"===r.get("symbol-placement")&&(this.features=function(e){var t={},n={},r=[],i=0;function o(t){r.push(e[t]),i++}function a(e,t,i){var o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(e,n,i){var o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function l(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var u=0;u<e.length;u++){var c=e[u],h=c.geometry,p=c.text?c.text.toString():null;if(p){var d=l(p,h),f=l(p,h,!0);if(d in n&&f in t&&n[d]!==t[f]){var m=s(d,f,h),g=a(d,f,r[m].geometry);delete t[d],delete n[f],n[l(p,r[g].geometry,!0)]=g,r[m].geometry=null}else d in n?a(d,f,h):f in t?s(d,f,h):(o(u),t[d]=i-1,n[f]=i-1)}else o(u)}return r.filter((function(e){return e.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(e,t){return e.sortKey-t.sortKey}))}},Bs.prototype.update=function(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))},Bs.prototype.isEmpty=function(){return 0===this.symbolInstances.length},Bs.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Bs.prototype.upload=function(e){this.uploaded||(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e),this.textCollisionCircle.upload(e),this.iconCollisionCircle.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Bs.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.textCollisionBox.destroy(),this.iconCollisionBox.destroy(),this.textCollisionCircle.destroy(),this.iconCollisionCircle.destroy()},Bs.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),i=e.dist(t[e.segment]),o={},a=e.segment+1;a<t.length;a++)o[a]={x:t[a].x,y:t[a].y,tileUnitDistanceFromAnchor:r},a<t.length-1&&(r+=t[a+1].dist(t[a]));for(var s=e.segment||0;s>=0;s--)o[s]={x:t[s].x,y:t[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=t[s-1].dist(t[s]));for(var l=0;l<t.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},Bs.prototype.addSymbols=function(e,t,n,r,i,o,a,s,l,u,c){var h=this,p=e.indexArray,d=e.layoutVertexArray,f=e.dynamicLayoutVertexArray,m=e.segments.prepareSegment(4*t.length,e.layoutVertexArray,e.indexArray,o.sortKey),g=this.glyphOffsetArray.length,y=m.vertexLength,v=this.allowVerticalPlacement&&a===fs.vertical?Math.PI/2:0,_=function(e){var t=e.tl,r=e.tr,i=e.bl,o=e.br,a=e.tex,l=m.vertexLength,u=e.glyphOffset[1];Os(d,s.x,s.y,t.x,u+t.y,a.x,a.y,n),Os(d,s.x,s.y,r.x,u+r.y,a.x+a.w,a.y,n),Os(d,s.x,s.y,i.x,u+i.y,a.x,a.y+a.h,n),Os(d,s.x,s.y,o.x,u+o.y,a.x+a.w,a.y+a.h,n),Rs(f,s,v),p.emplaceBack(l,l+1,l+2),p.emplaceBack(l+1,l+2,l+3),m.vertexLength+=4,m.primitiveLength+=2,h.glyphOffsetArray.emplaceBack(e.glyphOffset[0])};if(o.text&&o.text.sections){var x=o.text.sections;if(this.hasPaintOverrides){for(var b,w=function(t,n){void 0===b||b===t&&!n||e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,o,o.index,{},x[b]),b=t},S=0,k=t;S<k.length;S+=1){var T=k[S];w(T.sectionIndex,!1),_(T)}w(b,!0)}else{for(var M=0,E=t;M<E.length;M+=1)_(E[M]);e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,o,o.index,{},x[0])}}else{for(var C=0,I=t;C<I.length;C+=1)_(I[C]);e.programConfigurations.populatePaintArrays(e.layoutVertexArray.length,o,o.index,{})}e.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,y,l,u,s.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],a,0,!1,0,c)},Bs.prototype._addCollisionDebugVertex=function(e,t,n,r,i,o){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,i,Math.round(o.x),Math.round(o.y))},Bs.prototype.addCollisionDebugVertices=function(e,t,n,r,o,a,s,l){var u=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),c=u.vertexLength,h=o.layoutVertexArray,p=o.collisionVertexArray,d=s.anchorX,f=s.anchorY;if(this._addCollisionDebugVertex(h,p,a,d,f,new i(e,t)),this._addCollisionDebugVertex(h,p,a,d,f,new i(n,t)),this._addCollisionDebugVertex(h,p,a,d,f,new i(n,r)),this._addCollisionDebugVertex(h,p,a,d,f,new i(e,r)),u.vertexLength+=4,l){var m=o.indexArray;m.emplaceBack(c,c+1,c+2),m.emplaceBack(c,c+2,c+3),u.primitiveLength+=2}else{var g=o.indexArray;g.emplaceBack(c,c+1),g.emplaceBack(c+1,c+2),g.emplaceBack(c+2,c+3),g.emplaceBack(c+3,c),u.primitiveLength+=4}},Bs.prototype.addDebugCollisionBoxes=function(e,t,n,r){for(var i=e;i<t;i++){var o=this.collisionBoxArray.get(i),a=o.x1,s=o.y1,l=o.x2,u=o.y2,c=o.radius>0;this.addCollisionDebugVertices(a,s,l,u,c?r?this.textCollisionCircle:this.iconCollisionCircle:r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n,c)}},Bs.prototype.generateCollisionDebugBuffers=function(){for(var e=0;e<this.symbolInstances.length;e++){var t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}},Bs.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,i,o,a,s,l){for(var u={},c=t;c<n;c++){var h=e.get(c);if(0===h.radius){u.textBox={x1:h.x1,y1:h.y1,x2:h.x2,y2:h.y2,anchorPointX:h.anchorPointX,anchorPointY:h.anchorPointY},u.textFeatureIndex=h.featureIndex;break}u.textCircles||(u.textCircles=[],u.textFeatureIndex=h.featureIndex),u.textCircles.push(h.anchorPointX,h.anchorPointY,h.radius,h.signedDistanceFromAnchor,1)}for(var p=r;p<i;p++){var d=e.get(p);if(0===d.radius){u.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.verticalTextFeatureIndex=d.featureIndex;break}}for(var f=o;f<a;f++){var m=e.get(f);if(0===m.radius){u.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},u.iconFeatureIndex=m.featureIndex;break}}for(var g=s;g<l;g++){var y=e.get(g);if(0===y.radius){u.verticalIconBox={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,anchorPointX:y.anchorPointX,anchorPointY:y.anchorPointY},u.verticalIconFeatureIndex=y.featureIndex;break}}return u},Bs.prototype.deserializeCollisionBoxes=function(e){this.collisionArrays=[];for(var t=0;t<this.symbolInstances.length;t++){var n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},Bs.prototype.hasTextData=function(){return this.text.segments.get().length>0},Bs.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Bs.prototype.hasTextCollisionBoxData=function(){return this.textCollisionBox.segments.get().length>0},Bs.prototype.hasIconCollisionBoxData=function(){return this.iconCollisionBox.segments.get().length>0},Bs.prototype.hasTextCollisionCircleData=function(){return this.textCollisionCircle.segments.get().length>0},Bs.prototype.hasIconCollisionCircleData=function(){return this.iconCollisionCircle.segments.get().length>0},Bs.prototype.addIndicesForPlacedTextSymbol=function(e){for(var t=this.text.placedSymbolArray.get(e),n=t.vertexStartIndex+4*t.numGlyphs,r=t.vertexStartIndex;r<n;r+=4)this.text.indexArray.emplaceBack(r,r+1,r+2),this.text.indexArray.emplaceBack(r+1,r+2,r+3)},Bs.prototype.addIndicesForPlacedIconSymbol=function(e){var t=this.icon.placedSymbolArray.get(e);if(t.numGlyphs){var n=t.vertexStartIndex;this.icon.indexArray.emplaceBack(n,n+1,n+2),this.icon.indexArray.emplaceBack(n+1,n+2,n+3)}},Bs.prototype.getSortedSymbolIndexes=function(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var t=Math.sin(e),n=Math.cos(e),r=[],i=[],o=[],a=0;a<this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);r.push(0|Math.round(t*s.anchorX+n*s.anchorY)),i.push(s.featureIndex)}return o.sort((function(e,t){return r[e]-r[t]||i[t]-i[e]})),o},Bs.prototype.sortFeatures=function(e){var t=this;if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var i=r[n],o=this.symbolInstances.get(i);this.featureSortOrder.push(o.featureIndex),[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedTextSymbol(e)})),o.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(o.verticalPlacedTextSymbolIndex),o.placedIconSymbolIndex>=0&&this.addIndicesForPlacedIconSymbol(o.placedIconSymbolIndex),o.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedIconSymbol(o.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},yr("SymbolBucket",Bs,{omit:["layers","collisionBoxArray","features","compareText"]}),Bs.MAX_GLYPHS=65535,Bs.addDynamicAttributes=Rs;var Fs=new $r({"symbol-placement":new Wr(Ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Wr(Ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Wr(Ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Zr(Ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Wr(Ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Wr(Ce.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Wr(Ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Wr(Ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Wr(Ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Zr(Ce.layout_symbol["icon-size"]),"icon-text-fit":new Wr(Ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Wr(Ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Zr(Ce.layout_symbol["icon-image"]),"icon-rotate":new Zr(Ce.layout_symbol["icon-rotate"]),"icon-padding":new Wr(Ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Wr(Ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Zr(Ce.layout_symbol["icon-offset"]),"icon-anchor":new Zr(Ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Wr(Ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Wr(Ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Wr(Ce.layout_symbol["text-rotation-alignment"]),"text-field":new Zr(Ce.layout_symbol["text-field"]),"text-font":new Zr(Ce.layout_symbol["text-font"]),"text-size":new Zr(Ce.layout_symbol["text-size"]),"text-max-width":new Zr(Ce.layout_symbol["text-max-width"]),"text-line-height":new Wr(Ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Zr(Ce.layout_symbol["text-letter-spacing"]),"text-justify":new Zr(Ce.layout_symbol["text-justify"]),"text-radial-offset":new Zr(Ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Wr(Ce.layout_symbol["text-variable-anchor"]),"text-anchor":new Zr(Ce.layout_symbol["text-anchor"]),"text-max-angle":new Wr(Ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Wr(Ce.layout_symbol["text-writing-mode"]),"text-rotate":new Zr(Ce.layout_symbol["text-rotate"]),"text-padding":new Wr(Ce.layout_symbol["text-padding"]),"text-keep-upright":new Wr(Ce.layout_symbol["text-keep-upright"]),"text-transform":new Zr(Ce.layout_symbol["text-transform"]),"text-offset":new Zr(Ce.layout_symbol["text-offset"]),"text-allow-overlap":new Wr(Ce.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Wr(Ce.layout_symbol["text-ignore-placement"]),"text-optional":new Wr(Ce.layout_symbol["text-optional"])}),Vs={paint:new $r({"icon-opacity":new Zr(Ce.paint_symbol["icon-opacity"]),"icon-color":new Zr(Ce.paint_symbol["icon-color"]),"icon-halo-color":new Zr(Ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Zr(Ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Zr(Ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Wr(Ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Wr(Ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Zr(Ce.paint_symbol["text-opacity"]),"text-color":new Zr(Ce.paint_symbol["text-color"],{runtimeType:je,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new Zr(Ce.paint_symbol["text-halo-color"]),"text-halo-width":new Zr(Ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Zr(Ce.paint_symbol["text-halo-blur"]),"text-translate":new Wr(Ce.paint_symbol["text-translate"]),"text-translate-anchor":new Wr(Ce.paint_symbol["text-translate-anchor"])}),layout:Fs},js=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Ne,this.defaultValue=e};js.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},js.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},js.prototype.possibleOutputs=function(){return[void 0]},js.prototype.serialize=function(){return null},yr("FormatSectionOverride",js,{omit:["defaultValue"]});var Us=function(e){function t(t){e.call(this,t,Vs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.recalculate=function(t,n){if(e.prototype.recalculate.call(this,t,n),"auto"===this.layout.get("icon-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("point"!==this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],o=0,a=r;o<a.length;o+=1){var s=a[o];i.indexOf(s)<0&&i.push(s)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t,n){var r=this.layout.get(e).evaluate(t,{},n),i=this._unevaluatedLayout._values[e];return i.isDataDriven()||En(i.value)||!r?r:function(e,t){return t.replace(/{([^{}]+)}/g,(function(t,n){return n in e?String(e[n]):""}))}(t.properties,r)},t.prototype.createBucket=function(e){return new Bs(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=Vs.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var i,o=this.paint.get(r),a=new js(o),s=new Mn(a,o.property.specification);i="constant"===o.value.kind||"source"===o.value.kind?new In("source",s):new An("composite",s,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new qr(o.property,i,o.parameters)}}},t.prototype._handleOverridablePaintPropertyUpdate=function(e,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,e)},t.hasPaintOverride=function(e,t){var n=e.get("text-field"),r=Vs.paint.properties[t],i=!1,o=function(e){for(var t=0,n=e;t<n.length;t+=1){var o=n[t];if(r.overrides&&r.overrides.hasOverride(o))return void(i=!0)}};if("constant"===n.value.kind&&n.value.value instanceof tt)o(n.value.value.sections);else if("source"===n.value.kind){var a=function(e){if(!i)if(e instanceof at&&it(e.value)===He){var t=e.value;o(t.sections)}else e instanceof ct?o(e.sections):e.eachChild(a)},s=n.value;s._styleExpression&&a(s._styleExpression.expression)}return i},t.hasPaintOverrides=function(e){for(var n=0,r=Vs.paint.overridableProperties;n<r.length;n+=1){var i=r[n];if(t.hasPaintOverride(e,i))return!0}return!1},t}(Jr),Gs={paint:new $r({"background-color":new Wr(Ce.paint_background["background-color"]),"background-pattern":new Xr(Ce.paint_background["background-pattern"]),"background-opacity":new Wr(Ce.paint_background["background-opacity"])})},qs=function(e){function t(t){e.call(this,t,Gs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Jr),Hs={paint:new $r({"raster-opacity":new Wr(Ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Wr(Ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Wr(Ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Wr(Ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Wr(Ce.paint_raster["raster-saturation"]),"raster-contrast":new Wr(Ce.paint_raster["raster-contrast"]),"raster-resampling":new Wr(Ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Wr(Ce.paint_raster["raster-fade-duration"])})},Ws=function(e){function t(t){e.call(this,t,Hs)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Jr),Zs=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},t.prototype.onRemove=function(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},t}(Jr),Ys={circle:Do,heatmap:Uo,hillshade:qo,fill:Aa,"fill-extrusion":Ya,line:os,symbol:Us,background:qs,raster:Ws};function Xs(e){for(var t=0,n=0,r=0,i=e;r<i.length;r+=1){var o=i[r];t+=o.w*o.h,n=Math.max(n,o.w)}e.sort((function(e,t){return t.h-e.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],s=0,l=0,u=0,c=e;u<c.length;u+=1)for(var h=c[u],p=a.length-1;p>=0;p--){var d=a[p];if(!(h.w>d.w||h.h>d.h)){if(h.x=d.x,h.y=d.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===d.w&&h.h===d.h){var f=a.pop();p<a.length&&(a[p]=f)}else h.h===d.h?(d.x+=h.w,d.w-=h.w):h.w===d.w?(d.y+=h.h,d.h-=h.h):(a.push({x:d.x+h.w,y:d.y,w:d.w-h.w,h:h.h}),d.y+=h.h,d.h-=h.h);break}}return{w:s,h:l,fill:t/(s*l)||0}}var Ks=function(e,t){var n=t.pixelRatio,r=t.version;this.paddedRect=e,this.pixelRatio=n,this.version=r},$s={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};$s.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},$s.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},$s.tlbr.get=function(){return this.tl.concat(this.br)},$s.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Ks.prototype,$s);var Js=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(e,n,i),this.addImages(t,r,i);var o=Xs(i),a=o.w,s=o.h,l=new Fo({width:a||1,height:s||1});for(var u in e){var c=e[u],h=n[u].paddedRect;Fo.copy(c.data,l,{x:0,y:0},{x:h.x+1,y:h.y+1},c.data)}for(var p in t){var d=t[p],f=r[p].paddedRect,m=f.x+1,g=f.y+1,y=d.data.width,v=d.data.height;Fo.copy(d.data,l,{x:0,y:0},{x:m,y:g},d.data),Fo.copy(d.data,l,{x:0,y:v-1},{x:m,y:g-1},{width:y,height:1}),Fo.copy(d.data,l,{x:0,y:0},{x:m,y:g+v},{width:y,height:1}),Fo.copy(d.data,l,{x:y-1,y:0},{x:m-1,y:g},{width:1,height:v}),Fo.copy(d.data,l,{x:0,y:0},{x:m+y,y:g},{width:1,height:v})}this.image=l,this.iconPositions=n,this.patternPositions=r};Js.prototype.addImages=function(e,t,n){for(var r in e){var i=e[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),t[r]=new Ks(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},Js.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}
vendor: 4,680 bytes, line 1
1,Js.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl,i=r[0],o=r[1];n.update(t.data,void 0,{x:i,y:o})}},yr("ImagePosition",Ks),yr("ImageAtlas",Js);var Qs=self.HTMLImageElement,el=self.HTMLCanvasElement,tl=self.HTMLVideoElement,nl=self.ImageData,rl=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};rl.prototype.update=function(e,t,n){var r=e.width,i=e.height,o=!(this.size&&this.size[0]===r&&this.size[1]===i||n),a=this.context,s=a.gl;if(this.useMipmap=Boolean(t&&t.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),o)this.size=[r,i],e instanceof Qs||e instanceof el||e instanceof tl||e instanceof nl?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,r,i,0,this.format,s.UNSIGNED_BYTE,e.data);else{var l=n||{x:0,y:0},u=l.x,c=l.y;e instanceof Qs||e instanceof el||e instanceof tl||e instanceof nl?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,u,c,r,i,s.RGBA,s.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&s.generateMipmap(s.TEXTURE_2D)},rl.prototype.bind=function(e,t,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)},rl.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},rl.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var il={read:function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,m=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*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=f,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=f,a/=256,u-=8);e[n+d-f]|=128*m}},ol=al;function al(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}al.Varint=0,al.Fixed64=1,al.Bytes=2,al.Fixed32=5;var sl="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ll(e){return e.type===al.Bytes?e.readVarint()+e.pos:e.pos+1}function ul(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function cl(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function hl(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function pl(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function dl(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function fl(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function ml(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function gl(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function yl(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function vl(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function _l(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function xl(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function bl(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function wl(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function Sl(e,t,n){1===e&&n.readMessage(kl,t)}function kl(e,t,n){if(3===e){var r=n.readMessage(Tl,{}),i=r.id,o=r.bitmap,a=r.width,s=r.height,l=r.left,u=r.top,c=r.advance;t.push({id:i,bitmap:new Bo({width:a+6,height:s+6},o),metrics:{width:a,height:s,left:l,top:u,advance:c}})}}function Tl(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}
vendor: 8,217 bytes, line 1
1al.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=xl(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=wl(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=xl(this.buf,this.pos)+4294967296*xl(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=xl(this.buf,this.pos)+4294967296*wl(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=il.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=il.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return ul(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return ul(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return ul(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return ul(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return ul(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return ul(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&sl?function(e,t,n){return sl.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,l=e[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),i+=c}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==al.Bytes)return e.push(this.readVarint(t));var n=ll(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==al.Bytes)return e.push(this.readSVarint());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==al.Bytes)return e.push(this.readBoolean());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==al.Bytes)return e.push(this.readFloat());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==al.Bytes)return e.push(this.readDouble());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==al.Bytes)return e.push(this.readFixed32());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==al.Bytes)return e.push(this.readSFixed32());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==al.Bytes)return e.push(this.readFixed64());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==al.Bytes)return e.push(this.readSFixed64());var t=ll(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===al.Varint)for(;this.buf[this.pos++]>127;);else if(t===al.Bytes)this.pos=this.readVarint()+this.pos;else if(t===al.Fixed32)this.pos+=4;else{if(t!==al.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),bl(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),bl(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),bl(this.buf,-1&e,this.pos),bl(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),bl(this.buf,-1&e,this.pos),bl(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&cl(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),il.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),il.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&cl(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,al.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,hl,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,pl,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,ml,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,dl,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,fl,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,gl,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,yl,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,vl,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,_l,t)},writeBytesField:function(e,t){this.writeTag(e,al.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,al.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,al.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,al.Fixed64),this.writeFixed64
vendor: 8,982 bytes, line 1
1(t)},writeSFixed64Field:function(e,t){this.writeTag(e,al.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,al.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,al.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,al.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,al.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,al.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var Ml=function(e){var t=this;this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){t._triggered=!1,t._callback()})};Ml.prototype.trigger=function(){var e=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){e._triggered=!1,e._callback()}),0))},Ml.prototype.remove=function(){delete this._channel,this._callback=function(){}};var El=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g(["receive","process"],this),this.invoker=new Ml(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=T()?e:self};function Cl(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}El.prototype.send=function(e,t,n,r,i){var o=this;void 0===i&&(i=!1);var a=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[a]=n);var s=C(this.globalScope)?void 0:[];return this.target.postMessage({id:a,type:e,hasCallback:!!n,targetMapId:r,mustQueue:i,sourceMapId:this.mapId,data:xr(t,s)},s),{cancel:function(){n&&delete o.callbacks[a],o.target.postMessage({id:a,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},El.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else T()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},El.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},El.prototype.processTask=function(e,t){var n=this;if("<response>"===t.type){var r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(br(t.error)):r(null,br(t.data)))}else{var i=!1,o=C(this.globalScope)?void 0:[],a=t.hasCallback?function(t,r){i=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"<response>",sourceMapId:n.mapId,error:t?xr(t):null,data:xr(r,o)},o)}:function(e){i=!0},s=null,l=br(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+t.type));!i&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}},El.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Il=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};Il.prototype.setNorthEast=function(e){return this._ne=e instanceof Al?new Al(e.lng,e.lat):Al.convert(e),this},Il.prototype.setSouthWest=function(e){return this._sw=e instanceof Al?new Al(e.lng,e.lat):Al.convert(e),this},Il.prototype.extend=function(e){var t,n,r=this._sw,i=this._ne;if(e instanceof Al)t=e,n=e;else{if(!(e instanceof Il))return Array.isArray(e)?e.every(Array.isArray)?this.extend(Il.convert(e)):this.extend(Al.convert(e)):this;if(t=e._sw,n=e._ne,!t||!n)return this}return r||i?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Al(t.lng,t.lat),this._ne=new Al(n.lng,n.lat)),this},Il.prototype.getCenter=function(){return new Al((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Il.prototype.getSouthWest=function(){return this._sw},Il.prototype.getNorthEast=function(){return this._ne},Il.prototype.getNorthWest=function(){return new Al(this.getWest(),this.getNorth())},Il.prototype.getSouthEast=function(){return new Al(this.getEast(),this.getSouth())},Il.prototype.getWest=function(){return this._sw.lng},Il.prototype.getSouth=function(){return this._sw.lat},Il.prototype.getEast=function(){return this._ne.lng},Il.prototype.getNorth=function(){return this._ne.lat},Il.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Il.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Il.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Il.convert=function(e){return!e||e instanceof Il?e:new Il(e)};var Al=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Al.prototype.wrap=function(){return new Al(c(this.lng,-180,180),this.lat)},Al.prototype.toArray=function(){return[this.lng,this.lat]},Al.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Al.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Il(new Al(this.lng-n,this.lat-t),new Al(this.lng+n,this.lat+t))},Al.convert=function(e){if(e instanceof Al)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Al(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Al(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Pl=2*Math.PI*6378137;function Dl(e){return Pl*Math.cos(e*Math.PI/180)}function Ll(e){return(180+e)/360}function Ol(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Rl(e,t){return e/Dl(t)}function zl(e){var t=180-360*e;return 360/Math.PI*Math.atan(Math.exp(t*Math.PI/180))-90}var Nl=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Nl.fromLngLat=function(e,t){void 0===t&&(t=0);var n=Al.convert(e);return new Nl(Ll(n.lng),Ol(n.lat),Rl(t,n.lat))},Nl.prototype.toLngLat=function(){return new Al(360*this.x-180,zl(this.y))},Nl.prototype.toAltitude=function(){return this.z*Dl(zl(this.y))},Nl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Pl*(e=zl(this.y),1/Math.cos(e*Math.PI/180));var e};var Bl=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=jl(0,e,t,n)};Bl.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Bl.prototype.url=function(e,t){var n,r,i,o,a,s=(n=this.x,r=this.y,i=this.z,o=Cl(256*n,256*(r=Math.pow(2,i)-r-1),i),a=Cl(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(e,t,n){for(var r,i="",o=e;o>0;o--)i+=(t&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",l).replace("{bbox-epsg-3857}",s)},Bl.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new i((e.x*t-this.x)*so,(e.y*t-this.y)*so)};var Fl=function(e,t){this.wrap=e,this.canonical=t,this.key=jl(e,t.z,t.x,t.y)},Vl=function(e,t,n,r,i){this.overscaledZ=e,this.wrap=t,this.canonical=new Bl(n,+r,+i),this.key=jl(t,e,r,i)};function jl(e,t,n,r){(e*=2)<0&&(e=-1*e-1);var i=1<<t;return 32*(i*i*e+i*r+n)+t}Vl.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Vl.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Vl(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vl(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Vl.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t},Vl.prototype.children=function(e){if(this.overscaledZ>=e)return[new Vl(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Vl(t,this.wrap,t,n,r),new Vl(t,this.wrap,t,n+1,r),new Vl(t,this.wrap,t,n,r+1),new Vl(t,this.wrap,t,n+1,r+1)]},Vl.prototype.isLessThan=function(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>
vendor: 12,192 bytes, line 1
1e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))},Vl.prototype.wrapped=function(){return new Vl(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vl.prototype.unwrapTo=function(e){return new Vl(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Vl.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vl.prototype.toUnwrapped=function(){return new Fl(this.wrap,this.canonical)},Vl.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Vl.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Nl(e.x-this.wrap,e.y))},yr("CanonicalTileID",Bl),yr("OverscaledTileID",Vl,{omit:["posMatrix"]});var Ul=function(e,t,n){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return w('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=t.height;var r=this.dim=t.height-2;this.data=new Uint32Array(t.data.buffer),this.encoding=n||"mapbox";for(var i=0;i<r;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(r,i)]=this.data[this._idx(r-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,r)]=this.data[this._idx(i,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Ul.prototype.get=function(e,t){var n=new Uint8Array(this.data.buffer),r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},Ul.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Ul.prototype._idx=function(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},Ul.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},Ul.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},Ul.prototype.getPixels=function(){return new Fo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Ul.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,i=t*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(t){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-t*this.dim,l=-n*this.dim,u=o;u<a;u++)for(var c=r;c<i;c++)this.data[this._idx(c,u)]=e.data[this._idx(c+s,u+l)]},yr("DEMData",Ul);var Gl=ni([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ql=function(e){this._stringToNumber={},this._numberToString=[];for(var t=0;t<e.length;t++){var n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}};ql.prototype.encode=function(e){return this._stringToNumber[e]},ql.prototype.decode=function(e){return this._numberToString[e]};var Hl=function(e,t,n,r){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,null!=e.id&&(this.id=e.id)},Wl={geometry:{configurable:!0}};Wl.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wl.geometry.set=function(e){this._geometry=e},Hl.prototype.toJSON=function(){var e={geometry:this.geometry};for(var t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e},Object.defineProperties(Hl.prototype,Wl);var Zl=function(){this.state={},this.stateChanges={},this.deletedStates={}};Zl.prototype.updateState=function(e,t,n){var r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},h(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var i in this.deletedStates[e]={},this.state[e])i!==r&&(this.deletedStates[e][i]=null);else if(this.deletedStates[e]&&null===this.deletedStates[e][r])for(var o in this.deletedStates[e][r]={},this.state[e][r])n[o]||(this.deletedStates[e][r][o]=null);else for(var a in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][a]&&delete this.deletedStates[e][r][a]},Zl.prototype.removeFeatureState=function(e,t,n){if(null!==this.deletedStates[e]){var r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t&&t>=0)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t&&t>=0)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}},Zl.prototype.getState=function(e,t){var n=String(t),r=this.state[e]||{},i=this.stateChanges[e]||{},o=h({},r[n],i[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var a=this.deletedStates[e][t];if(null===a)return{};for(var s in a)delete o[s]}return o},Zl.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},Zl.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var i={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),h(this.state[r][o],this.stateChanges[r][o]),i[o]=this.state[r][o];n[r]=i}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var c=0,p=Object.keys(this.deletedStates[a][u]);c<p.length;c+=1){var d=p[c];delete this.state[a][u][d]}s[u]=this.state[a][u]}n[a]=n[a]||{},h(n[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var f in e)e[f].setFeatureState(n,t)};var Yl=function(e,t,n){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=t||new dr(so,16,0),this.grid3D=new dr(so,16,0),this.featureIndexArray=n||new zi};function Xl(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0,a=e;o<a.length;o+=1){var s=a[o];t=Math.min(t,s.x),n=Math.min(n,s.y),r=Math.max(r,s.x),i=Math.max(i,s.y)}return{minX:t,minY:n,maxX:r,maxY:i}}function Kl(e,t){return t-e}Yl.prototype.insert=function(e,t,n,r,i,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var s=o?this.grid3D:this.grid,l=0;l<t.length;l++){for(var u=t[l],c=[1/0,1/0,-1/0,-1/0],h=0;h<u.length;h++){var p=u[h];c[0]=Math.min(c[0],p.x),c[1]=Math.min(c[1],p.y),c[2]=Math.max(c[2],p.x),c[3]=Math.max(c[3],p.y)}c[0]<so&&c[1]<so&&c[2]>=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},Yl.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Va.VectorTile(new ol(this.rawTileData)).layers,this.sourceLayerCoder=new ql(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Yl.prototype.query=function(e,t,n){var r=this;this.loadVTLayers();for(var o=e.params||{},a=so/e.tileSize/e.scale,s=jn(o.filter),l=e.queryGeometry,u=e.queryPadding*a,c=Xl(l),h=this.grid.query(c.minX-u,c.minY-u,c.maxX+u,c.maxY+u),p=Xl(e.cameraQueryGeometry),d=0,f=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(t,n,r,o){return function(e,t,n,r,o){for(var a=0,s=e;a<s.length;a+=1){var l=s[a];if(t<=l.x&&n<=l.y&&r>=l.x&&o>=l.y)return!0}var u=[new i(t,n),new i(t,o),new i(r,o),new i(r,n)];if(e.length>2)for(var c=0,h=u;c<h.length;c+=1)if(wo(e,h[c]))return!0;for(var p=0;p<e.length-1;p++)if(So(e[p],e[p+1],u))return!0;return!1}(e.cameraQueryGeometry,t-u,n-u,r+u,o+u)}));d<f.length;d+=1){var m=f[d];h.push(m)}h.sort(Kl);for(var g,y={},v=function(i){var u=h[i];if(u!==g){g=u;var c=r.featureIndexArray.get(u),p=null;r.loadMatchingFeature(y,c.bucketIndex,c.sourceLayerIndex,c.featureIndex,s,o.layers,t,(function(t,i){p||(p=uo(t));var o={};return t.id&&(o=n.getState(i.sourceLayer||"_geojsonTileLayer",t.id)),i.queryIntersectsFeature(l,t,o,p,r.z,e.transform,a,e.pixelPosMatrix)}))}},_=0;_<h.length;_++)v(_);return y},Yl.prototype.loadMatchingFeature=function(e,t,n,r,i,o,a,s){var l=this.bucketLayerIDs[t];if(!o||function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(o,l)){var u=this.sourceLayerCoder.decode(n),c=this.vtLayers[u].feature(r);if(i(new Nr(this.tileID.overscaledZ),c))for(var h=0;h<l.length;h++){var p=l[h];if(!(o&&o.indexOf(p)<0)){var d=a[p];if(d){var f=!s||s(c,d);if(f){var m=new Hl(c,this.z,this.x,this.y);m.layer=d.serialize();var g=e[p];void 0===g&&(g=e[p]=[]),g.push({featureIndex:r,feature:m,intersectionZ:f})}}}}}},Yl.prototype.lookupSymbolFeatures=function(e,t,n,r,i,o){var a={};this.loadVTLayers();for(var s=jn(r),l=0,u=e;l<u.length;l+=1){var c=u[l];this.loadMatchingFeature(a,t,n,c,s,i,o)}return a},Yl.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,i=n[t];r<i.length;r+=1)if(e===i[r])return!0;return!1},yr("FeatureIndex",Yl,{omit:["rawTileData","sourceLayerCoder"]});var $l=function(e,t){this.tileID=e,this.uid=d(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.expiredRequestCount=0,this.state="loading"};function Jl(e,t,n,r,i){if(void 0===t.segment)return!0;for(var o=t,a=t.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;for(var l=[],u=0;s<n/2;){var c=e[a-1],h=e[a],p=e[a+1];if(!p)return!1;var d=c.angleTo(h)-h.angleTo(p);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance>r;)u-=l.shift().angleDelta;if(u>i)return!1;a++,s+=h.dist(p)}return!0}function Ql(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function eu(e,t,n){return e?.6*t*n:0}function tu(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function nu(e,t,n,r,i,o){for(var a=eu(n,i,o),s=tu(n,r)*o,l=0,u=Ql(e)/2,c=0;c<e.length-1;c++){var h=e[c],p=e[c+1],d=h.dist(p);if(l+d>u){var f=(u-l)/d,m=Et(h.x,p.x,f),g=Et(h.y,p.y,f),y=new Ms(m,g,p.angleTo(h),c);return y._round(),!a||Jl(e,y,s,a,t)?y:void 0}l+=d}}function ru(e,t,n,r,i,o,a,s,l){var u=eu(r,o,a),c=tu(r,i),h=c*a,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h<t/4&&(t=h+t/4),function e(t,n,r,i,o,a,s,l,u){for(var c=a/2,h=Ql(t),p=0,d=n-r,f=[],m=0;m<t.length-1;m++){for(var g=t[m],y=t[m+1],v=g.dist(y),_=y.angleTo(g);d+r<p+v;){var x=((d+=r)-p)/v,b=Et(g.x,y.x,x),w=Et(g.y,y.y,x);if(b>=0&&b<u&&w>=0&&w<u&&d-c>=0&&d+c<=h){var S=new Ms(b,w,_,m);S._round(),i&&!Jl(t,S,a,i,o)||f.push(S)}}p+=v}return l||f.length||s||(f=e(t,p/2,r,i,o,a,s,!0,u)),f}(e,p?t/2*s%t:(c/2+2*o)*a*s%t,t,u,n,h,p,!1,l)}function iu(e,t){var n=e.image,r=e.right-e.left,o=(r*n.paddedRect.w/(n.paddedRect.w-2)-r)/2,a=e.left-o,s=e.right+o,l=e.bottom-e.top,u=(l*n.paddedRect.h/(n.paddedRect.h-2)-l)/2,c=e.top-u,h=e.bottom+u,p=new i(a,c),d=new i(s,c),f=new i(s,h),m=new i(a,h),g=t*Math.PI/180;if(g){var y=Math.sin(g),v=Math.cos(g),_=[v,-y,y,v];p._matMult(_),d._matMult(_),m._matMult(_),f._matMult(_)}return[{tl:p,tr:d,bl:m,br:f,tex:n.paddedRect,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0}]}$l.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<N.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},$l.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},$l.prototype.loadVectorData=function(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){for(var r in e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){var n={};if(!t)return n;for(var r=function(){var e=o[i],r=e.layerIds.map((function(e){return t.getLayer(e)}
1)).filter(Boolean);if(0!==r.length){e.layers=r,e.stateDependentLayerIds&&(e.stateDependentLayers=e.stateDependentLayerIds.map((function(e){return r.filter((function(t){return t.id===e}))[0]})));for(var a=0,s=r;a<s.length;a+=1){var l=s[a];n[l.id]=e}}},i=0,o=e;i<o.length;i+=1)r();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[r];if(i instanceof Bs){if(this.hasSymbolBuckets=!0,!n)break;i.justReloaded=!0}}for(var o in this.queryPadding=0,this.buckets){var a=this.buckets[o];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(o).queryRadius(a))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Mi},$l.prototype.unloadVectorData=function(){for(var e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},$l.prototype.getBucket=function(e){return this.buckets[e.id]},$l.prototype.upload=function(e){for(var t in this.buckets){var n=this.buckets[t];n.uploadPending()&&n.upload(e)}var r=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new rl(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new rl(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},$l.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},$l.prototype.queryRenderedFeatures=function(e,t,n,r,i,o,a,s,l){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:r,scale:i,tileSize:this.tileSize,pixelPosMatrix:l,transform:a,params:o,queryPadding:this.queryPadding*s},e,t):{}},$l.prototype.querySourceFeatures=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData){var n=this.latestFeatureIndex.loadVTLayers(),r=t?t.sourceLayer:"",i=n._geojsonTileLayer||n[r];if(i)for(var o=jn(t&&t.filter),a=this.tileID.canonical,s=a.z,l=a.x,u=a.y,c={z:s,x:l,y:u},h=0;h<i.length;h++){var p=i.feature(h);if(o(new Nr(this.tileID.overscaledZ),p)){var d=new Hl(p,s,l,u);d.tile=c,e.push(d)}}}},$l.prototype.clearMask=function(){this.segments&&(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&&(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&&(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer),delete this.mask},$l.prototype.setMask=function(e,t){if(!a(this.mask,e)&&(this.clearMask(),this.mask=e,!a(e,{0:!0}))){var n=new oi,r=new xi;this.segments=new Bi,this.segments.prepareSegment(0,n,r);for(var o=Object.keys(e),s=0;s<o.length;s++){var l=e[+o[s]],u=so>>l.z,c=new i(l.x*u,l.y*u),h=new i(c.x+u,c.y+u),p=this.segments.prepareSegment(4,n,r);n.emplaceBack(c.x,c.y,c.x,c.y),n.emplaceBack(h.x,c.y,h.x,c.y),n.emplaceBack(c.x,h.y,c.x,h.y),n.emplaceBack(h.x,h.y,h.x,h.y);var d=p.vertexLength;r.emplaceBack(d,d+1,d+2),r.emplaceBack(d+1,d+2,d+3),p.vertexLength+=4,p.primitiveLength+=2}this.maskedBoundsBuffer=t.createVertexBuffer(n,Gl.members),this.maskedIndexBuffer=t.createIndexBuffer(r)}},$l.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},$l.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},$l.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=M(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var r=Date.now(),i=!1;if(this.expirationTime>r)i=!1;else if(t)if(this.expirationTime<t)i=!0;else{var o=this.expirationTime-t;o?this.expirationTime=r+Math.max(o,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},$l.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$l.prototype.setFeatureState=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets){var i=this.buckets[r],o=i.layers[0].sourceLayer||"_geojsonTileLayer",a=n[o],s=e[o];a&&s&&0!==Object.keys(s).length&&(i.update(s,a,this.imageAtlas&&this.imageAtlas.patternPositions||{}),t&&t.style&&(this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(r).queryRadius(i))))}}},$l.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$l.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<N.now()},$l.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$l.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=N.now()+e};var ou=function(e,t,n,r,o,a,s,l,u,c,h,p){var d=s.top*l-u,f=s.bottom*l+u,m=s.left*l-u,g=s.right*l+u;if(this.boxStartIndex=e.length,c){var y=f-d,v=g-m;y>0&&(y=Math.max(10*l,y),this._addLineCollisionCircles(e,t,n,n.segment,v,y,r,o,a,h))}else{if(p){var _=new i(m,d),x=new i(g,d),b=new i(m,f),w=new i(g,f),S=p*Math.PI/180;_._rotate(S),x._rotate(S),b._rotate(S),w._rotate(S),m=Math.min(_.x,x.x,b.x,w.x),g=Math.max(_.x,x.x,b.x,w.x),d=Math.min(_.y,x.y,b.y,w.y),f=Math.max(_.y,x.y,b.y,w.y)}e.emplaceBack(n.x,n.y,m,d,g,f,r,o,a,0,0)}this.boxEndIndex=e.length};ou.prototype._addLineCollisionCircles=function(e,t,n,r,i,o,a,s,l,u){var c=o/2,h=Math.floor(i/c)||1,p=1+.4*Math.log(u)/Math.LN2,d=Math.floor(h*p/2),f=-o/2,m=n,g=r+1,y=f,v=-i/2,_=v-i/4;do{if(--g<0){if(y>v)return;g=0;break}y-=t[g].dist(m),m=t[g]}while(y>_);for(var x=t[g].dist(t[g+1]),b=-d;b<h+d;b++){var w=b*c,S=v+w;if(w<0&&(S+=w),w>i&&(S+=w-i),!(S<y)){for(;y+x<S;){if(y+=x,1+ ++g>=t.length)return;x=t[g].dist(t[g+1])}var k=S-y,T=t[g],M=t[g+1].sub(T)._unit()._mult(k)._add(T)._round(),E=Math.abs(S-f)<c?0:.8*(S-f);e.emplaceBack(M.x,M.y,-o/2,-o/2,o/2,o/2,a,s,l,o/2,E)}}};var au=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=su),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function su(e,t){return e<t?-1:e>t?1:0}function lu(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,l=e[0],u=0;u<l.length;u++){var c=l[u];(!u||c.x<r)&&(r=c.x),(!u||c.y<o)&&(o=c.y),(!u||c.x>
vendor: 4,943 bytes, line 1
1a)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var h=a-r,p=s-o,d=Math.min(h,p),f=d/2,m=new au([],uu);if(0===d)return new i(r,o);for(var g=r;g<a;g+=d)for(var y=o;y<s;y+=d)m.push(new cu(g+f,y+f,f,e));for(var v=function(e){for(var t=0,n=0,r=0,i=e[0],o=0,a=i.length,s=a-1;o<a;s=o++){var l=i[o],u=i[s],c=l.x*u.y-u.x*l.y;n+=(l.x+u.x)*c,r+=(l.y+u.y)*c,t+=3*c}return new cu(n/t,r/t,0,e)}(e),_=m.length;m.length;){var x=m.pop();(x.d>v.d||!v.d)&&(v=x,n&&console.log("found best %d after %d probes",Math.round(1e4*x.d)/1e4,_)),x.max-v.d<=t||(f=x.h/2,m.push(new cu(x.p.x-f,x.p.y-f,f,e)),m.push(new cu(x.p.x+f,x.p.y-f,f,e)),m.push(new cu(x.p.x-f,x.p.y+f,f,e)),m.push(new cu(x.p.x+f,x.p.y+f,f,e)),_+=4)}return n&&(console.log("num probes: "+_),console.log("best distance: "+v.d)),v.p}function uu(e,t){return t.max-e.max}function cu(e,t,n,r){this.p=new i(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,i=0;i<t.length;i++)for(var o=t[i],a=0,s=o.length,l=s-1;a<s;l=a++){var u=o[a],c=o[l];u.y>e.y!=c.y>e.y&&e.x<(c.x-u.x)*(e.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,xo(e,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}au.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},au.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},au.prototype.peek=function(){return this.data[0]},au.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var i=e-1>>1,o=t[i];if(n(r,o)>=0)break;t[e]=o,e=i}t[e]=r},au.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,i=t[e];e<r;){var o=1+(e<<1),a=t[o],s=o+1;if(s<this.length&&n(t[s],a)<0&&(o=s,a=t[s]),n(a,i)>=0)break;t[e]=a,e=o}t[e]=i};var hu=t((function(e){e.exports=function(e,t){var n,r,i,o,a,s,l,u;for(n=3&e.length,r=e.length-n,i=t,a=3432918353,s=461845907,u=0;u<r;)l=255&e.charCodeAt(u)|(255&e.charCodeAt(++u))<<8|(255&e.charCodeAt(++u))<<16|(255&e.charCodeAt(++u))<<24,++u,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&e.charCodeAt(u+2))<<16;case 2:l^=(255&e.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),pu=t((function(e){e.exports=function(e,t){for(var n,r=e.length,i=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),du=hu,fu=hu,mu=pu;du.murmur3=fu,du.murmur2=mu;var gu=Number.POSITIVE_INFINITY;function yu(e,t){return t[1]!==gu?function(e,t,n){var r=0,i=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,i]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var i=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function vu(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var _u=65535;function xu(e,t,n,r,o,a,s,l,u,c,h,p,d,f){var m=function(e,t,n,r,o,a,s,l){for(var u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=t.positionedGlyphs,h=[],p=0;p<c.length;p++){var d=c[p],f=s[d.fontStack],m=f&&f[d.glyph];if(m){var g=m.rect;if(g){var y=m.metrics.advance*d.scale/2,v=o?[d.x+y,d.y]:[0,0],_=o?[0,0]:[d.x+y+n[0],d.y+n[1]],x=(o||l)&&d.vertical,b=[0,0];x&&(b=_,_=[0,0]);var w=(m.metrics.left-4)*d.scale-y+_[0],S=(-m.metrics.top-4)*d.scale+_[1],k=w+g.w*d.scale,T=S+g.h*d.scale,M=new i(w,S),E=new i(k,S),C=new i(w,T),I=new i(k,T);if(x){var A=new i(-y,y-t.yOffset),P=-Math.PI/2,D=12-y,L=new i(5-t.yOffset-D,0),O=new(Function.prototype.bind.apply(i,[null].concat(b)));
1M._rotateAround(P,A)._add(L)._add(O),E._rotateAround(P,A)._add(L)._add(O),C._rotateAround(P,A)._add(L)._add(O),I._rotateAround(P,A)._add(L)._add(O)}if(u){var R=Math.sin(u),z=Math.cos(u),N=[z,-R,R,z];M._matMult(N),E._matMult(N),C._matMult(N),I._matMult(N)}h.push({tl:M,tr:E,bl:C,br:I,tex:g,writingMode:t.writingMode,glyphOffset:v,sectionIndex:d.sectionIndex})}}}return h}(0,n,s,r,o,a,p,e.allowVerticalPlacement),g=e.textSizeData,y=null;"source"===g.kind?(y=[Es*r.layout.get("text-size").evaluate(a,{})])[0]>_u&&w(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'):"composite"===g.kind&&((y=[Es*f.compositeTextSizes[0].evaluate(a,{}),Es*f.compositeTextSizes[1].evaluate(a,{})])[0]>_u||y[1]>_u)&&w(e.layerIds[0]+': Value for "text-size" is >= 256. Reduce your "text-size".'),e.addSymbols(e.text,m,y,s,o,a,u,t,l.lineStartIndex,l.lineLength,d);for(var v=0,_=c;v<_.length;v+=1)h[_[v]]=e.text.placedSymbolArray.length-1;return 4*m.length}function bu(e,t,n,r){var i=e.compareText;if(t in i){for(var o=i[t],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[t]=[];return i[t].push(r),!1}e.Actor=El,e.AlphaImage=Bo,e.CanonicalTileID=Bl,e.CollisionBoxArray=Mi,e.Color=Je,e.DEMData=Ul,e.DataConstantProperty=Wr,e.DictionaryCoder=ql,e.EXTENT=so,e.ErrorEvent=Me,e.EvaluationParameters=Nr,e.Event=Te,e.Evented=Ee,e.FeatureIndex=Yl,e.FillBucket=Ea,e.FillExtrusionBucket=qa,e.ImageAtlas=Js,e.ImagePosition=Ks,e.LineBucket=ts,e.LngLat=Al,e.LngLatBounds=Il,e.MercatorCoordinate=Nl,e.ONE_EM=24,e.OverscaledTileID=Vl,e.Point=i,e.Point$1=i,e.ProgramConfiguration=ro,e.Properties=$r,e.Protobuf=ol,e.RGBAImage=Fo,e.RequestManager=q,e.ResourceType=pe,e.SegmentVector=Bi,e.SourceFeatureState=Zl,e.StructArrayLayout1ui2=wi,e.StructArrayLayout2i4=ii,e.StructArrayLayout2ui4=bi,e.StructArrayLayout3ui6=xi,e.StructArrayLayout4i8=oi,e.SymbolBucket=Bs,e.Texture=rl,e.Tile=$l,e.Transitionable=Vr,e.Uniform1f=qi,e.Uniform1i=Gi,e.Uniform2f=Hi,e.Uniform3f=Wi,e.Uniform4f=Zi,e.UniformColor=Yi,e.UniformMatrix4f=Ki,e.UnwrappedTileID=Fl,e.ValidationError=Ie,e.WritingMode=fs,e.ZoomHistory=wr,e.addDynamicAttributes=Rs,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,i=new Array(e.length),o=null;e.forEach((function(e,a){t(e,(function(e,t){e&&(o=e),i[a]=t,0==--r&&n(o,i)}))}))},e.bezier=s,e.bindAll=g,e.browser=N,e.cacheEntryPossiblyAdded=function(e){++he>le&&(e.getActor().send("enforceCacheSizeLimit",se),he=0)},e.clamp=u,e.clearTileCache=function(e){var t=self.caches.delete(ae);e&&t.catch(e).then((function(){return e()}))},e.clone=function(e){var t=new Ao(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=x,e.config=B,e.create=function(){var e=new Ao(16);return Ao!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=function(){var e=new Ao(9);return Ao!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},e.create$2=function(){var e=new Ao(4);return Ao!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=Cn,e.createLayout=ni,e.createStyleLayer=function(e){return"custom"===e.type?new Zs(e):new Ys[e.type](e)},e.deepEqual=a,e.ease=l,e.emitValidationErrors=pr,e.endsWith=y,e.enforceCacheSizeLimit=function(e){ue(),Q&&Q.then((function(t){t.keys().then((function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])}))}))},e.evaluateSizeForFeature=Is,e.evaluateSizeForZoom=As,e.evaluateVariableOffset=yu,e.evented=Rr,e.extend=h,e.featureFilter=jn,e.filterObject=_,e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=Ss,e.getAnchorJustification=vu,e.getArrayBuffer=xe,e.getImage=we,e.getJSON=function(e,t){return _e(h(e,{type:"json"}),t)},e.getRTLTextPluginStatus=function(){return Lr},e.getReferrer=me,e.getVideo=function(e,t){var n,r,i=self.document.createElement("video");i.muted=!0,i.onloadstart=function(){t(null,i)};for(var o=0;o<e.length;o++){var a=self.document.createElement("source");
1n=e[o],r=void 0,(r=self.document.createElement("a")).href=n,(r.protocol!==self.document.location.protocol||r.host!==self.document.location.host)&&(i.crossOrigin="Anonymous"),a.src=e[o],i.appendChild(a)}return{cancel:function(){}}},e.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.ieee754=il,e.invert=function(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],p=t[10],d=t[11],f=t[12],m=t[13],g=t[14],y=t[15],v=n*s-r*a,_=n*l-i*a,x=n*u-o*a,b=r*l-i*s,w=r*u-o*s,S=i*u-o*l,k=c*m-h*f,T=c*g-p*f,M=c*y-d*f,E=h*g-p*m,C=h*y-d*m,I=p*y-d*g,A=v*I-_*C+x*E+b*M-w*T+S*k;return A?(A=1/A,e[0]=(s*I-l*C+u*E)*A,e[1]=(i*C-r*I-o*E)*A,e[2]=(m*S-g*w+y*b)*A,e[3]=(p*w-h*S-d*b)*A,e[4]=(l*M-a*I-u*T)*A,e[5]=(n*I-i*M+o*T)*A,e[6]=(g*x-f*S-y*_)*A,e[7]=(c*S-p*x+d*_)*A,e[8]=(a*C-s*M+u*k)*A,e[9]=(r*M-n*C-o*k)*A,e[10]=(f*w-m*x+y*v)*A,e[11]=(h*x-c*w-d*v)*A,e[12]=(s*T-a*E-l*k)*A,e[13]=(n*E-r*T+i*k)*A,e[14]=(m*_-f*b-g*v)*A,e[15]=(c*b-h*_+p*v)*A,e):null},e.isChar=Sr,e.isMapboxURL=H,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=_e,e.mapObject=v,e.mercatorXfromLng=Ll,e.mercatorYfromLat=Ol,e.mercatorZfromAltitude=Rl,e.multiply=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],m=t[12],g=t[13],y=t[14],v=t[15],_=n[0],x=n[1],b=n[2],w=n[3];return e[0]=_*r+x*s+b*h+w*m,e[1]=_*i+x*l+b*p+w*g,e[2]=_*o+x*u+b*d+w*y,e[3]=_*a+x*c+b*f+w*v,_=n[4],x=n[5],b=n[6],w=n[7],e[4]=_*r+x*s+b*h+w*m,e[5]=_*i+x*l+b*p+w*g,e[6]=_*o+x*u+b*d+w*y,e[7]=_*a+x*c+b*f+w*v,_=n[8],x=n[9],b=n[10],w=n[11],e[8]=_*r+x*s+b*h+w*m,e[9]=_*i+x*l+b*p+w*g,e[10]=_*o+x*u+b*d+w*y,e[11]=_*a+x*c+b*f+w*v,_=n[12],x=n[13],b=n[14],w=n[15],e[12]=_*r+x*s+b*h+w*m,e[13]=_*i+x*l+b*p+w*g,e[14]=_*o+x*u+b*d+w*y,e[15]=_*a+x*c+b*f+w*v,e},e.mvt=Va,e.number=Et,e.ortho=function(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),u=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(a+o)*u,e[15]=1,e},e.parseGlyphPBF=function(e){return new ol(e).readFields(Sl,[])},e.performSymbolLayout=function(e,t,n,r,o,a){e.createArrays();var s=512*e.overscaling;e.tilePixelRatio=so/s,e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,c={};if("composite"===e.textSizeData.kind){var h=e.textSizeData,p=h.minZoom,d=h.maxZoom;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new Nr(p)),u["text-size"].possiblyEvaluate(new Nr(d))]}if("composite"===e.iconSizeData.kind){var f=e.iconSizeData,m=f.minZoom,g=f.maxZoom;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new Nr(m)),u["icon-size"].possiblyEvaluate(new Nr(g))]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new Nr(e.zoom+1)),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new Nr(e.zoom+1)),c.textMaxSize=u["text-size"].possiblyEvaluate(new Nr(18));for(var y=24*l.get("text-line-height"),v="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),_=l.get("text-keep-upright"),x=function(){var a=S[b],s=l.get("text-font").evaluate(a,{}).join(","),u=n,h={horizontal:{},vertical:void 0},p=a.text,d=[0,0];if(p){var f=p.toString(),m=24*l.get("text-letter-spacing").evaluate(a,{}),g=function(e){for(var t=0,n=e;t<n.length;t+=1)if(!Tr(n[t].charCodeAt(0)))return!1;return!0}(f)?m:0,x=l.get("text-anchor").evaluate(a,{}),k=l.get("text-variable-anchor");if(!k){var T=l.get("text-radial-offset").evaluate(a,{});d=T?yu(x,[24*T,gu]):l.get("text-offset").evaluate(a,{}).map((function(e){return 24*e}))}var M=v?"center":l.get("text-justify").evaluate(a,{}),E=l.get("symbol-placement"),C="point"===E?24*l.get("text-max-width").evaluate(a,{}):0,I=function(){e.allowVerticalPlacement&&kr(f)&&(h.vertical=gs(p,t,s,C,y,x,"left",g,d,fs.vertical,!0,E))};if(!v&&k){for(var A="auto"===M?k.map((function(e){return vu(e)})):[M],P=!1,D=0;D<A.length;D++){var L=A[D];if(!h.horizontal[L])if(P)h.horizontal[L]=h.horizontal[0];else{var O=gs(p,t,s,C,y,"center",L,g,d,fs.horizontal,!1,E);O&&(h.horizontal[L]=O,P=1===O.lineCount)}}I()}else{"auto"===M&&(M=vu(x));var R=gs(p,t,s,C,y,x,M,g,d,fs.horizontal,!1,E);R&&(h.horizontal[M]=R),I(),kr(f)&&v&&_&&(h.vertical=gs(p,t,s,C,y,x,M,g,d,fs.vertical,!1,E))}}var z=void 0;if(a.icon&&a.icon.name){var N=r[a.icon.name];N&&(z=function(e,t,n){var r=Ss(n),i=r.horizontalAlign,o=r.verticalAlign,a=t[0],s=t[1],l=a-e.displaySize[0]*i,u=l+e.displaySize[0],c=s-e.displaySize[1]*o;return{image:e,top:c,bottom:c+e.displaySize[1],left:l,right:u}}(o[a.icon.name],l.get("icon-offset").evaluate(a,{}),l.get("icon-anchor").evaluate(a,{})),void 0===e.sdfIcons?e.sdfIcons=N.sdf:e.sdfIcons!==N.sdf&&w("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(N.pixelRatio!==e.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}(Object.keys(h.horizontal).length||z)&&function(e,t,n,r,o,a,s){var l=a.layoutTextSize.evaluate(t,{}),u=a.layoutIconSize.evaluate(t,{}),c=a.textMaxSize.evaluate(t,{});void 0===c&&(c=l);var h,p=e.layers[0].layout,d=p.get("icon-offset").evaluate(t,{}),f=function(e){for(var t in e)return e[t];return null}(n.horizontal),m=l/24,g=e.tilePixelRatio*m,y=e.tilePixelRatio*c/24,v=e.tilePixelRatio*u,_=e.tilePixelRatio*p.get("symbol-spacing"),x=p.get("text-padding")*e.tilePixelRatio,b=p.get("icon-padding")*e.tilePixelRatio,S=p.get("text-max-angle")/180*Math.PI,k="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),T="map"===p.get("icon-rotation-alignment")&&"point"!==p.get("symbol-placement"),M=p.get("symbol-placement"),E=_/2,C=p.get("icon-text-fit");r&&"none"!==C&&(e.allowVerticalPlacement&&n.vertical&&(h=Ts(r,n.vertical,C,p.get("icon-text-fit-padding"),d,m)),f&&(r=Ts(r,f,C,p.get("icon-text-fit-padding"),d,m)));var I=function(i,l){l.x<0||l.x>=so||l.y<0||l.y>=so||function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m,g,y,v,_,x,b){var S,k,T,M,E,C=e.addToLineVertexArray(t,n),I=0,A=0,P=0,D=0,L=-1,O=-1,R={},z=du(""),N=0,B=0;if(void 0===a._unevaluatedLayout.getValue("text-radial-offset")?(N=(S=a.layout.get("text-offset").evaluate(_,{}).map((function(e){return 24*e})))[0],B=S[1]):(N=24*a.layout.get("text-radial-offset").evaluate(_,{}),B=gu),e.allowVerticalPlacement&&r.vertical){var F=a.layout.get("text-rotate").evaluate(_,{})+90,V=r.vertical;M=new ou(s,n,t,l,u,c,V,h,p,d,e.overscaling,F),o&&(E=new ou(s,n,t,l,u,c,o,m,g,d,e.overscaling,F))}if(i){var j=a.layout.get("icon-rotate").evaluate(_,{}),U=iu(i,j),G=o?iu(o,j):void 0;T=new ou(s,n,t,l,u,c,i,m,g,!1,e.overscaling,j),I=4*U.length;var q=e.iconSizeData,H=null;"source"===q.kind?(H=[Es*a.layout.get("icon-size").evaluate(_,{})])[0]>_u&&w(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'):"composite"===q.kind&&((H=[Es*b.compositeIconSizes[0].evaluate(_,{}),Es*b.compositeIconSizes[1].evaluate(_,{})])[0]>_u||H[1]>_u)&&w(e.layerIds[0]+': Value for "icon-size" is >= 256. Reduce your "icon-size".'),e.addSymbols(e.icon,U,H,v,y,_,!1,t,C.lineStartIndex,C.lineLength,-1),L=e.icon.placedSymbolArray.length-1,G&&(A=4*G.length,e.addSymbols(e.icon,G,H,v,y,_,f
1s.vertical,t,C.lineStartIndex,C.lineLength,-1),O=e.icon.placedSymbolArray.length-1)}for(var W in r.horizontal){var Z=r.horizontal[W];if(!k){z=du(Z.text);var Y=a.layout.get("text-rotate").evaluate(_,{});k=new ou(s,n,t,l,u,c,Z,h,p,d,e.overscaling,Y)}var X=1===Z.lineCount;if(P+=xu(e,t,Z,a,d,_,f,C,r.vertical?fs.horizontal:fs.horizontalOnly,X?Object.keys(r.horizontal):[W],R,x,L,b),X)break}r.vertical&&(D+=xu(e,t,r.vertical,a,d,_,f,C,fs.vertical,["vertical"],R,x,O,b));var K=k?k.boxStartIndex:e.collisionBoxArray.length,$=k?k.boxEndIndex:e.collisionBoxArray.length,J=M?M.boxStartIndex:e.collisionBoxArray.length,Q=M?M.boxEndIndex:e.collisionBoxArray.length,ee=T?T.boxStartIndex:e.collisionBoxArray.length,te=T?T.boxEndIndex:e.collisionBoxArray.length,ne=E?E.boxStartIndex:e.collisionBoxArray.length,re=E?E.boxEndIndex:e.collisionBoxArray.length;e.glyphOffsetArray.length>=Bs.MAX_GLYPHS&&w("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),e.symbolInstances.emplaceBack(t.x,t.y,R.right>=0?R.right:-1,R.center>=0?R.center:-1,R.left>=0?R.left:-1,R.vertical||-1,L,O,z,K,$,J,Q,ee,te,ne,re,l,P,D,I,A,0,h,N,B)}(e,l,i,n,r,h,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,g,x,k,s,v,b,T,d,t,o,a)};if("line"===M)for(var A=0,P=function(e,t,n,r,o){for(var a=[],s=0;s<e.length;s++)for(var l=e[s],u=void 0,c=0;c<l.length-1;c++){var h=l[c],p=l[c+1];h.x<0&&p.x<0||(h.x<0?h=new i(0,h.y+(p.y-h.y)*((0-h.x)/(p.x-h.x)))._round():p.x<0&&(p=new i(0,h.y+(p.y-h.y)*((0-h.x)/(p.x-h.x)))._round()),h.y<0&&p.y<0||(h.y<0?h=new i(h.x+(p.x-h.x)*((0-h.y)/(p.y-h.y)),0)._round():p.y<0&&(p=new i(h.x+(p.x-h.x)*((0-h.y)/(p.y-h.y)),0)._round()),h.x>=r&&p.x>=r||(h.x>=r?h=new i(r,h.y+(p.y-h.y)*((r-h.x)/(p.x-h.x)))._round():p.x>=r&&(p=new i(r,h.y+(p.y-h.y)*((r-h.x)/(p.x-h.x)))._round()),h.y>=o&&p.y>=o||(h.y>=o?h=new i(h.x+(p.x-h.x)*((o-h.y)/(p.y-h.y)),o)._round():p.y>=o&&(p=new i(h.x+(p.x-h.x)*((o-h.y)/(p.y-h.y)),o)._round()),u&&h.equals(u[u.length-1])||(u=[h],a.push(u)),u.push(p)))))}return a}(t.geometry,0,0,so,so);A<P.length;A+=1)for(var D=P[A],L=0,O=ru(D,_,S,n.vertical||f,r,24,y,e.overscaling,so);L<O.length;L+=1){var R=O[L];f&&bu(e,f.text,E,R)||I(D,R)}else if("line-center"===M)for(var z=0,N=t.geometry;z<N.length;z+=1){var B=N[z];if(B.length>1){var F=nu(B,S,n.vertical||f,r,24,y);F&&I(B,F)}}else if("Polygon"===t.type)for(var V=0,j=Sa(t.geometry,0);V<j.length;V+=1){var U=j[V],G=lu(U,16);I(U[0],new Ms(G.x,G.y,0))}else if("LineString"===t.type)for(var q=0,H=t.geometry;q<H.length;q+=1){var W=H[q];I(W,new Ms(W[0].x,W[0].y,0))}else if("Point"===t.type)for(var Z=0,Y=t.geometry;Z<Y.length;Z+=1)for(var X=0,K=Y[Z];X<K.length;X+=1){var $=K[X];I([$],new Ms($.x,$.y,0))}}(e,a,h,z,u,c,d)},b=0,S=e.features;b<S.length;b+=1)x();a&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,i){var o,a=1/Math.tan(t/2);return e[0]=a/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(o=1/(r-i),e[10]=(i+r)*o,e[14]=2*i*r*o):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r];i in e&&(n[i]=e[i])}return n},e.plugin=zr,e.polygonIntersectsPolygon=po,e.postMapLoadEvent=oe,e.postTurnstileEvent=re,e.potpack=Xs,e.rasterBoundsAttributes=Gl,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=yr,e.registerForPluginAvailability=function(e){return Or?e({pluginURL:Or,completionCallback:Ir}):Rr.once("pluginAvailable",e),e},e.rotate=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(n),l=Math.cos(n);return e[0]=r*l+o*s,e[1]=i*l+a*s,e[2]=r*-s+o*l,e[3]=i*-s+a*l,e},e.rotateX=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+u*r,e[5]=a*i+c*r,e[6]=s*i+h*r,e[7]=l*i+p*r,e[8]=u*i-o*r,e[9]=c*i-a*r,e[10]=h*i-s*r,e[11]=p*i-l*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+u*r,e[1]=a*i+c*r,e[2]=s*i+h*r,e[3]=l*i+p*r,e[4]=u*i-o*r,e[5]=c*i-a*r,e[6]=h*i-s*r,e[7]=p*i-l*r,e},e.scale=function(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}
vendor: 5,250 bytes, line 1
1,e.setCacheLimits=function(e,t){se=e,le=t},e.setRTLTextPlugin=function(e,t){if(Lr===Pr||Lr===Dr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Lr=Pr,Or=N.resolveURL(e),Ir=function(e){e?(Lr=Ar,Or=null,Lr="error",t&&t(e)):Lr=Dr},Rr.fire(new Te("pluginAvailable",{pluginURL:Or,completionCallback:Ir}))},e.sphericalToCartesian=function(e){var t=e[0],n=e[1],r=e[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(n)*Math.sin(r),y:t*Math.sin(n)*Math.sin(r),z:t*Math.cos(r)}},e.styleSpec=Ce,e.symbolSize=Ps,e.transformMat3=function(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e},e.transformMat4=Po,e.translate=function(e,t,n){var r,i,o,a,s,l,u,c,h,p,d,f,m=n[0],g=n[1],y=n[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*y+t[12],e[13]=t[1]*m+t[5]*g+t[9]*y+t[13],e[14]=t[2]*m+t[6]*g+t[10]*y+t[14],e[15]=t[3]*m+t[7]*g+t[11]*y+t[15]):(r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],p=t[9],d=t[10],f=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=u,e[7]=c,e[8]=h,e[9]=p,e[10]=d,e[11]=f,e[12]=r*m+s*g+h*y+t[12],e[13]=i*m+l*g+p*y+t[13],e[14]=o*m+u*g+d*y+t[14],e[15]=a*m+c*g+f*y+t[15]),e},e.uniqueId=d,e.validateCustomStyleLayer=function(e){var t=[],n=e.id;return void 0===n&&t.push({message:"layers."+n+': missing required property "id"'}),void 0===e.render&&t.push({message:"layers."+n+': missing required method "render"'}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),t},e.validateLight=ur,e.validateStyle=lr,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=Va,e.version="1.5.1",e.warnOnce=w,e.webpSupported=F,e.window=self,e.wrap=c})),r(0,(function(e){function t(e){var n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){for(var r="[",i=0,o=e;i<o.length;i+=1)r+=t(o[i])+",";return r+"]"}for(var a=Object.keys(e).sort(),s="{",l=0;l<a.length;l++)s+=JSON.stringify(a[l])+":"+t(e[a[l]])+",";return s+"}"}function n(n){for(var r="",i=0,o=e.refProperties;i<o.length;i+=1)r+="/"+t(n[o[i]]);return r}var r=function(e){this.keyCache={},e&&this.replace(e)};r.prototype.replace=function(e){this._layerConfigs={},this._layers={},this.update(e,[])},r.prototype.update=function(t,r){for(var i=this,o=0,a=t;o<a.length;o+=1){var s=a[o];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=e.createStyleLayer(s);l._featureFilter=e.featureFilter(l.filter),this.keyCache[s.id]&&delete this.keyCache[s.id]}for(var u=0,c=r;u<c.length;u+=1){var h=c[u];delete this.keyCache[h],delete this._layerConfigs[h],delete this._layers[h]}this.familiesBySource={};for(var p=0,d=function(e,t){for(var r={},i=0;i<e.length;i++){var o=t&&t[e[i].id]||n(e[i]);t&&(t[e[i].id]=o);var a=r[o];a||(a=r[o]=[]),a.push(e[i])}var s=[];for(var l in r)s.push(r[l]);return s}(e.values(this._layerConfigs),this.keyCache);p<d.length;p+=1){var f=d[p].map((function(e){return i._layers[e.id]})),m=f[0];if("none"!==m.visibility){var g=m.source||"",y=this.familiesBySource[g];y||(y=this.familiesBySource[g]={});var v=m.sourceLayer||"_geojsonTileLayer",_=y[v];_||(_=y[v]=[]),_.push(f)}}};var i=function(t){var n={},r=[];for(var i in t){var o=t[i],a=n[i]={};for(var s in o){var l=o[+s];if(l&&0!==l.bitmap.width&&0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};r.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=e.potpack(r),h=c.w,p=c.h,d=new e.AlphaImage({width:h||1,height:p||1});for(var f in t){var m=t[f];for(var g in m){var y=m[+g];if(y&&0!==y.bitmap.width&&0!==y.bitmap.height){var v=n[f][g].rect;e.AlphaImage.copy(y.bitmap,d,{x:0,y:0},{x:v.x+1,y:v.y+1},y.bitmap)}}}this.image=d,this.positions=n};e.register("GlyphAtlas",i);var o=function(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies};function a(t,n,r){for(var i=new e.EvaluationParameters(n),o=0,a=t;o<a.length;o+=1)a[o].recalculate(i,r)}o.prototype.parse=function(t,n,r,o,s){var l=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var u=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID);c.bucketLayerIDs=[];var h,p,d,f,m={},g={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},y=n.familiesBySource[this.source];for(var v in y){var _=t.layers[v];if(_){1===_.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+v+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var x=u.encode(v),b=[],w=0;w<_.length;w++){var S=_.feature(w);b.push({feature:S,index:w,sourceLayerIndex:x})}for(var k=0,T=y[v];k<T.length;k+=1){var M=T[k],E=M[0];E.minzoom&&this.zoom<Math.floor(E.minzoom)||E.maxzoom&&this.zoom>=E.maxzoom||"none"!==E.visibility&&(a(M,this.zoom,r),(m[E.id]=E.
1createBucket({index:c.bucketLayerIDs.length,layers:M,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:x,sourceID:this.source})).populate(b,g),c.bucketLayerIDs.push(M.map((function(e){return e.id}))))}}}var C=e.mapObject(g.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(C).length?o.send("getGlyphs",{uid:this.uid,stacks:C},(function(e,t){h||(h=e,p=t,P.call(l))})):p={};var I=Object.keys(g.iconDependencies);I.length?o.send("getImages",{icons:I},(function(e,t){h||(h=e,d=t,P.call(l))})):d={};var A=Object.keys(g.patternDependencies);function P(){if(h)return s(h);if(p&&d&&f){var t=new i(p),n=new e.ImageAtlas(d,f);for(var o in m){var l=m[o];l instanceof e.SymbolBucket?(a(l.layers,this.zoom,r),e.performSymbolLayout(l,p,t.positions,d,n.iconPositions,this.showCollisionBoxes)):l.hasPattern&&(l instanceof e.LineBucket||l instanceof e.FillBucket||l instanceof e.FillExtrusionBucket)&&(a(l.layers,this.zoom,r),l.addFeatures(g,n.patternPositions))}this.status="done",s(null,{buckets:e.values(m).filter((function(e){return!e.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?t.positions:null})}}A.length?o.send("getImages",{icons:A},(function(e,t){h||(h=e,f=t,P.call(l))})):f={},P.call(this)};var s="undefined"!=typeof performance,l={getEntriesByName:function(e){return!!(s&&performance&&performance.getEntriesByName)&&performance.getEntriesByName(e)},mark:function(e){return!!(s&&performance&&performance.mark)&&performance.mark(e)},measure:function(e,t,n){return!!(s&&performance&&performance.measure)&&performance.measure(e,t,n)},clearMarks:function(e){return!!(s&&performance&&performance.clearMarks)&&performance.clearMarks(e)},clearMeasures:function(e){return!!(s&&performance&&performance.clearMeasures)&&performance.clearMeasures(e)}},u=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},l.mark(this._marks.start)};function c(t,n){var r=e.getArrayBuffer(t.request,(function(t,r,i,o){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.Protobuf(r)),rawData:r,cacheControl:i,expires:o})}));return function(){r.cancel(),n()}}u.prototype.finish=function(){l.mark(this._marks.end);var e=l.getEntriesByName(this._marks.measure);return 0===e.length&&(l.measure(this._marks.measure,this._marks.start,this._marks.end),e=l.getEntriesByName(this._marks.measure),l.clearMarks(this._marks.start),l.clearMarks(this._marks.end),l.clearMeasures(this._marks.measure)),e},l.Performance=u;var h=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||c,this.loading={},this.loaded={}};h.prototype.loadTile=function(t,n){var r=this,i=t.uid;this.loading||(this.loading={});var a=!!(t&&t.request&&t.request.collectResourceTiming)&&new l.Performance(t.request),s=this.loading[i]=new o(t);s.abort=this.loadVectorData(t,(function(t,o){if(delete r.loading[i],t||!o)return s.status="done",r.loaded[i]=s,n(t);var l=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.cacheControl=o.cacheControl);var c={};if(a){var h=a.finish();h&&(c.resourceTiming=JSON.parse(JSON.stringify(h)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:l.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},h.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,i=e.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=e.showCollisionBoxes;var s=function(e,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),t(e,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},h.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},h.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var p=function(){this.loaded={}};p.prototype.loadTile=function(t,n){var r=t.uid,i=t.encoding,o=t.rawImageData,a=new e.DEMData(r,o,i);this.loaded=this.loaded||{},this.loaded[r]=a,n(null,a)},p.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var d=6378137;function f(e){var t=0;if(e&&e.length>0){t+=Math.abs(m(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(m(e[n]))}return t}function m(e){var t,n,r,i,o,a,s=0,l=e.length;if(l>2){for(a=0;a<l;a++)a===l-2?(r=l-2,i=l-1,o=0):a===l-1?(r=l-1,i=0,o=1):(r=a,i=a+1,o=a+2),t=e[r],n=e[i],s+=(g(e[o][0])-g(t[0])
vendor: 4,554 bytes, line 1
1)*Math.sin(g(n[1]));s=s*d*d/2}return s}function g(e){return e*Math.PI/180}var y={geometry:function e(t){var n,r=0;switch(t.type){case"Polygon":return f(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=f(t.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)r+=e(t.geometries[n]);return r}},ring:m};function v(e,t){return function(n){return e(n,t)}}function _(e,t){t=!!t,e[0]=x(e[0],t);for(var n=1;n<e.length;n++)e[n]=x(e[n],!t);return e}function x(e,t){return function(e){return y.ring(e)>=0}(e)===t?e:e.reverse()}var b=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,w=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};w.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var i=r[n];t.push([new e.Point$1(i[0],i[1])])}return t}for(var o=[],a=0,s=this._feature.geometry;a<s.length;a+=1){for(var l=[],u=0,c=s[a];u<c.length;u+=1){var h=c[u];l.push(new e.Point$1(h[0],h[1]))}o.push(l)}return o},w.prototype.toGeoJSON=function(e,t,n){return b.call(this,e,t,n)};var S=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};S.prototype.feature=function(e){return new w(this._features[e])};var k=T;function T(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}function M(e){return e.type===T.Bytes?e.readVarint()+e.pos:e.pos+1}function E(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function C(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function I(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function A(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function P(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function D(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function L(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function O(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function R(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function z(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function N(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function B(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function F(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function V(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}T.Varint=0,T.Fixed64=1,T.Bytes=2,T.Fixed32=5,T.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=B(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=V(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=B(this.buf,this.pos)+4294967296*B(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=B(this.buf,this.pos)+4294967296*V(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var t=e.ieee754.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=e.ieee754.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return E(e,r,t);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return E(e,r,t);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return E(e,r,t);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return E(e,r,t);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return E(e,r,t);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return E(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=function(e,t,n){for(var r="",i=t;i<n;){var o,a,s,l=e[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>n)break;
vendor: 15,069 bytes, line 1
11===c?l<128&&(u=l):2===c?128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),i+=c}return r}(this.buf,this.pos,e);return this.pos=e,t},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==T.Bytes)return e.push(this.readVarint(t));var n=M(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==T.Bytes)return e.push(this.readSVarint());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==T.Bytes)return e.push(this.readBoolean());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==T.Bytes)return e.push(this.readFloat());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==T.Bytes)return e.push(this.readDouble());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==T.Bytes)return e.push(this.readFixed32());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==T.Bytes)return e.push(this.readSFixed32());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==T.Bytes)return e.push(this.readFixed64());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==T.Bytes)return e.push(this.readSFixed64());var t=M(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===T.Varint)for(;this.buf[this.pos++]>127;);else if(t===T.Bytes)this.pos=this.readVarint()+this.pos;else if(t===T.Fixed32)this.pos+=4;else{if(t!==T.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),F(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),F(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),F(this.buf,-1&e,this.pos),F(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),F(this.buf,-1&e,this.pos),F(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos]=127&e}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,i,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):i=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(e[n++]=239,e[n++]=191,e[n++]=189,i=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&C(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),e.ieee754.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),e.ieee754.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&C(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,T.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,I,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,A,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,L,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,P,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,D,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,O,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,R,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,z,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,N,t)},writeBytesField:function(e,t){this.writeTag(e,T.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,T.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,T.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,T.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,T.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,T.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,T.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,T.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,T.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,T.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var j=e.vectorTile.VectorTileFeature,U=G;function G(e,t){this.options=t||{},this.features=e,this.length=e.length}function q(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}G.prototype.feature=function(e){return new q(this.features[e],this.options.extent)},q.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],i=[],o=0;o<r.length;o++)i.push(new e.Point$1(r[o][0],r[o][1]));this.geometry.push(i)}return this.geometry},q.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.length;s++){var l=a[s];t=Math.min(t,l.x),n=Math.max(n,l.x),r=Math.min(r,l.y),i=Math.max(i,l.y)}return[t,r,n,i]},q.prototype.toGeoJSON=j.prototype.toGeoJSON;var H=Y,W=Y,Z=U;function Y(e){var t=new k;return function(e,t){for(var n in e.layers)t.writeMessage(3,X,e.layers[n])}(e,t),t.finish()}function X(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,K,r);var i=r.keys;for(n=0;n<i.length;n++)t.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)t.writeMessage(4,te,o[n])}function K(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,$,e),t.writeVarintField(3,n.type),t.writeMessage(4,ee,n)}function $(e,t){var n=e.feature,r=e.keys,i=e.values,o=e.keycache,a=e.valuecache;for(var s in n.properties){var l=o[s];void 0===l&&(r.push(s),l=r.length-1,o[s]=l),t.writeVarint(l);var u=n.properties[s],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var h=c+":"+u,p=a[h];void 0===p&&(i.push(u),p=i.length-1,a[h]=p),t.writeVarint(p)}}function J(e,t){return(t<<3)+(7&e)}function Q(e){return e<<1^e>>31}function ee(e,t){for(var n=e.loadGeometry(),r=e.type,i=0,o=0,a=n.length,s=0;s<a;s++){var l=n[s],u=1;1===r&&(u=l.length),t.writeVarint(J(1,u));for(var c=3===r?l.length-1:l.length,h=0;h<c;h++){1===h&&1!==r&&t.writeVarint(J(2,c-1));var p=l[h].x-i,d=l[h].y-o;t.writeVarint(Q(p)),t.writeVarint(Q(d)),i+=p,o+=d}3===r&&t.writeVarint(J(7,1))}}function te(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function ne(e,t,n,r){re(e,n,r),re(t,2*n,2*r),re(t,2*n+1,2*r+1)}function re(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ie(e,t,n,r){var i=e-n,o=t-r;return i*i+o*o}H.fromVectorTileJs=W,H.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new U(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return Y({layers:n})},H.GeoJSONWrapper=Z;var oe=function(e){return e[0]},ae=function(e){return e[1]},se=function(e,t,n,r,i){void 0===t&&(t=oe),void 0===n&&(n=ae),void 0===r&&(r=64),void 0===i&&(i=Float64Array),this.nodeSize=r,this.points=e;for(var o=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new o(e.length),s=this.coords=new i(2*e.length),l=0;l<e.length;l++)a[l]=l,s[2*l]=t(e[l]),s[2*l+1]=n(e[l]);!function e(t,n,r,i,o,a){if(!(o-i<=r)){var s=i+o>>1;!function e(t,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);e(t,n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var p=n[2*r+a],d=i,f=o;for(ne(t,n,i,r),n[2*o+a]>p&&ne(t,n,i,o);d<f;){for(ne(t,n,d,f),d++,f--;n[2*d+a]<p;)d++;for(;n[2*f+a]>p;)f--}n[2*i+a]===p?ne(t,n,i,f):ne(t,n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(t,n,s,i,o,a%2),e(t,n,r,i,s-1,a+1),e(t,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};se.prototype.range=function(e,t,n,r){return function(e,t,n,r,i,o,a){for(var s,l,u=[0,e.length-1,0],c=[];u.length;){var h=u.pop(),p=u.pop(),d=u.pop();if(p-d<=a)for(var f=d;f<=p;f++)s=t[2*f],l=t[2*f+1],s>=n&&s<=i&&l>=r&&l<=o&&c.push(e[f]);else{var m=Math.floor((d+p)/2);s=t[2*m],l=t[2*m+1],s>=n&&s<=i&&l>=r&&l<=o&&c.push(e[m]);var g=(h+1)%2;(0===h?n<=s:r<=l)&&(u.push(d),u.push(m-1),u.push(g)),(0===h?i>=s:o>=l)&&(u.push(m+1),u.push(p),u.push(g))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},se.prototype.within=function(e,t,n){return function(e,t,n,r,i,o){for(var a=[0,e.length-1,0],s=[],l=i*i;a.length;){var u=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var p=h;p<=c;p++)ie(t[2*p],t[2*p+1],n,r)<=l&&s.push(e[p]);else{var d=Math.floor((h+c)/2),f=t[2*d],m=t[2*d+1];ie(f,m,n,r)<=l&&s.push(e[d]);var g=(u+1)%2;(0===u?n-i<=f:r-i<=m)&&(a.push(h),a.push(d-1),a.push(g)),(0===u?n+i>=f:r+i>=m)&&(a.push(d+1),a.push(c),a.push(g))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)};var le={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(e){return e}},ue=function(e){this.options=ge(Object.create(le),e),this.trees=new Array(this.options.maxZoom+1)};function ce(e,t,n,r,i){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function he(e,t){var n=e.geometry.coordinates,r=n[0],i=n[1];return{x:fe(r),y:me(i),zoom:1/0,index:t,parentId:-1}}function pe(e){return{type:"Feature",id:e.id,properties:de(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function de(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return ge(ge({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function fe(e){return e/360+.5}function me(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ge(e,t){for(var n in t)e[n]=t[n];return e}function ye(e){return e.x}function ve(e){return e.y}function _e(e,t,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((e-n)*a+(t-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return(a=e-n)*a+(s=t-r)*s}function xe(e,t,n,r){var i={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)be(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)be(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var i=0;i<t[r].length;i++)be(e,t[r][i])}(i),i}function be(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function we(e,t,n,r){if(t.geometry){var i=t.geometry.coordinates,o=t.geometry.type,a=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],l=t.id;if(n.promoteId?l=t.properties[n.promoteId]:n.generateId&&(l=r||0),"Point"===o)Se(i,s);else if("MultiPoint"===o)for(var u=0;u<i.length;u++)Se(i[u],s);else if("LineString"===o)ke(i,s,a,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(u=0;u<i.length;u++)s=[],ke(i[u],s,a,!1),e.push(xe(l,"LineString",s,t.properties));return}Te(i,s,a,!1)}else if("Polygon"===o)Te(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(u=0;u<t.geometry.geometries.length;u++)we(e,{id:l,geometry:t.geometry.geometries[u],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<i.length;u++){var c=[];Te(i[u],c,a,!0),s.push(c)}}e.push(xe(l,o,s,t.properties))}}function Se(e,t){t.push(Me(e[0])),t.push(Ee(e[1])),t.push(0)}function ke(e,t,n,r){for(var i,o,a=0,s=0;s<e.length;s++){var l=Me(e[s][0]),u=Ee(e[s][1]);t.push(l),t.push(u),t.push(0),s>0&&(a+=r?(i*u-l*o)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(u-o,2))),i=l,o=u}var c=t.length-3;t[2]=1,function e(t,n,r,i){for(var o,a=i,s=r-n>>1,l=r-n,u=t[n],c=t[n+1],h=t[r],p=t[r+1],d=n+3;d<r;d+=3){var f=_e(t[d],t[d+1],u,c,h,p);if(f>a)o=d,a=f;else if(f===a){var m=Math.abs(d-s);m<l&&(o=d,l=m)}}a>i&&(o-n>3&&e(t,n,o,i),t[o+2]=a,r-o>3&&e(t,o,r,i))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function Te(e,t,n,r){for(var i=0;i<e.length;i++){var o=[];ke(e[i],o,n,r),t.push(o)}}function Me(e){return e/360+.5}function Ee(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}
vendor: 13,958 bytes, line 1
1function Ce(e,t,n,r,i,o,a,s){if(r/=t,o>=(n/=t)&&a<r)return e;if(a<n||o>=r)return null;for(var l=[],u=0;u<e.length;u++){var c=e[u],h=c.geometry,p=c.type,d=0===i?c.minX:c.minY,f=0===i?c.maxX:c.maxY;if(d>=n&&f<r)l.push(c);else if(!(f<n||d>=r)){var m=[];if("Point"===p||"MultiPoint"===p)Ie(h,m,n,r,i);else if("LineString"===p)Ae(h,m,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===p)De(h,m,n,r,i,!1);else if("Polygon"===p)De(h,m,n,r,i,!0);else if("MultiPolygon"===p)for(var g=0;g<h.length;g++){var y=[];De(h[g],y,n,r,i,!0),y.length&&m.push(y)}if(m.length){if(s.lineMetrics&&"LineString"===p){for(g=0;g<m.length;g++)l.push(xe(c.id,p,m[g],c.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===m.length?"Point":"MultiPoint"),l.push(xe(c.id,p,m,c.tags))}}}return l.length?l:null}function Ie(e,t,n,r,i){for(var o=0;o<e.length;o+=3){var a=e[o+i];a>=n&&a<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function Ae(e,t,n,r,i,o,a){for(var s,l,u=Pe(e),c=0===i?Oe:Re,h=e.start,p=0;p<e.length-3;p+=3){var d=e[p],f=e[p+1],m=e[p+2],g=e[p+3],y=e[p+4],v=0===i?d:f,_=0===i?g:y,x=!1;a&&(s=Math.sqrt(Math.pow(d-g,2)+Math.pow(f-y,2))),v<n?_>n&&(l=c(u,d,f,g,y,n),a&&(u.start=h+s*l)):v>r?_<r&&(l=c(u,d,f,g,y,r),a&&(u.start=h+s*l)):Le(u,d,f,m),_<n&&v>=n&&(l=c(u,d,f,g,y,n),x=!0),_>r&&v<=r&&(l=c(u,d,f,g,y,r),x=!0),!o&&x&&(a&&(u.end=h+s*l),t.push(u),u=Pe(e)),a&&(h+=s)}var b=e.length-3;d=e[b],f=e[b+1],m=e[b+2],(v=0===i?d:f)>=n&&v<=r&&Le(u,d,f,m),b=u.length-3,o&&b>=3&&(u[b]!==u[0]||u[b+1]!==u[1])&&Le(u,u[0],u[1],u[2]),u.length&&t.push(u)}function Pe(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function De(e,t,n,r,i,o){for(var a=0;a<e.length;a++)Ae(e[a],t,n,r,i,o,!1)}function Le(e,t,n,r){e.push(t),e.push(n),e.push(r)}function Oe(e,t,n,r,i,o){var a=(o-t)/(r-t);return e.push(o),e.push(n+(i-n)*a),e.push(1),a}function Re(e,t,n,r,i,o){var a=(o-n)/(i-n);return e.push(t+(r-t)*a),e.push(o),e.push(1),a}function ze(e,t){for(var n=[],r=0;r<e.length;r++){var i,o=e[r],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)i=Ne(o.geometry,t);else if("MultiLineString"===a||"Polygon"===a){i=[];for(var s=0;s<o.geometry.length;s++)i.push(Ne(o.geometry[s],t))}else if("MultiPolygon"===a)for(i=[],s=0;s<o.geometry.length;s++){for(var l=[],u=0;u<o.geometry[s].length;u++)l.push(Ne(o.geometry[s][u],t));i.push(l)}n.push(xe(o.id,a,i,o.tags))}return n}function Ne(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function Be(e,t){if(e.transformed)return e;var n,r,i,o=1<<e.z,a=e.x,s=e.y;for(n=0;n<e.features.length;n++){var l=e.features[n],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(r=0;r<u.length;r+=2)l.geometry.push(Fe(u[r],u[r+1],t,o,a,s));else for(r=0;r<u.length;r++){var h=[];for(i=0;i<u[r].length;i+=2)h.push(Fe(u[r][i],u[r][i+1],t,o,a,s));l.geometry.push(h)}}return e.transformed=!0,e}function Fe(e,t,n,r,i,o){return[Math.round(n*(e*r-i)),Math.round(n*(t*r-o))]}function Ve(e,t,n,r,i){for(var o=t===i.maxZoom?0:i.tolerance/((1<<t)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){a.numFeatures++,je(a,e[s],o,i);var l=e[s].minX,u=e[s].minY,c=e[s].maxX,h=e[s].maxY;l<a.minX&&(a.minX=l),u<a.minY&&(a.minY=u),c>a.maxX&&(a.maxX=c),h>a.maxY&&(a.maxY=h)}return a}function je(e,t,n,r){var i=t.geometry,o=t.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)Ue(a,i,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)Ue(a,i[s],e,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<i.length;l++){var u=i[l];for(s=0;s<u.length;s++)Ue(a,u[s],e,n,!0,0===s)}if(a.length){var c=t.tags||null;if("LineString"===o&&r.lineMetrics){for(var h in c={},t.tags)c[h]=t.tags[h];c.mapbox_clip_start=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==t.id&&(p.id=t.id),e.features.push(p)}}function Ue(e,t,n,r,i,o){var a=r*r;if(r>0&&t.size<(i?a:r))n.numPoints+=t.length/3;else{for(var s=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>a)&&(n.numSimplified++,s.push(t[l]),s.push(t[l+1])),n.numPoints++;i&&function(e,t){for(var n=0,r=0,i=e.length,o=i-2;r<i;o=r,r+=2)n+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(n>0===t)for(r=0,i=e.length;r<i/2;r+=2){var a=e[r],s=e[r+1];e[r]=e[i-2-r],e[r+1]=e[i-1-r],e[i-2-r]=a,e[i-1-r]=s}}(s,o),e.push(s)}}function Ge(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)we(n,e.features[r],t,r);else"Feature"===e.type?we(n,e,t):we(n,{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,i=Ce(e,1,-1-n,n,0,-1,2,t),o=Ce(e,1,1-n,2+n,0,-1,2,t);return(i||o)&&(r=Ce(e,1,-n,1+n,0,-1,2,t)||[],i&&(r=ze(i,1).concat(r)),o&&(r=r.concat(ze(o,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function qe(e,t,n){return 32*((1<<e)*n+t)+e}function He(e,t){var n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);var i=new S(r.features),o=H(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:i,rawData:o.buffer})}ue.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,i=t.maxZoom,o=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s=[],l=0;l<e.length;l++)e[l].geometry&&s.push(he(e[l],l));this.trees[i+1]=new se(s,ye,ve,o,Float32Array),n&&console.timeEnd(a);for(var u=i;u>=r;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new se(s,ye,ve,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},ue.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),i=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],t),s=this.getClusters([-180,r,i,o],t);return a.concat(s)}for(var l=this.trees[this._limitZoom(t)],u=[],c=0,h=l.range(fe(n),me(o),fe(i),me(r));c<h.length;c+=1){var p=h[c],d=l.points[p];u.push(d.numPoints?pe(d):this.points[d.index])}return u},ue.prototype.getChildren=function(e){var t=e>>5,n=e%32,r="No cluster with the specified id.",i=this.trees[n];if(!i)throw new Error(r);var o=i.points[t];if(!o)throw new Error(r);for(var a=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=[],l=0,u=i.within(o.x,o.y,a);l<u.length;l+=1){var c=u[l],h=i.points[c];h.parentId===e&&s.push(h.numPoints?pe(h):this.points[h.index])}if(0===s.length)throw new Error(r);return s},ue.prototype.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},ue.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],i=Math.pow(2,e),o=this.options,a=o.extent,s=o.radius/a,l=(n-s)/i,u=(n+1+s)/i,c={features:[]};return this._addTileFeatures(r.range((t-s)/i,l,(t+1+s)/i,u),r.points,t,n,i,c),0===t&&this._addTileFeatures(r.range(1-s/i,l,1,u),r.points,i,n,i,c),t===i-1&&this._addTileFeatures(r.range(0,l,s/i,u),r.points,-1,n,i,c),c.features.length?c:null},ue.prototype.getClusterExpansionZoom=function(e){for(var t=e%32-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},ue.prototype._appendLeaves=function(e,t,n,r,i){for(var o=0,a=this.getChildren(t);o<a.length;o+=1){var s=a[o],l=s.properties;if(l&&l.cluster?i+l.point_count<=r?i+=l.point_count:i=this._appendLeaves(e,l.cluster_id,n,r,i):i<r?i++:e.push(s),e.length===n)break}return i},ue.prototype._addTileFeatures=function(e,t,n,r,i,o){for(var a=0,s=e;a<s.length;a+=1){var l=t[s[a]],u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-n)),Math.round(this.options.extent*(l.y*i-r))]],tags:l.numPoints?de(l):this.points[l.index].properties},c=l.numPoints?l.id:this.points[l.index].id;void 0!==c&&(u.id=c),o.features.push(u)}},ue.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(e,this.options.maxZoom+1))},ue.prototype._cluster=function(e,t){for(var n=[],r=this.options,i=r.radius,o=r.extent,a=r.reduce,s=i/(o*Math.pow(2,t)),l=0;l<e.length;l++){var u=e[l];if(!(u.zoom<=t)){u.zoom=t;for(var c=this.trees[t+1],h=c.within(u.x,u.y,s),p=u.numPoints||1,d=u.x*p,f=u.y*p,m=a&&p>1?this._map(u,!0):null,g=(l<<5)+(t+1),y=0,v=h;y<v.length;y+=1){var _=v[y],x=c.points[_];if(!(x.zoom<=t)){x.zoom=t;var b=x.numPoints||1;d+=x.x*b,f+=x.y*b,p+=b,x.parentId=g,a&&(m||(m=this._map(u,!0)),a(m,this._map(x)))}}1===p?n.push(u):(u.parentId=g,n.push(ce(d/p,f/p,g,p,m)))}}return n},ue.prototype._map=function(e,t){if(e.numPoints)return t?ge({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?ge({},r):r},Ge.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ge.prototype.splitTile=function(e,t,n,r,i,o,a){for(var s=[e,t,n,r],l=this.options,u=l.debug;s.length;){r=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var c=1<<t,h=qe(t,n,r),p=this.tiles[h];if(!p&&(u>1&&console.time("creation"),p=this.tiles[h]=Ve(e,t,n,r,l),this.tileCoords.push({z:t,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(p.source=e,i){if(t===l.maxZoom||t===i)continue;var f=1<<i-t;if(n!==Math.floor(o/f)||r!==Math.floor(a/f))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){u>1&&console.time("clipping");var m,g,y,v,_,x,b=.5*l.buffer/l.extent,w=.5-b,S=.5+b,k=1+b;m=g=y=v=null,_=Ce(e,c,n-b,n+S,0,p.minX,p.maxX,l),x=Ce(e,c,n+w,n+k,0,p.minX,p.maxX,l),e=null,_&&(m=Ce(_,c,r-b,r+S,1,p.minY,p.maxY,l),g=Ce(_,c,r+w,r+k,1,p.minY,p.maxY,l),_=null),x&&(y=Ce(x,c,r-b,r+S,1,p.minY,p.maxY,l),v=Ce(x,c,r+w,r+k,1,p.minY,p.maxY,l),x=null),u>1&&console.timeEnd("clipping"),s.push(m||[],t+1,2*n,2*r),s.push(g||[],t+1,2*n,2*r+1),s.push(y||[],t+1,2*n+1,2*r),s.push(v||[],t+1,2*n+1,2*r+1)}}},Ge.prototype.getTile=function(e,t,n){var r=this.options,i=r.extent,o=r.debug;if(e<0||e>24)return null;var a=1<<e,s=qe(e,t=(t%a+a)%a,n);if(this.tiles[s])return Be(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var l,u=e,c=t,h=n;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[qe(u,c,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",u,c,h),o>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?Be(this.tiles[s],i):null):null};var We=function(t){function n(e,n,r,i){t.call(this,e,n,r,He),i&&(this.loadGeoJSON=i)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(r&&r.request&&r.request.collectResourceTiming)&&new l.Performance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return n(o);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function e(t,n){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.map(v(e,n)),t;case"GeometryCollection":return t.geometries=t.geometries.map(v(e,n)),t;case"Feature":return t.geometry=e(t.geometry,n),t;case"Polygon":case"MultiPolygon":return function(e,t){return"Polygon"===e.type?e.coordinates=_(e.coordinates,t):"MultiPolygon"===e.type&&(e.coordinates=e.coordinates.map(v(_,t))),e}(t,n);default:return t}}(a,!0);try{t._geoJSONIndex=r.cluster?new ue(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var i={},o={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(r),u=0,c=l;u<c.length;u+=1){var h=c[u],p=r[h],d=p[0],f=p[1],m=e.createExpression(f),g=e.createExpression("string"==typeof d?[d,["accumulated"],["get",h]]:d);i[h]=m.value,o[h]=g.value}return n.map=function(e){s.properties=e;for(var t={},n=0,r=l;n<r.length;n+=1){var o=r[n];t[o]=i[o].evaluate(a,s)}return t},n.reduce=function(e,t){s.properties=t;for(var n=0,r=l;n<r.length;n+=1){var i=r[n];a.accumulated=e[i],e[i]=o[i].evaluate(a,s)}},n}(r)).load(a.features):function(e,t){return new Ge(e,t)}(a,r.geojsonVtOptions)}catch(o){return n(o)}t.loaded={};var s={};if(i){var l=i.finish();l&&(s.resourceTiming={},s.resourceTiming[r.source]=JSON.parse(JSON.stringify(l)))}
1n(null,s)}))}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(e,n){var r=this.loaded,i=e.uid;return r&&r[i]?t.prototype.reloadTile.call(this,e,n):this.loadTile(e,n)},n.prototype.loadGeoJSON=function(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},n.prototype.getClusterExpansionZoom=function(e,t){t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))},n.prototype.getClusterChildren=function(e,t){t(null,this._geoJSONIndex.getChildren(e.clusterId))},n.prototype.getClusterLeaves=function(e,t){t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))},n}(h),Ze=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:h,geojson:We},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(e,t){if(n.workerSourceTypes[e])throw new Error('Worker source with name "'+e+'" already registered.');n.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=function(t){if(e.plugin.isLoaded())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return Ze.prototype.setReferrer=function(e,t){this.referrer=t},Ze.prototype.setImages=function(e,t,n){this.availableImages[e]=t,n()},Ze.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},Ze.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},Ze.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},Ze.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},Ze.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},Ze.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},Ze.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},Ze.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},Ze.prototype.removeSource=function(e,t,n){if(this.workerSources[e]&&this.workerSources[e][t.type]&&this.workerSources[e][t.type][t.source]){var r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}},Ze.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},Ze.prototype.loadRTLTextPlugin=function(t,n,r){try{e.plugin.isLoaded()||(this.self.importScripts(n),r(e.plugin.isLoaded()?null:new Error("RTL Text Plugin failed to import scripts from "+n)))}catch(e){r(e.toString())}},Ze.prototype.getAvailableImages=function(e){var t=this.availableImages[e];return t||(t=[]),t},Ze.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t},Ze.prototype.getWorkerSource=function(e,t,n){var r=this;if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][n]){var i={send:function(t,n,i){r.actor.send(t,n,i,e)}};this.workerSources[e][t][n]=new this.workerSourceTypes[t](i,this.getLayerIndex(e),this.getAvailableImages(e))}return this.workerSources[e][t][n]},Ze.prototype.getDEMWorkerSource=function(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new p),this.demWorkerSources[e][t]},Ze.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&void 0!==e.window&&e.window instanceof WorkerGlobalScope&&(e.window.worker=new Ze(e.window)),Ze})),r(0,(function(e){var t=e.createCommonjsModule((function(e){function t(e){return!!("undefined"!=typeof window&&"undefined"!=typeof document&&Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray&&Function.prototype&&Function.prototype.bind&&Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions&&"JSON"in window&&"parse"in JSON&&"stringify"in JSON&&function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()&&"Uint8ClampedArray"in window&&ArrayBuffer.isView&&function(e){return void 0===n[e]&&(n[e]=function(e){var n=document.createElement("canvas"),r=Object.create(t.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(e)),n[e]}(e&&e.failIfMajorPerformanceCaveat))}e.exports?e.exports=t:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t);var n={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),n={create:function(t,n,r){var i=e.window.document.createElement(t);return void 0!==n&&(i.className=n),r&&r.appendChild(i),i},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},r=e.window.document.documentElement.style;function i(e){if(!r)return e[0];for(var t=0;t<e.length;t++)if(e[t]in r)return e[t];return e[0]}var o,a=i(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&a&&(o=r[a],r[a]="none")},n.enableDrag=function(){r&&a&&(r[a]=o)};var s=i(["transform","WebkitTransform"]);n.setTransform=function(e,t){e.style[s]=t};var l=!1;try{var u=Object.defineProperty({},"passive",{get:function(){l=!0}});e.window.addEventListener("test",u,u),e.window.removeEventListener("test",u,u)}catch(e){l=!1}n.addEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&l?e.addEventListener(t,n,r):e.addEventListener(t,n,r.capture)},n.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),"passive"in r&&l?e.removeEventListener(t,n,r):e.removeEventListener(t,n,r.capture)};
vendor: 7,662 bytes, line 1
1var c=function(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",c,!0)};function h(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}n.suppressClick=function(){e.window.addEventListener("click",c,!0),e.window.setTimeout((function(){e.window.removeEventListener("click",c,!0)}),0)},n.mousePos=function(t,n){var r=t.getBoundingClientRect(),i=e.window.TouchEvent&&n instanceof e.window.TouchEvent?n.touches[0]:n;return new e.Point(i.clientX-r.left-t.clientLeft,i.clientY-r.top-t.clientTop)},n.touchPos=function(t,n){for(var r=t.getBoundingClientRect(),i=[],o="touchend"===n.type?n.changedTouches:n.touches,a=0;a<o.length;a++)i.push(new e.Point(o[a].clientX-r.left-t.clientLeft,o[a].clientY-r.top-t.clientTop));return i},n.mouseButton=function(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var p=function(t){function n(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t<n.length;t+=1){var r=n[t],i=r.ids,o=r.callback;this._notify(i,o)}this.requestors=[]}},n.prototype.getImage=function(e){return this.images[e]},n.prototype.addImage=function(e,t){this.images[e]=t},n.prototype.updateImage=function(e,t){var n=this.images[e];t.version=n.version+1,this.images[e]=t,this.updatedImages[e]=!0},n.prototype.removeImage=function(e){var t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(e,t){var n=!0;if(!this.isLoaded())for(var r=0,i=e;r<i.length;r+=1){var o=i[r];this.images[o]||(n=!1)}this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})},n.prototype._notify=function(t,n){for(var r={},i=0,o=t;i<o.length;i+=1){var a=o[i];this.images[a]||this.fire(new e.Event("styleimagemissing",{id:a}));var s=this.images[a];s?r[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,hasRenderCallback:Boolean(s.userImage&&s.userImage.render)}:e.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},n.prototype.getPixelSize=function(){var e=this.atlasImage;return{width:e.width,height:e.height}},n.prototype.getPattern=function(t){var n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var i={w:r.data.width+2,h:r.data.height+2,x:0,y:0},o=new e.ImagePosition(i,r);this.patterns[t]={bin:i,position:o}}return this._updatePatternAtlas(),this.patterns[t].position},n.prototype.bind=function(t){var n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var t=[];for(var n in this.patterns)t.push(this.patterns[n].bin);var r=e.potpack(t),i=r.w,o=r.h,a=this.atlasImage;for(var s in a.resize({width:i||1,height:o||1}),this.patterns){var l=this.patterns[s].bin,u=l.x+1,c=l.y+1,h=this.images[s].data,p=h.width,d=h.height;e.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c},{width:p,height:d}),e.RGBAImage.copy(h,a,{x:0,y:d-1},{x:u,y:c-1},{width:p,height:1}),e.RGBAImage.copy(h,a,{x:0,y:0},{x:u,y:c+d},{width:p,height:1}),e.RGBAImage.copy(h,a,{x:p-1,y:0},{x:u-1,y:c},{width:1,height:d}),e.RGBAImage.copy(h,a,{x:0,y:0},{x:u+p,y:c},{width:1,height:d})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var i=this.images[r];h(i)&&this.updateImage(r,i)}}},n}(e.Evented),d=g,f=g,m=1e20;function g(e,t,n,r,i,o){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=i||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(e,t,n,r,i,o,a){for(var s=0;s<t;s++){for(var l=0;l<n;l++)r[l]=e[l*t+s];for(v(r,i,o,a,n),l=0;l<n;l++)e[l*t+s]=i[l]}for(l=0;l<n;l++){for(s=0;s<t;s++)r[s]=e[l*t+s];for(v(r,i,o,a,t),s=0;s<t;s++)e[l*t+s]=Math.sqrt(i[s])}}function v(e,t,n,r,i){n[0]=0,r[0]=-m,r[1]=+m;for(var o=1,a=0;o<i;o++){for(var s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);s<=r[a];)a--,s=(e[o]+o*o-(e[n[a]]+n[a]*n[a]))/(2*o-2*n[a]);n[++a]=o,r[a]=s,r[a+1]=+m}for(o=0,a=0;o<i;o++){for(;r[a+1]<o;)a++;t[o]=(o-n[a])*(o-n[a])+e[n[a]]}}g.prototype.draw=function(e){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(e,this.buffer,this.middle);for(var t=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var i=t.data[4*r+3]/255;this.gridOuter[r]=1===i?0:0===i?m:Math.pow(Math.max(0,.5-i),2),this.gridInner[r]=1===i?m:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(y(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),y(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++){var o=this.gridOuter[r]-this.gridInner[r];n[r]=Math.max(0,Math.min(255,Math.round(255-255*(o/this.radius+this.cutoff))))}return n},d.default=f;var _=function(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}};_.prototype.setURL=function(e){this.url=e},_.prototype.getGlyphs=function(t,n){var r=this,i=[];for(var o in t)for(var a=0,s=t[o];a<s.length;a+=1){var l=s[a];i.push({stack:o,id:l})}e.asyncAll(i,(function(e,t){var n=e.stack,i=e.id,o=r.entries[n];o||(o=r.entries[n]={glyphs:{},requests:{}});var a=o.glyphs[i];if(void 0===a){if(a=r._tinySDF(o,n,i))return o.glyphs[i]=a,void t(null,{stack:n,id:i,glyph:a});var s=Math.floor(i/256);if(256*s>65535)t(new Error("glyphs > 65535 not supported"));else{var l=o.requests[s];l||(l=o.requests[s]=[],_.loadGlyphRange(n,s,r.url,r.requestManager,(function(e,t){if(t)for(var n in t)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=t[+n]);for(var i=0,a=l;i<a.length;i+=1)(0,a[i])(e,t);delete o.requests[s]}))),l.push((function(e,r){e?t(e):r&&t(null,{stack:n,id:i,glyph:r[i]||null})}))}}else t(null,{stack:n,id:i,glyph:a})}),(function(e,t){if(e)n(e);else if(t){for(var r={},i=0,o=t;i<o.length;i+=1){var a=o[i],s=a.stack,l=a.id,u=a.glyph;(r[s]||(r[s]={}))[l]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}n(null,r)}}))},_.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&
vendor: 7,840 bytes, line 1
1(e.isChar["CJK Unified Ideographs"](t)||e.isChar["Hangul Syllables"](t)||e.isChar.Hiragana(t)||e.isChar.Katakana(t))},_.prototype._tinySDF=function(t,n,r){var i=this.localIdeographFontFamily;if(i&&this._doesCharSupportLocalGlyph(r)){var o=t.tinySDF;if(!o){var a="400";/bold/i.test(n)?a="900":/medium/i.test(n)?a="500":/light/i.test(n)&&(a="200"),o=t.tinySDF=new _.TinySDF(24,3,8,.25,i,a)}return{id:r,bitmap:new e.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},_.loadGlyphRange=function(t,n,r,i,o){var a=256*n,s=a+255,l=i.transformRequest(i.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",a+"-"+s),e.ResourceType.Glyphs);e.getArrayBuffer(l,(function(t,n){if(t)o(t);else if(n){for(var r={},i=0,a=e.parseGlyphPBF(n);i<a.length;i+=1){var s=a[i];r[s.id]=s}o(null,r)}}))},_.TinySDF=d;var x=function(){this.specification=e.styleSpec.light.position};x.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},x.prototype.interpolate=function(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r)}};var b=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new x,color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)}),w=function(t){function n(n){t.call(this),this._transitionable=new e.Transitionable(b),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(t,n){if(void 0===n&&(n={}),!this._validate(e.validateLight,t,n))for(var r in t){var i=t[r];e.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),i):this._transitionable.setValue(r,i)}},n.prototype.updateTransitions=function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(e){this.properties=this._transitioning.possiblyEvaluate(e)},n.prototype._validate=function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))},n}(e.Evented),S=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};S.prototype.getDash=function(e,t){var n=e.join(",")+String(t);return this.positions[n]||(this.positions[n]=this.addDash(e,t)),this.positions[n]},S.prototype.addDash=function(t,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a<t.length;a++)o+=t[a];for(var s=this.width/o,l=s/2,u=t.length%2==1,c=-r;c<=r;c++)for(var h=this.nextRow+r+c,p=this.width*h,d=u?-t[t.length-1]:0,f=t[0],m=1,g=0;g<this.width;g++){for(;f<g/s;)d=f,f+=t[m],u&&m===t.length-1&&(f+=t[0]),m++;var y=Math.abs(g-d*s),v=Math.abs(g-f*s),_=Math.min(y,v),x=m%2==1,b=void 0;if(n){var w=r?c/r*(l+1):0;if(x){var S=l-Math.abs(w);b=Math.sqrt(_*_+S*S)}else b=l-Math.sqrt(_*_+w*w)}else b=(x?1:-1)*_;this.data[3+4*(p+g)]=Math.max(0,Math.min(255,b+128))}var k={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=i,this.dirty=!0,k},S.prototype.bind=function(e){var t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.RGBA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,this.data))};var k=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();for(var i=this.workerPool.acquire(this.id),o=0;o<i.length;o++){var a=i[o],s=new t.Actor(a,r,this.id);s.name="Worker "+o,this.actors.push(s)}};function T(t,n,r){var i=function(i,o){if(i)return r(i);if(o){var a=e.pick(e.extend(o,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&&(a.vectorLayers=o.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(e){return e.id}))),t.url&&(a.tiles=n.canonicalizeTileset(a,t.url)),r(null,a)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),i):e.browser.frame((function(){return i(null,t)}))}k.prototype.broadcast=function(t,n,r){r=r||function(){},e.asyncAll(this.actors,(function(e,r){e.send(t,n,r)}),r)},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(e){e.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=e.Actor;var M=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};M.prototype.validateBounds=function(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]},M.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),i=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),a=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<o&&t.y>=i&&t.y<a};var E=function(t){function n(n,r,i,o){if(t.call(this),this.id=n,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(r,["url","scheme","tileSize"])),this._options=e.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=T(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new M(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles,t.map._requestManager._customAccessToken),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken,t.map._requestManager._customAccessToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,null),i={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
vendor: 20,641 bytes, line 1
1ype,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};function o(r,i){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",i,o.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,o.bind(this)))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.clearMask(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(e.Evented),C=function(t){function n(n,r,i,o){t.call(this),this.id=n,this.dispatcher=i,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},r),e.extend(this,e.pick(r,["url","scheme","tileSize"]))}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=T(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new M(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.loadTile=function(t,n){var r=this,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),(function(i,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(i)t.state="errored",n(i);else if(o){r.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=r.map.painter.context,s=a.gl;t.texture=r.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0}):(t.texture=new e.Texture(a,o,s.RGBA,{useMipmap:!0}),t.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),n(null)}}))},n.prototype.abortTile=function(e,t){e.request&&(e.request.cancel(),delete e.request),t()},n.prototype.unloadTile=function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),e.clearMask(),t()},n.prototype.hasTransition=function(){return!1},n}(e.Evented),I=function(t){function n(n,r,i,o){t.call(this,n,r,i,o),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);function i(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=e.browser.getImageData(o,1),s={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:a,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",s,i.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)},n.prototype._getNeighboringTiles=function(t){var n=t.canonical,r=Math.pow(2,n.z),i=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,a=(n.x+1+r)%r,s=n.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y).key]={backfilled:!1},n.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+1<r&&(l[new e.OverscaledTileID(t.overscaledZ,o,n.z,i,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,s,n.z,a,n.y+1).key]={backfilled:!1}),l},n.prototype.unloadTile=function(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.clearMask(),e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})},n}(C),A=function(t){function n(n,r,i,o){t.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(o),this._data=r.data,this._options=e.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution);var a=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*a,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*a,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:e.EXTENT,radius:(r.clusterRadius||50)*a,log:!1},clusterProperties:r.clusterProperties},r.workerOptions)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(n){if(n)t.fire(new e.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};t._collectResourceTiming&&t._resourceTiming&&t._resourceTiming.length>0&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}}))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(i),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(e,i){n._removed||i&&i.abandoned||(n._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[n.id]&&(n._resourceTiming=i.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),t(e))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,i=t.actor?"reloadTile":"loadTile";t.actor=this.actor;var o={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};t.request=this.actor.send(i,o,(function(e,o){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(o,r.map.painter,"reloadTile"===i),n(null))}))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.clearMask(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),P=function(t){function n(e,n,r,i){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(i,o){r._loaded=!0,i?r.fire(new e.ErrorEvent(i)):o&&(r.image=o,t&&(r.coordinates=t),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,(function(){t.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0,s=t;a<s.length;a+=1){var l=s[a];n=Math.min(n,l.x),r=Math.min(r,l.y),i=Math.max(i,l.x),o=Math.max(o,l.y)}var u=i-n,c=o-r,h=Math.max(u,c),p=Math.max(0,Math.floor(-Math.log(h)/Math.LN2)),d=Math.pow(2,p);return new e.CanonicalTileID(p,Math.floor((n+i)/2*d),Math.floor((r+o)/2*d))}(r),this.minzoom=this.maxzoom=this.tileID.z;var i=r.map((function(e){return n.tileID.getTilePoint(e)._round()}));return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.loadTile=function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(e.Evented),D=function(t){function n(e,n,r,i){t.call(this,e,n,r,i),this.roundZoom=!0,this.type="video",this.options=n}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,i=n.urls;r<i.length;r+=1){var o=i[r];this.urls.push(this.map._requestManager.transformRequest(o,e.ResourceType.Source).url)}e.getVideo(this.urls,(function(n,r){t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(t.video=r,t.video.loop=!0,t.video.addEventListener("playing",(function(){t.map.triggerRepaint()})),t.map&&t.video.play(),t._finishLoading())}))},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(t){if(this.video){var n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(P),L=function(t){function n(n,r,i,o){t.call(this,n,r,i,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!=typeof e}))}))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,e.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[i];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e<t.length;e+=1){var n=t[e];if(isNaN(n)||n<=0)return!0}return!1},n}(P),O={vector:E,raster:C,"raster-dem":I,geojson:A,video:D,image:P,canvas:L};function R(t,n){var r=e.identity([]);return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function z(e,t,n,r,i){var o=function(e,t,n){if(e)for(var r=0,i=e;r<i.length;r+=1){var o=t[i[r]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var a in t){var s=t[a];if(s.source===n&&"fill-extrusion"===s.type)return!0}return!1}(r&&r.layers,t,e.id),a=i.maxPitchScaleFactor(),s=e.tilesIn(n,a,o);s.sort(N);for(var l=[],u=0,c=s;u<c.length;u+=1){var h=c[u];l.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,e._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,r,i,a,R(e.transform,h.tileID))})}var p=function(e){for(var t={},n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=o.queryResults,s=o.wrappedTileID,l=n[s]=n[s]||{};for(var u in a)for(var c=a[u],h=l[u]=l[u]||{},p=t[u]=t[u]||[],d=0,f=c;d<f.length;d+=1){var m=f[d];h[m.featureIndex]||(h[m.featureIndex]=!0,p.push(m))}}return t}(l);for(var d in p)p[d].forEach((function(t){var n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}));return p}function N(e,t){var n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var B=function(e,t){this.max=e,this.onRemove=t,this.reset()};B.prototype.reset=function(){for(var e in this.data)for(var t=0,n=this.data[e];t<n.length;t+=1){var r=n[t];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},B.prototype.add=function(e,t,n){var r=this,i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);var o={value:t,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout((function(){r.remove(e,o)}),n)),this.data[i].push(o),this.order.push(i),this.order.length>this.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(e){return e.wrapped().key in this.data},B.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},B.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}
vendor: 14,598 bytes, line 1
1,B.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},B.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this},B.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this};var F=function(e,t,n){this.context=e;var r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};F.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},F.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},F.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var V={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},j=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var i=e.gl;this.buffer=i.createBuffer(),e.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};j.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},j.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},j.prototype.enableAttributes=function(e,t){for(var n=0;n<this.attributes.length;n++){var r=this.attributes[n],i=t.attributes[r.name];void 0!==i&&e.enableVertexAttribArray(i)}},j.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var i=this.attributes[r],o=t.attributes[i.name];void 0!==o&&e.vertexAttribPointer(o,i.components,e[V[i.type]],!1,this.itemSize,i.offset+this.itemSize*(n||0))}},j.prototype.destroy=function(){var e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)};var U=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};U.prototype.get=function(){return this.current},U.prototype.set=function(e){},U.prototype.getDefault=function(){return this.default},U.prototype.setDefault=function(){this.set(this.default)};var G=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(U),q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 1},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(U),H=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(U),W=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[!0,!0,!0,!0]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(U),Z=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)},t}(U),Y=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 255},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(U),X=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},t.prototype.set=function(e){var t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)},t}(U),K=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)},t}(U),$=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},t}(U),J=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return[0,1]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)},t}(U),Q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},t}(U),ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.LESS},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)},t}(U),te=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},t}(U),ne=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.ONE,e.ZERO]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)},t}(U),re=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(U),ie=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.FUNC_ADD},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)},t}(U),oe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},t}(U),ae=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.BACK},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(U),se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.CCW},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(U),le=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(U),ue=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return this.gl.TEXTURE0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)},t}(U),ce=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(U),he=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},t}(U),pe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(U),de=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},t}(U),fe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(U),me=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(U),ge=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)},t}(U),ye=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return 4},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},t}(U),ve=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},t}(U),_e=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},t}(U),xe=function(e){function t(t,n){e.call(this,t),this.context=t,this.parent=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getDefault=function(){return null},t}(U),be=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setDirty=function(){this.dirty=!0},t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},t}(xe),we=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(xe),Se=function(e,t,n){this.context=e,this.width=t,this.height=n;var r=e.gl,i=this.framebuffer=r.createFramebuffer();
vendor: 20,678 bytes, line 1
1this.colorAttachment=new be(e,i),this.depthAttachment=new we(e,i)};Se.prototype.destroy=function(){var e=this.context.gl,t=this.colorAttachment.get();t&&e.deleteTexture(t);var n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n),e.deleteFramebuffer(this.framebuffer)};var ke=function(e,t,n){this.func=e,this.mask=t,this.range=n};ke.ReadOnly=!1,ke.ReadWrite=!0,ke.disabled=new ke(519,ke.ReadOnly,[0,1]);var Te=function(e,t,n,r,i,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=i,this.pass=o};Te.disabled=new Te({func:519,mask:0},0,0,7680,7680,7680);var Me=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Me.disabled=new Me(Me.Replace=[1,0],e.Color.transparent,[!1,!1,!1,!1]),Me.unblended=new Me(Me.Replace,e.Color.transparent,[!0,!0,!0,!0]),Me.alphaBlended=new Me([1,771],e.Color.transparent,[!0,!0,!0,!0]);var Ee=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};Ee.disabled=new Ee(!1,1029,2305),Ee.backCCW=new Ee(!0,1029,2305);var Ce=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new G(this),this.clearDepth=new q(this),this.clearStencil=new H(this),this.colorMask=new W(this),this.depthMask=new Z(this),this.stencilMask=new Y(this),this.stencilFunc=new X(this),this.stencilOp=new K(this),this.stencilTest=new $(this),this.depthRange=new J(this),this.depthTest=new Q(this),this.depthFunc=new ee(this),this.blend=new te(this),this.blendFunc=new ne(this),this.blendColor=new re(this),this.blendEquation=new ie(this),this.cullFace=new oe(this),this.cullFaceSide=new ae(this),this.frontFace=new se(this),this.program=new le(this),this.activeTexture=new ue(this),this.viewport=new ce(this),this.bindFramebuffer=new he(this),this.bindRenderbuffer=new pe(this),this.bindTexture=new de(this),this.bindVertexBuffer=new fe(this),this.bindElementBuffer=new me(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ge(this),this.pixelStoreUnpack=new ye(this),this.pixelStoreUnpackPremultiplyAlpha=new ve(this),this.pixelStoreUnpackFlipY=new _e(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&e.getExtension("OES_texture_half_float_linear")};Ce.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ce.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ce.prototype.createIndexBuffer=function(e,t){return new F(this,e,t)},Ce.prototype.createVertexBuffer=function(e,t,n){return new j(this,e,t,n)},Ce.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,i=r.createRenderbuffer();return this.bindRenderbuffer.set(i),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),i},Ce.prototype.createFramebuffer=function(e,t){return new Se(this,e,t)},Ce.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,i=0;t&&(i|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(i|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(i)},Ce.prototype.setCullFace=function(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))},Ce.prototype.setDepthMode=function(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)},Ce.prototype.setStencilMode=function(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)},Ce.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Me.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ce.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Ie=function(t){function n(n,r,i){var o=this;t.call(this),this.id=n,this.dispatcher=i,this.on("data",(function(e){"source"===e.dataType&&"metadata"===e.sourceDataType&&(o._sourceLoaded=!0),o._sourceLoaded&&!o._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(o.reload(),o.transform&&o.update(o.transform))})),this.on("error",(function(){o._sourceErrored=!0})),this._source=function(t,n,r,i){var o=new O[n.type](t,n,r,i);if(o.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+o.id);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o}(n,r,i,this),this._tiles={},this._cache=new B(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._coveredTiles={},this._state=new e.SourceFeatureState}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)},n.prototype.onRemove=function(e){this._source&&this._source.onRemove&&this._source.onRemove(e)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var e in this._tiles){var t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(e,t){return this._source.loadTile(e,t)},n.prototype._unloadTile=function(e){if(this._source.unloadTile)return this._source.unloadTile(e,(function(){}))},n.prototype._abortTile=function(e){if(this._source.abortTile)return this._source.abortTile(e,(function(){}))},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(e){for(var t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return Object.keys(this._tiles).map(Number).sort(Ae)},n.prototype.getRenderableIds=function(t){var n=this,r=[];for(var i in this._tiles)this._isIdRenderable(+i,t)&&r.push(+i);return t?r.sort((function(t,r){var i=n._tiles[t].tileID,o=n._tiles[r].tileID,a=new e.Point(i.canonical.x,i.canonical.y)._rotate(n.transform.angle),s=new e.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle);return i.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x})):r.sort(Ae)},n.prototype.hasRenderableParent=function(e){var t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)},n.prototype._isIdRenderable=function(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")},n.prototype._reloadTile=function(e,t){var n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))},n.prototype._tileLoaded=function(t,n,r,i){if(i)return t.state="errored",void(404!==i.status?this._source.fire(new e.ErrorEvent(i,{tile:t})):this.update(this.transform));t.timeAdded=e.browser.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},n.prototype._backfillDEM=function(e){for(var t=this.getRenderableIds(),n=0;n<t.length;n++){var r=t[n];if(e.neighboringTiles&&e.neighboringTiles[r]){var i=this.getTileByID(r);o(e,i),o(i,e)}}function o(e,t){e.needsHillshadePrepare=!0;var n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,i=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype.getZoom=function(e){return e.zoom+e.scaleZoom(e.tileSize/this._source.tileSize)},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>t+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>t;)if(e[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(e,t){for(var n=e.overscaledZ-1;n>=t;n--){var r=e.scaledTo(n);if(!r)return;var i=String(r.key),o=this._tiles[i];if(o&&o.hasData())return o;if(this._cache.has(r))return this._cache.get(r)}},n.prototype.updateCacheSize=function(e){var t=(Math.ceil(e.width/this._source.tileSize)+1)*(Math.ceil(e.height/this._source.tileSize)+1),n=Math.floor(5*t),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(r)},n.prototype.handleWrapJump=function(e){var t=(e-(void 0===this._prevLng?e:this._prevLng))/360,n=Math.round(t);if(this._prevLng=e,n){var r={};for(var i in this._tiles){var o=this._tiles[i];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+n),r[o.tileID.key]=o}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)})):(i=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(e){return r._source.hasTile(e)})))):i=[];var o=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(t)),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,o);if(Pe(this._source.type)){for(var u={},c={},h=0,p=Object.keys(l);h<p.length;h+=1){var d=p[h],f=l[d],m=this._tiles[d];if(m&&!(m.fadeEndTime&&m.fadeEndTime<=e.browser.now())){var g=this.findLoadedParent(f,a);g&&(this._addTile(g.tileID),u[g.tileID.key]=g.tileID),c[d]=f}}for(var y in this._retainLoadedChildren(c,o,s,l),u)l[y]||(this._coveredTiles[y]=!0,l[y]=u[y])}for(var v in l)this._tiles[v].clearFadeHold();for(var _=0,x=e.keysDifference(this._tiles,l);_<x.length;_+=1){var b=x[_],w=this._tiles[b];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(b)}}},n.prototype.releaseSymbolFadeTiles=function(){for(var e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)},n.prototype._updateRetainedTiles=function(e,t){for(var r={},i={},o=Math.max(t-n.maxOverzooming,this._source.minzoom),a=Math.max(t+n.maxUnderzooming,this._source.minzoom),s={},l=0,u=e;l<u.length;l+=1){var c=u[l],h=this._addTile(c);r[c.key]=c,h.hasData()||t<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,t,a,r);for(var p=0,d=e;p<d.length;p+=1){var f=d[p],m=this._tiles[f.key];if(!m.hasData()){if(t+1>this._source.maxzoom){var g=f.children(this._source.maxzoom)[0],y=this.getTile(g);if(y&&y.hasData()){r[g.key]=g;continue}}else{var v=f.children(this._source.maxzoom);if(r[v[0].key]&&r[v[1].key]&&r[v[2].key]&&r[v[3].key])continue}for(var _=m.wasRequested(),x=f.overscaledZ-1;x>=o;--x){var b=f.scaledTo(x);if(i[b.key])break;if(i[b.key]=!0,!(m=this.getTile(b))&&_&&(m=this._addTile(b)),m&&(r[b.key]=b,_=m.wasRequested(),m.hasData()))break}}}return r},n.prototype._addTile=function(t){var n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));var r=Boolean(n);return r||(n=new e.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n?(n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(e,t){var n=this;e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);var r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout((function(){n._reloadTile(e,"expired"),delete n._timers[e]}),r))},n.prototype._removeTile=function(e){var t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(t):t,l=t.map((function(e){return a.pointCoordinate(e)})),u=s.map((function(e){return a.pointCoordinate(e)})),c=this.getIds(),h=1/0,p=1/0,d=-1/0,f=-1/0,m=0,g=u;m<g.length;m+=1){var y=g[m];h=Math.min(h,y.x),p=Math.min(p,y.y),d=Math.max(d,y.x),f=Math.max(f,y.y)}for(var v=function(t){var r=i._tiles[c[t]];if(!r.holdingForFade()){var s=r.tileID,m=Math.pow(2,a.zoom-r.tileID.overscaledZ),g=n*r.queryPadding*e.EXTENT/r.tileSize/m,y=[s.getTilePoint(new e.MercatorCoordinate(h,p)),s.getTilePoint(new e.MercatorCoordinate(d,f))];if(y[0].x-g<e.EXTENT&&y[0].y-g<e.EXTENT&&y[1].x+g>=0&&y[1].y+g>=0){var v=l.map((function(e){return s.getTilePoint(e)})),_=u.map((function(e){return s.getTilePoint(e)}));o.push({tile:r,tileID:s,queryGeometry:v,cameraQueryGeometry:_,scale:m})}}},_=0;_<c.length;_++)v(_);return o},n.prototype.getVisibleCoordinates=function(e){for(var t=this,n=this.getRenderableIds(e).map((function(e){return t._tiles[e].tileID})),r=0,i=n;r<i.length;r+=1){var o=i[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pe(this._source.type))for(var t in this._tiles){var n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.updateState(e,t,n)},n.prototype.removeFeatureState=function(e,t,n){e=e||"_geojsonTileLayer",this._state.removeFeatureState(e,t,n)},n.prototype.getFeatureState=function(e,t){return e=e||"_geojsonTileLayer",this._state.getState(e,t)},n}(e.Evented);function Ae(e,t){return e%32-t%32||t-e}function Pe(e){return"raster"===e||"image"===e||"video"===e}function De(){return new e.window.Worker(Jr.workerUrl)}Ie.maxOverzooming=10,Ie.maxUnderzooming=3;var Le=function(){this.active={}};Le.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<Le.workerCount;)this.workers.push(new De);return this.active[e]=!0,this.workers.slice()},Le.prototype.release=function(e){delete this.active[e],0===Object.keys(this.active).length&&(this.workers.forEach((function(e){e.terminate()})),this.workers=null)};var Oe,Re=Math.floor(e.browser.hardwareConcurrency/2);function ze(t,n){var r={};for(var i in t)"ref"!==i&&(r[i]=t[i]);return e.refProperties.forEach((function(e){e in n&&(r[e]=n[e])})),r}function Ne(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=ze(e[r],t[e[r].ref]));return e}Le.workerCount=Math.max(Math.min(Re,6),1);var Be={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 Fe(e,t,n){n.push({command:Be.addSource,args:[e,t[e]]})}function Ve(e,t,n){t.push({command:Be.removeSource,args:[e]}),n[e]=!0}function je(e,t,n,r){Ve(e,n,r),Fe(e,t,n)}function Ue(t,n,r){var i;for(i in t[r])if(t[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;for(i in n[r])if(n[r].hasOwnProperty(i)&&"data"!==i&&!e.deepEqual(t[r][i],n[r][i]))return!1;return!0}function Ge(t,n,r,i,o,a){var s;for(s in n=n||{},t=t||{})t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}));for(s in n)n.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.deepEqual(t[s],n[s])||r.push({command:a,args:[i,s,n[s],o]}))}function qe(e){return e.id}function He(e,t){return e[t.id]=t,e}var We=function(e,t,n){var r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0};function Ze(t,n,r,i,o){var a=e.create();return n?(e.scale(a,a,[1/o,1/o,1]),r||e.rotateZ(a,a,i.angle)):e.multiply(a,i.labelPlaneMatrix,t),a}function Ye(t,n,r,i,o){if(n){var a=e.clone(t);return e.scale(a,a,[o,o,1]),r||e.rotateZ(a,a,-i.angle),a}return i.glCoordMatrix}function Xe(t,n){var r=[t.x,t.y,0,1];ot(r,r,n);var i=r[3];return{point:new e.Point(r[0]/i,r[1]/i),signedDistanceFromCamera:i}}function Ke(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function $e(t,n,r,i,o,a,s,l){var u=i?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(u,r.transform.zoom),h=[256/r.
vendor: 27,424 bytes, line 1
1width*2+1,256/r.height*2+1],p=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;p.clear();for(var d=t.lineVertexArray,f=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,m=r.transform.width/r.transform.height,g=!1,y=0;y<f.length;y++){var v=f.get(y);if(v.hidden||v.writingMode===e.WritingMode.vertical&&!g)it(v.numGlyphs,p);else{g=!1;var _=[v.anchorX,v.anchorY,0,1];if(e.transformMat4(_,_,n),Ke(_,h)){var x=.5+_[3]/r.transform.cameraToCenterDistance*.5,b=e.evaluateSizeForFeature(u,c,v),w=s?b*x:b/x,S=new e.Point(v.anchorX,v.anchorY),k=Xe(S,o).point,T={},M=et(v,w,!1,l,n,o,a,t.glyphOffsetArray,d,p,k,S,T,m);g=M.useVertical,(M.notEnoughRoom||g||M.needsFlipping&&et(v,w,!0,l,n,o,a,t.glyphOffsetArray,d,p,k,S,T,m).notEnoughRoom)&&it(v.numGlyphs,p)}else it(v.numGlyphs,p)}}i?t.text.dynamicLayoutVertexBuffer.updateData(p):t.icon.dynamicLayoutVertexBuffer.updateData(p)}function Je(e,t,n,r,i,o,a,s,l,u,c,h){var p=s.glyphStartIndex+s.numGlyphs,d=s.lineStartIndex,f=s.lineStartIndex+s.lineLength,m=t.getoffsetX(s.glyphStartIndex),g=t.getoffsetX(p-1),y=nt(e*m,n,r,i,o,a,s.segment,d,f,l,u,c,h);if(!y)return null;var v=nt(e*g,n,r,i,o,a,s.segment,d,f,l,u,c,h);return v?{first:y,last:v}:null}function Qe(t,n,r,i){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*i?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function et(t,n,r,i,o,a,s,l,u,c,h,p,d,f){var m,g=n/24,y=t.lineOffsetX*g,v=t.lineOffsetY*g;if(t.numGlyphs>1){var _=t.glyphStartIndex+t.numGlyphs,x=t.lineStartIndex,b=t.lineStartIndex+t.lineLength,w=Je(g,l,y,v,r,h,p,t,u,a,d,!1);if(!w)return{notEnoughRoom:!0};var S=Xe(w.first.point,s).point,k=Xe(w.last.point,s).point;if(i&&!r){var T=Qe(t.writingMode,S,k,f);if(T)return T}m=[w.first];for(var M=t.glyphStartIndex+1;M<_-1;M++)m.push(nt(g*l.getoffsetX(M),y,v,r,h,p,t.segment,x,b,u,a,d,!1));m.push(w.last)}else{if(i&&!r){var E=Xe(p,o).point,C=t.lineStartIndex+t.segment+1,I=new e.Point(u.getx(C),u.gety(C)),A=Xe(I,o),P=A.signedDistanceFromCamera>0?A.point:tt(p,I,E,1,o),D=Qe(t.writingMode,E,P,f);if(D)return D}var L=nt(g*l.getoffsetX(t.glyphStartIndex),y,v,r,h,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,u,a,d,!1);if(!L)return{notEnoughRoom:!0};m=[L]}for(var O=0,R=m;O<R.length;O+=1){var z=R[O];e.addDynamicAttributes(c,z.point,z.angle)}return{}}function tt(e,t,n,r,i){var o=Xe(e.add(e.sub(t)._unit()),i).point,a=n.sub(o);return n.add(a._mult(r/a.mag()))}function nt(t,n,r,i,o,a,s,l,u,c,h,p,d){var f=i?t-n:t+n,m=f>0?1:-1,g=0;i&&(m*=-1,g=Math.PI),m<0&&(g+=Math.PI);for(var y=m>0?l+s:l+s+1,v=y,_=o,x=o,b=0,w=0,S=Math.abs(f);b+w<=S;){if((y+=m)<l||y>=u)return null;if(x=_,void 0===(_=p[y])){var k=new e.Point(c.getx(y),c.gety(y)),T=Xe(k,h);if(T.signedDistanceFromCamera>0)_=p[y]=T.point;else{var M=y-m;_=tt(0===b?a:new e.Point(c.getx(M),c.gety(M)),k,x,S-b+1,h)}}b+=w,w=x.dist(_)}var E=(S-b)/w,C=_.sub(x),I=C.mult(E)._add(x);return I._add(C._unit()._perp()._mult(r*m)),{point:I,angle:g+Math.atan2(_.y-x.y,_.x-x.x),tileDistance:d?{prevTileDistance:y-m===v?0:c.gettileUnitDistanceFromAnchor(y-m),lastSegmentViewportDistance:S-b}:null}}We.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},We.prototype.insert=function(e,t,n,r,i){this._forEachCell(t,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},We.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},We.prototype._insertBoxCell=function(e,t,n,r,i,o){this.boxCells[i].push(o)},We.prototype._insertCircleCell=function(e,t,n,r,i,o){this.circleCells[i].push(o)},We.prototype._query=function(e,t,n,r,i,o){if(n<0||e>this.width||r<0||t>this.height)return!i&&[];var a=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s<this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l<this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],h=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-h,y1:c-h,x2:u+h,y2:c+h})}return o?a.filter(o):a}var p={hitTest:i,seenUids:{box:{},circle:{}}};return this._forEachCell(e,t,n,r,this._queryCell,a,p,o),i?a.length>0:a},We.prototype._queryCircle=function(e,t,n,r,i){var o=e-n,a=e+n,s=t-n,l=t+n;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];var u=[],c={hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}};return this._forEachCell(o,s,a,l,this._queryCellCircle,u,c,i),r?u.length>0:u},We.prototype.query=function(e,t,n,r,i){return this._query(e,t,n,r,!1,i)},We.prototype.hitTest=function(e,t,n,r,i){return this._query(e,t,n,r,!0,i)},We.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},We.prototype._queryCell=function(e,t,n,r,i,o,a,s){var l=a.seenUids,u=this.boxCells[i];if(null!==u)for(var c=this.bboxes,h=0,p=u;h<p.length;h+=1){var d=p[h];if(!l.box[d]){l.box[d]=!0;var f=4*d;if(e<=c[f+2]&&t<=c[f+3]&&n>=c[f+0]&&r>=c[f+1]&&(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[f],y1:c[f+1],x2:c[f+2],y2:c[f+3]})}}}var m=this.circleCells[i];if(null!==m)for(var g=this.circles,y=0,v=m;y<v.length;y+=1){var _=v[y];if(!l.circle[_]){l.circle[_]=!0;var x=3*_;if(this._circleAndRectCollide(g[x],g[x+1],g[x+2],e,t,n,r)&&(!s||s(this.circleKeys[_]))){if(a.hitTest)return o.push(!0),!0;var b=g[x],w=g[x+1],S=g[x+2];o.push({key:this.circleKeys[_],x1:b-S,y1:w-S,x2:b+S,y2:w+S})}}}},We.prototype._queryCellCircle=function(e,t,n,r,i,o,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[i];if(null!==c)for(var h=this.bboxes,p=0,d=c;p<d.length;p+=1){var f=d[p];if(!u.box[f]){u.box[f]=!0;var m=4*f;if(this._circleAndRectCollide(l.x,l.y,l.radius,h[m+0],h[m+1],h[m+2],h[m+3])&&(!s||s(this.boxKeys[f])))return o.push(!0),!0}}var g=this.circleCells[i];if(null!==g)for(var y=this.circles,v=0,_=g;v<_.length;v+=1){var x=_[v];if(!u.circle[x]){u.circle[x]=!0;var b=3*x;if(this._circlesCollide(y[b],y[b+1],y[b+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[x])))return o.push(!0),!0}}},We.prototype._forEachCell=function(e,t,n,r,i,o,a,s){for(var l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),h=this._convertToYCellCoord(r),p=l;p<=c;p++)for(var d=u;d<=h;d++){var f=this.xCellCount*d+p;if(i.call(this,e,t,n,r,f,o,a,s))return}},We.prototype._convertToXCellCoord=function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))},We.prototype._convertToYCellCoord=function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))},We.prototype._circlesCollide=function(e,t,n,r,i,o){var a=r-e,s=i-t,l=n+o;return l*l>a*a+s*s},We.prototype._circleAndRectCollide=function(e,t,n,r,i,o,a){var s=(o-r)/2,l=Math.abs(e-(r+s));if(l>s+n)return!1;var u=(a-i)/2,c=Math.abs(t-(i+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var h=l-s,p=c-u;return h*h+p*p<=n*n};var rt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function it(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(rt,3*r)}}function ot(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e[3]=n[3]*r+n[7]*i+n[15],e}var at=function(e,t,n){void 0===t&&(t=new We(e.width+200,e.height+200,25)),void 0===n&&(n=new We(e.width+200,e.height+200,25)),this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200};function st(e,t,n){e[t+4]=n?1:0}function lt(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}at.prototype.placeCollisionBox=function(e,t,n,r,i){var o=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),a=n*o.perspectiveRatio,s=e.x1*a+o.point.x,l=e.y1*a+o.point.y,u=e.x2*a+o.point.x,c=e.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,c)||!t&&this.grid.hitTest(s,l,u,c,i)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},at.prototype.approximateTileDistance=function(e,t,n,r,i){var o=i?1:r/this.pitchfactor,a=e.lastSegmentViewportDistance*n;return e.prevTileDistance+a+(o-1)*a*Math.abs(Math.sin(t))},at.prototype.placeCollisionCircles=function(t,n,r,i,o,a,s,l,u,c,h,p,d){var f=[],m=this.projectAnchor(u,o.anchorX,o.anchorY),g=l/24,y=o.lineOffsetX*l,v=o.lineOffsetY*l,_=new e.Point(o.anchorX,o.anchorY),x=Je(g,s,y,v,!1,Xe(_,c).point,_,o,a,c,{},!0),b=!1,w=!1,S=!0,k=m.perspectiveRatio*i,T=1/(i*r),M=0,E=0;x&&(M=this.approximateTileDistance(x.first.tileDistance,x.first.angle,T,m.cameraDistance,p),E=this.approximateTileDistance(x.last.tileDistance,x.last.angle,T,m.cameraDistance,p));for(var C=0;C<t.length;C+=5){var I=t[C],A=t[C+1],P=t[C+2],D=t[C+3];if(!x||D<-M||D>E)st(t,C,!1);else{var L=this.projectPoint(u,I,A),O=P*k;if(f.length>0){var R=L.x-f[f.length-4],z=L.y-f[f.length-3];if(O*O*2>R*R+z*z&&C+8<t.length){var N=t[C+8];if(N>-M&&N<E){st(t,C,!1);continue}}}var B=C/5;f.push(L.x,L.y,O,B),st(t,C,!0);var F=L.x-O,V=L.y-O,j=L.x+O,U=L.y+O;if(S=S&&this.isOffscreen(F,V,j,U),w=w||this.isInsideGrid(F,V,j,U),!n&&this.grid.hitTestCircle(L.x,L.y,O,d)){if(!h)return{circles:[],offscreen:!1};b=!0}}}return{circles:b||!w?[]:f,offscreen:S}},at.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,i=1/0,o=-1/0,a=-1/0,s=0,l=t;s<l.length;s+=1){var u=l[s],c=new e.Point(u.x+100,u.y+100);r=Math.min(r,c.x),i=Math.min(i,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),n.push(c)}for(var h={},p={},d=0,f=this.grid.query(r,i,o,a).concat(this.ignoredGrid.query(r,i,o,a));d<f.length;d+=1){var m=f[d],g=m.key;if(void 0===h[g.bucketInstanceId]&&(h[g.bucketInstanceId]={}),!h[g.bucketInstanceId][g.featureIndex]){var y=[new e.Point(m.x1,m.y1),new e.Point(m.x2,m.y1),new e.Point(m.x2,m.y2),new e.Point(m.x1,m.y2)];e.polygonIntersectsPolygon(n,y)&&(h[g.bucketInstanceId][g.featureIndex]=!0,void 0===p[g.bucketInstanceId]&&(p[g.bucketInstanceId]=[]),p[g.bucketInstanceId].push(g.featureIndex))}}return p},at.prototype.insertCollisionBox=function(e,t,n,r,i){var o={bucketInstanceId:n,featureIndex:r,collisionGroupID:i};(t?this.ignoredGrid:this.grid).insert(o,e[0],e[1],e[2],e[3])},at.prototype.insertCollisionCircles=function(e,t,n,r,i){for(var o=t?this.ignoredGrid:this.grid,a={bucketInstanceId:n,featureIndex:r,collisionGroupID:i},s=0;s<e.length;s+=4)o.insertCircle(a,e[s],e[s+1],e[s+2])},at.prototype.projectAnchor=function(e,t,n){var r=[t,n,0,1];return ot(r,r,e),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/r[3]*.5,cameraDistance:r[3]}},at.prototype.projectPoint=function(t,n,r){var i=[n,r,0,1];return ot(i,i,t),new e.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100)},at.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var i=[n,r,0,1];return ot(i,i,t),{point:new e.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},at.prototype.isOffscreen=function(e,t,n,r){return n<100||e>=this.screenRightBoundary||r<100||t>this.screenBottomBoundary},at.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary};var ut=function(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n};ut.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var ct=function(e,t,n,r,i){this.text=new ut(e?e.text:null,t,n,i),this.icon=new ut(e?e.icon:null,t,r,i)};ct.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var ht=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},pt=function(e,t,n,r,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=i},dt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};function ft(t,n,r,i,o){var a=e.getAnchorAlignment(t),s=-(a.horizontalAlign-.5)*n,l=-(a.verticalAlign-.5)*r,u=e.evaluateVariableOffset(t,i);return new e.Point(s+u[0]*o,l+u[1]*o)}function mt(t,n,r,i,o,a){var s=t.x1,l=t.x2,u=t.y1,c=t.y2,h=t.anchorPointX,p=t.anchorPointY,d=new e.Point(n,r);return i&&d._rotate(o?a:-a),{x1:s+d.x,y1:u+d.y,x2:l+d.x,y2:c+d.y,anchorPointX:h,anchorPointY:p}}dt.prototype.get=function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]};var gt=function(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new at(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new dt(n),this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function yt(e,t,n,r,i){e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0),e.emplaceBack(t?1:0,n?1:0,r||0,i||0)}gt.prototype.placeLayerTile=function(t,n,r,i){var o=n.getBucket(t),a=n.latestFeatureIndex;if(o&&a&&t.id===o.layerIds[0]){var s=n.collisionBoxArray,l=o.layers[0].layout,u=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),c=n.tileSize/e.EXTENT,h=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),p=Ze(h,"map"===l.get("text-pitch-alignment"),"map"===l.get("text-rotation-alignment"),this.transform,lt(n,1,this.transform.zoom)),d=Ze(h,"map"===l.get("icon-pitch-alignment"),"map"===l.get("icon-rotation-alignment"),this.transform,lt(n,1,this.transform.zoom));this.retainedQueryData[o.bucketInstanceId]=new pt(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,n.tileID),this.placeLayerBucket(o,h,p,d,u,c,r,n.holdingForFade(),i,s)}},gt.prototype.attemptAnchorPlacement=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f){var m,g=[h.textOffset0,h.textOffset1],y=ft(e,n,r,g,i),v=this.collisionIndex.placeCollisionBox(mt(t,y.x,y.y,o,a,this.transform.angle),c,s,l,u.predicate);if(!f||0!==this.collisionIndex.placeCollisionBox(mt(f,y.x,y.y,o,a,this.transform.angle),c,s,l,u.predicate).box.length)return v.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(m=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:g,width:n,height:r,anchor:e,textBoxScale:i,prevAnchor:m},this.markUsedJustification(p,e,h,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,h),this.placedOrientations[h.crossTileID]=d),{shift:y,placedGlyphBoxes:v}):void 0},gt.prototype.placeLayerBucket=function(t,n,r,i,o,a,s,l,u,c){var h=this,p=t.layers[0].layout,d=e.evaluateSizeForZoom(t.textSizeData,this.transform.zoom),f=p.get("text-optional"),m=p.get("icon-optional"),g=p.get("text-allow-overlap"),y=p.get("icon-allow-overlap"),v=g&&(y||!t.hasIconData()||m),_=y&&(g||!t.hasTextData()||f),x=this.collisionGroups.get(t.sourceID),b="map"===p.get("text-rotation-alignment"),w="map"===p.get("text-pitch-alignment"),S="none"!==p.get("icon-text-fit"),k="viewport-y"===p.get("symbol-z-order");!t.collisionArrays&&c&&t.deserializeCollisionBoxes(c);var T=function(i,c){if(!u[i.crossTileID])if(l)h.placements[i.crossTileID]=new ht(!1,!1,!1);else{var k,T=!1,M=!1,E=!0,C=null,I={box:null,offscreen:null},A={box:null,offscreen:null},P=null,D=null,L=0,O=0,R=0;c.textFeatureIndex&&(L=c.textFeatureIndex),c.verticalTextFeatureIndex&&(O=c.verticalTextFeatureIndex);var z=c.textBox;if(z){var N=function(n){var r=e.WritingMode.horizontal;if(t.allowVerticalPlacement&&!n&&h.prevPlacement){var o=h.prevPlacement.placedOrientations[i.crossTileID];o&&(h.placedOrientations[i.crossTileID]=o,r=o,h.markUsedOrientation(t,r,i))}return r},B=function(n,r){if(t.allowVerticalPlacement&&i.numVerticalGlyphVertices>0&&c.verticalTextBox)for(var o=0,a=t.writingModes;o<a.length&&(a[o]===e.WritingMode.vertical?(I=r(),A=I):I=n(),!(I&&I.box&&I.box.length));o+=1);else I=n()};if(p.get("text-variable-anchor")){var F=p.get("text-variable-anchor");if(h.prevPlacement&&h.prevPlacement.variableOffsets[i.crossTileID]){var V=h.prevPlacement.variableOffsets[i.crossTileID];F.indexOf(V.anchor)>0&&(F=F.filter((function(e){return e!==V.anchor}))).unshift(V.anchor)}var j=function(e,r,o){for(var s=e.x2-e.x1,l=e.y2-e.y1,u=i.textBoxScale,c=S&&!y?r:null,p={box:[],offscreen:!1},d=g?2*F.length:F.length,f=0;f<d;++f){var m=F[f%F.length],v=f>=F.length,_=h.attemptAnchorPlacement(m,e,s,l,u,b,w,a,n,x,v,i,t,o,c);if(_&&(p=_.placedGlyphBoxes)&&p.box&&p.box.length){T=!0,C=_.shift;break}}return p};B((function(){return j(z,c.iconBox,e.WritingMode.horizontal)}),(function(){var n=c.verticalTextBox,r=I&&I.box&&I.box.length;return t.allowVerticalPlacement&&!r&&i.numVerticalGlyphVertices>0&&n?j(n,c.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),I&&(T=I.box,E=I.offscreen);var U=N(I&&I.box);if(!T&&h.prevPlacement){var G=h.prevPlacement.variableOffsets[i.crossTileID];G&&(h.variableOffsets[i.crossTileID]=G,h.markUsedJustification(t,G.anchor,i,U))}}else{var q=function(e,r){var o=h.collisionIndex.placeCollisionBox(e,p.get("text-allow-overlap"),a,n,x.predicate);return o&&o.box&&o.box.length&&(h.markUsedOrientation(t,r,i),h.placedOrientations[i.crossTileID]=r),o};B((function(){return q(z,e.WritingMode.horizontal)}),(function(){var n=c.verticalTextBox;return t.allowVerticalPlacement&&i.numVerticalGlyphVertices>0&&n?q(n,e.WritingMode.vertical):{box:null,offscreen:null}})),N(I&&I.box&&I.box.length)}}T=(k=I)&&k.box&&k.box.length>0,E=k&&k.offscreen;var H=c.textCircles;if(H){var W=t.text.placedSymbolArray.get(i.centerJustifiedTextSymbolIndex),Z=e.evaluateSizeForFeature(t.textSizeData,d,W);P=h.collisionIndex.placeCollisionCircles(H,p.get("text-allow-overlap"),o,a,W,t.lineVertexArray,t.glyphOffsetArray,Z,n,r,s,w,x.predicate),T=p.get("text-allow-overlap")||P.circles.length>0,E=E&&P.offscreen}if(c.iconFeatureIndex&&(R=c.iconFeatureIndex),c.iconBox){var Y=function(e){var t=S&&C?mt(e,C.x,C.y,b,w,h.transform.angle):e;return h.collisionIndex.placeCollisionBox(t,p.get("icon-allow-overlap"),a,n,x.predicate)};M=A&&A.box&&A.box.length&&c.verticalIconBox?(D=Y(c.verticalIconBox)).box.length>0:(D=Y(c.iconBox)).box.length>0,E=E&&D.offscreen}var X=f||0===i.numHorizontalGlyphVertices&&0===i.numVerticalGlyphVertices,K=m||0===i.numIconVertices;X||K?K?X||(M=M&&T):T=M&&T:M=T=M&&T,T&&k&&k.box&&(A&&A.box&&O?h.collisionIndex.insertCollisionBox(k.box,p.get("text-ignore-placement"),t.bucketInstanceId,O,x.ID):h.collisionIndex.insertCollisionBox(k.box,p.get("text-ignore-placement"),t.bucketInstanceId,L,x.ID)),M&&D&&h.collisionIndex.insertCollisionBox(D.box,p.get("icon-ignore-placement"),t.bucketInstanceId,R,x.ID),T&&P&&h.collisionIndex.insertCollisionCircles(P.circles,p.get("text-ignore-placement"),t.bucketInstanceId,L,x.ID),h.placements[i.crossTileID]=new ht(T||v,M||_,E||t.justReloaded),u[i.crossTileID]=!0}};if(k)for(var M=t.getSortedSymbolIndexes(this.transform.angle),E=M.length-1;E>=0;--E){var C=M[E];T(t.symbolInstances.get(C),t.collisionArrays[C])}else for(var I=0;I<t.symbolInstances.length;++I)T(t.symbolInstances.get(I),t.collisionArrays[I]);t.justReloaded=!1},gt.prototype.markUsedJustification=function(t,n,r,i){var o,a={left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex};o=i===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:a[e.getAnchorJustification(n)];for(var s=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];s<l.length;s+=1){var u=l[s];u>=0&&(t.text.placedSymbolArray.get(u).crossTileID=o>=0&&u!==o?0:r.crossTileID)}},gt.prototype.markUsedOrientation=function(t,n,r){for(var i=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a<s.length;a+=1){var l=s[a];t.text.placedSymbolArray.get(l).placedOrientation=i}r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)},gt.prototype.commit=function(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;var t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;var r=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=i[s];u?(this.opacities[s]=new ct(u,r,l.text,l.icon),n=n||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new ct(null,r,l.text,l.icon,l.skipFade),n=n||l.text||l.icon)}for(var c in i){var h=i[c];if(!this.opacities[c]){var p=new ct(h,r,!1,!1);p.isHidden()||(this.opacities[c]=p,n=n||h.text.placed||h.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var f in a)this.placedOrientations[f]||!this.opacities[f]||this.opacities[f].isHidden()||(this.placedOrientations[f]=a[f]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},gt.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,i=t;r<i.length;r+=1){var o=i[r],a=o.getBucket(e);a&&o.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,n,o.collisionBoxArray)}},gt.prototype.updateBucketOpacities=function(t,n,r){var i=this;t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear(),t.hasIconCollisionCircleData()&&t.iconCollisionCircle.collisionVertexArray.clear(),t.hasTextCollisionCircleData()&&t.textCollisionCircle.collisionVertexArray.clear();var o=t.layers[0].layout,a=new ct(null,0,!1,!1,!0),s=o.get("text-allow-overlap"),l=o.get("icon-allow-overlap"),u=o.get("text-variable-anchor"),c="map"===o.get("text-rotation-alignment"),h="map"===o.get("text-pitch-alignment"),p="none"!==o.get("icon-text-fit"),d=new ct(null,0,s&&(l||!t.hasIconData()||o.get("icon-optional")),l&&(s||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasIconCollisionCircleData()||t.hasTextCollisionBoxData()||t.hasTextCollisionCircleData())&&t.deserializeCollisionBoxes(r);for(var f=function(e,t,n){for(var r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n)},m=function(r){var o=t.symbolInstances.get(r),s=o.numHorizontalGlyphVertices,l=o.numVerticalGlyphVertices,m=o.crossTileID,g=n[m],y=i.opacities[m];g?y=a:y||(y=d,i.opacities[m]=y),n[m]=!0;var v=s>0||l>0,_=o.numIconVertices>0,x=i.placedOrientations[o.crossTileID],b=x===e.WritingMode.vertical,w=x===e.WritingMode.horizontal||x===e.WritingMode.horizontalOnly;if(v){var S=Tt(y.text),k=b?Mt:S;f(t.text,s,k);var T=w?Mt:S;f(t.text,l,T);var M=y.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=M||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var E=i.variableOffsets[o.crossTileID];E&&i.markUsedJustification(t,E.anchor,o,x);var C=i.placedOrientations[o.crossTileID];C&&(i.markUsedJustification(t,"left",o,C),i.markUsedOrientation(t,C,o))}if(_){var I=Tt(y.icon),A=!(p&&o.verticalPlacedIconSymbolIndex&&b);if(o.placedIconSymbolIndex>=0){var P=A?I:Mt;f(t.icon,o.numIconVertices,P),t.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=y.icon.isHidden()}if(o.verticalPlacedIconSymbolIndex>=0){var D=A?Mt:I;f(t.icon,o.numVerticalIconVertices,D),t.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden()}}if(t.hasIconCollisionBoxData()||t.hasIconCollisionCircleData()||t.hasTextCollisionBoxData()||t.hasTextCollisionCircleData()){var L=t.collisionArrays[r];if(L){var O=new e.Point(0,0);if(L.textBox||L.verticalTextBox){var R=!0;if(u){var z=i.variableOffsets[m];z?(O=ft(z.anchor,z.width,z.height,z.textOffset,z.textBoxScale),c&&O._rotate(h?i.transform.angle:-i.transform.angle)):R=!1}L.textBox&&yt(t.textCollisionBox.collisionVertexArray,y.text.placed,!R||b,O.x,O.y),L.verticalTextBox&&yt(t.textCollisionBox.collisionVertexArray,y.text.placed,!R||w,O.x,O.y)}var N=Boolean(!w&&L.verticalIconBox);L.iconBox&&yt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,N,p?O.x:0,p?O.y:0),L.verticalIconBox&&yt(t.iconCollisionBox.collisionVertexArray,y.icon.placed,!N,p?O.x:0,p?O.y:0);var B=L.textCircles;if(B&&t.hasTextCollisionCircleData())for(var F=0;F<B.length;F+=5){var V=g||0===B[F+4];yt(t.textCollisionCircle.collisionVertexArray,y.text.placed,V)}}}},g=0;g<t.symbolInstances.length;g++)m(g);t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.hasIconCollisionCircleData()&&t.iconCollisionCircle.collisionVertexBuffer&&t.iconCollisionCircle.collisionVertexBuffer.updateData(t.iconCollisionCircle.collisionVertexArray),t.hasTextCollisionCircleData()&&t.textCollisionCircle.collisionVertexBuffer&&t.textCollisionCircle.collisionVertexBuffer.updateData(t.textCollisionCircle.collisionVertexArray)},gt.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},gt.prototype.zoomAdjustment=function(e){return Math.max(0,(this.transform.zoom-e)/1.5)},gt.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},gt.prototype.stillRecent=function(e,t){var n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e},gt.prototype.setStale=function(){this.stale=!0};var vt=Math.pow(2,25),_t=Math.pow(2,24),xt=Math.pow(2,17),bt=Math.pow(2,16),wt=Math.pow(2,9),St=Math.pow(2,8),kt=Math.pow(2,1);function Tt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*vt+t*_t+n*xt+t*bt+n*wt+t*St+n*kt+t}var Mt=0,Et=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Et.prototype.continuePlacement=function(e,t,n,r,i){for(;this._currentTileIndex<e.length;){var o=e[this._currentTileIndex];if(t.placeLayerTile(r,o,n,this._seenCrossTileIDs),this._currentTileIndex++,i())return!0}};
vendor: 4,468 bytes, line 1
1var Ct=function(e,t,n,r,i,o,a){this.placement=new gt(e,i,o,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};Ct.prototype.isDone=function(){return this._done},Ct.prototype.continuePlacement=function(t,n,r){for(var i=this,o=e.browser.now(),a=function(){var t=e.browser.now()-o;return!i._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var s=n[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new Et),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ct.prototype.commit=function(e){return this.placement.commit(e),this.placement};var It=512/e.EXTENT/2,At=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var i=t.get(r),o=i.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,e)})}};At.prototype.getScaledCoordinates=function(t,n){var r=n.canonical.z-this.tileID.canonical.z,i=It/Math.pow(2,r);return{x:Math.floor((n.canonical.x*e.EXTENT+t.anchorX)*i),y:Math.floor((n.canonical.y*e.EXTENT+t.anchorY)*i)}},At.prototype.findMatches=function(e,t,n){for(var r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),i=0;i<e.length;i++){var o=e.get(i);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,t),l=0,u=a;l<u.length;l+=1){var c=u[l];if(Math.abs(c.coord.x-s.x)<=r&&Math.abs(c.coord.y-s.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Pt=function(){this.maxCrossTileID=0};Pt.prototype.generate=function(){return++this.maxCrossTileID};var Dt=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Dt.prototype.handleWrapJump=function(e){var t=Math.round((e-this.lng)/360);if(0!==t)for(var n in this.indexes){var r=this.indexes[n],i={};for(var o in r){var a=r[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),i[a.tileID.key]=a}this.indexes[n]=i}this.lng=e},Dt.prototype.addBucket=function(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(var r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});var i=this.usedCrossTileIDs[e.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)>e.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(e)&&l.findMatches(t.symbolInstances,e,i)}else{var u=a[e.scaledTo(Number(o)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(var c=0;c<t.symbolInstances.length;c++){var h=t.symbolInstances.get(c);h.crossTileID||(h.crossTileID=n.generate(),i[h.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new At(e,t.symbolInstances,t.bucketInstanceId),!0},Dt.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,i=t.indexedSymbolInstances[n];r<i.length;r+=1){var o=i[r];delete this.usedCrossTileIDs[e][o.crossTileID]}},Dt.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var i in r)e[r[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[i]),delete r[i],t=!0)}return t};var Lt=function(){this.layerIndexes={},this.crossTileIDs=new Pt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Lt.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new Dt);var i=!1,o={};r.handleWrapJump(n);for(var a=0,s=t;a<s.length;a+=1){var l=s[a],u=l.getBucket(e);u&&e.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(l.tileID,u,this.crossTileIDs)&&(i=!0),o[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(i=!0),i},Lt.prototype.pruneUnusedLayers=function(e){var t={};for(var n in e.forEach((function(e){t[e]=!0})),this.layerIndexes)t[n]||delete this.layerIndexes[n]};
1var Ot=function(t,n){return e.emitValidationErrors(t,n&&n.filter((function(e){return"source.canvas"!==e.identifier})))},Rt=e.pick(Be,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),zt=e.pick(Be,["setCenter","setZoom","setBearing","setPitch"]),Nt=function(t){function n(r,i){var o=this;void 0===i&&(i={}),t.call(this),this.map=r,this.dispatcher=new k((Oe||(Oe=new Le),Oe),this),this.imageManager=new p,this.imageManager.setEventedParent(this),this.glyphManager=new _(r._requestManager,i.localIdeographFontFamily),this.lineAtlas=new S(256,512),this.crossTileSymbolIndex=new Lt,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());var a=this;this._rtlTextPluginCallback=n.registerForPluginAvailability((function(e){for(var t in a.dispatcher.broadcast("loadRTLTextPlugin",e.pluginURL,e.completionCallback),a.sourceCaches)a.sourceCaches[t].reload()})),this.on("data",(function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=o.sourceCaches[e.sourceId];if(t){var n=t.getSource();if(n&&n.vectorLayerIds)for(var r in o._layers){var i=o._layers[r];i.source===n.id&&o._validateLayer(i)}}}}))}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.loadURL=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"}));var i="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);var o=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(o,(function(t,n){r._request=null,t?r.fire(new e.ErrorEvent(t)):n&&r._load(n,i)}))},n.prototype.loadJSON=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame((function(){r._request=null,r._load(t,!1!==n.validate)}))},n.prototype._load=function(t,n){var r=this;if(!n||!Ot(this,e.validateStyle(t))){for(var i in this._loaded=!0,this.stylesheet=t,t.sources)this.addSource(i,t.sources[i],{validate:!1});t.sprite?this._spriteRequest=function(t,n,r){var i,o,a,s=e.browser.devicePixelRatio>1?"@2x":"",l=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(function(e,t){l=null,a||(a=e,i=t,c())})),u=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(function(e,t){u=null,a||(a=e,o=t,c())}));function c(){if(a)r(a);else if(i&&o){var t=e.browser.getImageData(o),n={};for(var s in i){var l=i[s],u=l.width,c=l.height,h=l.x,p=l.y,d=l.sdf,f=l.pixelRatio,m=new e.RGBAImage({width:u,height:c});e.RGBAImage.copy(t,m,{x:h,y:p},{x:0,y:0},{width:u,height:c}),n[s]={data:m,pixelRatio:f,sdf:d}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(t.sprite,this.map._requestManager,(function(t,n){if(r._spriteRequest=null,t)r.fire(new e.ErrorEvent(t));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r.dispatcher.broadcast("setImages",r.imageManager.listImages()),r.fire(new e.Event("data",{dataType:"style"}))})):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var o=Ne(this.stylesheet.layers);this._order=o.map((function(e){return e.id})),this._layers={};for(var a=0,s=o;a<s.length;a+=1){var l=s[a];(l=e.createStyleLayer(l)).setEventedParent(this,{layer:{id:l.id}}),this._layers[l.id]=l}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var i=n.getSource();
vendor: 8,062 bytes, line 1
1("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var i=r[n],o=this._layers[i];"custom"!==o.type&&t.push(o.serialize())}return t},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var o in(r.length||i.length)&&this._updateWorkerLayers(r,i),this._updatedSources){var a=this._updatedSources[o];"reload"===a?this._reloadSource(o):"clear"===a&&this._clearSource(o)}for(var s in this._updatedPaintProps)this._layers[s].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var u=0,c=this._order;u<c.length;u+=1){var h=c[u],p=this._layers[h];p.recalculate(t,this.imageManager.listImages()),!p.isHidden(t.zoom)&&p.source&&(this.sourceCaches[p.source].used=!0)}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}},n.prototype._updateWorkerLayers=function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},n.prototype.setState=function(t){var n=this;if(this._checkLoaded(),Ot(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=Ne(t.layers);var r=function(t,n){if(!t)return[{command:Be.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Be.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Be.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Be.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Be.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Be.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Be.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Be.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Be.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Be.setLight,args:[n.light]});var i={},o=[];!function(t,n,r,i){var o;for(o in n=n||{},t=t||{})t.hasOwnProperty(o)&&(n.hasOwnProperty(o)||Ve(o,r,i));for(o in n)n.hasOwnProperty(o)&&(t.hasOwnProperty(o)?e.deepEqual(t[o],n[o])||("geojson"===t[o].type&&"geojson"===n[o].type&&Ue(t,n,o)?r.push({command:Be.setGeoJSONSourceData,args:[o,n[o].data]}):je(o,n,r,i)):Fe(o,n,r))}(t.sources,n.sources,o,i);var a=[];t.layers&&t.layers.forEach((function(e){i[e.source]?r.push({command:Be.removeLayer,args:[e.id]}):a.push(e)})),r=r.concat(o),function(t,n,r){n=n||[];var i,o,a,s,l,u,c,h=(t=t||[]).map(qe),p=n.map(qe),d=t.reduce(He,{}),f=n.reduce(He,{}),m=h.slice(),g=Object.create(null);for(i=0,o=0;i<h.length;i++)a=h[i],f.hasOwnProperty(a)?o++:(r.push({command:Be.removeLayer,args:[a]}),m.splice(m.indexOf(a,o),1));for(i=0,o=0;i<p.length;i++)a=p[p.length-1-i],m[m.length-1-i]!==a&&(d.hasOwnProperty(a)?(r.push({command:Be.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-o),1)):o++,u=m[m.length-i],r.push({command:Be.addLayer,args:[f[a],u]}),m.splice(m.length-i,0,a),g[a]=!0);for(i=0;i<p.length;i++)if(s=d[a=p[i]],l=f[a],!g[a]&&!e.deepEqual(s,l))if(e.deepEqual(s.source,l.source)&&e.deepEqual(s["source-layer"],l["source-layer"])&&e.deepEqual(s.type,l.type)){for(c in Ge(s.layout,l.layout,r,a,null,Be.setLayoutProperty),Ge(s.paint,l.paint,r,a,null,Be.setPaintProperty),e.deepEqual(s.filter,l.filter)||r.push({command:Be.setFilter,args:[a,l.filter]}),e.deepEqual(s.minzoom,l.minzoom)&&e.deepEqual(s.maxzoom,l.maxzoom)||r.push({command:Be.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Ge(s[c],l[c],r,a,c.slice(6),Be.setPaintProperty):e.deepEqual(s[c],l[c])||r.push({command:Be.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&&!s.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?Ge(s[c],l[c],r,a,c.slice(6),Be.setPaintProperty):e.deepEqual(s[c],l[c])||r.push({command:Be.setLayerProperty,args:[a,c,l[c]]}))}else r.push({command:Be.removeLayer,args:[a]}),u=m[m.lastIndexOf(a)+1],r.push({command:Be.addLayer,args:[l,u]})}(a,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Be.setStyle,args:[n]}]}return r}(this.serialize(),t).filter((function(e){return!(e.command in zt)}));if(0===r.length)return!1;var i=r.filter((function(e){return!(e.command in Rt)}));if(i.length>0)throw new Error("Unimplemented: "+i.map((function(e){return e.command})).join(", ")+".");return r.forEach((function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)})),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var i=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[t]=new Ie(t,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:o.serialize(),sourceId:t}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var i=t.id;if(this.getLayer(i))this.fire(new e.ErrorEvent(new Error('Layer with i
1d "'+i+'" already exists on this map')));else{var o;if("custom"===t.type){if(Ot(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.clone$1(t),t=e.extend(t,{source:i})),this._validate(e.validateStyle.layer,"layers."+i,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}})}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;
vendor: 11,450 bytes, line 1
1n&&-1===i?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var i=this.getLayer(t);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var i=this.getLayer(t);if(i){if(!e.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(e.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=e.clone$1(n),this._updateLayer(i)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,i=t.sourceLayer,o=this.sourceCaches[r],a=parseInt(t.id,10);if(void 0!==o){var s=o.getSource().type;"geojson"===s&&i?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==s||i?isNaN(a)||a<0?this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):o.setFeatureState(i,a,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?t.sourceLayer:void 0,s=parseInt(t.id,10);"vector"!==o||a?void 0!==t.id&&isNaN(s)||s<0?this.fire(new e.ErrorEvent(new Error("The feature id parameter must be non-negative."))):n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):i.removeFeatureState(a,s,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,i=this.sourceCaches[n],o=parseInt(t.id,10);if(void 0!==i)if("vector"!==i.getSource().type||r){if(!(isNaN(o)||o<0))return i.getFeatureState(r,o);this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,(function(e){return e.serialize()})),layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},i=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(n(a)){r[a]=o;for(var s=0,l=e;s<l.length;s+=1){var u=l[s][a];if(u)for(var c=0,h=u;c<h.length;c+=1){var p=h[c];i.push(p)}}}}i.sort((function(e,t){return t.intersectionZ-e.intersectionZ}));for(var d=[],f=this._order.length-1;f>=0;f--){var m=this._order[f];if(n(m))for(var g=i.length-1;g>=0;g--){var y=i[g].feature;if(r[y.layer.id]<f)break;d.push(y),i.pop()}else for(var v=0,_=e;v<_.length;v+=1){var x=_[v][m];if(x)for(var b=0,w=x;b<w.length;b+=1){var S=w[b];d.push(S.feature)}}}return d},n.prototype.queryRenderedFeatures=function(t,n,r){n&&n.filter&&this._validate(e.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var i={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,a=n.layers;o<a.length;o+=1){var s=a[o],l=this._layers[s];if(!l)return this.fire(new e.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];i[l.source]=!0}}var u=[];for(var c in this.sourceCaches)n.layers&&!i[c]||u.push(z(this.sourceCaches[c],this._layers,t,n,r));return this.placement&&u.push(function(e,t,n,r,i,o){for(var a={},s=i.queryRenderedSymbols(n),l=[],u=0,c=Object.keys(s).map(Number);u<c.length;u+=1){var h=c[u];l.push(o[h])}l.sort(N);for(var p=function(){var t=f[d],n=t.featureIndex.lookupSymbolFeatures(s[t.bucketInstanceId],t.bucketIndex,t.sourceLayerIndex,r.filter,r.layers,e);for(var i in n){var o=a[i]=a[i]||[],l=n[i];l.sort((function(e,n){var r=t.featureSortOrder;if(r){var i=r.indexOf(e.featureIndex);return r.indexOf(n.featureIndex)-i}return n.featureIndex-e.featureIndex}));for(var u=0,c=l;u<c.length;u+=1){var h=c[u];o.push(h)}}},d=0,f=l;d<f.length;d+=1)p();var m=function(n){a[n].forEach((function(r){var i=r.feature,o=e[n],a=t[o.source].getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=a}))};for(var g in a)m(g);return a}(this._layers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(u)},n.prototype.querySourceFeatures=function(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[t];return r?function(e,t){for(var n=e.getRenderableIds().map((function(t){return e.getTileByID(t)})),r=[],i={},o=0;o<n.length;o++){var a=n[o],s=a.tileID.canonical.key;i[s]||(i[s]=!0,a.querySourceFeatures(r,t))}return r}(r,n):[]},n.prototype.addSourceType=function(e,t,r){return n.getSourceType(e)?r(new Error('A source type called "'+e+'" already exists.')):(n.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),i=!1;for(var o in t)if(!e.deepEqual(t[o],r[o])){i=!0;break}if(i){var a={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(a)}},n.prototype._validate=function(t,n,r,i,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&Ot(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},i)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginAvailable",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(e){this.sourceCaches[e].clearTiles()},n.prototype._reloadSource=function(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()},n.prototype._updateSources=function(e){for(var t in this.sourceCaches)this.sourceCaches[t].update(e)},n.prototype._generateCollisionBoxes=function(){for(var e in this.sourceCaches)this._reloadSource(e)},n.prototype._updatePlacement=function(t,n,r,i){for(var o=!1,a=!1,s={},l=0,u=this._order;l<u.length;l+=1){var c=u[l],h=this._layers[c];if("symbol"===h.type){if(!s[h.source]){var p=this.sourceCaches[h.source];s[h.source]=p.getRenderableIds(!0).map((function(e){return p.getTileByID(e)})).sort((function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(h,s[h.source],t.center.lng);o=o||d}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var f=this._layerOrderChanged||0===r;if((f||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now(),t.zoom))&&(this.pauseablePlacement=new Ct(t,this._order,f,n,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),a=!0),o&&this.pauseablePlacement.placement.setStale()),a||o)for(var m=0,g=this._order;m<g.length;m+=1){var y=g[m],v=this._layers[y];"symbol"===v.type&&this.placement.updateLayerOpacities(v,s[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()},n.prototype.getImages=function(e,t,n){this.imageManager.getImages(t.icons,n)},n.prototype.getGlyphs=function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}
1,n.prototype.getResource=function(t,n,r){return e.makeRequest(n,r)},n}(e.Evented);Nt.getSourceType=function(e){return O[e]},Nt.setSourceType=function(e,t){O[e]=t},Nt.registerForPluginAvailability=e.registerForPluginAvailability;var Bt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),Ft=hn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),Vt=hn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),jt=hn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Ut=hn("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius
1/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),Gt=hn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),qt=hn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Ht=hn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Wt=hn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Zt=hn("uniform float u_overscale_factor;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {float alpha=0.5;vec4 color=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {color=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {color*=.2;}float extrude_scale_length=length(v_extrude_scale);float extrude_length=length(v_extrude)*extrude_scale_length;float stroke_width=15.0*extrude_scale_length/u_overscale_factor;float radius=v_radius*extrude_scale_length;float distance_to_edge=abs(extrude_length-radius);float opacity_t=smoothstep(-stroke_width,0.0,-distance_to_edge);gl_FragColor=opacity_t*color;}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);highp float padding_factor=1.2;gl_Position.xy+=a_extrude*u_extrude_scale*padding_factor*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;v_radius=abs(a_extrude.y);v_extrude=a_extrude*padding_factor;v_extrude_scale=u_extrude_scale*u_camera_to_center_distance*collision_perspective_ratio;}"),Yt=hn("uniform highp vec4 u_color;void main() {gl_FragColor=u_color;}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Xt=hn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),Kt=hn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),$t=hn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Jt=hn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),Qt=hn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),en=hn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec4 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistanc
1e,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),tn=hn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),nn=hn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),rn=hn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),on=hn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),an=hn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec4 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x,1.0);float x_b=mod(v_linesofar/pattern_size_b.x,1.0);float y_a=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_a.y+2.0)/2.0)/pattern_size_a.y);float y_b=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_b.y+2.0)/2.0)/pattern_size_b.y);vec2 pos_a=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,vec2(x_a,y_a));vec2 pos_b=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,vec2(x_b,y_b));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);}"),sn=hn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
1uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),ln=hn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),un=hn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),cn=hn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant && u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=vec2(tex.x,tex.y);v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}");
vendor: 4,683 bytes, line 1
1function hn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r={};return{fragmentSource:e=e.replace(n,(function(e,t,n,i,o){return r[o]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+n+" "+i+" "+o+";\n#else\nuniform "+n+" "+i+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n    "+n+" "+i+" "+o+" = u_"+o+";\n#endif\n"})),vertexSource:t=t.replace(n,(function(e,t,n,i,o){var a="float"===i?"vec2":"vec4",s=o.match(/color/)?"color":a;return r[o]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+a+" a_"+o+";\nvarying "+n+" "+i+" "+o+";\n#else\nuniform "+n+" "+i+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = a_"+o+";\n#else\n    "+n+" "+i+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = unpack_mix_"+s+"(a_"+o+", u_"+o+"_t);\n#else\n    "+n+" "+i+" "+o+" = u_"+o+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+a+" a_"+o+";\n#else\nuniform "+n+" "+i+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+n+" "+i+" "+o+" = a_"+o+";\n#else\n    "+n+" "+i+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+n+" "+i+" "+o+" = unpack_mix_"+s+"(a_"+o+", u_"+o+"_t);\n#else\n    "+n+" "+i+" "+o+" = u_"+o+";\n#endif\n"}))}}var pn=Object.freeze({__proto__:null,prelude:Ft,background:Vt,backgroundPattern:jt,circle:Ut,clippingMask:Gt,heatmap:qt,heatmapTexture:Ht,collisionBox:Wt,collisionCircle:Zt,debug:Yt,fill:Xt,fillOutline:Kt,fillOutlinePattern:$t,fillPattern:Jt,fillExtrusion:Qt,fillExtrusionPattern:en,hillshadePrepare:tn,hillshade:nn,line:rn,lineGradient:on,linePattern:an,lineSDF:sn,raster:ln,symbolIcon:un,symbolSDF:cn}),dn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};dn.prototype.bind=function(e,t,n,r,i,o,a,s){this.context=e;for(var l=this.boundPaintVertexBuffers.length!==r.length,u=0;!l&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(l=!0);var c=!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==n||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==a||this.boundDynamicVertexBuffer2!==s;!e.extVertexArrayObject||c?this.freshBind(t,n,r,i,o,a,s):(e.bindVertexArrayOES.set(this.vao),a&&a.bind(),i&&i.dynamicDraw&&i.bind(),s&&s.bind())},dn.prototype.freshBind=function(e,t,n,r,i,o,a){var s,l=e.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var h=l;h<s;h++)c.disableVertexAttribArray(h)}t.enableAttributes(c,e);for(var p=0,d=n;p<d.length;p+=1)d[p].enableAttributes(c,e);o&&o.enableAttributes(c,e),a&&a.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(var f=0,m=n;f<m.length;f+=1){var g=m[f];g.bind(),g.setVertexAttribPointers(c,e,i)}o&&(o.bind(),o.setVertexAttribPointers(c,e,i)),r&&r.bind(),a&&(a.bind(),a.setVertexAttribPointers(c,e,i)),u.currentNumAttributes=l},dn.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var fn=function(e,t,n,r,i){var o=e.gl;this.program=o.createProgram();var a=n.defines();i&&a.push("#define OVERDRAW_INSPECTOR;");var s=a.concat(Ft.fragmentSource,t.fragmentSource).join("\n"),l=a.concat(Ft.vertexSource,t.vertexSource).join("\n"),u=o.createShader(o.FRAGMENT_SHADER);o.shaderSource(u,s),o.compileShader(u),o.attachShader(this.program,u);var c=o.createShader(o.VERTEX_SHADER);o.shaderSource(c,l),o.compileShader(c),o.attachShader(this.program,c);for(var h=n.layoutAttributes||[],p=0;p<h.length;p++)o.bindAttribLocation(this.program,p,h[p].name);o.linkProgram(this.program),this.numAttributes=o.getProgramParameter(this.program,o.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},f=0;f<this.numAttributes;f++){var m=o.getActiveAttrib(this.program,f);m&&(this.attributes[m.name]=o.getAttribLocation(this.program,m.name))}for(var g=o.getProgramParameter(this.program,o.ACTIVE_UNIFORMS),y=0;y<g;y++){var v=o.getActiveUniform(this.program,y);v&&(d[v.name]=o.getUniformLocation(this.program,v.name))}this.fixedUniforms=r(e,d),this.binderUniforms=n.getUniforms(e,d)};function mn(t,n,r){var i=1/lt(r,1,n.transform.tileZoom),o=Math.pow(2,r.tileID.overscaledZ
vendor: 12,708 bytes, line 1
1),a=r.tileSize*Math.pow(2,n.transform.tileZoom)/o,s=a*(r.tileID.canonical.x+r.tileID.wrap*o),l=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[e.browser.devicePixelRatio,i,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[s>>16,l>>16],u_pixel_coord_lower:[65535&s,65535&l]}}fn.prototype.draw=function(e,t,n,r,i,o,a,s,l,u,c,h,p,d,f,m){var g,y=e.gl;for(var v in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(i),e.setCullFace(o),this.fixedUniforms)this.fixedUniforms[v].set(a[v]);d&&d.setUniforms(e,this.binderUniforms,h,{zoom:p});for(var _=(g={},g[y.LINES]=2,g[y.TRIANGLES]=3,g[y.LINE_STRIP]=1,g)[t],x=0,b=c.get();x<b.length;x+=1){var w=b[x],S=w.vaos||(w.vaos={});(S[s]||(S[s]=new dn)).bind(e,this,l,d?d.getPaintVertexBuffers():[],u,w.vertexOffset,f,m),y.drawElements(t,w.primitiveLength*_,y.UNSIGNED_SHORT,w.primitiveOffset*_*2)}};var gn=function(t,n,r,i){var o=n.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],l=e.create$1();"viewport"===o.properties.get("anchor")&&e.fromRotation(l,-n.transform.angle),e.transformMat3(s,s,l);var u=o.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+r,u_opacity:i}},yn=function(t,n,r,i,o,a,s){return e.extend(gn(t,n,r,i),mn(a,n,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8})},vn=function(e){return{u_matrix:e}},_n=function(t,n,r,i){return e.extend(vn(t),mn(r,n,i))},xn=function(e,t){return{u_matrix:e,u_world:t}},bn=function(t,n,r,i,o){return e.extend(_n(t,n,r,i),{u_world:o})},wn=function(t,n,r,i){var o,a,s=t.transform;if("map"===i.paint.get("circle-pitch-alignment")){var l=lt(r,1,s.zoom);o=!0,a=[l,l]}else o=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===i.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,i.paint.get("circle-translate"),i.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:a}},Sn=function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},kn=function(e,t,n){var r=lt(n,1,t.zoom),i=Math.pow(2,t.zoom-n.tileID.overscaledZ),o=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*i),t.pixelsToGLUnits[1]/(r*i)],u_overscale_factor:o}},Tn=function(e,t){return{u_matrix:e,u_color:t}},Mn=function(e){return{u_matrix:e}},En=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:lt(t,1,n),u_intensity:r}};function Cn(t,n){var r=Math.pow(2,n.canonical.z),i=n.canonical.y;return[new e.MercatorCoordinate(0,i/r).toLngLat().lat,new e.MercatorCoordinate(0,(i+1)/r).toLngLat().lat]}var In=function(t,n,r){var i=t.transform;return{u_matrix:On(t,n,r),u_ratio:1/lt(n,1,i.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},An=function(t,n,r){return e.extend(In(t,n,r),{u_image:0})},Pn=function(t,n,r,i){var o=t.transform,a=Ln(n,o);return{u_matrix:On(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/lt(n,1,o.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[e.browser.devicePixelRatio,a,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Dn=function(t,n,r,i,o){var a=t.transform,s=t.lineAtlas,l=Ln(n,a),u="round"===r.layout.get("line-cap"),c=s.getDash(i.from,u),h=s.getDash(i.to,u),p=c.width*o.fromScale,d=h.width*o.toScale;return e.extend(In(t,n,r),{u_patternscale_a:[l/p,-c.height/2],u_patternscale_b:[l/d,-h.height/2],u_sdfgamma:s.width/(256*Math.min(p,d)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:h.y,u_mix:o.t})};function Ln(e,t){return 1/lt(e,1,t.tileZoom)}function On(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Rn=function(e,t,n,r,i){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:(a=i.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:zn(i.paint.get("raster-hue-rotate"))};var o,a};function zn(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}var Nn=function(e,t,n,r,i,o,a,s,l,u){var c=i.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Bn=function(t,n,r,i,o,a,s,l,u,c,h){var p=o.transform;return e.extend(Nn(t,n,r,i,o,a,s,l,u,c),{u_gamma_scale:i?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+h})},Fn=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},Vn=function(t,n,r,i,o,a){return e.extend(function(e,t,n,r){var i=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,h=c*(r.tileID.canonical.x+r.tileID.wrap*u),p=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:t.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/lt(r,1,n.transform.tileZoom),u_pixel_coord_upper:[h>>16,p>>16],u_pixel_coord_lower:[65535&h,65535&p]}}(i,a,r,o),{u_matrix:t,u_opacity:n})},jn={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:Sn,collisionCircle:Sn,debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_maxzoom:new e.Uniform1f(t,n.u_maxzoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform4f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix
1),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1f(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1f(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1f(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}};function Un(t,n){for(var r=t.sort((function(e,t){return e.tileID.isLessThan(t.tileID)?-1:t.tileID.isLessThan(e.tileID)?1:0})),i=0;i<r.length;i++){var o={},a=r[i],s=r.slice(i+1);Gn(a.tileID.wrapped(),a.tileID,s,new e.OverscaledTileID(0,a.tileID.wrap+1,0,0,0),o),a.setMask(o,n)}}function Gn(t,n,r,i,o){for(var a=0;a<r.length;a++){var s=r[a];if(i.isLessThan(s.tileID))break;if(n.key===s.tileID.key)return;if(s.tileID.isChildOf(n)){for(var l=n.children(1/0),u=0;u<l.length;u++)Gn(t,l[u],r.slice(a),i,o);return}}var c=n.overscaledZ-t.overscaledZ,h=new e.CanonicalTileID(c,n.canonical.x-(t.canonical.x<<c),n.canonical.y-(t.canonical.y<<c));o[h.key]=o[h.key]||h}function qn(e,t,n,r,i,o,a,s){for(var l=e.context,u=l.gl,c=i?e.useProgram("collisionCircle"):e.useProgram("collisionBox"),h=0;h<r.length;h++){var p=r[h],d=t.getTile(p),f=d.getBucket(n);if(f){var m=i?s?f.textCollisionCircle:f.iconCollisionCircle:s?f.textCollisionBox:f.iconCollisionBox;if(m){var g=p.posMatrix;0===o[0]&&0===o[1]||(g=e.translatePosMatrix(p.posMatrix,d,o,a)),c.draw(l,i?u.TRIANGLES:u.LINES,ke.disabled,Te.disabled,e.colorModeForRenderPass(),Ee.disabled,kn(g,e.transform,d),n.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,null,e.transform.zoom,null,null,m.collisionVertexBuffer)}}}}function Hn(e,t,n,r,i,o,a){qn(e,t,n,r,!1,i,o,a),qn(e,t,n,r,!0,i,o,a)}var Wn=e.identity(new Float32Array(16));function Zn(t,n,r,i,o,a){var s=e.getAnchorAlignment(t),l=-(s.horizontalAlign-.5)*n,u=-(s.verticalAlign-.5)*r,c=e.evaluateVariableOffset(t,i);return new e.Point((l/o+c[0])*a,(u/o+c[1])*a)}function Yn(t,n,r,i,o,a,s,l,u,c,h){var p=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={};d.clear();for(var g=0;g<p.length;g++){var y=p.get(g),v=t.allowVerticalPlacement&&!y.placedOrientation,_=y.hidden||!y.crossTileID||v?null:i[y.crossTileID];
1if(_){var x=new e.Point(y.anchorX,y.anchorY),b=Xe(x,r?l:s),w=.5+a.cameraToCenterDistance/b.signedDistanceFromCamera*.5,S=o.evaluateSizeForFeature(t.textSizeData,c,y)*w/e.ONE_EM;r&&(S*=t.tilePixelRatio/u);for(var k=_.width,T=_.height,M=Zn(_.anchor,k,T,_.textOffset,_.textBoxScale,S),E=r?Xe(x.add(M),s).point:b.point.add(n?M.rotate(-a.angle):M),C=t.allowVerticalPlacement&&y.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,I=0;I<y.numGlyphs;I++)e.addDynamicAttributes(d,E,C);h&&y.associatedIconIndex>=0&&(m[y.associatedIconIndex]={shiftedAnchor:E,angle:C})}else it(y.numGlyphs,d)}if(h){f.clear();for(var A=t.icon.placedSymbolArray,P=0;P<A.length;P++){var D=A.get(P);if(D.hidden)it(D.numGlyphs,f);else{var L=m[P];if(L)for(var O=0;O<D.numGlyphs;O++)e.addDynamicAttributes(f,L.shiftedAnchor,L.angle);else it(D.numGlyphs,f)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function Xn(t,n,r,i,o,a,s,l,u,c,h,p){for(var d,f,m=t.context,g=m.gl,y=t.transform,v="map"===l,_="map"===u,x=v&&"point"!==r.layout.get("symbol-placement"),b=v&&!_&&!x,w=void 0!==r.layout.get("symbol-sort-key").constantOr(1),S=t.depthModeForSublayer(0,ke.ReadOnly),k=r.layout.get("text-variable-anchor"),T=[],M=0,E=i;M<E.length;M+=1){var C=E[M],I=n.getTile(C),A=I.getBucket(r);if(A){var P=o?A.text:A.icon;if(P&&P.segments.get().length){var D=P.programConfigurations.get(r.id),L=o||A.sdfIcons,O=o?A.textSizeData:A.iconSizeData;d||(d=t.useProgram(L?"symbolSDF":"symbolIcon",D),f=e.evaluateSizeForZoom(O,y.zoom)),m.activeTexture.set(g.TEXTURE0);var R=void 0,z=void 0,N=void 0;if(o)z=I.glyphAtlasTexture,N=g.LINEAR,R=I.glyphAtlasTexture.size;else{var B=1!==r.layout.get("icon-size").constantOr(0)||A.iconsNeedLinear,F=_||0!==y.pitch;z=I.imageAtlasTexture,N=L||t.options.rotating||t.options.zooming||B||F?g.LINEAR:g.NEAREST,R=I.imageAtlasTexture.size}var V=lt(I,1,t.transform.zoom),j=Ze(C.posMatrix,_,v,t.transform,V),U=Ye(C.posMatrix,_,v,t.transform,V),G=k&&A.hasTextData(),q="none"!==r.layout.get("icon-text-fit")&&G&&A.hasIconData();x&&$e(A,C.posMatrix,t,o,j,U,_,c);var H=t.translatePosMatrix(C.posMatrix,I,a,s),W=x||o&&k||q?Wn:j,Z=t.translatePosMatrix(U,I,a,s,!0),Y=L&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),X={program:d,buffers:P,uniformValues:L?Bn(O.kind,f,b,_,t,H,W,Z,o,R,!0):Nn(O.kind,f,b,_,t,H,W,Z,o,R),atlasTexture:z,atlasInterpolation:N,isSDF:L,hasH
vendor: 11,309 bytes, line 1
1alo:Y};if(w)for(var K=0,$=P.segments.get();K<$.length;K+=1){var J=$[K];T.push({segments:new e.SegmentVector([J]),sortKey:J.sortKey,state:X})}else T.push({segments:P.segments,sortKey:0,state:X})}}}w&&T.sort((function(e,t){return e.sortKey-t.sortKey}));for(var Q=0,ee=T;Q<ee.length;Q+=1){var te=ee[Q],ne=te.state;if(ne.atlasTexture.bind(ne.atlasInterpolation,g.CLAMP_TO_EDGE),ne.isSDF){var re=ne.uniformValues;ne.hasHalo&&(re.u_is_halo=1,Kn(ne.buffers,te.segments,r,t,ne.program,S,h,p,re)),re.u_is_halo=0}Kn(ne.buffers,te.segments,r,t,ne.program,S,h,p,ne.uniformValues)}}function Kn(e,t,n,r,i,o,a,s,l){var u=r.context,c=u.gl;i.draw(u,c.TRIANGLES,o,a,s,Ee.disabled,l,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function $n(e,t,n,r,i,o,a){var s,l,u,c,h,p=e.context.gl,d=n.paint.get("fill-pattern"),f=d&&d.constantOr(1),m=n.getCrossfadeParameters();a?(l=f&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=p.LINES):(l=f?"fillPattern":"fill",s=p.TRIANGLES);for(var g=0,y=r;g<y.length;g+=1){var v=y[g],_=t.getTile(v);if(!f||_.patternsLoaded()){var x=_.getBucket(n);if(x){var b=x.programConfigurations.get(n.id),w=e.useProgram(l,b);f&&(e.context.activeTexture.set(p.TEXTURE0),_.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),b.updatePatternPaintBuffers(m));var S=d.constantOr(null);if(S&&_.imageAtlas){var k=_.imageAtlas,T=k.patternPositions[S.to.toString()],M=k.patternPositions[S.from.toString()];T&&M&&b.setConstantPatternPositions(T,M)}var E=e.translatePosMatrix(v.posMatrix,_,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(a){c=x.indexBuffer2,h=x.segments2;var C=[p.drawingBufferWidth,p.drawingBufferHeight];u="fillOutlinePattern"===l&&f?bn(E,e,m,_,C):xn(E,C)}else c=x.indexBuffer,h=x.segments,u=f?_n(E,e,m,_):vn(E);w.draw(e.context,s,i,e.stencilModeForClipping(v),o,Ee.disabled,u,n.id,x.layoutVertexBuffer,c,h,n.paint,e.transform.zoom,b)}}}}function Jn(e,t,n,r,i,o,a){for(var s=e.context,l=s.gl,u=n.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),h=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),d=0,f=r;d<f.length;d+=1){var m=f[d],g=t.getTile(m),y=g.getBucket(n);if(y){var v=y.programConfigurations.get(n.id),_=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",v);c&&(e.context.activeTexture.set(l.TEXTURE0),g.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePatternPaintBuffers(h));var x=u.constantOr(null);if(x&&g.imageAtlas){var b=g.imageAtlas,w=b.patternPositions[x.to.toString()],S=b.patternPositions[x.from.toString()];w&&S&&v.setConstantPatternPositions(w,S)}var k=e.translatePosMatrix(m.posMatrix,g,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),T=n.paint.get("fill-extrusion-vertical-gradient"),M=c?yn(k,e,T,p,m,h,g):gn(k,e,T,p);_.draw(s,s.gl.TRIANGLES,i,o,a,Ee.backCCW,M,n.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,n.paint,e.transform.zoom,v)}}}function Qn(e,t,n,r,i,o){var a=e.context,s=a.gl,l=t.fbo;if(l){var u=e.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var c=function(e,t,n){var r=n.paint.get("hillshade-shadow-color"),i=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color"),a=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(a-=e.transform.angle);var s=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),s),u_image:0,u_latrange:Cn(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),a],u_shadow:r,u_highlight:i,u_accent:o}}(e,t,n);t.maskedBoundsBuffer&&t.maskedIndexBuffer&&t.segments?u.draw(a,s.TRIANGLES,r,i,o,Ee.disabled,c,n.id,t.maskedBoundsBuffer,t.maskedIndexBuffer,t.segments):u.draw(a,s.TRIANGLES,r,i,o,Ee.disabled,c,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function er(t,n,r,i,o,a,s){var l=t.context,u=l.gl,c=n.dem;if(c&&c.data){var h=c.dim,p=c.stride,d=c.getPixels();if(l.activeTexture.set(u.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(p),n.demTexture){var f=n.demTexture;f.update(d,{premultiply:!1}),f.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(l,d,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);l.activeTexture.set(u.TEXTURE0);var m=n.fbo;if(!m){var g=new e.Texture(l,{width:h,height:h,data:null},u.RGBA);g.bind(u.LINEAR,u.CLAMP_TO_EDGE),(m=n.fbo=l.createFramebuffer(h,h)).colorAttachment.set(g.texture)}l.bindFramebuffer.set(m.framebuffer),l.viewport.set([0,0,h,h]),t.useProgram("hillshadePrepare").draw(l,u.TRIANGLES,o,a,s,Ee.disabled,function(t,n,r){var i=n.stride,o=e.create();return e.ortho(o,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(o,o,[0,-e.EXTENT,0]),{u_matrix:o,u_image:1,u_dimension:[i,i],u_zoom:t.overscaledZ,u_maxzoom:r,u_unpack:n.getUnpackVector()}}(n.tileID,c,i),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function tr(t,n,r,i,o){var a=i.paint.get("raster-fade-duration");if(a>0){var s=e.browser.now(),l=(s-t.timeAdded)/a,u=n?(s-n.timeAdded)/a:-1,c=r.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),p=!n||Math.abs(n.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),d=p&&t.refreshedUponExpiration?1:e.clamp(p?l:1-u,0,1);return t.refreshedUponExpiration&&l>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function nr(t,n,r){var i=t.context,o=i.gl,a=r.posMatrix,s=t.useProgram("debug"),l=ke.disabled,u=Te.disabled,c=t.colorModeForRenderPass(),h="$debug";s.draw(i,o.LINE_STRIP,l,u,c,Ee.disabled,Tn(a,e.Color.red),h,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);for(var p=n.getTileByID(r.key).latestRawTileData,d=p&&p.byteLength||0,f=Math.floor(d/1024),m=n.getTile(r).tileSize,g=512/Math.min(m,512),y=function(e,t,n,r){r=r||1;var i,o,a,s,l,u,c,h,p=[];for(i=0,o=e.length;i<o;i++)if(l=rr[e[i]]){for(h=null,a=0,s=l[1].length;a<s;a+=2)-1===l[1][a]&&-1===l[1][a+1]?h=null:(u=t+l[1][a]*r,c=n-l[1][a+1]*r,h&&p.push(h.x,h.y,u,c),h={x:u,y:c});t+=l[0]*r}return p}(r.toString()+" "+f+"kb",50,200*g,5*g),v=new e.StructArrayLayout2i4,_=new e.StructArrayLayout2ui4,x=0;x<y.length;x+=2)v.emplaceBack(y[x],y[x+1]),_.emplaceBack(x,x+1);for(var b=i.createVertexBuffer(v,Bt.members),w=i.createIndexBuffer(_),S=e.SegmentVector.simpleSegment(0,0,v.length/2,v.length/2),k=e.EXTENT/(Math.pow(2,t.transform.zoom-r.overscaledZ)*m*g),T=[],M=-1;M<=1;M++)for(var E=-1;E<=1&&(0!==M||0!==E);E++)T.push([M,E]);for(var C=0;C<T.length;C++){var I=T[C];s.draw(i,o.LINES,l,u,c,Ee.disabled,Tn(e.translate([],a,[k*I[0],k*I[1],0]),e.Color.white),h,b,w,S)}s.draw(i,o.LINES,l,u,c,Ee.disabled,Tn(a,e.Color.black),h,b,w,S),b.destroy(),w.destroy(),S.destroy()}var rr={" ":[16,[]],"!":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'"':[16,[4,21,4,14,-1,-1,12,21,12,14]],"#":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],"%":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],"&":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],"'":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],"(":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],")":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],"*":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],"+":[26,[13,18,13,0,-1,-1,4,9,22,9]],",":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"-":[26,[4,9,22,9]],".":[10,[5,2,4,1,5,0,6,1,5,2]],"/":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],":":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],";":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"<":[24,[20,18,4,9,20,0]],"=":[26,[4,12,22,12,-1,-1,4,6,22,6]],">":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,
vendor: 4,177 bytes, line 1
111,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},ir={symbol:function(t,n,r,i,o){if("translucent"===t.renderPass){var a=Te.disabled,s=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,i,o,a,s){for(var l=n.transform,u="map"===o,c="map"===a,h=0,p=t;h<p.length;h+=1){var d=p[h],f=i.getTile(d),m=f.getBucket(r);if(m&&m.text&&m.text.segments.get().length){var g=m.textSizeData,y=e.evaluateSizeForZoom(g,l.zoom),v=lt(f,1,n.transform.zoom),_=Ze(d.posMatrix,c,u,n.transform,v),x="none"!==r.layout.get("icon-text-fit")&&m.hasIconData();if(y){var b=Math.pow(2,l.zoom-f.tileID.overscaledZ);Yn(m,u,c,s,e.symbolSize,l,_,d.posMatrix,b,y,x)}}}}(i,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&Xn(t,n,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),a,s),0!==r.paint.get("text-opacity").constantOr(1)&&Xn(t,n,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),a,s),n.map.showCollisionBoxes&&(Hn(t,n,r,i,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Hn(t,n,r,i,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,i){if("translucent"===t.renderPass){var o=r.paint.get("circle-opacity"),a=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("
1circle-sort-key").constantOr(1);if(0!==o.constantOr(1)||0!==a.constantOr(1)&&0!==s.constantOr(1)){for(var u=t.context,c=u.gl,h=t.depthModeForSublayer(0,ke.ReadOnly),p=Te.disabled,d=t.colorModeForRenderPass(),f=[],m=0;m<i.length;m++){var g=i[m],y=n.getTile(g),v=y.getBucket(r);if(v){var _=v.programConfigurations.get(r.id),x={programConfiguration:_,program:t.useProgram("circle",_),layoutVertexBuffer:v.layoutVertexBuffer,indexBuffer:v.indexBuffer,uniformValues:wn(t,g,y,r)};if(l)for(var b=0,w=v.segments.get();b<w.length;b+=1){var S=w[b];f.push({segments:new e.SegmentVector([S]),sortKey:S.sortKey,state:x})}else f.push({segments:v.segments,sortKey:0,state:x})}}l&&f.sort((function(e,t){return e.sortKey-t.sortKey}));for(var k=0,T=f;k<T.length;k+=1){var M=T[k],E=M.state,C=E.programConfiguration,I=E.program,A=E.layoutVertexBuffer,P=E.indexBuffer,D=E.uniformValues,L=M.segments;I.draw(u,c.TRIANGLES,h,p,d,Ee.disabled,D,r.id,A,P,L,r.paint,t.transform.zoom,C)}}}},heatmap:function(t,n,r,i){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var o=t.context,a=o.gl,s=t.depthModeForSublayer(0,ke.ReadOnly),l=Te.disabled,u=new Me([a.ONE,a.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){var r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);var i=n.heatmapFbo;if(i)r.bindTexture(r.TEXTURE_2D,i.colorAttachment.get()),e.bindFramebuffer.set(i.framebuffer);else{var o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),i=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4),function e(t,n,r,i){var o=t.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,n.width/4,n.height/4,0,o.RGBA,t.extTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),i.colorAttachment.set(r),t.extTextureHalfFloat&&o.checkFramebufferStatus(o.FRAMEBUFFER)!==o.FRAMEBUFFER_COMPLETE&&(t.extTextureHalfFloat=null,i.colorAttachment.setDirty(),e(t,n,r,i))}(e,t,o,i)}}(o,t,r),o.clear({color:e.Color.transparent});for(var c=0;c<i.length;c++){var h=i[c];if(!n.hasRenderableParent(h)){var p=n.getTile(h),d=p.getBucket(r);if(d){var f=d.programConfigurations.get(r.id),m=t.useProgram("heatmap",f),g=t.transform.zoom;m.draw(o,a.TRIANGLES,s,l,u,Ee.disabled,En(h.posMatrix,p,g,r.paint.get("heatmap-intensity")),r.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,r.paint,t.transform.zoom,f)}}}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){var r=t.context,i=r.gl,o=n.heatmapFbo;if(o){r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1);var a=n.colorRampTexture;a||(a=n.colorRampTexture=new e.Texture(r,n.colorRamp,i.RGBA)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,i.TRIANGLES,ke.disabled,Te.disabled,t.colorModeForRenderPass(),Ee.disabled,function(t,n,r,i){var o=e.create();e.ortho(o,0,t.width,t.height,0,0,1);var a=t.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:r,u_color_ramp:i,u_opacity:n.paint.get("heatmap-opacity")}}(t,n,0,1),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}}(t,r))},line:function(t,n,r,i){if("translucent"===t.renderPass){var o=r.paint.get("line-opacity"),a=r.paint.get("line-width");if(0!==o.constantOr(1)&&0!==a.constantOr(1)){var s=t.depthModeForSublayer(0,ke.ReadOnly),l=t.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),h=c.constantOr(1),p=r.paint.get("line-gradient"),d=r.getCrossfadeParameters(),f=u?"lineSDF":h?"linePattern":p?"lineGradient":"line",m=t.context,g=m.gl,y=!0;if(p){m.activeTexture.set(g.TEXTURE0);var v=r.gradientTexture;if(!r.gradient)return;v||(v=r.gradientTexture=new e.Texture(m,r.gradient,g.RGBA)),v.bind(g.LINEAR,g.CLAMP_TO_EDGE)}for(var _=0,x=i;_<x.length;_+=1){var b=x[_],w=n.getTile(b);if(!h||w.patternsLoaded()){var S=w.getBucket(r);
vendor: 7,432 bytes, line 1
1if(S){var k=S.programConfigurations.get(r.id),T=t.context.program.get(),M=t.useProgram(f,k),E=y||M.program!==T,C=c.constantOr(null);if(C&&w.imageAtlas){var I=w.imageAtlas,A=I.patternPositions[C.to.toString()],P=I.patternPositions[C.from.toString()];A&&P&&k.setConstantPatternPositions(A,P)}var D=u?Dn(t,w,r,u,d):h?Pn(t,w,r,d):p?An(t,w,r):In(t,w,r);u&&(E||t.lineAtlas.dirty)?(m.activeTexture.set(g.TEXTURE0),t.lineAtlas.bind(m)):h&&(m.activeTexture.set(g.TEXTURE0),w.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),k.updatePatternPaintBuffers(d)),M.draw(m,g.TRIANGLES,s,t.stencilModeForClipping(b),l,Ee.disabled,D,r.id,S.layoutVertexBuffer,S.indexBuffer,S.segments,r.paint,t.transform.zoom,k),y=!1}}}}}},fill:function(t,n,r,i){var o=r.paint.get("fill-color"),a=r.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=t.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),u=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===u){var c=t.depthModeForSublayer(1,"opaque"===t.renderPass?ke.ReadWrite:ke.ReadOnly);$n(t,n,r,i,c,s,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){var h=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,ke.ReadOnly);$n(t,n,r,i,h,s,!0)}}},"fill-extrusion":function(e,t,n,r){var i=n.paint.get("fill-extrusion-opacity");if(0!==i&&"translucent"===e.renderPass){var o=new ke(e.context.gl.LEQUAL,ke.ReadWrite,e.depthRangeFor3D);if(1!==i||n.paint.get("fill-extrusion-pattern").constantOr(1))Jn(e,t,n,r,o,Te.disabled,Me.disabled),Jn(e,t,n,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var a=e.colorModeForRenderPass();Jn(e,t,n,r,o,Te.disabled,a)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var i=e.context,o=t.getSource().maxzoom,a=e.depthModeForSublayer(0,ke.ReadOnly),s=Te.disabled,l=e.colorModeForRenderPass(),u=0,c=r;u<c.length;u+=1){var h=c[u],p=t.getTile(h);p.needsHillshadePrepare&&"offscreen"===e.renderPass?er(e,p,n,o,a,s,l):"translucent"===e.renderPass&&Qn(e,p,n,a,s,l)}i.viewport.set([0,0,e.width,e.height])}},raster:function(e,t,n,r){if("translucent"===e.renderPass&&0!==n.paint.get("raster-opacity"))for(var i=e.context,o=i.gl,a=t.getSource(),s=e.useProgram("raster"),l=Te.disabled,u=e.colorModeForRenderPass(),c=r.length&&r[0].overscaledZ,h=!e.options.moving,p=0,d=r;p<d.length;p+=1){var f=d[p],m=e.depthModeForSublayer(f.overscaledZ-c,1===n.paint.get("raster-opacity")?ke.ReadWrite:ke.ReadOnly,o.LESS),g=t.getTile(f),y=e.transform.calculatePosMatrix(f.toUnwrapped(),h);g.registerFadeDuration(n.paint.get("raster-fade-duration"));var v=t.findLoadedParent(f,0),_=tr(g,v,t,n,e.transform),x=void 0,b=void 0,w="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;i.activeTexture.set(o.TEXTURE0),g.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(o.TEXTURE1),v?(v.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),x=Math.pow(2,v.tileID.overscaledZ-g.tileID.overscaledZ),b=[g.tileID.canonical.x*x%1,g.tileID.canonical.y*x%1]):g.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var S=Rn(y,b||[0,0],x||1,_,n);a instanceof P?s.draw(i,o.TRIANGLES,m,l,u,Ee.disabled,S,n.id,a.boundsBuffer,e.quadTriangleIndexBuffer,a.boundsSegments):g.maskedBoundsBuffer&&g.maskedIndexBuffer&&g.segments?s.draw(i,o.TRIANGLES,m,l,u,Ee.disabled,S,n.id,g.maskedBoundsBuffer,g.maskedIndexBuffer,g.segments,n.paint,e.transform.zoom):s.draw(i,o.TRIANGLES,m,l,u,Ee.disabled,S,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),i=n.paint.get("background-opacity");if(0!==i){var o=e.context,a=o.gl,s=e.transform,l=s.tileSize,u=n.paint.get("background-pattern");if(!e.isPatternMissing(u)){var c=!u&&1===r.a&&1===i&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===c){var h=Te.disabled,p=e.depthModeForSublayer(0,"opaque"===c?ke.ReadWrite:ke.ReadOnly),d=e.colorModeForRenderPass(),f=e.useProgram(u?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});u&&(o.activeTexture.set(a.TEXTURE0),e.imageManager.bind(e.context));for(var g=n.getCrossfadeParameters(),y=0,v=m;y<v.length;y+=1){var _=v[y],x=e.transform.calculatePosMatrix(_.toUnwrapped()),b=u?Vn(x,i,e,u,{tileID:_,tileSize:l},g):Fn(x,i,r);f.draw(o,a.TRIANGLES,p,h,d,Ee.disabled,b,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)nr(e,t,n[r])},custom:function(e,t,n){var r=e.context,i=n.implementation;if("offscreen"===e.renderPass){var o=i.prerender;o&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),o.call(i,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Te.disabled);var a="3d"===i.renderingMode?new ke(e.context.gl.LEQUAL,ke.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,ke.ReadOnly);r.setDepthMode(a),i.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},or=function(t,n){this.context=new Ce(t),this.transform=n,this._tileTextures={},this.setup(),this.numSublayers=Ie.maxUnderzooming+Ie.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new e.ProgramConfiguration,this.crossTileSymbolIndex=new Lt};function ar(e,t){if(e.y>t.y){var n=e;e=t,t=n}return{x0:e.x,y0:e.y,x1:t.x,y1:t.y,dx:t.x-e.x,dy:t.y-e.y}}function sr(e,t,n,r,i){var o=Math.max(n,Math.floor(t.y0)),a=Math.min(r,Math.ceil(t.y1));if(e.x0===t.x0&&e.y0===t.y0?e.x0+t.dy/e.dy*e.dx<t.x1:e.x1-t.dy/e.dy*e.dx<t.x0){var s=e;e=t,t=s}for(var l=e.dx/e.dy,u=t.dx/t.dy,c=e.dx>0,h=t.dx<0,p=o;p<a;p++){var d=l*Math.max(0,Math.min(e.dy,p+c-e.y0))+e.x0,f=u*Math.max(0,Math.min(t.dy,p+h-t.y0))+t.x0;i(Math.floor(f),Math.ceil(d),p)}}function lr(e,t,n,r,i,o){var a,s=ar(e,t),l=ar(t,n),u=ar(n,e);s.dy>l.dy&&(a=s,s=l,l=a),s.dy>u.dy&&(a=s,s=u,u=a),l.dy>u.dy&&(a=l,l=u,u=a),s.dy&&sr(u,s,r,i,o),l.dy&&sr(u,l,r,i,o)}or.prototype.resize=function(t,n){var r=this.context.gl;if(this.width=t*e.browser.devicePixelRatio,this.height=n*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var i=0,o=this.style._order;i<o.length;i+=1){var a=o[i];this.style._layers[a].resize()}this.depthRbo&&(r.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},or.prototype.setup=function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,Bt.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,Bt.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var i=new e.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(e.EXTENT,0,e.EXTENT,0),i.emplaceBack(0,e.EXTENT,0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(i,e.rasterBoundsAttributes.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var o=new e.StructArrayLayout2i4;
vendor: 5,502 bytes, line 1
1o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,Bt.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var a=new e.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(a);var s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);var l=this.context.gl;this.stencilClearMode=new Te({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},or.prototype.clearStencil=function(){var t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,ke.disabled,this.stencilClearMode,Me.disabled,Ee.disabled,Mn(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},or.prototype._renderTileClippingMasks=function(e,t){if(this.currentStencilSource!==e.source&&e.isTileClipped()&&t&&t.length){this.currentStencilSource=e.source;var n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Me.disabled),n.setDepthMode(ke.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=t;o<a.length;o+=1){var s=a[o],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(n,r.TRIANGLES,ke.disabled,new Te({func:r.ALWAYS,mask:0},l,255,r.KEEP,r.KEEP,r.REPLACE),Me.disabled,Ee.disabled,Mn(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},or.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Te({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},or.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Te({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},or.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new Me([t.CONSTANT_COLOR,t.ONE],new e.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Me.unblended:Me.alphaBlended},or.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return ke.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new ke(n||this.context.gl.LEQUAL,t,[r,r])},or.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},or.prototype.render=function(t,n){this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();var r=this.style._order,i=this.style.sourceCaches;for(var o in i){var a=i[o];a.used&&a.prepare(this.context)}var s={},l={},u={};for(var c in i){var h=i[c];s[c]=h.getVisibleCoordinates(),l[c]=s[c].slice().reverse(),u[c]=h.getVisibleCoordinates(!0).reverse()}for(var p in i){var d=i[p],f=d.getSource();if("raster"===f.type||"raster-dem"===f.type){for(var m=[],g=0,y=s[p];g<y.length;g+=1){var v=y[g];m.push(d.getTile(v))}Un(m,this.context)}}this.opaquePassCutoff=1/0;for(var _=0;_<r.length;_++){var x=r[_];if(this.style._layers[x].is3D()){this.opaquePassCutoff=_;break}}this.renderPass="offscreen",this.depthRboNeedsClear=!0;for(var b=0,w=r;b<w.length;b+=1){var S=w[b],k=this.style._layers[S];if(k.hasOffscreenPass()&&!k.isHidden(this.transform.zoom)){var T=l[k.source];("custom"===k.type||T.length)&&this.renderLayer(this,i[k.source],k,T)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){var M=this.style._layers[r[this.currentLayer]],E=i[M.source],C=s[M.source];this._renderTileClippingMasks(M,C),this.renderLayer(this,E,M,C)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){var I=this.style._layers[r[this.currentLayer]],A=i[I.source],P=("symbol"===I.type?u:l)[I.source];this._renderTileClippingMasks(I,s[I.source]),this.renderLayer(this,A,I,P)}if(this.options.showTileBoundaries)for(var D in i){ir.debug(this,i[D],s[D]);break}this.context.setDefault()},or.prototype.setupOffscreenDepthRenderbuffer=function(){var e=this.context;this.depthRbo||(this.depthRbo=e.createRenderbuffer(e.gl.DEPTH_COMPONENT16,this.width,this.height))},or.prototype.renderLayer=function(e,t,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,ir[n.type](e,t,n,r,this.style.placement.variableOffsets))},or.prototype.translatePosMatrix=function(t,n,r,i,o){if(!r[0]&&!r[1])return t;var a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){var s=Math.sin(a),l=Math.cos(a);r=[r[0]*l-r[1]*s,r[0]*s+r[1]*l]}var u=[o?r[0]:lt(n,r[0],this.transform.zoom),o?r[1]:lt(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return e.translate(c,t,u),c},or.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];
vendor: 14,912 bytes, line 1
1t?t.push(e):this._tileTextures[e.size[0]]=[e]},or.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},or.prototype.isPatternMissing=function(e){if(!e)return!1;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n},or.prototype.useProgram=function(e,t){void 0===t&&(t=this.emptyProgramConfiguration),this.cache=this.cache||{};var n=""+e+(t.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new fn(this.context,pn[e],t,jn[e],this._showOverdrawInspector)),this.cache[n]},or.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},or.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)};var ur=function(t,n,r){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===r||r,this._minZoom=t||0,this._maxZoom=n||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},cr={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ur.prototype.clone=function(){var e=new ur(this._minZoom,this._maxZoom,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._calcMatrices(),e},cr.minZoom.get=function(){return this._minZoom},cr.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},cr.maxZoom.get=function(){return this._maxZoom},cr.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},cr.renderWorldCopies.get=function(){return this._renderWorldCopies},cr.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},cr.worldSize.get=function(){return this.tileSize*this.scale},cr.centerPoint.get=function(){return this.size._div(2)},cr.size.get=function(){return new e.Point(this.width,this.height)},cr.bearing.get=function(){return-this.angle/Math.PI*180},cr.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},cr.pitch.get=function(){return this._pitch/Math.PI*180},cr.pitch.set=function(t){var n=e.clamp(t,0,60)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},cr.fov.get=function(){return this._fov/Math.PI*180},cr.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},cr.zoom.get=function(){return this._zoom},cr.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},cr.center.get=function(){return this._center},cr.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},ur.prototype.coveringZoomLevel=function(e){return(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize))},ur.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),i=this.pointCoordinate(new e.Point(this.width,0)),o=this.pointCoordinate(new e.Point(this.width,this.height)),a=this.pointCoordinate(new e.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),l=Math.floor(Math.max(r.x,i.x,o.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t));return n},ur.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);var i=e.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=new e.Point(o*i.x-.5,o*i.y-.5);return function(t,n,r,i){void 0===i&&(i=!0);var o=1<<t,a={};function s(n,s,l){var u,c,h,p;if(l>=0&&l<=o)for(u=n;u<s;u++)c=Math.floor(u/o),h=(u%o+o)%o,0!==c&&!0!==i||(p=new e.OverscaledTileID(r,c,t,h,l),a[p.key]=p)}var l=n.map((function(t){return new e.Point(t.x,t.y)._mult(o)}));return lr(l[0],l[1],l[2],0,o,s),lr(l[2],l[3],l[0],0,o,s),Object.keys(a).map((function(e){return a[e]}))}(n,[this.pointCoordinate(new e.Point(0,0)),this.pointCoordinate(new e.Point(this.width,0)),this.pointCoordinate(new e.Point(this.width,this.height)),this.pointCoordinate(new e.Point(0,this.height))],t.reparseOverscaled?r:n,this._renderWorldCopies).sort((function(e,t){return a.dist(e.canonical)-a.dist(t.canonical)}))},ur.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},cr.unmodified.get=function(){return this._unmodified},ur.prototype.zoomScale=function(e){return Math.pow(2,e)},ur.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},ur.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)},ur.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},cr.point.get=function(){return this.project(this.center)},ur.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),a=new e.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},ur.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},ur.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},ur.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},ur.prototype.coordinateLocation=function(e){return e.toLngLat()},ur.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var i=n[3],o=r[3],a=n[0]/i,s=r[0]/o,l=n[1]/i,u=r[1]/o,c=n[2]/i,h=r[2]/o,p=c===h?0:(0-c)/(h-c);return new e.MercatorCoordinate(e.number(a,s,p)/this.worldSize,e.number(l,u,p)/this.worldSize)},ur.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},ur.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},ur.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},ur.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ur.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=t.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*t.wrap,l=e.identity(new Float64Array(16));return e.translate(l,l,[s*a,o.y*a,0]),e.scale(l,l,[a/e.EXTENT,a/e.EXTENT,1]),e.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),i[r]=new Float32Array(l),i[r]},ur.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ur.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,i,o=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;o=e.mercatorYfromLat(h[1])*this.worldSize,t=(a=e.mercatorYfromLat(h[0])*this.worldSize)-o<u.y?u.y/(a-o):0}if(this.lngRange){var p=this.lngRange;s=e.mercatorXfromLng(p[0])*this.worldSize,n=(l=e.mercatorXfromLng(p[1])*this.worldSize)-s<u.x?u.x/(l-s):0}var d=this.point,f=Math.max(n||0,t||0);if(f)return this.center=this.unproject(new e.Point(n?(l+s)/2:d.x,t?(a+o)/2:d.y)),this.zoom+=this.scaleZoom(f),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=d.y,g=u.y/2;m-g<o&&(i=o+g),m+g>a&&(i=a-g)}if(this.lngRange){var y=d.x,v=u.x/2;y-v<s&&(r=s+v),y+v>l&&(r=l-v)}void 0===r&&void 0===i||(this.center=this.unproject(new e.Point(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=c,this._constraining=!1}},ur.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var t=this._fov/2,n=Math.PI/2+this._pitch,r=Math.sin(t)*this.cameraToCenterDistance/Math.sin(Math.PI-n-t),i=this.point,o=i.x,a=i.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*r+this.cameraToCenterDistance),l=this.height/50,u=new Float64Array(16);e.perspective(u,this._fov,this.width/this.height,l,s),e.scale(u,u,[1,-1,1]),e.translate(u,u,[0,0,-this.cameraToCenterDistance]),e.rotateX(u,u,this._pitch),e.rotateZ(u,u,this.angle),e.translate(u,u,[-o,-a,0]),this.mercatorMatrix=e.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),e.scale(u,u,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u;var c=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),f=o-Math.round(o)+p*c+d*h,m=a-Math.round(a)+p*h+d*c,g=new Float64Array(u);if(e.translate(g,g,[f>.5?f-1:f,m>.5?m-1:m,0]),this.alignedProjMatrix=g,u=e.create(),e.scale(u,u,[this.width/2,-this.height/2,1]),e.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=e.create(),e.scale(u,u,[1,-1,1]),e.translate(u,u,[-1,-1,0]),e.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ur.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},ur.prototype.getCameraPoint=function(){var t=this._pitch,n=Math.tan(t)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,n))},ur.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,l=t;s<l.length;s+=1){var u=l[s];r=Math.min(r,u.x),i=Math.min(i,u.y),o=Math.max(o,u.x),a=Math.max(a,u.y)}return[new e.Point(r,i),new e.Point(o,i),new e.Point(o,a),new e.Point(r,a),new e.Point(r,i)]},Object.defineProperties(ur.prototype,cr);var hr=function(t){var n,r,i,o;this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,i=null,o=function(){i=null,r&&(n(),i=setTimeout(o,300),r=!1)},function(){return r=!0,i||o(),i})};hr.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},hr.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},hr.prototype.getHashString=function(t){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(n.lng*o)/o,s=Math.round(n.lat*o)/o,l=this._map.getBearing(),u=this._map.getPitch(),c="";if(c+=t?"/"+a+"/"+s+"/"+r:r+"/"+s+"/"+a,(l||u)&&(c+="/"+Math.round(10*l)/10),u&&(c+="/"+Math.round(u)),this._hashName){var h=this._hashName,p=!1,d=e.window.location.hash.slice(1).split("&").map((function(e){var t=e.split("=")[0];return t===h?(p=!0,t+"="+c):e})).filter((function(e){return e}));return p||d.push(h+"="+c),"#"+d.join("&")}return"#"+c},hr.prototype._getCurrentHash=function(){var t=this,n=e.window.location.hash.replace("#","");if(this._hashName){var r=n.split("&").map((function(e){return e.split("=")})).find((function(e){return e[0]===t._hashName}));return(r&&r[1]||"").split("/")}return n.split("/")},hr.prototype._onHashChange=function(){var e=this._getCurrentHash();return e.length>=3&&!e.some((function(e){return isNaN(e)}))&&(this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:+(e[3]||0),pitch:+(e[4]||0)}),!0)},hr.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{e.window.history.replaceState(e.window.history.state,"",t)}catch(e){}};var pr=function(t){function r(r,i,o,a){void 0===a&&(a={});var s=n.mousePos(i.getCanvasContainer(),o),l=i.unproject(s);t.call(this,r,e.extend({point:s,lngLat:l,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i}t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,i),r}(e.Event),dr=function(t){function r(r,i,o){var a=n.touchPos(i.getCanvasContainer(),o),s=a.map((function(e){return i.unproject(e)})),l=a.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new e.Point(0,0)),u=i.unproject(l);t.call(this,r,{points:a,point:l,lngLats:s,lngLat:u,originalEvent:o}),this._defaultPrevented=!1}t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r;var i={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented}
vendor: 1,803 bytes, line 1
1,Object.defineProperties(r.prototype,i),r}(e.Event),fr=function(e){function t(t,n,r){e.call(this,t,{originalEvent:r}),this._defaultPrevented=!1}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={defaultPrevented:{configurable:!0}};return t.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,n),t}(e.Event),mr=function(t){this._map=t,this._el=t.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};mr.prototype.setZoomRate=function(e){this._defaultZoomRate=e},mr.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},mr.prototype.isEnabled=function(){return!!this._enabled},mr.prototype.isActive=function(){return!!this._active},mr.prototype.isZooming=function(){return!!this._zooming},mr.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},mr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},mr.prototype.onWheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this.isActive()||this._start(t)),t.preventDefault()}}
vendor: 11,512 bytes, line 1
1,mr.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(e)},mr.prototype._start=function(t){if(this._delta){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new e.Event("movestart",{originalEvent:t})),this._map.fire(new e.Event("zoomstart",{originalEvent:t}))),this._finishTimeout&&clearTimeout(this._finishTimeout);var r=n.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},mr.prototype._onScrollFrame=function(){var t=this;if(this._frameId=null,this.isActive()){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);var o="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a="number"==typeof this._targetZoom?this._targetZoom:n.zoom,s=this._startZoom,l=this._easing,u=!1;if("wheel"===this._type&&s&&l){var c=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),h=l(c);n.zoom=e.number(s,a,h),c<1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):u=!0}else n.zoom=a,u=!0;n.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new e.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new e.Event("zoom",{originalEvent:this._lastWheelEvent})),u&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._map.fire(new e.Event("zoomend",{originalEvent:t._lastWheelEvent})),t._map.fire(new e.Event("moveend",{originalEvent:t._lastWheelEvent})),delete t._targetZoom}),200))}},mr.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,i=(e.browser.now()-r.start)/r.duration,o=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=e.bezier(a,s,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n};var gr=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=n.clickTolerance||1,e.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};gr.prototype.isEnabled=function(){return!!this._enabled},gr.prototype.isActive=function(){return!!this._active},gr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},gr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},gr.prototype.onMouseDown=function(t){this.isEnabled()&&t.shiftKey&&0===t.button&&(e.window.document.addEventListener("mousemove",this._onMouseMove,!1),e.window.document.addEventListener("keydown",this._onKeyDown,!1),e.window.document.addEventListener("mouseup",this._onMouseUp,!1),n.disableDrag(),this._startPos=this._lastPos=n.mousePos(this._el,t),this._active=!0)},gr.prototype._onMouseMove=function(e){var t=n.mousePos(this._el,e);if(!(this._lastPos.equals(t)||!this._box&&t.dist(this._startPos)<this._clickTolerance)){var r=this._startPos;this._lastPos=t,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var i=Math.min(r.x,t.x),o=Math.max(r.x,t.x),a=Math.min(r.y,t.y),s=Math.max(r.y,t.y);n.setTransform(this._box,"translate("+i+"px,"+a+"px)"),this._box.style.width=o-i+"px",this._box.style.height=s-a+"px"}},gr.prototype._onMouseUp=function(t){if(0===t.button){var r=this._startPos,i=n.mousePos(this._el,t);this._finish(),n.suppressClick(),r.x===i.x&&r.y===i.y?this._fireEvent("boxzoomcancel",t):this._map.fitScreenCoordinates(r,i,this._map.getBearing(),{linear:!0}).fire(new e.Event("boxzoomend",{originalEvent:t}))}},gr.prototype._onKeyDown=function(e){27===e.keyCode&&(this._finish(),this._fireEvent("boxzoomcancel",e))},gr.prototype._finish=function(){this._active=!1,e.window.document.removeEventListener("mousemove",this._onMouseMove,!1),e.window.document.removeEventListener("keydown",this._onKeyDown,!1),e.window.document.removeEventListener("mouseup",this._onMouseUp,!1),this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},gr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var yr=e.bezier(0,0,.25,1),vr=function(t,n){this._map=t,this._el=n.element||t.getCanvasContainer(),this._state="disabled",this._button=n.button||"right",this._bearingSnap=n.bearingSnap||0,this._pitchWithRotate=!1!==n.pitchWithRotate,e.bindAll(["onMouseDown","_onMouseMove","_onMouseUp","_onBlur","_onDragFrame"],this)};vr.prototype.isEnabled=function(){return"disabled"!==this._state},vr.prototype.isActive=function(){return"active"===this._state},vr.prototype.enable=function(){this.isEnabled()||(this._state="enabled")},vr.prototype.disable=function(){if(this.isEnabled())switch(this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend"),this._pitchWithRotate&&this._fireEvent("pitchend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},vr.prototype.onMouseDown=function(t){if("enabled"===this._state){var r="touchstart"===t.type;if(r)this._startTime=Date.now();else if("right"===this._button){if(this._eventButton=n.mouseButton(t),this._eventButton!==(t.ctrlKey?0:2))return}else{if(t.ctrlKey||0!==n.mouseButton(t))return;this._eventButton=0}n.disableDrag(),r?(e.window.document.addEventListener("touchmove",this._onMouseMove,{capture:!0}),e.window.document.addEventListener("touchend",this._onMouseUp)):(e.window.document.addEventListener("mousemove",this._onMouseMove,{capture:!0}),e.window.document.addEventListener("mouseup",this._onMouseUp)),e.window.addEventListener("blur",this._onBlur),this._state="pending",this._inertia=[[e.browser.now(),this._map.getBearing()]],this._startPos=this._prevPos=this._lastPos=n.mousePos(this._el,t),this._center=this._map.transform.centerPoint,t.preventDefault()}},vr.prototype._onMouseMove=function(e){var t=n.mousePos(this._el,e);this._lastPos.equals(t)||(this._lastMoveEvent=e,this._lastPos=t,"pending"===this._state&&(this._state="active",this._fireEvent("rotatestart",e),this._fireEvent("movestart",e),this._pitchWithRotate&&this._fireEvent("pitchstart",e)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},vr.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var n=this._map.transform,r=this._prevPos,i=this._lastPos,o=.8*(r.x-i.x),a=-.5*(r.y-i.y),s=n.bearing-o,l=n.pitch-a,u=this._inertia,c=u[u.length-1];this._drainInertiaBuffer(),u.push([e.browser.now(),this._map._normalizeBearing(s,c[1])]);var h=n.bearing;if(n.bearing=s,this._pitchWithRotate){var p=n.pitch;n.pitch=l,n.pitch!==p&&this._fireEvent("pitch",t)}n.bearing!==h&&this._fireEvent("rotate",t),this._fireEvent("move",t),delete this._lastMoveEvent,this._prevPos=this._lastPos}},vr.prototype._onMouseUp=function(e){if("touchend"===e.type&&this._startPos===this._lastPos&&Date.now()-this._startTime<300&&this._el.click(),n.mouseButton(e)===this._eventButton)switch(this._state){case"active":this._state="enabled",n.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(e);break;case"pending":this._state="enabled",this._unbind()}},vr.prototype._onBlur=function(e){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend",e),this._pitchWithRotate&&this._fireEvent("pitchend",e),this._fireEvent("moveend",e);break;case"pending":this._state="enabled",this._unbind()}},vr.prototype._unbind=function(){e.window.document.removeEventListener("mousemove",this._onMouseMove,{capture:!0}),e.window.document.removeEventListener("mouseup",this._onMouseUp),e.window.document.removeEventListener("touchmove",this._onMouseMove,{capture:!0}),e.window.document.removeEventListener("touchend",this._onMouseUp),e.window.removeEventListener("blur",this._onBlur),n.enableDrag()},vr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._lastPos},vr.prototype._inertialRotate=function(e){var t=this;this._fireEvent("rotateend",e),this._drainInertiaBuffer();var n=this._map,r=n.getBearing(),i=this._inertia,o=function(){Math.abs(r)<t._bearingSnap?n.resetNorth({noMoveStart:!0},{originalEvent:e}):t._fireEvent("moveend",e),t._pitchWithRotate&&t._fireEvent("pitchend",e)};if(i.length<2)o();else{var a=i[0],s=i[i.length-1],l=i[i.length-2],u=n._normalizeBearing(r,l[1]),c=s[1]-a[1],h=c<0?-1:1,p=(s[0]-a[0])/1e3;if(0!==c&&0!==p){var d=Math.abs(c*(.25/p));d>180&&(d=180);var f=d/180;u+=h*d*(f/2),Math.abs(n._normalizeBearing(u,0))<this._bearingSnap&&(u=n._normalizeBearing(0,u)),n.rotateTo(u,{duration:1e3*f,easing:yr,noMoveStart:!0},{originalEvent:e})}else o()}},vr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},vr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>0&&n-t[0][0]>160;)t.shift()};var _r=e.bezier(0,0,.3,1),xr=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._state="disabled",this._clickTolerance=n.clickTolerance||1,e.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};xr.prototype.isEnabled=function(){return"disabled"!==this._state},xr.prototype.isActive=function(){return"active"===this._state},xr.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},xr.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},xr.prototype.onMouseDown=function(t){"enabled"===this._state&&(t.ctrlKey||0!==n.mouseButton(t)||(n.addEventListener(e.window.document,"mousemove",this._onMove,{capture:!0}),n.addEventListener(e.window.document,"mouseup",this._onMouseUp),this._start(t)))},xr.prototype.onTouchStart=function(t){this.isEnabled()&&(t.touches&&t.touches.length>1&&("pending"===this._state||"active"===this._state)||(n.addEventListener(e.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),n.addEventListener(e.window.document,"touchend",this._onTouchEnd),this._start(t)))},xr.prototype._start=function(t){e.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=n.mousePos(this._el,t),this._startTouch=this._lastTouch=e.window.TouchEvent&&t instanceof e.window.TouchEvent?n.touchPos(this._el,t):null,this._inertia=[[e.browser.now(),this._startPos]]},xr.prototype._touchesMatch=function(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))},xr.prototype._onMove=function(t){t.preventDefault();
vendor: 5,957 bytes, line 1
1var r=e.window.TouchEvent&&t instanceof e.window.TouchEvent?n.touchPos(this._el,t):null,i=n.mousePos(this._el,t);(r?this._touchesMatch(this._lastTouch,r):this._lastPos.equals(i))||"pending"===this._state&&i.dist(this._mouseDownPos)<this._clickTolerance||(this._lastMoveEvent=t,this._lastPos=i,this._lastTouch=r,this._drainInertiaBuffer(),this._inertia.push([e.browser.now(),this._lastPos]),"pending"===this._state&&(this._state="active",this._shouldStart=!0),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},xr.prototype._onDragFrame=function(){this._frameId=null;var e=this._lastMoveEvent;if(e)if(this._map.touchZoomRotate.isActive())this._abort(e);else if(this._shouldStart&&(this._fireEvent("dragstart",e),this._fireEvent("movestart",e),this._shouldStart=!1),this.isActive()){var t=this._map.transform;t.setLocationAtPoint(t.pointLocation(this._prevPos),this._lastPos),this._fireEvent("drag",e),this._fireEvent("move",e),this._prevPos=this._lastPos,delete this._lastMoveEvent}},xr.prototype._onMouseUp=function(e){if(0===n.mouseButton(e))switch(this._state){case"active":this._state="enabled",n.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(e);break;case"pending":this._state="enabled",this._unbind()}},xr.prototype._onTouchEnd=function(e){if(e.touches&&0!==e.touches.length)switch(this._state){case"pending":case"active":break;case"enabled":this.onTouchStart(e)}else switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._inertialPan(e);break;case"pending":this._state="enabled",this._unbind();break;case"enabled":this._unbind()}},xr.prototype._abort=function(t){switch(this._state){case"active":this._state="enabled",this._shouldStart||(this._fireEvent("dragend",t),this._fireEvent("moveend",t)),this._unbind(),this._deactivate(),e.window.TouchEvent&&t instanceof e.window.TouchEvent&&t.touches.length>1&&n.addEventListener(e.window.document,"touchend",this._onTouchEnd);break;case"pending":this._state="enabled",this._unbind();break;case"enabled":this._unbind()}},xr.prototype._onBlur=function(e){this._abort(e)},xr.prototype._unbind=function(){n.removeEventListener(e.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),n.removeEventListener(e.window.document,"touchend",this._onTouchEnd),n.removeEventListener(e.window.document,"mousemove",this._onMove,{capture:!0}),n.removeEventListener(e.window.document,"mouseup",this._onMouseUp),n.removeEventListener(e.window,"blur",this._onBlur)},xr.prototype._deactivate=function(){this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._mouseDownPos,delete this._lastPos,delete this._startTouch,delete this._lastTouch,delete this._shouldStart},xr.prototype._inertialPan=function(e){this._fireEvent("dragend",e),this._drainInertiaBuffer();var t=this._inertia;if(t.length<2)this._fireEvent("moveend",e);else{var n=t[t.length-1],r=t[0],i=n[1].sub(r[1]),o=(n[0]-r[0])/1e3;if(0===o||n[1].equals(r[1]))this._fireEvent("moveend",e);else{var a=i.mult(.3/o),s=a.mag();s>1400&&(s=1400,a._unit()._mult(s));var l=s/750,u=a.mult(-l/2);this._map.panBy(u,{duration:1e3*l,easing:_r,noMoveStart:!0},{originalEvent:e})}}},xr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},xr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>0&&n-t[0][0]>160;)t.shift()};var br=function(t){this._map=t,this._el=t.getCanvasContainer(),e.bindAll(["_onKeyDown"],this)};function wr(e){return e*(2-e)}br.prototype.isEnabled=function(){return!!this._enabled},br.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},br.prototype.disable=function(){this.isEnabled()&&(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},br.prototype._onKeyDown=function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t=0,n=0,r=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(o=1,e.preventDefault());break;default:return}var a=this._map,s=a.getZoom(),l={duration:300,delayEndEvents:500,easing:wr,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+15*n,pitch:a.getPitch()+10*r,offset:[100*-i,100*-o],center:a.getCenter()};a.easeTo(l,{originalEvent:e})}};var Sr=function(t){this._map=t,e.bindAll(["_onDblClick","_onZoomEnd"],this)};Sr.prototype.isEnabled=function(){return!!this._enabled},Sr.prototype.isActive=function(){return!!this._active},Sr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Sr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Sr.prototype.onTouchStart=function(e){var t=this;if(this.isEnabled()&&!(e.points.length>1))if(this._tapped){var n=e.points[0],r=this._tappedPoint;if(r&&r.dist(n)<=30){e.originalEvent.preventDefault();var i=function(){t._tapped&&t._zoom(e),t._map.off("touchcancel",o),t._resetTapped()},o=function(){t._map.off("touchend",i),t._resetTapped()};this._map.once("touchend",i),this._map.once("touchcancel",o)}else this._resetTapped()}else this._tappedPoint=e.points[0],this._tapped=setTimeout((function(){t._tapped=null,t._tappedPoint=null}),300)},Sr.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},Sr.prototype.onDblClick=function(e){this.isEnabled()&&(e.originalEvent.preventDefault(),this._zoom(e))},Sr.prototype._zoom=function(e){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(e.originalEvent.shiftKey?-1:1),{around:e.lngLat},e)},Sr.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};
vendor: 14,960 bytes, line 1
1var kr=e.bezier(0,0,.15,1),Tr=function(t){this._map=t,this._el=t.getCanvasContainer(),e.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};Tr.prototype.isEnabled=function(){return!!this._enabled},Tr.prototype.enable=function(e){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around)},Tr.prototype.disable=function(){this.isEnabled()&&(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Tr.prototype.disableRotation=function(){this._rotationDisabled=!0},Tr.prototype.enableRotation=function(){this._rotationDisabled=!1},Tr.prototype.isActive=function(){return this.isEnabled()&&!!this._gestureIntent},Tr.prototype.onStart=function(t){if(this.isEnabled()&&2===t.touches.length){var r=n.mousePos(this._el,t.touches[0]),i=n.mousePos(this._el,t.touches[1]),o=r.add(i).div(2);this._startVec=r.sub(i),this._startAround=this._map.transform.pointLocation(o),this._gestureIntent=void 0,this._inertia=[],n.addEventListener(e.window.document,"touchmove",this._onMove,{passive:!1}),n.addEventListener(e.window.document,"touchend",this._onEnd)}},Tr.prototype._getTouchEventData=function(e){var t=n.mousePos(this._el,e.touches[0]),r=n.mousePos(this._el,e.touches[1]),i=t.sub(r);return{vec:i,center:t.add(r).div(2),scale:i.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*i.angleWith(this._startVec)/Math.PI}},Tr.prototype._onMove=function(t){if(2===t.touches.length){var n=this._getTouchEventData(t),r=n.vec,i=n.scale,o=n.bearing;if(!this._gestureIntent){var a=this._rotationDisabled&&1!==i||Math.abs(1-i)>.15;Math.abs(o)>10?this._gestureIntent="rotate":a&&(this._gestureIntent="zoom"),this._gestureIntent&&(this._map.fire(new e.Event(this._gestureIntent+"start",{originalEvent:t})),this._map.fire(new e.Event("movestart",{originalEvent:t})),this._startVec=r)}this._lastTouchEvent=t,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),t.preventDefault()}},Tr.prototype._onTouchFrame=function(){this._frameId=null;var t=this._gestureIntent;if(t){var n=this._map.transform;this._startScale||(this._startScale=n.scale,this._startBearing=n.bearing);var r=this._getTouchEventData(this._lastTouchEvent),i=r.center,o=r.bearing,a=r.scale,s=n.pointLocation(i),l=n.locationPoint(s);"rotate"===t&&(n.bearing=this._startBearing+o),n.zoom=n.scaleZoom(this._startScale*a),n.setLocationAtPoint(this._startAround,l),this._map.fire(new e.Event(t,{originalEvent:this._lastTouchEvent})),this._map.fire(new e.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([e.browser.now(),a,i])}},Tr.prototype._onEnd=function(t){n.removeEventListener(e.window.document,"touchmove",this._onMove,{passive:!1}),n.removeEventListener(e.window.document,"touchend",this._onEnd);var r=this._gestureIntent,i=this._startScale;if(this._frameId&&(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,r){this._map.fire(new e.Event(r+"end",{originalEvent:t})),this._drainInertiaBuffer();var o=this._inertia,a=this._map;if(o.length<2)a.snapToNorth({},{originalEvent:t});else{var s=o[o.length-1],l=o[0],u=a.transform.scaleZoom(i*s[1]),c=a.transform.scaleZoom(i*l[1]),h=u-c,p=(s[0]-l[0])/1e3,d=s[2];if(0!==p&&u!==c){var f=.15*h/p;Math.abs(f)>2.5&&(f=f>0?2.5:-2.5);var m=1e3*Math.abs(f/(12*.15)),g=u+f*m/2e3;g<0&&(g=0),a.easeTo({zoom:g,duration:m,easing:kr,around:this._aroundCenter?a.getCenter():a.unproject(d),noMoveStart:!0},{originalEvent:t})}else a.snapToNorth({},{originalEvent:t})}}},Tr.prototype._drainInertiaBuffer=function(){for(var t=this._inertia,n=e.browser.now();t.length>2&&n-t[0][0]>160;)t.shift()};var Mr={scrollZoom:mr,boxZoom:gr,dragRotate:vr,dragPan:xr,keyboard:br,doubleClickZoom:Sr,touchZoomRotate:Tr},Er=function(t){function n(n,r){t.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.getCenter=function(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(e,t){return this.jumpTo({center:e},t)},n.prototype.panBy=function(t,n,r){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)},n.prototype.panTo=function(t,n,r){return this.easeTo(e.extend({center:t},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(e,t){return this.jumpTo({zoom:e},t),this},n.prototype.zoomTo=function(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)},n.prototype.zoomIn=function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this},n.prototype.zoomOut=function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(e,t){return this.jumpTo({bearing:e},t),this},n.prototype.rotateTo=function(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)},n.prototype.resetNorth=function(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this},n.prototype.resetNorthPitch=function(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this},n.prototype.snapToNorth=function(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(e,t){return this.jumpTo({pitch:e},t),this},n.prototype.cameraForBounds=function(t,n){return t=e.LngLatBounds.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,i){if("number"==typeof(i=e.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}if(e.deepEqual(Object.keys(i.padding).sort((function(e,t){return e<t?-1:e>t?1:0})),["bottom","left","right","top"])){var a=this.transform,s=a.project(e.LngLat.convert(t)),l=a.project(e.LngLat.convert(n)),u=s.rotate(-r*Math.PI/180),c=l.rotate(-r*Math.PI/180),h=new e.Point(Math.max(u.x,c.x),Math.max(u.y,c.y)),p=new e.Point(Math.min(u.x,c.x),Math.min(u.y,c.y)),d=h.sub(p),f=(a.width-i.padding.left-i.padding.right)/d.x,m=(a.height-i.padding.top-i.padding.bottom)/d.y;if(!(m<0||f<0)){var g=Math.min(a.scaleZoom(a.scale*Math.min(f,m)),i.maxZoom),y=e.Point.convert(i.offset),v=(i.padding.left-i.padding.right)/2,_=(i.padding.top-i.padding.bottom)/2,x=new e.Point(y.x+v,y.y+_).mult(a.scale/a.zoomScale(g));return{center:a.unproject(s.add(l).div(2).sub(x)),zoom:g,bearing:r}}e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else e.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},n.prototype.fitBounds=function(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)},n.prototype.fitScreenCoordinates=function(t,n,r,i,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,i),i,o)},n.prototype._fitInternal=function(t,n,r){return t?(n=e.extend(t,n)).linear?this.easeTo(n,r):this.flyTo(n,r):this},n.prototype.jumpTo=function(t,n){this.stop();var r=this.transform,i=!1,o=!1,a=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(i=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(a=!0,r.pitch=+t.pitch),this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),i&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),o&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),a&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n))},n.prototype.easeTo=function(t,n){var r=this;this.stop(),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||e.browser.prefersReducedMotion)&&(t.duration=0);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l="zoom"in t?+t.zoom:o,u="bearing"in t?this._normalizeBearing(t.bearing,a):a,c="pitch"in t?+t.pitch:s,h=i.centerPoint.add(e.Point.convert(t.offset)),p=i.pointLocation(h),d=e.LngLat.convert(t.center||p);this._normalizeCenter(d);var f,m,g=i.project(p),y=i.project(d).sub(g),v=i.zoomScale(l-o);return t.around&&(f=e.LngLat.convert(t.around),m=i.locationPoint(f)),this._zooming=l!==o,this._rotating=a!==u,this._pitching=c!==s,this._prepareEase(n,t.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease((function(t){if(r._zooming&&(i.zoom=e.number(o,l,t)),r._rotating&&(i.bearing=e.number(a,u,t)),r._pitching&&(i.pitch=e.number(s,c,t)),f)i.setLocationAtPoint(f,m);else{var p=i.zoomScale(i.zoom-o),d=l>o?Math.min(2,v):Math.max(.5,v),_=Math.pow(d,1-t),x=i.unproject(g.add(y.mult(t*_)).mult(p));i.setLocationAtPoint(i.renderWorldCopies?x.wrap():x,h)}r._fireMoveEvents(n)}),(function(){t.delayEndEvents?r._easeEndTimeoutID=setTimeout((function(){return r._afterEase(n)}),t.delayEndEvents):r._afterEase(n)}),t),this},n.prototype._prepareEase=function(t,n){this._moving=!0,n||this.fire(new e.Event("movestart",t)),this._zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t){var n=this._zooming,r=this._rotating,i=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,n&&this.fire(new e.Event("zoomend",t)),r&&this.fire(new e.Event("rotateend",t)),i&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))},n.prototype.flyTo=function(t,n){var r=this;if(e.browser.prefersReducedMotion){var i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var o=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u="zoom"in t?e.clamp(+t.zoom,o.minZoom,o.maxZoom):a,c="bearing"in t?this._normalizeBearing(t.bearing,s):s,h="pitch"in t?+t.pitch:l,p=o.zoomScale(u-a),d=o.centerPoint.add(e.Point.convert(t.offset)),f=o.pointLocation(d),m=e.LngLat.convert(t.center||f);this._normalizeCenter(m);var g=o.project(f),y=o.project(m).sub(g),v=t.curve,_=Math.max(o.width,o.height),x=_/p,b=y.mag();if("minZoom"in t){var w=e.clamp(Math.min(t.minZoom,a,u),o.minZoom,o.maxZoom),S=_/o.zoomScale(w-a);v=Math.sqrt(S/b*2)}var k=v*v;function T(e){var t=(x*x-_*_+(e?-1:1)*k*k*b*b)/(2*(e?x:_)*k*b);return Math.log(Math.sqrt(t*t+1)-t)}function M(e){return(Math.exp(e)-Math.exp(-e))/2}function E(e){return(Math.exp(e)+Math.exp(-e))/2}var C=T(0),I=function(e){return E(C)/E(C+v*e)},A=function(e){return _*((E(C)*(M(t=C+v*e)/E(t))-M(C))/k)/b;var t},P=(T(1)-C)/v;if(Math.abs(b)<1e-6||!isFinite(P)){if(Math.abs(_-x)<1e-6)return this.easeTo(t,n);var D=x<_?-1:1;P=Math.abs(Math.log(x/_))/v,A=function(){return 0},I=function(e){return Math.exp(D*v*e)}}if("duration"in t)t.duration=+t.duration;else{var L="screenSpeed"in t?+t.screenSpeed/v:+t.speed;t.duration=1e3*P/L}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==c,this._pitching=h!==l,this._prepareEase(n,!1),this._ease((function(t){var i=t*P,p=1/I(i);o.zoom=1===t?u:a+o.scaleZoom(p),r._rotating&&(o.bearing=e.number(s,c,t)),r._pitching&&(o.pitch=e.number(l,h,t));var f=1===t?m:o.unproject(g.add(y.mult(A(i))).mult(p));o.setLocationAtPoint(o.renderWorldCopies?f.wrap():f,d),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var e=this._onEaseEnd;delete this._onEaseEnd,e.call(this)}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t},n.prototype._normalizeCenter=function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}},n}(e.Evented),Cr=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};Cr.prototype.getDefaultPosition=function(){return"bottom-right"},Cr.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Cr.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},Cr.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce((function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r<n.length-1?"&":"")),e}),"?");t.href=e.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow"}},Cr.prototype._updateData=function(e){!e||"metadata"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())},Cr.prototype._updateAttributions=function(){if(this._map.style){var e=[];
1if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map((function(e){return"string"!=typeof e?"":e}))):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var n=this._map.style.sourceCaches;for(var r in n){var i=n[r];if(i.used){var o=i.getSource();o.attribution&&e.indexOf(o.attribution)<0&&e.push(o.attribution)}}e.sort((function(e,t){return e.length-t.length}));var a=(e=e.filter((function(t,n){for(var r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,e.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Cr.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Ir=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};Ir.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","mapboxgl-ctrl");var t=n.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label","Mapbox logo"),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Ir.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Ir.prototype.getDefaultPosition=function(){return"bottom-left"},Ir.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Ir.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},Ir.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var Ar=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ar.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},Ar.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;n<r.length;n+=1){var i=r[n];if(i.id===e)return void(i.cancelled=!0)}},Ar.prototype.run=function(){var e=this._currentlyRunning=this._queue;this._queue=[];for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!r.cancelled&&(r.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},Ar.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var Pr=e.window.HTMLImageElement,Dr=e.window.HTMLElement,Lr={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,clickTolerance:3,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Or=function(r){function i(t){var i=this;if(null!=(t=e.extend({},Lr,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than minZoom");var o=new ur(t.minZoom,t.maxZoom,t.renderWorldCopies);if(r.call(this,o,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new Ar,this._controls=[],this._mapId=e.uniqueId(),this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof Dr))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return i._update(!1)})),this.on("moveend",(function(){return i._update(!1)})),this.on("zoom",(function(){return i._update(!0)})),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1)),function(e,t){var r=e.getCanvasContainer(),i=null,o=!1,a=null;for(var s in Mr)e[s]=new Mr[s](e,t),t.interactive&&t[s]&&e[s].enable(t[s]);n.addEventListener(r,"mouseout",(function(t){e.fire(new pr("mouseout",e,t))})),n.addEventListener(r,"mousedown",(function(i){o=!0,a=n.mousePos(r,i);var s=new pr("mousedown",e,i);e.fire(s),s.defaultPrevented||(t.interactive&&!e.doubleClickZoom.isActive()&&e.stop(),e.boxZoom.onMouseDown(i),e.boxZoom.isActive()||e.dragPan.isActive()||e.dragRotate.onMouseDown(i),e.boxZoom.isActive()||e.dragRotate.isActive()||e.dragPan.onMouseDown(i))})),n.addEventListener(r,"mouseup",(function(t){var n=e.dragRotate.isActive();i&&!n&&e.fire(new pr("contextmenu",e,i)),i=null,o=!1,e.fire(new pr("mouseup",e,t))})),n.addEventListener(r,"mousemove",(function(t){if(!e.dragPan.isActive()&&!e.dragRotate.isActive()){for(var n=t.target;n&&n!==r;)n=n.parentNode;n===r&&e.fire(new pr("mousemove",e,t))}})),n.addEventListener(r,"mouseover",(function(t){for(var n=t.target;n&&n!==r;)n=n.parentNode;n===r&&e.fire(new pr("mouseover",e,t))})),n.addEventListener(r,"touchstart",(function(n){var r=new dr("touchstart",e,n);e.fire(r),r.defaultPrevented||(t.interactive&&e.stop(),e.boxZoom.isActive()||e.dragRotate.isActive()||e.dragPan.onTouchStart(n),e.touchZoomRotate.onStart(n),e.doubleClickZoom.onTouchStart(r))}),{passive:!1}),n.addEventListener(r,"touchmove",(function(t){e.fire(new dr("touchmove",e,t))}),{passive:!1}),n.addEventListener(r,"touchend",(function(t){e.fire(new dr("touchend",e,t))})),n.addEventListener(r,"touchcancel",(function(t){e.fire(new dr("touchcancel",e,t))})),n.addEventListener(r,"click",(function(i){var o=n.mousePos(r,i);(!a||o.equals(a)||o.dist(a)<t.clickTolerance)&&e.fire(new pr("click",e,i))}
vendor: 4,432 bytes, line 1
1)),n.addEventListener(r,"dblclick",(function(t){var n=new pr("dblclick",e,t);e.fire(n),n.defaultPrevented||e.doubleClickZoom.onDblClick(n)})),n.addEventListener(r,"contextmenu",(function(t){var n=e.dragRotate.isActive();o||n?o&&(i=t):e.fire(new pr("contextmenu",e,t)),(e.dragRotate.isEnabled()||e.listens("contextmenu"))&&t.preventDefault()})),n.addEventListener(r,"wheel",(function(n){t.interactive&&e.stop();var r=new fr("wheel",e,n);e.fire(r),r.defaultPrevented||e.scrollZoom.onWheel(n)}),{passive:!1})}(this,t);var a="string"==typeof t.hash&&t.hash||void 0;this._hash=t.hash&&new hr(a).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new Cr({customAttribution:t.customAttribution})),this.addControl(new Ir,t.logoPosition),this.on("style.load",(function(){i.transform.unmodified&&i.jumpTo(i.style.stylesheet)})),this.on("data",(function(t){i._update("style"===t.dataType),i.fire(new e.Event(t.dataType+"data",t))})),this.on("dataloading",(function(t){i.fire(new e.Event(t.dataType+"dataloading",t))}))}r&&(i.__proto__=r),i.prototype=Object.create(r&&r.prototype),i.prototype.constructor=i;var o={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(t,n){if(void 0===n&&t.getDefaultPosition&&(n=t.getDefaultPosition()),void 0===n&&(n="top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},i.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],i=n[1];return this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)).fire(new e.Event("resize",t)).fire(new e.Event("moveend",t)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},i.prototype.setMinZoom=function(e){if((e=null==e?0:e)>=0&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between 0 and the current maxZoom, inclusive")},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},i.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},i.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},i.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},i.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},i.prototype.on=function(e,t,n){var i=this;if(void 0===n)return r.prototype.on.call(this,e,t);var o=function(){var r;
vendor: 8,105 bytes, line 1
1if("mouseenter"===e||"mouseover"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[];a.length?o||(o=!0,n.call(i,new pr(e,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===e||"mouseout"===e){var a=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(i.getLayer(t)?i.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?a=!0:a&&(a=!1,n.call(i,new pr(e,i,r.originalEvent)))},mouseout:function(t){a&&(a=!1,n.call(i,new pr(e,i,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=i.getLayer(t)?i.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(i,e),delete e.features)},r)}}();for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(o),o.delegates)this.on(a,o.delegates[a]);return this},i.prototype.off=function(e,t,n){if(void 0===n)return r.prototype.off.call(this,e,t);if(this._delegatedListeners&&this._delegatedListeners[e])for(var i=this._delegatedListeners[e],o=0;o<i.length;o++){var a=i[o];if(a.layer===t&&a.listener===n){for(var s in a.delegates)this.off(s,a.delegates[s]);return i.splice(o,1),this}}return this},i.prototype.queryRenderedFeatures=function(t,n){if(!this.style)return[];var r;if(void 0!==n||void 0===t||t instanceof e.Point||Array.isArray(t)||(n=t,t=void 0),n=n||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof e.Point||"number"==typeof t[0])r=[e.Point.convert(t)];else{var i=e.Point.convert(t[0]),o=e.Point.convert(t[1]);r=[i,new e.Point(o.x,i.y),o,new e.Point(i.x,o.y),i]}return this.style.queryRenderedFeatures(r,n,this.transform)},i.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},i.prototype.setStyle=function(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(t,n))},i.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Nt(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},i.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var i=this._requestManager.normalizeStyleURL(t),o=this._requestManager.transformRequest(i,e.ResourceType.Style);e.getJSON(o,(function(t,i){t?r.fire(new e.ErrorEvent(t)):i&&r._updateDiff(i,n)}))}else"object"==typeof t&&this._updateDiff(t,n)},i.prototype._updateDiff=function(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+".  Rebuilding the style from scratch."),this._updateStyle(t,n)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},i.prototype.addSource=function(e,t){return this.style.addSource(e,t),this._update(!0)},i.prototype.isSourceLoaded=function(t){var n=this.style&&this.style.sourceCaches[t];if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},i.prototype.areTilesLoaded=function(){var e=this.style&&this.style.sourceCaches;for(var t in e){var n=e[t]._tiles;for(var r in n){var i=n[r];if("loaded"!==i.state&&"errored"!==i.state)return!1}}return!0},i.prototype.addSourceType=function(e,t,n){return this.style.addSourceType(e,t,n)},i.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},i.prototype.getSource=function(e){return this.style.getSource(e)},i.prototype.addImage=function(t,n,r){void 0===r&&(r={});var i=r.pixelRatio;void 0===i&&(i=1);var o=r.sdf;if(void 0===o&&(o=!1),n instanceof Pr){var a=e.browser.getImageData(n),s=a.width,l=a.height,u=a.data;this.style.addImage(t,{data:new e.RGBAImage({width:s,height:l},u),pixelRatio:i,sdf:o,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=n.width,h=n.height,p=n.data,d=n;this.style.addImage(t,{data:new e.RGBAImage({width:c,height:h},new Uint8Array(p)),pixelRatio:i,sdf:o,version:0,userImage:d}),d.onAdd&&d.onAdd(this,t)}},i.prototype.updateImage=function(t,n){var r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var i=n instanceof Pr?e.browser.getImageData(n):n,o=i.width,a=i.height,s=i.data;if(void 0===o||void 0===a)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==r.data.width||a!==r.data.height)return this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var l=!(n instanceof Pr);r.data.replace(s,l),this.style.updateImage(t,r)},i.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},i.prototype.removeImage=function(e){this.style.removeImage(e)},i.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(e,t){return this.style.addLayer(e,t),this._update(!0)},i.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},i.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},i.prototype.getLayer=function(e){return this.style.getLayer(e)},i.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},i.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},i.prototype.getFilter=function(e){return this.style.getFilter(e)},i.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},i.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},i.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},i.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},i.prototype.setLight=function(e,t){return void 0===t&&(t={}),this.style.setLight(e,t),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},i.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},i.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},i.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described 
1in https://www.mapbox.com/mapbox-gl-js/api/.")},i.prototype._setupContainer=function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=n.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",t),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var i=this._controlContainer=n.create("div","mapboxgl-control-container",e),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(e){o[e]=n.create("div","mapboxgl-ctrl-"+e,i)}))},i.prototype._resizeCanvas=function(t,n){var r=e.window.devicePixelRatio||1;this._canvas.width=r*t,this._canvas.height=r*n,this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"},i.prototype._setupPainter=function(){var n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new or(r,this.transform),e.webpSupported.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},i.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},i.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},i.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},i.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},i.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},i.prototype._render=function(){this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run();var t=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var n=this.transform.zoom,r=e.browser.now();this.style.zoomHistory.update(n,r);var i=new e.EvaluationParameters(n,{now:r,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=i.crossFadingFactor();1===o&&o===this._crossFadingFactor||(t=!0,this._crossFadingFactor=o),this.style.update(i)}return this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||t)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.Event("idle")),this},i.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,n=this._controls;t<n.length;t+=1)n[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),Rr(this._canvasContainer),Rr(this._controlContainer),Rr(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this.fire(new e.Event("remove"))},i.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame((function(){t._frame=null,t._render()})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(e){this._trackResize&&this.resize({originalEvent:e})._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())},o.vertices.get=function(){return!!this._vertices}
1,o.vertices.set=function(e){this._vertices=e,this._update()},i.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},o.version.get=function(){return e.version},Object.defineProperties(i.prototype,o),i}(Er);function Rr(e){e.parentNode&&e.parentNode.removeChild(e)}var zr={showCompass:!0,showZoom:!0,visualizePitch:!1},Nr=function(t){var r=this;this.options=e.extend({},zr,t),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this.options.showZoom&&(e.bindAll(["_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in","Zoom in",(function(e){return r._map.zoomIn({},{originalEvent:e})})),this._zoomOutButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out","Zoom out",(function(e){return r._map.zoomOut({},{originalEvent:e})}))),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-compass","Reset bearing to north",(function(e){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:e}):r._map.resetNorth({},{originalEvent:e})})),this._compassArrow=n.create("span","mapboxgl-ctrl-compass-arrow",this._compass))};function Br(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var i=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),a=r.locationPoint(t).distSqr(n);r.locationPoint(i).distSqr(n)<a?t=i:r.locationPoint(o).distSqr(n)<a&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){var s=r.locationPoint(t);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}Nr.prototype._updateZoomButtons=function(){var e=this._map.getZoom();e===this._map.getMaxZoom()?this._zoomInButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomInButton.classList.remove("mapboxgl-ctrl-icon-disabled"),e===this._map.getMinZoom()?this._zoomOutButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomOutButton.classList.remove("mapboxgl-ctrl-icon-disabled")},Nr.prototype._rotateCompassArrow=function(){var e=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=e},Nr.prototype.onAdd=function(e){return this._map=e,this.options.showZoom&&(this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new vr(e,{button:"left",element:this._compass}),n.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),n.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},Nr.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),n.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),n.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},Nr.prototype._createButton=function(e,t,r){var i=n.create("button",e,this._container);return i.type="button",i.title=t,i.setAttribute("aria-label",t),i.addEventListener("click",r),i};var Fr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Vr(e,t,n){var r=e.classList;for(var i in Fr)r.remove("mapboxgl-"+n+"-anchor-"+i);r.add("mapboxgl-"+n+"-anchor-"+t)}var jr,Ur=function(t){function r(r,i){if(t.call(this),(r instanceof e.
vendor: 10,002 bytes, line 1
1window.HTMLElement||i)&&(r=e.extend({element:r},i)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._draggable=r&&r.draggable||!1,this._state="inactive",r&&r.element)this._element=r.element,this._offset=e.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div");var o=n.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var a=n.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var l=n.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");for(var u=0,c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];u<c.length;u+=1){var h=c[u],p=n.createNS("http://www.w3.org/2000/svg","ellipse");p.setAttributeNS(null,"opacity","0.04"),p.setAttributeNS(null,"cx","10.5"),p.setAttributeNS(null,"cy","5.80029008"),p.setAttributeNS(null,"rx",h.rx),p.setAttributeNS(null,"ry",h.ry),l.appendChild(p)}var d=n.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"fill",this._color);var f=n.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),d.appendChild(f);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var g=n.createNS("http://www.w3.org/2000/svg","path");g.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(g);var y=n.createNS("http://www.w3.org/2000/svg","g");y.setAttributeNS(null,"transform","translate(6.0, 7.0)"),y.setAttributeNS(null,"fill","#FFFFFF");var v=n.createNS("http://www.w3.org/2000/svg","g");v.setAttributeNS(null,"transform","translate(8.0, 8.0)");var _=n.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#000000"),_.setAttributeNS(null,"opacity","0.25"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962");var x=n.createNS("http://www.w3.org/2000/svg","circle");x.setAttributeNS(null,"fill","#FFFFFF"),x.setAttributeNS(null,"cx","5.5"),x.setAttributeNS(null,"cy","5.5"),x.setAttributeNS(null,"r","5.4999962"),v.appendChild(_),v.appendChild(x),s.appendChild(l),s.appendChild(d),s.appendChild(m),s.appendChild(y),s.appendChild(v),o.appendChild(s),this._element.appendChild(o),this._offset=e.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(e){e.preventDefault()})),Vr(this._element,this._anchor,"marker"),this._popup=null}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.addTo=function(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(e){if(this._popup&&(this._popup.remove(),this._popup=null),e){if(!("offset"in e.options)){var t=Math.sqrt(Math.pow(13.5,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat)}return this},r.prototype._onMapClick=function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this},r.prototype._update=function(e){this._map&&(this._map.transform.renderWorldCopies&&(this._lngLat=Br(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),e&&"moveend"!==e.type||(this._pos=this._pos.round()),n.setTransform(this._element,Fr[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px)"))},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(t){return this._offset=e.Point.convert(t),this._update(),this},r.prototype._onMove=function(t){this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag"))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r}(e.Evented),Gr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},qr=function(t){function r(n){t.call(this),this.options=e.extend({},Gr,n),e.bindAll(["_onSuccess","_onError","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){var r;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==jr?r(jr):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((function(e){jr="denied"!==e.state,r(jr)})):(jr=!!e.window.navigator.geolocation,r(jr)),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),n.remove(this._container),this._map=void 0},r.prototype._isOutOfMapMaxBounds=function(e){var t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(t){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
1RROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()},r.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=this._map.getBearing(),o=e.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(e){e?this._userLocationDotMarker.setLngLat([e.coords.longitude,e.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},r.prototype._onError=function(t){this.options.trackUserLocation&&(1===t.code?(this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0,this._geolocateButton.title="Location not available",this._geolocateButton.setAttribute("aria-label","Location not available"),void 0!==this._geolocationWatchID&&this._clearWatch()):this._setErrorState()),"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(t){var r=this;this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",this._container),this._geolocateButton.type="button",this._geolocateButton.title="Find my location",this._geolocateButton.setAttribute("aria-label","Find my location"),!1===t&&(e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled."),this._geolocateButton.disabled=!0,this._geolocateButton.title="Location not available",this._geolocateButton.setAttribute("aria-label","Location not available")),this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ur(this._dotElement),this.options.trackUserLocation&&(this._watchState="OFF")),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(t){var n=t.originalEvent&&"resize"===t.originalEvent.type;t.geolocateSource||"ACTIVE_LOCK"!==r._watchState||n||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new e.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;
1case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}"OFF"===this._watchState&&void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&&(this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Hr={maxWidth:100,unit:"metric"},Wr=function(t){this.options=e.extend({},Hr,t),e.bindAll(["_onMove","setUnit"],this)};function Zr(e,t,n){var r,i,o,a,s,l,u=n&&n.maxWidth||100,c=e._container.clientHeight/2,h=(r=e.unproject([0,c]),i=e.unproject([u,c]),o=Math.PI/180,a=r.lat*o,s=i.lat*o,l=Math.sin(a)*Math.sin(s)+Math.cos(a)*Math.cos(s)*Math.cos((i.lng-r.lng)*o),6371e3*Math.acos(Math.min(l,1)));if(n&&"imperial"===n.unit){var p=3.2808*h;p>5280?Yr(t,u,p/5280,"mi"):Yr(t,u,p,"ft")}else n&&"nautical"===n.unit?Yr(t,u,h/1852,"nm"):Yr(t,u,h,"m")}function Yr(e,t,n,r){var i,o,a,s=(i=n,(o=Math.pow(10,(""+Math.floor(i)).length-1))*(a=(a=i/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(a))),l=s/n;"m"===r&&s>=1e3&&(s/=1e3,r="km"),e.style.width=t*l+"px",e.innerHTML=s+r}Wr.prototype.getDefaultPosition=function(){return"bottom-left"},Wr.prototype._onMove=function(){Zr(this._map,this._container,this.options)},Wr.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Wr.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Wr.prototype.setUnit=function(e){this.options.unit=e,Zr(this._map,this._container,this.options)};var Xr=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.
vendor: 8,393 bytes, line 1
1window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};Xr.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Xr.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Xr.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},Xr.prototype._setupUI=function(){(this._fullscreenButton=n.create("button",this._className+"-icon "+this._className+"-fullscreen",this._controlContainer)).type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Xr.prototype._updateTitle=function(){var e=this._isFullscreen()?"Exit fullscreen":"Enter fullscreen";this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},Xr.prototype._isFullscreen=function(){return this._fullscreen},Xr.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"),this._updateTitle())},Xr.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Kr={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},$r=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(Kr),n),e.bindAll(["_update","_onClickClose","remove"],this)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.addTo=function(t){var n=this;return this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClickClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",(function(e){n._update(e.point)})),this._map.on("mouseup",(function(e){n._update(e.point)})),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("click",this._onClickClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new e.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove"),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){var e=this;return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",(function(t){e._update(t.point)})),this._map.on("drag",(function(t){e._update(t.point)})),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},r.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");for(i.innerHTML=t;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container.style.maxWidth},r.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},r.prototype.setDOMContent=function(e){return this._createContent(),this._content.appendChild(e),this._update(),this},r.prototype._createContent=function(){this._content&&n.remove(this._content),this._content=n.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClickClose))},r.prototype._update=function(t){var r=this,i=this._lngLat||this._trackPointer;if(this._map&&i&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(e){return r._container.classList.add(e)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Br(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var o=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),a=this.options.anchor,s=function t(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new e.Point(0,0),top:new e.Point(0,n),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-n),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(n,0),right:new e.Point(-n,0)}}if(n instanceof e.Point||Array.isArray(n)){var i=e.Point.convert(n);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:e.Point.convert(n.center||[0,0]),top:e.Point.convert(n.top||[0,0]),"top-left":e.Point.convert(n["top-left"]||[0,0]),"top-right":e.Point.convert(n["top-right"]||[0,0]),bottom:e.Point.convert(n.bottom||[0,0]),"bottom-left":e.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(n["bottom-right"]||[0,0]),left:e.Point.convert(n.left||[0,0]),right:e.Point.convert(n.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!a){var l,u=this._container.offsetWidth,c=this._container.offsetHeight;l=o.y+s.bottom.y<c?["top"]:o.y>this._map.transform.height-c?["bottom"]:[],o.x<u/2?l.push("left"):o.x>this._map.transform.width-u/2&&l.push("right"),a=0===l.length?"bottom":l.join("-")}var h=o.add(s[a]).round();n.setTransform(this._container,Fr[a]+" translate("+h.x+"px,"+h.y+"px)"),Vr(this._container,a,"popup")}}
vendor: 21,685 bytes, line 1
1,r.prototype._onClickClose=function(){this.remove()},r}(e.Evented),Jr={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Or,NavigationControl:Nr,GeolocateControl:qr,AttributionControl:Cr,ScaleControl:Wr,FullscreenControl:Xr,Popup:$r,Marker:Ur,Style:Nt,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Le.workerCount},set workerCount(e){Le.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return Jr})),n}()},function(e,t,n){"use strict";var r,i={DEBUG:!1,LIB_VERSION:"2.50.0"};if("undefined"==typeof window){var o={hostname:""};r={navigator:{userAgent:""},document:{location:o,referrer:""},screen:{width:0,height:0},location:o}}else r=window;var a,s,l,u,c,h,p,d,f,m,g,y=Array.prototype,v=Function.prototype,_=Object.prototype,x=y.slice,b=_.toString,w=_.hasOwnProperty,S=r.console,k=r.navigator,T=r.document,M=r.opera,E=r.screen,C=k.userAgent,I=v.bind,A=y.forEach,P=y.indexOf,D=y.map,L=Array.isArray,O={},R={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},z={log:function(){if(i.DEBUG&&!R.isUndefined(S)&&S)try{S.log.apply(S,arguments)}catch(e){R.each(arguments,(function(e){S.log(e)}))}},warn:function(){if(i.DEBUG&&!R.isUndefined(S)&&S){var e=["Mixpanel warning:"].concat(R.toArray(arguments));try{S.warn.apply(S,e)}catch(t){R.each(e,(function(e){S.warn(e)}))}}},error:function(){if(i.DEBUG&&!R.isUndefined(S)&&S){var e=["Mixpanel error:"].concat(R.toArray(arguments));try{S.error.apply(S,e)}catch(t){R.each(e,(function(e){S.error(e)}))}}},critical:function(){if(!R.isUndefined(S)&&S){var e=["Mixpanel error:"].concat(R.toArray(arguments));try{S.error.apply(S,e)}catch(t){R.each(e,(function(e){S.error(e)}))}}}},N=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(z,arguments)}},B=function(e){return{log:N(z.log,e),error:N(z.error,e),critical:N(z.critical,e)}};R.bind=function(e,t){var n,r;if(I&&e.bind===I)return I.apply(e,x.call(arguments,1));if(!R.isFunction(e))throw new TypeError;return n=x.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(x.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,n.concat(x.call(arguments)));return Object(a)===a?a:o}},R.each=function(e,t,n){if(null!=e)if(A&&e.forEach===A)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===O)return}else for(var o in e)if(w.call(e,o)&&t.call(n,e[o],o,e)===O)return},R.extend=function(e){return R.each(x.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},R.isArray=L||function(e){return"[object Array]"===b.call(e)},R.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},R.isArguments=function(e){return!(!e||!w.call(e,"callee"))},R.toArray=function(e){return e?e.toArray?e.toArray():R.isArray(e)||R.isArguments(e)?x.call(e):R.values(e):[]},R.map=function(e,t,n){if(D&&e.map===D)return e.map(t,n);var r=[];return R.each(e,(function(e){r.push(t.call(n,e))})),r},R.keys=function(e){var t=[];return null===e||R.each(e,(function(e,n){t[t.length]=n})),t},R.values=function(e){var t=[];return null===e||R.each(e,(function(e){t[t.length]=e})),t},R.include=function(e,t){var n=!1;return null===e?n:P&&e.indexOf===P?-1!=e.indexOf(t):(R.each(e,(function(e){if(n||(n=e===t))return O})),n)},R.includes=function(e,t){return-1!==e.indexOf(t)},R.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},R.isObject=function(e){return e===Object(e)&&!R.isArray(e)},R.isEmptyObject=function(e){if(R.isObject(e)){for(var t in e)if(w.call(e,t))return!1;return!0}return!1},R.isUndefined=function(e){return void 0===e},R.isString=function(e){return"[object String]"==b.call(e)},R.isDate=function(e){return"[object Date]"==b.call(e)},R.isNumber=function(e){return"[object Number]"==b.call(e)},R.isElement=function(e){return!(!e||1!==e.nodeType)},R.encodeDates=function(e){return R.each(e,(function(t,n){R.isDate(t)?e[n]=R.formatDate(t):R.isObject(t)&&(e[n]=R.encodeDates(t))})),e},R.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},R.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},R.strip_empty_properties=function(e){var t={};return R.each(e,(function(e,n){R.isString(e)&&e.length>0&&(t[n]=e)})),t},R.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):R.isArray(e)?(n=[],R.each(e,(function(e){n.push(R.truncate(e,t))}))):R.isObject(e)?(n={},R.each(e,(function(e,r){n[r]=R.truncate(e,t)}))):n=e,n},R.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},n=function(e,r){var i="",o=0,a="",s="",l=0,u=i,c=[],h=r[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+="    ",c=[],"[object Array]"===b.apply(h)){for(l=h.length,o=0;o<l;o+=1)c[o]=n(o,h)||"null";return s=0===c.length?"[]":i?"[\n"+i+c.join(",\n"+i)+"\n"+u+"]":"["+c.join(",")+"]",i=u,s}for(a in h)w.call(h,a)&&(s=n(a,h))&&c.push(t(a)+(i?": ":":")+s);return s=0===c.length?"{}":i?"{"+c.join(",")+u+"}":"{"+c.join(",")+"}",i=u,s}};return n("",{"":e})},R.JSONDecode=(c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},h=function(e){var t=new SyntaxError(e);throw t.at=a,t.text=l,t},p=function(e){return e&&e!==s&&h("Expected '"+e+"' instead of '"+s+"'"),s=l.charAt(a),a+=1,s},d=function(){var e,t="";for("-"===s&&(t="-",p("-"));s>="0"&&s<="9";)t+=s,p();if("."===s)for(t+=".";p()&&s>="0"&&s<="9";)t+=s;if("e"===s||"E"===s)for(t+=s,p(),"-"!==s&&"+"!==s||(t+=s,p());s>="0"&&s<="9";)t+=s,p();if(e=+t,isFinite(e))return e;h("Bad number")},f=function(){var e,t,n,r="";if('"'===s)for(;p();){if('"'===s)return p(),r;if("\\"===s)if(p(),"u"===s){for(n=0,t=0;t<4&&(e=parseInt(p(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof c[s])break;r+=c[s]}else r+=s}h("Bad string")},m=function(){for(;s&&s<=" ";)p()},u=function(){switch(m(),s){case"{":return function(){var e,t={};if("{"===s){if(p("{"),m(),"}"===s)return p("}"),t;for(;s;){if(e=f(),m(),p(":"),Object.hasOwnProperty.call(t,e)&&h('Duplicate key "'+e+'"'),t[e]=u(),m(),"}"===s)return p("}"),t;p(","),m()}}h("Bad object")}();case"[":return function(){var e=[];if("["===s){if(p("["),m(),"]"===s)return p("]"),e;for(;s;){if(e.push(u()),m(),"]"===s)return p("]"),e;p(","),m()}}h("Bad array")}();case'"':return f();case"-":return d();default:return s>="0"&&s<="9"?d():function(){switch(s){case"t":return p("t"),p("r"),p("u"),p("e"),!0;case"f":return p("f"),p("a"),p("l"),p("s"),p("e"),!1;case"n":return p("n"),p("u"),p("l"),p("l"),null}h('Unexpected "'+s+'"')}()}},function(e){var t;return l=e,a=0,s=" ",t=u(),m(),s&&h("Syntax error"),t}),R.base64Encode=function(e){var t,n,r,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,u="",c=[];if(!e)return e;e=R.utf8Encode(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[l++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(i)}while(s<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},R.utf8Encode=function(e){var t,n,r,i,o="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var a=e.charCodeAt(i),s=null;a<128?n++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(n>t&&(o+=e.substring(t,n)),o+=s,t=n=i+1)}return n>t&&(o+=e.substring(t,e.length)),o},R.UUID=(g=function(){var e,t=1*new Date;if(r.performance&&r.performance.now)e=r.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(E.height*E.width).toString(16);return g()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=C,r=[],i=0;function o(e,t){var n,i=0;for(n=0;n<t.length;n++)i|=r[n]<<8*n;return e^i}for(e=0;e<n.length;e++)t=n.charCodeAt(e),r.unshift(255&t),r.length>=4&&(i=o(i,r),r=[]);return r.length>0&&(i=o(i,r)),i.toString(16)}()+"-"+e+"-"+g()});var F=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];R.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<F.length;t++)if(-1!==e.indexOf(F[t]))return!0;return!1},R.HTTPBuildQuery=function(e,t){var n,r,i=[];return R.isUndefined(t)&&(t="&"),R.each(e,(function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+"="+n})),i.join(t)},R.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(e){z.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},R.cookie={get:function(e){for(var t=e+"=",n=T.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=R.JSONDecode(R.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,n,r,i,o,a){var s="",l="",u="";if(a)s="; domain="+a;else if(r){var c=Y(T.location.hostname);s=c?"; domain=."+c:""}if(n){var h=new Date;h.setTime(h.getTime()+1e3*n),l="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),T.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u},set:function(e,t,n,r,i,o,a){var s="",l="",u="";if(a)s="; domain="+a;else if(r){var c=Y(T.location.hostname);s=c?"; domain=."+c:""}if(n){var h=new Date;h.setTime(h.getTime()+24*n*60*60*1e3),l="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u;return T.cookie=p,p},remove:function(e,t,n){R.cookie.set(e,"",-1,t,!1,!1,n)}};var V=null,j=function(e,t){if(null!==V&&!t)return V;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+H(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(n=!1),e.removeItem(r)}catch(e){n=!1}return V=n,n};R.localStorage={is_supported:function(e){var t=j(null,e);return t||z.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){z.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){R.localStorage.error(e)}return null},parse:function(e){try{return R.JSONDecode(R.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){R.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){R.localStorage.error(e)}}},R.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,o){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!o);else{var a="on"+n,s=t[a];t[a]=function(t,n,r){return function(i){if(i=i||e(window.event)){var o,a,s=!0;return R.isFunction(r)&&(o=r(i)),a=n.call(t,i),!1!==o&&!1!==a||(s=!1),s}}}(t,r,s)}else z.error("No valid element provided to register_event")}}();var U=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');R.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!T.getElementsByTagName)return[];var r,i,o,a,s,l,u,c,h,p,d=t.split(" "),f=[T];for(l=0;l<d.length;l++)if((r=d[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=r.split("#"))[0];var m=i[1],g=T.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];f=[g]}else if(r.indexOf(".")>-1){o=(i=r.split("."))[0];var y=i[1];for(o||(o="*"),a=[],s=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),c=0;c<h.length;c++)a[s++]=h[c];for(f=[],p=0,u=0;u<a.length;u++)a[u].className&&R.isString(a[u].className)&&n(a[u],y)&&(f[p++]=a[u])}else{var v=r.match(U);if(v){o=v[1];var _,x=v[2],b=v[3],w=v[4];for(o||(o="*"),a=[],s=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),c=0;c<h.length;c++)a[s++]=h[c];switch(f=[],p=0,b){case"=":_=function(e){return e.getAttribute(x)==w};break;case"~":_=function(e){return e.getAttribute(x).match(new RegExp("\\b"+w+"\\b"))};break;case"|":_=function(e){return e.getAttribute(x).match(new RegExp("^"+w+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(x).indexOf(w)};break;case"$":_=function(e){return e.getAttribute(x).lastIndexOf(w)==e.getAttribute(x).length-w.length};break;case"*":_=function(e){return e.getAttribute(x).indexOf(w)>-1};break;default:_=function(e){return e.getAttribute(x)}}for(f=[],p=0,u=0;u<a.length;u++)_(a[u])&&(f[p++]=a[u])}else{for(o=r,a=[],s=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),c=0;c<h.length;c++)a[s++]=h[c];f=a}}return f}return function(e){return R.isElement(e)?[e]:R.isObject(e)&&!R.isUndefined(e.length)?e:r.call(this,e)}}();var G=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],q=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];R.info={campaignParams:function(e){var t="",n={};return R.each(G,(function(r){(t=R.getQueryParam(T.URL,r)).length?n[r]=t:void 0!==e&&(n[r]=e)})),n},clickParams:function(){var e="",t={};return R.each(q,(function(n){(e=R.getQueryParam(T.URL,n)).length&&(t[n]=e)})),t},marketingParams:function(){return R.extend(R.info.campaignParams(),R.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=R.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var i=R.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||R.includes(e," OPR/")?R.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":R.includes(e,"IEMobile")||R.includes(e,"WPDesktop")?"Internet Explorer Mobile":R.includes(e,"SamsungBrowser/")?"Samsung Internet":R.includes(e,"Edge")||R.includes(e,"Edg/")?"Microsoft Edge":R.includes(e,"FBIOS")?"Facebook Mobile":R.includes(e,"Chrome")?"Chrome":R.includes(e,"CriOS")?"Chrome iOS":R.includes(e,"UCWEB")||R.includes(e,"UCBrowser")?"UC Browser":R.includes(e,"FxiOS")?"Firefox iOS":R.includes(t,"Apple")?R.includes(e,"Mobile")?"Mobile Safari":"Safari":R.includes(e,"Android")?"Android Mobile":R.includes(e,"Konqueror")?"Konqueror":R.includes(e,"Firefox")?"Firefox":R.includes(e,"MSIE")||R.includes(e,"Trident/")?"Internet Explorer":R.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[R.info.browser(e,t,n)];if(void 0===r)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var e=C;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return r.location.href},properties:function(e){return"object"!=typeof e&&(e={}),R.extend(R.strip_empty_properties({$os:R.info.os(),$browser:R.info.browser(C,k.vendor,M),$referrer:T.referrer,$referring_domain:R.info.referringDomain(T.referrer),$device:R.info.device(C)}),{$current_url:R.info.currentUrl(),$browser_version:R.info.browserVersion(C,k.vendor,M),$screen_height:E.height,$screen_width:E.width,mp_lib:"web",$lib_version:i.LIB_VERSION,$insert_id:H(),time:R.timestamp()/1e3},R.strip_empty_properties(e))},people_properties:function(){return R.extend(R.strip_empty_properties({$os:R.info.os(),$browser:R.info.browser(C,k.vendor,M)}),{$browser_version:R.info.browserVersion(C,k.vendor,M)})},mpPageViewProperties:function(){return R.strip_empty_properties({current_page_title:T.title,current_domain:r.location.hostname,current_url_path:r.location.pathname,current_url_protocol:r.location.protocol,current_url_search:r.location.search})}};var H=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},W=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Z=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Y=function(e){var t=Z,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=W);var i=e.match(t);return i?i[0]:""},X=null,K=null;"undefined"!=typeof JSON&&(X=JSON.stringify,K=JSON.parse),X=X||R.JSONEncode,K=K||R.JSONDecode,R.toArray=R.toArray,R.isObject=R.isObject,R.JSONEncode=R.JSONEncode,R.JSONDecode=R.JSONDecode,R.isBlockedUA=R.isBlockedUA,R.isEmptyObject=R.isEmptyObject,R.info=R.info,R.info.device=R.info.device,R.info.browser=R.info.browser,R.info.browserVersion=R.info.browserVersion,R.info.properties=R.info.properties;var $=function(){};$.prototype.create_properties=function(){},$.prototype.event_handler=function(){},$.prototype.after_track_handler=function(){},$.prototype.init=function(e){return this.mp=e,this},$.prototype.track=function(e,t,n,r){var i=this,o=R.dom_query(e);if(0!==o.length)return R.each(o,(function(e){R.register_event(e,this.override_event,(function(e){var o={},a=i.create_properties(n,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(r,a,o,!0),s),i.mp.track(t,a,i.track_callback(r,a,o))}))}),this),!0;z.error("The DOM query ("+e+") returned 0 elements")},$.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||i.after_track_handler(t,n,r))}},$.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):R.extend({},e)};var J=function(){this.override_event="click"};R.inherit(J,$),J.prototype.create_properties=function(e,t){var n=J.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},J.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},J.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Q=function(){this.override_event="submit"};R.inherit(Q,$),Q.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},Q.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var ee=B("lock"),te=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};te.prototype.withLock=function(e,t,n){n||"function"==typeof t||(n=t,t=null);var r=n||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),o=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,u=o+":X",c=o+":Y",h=o+":Z",p=function(e){t&&t(e)},d=function(e){if((new Date).getTime()-i>s)return ee.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),l.removeItem(h),l.removeItem(c),void g();setTimeout((function(){try{e()}catch(e){p(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():d((function(){f(e,t)}))},m=function(){var e=l.getItem(c);if(e&&e!==r)return!1;if(l.setItem(c,r),l.getItem(c)===r)return!0;
1if(!j(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(u,r),f(m,(function(){l.getItem(u)!==r?d((function(){l.getItem(c)===r?f((function(){return!l.getItem(h)}),y):g()})):y()}))},y=function(){l.setItem(h,"1");try{e()}finally{l.removeItem(h),l.getItem(c)===r&&l.removeItem(c),l.getItem(u)===r&&l.removeItem(u)}};try{if(!j(l,!0))throw new Error("localStorage support check failed");g()}catch(e){p(e)}};var ne=B("batch"),re=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||R.bind(ne.error,ne),this.lock=new te(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};re.prototype.enqueue=function(e,t,n){var r={id:H(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(R.bind((function(){var t;try{var i=this.readFromStorage();i.push(r),(t=this.saveToStorage(i))&&this.memQueue.push(r)}catch(n){this.reportError("Error enqueueing item",e),t=!1}n&&n(t)}),this),R.bind((function(e){this.reportError("Error acquiring storage lock",e),n&&n(!1)}),this),this.pid)},re.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};R.each(t,(function(e){r[e.id]=!0}));for(var i=0;i<n.length;i++){var o=n[i];if((new Date).getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var ie=function(e,t){var n=[];return R.each(e,(function(e){e.id&&!t[e.id]&&n.push(e)})),n};re.prototype.removeItemsByID=function(e,t){var n={};R.each(e,(function(e){n[e]=!0})),this.memQueue=ie(this.memQueue,n);var r=R.bind((function(){var t;try{var r=this.readFromStorage();if(r=ie(r,n),t=this.saveToStorage(r)){r=this.readFromStorage();for(var i=0;i<r.length;i++){var o=r[i];if(o.id&&n[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(n){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=r();t&&t(e)}),R.bind((function(e){var n=!1;if(this.reportError("Error acquiring storage lock",e),!j(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(n)}),this),this.pid)};var oe=function(e,t){var n=[];return R.each(e,(function(e){var r=e.id;if(r in t){var i=t[r];null!==i&&(e.payload=i,n.push(e))}else n.push(e)})),n};re.prototype.updatePayloads=function(e,t){this.memQueue=oe(this.memQueue,e),this.lock.withLock(R.bind((function(){var n;try{var r=this.readFromStorage();r=oe(r,e),n=this.saveToStorage(r)}catch(t){this.reportError("Error updating items",e),n=!1}t&&t(n)}),this),R.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},re.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=K(e),R.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},re.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,X(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},re.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var ae=B("batch"),se=function(e,t){this.errorReporter=t.errorReporter,this.queue=new re(e,{errorReporter:R.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};se.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},se.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},se.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},se.prototype.clear=function(){this.queue.clear()},se.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},se.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},se.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(R.bind(this.flush,this),this.flushInterval))},se.prototype.flush=function(e){try{if(this.requestInProgress)return void ae.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),r=this.batchSize,o=this.queue.fillBatch(r),a=[],s={};if(R.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=R.extend({},t.properties,{mp_sent_by_lib_version:i.LIB_VERSION}));var n=!0,r=e.id;r?(this.itemIdsSentSuccessfully[r]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[r]}),n=!1):this.reportError("[dupe] found item with no ID",{item:e}),n&&a.push(t)}s[e.id]=t}),this),a.length<1)return void this.resetFlush();this.requestInProgress=!0;var l=R.bind((function(i){this.requestInProgress=!1;try{var a=!1;if(e.unloading)this.queue.updatePayloads(s);else if(R.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(R.isObject(i)&&i.xhr_req&&(i.xhr_req.status>=500||429===i.xhr_req.status||"timeout"===i.error)){var l=2*this.flushInterval,u=i.xhr_req.responseHeaders;if(u){var c=u["Retry-After"];c&&(l=1e3*parseInt(c,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(R.isObject(i)&&i.xhr_req&&413===i.xhr_req.status)if(o.length>1){var h=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,h,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),a=!0;else a=!0;a&&(this.queue.removeItemsByID(R.map(o,(function(e){return e.id})),R.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),R.each(o,R.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(u.transport="sendBeacon"),ae.log("MIXPANEL REQUEST:",a),this.sendRequest(a,u,l)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},se.prototype.reportError=function(e,t){if(ae.error.apply(ae.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ae.error(t)}};function le(e,t){_e(!0,e,t)}function ue(e,t){_e(!1,e,t)}function ce(e,t){return"1"===ve(e,t)}function he(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||r,n=t.navigator||{},i=!1;return R.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){R.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(t))return z.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===ve(e,t);return n&&z.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function pe(e){return xe(e,(function(e){return this.get_config(e)}))}function de(e){return xe(e,(function(e){return this._get_config(e)}))}function fe(e){return xe(e,(function(e){return this._get_config(e)}))}function me(e,t){ge(t=t||{}).remove(ye(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ge(e){return"localStorage"===(e=e||{}).persistenceType?R.localStorage:R.cookie}function ye(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function ve(e,t){return ge(t).get(ye(e,t))}function _e(e,t,n){R.isString(t)&&t.length?(ge(n=n||{}).set(ye(t,n),e?1:0,R.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0}
vendor: 4,188 bytes, line 1
1)):z.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function xe(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");r&&(n=he(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(e){z.error("Unexpected error when checking tracking opt-out status: "+e)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var be={set_action:function(e,t){var n={},r={};return R.isObject(e)?R.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set=r,n},unset_action:function(e){var t={},n=[];return R.isArray(e)||(e=[e]),R.each(e,(function(e){this._is_reserved_property(e)||n.push(e)}),this),t.$unset=n,t},set_once_action:function(e,t){var n={},r={};return R.isObject(e)?R.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set_once=r,n},union_action:function(e,t){var n={},r={};return R.isObject(e)?R.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=R.isArray(e)?e:[e])}),this):r[e]=R.isArray(t)?t:[t],n.$union=r,n},append_action:function(e,t){var n={},r={};return R.isObject(e)?R.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$append=r,n},remove_action:function(e,t){var n={},r={};return R.isObject(e)?R.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$remove=r,n},delete_action:function(){var e={$delete:""};return e}},we=function(){};R.extend(we.prototype,be),we.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},we.prototype.set=fe((function(e,t,n){var r=this.set_action(e,t);return R.isObject(e)&&(n=t),this._send_request(r,n)})),we.prototype.set_once=fe((function(e,t,n){var r=this.set_once_action(e,t);return R.isObject(e)&&(n=t),this._send_request(r,n)})),we.prototype.unset=fe((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),we.prototype.union=fe((function(e,t,n){R.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),we.prototype.delete=fe((function(e){var t=this.delete_action();return this._send_request(t,e)})),we.prototype.remove=fe((function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)})),we.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=R.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},we.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},we.prototype._get_config=function(e){return this._mixpanel.get_config(e)},we.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},we.prototype.remove=we.prototype.remove,we.prototype.set=we.prototype.set,we.prototype.set_once=we.prototype.set_once,we.prototype.union=we.prototype.union,we.prototype.unset=we.prototype.unset,we.prototype.toString=we.prototype.toString;var Se=function(){};R.extend(Se.prototype,be),Se.prototype._init=function(e){this._mixpanel=e},Se.prototype.set=de((function(e,t,n){var r=this.set_action(e,t);return R.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r.$set=R.extend({},R.info.people_properties(),r.$set),this._send_request(r,n)})),Se.prototype.set_once=de((function(e,t,n){var r=this.set_once_action(e,t);return R.isObject(e)&&(n=t),this._send_request(r,n)})),Se.prototype.unset=de((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),Se.prototype.increment=de((function(e,t,n){var r={},i={};return R.isObject(e)?(R.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void z.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),n=t):(R.isUndefined(t)&&(t=1),i[e]=t),r.$add=i,this._send_request(r,
1n)})),Se.prototype.append=de((function(e,t,n){R.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)})),Se.prototype.remove=de((function(e,t,n){R.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)})),Se.prototype.union=de((function(e,t,n){R.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),Se.prototype.track_charge=de((function(e,t,n){if(R.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",R.extend({$amount:e},t),n);z.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),Se.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Se.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}z.error("mixpanel.people.delete_user() requires you to call identify() first")},Se.prototype.toString=function(){return this._mixpanel.toString()+".people"},Se.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var o=R.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),R.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),R.truncate(o,255))},Se.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Se.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Se.prototype._enqueue=function(e){"$set"in e?this._mixpanel.persistence._add_to_people_queue("$set",e):"$set_once"in e?this._mixpanel.persistence._add_to_people_queue("$set_once",e):"$unset"in e?this._mixpanel.persistence._add_to_people_queue("$unset",e):"$add"in e?this._mixpanel.persistence._add_to_people_queue("$add",e):"$append"in e?this._mixpanel.persistence._add_to_people_queue("$append",e):"$remove"in e?this._mixpanel.persistence._add_to_people_queue("$remove",e):"$union"in e?this._mixpanel.persistence._add_to_people_queue("$union",e):z.error("Invalid call to _enqueue():",e)},Se.prototype._flush_one_queue=function(e,t,n,r){var i=this,o=R.extend({},this._mixpanel.persistence.load_queue(e)),a=o;R.isUndefined(o)||!R.isObject(o)||R.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),r&&(a=r(o)),t.call(i,a,(function(t,r){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),R.isUndefined(n)||n(t,r)})))},Se.prototype._flush=function(e,t,n,r,i,o,a){var s=this;this._flush_one_queue("$set",this.set,e),this._flush_one_queue("$set_once",this.set_once,r),this._flush_one_queue("$unset",this.unset,o,(function(e){return R.keys(e)})),this._flush_one_queue("$add",this.increment,t),this._flush_one_queue("$union",this.union,i);var l=this._mixpanel.persistence.load_queue("$append");if(!R.isUndefined(l)&&R.isArray(l)&&l.length)for(var u,c=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue("$append",u),R.isUndefined(n)||n(e,t)},h=l.length-1;h>=0;h--)l=this._mixpanel.persistence.load_queue("$append"),u=l.pop(),s._mixpanel.persistence.save(),R.isEmptyObject(u)||s.append(u,c);var p=this._mixpanel.persistence.load_queue("$remove");if(!R.isUndefined(p)&&R.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue("$remove",d),R.isUndefined(a)||a(e,t)},m=p.length-1;m>=0;m--)p=this._mixpanel.persistence.load_queue("$remove"),d=p.pop(),s._mixpanel.persistence.save(),R.isEmptyObject(d)||s.remove(d,f)},Se.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Se.prototype.set=Se.prototype.set,Se.prototype.set_once=Se.prototype.set_once,Se.prototype.unset=Se.prototype.unset,Se.prototype.increment=Se.prototype.increment,Se.prototype.append=Se.prototype.append,Se.prototype.remove=Se.prototype.remove,Se.prototype.union=Se.prototype.union,Se.prototype.track_charge=Se.prototype.track_charge,Se.prototype.clear_charges=Se.prototype.clear_charges,Se.prototype.delete_user=Se.prototype.delete_user,Se.prototype.toString=Se.prototype.toString;var ke,Te,Me=["__mps","__mpso","__mpus","__mpa","__mpap","__mpr","__mpu","$people_distinct_id","__alias","__timers"],Ee=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(z.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&R.localStorage.is_supported()?this.storage=R.localStorage:this.storage=R.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};Ee.prototype.properties=function(){var e={};return this.load(),R.each(this.props,(function(t,n){R.include(Me,n)||(e[n]=t)})),e},Ee.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=R.extend({},e))}},Ee.prototype.upgrade=function(e){var t,n,r=e.upgrade;r&&(t="mp_super_properties","string"==typeof r&&(t=r),n=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),n&&(this.props=R.extend(this.props,n.all,n.events))),e.cookie_name||"mixpanel"===e.name||(t="mp_"+e.token+"_"+e.name,(n=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(n))),this.storage===R.localStorage&&(n=R.cookie.parse(this.name),R.cookie.remove(this.name),R.cookie.remove(this.name,!0),n&&this.register_once(n))},Ee.prototype.save=function(){this.disabled||this.storage.set(this.name,R.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Ee.prototype.load_prop=function(e){return this.load(),this.props[e]},Ee.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Ee.prototype.clear=function(){this.remove(),this.props={}},Ee.prototype.register_once=function(e,t,n){return!!R.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===n?this.default_expiry:n,this.load(),R.each(e,(function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)}),this),this.save(),!0)},Ee.prototype.register=function(e,t){return!!R.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),R.extend(this.props,e),this.save(),!0)},Ee.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Ee.prototype.update_search_keyword=function(e){this.register(R.info.searchInfo(e))},Ee.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:R.info.referringDomain(e)||"$direct"},"")},Ee.prototype.get_referrer_info=function(){return R.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Ee.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Ee.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Ee.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Ee.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Ee.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Ee.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Ee.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Ee.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue("$set"),o=this._get_or_create_queue("$set_once"),a=this._get_or_create_queue("$unset"),s=this._get_or_create_queue("$add"),l=this._get_or_create_queue("$union"),u=this._get_or_create_queue("$remove",[]),c=this._get_or_create_queue("$append",[]);"__mps"===n?(R.extend(i,r),this._pop_from_people_queue("$add",r),this._pop_from_people_queue("$union",r),this._pop_from_people_queue("$unset",r)):"__mpso"===n?(R.each(r,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue("$unset",r)):"__mpus"===n?R.each(r,(function(e){R.each([i,o,s,l],(function(t){e in t&&delete t[e]})),R.each(c,(function(t){e in t&&delete t[e]})),a[e]=!0})):"__mpa"===n?(R.each(r,(function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue("$unset",r)):"__mpu"===n?(R.each(r,(function(e,t){R.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue("$unset",r)):"__mpr"===n?(u.push(r),this._pop_from_people_queue("$append",r)):"__mpap"===n&&(c.push(r),this._pop_from_people_queue("$unset",r)),z.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),z.log(t),this.save()},Ee.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];R.isUndefined(n)||R.each(t,(function(t,r){"$append"===e||"$remove"===e?R.each(n,(function(e){e[r]===t&&delete e[r]})):delete n[r]}),this)},Ee.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Ee.prototype._get_queue_key=function(e){return"$set"===e?"__mps":"$set_once"===e?"__mpso":"$unset"===e?"__mpus":"$add"===e?"__mpa":"$append"===e?"__mpap":"$remove"===e?"__mpr":"$union"===e?"__mpu":void z.error("Invalid queue:",e)},Ee.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=R.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Ee.prototype.set_event_timer=function(e,t){var n=this.load_prop("__timers")||{};n[e]=t,this.props.__timers=n,this.save()},Ee.prototype.remove_event_timer=function(e){var t=(this.load_prop("__timers")||{})[e];return R.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var Ce=function(e){return e},Ie=function(){},Ae=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Pe=!Ae&&-1===C.indexOf("MSIE")&&-1===C.indexOf("Mozilla"),De=null;k.sendBeacon&&(De=function(){return k.sendBeacon.apply(k,arguments)});var Le={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Oe={api_host:"https://api-js.mixpanel.com",api_routes:Le,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ie,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ie,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
1:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_sessions_percent:0,record_idle_timeout_ms:18e5,record_max_ms:864e5,record_mask_text_selector:"*",recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Re=!1,ze=function(){},Ne=function(e,t,n){var r,o="mixpanel"===n?Te:Te[n];if(o&&0===ke)r=o;else{if(o&&!R.isArray(o))return void z.error("You have already initialized "+n);r=new ze}if(r._cached_groups={},r._init(e,t,n),r.people=new Se,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var a=R.info.campaignParams(null),s={},l=!1;R.each(a,(function(e,t){s["initial_"+t]=e,e&&(l=!0)})),l&&r.people.set_once(s)}return i.DEBUG=i.DEBUG||r.get_config("debug"),!R.isUndefined(o)&&R.isArray(o)&&(r._execute_array.call(r.people,o.people),r._execute_array(o)),r};ze.prototype.init=function(e,t,n){if(R.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if("mixpanel"!==n){var r=Ne(e,t,n);return Te[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},ze.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in t||(t.api_host||Oe.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.set_config(R.extend({},Oe,i,t,{name:n,token:e,callback_fn:("mixpanel"===n?n:"mixpanel."+n)+"._jsc"})),this._jsc=Ie,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(R.localStorage.is_supported(!0)&&Ae){if(this.init_batchers(),De&&r.addEventListener){var o=R.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);r.addEventListener("pagehide",(function(e){e.persisted&&o()})),r.addEventListener("visibilitychange",(function(){"hidden"===T.visibilityState&&o()}))}}else this._batch_requests=!1,z.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),R.each(this.get_batcher_configs(),(function(e){z.log("Clearing batch queue "+e.queue_key),R.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Ee(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=R.UUID();this.get_distinct_id()||this.register_once({distinct_id:"$device:"+a,$device_id:a},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},ze.prototype.start_session_recording=pe((function(){if(r.MutationObserver){var e=R.bind((function(){this._recorder=this._recorder||new r.__mp_recorder(this),this._recorder.startRecording()}),this);if(R.isUndefined(r.__mp_recorder)){var t=T.createElement("script");t.type="text/javascript",t.async=!0,t.onload=e,t.src=this.get_config("recorder_src"),T.head.appendChild(t)}else e()}else z.critical("Browser does not support MutationObserver; skipping session recording")})),ze.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():z.critical("Session recorder module not loaded")},ze.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=R.info.campaignParams(null);R.each(e,function(e,t){this.unregister(t)}.bind(this))}},ze.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(T.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(R.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(T.referrer)},ze.prototype._dom_loaded=function(){R.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||R.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},ze.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Re)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},ze.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=R.info.currentUrl()),R.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){r.addEventListener("popstate",(function(){r.dispatchEvent(new Event("mp_locationchange"))})),r.addEventListener("hashchange",(function(){r.dispatchEvent(new Event("mp_locationchange"))}));var n=r.history.pushState;"function"==typeof n&&(r.history.pushState=function(e,t,i){n.call(r.history,e,t,i),r.dispatchEvent(new Event("mp_locationchange"))});var i=r.history.replaceState;"function"==typeof i&&(r.history.replaceState=function(e,t,n){i.call(r.history,e,t,n),r.dispatchEvent(new Event("mp_locationchange"))}),r.addEventListener("mp_locationchange",function(){var n=R.info.currentUrl(),r=!1;("full-url"===e?r=n!==t:"url-with-path-and-query-string"===e?r=n.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(r=n.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),r)&&(this.track_pageview()&&(t=n))}.bind(this))}},ze.prototype._prepare_callback=function(e,t){if(R.isUndefined(e))return null;if(Ae){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],e(i,t)},i},ze.prototype._send_request=function(e,t,n,r){var i=!0;if(Pe)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},a=null;r||!R.isFunction(n)&&"string"!=typeof n||(r=n,n=null),n=R.extend(o,n||{}),Ae||(n.method="GET");var s="POST"===n.method,l=De&&s&&"sendbeacon"===n.transport.toLowerCase(),u=n.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ae||(r?t.callback=r:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+R.HTTPBuildQuery(t);var c=this;if("img"in t){var h=T.createElement("img");h.src=e,T.body.appendChild(h)}else if(l){try{i=De(e,a)}catch(e){c.report_error(e),i=!1}try{r&&r(i?1:0)}catch(e){c.report_error(e)}}else if(Ae)try{var p=new XMLHttpRequest;p.open(n.method,e,!0);var d=this.get_config("xhr_headers");if(s&&(d["Content-Type"]="application/x-www-form-urlencoded"),R.each(d,(function(e,t){p.setRequestHeader(t,e)})),n.timeout_ms&&void 0!==p.timeout){p.timeout=n.timeout_ms;var f=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(r)if(u){var t;try{t=R.JSONDecode(p.responseText)}catch(e){if(c.report_error(e),!n.ignore_json_errors)return;t=p.responseText}r(t)}else r(Number(p.responseText))}else e=p.timeout&&!p.status&&(new Date).getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,c.report_error(e),r&&r(u?{status:0,error:e,xhr_req:p}:0)},p.send(a)}catch(e){c.report_error(e),i=!1}else{var m=T.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=T.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},ze.prototype._execute_array=function(e){var t,n=[],r=[],i=[];R.each(e,(function(e){e&&(t=e[0],R.isArray(t)?i.push(e):"function"==typeof e?e.call(this):R.isArray(e)&&"alias"===t?n.push(e):R.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):r.push(e))}),this);var o=function(e,t){R.each(e,(function(e){if(R.isArray(e[0])){var n=t;R.each(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(n,this),o(r,this),o(i,this)},ze.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},ze.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},ze.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=R.bind((function(e){return new se(e.queue_key,{libConfig:this.config,sendRequestFunc:R.bind((function(t,n,r){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),n,this._prepare_callback(r,t))}),this),beforeSendHook:R.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:R.bind(this.stop_batch_senders,this)})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},ze.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,R.each(this.request_batchers,(function(e){e.start()})))},ze.prototype.stop_batch_senders=function(){this._batch_requests=!1,R.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},ze.prototype.push=function(e){this._execute_array([e])},ze.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},ze.prototype._encode_data_for_request=function(e){var t=R.JSONEncode(e);return"base64"===this.get_config("api_payload_format")&&(t=R.base64Encode(t)),{data:t}},ze.prototype._track_or_batch=function(e,t){var n=R.truncate(e.data,255),r=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||Ie;var s=!0,l=R.bind((function(){return a.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(z.log("MIXPANEL REQUEST:"),z.log(n),this._send_request(r,this._encode_data_for_request(n),a,this._prepare_callback(t,n))):null}),this);return this._batch_requests&&!o?i.enqueue(n,(function(e){e?t(1,n):l()})):s=l(),s&&n},ze.prototype.track=pe((function(e,t,n,r){r||"function"!=typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var o=n.send_immediately;if("function"!=typeof r&&(r=Ie),R.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=R.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!R.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?R.info.marketingParams():{};if(this._recorder){var u=this._recorder.replayId;u&&(t.$mp_replay_id=u)}t=R.extend({},R.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,t);var c=this.get_config("property_blacklist");R.isArray(c)?R.each(c,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+c);var h={event:e,properties:t};return this._track_or_batch({type:"events",data:h,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r)}r(0)}})),ze.prototype.set_group=pe((function(e,t,n){R.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)})),ze.prototype.add_group=pe((function(e,t,n){var r=this.get_property(e),i={};return void 0===r?(i[e]=[t],this.register(i)):-1===r.indexOf(t)&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)})),ze.prototype.remove_group=pe((function(e,t,n){var r=this.get_property(e);if(void 0!==r){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)})),ze.prototype.track_with_groups=pe((function(e,t,n,r){var i=R.extend({},t||{});return R.each(n,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,r)})),ze.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},ze.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},ze.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new we)._init(this,e,t),this._cached_groups[n]=r),r},ze.prototype.track_pageview=pe((function(e,t){"object"!=typeof e&&(e={});var n=(t=t||{}).event_name||"$mp_web_page_view",r=R.extend(R.info.mpPageViewProperties(),R.info.campaignParams(),R.info.clickParams()),i=R.extend({},r,e);return this.track(n,i)})),ze.prototype.track_links=function(){return this._track_dom.call(this,J,arguments)},ze.prototype.track_forms=function(){return this._track_dom.call(this,Q,arguments)},ze.prototype.time_event=function(e){R.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Be={persistent:!0},Fe=function(e){var t;return t=R.isObject(e)?e:R.isUndefined(e)?{}:{days:e},R.extend({},Be,t)};ze.prototype.register=function(e,t){var n=Fe(t);n.persistent?this.persistence.register(e,n.days):R.extend(this.unpersisted_superprops,e)},ze.prototype.register_once=function(e,t,n){var r=Fe(n);r.persistent?this.persistence.register_once(e,t,r.days):(void 0===t&&(t="None"),R.each(e,(function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)}),this))},ze.prototype.unregister=function(e,t){(t=Fe(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},ze.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},ze.prototype.identify=function(e,t,n,r,i,o,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf("$device:"))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==l&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,o,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},ze.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=R.UUID();this.register_once({distinct_id:"$device:"+e,$device_id:e},"")},ze.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},ze.prototype.alias=function(e,t){if(e===this.get_property("$people_distinct_id"))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return R.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single("__al
1ias",e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){n.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},ze.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},ze.prototype.set_config=function(e){R.isObject(e)&&(R.extend(this.config,e),e.batch_size&&R.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),i.DEBUG=i.DEBUG||this.get_config("debug"))},ze.prototype.get_config=function(e){return this.config[e]},ze.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Ce).apply(this,x.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},ze.prototype.get_property=function(e){return this.persistence.load_prop([e])},ze.prototype.toString=function(){var e=this.get_config("name");return"mixpanel"!==e&&(e="mixpanel."+e),e},ze.prototype._event_is_disabled=function(e){return R.isBlockedUA(C)||this._flags.disable_all_events||R.include(this.__disabled_events,e)},ze.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&R.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!R.cookie.get("mp_optout")||(R.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},ze.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},ze.prototype._gdpr_call_func=function(e,t){return t=R.extend({track:R.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),R.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},ze.prototype.opt_in_tracking=function(e){e=R.extend({enable_persistence:!0},e),this._gdpr_call_func(le,e),this._gdpr_update_persistence(e)},ze.prototype.opt_out_tracking=function(e){(e=R.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ue,e),this._gdpr_update_persistence(e)},ze.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ce,e)},ze.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(he,e)},ze.prototype.clear_opt_in_out_tracking=function(e){e=R.extend({enable_persistence:!0},e),this._gdpr_call_func(me,e),this._gdpr_update_persistence(e)},ze.prototype.report_error=function(e,t){z.error.apply(z.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){z.error(t)}},ze.prototype.init=ze.prototype.init,ze.prototype.reset=ze.prototype.reset,ze.prototype.disable=ze.prototype.disable,ze.prototype.time_event=ze.prototype.time_event,ze.prototype.track=ze.prototype.track,ze.prototype.track_links=ze.prototype.track_links,ze.prototype.track_forms=ze.prototype.track_forms,ze.prototype.track_pageview=ze.prototype.track_pageview,ze.prototype.register=ze.prototype.register,ze.prototype.register_once=ze.prototype.register_once,ze.prototype.unregister=ze.prototype.unregister,ze.prototype.identify=ze.prototype.identify,ze.prototype.alias=ze.prototype.alias,ze.prototype.name_tag=ze.prototype.name_tag,ze.prototype.set_config=ze.prototype.set_config,ze.prototype.get_config=ze.prototype.get_config,ze.prototype.get_property=ze.prototype.get_property,ze.prototype.get_distinct_id=ze.prototype.get_distinct_id,ze.prototype.toString=ze.prototype.toString,ze.prototype.opt_out_tracking=ze.prototype.opt_out_tracking,ze.prototype.opt_in_tracking=ze.prototype.opt_in_tracking,ze.prototype.has_opted_out_tracking=ze.prototype.has_opted_out_tracking,ze.prototype.has_opted_in_tracking=ze.prototype.has_opted_in_tracking,ze.prototype.clear_opt_in_out_tracking=ze.prototype.clear_opt_in_out_tracking,ze.prototype.get_group=ze.prototype.get_group,ze.prototype.set_group=ze.prototype.set_group,ze.prototype.add_group=ze.prototype.add_group,ze.prototype.remove_group=ze.prototype.remove_group,ze.prototype.track_with_groups=ze.prototype.track_with_groups,ze.prototype.start_batch_senders=ze.prototype.start_batch_senders,ze.prototype.stop_batch_senders=ze.prototype.stop_batch_senders,ze.prototype.start_session_recording=ze.prototype.start_session_recording,ze.prototype.stop_session_recording=ze.prototype.stop_session_recording,ze.prototype.DEFAULT_API_ROUTES=Le,Ee.prototype.properties=Ee.prototype.properties,Ee.prototype.update_search_keyword=Ee.prototype.update_search_keyword,Ee.prototype.update_referrer_info=Ee.prototype.update_referrer_info,Ee.prototype.get_cross_subdomain=Ee.prototype.get_cross_subdomain,Ee.prototype.clear=Ee.prototype.clear;var Ve={},je=function(){Te.init=function(e,t,n){if(n)return Te[n]||(Te[n]=Ve[n]=Ne(e,t,n),Te[n]._loaded()),Te[n];var i=Te;Ve.mixpanel?i=Ve.mixpanel:e&&((i=Ne(e,t,"mixpanel"))._loaded(),Ve.mixpanel=i),Te=i,1===ke&&(r.mixpanel=Te),R.each(Ve,(function(e,t){"mixpanel"!==t&&(Te[t]=e)})),Te._=R}};
1var Ue=(ke=0,Te=new ze,je(),Te.init(),function(){function e(){e.done||(e.done=!0,Re=!0,Pe=!1,R.each(Ve,(function(e){e._dom_loaded()})))}if(T.addEventListener)"complete"===T.readyState?e():T.addEventListener("DOMContentLoaded",e,!1);else if(T.attachEvent){T.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}T.documentElement.doScroll&&t&&function t(){try{T.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}R.register_event(r,"load",e,!0)}(),Te);e.exports=Ue},function(e,t){var n="undefined"==typeof Float32Array?Array:Float32Array;function r(){var e=new n(6);return i(e),e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}t.create=r,t.identity=i,t.copy=o,t.mul=function(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e},t.translate=function(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e},t.rotate=function(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=-r*u+a*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e},t.scale=function(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e},t.invert=function(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null},t.clone=function(e){var t=r();return o(t,e),t}},function(e,t,n){e.exports=n(261)},function(e){e.exports=JSON.parse('{"colors":{"air":"#59d4e5","ambassador":"#f1890f","earth":"#f1c40f","water":"#4dce47","other":"#836eff"},"countries":{"southAmerica":["AR","BO","BR","CL","CO","EC","GF","GY","FK","PY","PE","SR","UY","VE"],"europe":["AD","AL","AT","BA","BE","BG","BY","CH","CY","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GR","HR","HU","IE","IS","IT","KV","LI","LT","LU","LV","MC","MD","ME","MK","MT","NC","NL","NO","PL","PT","RO","RS","RU","SE","SI","SK","SM","TR","UA","VA"]},"sports":{"Kayaking":{"markerIcon":"kayak_marker.png","sportIcon":"kayak.png","sportType":"water"},"RoadBiking":{"markerIcon":"roadbiking_marker.png","sportIcon":"roadbiking.png","sportType":"earth"},"Wingsuit":{"markerIcon":"wingsuit_marker.png","sportIcon":"wingsuit.png","sportType":"air"},"Canopy":{"markerIcon":"canopy_marker.png","sportIcon":"canopy.png","sportType":"air"},"BaseJump":{"markerIcon":"basejump_marker.png","sportIcon":"basejump.png","sportType":"air"},"Bungee":{"markerIcon":"bungee_marker.png","sportIcon":"bungee.png","sportType":"air"},"Slackline":{"markerIcon":"slackline_marker.png","sportIcon":"slackline.png","sportType":"air"},"Gliding":{"markerIcon":"gliding_marker.png","sportIcon":"gliding.png","sportType":"air"},"SpeedFlying":{"markerIcon":"speedfly_marker.png","sportIcon":"speedfly.png","sportType":"air"},"Skydiving":{"markerIcon":"skydiving_marker.png","sportIcon":"skydiving.png","sportType":"air"},"Paragliding":{"markerIcon":"paragliding_marker.png","sportIcon":"paragliding.png","sportType":"air"},"Skiing":{"markerIcon":"ski_marker.png","sportIcon":"ski.png","sportType":"earth"},"Snowboarding":{"markerIcon":"snowboard_marker.png","sportIcon":"snowboard.png","sportType":"earth"},"SnowshoeTrekking":{"markerIcon":"snowshoe_marker.png","sportIcon":"snowshoe.png","sportType":"earth"},"Running":{"markerIcon":"running_marker.png","sportIcon":"running.png","sportType":"earth"},"TrailRunning":{"markerIcon":"trail_marker.png","sportIcon":"trail.png","sportType":"earth"},"Mountaneering":{"markerIcon":"mountaneering_marker.png","sportIcon":"mountaneering.png","sportType":"earth"},"Climbing":{"markerIcon":"climbing_marker.png","sportIcon":"climbing.png","sportType":"earth"},"IceClimbing":{"markerIcon":"iceclimbing_marker.png","sportIcon":"iceclimbing.png","sportType":"earth"},"HorsebackRiding":{"markerIcon":"horseback_marker.png","sportIcon":"horseback.png","sportType":"earth"},"MountainBiking":{"markerIcon":"biking_marker.png","sportIcon":"biking.png","sportType":"earth"},"MTBDownhill":{"markerIcon":"downhill_marker.png","sportIcon":"downhill.png","sportType":"earth"},"Snowmobile":{"markerIcon":"snowmobile_marker.png","sportIcon":"snowmobile.png","sportType":"earth"},"Sandboarding":{"markerIcon":"sandboard_marker.png","sportIcon":"sandboard.png","sportType":"earth"},"Mountainboarding":{"markerIcon":"mountainboard_marker.png","sportIcon":"mountainboard.png","sportType":"earth"},"4x4offRoad":{"markerIcon":"offroad_marker.png","sportIcon":"offroad.png","sportType":"earth"},"Skate":{"markerIcon":"skate_marker.png","sportIcon":"skate.png","sportType":"earth"},"Trekking":{"markerIcon":"trekking_marker.png","sportIcon":"trekking.png","sportType":"earth"},"BackCountrySkiing":{"markerIcon":"backcountryskying_marker.png","sportIcon":"backcountryskying.png","sportType":"earth"},"Longboarding":{"markerIcon":"longboard_marker.png","sportIcon":"longboard.png","sportType":"earth"},"MotoEnduro":{"markerIcon":"enduro_marker.png","sportIcon":"enduro.png","sportType":"earth"},"MotoTurismo":{"markerIcon":"touring_marker.png","sportIcon":"touring.png","sportType":"earth"},"Motocross":{"markerIcon":"motocross_marker.png","sportIcon":"motocross.png","sportType":"earth"},"RollerSkating":{"markerIcon":"skate_marker.png","sportIcon":"skate.png","sportType":"earth"},"BirdWatching":{"markerIcon":"bird_marker.png","sportIcon":"bird.png","sportType":"earth"},"ScubaDiving":{"markerIcon":"scuba_marker.png","sportIcon":"scuba.png","sportType":"water"},"Wakeboarding":{"markerIcon":"wakeboard_marker.png","sportIcon":"wakeboard.png","sportType":"water"},"Waterskiing":{"markerIcon":"waterski_marker.png","sportIcon":"waterski.png","sportType":"water"},"Rafting":{"markerIcon":"rafting_marker.png","sportIcon":"rafting.png","sportType":"water"},"Surfing":{"markerIcon":"surf_marker.png","sportIcon":"surf.png","sportType":"water"},"Kitesurfing":{"markerIcon":"kitesurf_marker.png","sportIcon":"kitesurf.png","sportType":"water"},"Windsurfing":{"markerIcon":"windsurf_marker.png","sportIcon":"windsurf.png","sportType":"water"},"SeaKayaking":{"markerIcon":"seakayak_marker.png","sportIcon":"seakayak.png","sportType":"water"},"Rowing":{"markerIcon":"rowing_marker.png","sportIcon":"rowing.png","sportType":"water"},"Skimboarding":{"markerIcon":"skimboard_marker.png","sportIcon":"skimboard.png","sportType":"water"},"StandUpPaddling":{"markerIcon":"paddle_marker.png","sportIcon":"paddle.png","sportType":"water"},"Fishing":{"markerIcon":"fishing_marker.png","sportIcon":"fishing.png","sportType":"water"},"FlyFishing":{"markerIcon":"flyfishing_marker.png","sportIcon":"flyfishing.png","sportType":"water"},"Sailing":{"markerIcon":"sailing_marker.png","sportIcon":"sailing.png","sportType":"water"},"Bodyboarding":{"markerIcon":"bodyboard_marker.png","sportIcon":"bodyboard.png","sportType":"water"},"HangGliding":{"markerIcon":"hanggliding_marker.png","sportIcon":"hanggliding.png","sportType":"air"},"BMX":{"markerIcon":"bmx_marker.png","sportIcon":"bmx.png","sportType":"earth"},"ATV":{"markerIcon":"atv_marker.png","sportIcon":"atv.png","sportType":"earth"},"Quads":{"markerIcon":"quads_marker.png","sportIcon":"quads.png","sportType":"earth"},"Flowride":{"markerIcon":"flowride_marker.png","sportIcon":"flowride.png","sportType":"water"},"FreeDiving":{"markerIcon":"apnea_marker.png","sportIcon":"apnea.png","sportType":"water"},"Jetski":{"markerIcon":"jetski_marker.png","sportIcon":"jetski.png","sportType":"water"},"Camping":{"markerIcon":"camping_marker.png","sportIcon":"camping.png","sportType":"earth"},"WildlifeWatching":{"markerIcon":"wildlife_marker.png","sportIcon":"wildlife.png","sportType":"earth"},"Swimming":{"markerIcon":"swimming_marker.png","sportIcon":"swimming.png","sportType":"water"},"Plogging":{"markerIcon":"plogging_marker.png","sportIcon":"plogging.png","sportType":"earth"},"RV":{"markerIcon":"rv_marker.png","sportIcon":"rv.png","sportType":"earth"},"Walking":{"markerIcon":"walking_marker.png","sportIcon":"walking.png","sportType":"earth"},"EBiking":{"markerIcon":"ebiking_marker.png","sportIcon":"ebiking.png","sportType":"earth"},"GravelBiking":{"markerIcon":"gravelbiking_marker.png","sportIcon":"gravelbiking.png","sportType":"earth"},"PetWalking":{"markerIcon":"petwalking_marker.png","sportIcon":"petwalking.png","sportType":"earth"},"ActiveBreaks":{"markerIcon":"activebreaks_marker.png","sportIcon":"activebreaks.png","sportType":"other"},"Athletics":{"markerIcon":"athletics_marker.png","sportIcon":"athletics.png","sportType":"other"},"Baseball":{"markerIcon":"baseball_marker.png","sportIcon":"baseball.png","sportType":"other"},"Basketball":{"markerIcon":"basketball_marker.png","sportIcon":"basketball.png","sportType":"other"},"Boxing":{"markerIcon":"boxing_marker.png","sportIcon":"boxing.png","sportType":"other"},"CrossFit":{"markerIcon":"crossfit_marker.png","sportIcon":"crossfit.png","sportType":"other"},"Dancing":{"markerIcon":"dancing_marker.png","sportIcon":"dancing.png","sportType":"other"},"EllipticalTrainer":{"markerIcon":"ellipticaltrainer_marker.png","sportIcon":"ellipticaltrainer.png","sportType":"other"},"Golf":{"markerIcon":"golf_marker.png","sportIcon":"golf.png","sportType":"other"},"Gym":{"markerIcon":"gym_marker.png","sportIcon":"gym.png","sportType":"other"},"HIIT":{"markerIcon":"hiit_marker.png","sportIcon":"hiit.png","sportType":"other"},"Hockey":{"markerIcon":"hockey_marker.png","sportIcon":"hockey.png","sportType":"other"},"IndoorCycling":{"markerIcon":"indoorcycling_marker.png","sportIcon":"indoorcycling.png","sportType":"other"},"MartialArts":{"markerIcon":"martialarts_marker.png","sportIcon":"martialarts.png","sportType":"other"},"Padel":{"markerIcon":"padel_marker.png","sportIcon":"padel.png","sportType":"other"},"Pilates":{"markerIcon":"pilates_marker.png","sportIcon":"pilates.png","sportType":"other"}
1,"StairClimbing":{"markerIcon":"stairclimbing_marker.png","sportIcon":"stairclimbing.png","sportType":"other"},"TableTennis":{"markerIcon":"tabletennis_marker.png","sportIcon":"tabletennis.png","sportType":"other"},"Tennis":{"markerIcon":"tennis_marker.png","sportIcon":"tennis.png","sportType":"other"},"Treadmill":{"markerIcon":"treadmill_marker.png","sportIcon":"treadmill.png","sportType":"other"},"Soccer":{"markerIcon":"soccer_marker.png","sportIcon":"soccer.png","sportType":"other"},"Volleyball":{"markerIcon":"volleyball_marker.png","sportIcon":"volleybal.png","sportType":"other"},"WeightTraining":{"markerIcon":"weighttraining_marker.png","sportIcon":"weighttraining.png","sportType":"other"},"Workout":{"markerIcon":"workout_marker.png","sportIcon":"workout.png","sportType":"other"},"Yoga":{"markerIcon":"yoga_marker.png","sportIcon":"yoga.png","sportType":"other"}},"difficulties":["beginner","intermediate","expert"]}')},function(e,t,n){var r=n(19),i=n(121),o=n(1),a=o.getContext,s=o.extend,l=o.retrieve2,u=o.retrieve3,c=o.trim,h={},p=0,d=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f={};function m(e,t){var n=e+":"+(t=t||"12px sans-serif");if(h[n])return h[n];for(var r=(e+"").split("\n"),i=0,o=0,a=r.length;o<a;o++)i=Math.max(k(r[o],t).width,i);return p>5e3&&(p=0,h={}),p++,h[n]=i,i}function g(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function y(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function v(e,t,n){var r=t.textPosition,i=t.textDistance,o=n.x,a=n.y;i=i||0;var s=n.height,l=n.width,u=s/2,c="left",h="top";switch(r){case"left":o-=i,a+=u,c="right",h="middle";break;case"right":o+=i+l,a+=u,h="middle";break;case"top":o+=l/2,a-=i,c="center",h="bottom";break;case"bottom":o+=l/2,a+=s+i,c="center";break;case"inside":o+=l/2,a+=u,c="center",h="middle";break;case"insideLeft":o+=i,a+=u,h="middle";break;case"insideRight":o+=l-i,a+=u,c="right",h="middle";break;case"insideTop":o+=l/2,a+=i,c="center";break;case"insideBottom":o+=l/2,a+=s-i,c="center",h="bottom";break;case"insideTopLeft":o+=i,a+=i;break;case"insideTopRight":o+=l-i,a+=i,c="right";break;case"insideBottomLeft":o+=i,a+=s-i,h="bottom";break;case"insideBottomRight":o+=l-i,a+=s-i,c="right",h="bottom"}return(e=e||{}).x=o,e.y=a,e.textAlign=c,e.textVerticalAlign=h,e}function _(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=x(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=b(o[a],i);return o.join("\n")}function x(e,t,n,r){(r=s({},r)).font=t;n=l(n,"...");r.maxIterations=l(r.maxIterations,2);var i=r.minChar=l(r.minChar,0);r.cnCharWidth=m("国",t);var o=r.ascCharWidth=m("a",t);r.placeholder=l(r.placeholder,"");for(var a=e=Math.max(0,e-1),u=0;u<i&&a>=o;u++)a-=o;var c=m(n,t);return c>a&&(n="",c=0),a=e-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=a,r.containerWidth=e,r}function b(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=m(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?w(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=m(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function w(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function S(e){return m("国",e)}function k(e,t){return f.measureText(e,t)}function T(e,t,n,r,i){null!=e&&(e+="");var o=l(r,S(t)),a=e?e.split("\n"):[],s=a.length*o,u=s,c=!0;if(n&&(u+=n[0]+n[2]),e&&i){c=!1;var h=i.outerHeight,p=i.outerWidth;if(null!=h&&u>h)e="",a=[];else if(null!=p)for(var d=x(p-(n?n[1]+n[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),f=0,m=a.length;f<m;f++)a[f]=b(a[f],d)}return{lines:a,height:s,outerHeight:u,lineHeight:o,canCacheByTextString:c}}function M(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;for(var r,o=d.lastIndex=0;null!=(r=d.exec(e));){var a=r.index;a>o&&E(n,e.substring(o,a)),E(n,r[2],r[1]),o=d.lastIndex}o<e.length&&E(n,e.substring(o,e.length));var s=n.lines,c=0,h=0,p=[],f=t.textPadding,g=t.truncate,y=g&&g.outerWidth,v=g&&g.outerHeight;f&&(null!=y&&(y-=f[1]+f[3]),null!=v&&(v-=f[0]+f[2]));for(var x=0;x<s.length;x++){for(var b=s[x],w=0,k=0,T=0;T<b.tokens.length;T++){var M=(N=b.tokens[T]).styleName&&t.rich[N.styleName]||{},C=N.textPadding=M.textPadding,I=N.font=M.font||t.font,A=N.textHeight=l(M.textHeight,S(I));if(C&&(A+=C[0]+C[2]),N.height=A,N.lineHeight=u(M.textLineHeight,t.textLineHeight,A),N.textAlign=M&&M.textAlign||t.textAlign,N.textVerticalAlign=M&&M.textVerticalAlign||"middle",null!=v&&c+N.lineHeight>v)return{lines:[],width:0,height:0};N.textWidth=m(N.text,I);var P=M.textWidth,D=null==P||"auto"===P;if("string"==typeof P&&"%"===P.charAt(P.length-1))N.percentWidth=P,p.push(N),P=0;else{if(D){P=N.textWidth;
1var L=M.textBackgroundColor,O=L&&L.image;O&&(O=i.findExistImage(O),i.isImageReady(O)&&(P=Math.max(P,O.width*A/O.height)))}var R=C?C[1]+C[3]:0;P+=R;var z=null!=y?y-k:null;null!=z&&z<P&&(!D||z<R?(N.text="",N.textWidth=P=0):(N.text=_(N.text,z-R,I,g.ellipsis,{minChar:g.minChar}),N.textWidth=m(N.text,I),P=N.textWidth+R))}k+=N.width=P,M&&(w=Math.max(w,N.lineHeight))}b.width=k,b.lineHeight=w,c+=w,h=Math.max(h,k)}n.outerWidth=n.width=l(t.textWidth,h),n.outerHeight=n.height=l(t.textHeight,c),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(x=0;x<p.length;x++){var N,B=(N=p[x]).percentWidth;N.width=parseInt(B,10)/100*h}return n}function E(e,t,n){for(var r=""===t,i=t.split("\n"),o=e.lines,a=0;a<i.length;a++){var s=i[a],l={styleName:n,text:s,isLineHolder:!s&&!r};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||r)&&u.push(l)}}}f.measureText=function(e,t){var n=a();return n.font=t||"12px sans-serif",n.measureText(e)},t.DEFAULT_FONT="12px sans-serif",t.$override=function(e,t){f[e]=t},t.getWidth=m,t.getBoundingRect=function(e,t,n,i,o,a,s,l){return s?function(e,t,n,i,o,a,s,l){var u=M(e,{rich:s,truncate:l,font:t,textAlign:n,textPadding:o,textLineHeight:a}),c=u.outerWidth,h=u.outerHeight,p=g(0,c,n),d=y(0,h,i);return new r(p,d,c,h)}(e,t,n,i,o,a,s,l):function(e,t,n,i,o,a,s){var l=T(e,t,o,a,s),u=m(e,t);o&&(u+=o[1]+o[3]);var c=l.outerHeight,h=g(0,u,n),p=y(0,c,i),d=new r(h,p,u,c);return d.lineHeight=l.lineHeight,d}(e,t,n,i,o,a,l)},t.adjustTextX=g,t.adjustTextY=y,t.calculateTextPosition=v,t.adjustTextPositionOnRect=function(e,t,n){return v({},{textPosition:e,textDistance:n},t)},t.truncateText=_,t.getLineHeight=S,t.measureText=k,t.parsePlainText=T,t.parseRichText=M,t.makeFont=function(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&c(t)||e.textFont||e.font}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(23),o=n(61),a=n(86),s=n(60),l=s.defaultDimValueGetters,u=s.DefaultDataProvider,c=n(88).summarizeDimensions,h=n(190),p=r.isObject,d={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},f="undefined"==typeof Uint32Array?Array:Uint32Array,m="undefined"==typeof Int32Array?Array:Int32Array,g="undefined"==typeof Uint16Array?Array:Uint16Array;function y(e){return e._rawCount>65535?f:g}var v=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],_=["_extent","_approximateExtent","_rawExtent"];function x(e,t){r.each(v.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,r.each(_,(function(n){e[n]=r.clone(t[n])})),e._calculationInfo=r.extend(t._calculationInfo)}var b=function(e,t){e=e||["x","y"];for(var n={},i=[],o={},a=0;a<e.length;a++){var s=e[a];r.isString(s)?s=new h({name:s}):s instanceof h||(s=new h(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(l),n[l]=s,s.index=a,s.createInvertedIndices&&(o[l]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=c(this),this._invertedIndicesMap=o,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=b.prototype;function S(e,t,n,r,i){var o=d[t.type],a=r-1,s=t.name,l=e[s][a];if(l&&l.length<n){for(var u=new o(Math.min(i-a*n,n)),c=0;c<l.length;c++)u[c]=l[c];e[s][a]=u}for(var h=r*n;h<i;h+=n)e[s].push(new o(Math.min(i-h,n)))}function k(e){var t=e._invertedIndicesMap;r.each(t,(function(n,r){var i=e._dimensionInfos[r].ordinalMeta;if(i){n=t[r]=new m(i.categories.length);for(var o=0;o<n.length;o++)n[o]=-1;for(o=0;o<e._count;o++)n[e.get(r,o)]=o}}))}function T(e,t,n){var r;if(null!=t){var i=e._chunkSize,o=Math.floor(n/i),a=n%i,s=e.dimensions[t],l=e._storage[s][o];if(l){r=l[a];var u=e._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(r=u.categories[r])}}return r}function M(e){return e}function E(e){return e<this._count&&e>=0?this._indices[e]:-1}function C(e,t){var n=e._idList[t];return null==n&&(n=T(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n}function I(e){return r.isArray(e)||(e=[e]),e}function A(e,t){var n=e.dimensions,i=new b(r.map(n,e.getDimensionInfo,e),e.hostModel);x(i,e);for(var o=i._storage={},a=e._storage,s=0;s<n.length;s++){var l=n[s];a[l]&&(r.indexOf(t,l)>=0?(o[l]=P(a[l]),i._rawExtent[l]=D(),i._extent[l]=null):o[l]=a[l])}return i}function P(e){for(var t,n,r=new Array(e.length),i=0;i<e.length;i++)r[i]=(t=e[i],n=void 0,(n=t.constructor)===Array?t.slice():new n(t));return r}function D(){return[1/0,-1/0]}w.type="list",w.hasItemOption=!0,w.getDimension=function(e){return"number"!=typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},w.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return!0===t?(r||[]).slice():r&&r[t]},w.initData=function(e,t,n){(a.isInstance(e)||r.isArrayLike(e))&&(e=new u(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var r=t.count();t.persistent||(r+=n),this._initDataFromProvider(n,r)},w.appendValues=function(e,t){for(var n=this._chunkSize,r=this._storage,i=this.dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),u=this._chunkCount,c=0;c<o;c++){a[y=i[c]]||(a[y]=D()),r[y]||(r[y]=[]),S(r,this._dimensionInfos[y],n,u,l),this._chunkCount=r[y].length}for(var h=new Array(o),p=s;p<l;p++){for(var d=p-s,f=Math.floor(p/n),m=p%n,g=0;g<o;g++){var y=i[g],v=this._dimValueGetterArrayRows(e[d]||h,y,d,g);r[y][f][m]=v;var _=a[y];v<_[0]&&(_[0]=v),v>_[1]&&(_[1]=v)}t&&(this._nameList[p]=t[d])}this._rawCount=this._count=l,this._extent={},k(this)},w._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,r=this._chunkSize,i=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,p=this._nameRepeatCount={},d=this._chunkCount,f=0;f<s;f++){h[b=a[f]]||(h[b]=D());var m=l[b];0===m.otherDims.itemName&&(n=this._nameDimIdx=f),0===m.otherDims.itemId&&(this._idDimIdx=f),o[b]||(o[b]=[]),S(o,m,r,d,t),this._chunkCount=o[b].length}for(var g=new Array(s),y=e;y<t;y++){g=i.getItem(y,g);for(var v=Math.floor(y/r),_=y%r,x=0;x<s;x++){var b,w=o[b=a[x]][v],T=this._dimValueGetter(g,b,y,x);w[_]=T;var M=h[b];T<M[0]&&(M[0]=T),T>M[1]&&(M[1]=T)}if(!i.pure){var E=u[y];if(g&&null==E)if(null!=g.name)u[y]=E=g.name;else if(null!=n){var C=a[n],I=o[C][v];if(I){E=I[_];var A=l[C].ordinalMeta;A&&A.categories.length&&(E=A.categories[E])}}var P=null==g?null:g.id;null==P&&null!=E&&(p[E]=p[E]||0,P=E,p[E]>0&&(P+="__ec__"+p[E]),p[E]++),null!=P&&(c[y]=P)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent={},k(this)}},w.count=function(){return this._count},w.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){i=new t(n);for(var r=0;r<n;r++)i[r]=e[r]}else i=new t(e.buffer,0,n)}else{var i=new(t=y(this))(this.count());for(r=0;r<i.length;r++)i[r]=r}return i},w.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var r=Math.floor(t/this._chunkSize),i=t%this._chunkSize;return n[e][r][i]},w.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var r=Math.floor(t/this._chunkSize),i=t%this._chunkSize;return n[r][i]},w._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),r=t%this._chunkSize;return this._storage[e][n][r]},w.getValues=function(e,t){var n=[];r.isArray(e)||(t=e,e=this.dimensions);for(var i=0,o=e.length;i<o;i++)n.push(this.get(e[i],t));return n},w.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},w.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=D();if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=this._getFast(e,this.getRawIndex(s));l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},w.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},w.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},w.getCalculationInfo=function(e){return this._calculationInfo[e]},w.setCalculationInfo=function(e,t){p(e)?r.extend(this._calculationInfo,e):this._calculationInfo[e]=t},w.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},w.getMedian=function(e){var t=[];this.each(e,(function(e,n){isNaN(e)||t.push(e)}));var n=[].concat(t).sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},w.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},w.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},w.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},w.indicesOfNearest=function(e,t,n){var r=[];if(!this._storage[e])return r;null==n&&(n=1/0);for(var i=1/0,o=-1,a=0,s=0,l=this.count();s<l;s++){var u=t-this.get(e,s),c=Math.abs(u);c<=n&&((c<i||c===i&&u>=0&&o<0)&&(i=c,o=u,a=0),u===o&&(r[a++]=s))}return r.length=a,r},w.getRawIndex=M,w.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];t.push(this.get(r,e))}return t},w.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||T(this,this._nameDimIdx,t)||""},w.getId=function(e){return C(this,this.getRawIndex(e))},w.each=function(e,t,n,i){"use strict";if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;for(var o=(e=r.map(I(e),this.getDimension,this)).length,a=0;a<this.count();a++)switch(o){case 0:t.call(n,a);break;case 1:t.call(n,this.get(e[0],a),a);break;case 2:t.call(n,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var s=0,l=[];s<o;s++)l[s]=this.get(e[s],a);l[s]=a,t.apply(n,l)}}},w.filterSelf=function(e,t,n,i){"use strict";if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=r.map(I(e),this.getDimension,this);for(var o=this.count(),a=new(y(this))(o),s=[],l=e.length,u=0,c=e[0],h=0;h<o;h++){var p,d=this.getRawIndex(h);if(0===l)p=t.call(n,h);else if(1===l){var f=this._getFast(c,d);p=t.call(n,f,h)}else{for(var m=0;m<l;m++)s[m]=this._getFast(c,d);s[m]=h,p=t.apply(n,s)}p&&(a[u++]=d)}
1return u<o&&(this._indices=a),this._count=u,this._extent={},this.getRawIndex=this._indices?E:M,this}},w.selectRange=function(e){"use strict";if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var r=t.length;if(r){var i=this.count(),o=new(y(this))(i),a=0,s=t[0],l=e[s][0],u=e[s][1],c=!1;if(!this._indices){var h=0;if(1===r){for(var p=this._storage[t[0]],d=0;d<this._chunkCount;d++)for(var f=p[d],m=Math.min(this._count-d*this._chunkSize,this._chunkSize),g=0;g<m;g++){((w=f[g])>=l&&w<=u||isNaN(w))&&(o[a++]=h),h++}c=!0}else if(2===r){p=this._storage[s];var v=this._storage[t[1]],_=e[t[1]][0],x=e[t[1]][1];for(d=0;d<this._chunkCount;d++){f=p[d];var b=v[d];for(m=Math.min(this._count-d*this._chunkSize,this._chunkSize),g=0;g<m;g++){var w=f[g],S=b[g];(w>=l&&w<=u||isNaN(w))&&(S>=_&&S<=x||isNaN(S))&&(o[a++]=h),h++}}c=!0}}if(!c)if(1===r)for(g=0;g<i;g++){var k=this.getRawIndex(g);((w=this._getFast(s,k))>=l&&w<=u||isNaN(w))&&(o[a++]=k)}else for(g=0;g<i;g++){var T=!0;for(k=this.getRawIndex(g),d=0;d<r;d++){var C=t[d];((w=this._getFast(n,k))<e[C][0]||w>e[C][1])&&(T=!1)}T&&(o[a++]=this.getRawIndex(g))}return a<i&&(this._indices=o),this._count=a,this._extent={},this.getRawIndex=this._indices?E:M,this}}},w.mapArray=function(e,t,n,r){"use strict";"function"==typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},w.map=function(e,t,n,i){"use strict";n=n||i||this;var o=A(this,e=r.map(I(e),this.getDimension,this));o._indices=this._indices,o.getRawIndex=o._indices?E:M;for(var a=o._storage,s=[],l=this._chunkSize,u=e.length,c=this.count(),h=[],p=o._rawExtent,d=0;d<c;d++){for(var f=0;f<u;f++)h[f]=this.get(e[f],d);h[u]=d;var m=t&&t.apply(n,h);if(null!=m){"object"!=typeof m&&(s[0]=m,m=s);for(var g=this.getRawIndex(d),y=Math.floor(g/l),v=g%l,_=0;_<m.length;_++){var x=e[_],b=m[_],w=p[x],S=a[x];S&&(S[y][v]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return o},w.downSample=function(e,t,n,r){for(var i=A(this,[e]),o=i._storage,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=this._chunkSize,h=i._rawExtent[e],p=new(y(this))(u),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var m=0;m<s;m++){var g=this.getRawIndex(f+m),v=Math.floor(g/c),_=g%c;a[m]=l[v][_]}var x=n(a),b=this.getRawIndex(Math.min(f+r(a,x)||0,u-1)),w=b%c;l[Math.floor(b/c)][w]=x,x<h[0]&&(h[0]=x),x>h[1]&&(h[1]=x),p[d++]=b}return i._count=d,i._indices=p,i.getRawIndex=E,i},w.getItemModel=function(e){var t=this.hostModel;return new i(this.getRawDataItem(e),t,t&&t.ecModel)},w.diff=function(e){var t=this;return new o(e?e.getIndices():[],this.getIndices(),(function(t){return C(e,t)}),(function(e){return C(t,e)}))},w.getVisual=function(e){var t=this._visual;return t&&t[e]},w.setVisual=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},w.setLayout=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},w.getLayout=function(e){return this._layout[e]},w.getItemLayout=function(e){return this._itemLayouts[e]},w.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?r.extend(this._itemLayouts[e]||{},t):t},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(e,t,n){var r=this._itemVisuals[e],i=r&&r[t];return null!=i||n?i:this.getVisual(t)},w.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{},i=this.hasItemVisual;if(this._itemVisuals[e]=r,p(t))for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o],i[o]=!0);else r[t]=n,i[t]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var L=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};w.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(L,t)),this._graphicEls[e]=t},w.getItemGraphicEl=function(e){return this._graphicEls[e]},w.eachItemGraphicEl=function(e,t){r.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},w.cloneShallow=function(e){if(!e){var t=r.map(this.dimensions,this.getDimensionInfo,this);e=new b(t,this.hostModel)}if(e._storage=this._storage,x(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?E:M,e},w.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);
1return t.apply(this,[e].concat(r.slice(arguments)))})},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var O=b;e.exports=O},function(e,t,n){var r=n(1),i=n(12),o=n(19),a=n(32).calculateTextPosition,s=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),l=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),u=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*d,l+s+p*d,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+h*d,l+s+p*d,n-c,l+s),e.closePath()}}),c=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),h={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:l,pin:u,arrow:c,triangle:s},p={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},d={};r.each(h,(function(e,t){d[t]=new e}));var f=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=a(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.textPosition&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=d[r];i||(i=d[r="rect"]),p[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function m(e,t){if("image"!==this.type){var n=this.style,r=this.shape;r&&"line"===r.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}t.createSymbol=function(e,t,n,r,a,s,l){var u,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(u=0===e.indexOf("image://")?i.makeImage(e.slice(8),new o(t,n,r,a),l?"center":"cover"):0===e.indexOf("path://")?i.makePath(e.slice(7),{},new o(t,n,r,a),l?"center":"cover"):new f({shape:{symbolType:e,x:t,y:n,width:r,height:a}})).__isEmptyBrush=c,u.setColor=m,u.setColor(s),u}},function(e,t,n){var r=n(1),i={};function o(){this._coordinateSystems=[]}o.prototype={constructor:o,create:function(e,t){var n=[];r.each(i,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},update:function(e,t){r.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},o.register=function(e,t){i[e]=t},o.get=function(e){return i[e]};var a=o;e.exports=a},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(352),o=n(106),a=n(105),s=n(13),l=n(107),u=l.prepareLayoutBarSeries,c=l.makeColumnLayout,h=l.retrieveColumnLayout,p=n(19);function d(e,t){var n,i,o,a=e.type,l=t.getMin(),p=t.getMax(),d=e.getExtent();"ordinal"===a?n=t.getCategories().length:(i=t.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=s.parsePercent(i[0],1),i[1]=s.parsePercent(i[1],1),o=d[1]-d[0]||Math.abs(d[0])),"dataMin"===l?l=d[0]:"function"==typeof l&&(l=l({min:d[0],max:d[1]})),"dataMax"===p?p=d[1]:"function"==typeof p&&(p=p({min:d[0],max:d[1]}));var f=null!=l,m=null!=p;null==l&&(l="ordinal"===a?n?0:NaN:d[0]-i[0]*o),null==p&&(p="ordinal"===a?n?n-1:NaN:d[1]+i[1]*o),(null==l||!isFinite(l))&&(l=NaN),(null==p||!isFinite(p))&&(p=NaN),e.setBlank(r.eqNaN(l)||r.eqNaN(p)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(l>0&&p>0&&!f&&(l=0),l<0&&p<0&&!m&&(p=0));var g=t.ecModel;if(g&&"time"===a){var y,v=u("bar",g);if(r.each(v,(function(e){y|=e.getBaseAxis()===t.axis})),y){var _=c(v),x=function(e,t,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],s=h(i,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;r.each(s,(function(e){l=Math.min(e.offset,l)}));var u=-1/0;r.each(s,(function(e){u=Math.max(e.offset+e.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,p=t-e,d=p/(1-(l+u)/a)-p;return{min:e-=d*(l/c),max:t+=d*(u/c)}}(l,p,t,_);l=x.min,p=x.max}}return{extent:[l,p],fixMin:f,fixMax:m}}function f(e){var t,n=e.getLabelModel().get("formatter"),r="category"===e.type?e.scale.getExtent()[0]:null;return"string"==typeof n?(t=n,n=function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(t,i){return null!=r&&(i=t-r),n(m(e,t),i)}:function(t){return e.scale.getLabel(t)}}function m(e,t){return"category"===e.type?e.scale.getLabel(t):t}function g(e){var t=e.get("interval");return null==t?"auto":t}n(353),n(194),t.getScaleExtent=d,t.niceScaleExtent=function(e,t){var n=d(e,t),r=n.extent,i=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)},t.createScaleByModel=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new i(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(a.getClass(t)||o).create(e)}},t.ifAxisCrossZero=function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)},t.makeLabelFormatter=f,t.getAxisRawValue=m,t.estimateLabelUnionRect=function(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var r,i,o="category"===e.type,a=n.getExtent();i=o?n.count():(r=n.getTicks()).length;var s,l,u,c,h,d,m,g,y,v=e.getLabelModel(),_=f(e),x=1;i>40&&(x=Math.ceil(i/40));for(var b=0;b<i;
1b+=x){var w=_(r?r[b]:a[0]+b),S=v.getTextRect(w),k=(l=S,u=v.get("rotate")||0,c=void 0,h=void 0,d=void 0,m=void 0,g=void 0,y=void 0,void 0,c=u*Math.PI/180,h=l.plain(),d=h.width,m=h.height,g=d*Math.abs(Math.cos(c))+Math.abs(m*Math.sin(c)),y=d*Math.abs(Math.sin(c))+Math.abs(m*Math.cos(c)),new p(h.x,h.y,g,y));s?s.union(k):s=k}return s}},t.getOptionCategoryInterval=g,t.shouldShowAllLabels=function(e){return"category"===e.type&&0===g(e.getLabelModel())}},function(e,t,n){var r=n(57);t.Dispatcher=r;var i=n(22),o=n(164),a=o.isCanvasEl,s=o.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function h(e,t,n,r){return n=n||{},r||!i.canvasSupported?p(e,t,n):i.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):p(e,t,n),n}function p(e,t,n){if(i.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(a(e)){var l=e.getBoundingClientRect();return n.zrX=r-l.left,void(n.zrY=o-l.top)}if(s(c,e,r,o))return n.zrX=c[0],void(n.zrY=c[1])}n.zrX=n.zrY=0}function d(e){return e||window.event}var f=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=h,t.getNativeEvent=d,t.normalizeEvent=function(e,t,n){if(null!=(t=d(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&h(e,i,t,n)}else h(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var o=t.button;return null==t.which&&void 0!==o&&u.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t},t.addEventListener=function(e,t,n,r){l?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n,r){l?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)},t.stop=f,t.isMiddleOrRightButtonOnMouseUpDown=function(e){return 2===e.which||3===e.which},t.notLeftMouse=function(e){return e.which>1}},function(e,t,n){var r=n(167),i={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],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 o(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return e<0?0:e>1?1:e}function s(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(e){return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}
1function c(e,t,n){return e+(t-e)*n}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d=new r(20),f=null;function m(e,t){f&&p(f,t),f=d.put(e,f||t.slice())}function g(e,t){if(e){t=t||[];var n=d.get(e);if(n)return p(t,n);var r,o=(e+="").replace(/ /g,"").toLowerCase();if(o in i)return p(t,i[o]),m(e,t),t;if("#"===o.charAt(0))return 4===o.length?(r=parseInt(o.substr(1),16))>=0&&r<=4095?(h(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1),m(e,t),t):void h(t,0,0,0,1):7===o.length?(r=parseInt(o.substr(1),16))>=0&&r<=16777215?(h(t,(16711680&r)>>16,(65280&r)>>8,255&r,1),m(e,t),t):void h(t,0,0,0,1):void 0;var a=o.indexOf("("),u=o.indexOf(")");if(-1!==a&&u+1===o.length){var c=o.substr(0,a),f=o.substr(a+1,u-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==f.length)return void h(t,0,0,0,1);g=l(f.pop());case"rgb":return 3!==f.length?void h(t,0,0,0,1):(h(t,s(f[0]),s(f[1]),s(f[2]),g),m(e,t),t);case"hsla":return 4!==f.length?void h(t,0,0,0,1):(f[3]=l(f[3]),y(f,t),m(e,t),t);case"hsl":return 3!==f.length?void h(t,0,0,0,1):(y(f,t),m(e,t),t);default:return}}h(t,0,0,0,1)}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(t=t||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function v(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=t[i],u=t[s],h=r-i;return n[0]=o(c(l[0],u[0],h)),n[1]=o(c(l[1],u[1],h)),n[2]=o(c(l[2],u[2],h)),n[3]=a(c(l[3],u[3],h)),n}}var _=v;function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=g(t[i]),u=g(t[s]),h=r-i,p=w([o(c(l[0],u[0],h)),o(c(l[1],u[1],h)),o(c(l[2],u[2],h)),a(c(l[3],u[3],h))],"rgba");return n?{color:p,leftIndex:i,rightIndex:s,value:r}:p}}var b=x;function w(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=g,t.lift=function(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:e[r]<0&&(n[r]=0);return w(n,4===n.length?"rgba":"rgb")}},t.toHex=function(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},t.fastLerp=v,t.fastMapToColor=_,t.lerp=x,t.mapToColor=b,t.modifyHSL=function(e,t,n,r){if(e=g(e))return e=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?t=p-h:i===s?t=1/3+c-p:o===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,n,u];return null!=e[3]&&d.push(e[3]),d}}(e),null!=t&&(e[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(e[1]=l(n)),null!=r&&(e[2]=l(r)),w(y(e),"rgba");var i},t.modifyAlpha=function(e,t){if((e=g(e))&&null!=t)return e[3]=a(t),w(e,"rgba")},t.stringify=w},function(e,t,n){var r=n(1).each,i=n(58),o=n(85),a=n(42),s=n(14),l=n(12),u=n(127).createTask,c=n(71),h=s.makeInner(),p=c();function d(){this.group=new i,this.uid=o.getUID("viewChart"),this.renderTask=u({plan:y,reset:v}),this.renderTask.context={view:this}}d.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,r){},highlight:function(e,t,n,r){g(e.getData(),r,"emphasis")},downplay:function(e,t,n,r){g(e.getData(),r,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var f=d.prototype;function m(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!l.isHighDownDispatcher(e)))for(var r=0,i=e.childCount();r<i;r++)m(e.childAt(r),t,n)}function g(e,t,n){var i=s.queryDataIndex(e,t),o=t&&null!=t.highlightKey?l.getHighlightDigit(t.highlightKey):null;null!=i?r(s.normalizeToArray(i),(function(t){m(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){m(e,n,o)}))}function y(e){return p(e.model)}function v(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&h(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),_[l]}f.updateView=f.updateLayout=f.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},a.enableClassExtend(d,["dispose"]),a.enableClassManagement(d,{registerWhenExtend:!0}),d.markUpdateMethod=function(e,t){h(e).updateMethod=t};var _={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},x=d;e.exports=x},function(e,t,n){var r=n(1),i=r.each,o=r.isString;function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}t.enableDataStack=function(e,t,n){var r,a,s,l,u=(n=n||{}).byIndex,c=n.stackedCoordDimension,h=!(!e||!e.get("stack"));if(i(t,(function(e,n){o(e)&&(t[n]=e={name:e}),h&&!e.isExtraCoord&&(u||r||!e.ordinalMeta||(r=e),a||"ordinal"===e.type||"time"===e.type||c&&c!==e.coordDim||(a=e))})),!a||u||r||(u=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var p=a.coordDim,d=a.type,f=0;i(t,(function(e){e.coordDim===p&&f++})),t.push({name:s,coordDim:p,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0}),f++,t.push({name:l,coordDim:l,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:r&&r.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}},t.isDimensionStacked=a,t.getStackedDimension=function(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}},function(e,t,n){n(15).__DEV__;var r=n(1),i="___EC__COMPONENT__CONTAINER___";function o(e){var t={main:"",sub:""};return e&&(e=e.split("."),t.main=e[0]||"",t.sub=e[1]||""),t}var a=0;function s(e,t){var n=r.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function l(e,t,n){return this.superClass.prototype[t].apply(e,n)}t.parseClassType=o,t.enableClassExtend=function(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return r.extend(n.prototype,e),n.extend=this.extend,n.superCall=s,n.superApply=l,r.inherits(n,this),n.superClass=t,n}},t.enableClassCheck=function(e){var t=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}},t.enableClassManagement=function(e,t){t=t||{};var n={};if(e.registerClass=function(e,t){if(t)if(function(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}(t),(t=o(t)).sub){if(t.sub!==i){(function(e){var t=n[e.main];t&&t[i]||((t=n[e.main]={})[i]=!0);return t}(t))[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,r){var o=n[e];if(o&&o[i]&&(o=t?o[t]:null),r&&!o)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){e=o(e);var t=[],a=n[e.main];
1return a&&a[i]?r.each(a,(function(e,n){n!==i&&t.push(e)})):t.push(a),t},e.hasClass=function(e){return e=o(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=o(e);var t=n[e.main];return t&&t[i]},e.parseClassType=o,t.registerWhenExtend){var a=e.extend;a&&(e.extend=function(t){var n=a.call(this,t);return e.registerClass(n,t.type)})}return e},t.setReadOnly=function(e,t){}},function(e,t,n){n(15).__DEV__;var r=n(14),i=r.makeInner,o=r.getDataItemValue,a=n(1),s=a.createHashMap,l=a.each,u=a.map,c=a.isArray,h=a.isString,p=a.isObject,d=a.isTypedArray,f=a.isArrayLike,m=a.extend,g=(a.assert,n(86)),y=n(87),v=y.SOURCE_FORMAT_ORIGINAL,_=y.SOURCE_FORMAT_ARRAY_ROWS,x=y.SOURCE_FORMAT_OBJECT_ROWS,b=y.SOURCE_FORMAT_KEYED_COLUMNS,w=y.SOURCE_FORMAT_UNKNOWN,S=y.SOURCE_FORMAT_TYPED_ARRAY,k=y.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},M=i();function E(e){if(e){var t=s();return u(e,(function(e,n){if(null==(e=m({},p(e)?e:{name:e})).name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var r=t.get(e.name);return r?e.name+="-"+r.count++:t.set(e.name,{count:1}),e}))}}function C(e,t,n,r){if(null==r&&(r=1/0),t===k)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function I(e){var t=e.option;if(!t.data)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function A(e,t,n,r,i,a){var s,l,u;if(d(e))return T.Not;if(r){var f=r[a];p(f)?(l=f.name,u=f.type):h(f)&&(l=f)}if(null!=u)return"ordinal"===u?T.Must:T.Not;if(t===_)if(n===k){for(var m=e[a],g=0;g<(m||[]).length&&g<5;g++)if(null!=(s=M(m[i+g])))return s}else for(g=0;g<e.length&&g<5;g++){var y=e[i+g];if(y&&null!=(s=M(y[a])))return s}else if(t===x){if(!l)return T.Not;for(g=0;g<e.length&&g<5;g++){if((w=e[g])&&null!=(s=M(w[l])))return s}}else if(t===b){if(!l)return T.Not;if(!(m=e[l])||d(m))return T.Not;for(g=0;g<m.length&&g<5;g++)if(null!=(s=M(m[g])))return s}else if(t===v)for(g=0;g<e.length&&g<5;g++){var w=e[g],S=o(w);if(!c(S))return T.Not;if(null!=(s=M(S[a])))return s}function M(e){var t=h(e);return null!=e&&isFinite(e)&&""!==e?t?T.Might:T.Not:t&&"-"!==e?T.Must:void 0}return T.Not}t.BE_ORDINAL=T,t.detectSourceFormat=function(e){var t=e.option.source,n=w;if(d(t))n=S;else if(c(t)){0===t.length&&(n=_);for(var r=0,i=t.length;r<i;r++){var o=t[r];if(null!=o){if(c(o)){n=_;break}
1if(p(o)){n=x;break}}}}else if(p(t)){for(var a in t)if(t.hasOwnProperty(a)&&f(t[a])){n=b;break}}else if(null!=t)throw new Error("Invalid data");M(e).sourceFormat=n},t.getSource=function(e){return M(e).source},t.resetSourceDefaulter=function(e){M(e).datasetMap=s()},t.prepareSource=function(e){var t=e.option,n=t.data,r=d(n)?S:v,i=!1,a=t.seriesLayoutBy,s=t.sourceHeader,u=t.dimensions,p=I(e);if(p){var f=p.option;n=f.source,r=M(p).sourceFormat,i=!0,a=a||f.seriesLayoutBy,null==s&&(s=f.sourceHeader),u=u||f.dimensions}var m=function(e,t,n,r,i){if(!e)return{dimensionsDefine:E(i)};var a,s;if(t===_)"auto"===r||null==r?C((function(e){null!=e&&"-"!==e&&(h(e)?null==s&&(s=1):s=0)}),n,e,10):s=r?1:0,i||1!==s||(i=[],C((function(e,t){i[t]=null!=e?e:""}),n,e)),a=i?i.length:n===k?e.length:e[0]?e[0].length:null;else if(t===x)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return l(t,(function(e,t){r.push(t)})),r}}(e));else if(t===b)i||(i=[],l(e,(function(e,t){i.push(t)})));else if(t===v){var u=o(e[0]);a=c(u)&&u.length||1}return{startIndex:s,dimensionsDefine:E(i),dimensionsDetectCount:a}}(n,r,a,s,u);M(e).source=new g({data:n,fromDataset:i,seriesLayoutBy:a,sourceFormat:r,dimensionsDefine:m.dimensionsDefine,startIndex:m.startIndex,dimensionsDetectCount:m.dimensionsDetectCount,encodeDefine:t.encode})},t.makeSeriesEncodeForAxisCoordSys=function(e,t,n){var r={},i=I(t);if(!i||!e)return r;var o,a,s=[],u=[],c=t.ecModel,h=M(c).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),l(e,(function(t,n){!p(t)&&(e[n]={name:t}),"ordinal"===t.type&&null==o&&(o=n,a=g(e[n])),r[t.name]=[]}));var f=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function m(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function g(e){var t=e.dimsDef;return t?t.length:1}return l(e,(function(e,t){var n=e.name,i=g(e);if(null==o){var a=f.valueWayDim;m(r[n],a,i),m(u,a,i),f.valueWayDim+=i}else if(o===t)m(r[n],0,i),m(s,0,i);else{a=f.categoryWayDim;m(r[n],a,i),m(u,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),u.length&&(r.seriesName=u),r},t.makeSeriesEncodeForNameBased=function(e,t,n){var r={};if(!I(e))return r;var i,o=t.sourceFormat,a=t.dimensionsDefine;o!==x&&o!==b||l(a,(function(e,t){"name"===(p(e)?e.name:e)&&(i=t)}));var s=function(){for(var e={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=A(t.data,o,t.seriesLayoutBy,a,t.startIndex,l);s.push(c);var h=c===T.Not;if(h&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!h&&s[e.n]===T.Not)&&(e.n=l),p(e)&&s[e.n]!==T.Not)return e;h||(c===T.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(r)?r:null}();if(s){r.value=s.v;var u=null!=i?i:s.n;r.itemName=[u],r.seriesName=[u]}return r},t.guessOrdinal=function(e,t){return A(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}},function(e,t,n){var r=n(1),i=n(34),o=n(72),a=n(87).SOURCE_FORMAT_ORIGINAL,s=n(88).getDimensionTypeByAxis,l=n(14).getDataItemValue,u=n(36),c=n(351).getCoordSysInfoBySeries,h=n(86),p=n(41).enableDataStack,d=n(43).makeSeriesEncodeForAxisCoordSys;var f=function(e,t,n){n=n||{},h.isInstance(e)||(e=h.seriesDataToSource(e));var f,m=t.get("coordinateSystem"),g=u.get(m),y=c(t);y&&(f=r.map(y.coordSysDims,(function(e){var t={name:e},n=y.axisMap.get(e);if(n){var r=n.get("type");t.type=s(r)}return t}))),f||(f=g&&(g.getDimensionsInfo?g.getDimensionsInfo():g.dimensions.slice())||["x","y"]);var v,_,x=o(e,{coordDimensions:f,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?r.curry(d,f,t):null});y&&r.each(x,(function(e,t){var n=e.coordDim,r=y.categoryAxisMap.get(n);r&&(null==v&&(v=t),e.ordinalMeta=r.getOrdinalMeta()),null!=e.otherDims.itemName&&(_=!0)})),_||null==v||(x[v].otherDims.itemName=0);var b=p(t,x),w=new i(x,t);w.setCalculationInfo(b);var S=null!=v&&function(e){if(e.sourceFormat===a){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!r.isArray(l(t))}}(e)?function(e,t,n,r){return r===v?n:this.defaultDimValueGetter(e,t,n,r)}:null;return w.hasItemOption=!1,w.initData(e,null,S),w};e.exports=f},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}
vendor: 4,375 bytes, line 1
1e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,l,"next",e)}function l(e){n(a,i,o,s,l,"throw",e)}s(void 0)}))}}},function(e,t,n){var r=n(290),i=n(291),o=n(292);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e){e.exports=JSON.parse('{"activity":{"download":{"url":"/activity/:id/download","method":"GET"},"find":{"url":"/activity/:id","method":"GET"},"featured":{"url":"/activity/featured","method":"GET"},"route":{"url":"/activity/:id/route","method":"GET"},"like":{"url":"/activity/:id/like","method":"POST"},"unlike":{"url":"/activity/:id/unlike","method":"POST"},"products":{"url":"/activity/:id/products","method":"GET"},"banners":{"url":"/activity/:id/banners","method":"GET"}},"blog":{"all":{"url":"/blog/posts","method":"GET"}},"challenge":{"all":{"url":"/challenges","method":"GET"},"find":{"url":"/challenge/:id","method":"GET"},"join":{"url":"/challenge/:id/join","method":"POST"},"leaderboard":{"url":"/challenge/:id/leaderboard?offset=:offset","method":"GET"}},"map":{"all":{"url":"/map/activities","method":"GET"}},"profile":{"find":{"url":"/person/:id","method":"GET"},"follow":{"url":"/person/:id/follow","method":"POST"},"unfollow":{"url":"/person/:id/unfollow","method":"POST"},"activities":{"url":"/person/:id/routes?offset=:offset","method":"GET"},"favorites":{"url":"/person/:id/favorites?offset=:offset","method":"GET"},"followers":{"url":"/person/:id/followers?offset=:offset","method":"GET"},"following":{"url":"/person/:id/following?offset=:offset","method":"GET"}},"search":{"search":{"url":"/search?search=:search","method":"GET"},"autocomplete":{"url":"/search/autocomplete?search=:search","method":"GET"},"autocompleteLocations":{"url":"/search/autocomplete/locations?search=:search","method":"GET"}},"user":{"login":{"url":"/user/login","method":"POST"},"register":{"url":"/user/register","method":"POST"},"socialLogin":{"url":"/user/socialLogin","method":"POST"},"inApp":{"url":"/user/:id/inApp","method":"GET"}},"weather":{"today":{"url":"/weather/today"}},"geolocation":{"url":"/geolocation","method":"GET"},"challengeTaskReferrer":{"url":"/challengeTaskReferrer/:referrerCode","method":"GET"}}')},function(e,t,n){var r=n(18),i=r.create,o=r.distSquare,a=Math.pow,s=Math.sqrt,l=s(3),u=i(),c=i(),h=i();function p(e){return e>-1e-8&&e<1e-8}function d(e){return e>1e-8||e<-1e-8}function f(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function m(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}t.cubicAt=f,t.cubicDerivativeAt=function(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)},t.cubicRootAt=function(e,t,n,r,i,o){var u=r+3*(t-n)-e,c=3*(n-2*t+e),h=3*(t-e),d=e-i,f=c*c-3*u*h,m=c*h-9*u*d,g=h*h-3*c*d,y=0;if(p(f)&&p(m)){if(p(c))o[0]=0;else(C=-h/c)>=0&&C<=1&&(o[y++]=C)}else{var v=m*m-4*f*g;if(p(v)){var _=m/f,x=-_/2;(C=-c/u+_)>=0&&C<=1&&(o[y++]=C),x>=0&&x<=1&&(o[y++]=x)}else if(v>0){var b=s(v),w=f*c+1.5*u*(-m+b),S=f*c+1.5*u*(-m-b);(C=(-c-((w=w<0?-a(-w,1/3):a(w,1/3))+(S=S<0?-a(-S,1/3):a(S,1/3))))/(3*u))>=0&&C<=1&&(o[y++]=C)}else{var k=(2*f*c-3*u*m)/(2*s(f*f*f)),T=Math.acos(k)/3,M=s(f),E=Math.cos(T),C=(-c-2*M*E)/(3*u),I=(x=(-c+M*(E+l*Math.sin(T)))/(3*u),(-c+M*(E-l*Math.sin(T)))/(3*u));C>=0&&C<=1&&(o[y++]=C),x>=0&&x<=1&&(o[y++]=x),I>=0&&I<=1&&(o[y++]=I)}}return y},t.cubicExtrema=function(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(p(a)){if(d(o))(h=-l/o)>=0&&h<=1&&(i[u++]=h)}else{var c=o*o-4*a*l;if(p(c))i[0]=-o/(2*a);else if(c>0){var h,f=s(c),m=(-o-f)/(2*a);(h=(-o+f)/(2*a))>=0&&h<=1&&(i[u++]=h),m>=0&&m<=1&&(i[u++]=m)}}return u},t.cubicSubdivide=function(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r},t.cubicProjectPoint=function(e,t,n,r,i,a,l,p,d,m,g){var y,v,_,x,b,w=.005,S=1/0;u[0]=d,u[1]=m;for(var k=0;k<1;k+=.05)c[0]=f(e,n,i,l,k),c[1]=f(t,r,a,p,k),(x=o(u,c))<S&&(y=k,S=x);S=1/0;for(var T=0;T<32&&!(w<1e-4);T++)v=y-w,_=y+w,c[0]=f(e,n,i,l,v),c[1]=f(t,r,a,p,v),x=o(c,u),v>=0&&x<S?(y=v,S=x):(h[0]=f(e,n,i,l,_),h[1]=f(t,r,a,p,_),b=o(h,u),_<=1&&b<S?(y=_,S=b):w*=.5);return g&&(g[0]=f(e,n,i,l,y),g[1]=f(t,r,a,p,y)),s(S)},t.quadraticAt=m,t.quadraticDerivativeAt=function(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))},t.quadraticRootAt=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),l=e-r,u=0;
1if(p(o)){if(d(a))(h=-l/a)>=0&&h<=1&&(i[u++]=h)}else{var c=a*a-4*o*l;if(p(c))(h=-a/(2*o))>=0&&h<=1&&(i[u++]=h);else if(c>0){var h,f=s(c),m=(-a-f)/(2*o);(h=(-a+f)/(2*o))>=0&&h<=1&&(i[u++]=h),m>=0&&m<=1&&(i[u++]=m)}}return u},t.quadraticExtremum=function(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r},t.quadraticSubdivide=function(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n},t.quadraticProjectPoint=function(e,t,n,r,i,a,l,p,d){var f,g=.005,y=1/0;u[0]=l,u[1]=p;for(var v=0;v<1;v+=.05){c[0]=m(e,n,i,v),c[1]=m(t,r,a,v),(w=o(u,c))<y&&(f=v,y=w)}y=1/0;for(var _=0;_<32&&!(g<1e-4);_++){var x=f-g,b=f+g;c[0]=m(e,n,i,x),c[1]=m(t,r,a,x);var w=o(c,u);if(x>=0&&w<y)f=x,y=w;else{h[0]=m(e,n,i,b),h[1]=m(t,r,a,b);var S=o(h,u);b<=1&&S<y?(f=b,y=S):g*=.5}}return d&&(d[0]=m(e,n,i,f),d[1]=m(t,r,a,f)),s(y)}},function(e,t){var n="\0__throttleOriginMethod",r="\0__throttleRate";function i(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var p=function(){r=(new Date).getTime(),o=this,a=arguments;var e=s||t,p=s||n;s=null,i=r-(p?l:u)-e,clearTimeout(c),p?c=setTimeout(h,e):i>=0?h():c=setTimeout(h,-i),l=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(e){s=e},p}t.throttle=i,t.createOrUpdate=function(e,t,o,a){var s=e[t];if(s){var l=s[n]||s,u=s["\0__throttleType"];if(s[r]!==o||u!==a){if(null==o||!a)return e[t]=l;(s=e[t]=i(l,o,"debounce"===a))[n]=l,s["\0__throttleType"]=a,s[r]=o}return s}},t.clear=function(e,t){var r=e[t];r&&r[n]&&(e[t]=r[n])}},function(e,t){e.exports={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}
1,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}}},function(e,t,n){var r=n(1),i=r.each,o=r.map,a=n(13),s=a.linearMap,l=a.getPixelPrecision,u=a.round,c=n(354),h=c.createAxisTicks,p=c.createAxisLabels,d=c.calculateCategoryInterval,f=[0,1],m=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function g(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}m.prototype={constructor:m,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&g(n=n.slice(),r.count()),s(e,f,n,t)},coordToData:function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&g(n=n.slice(),r.count());var i=s(e,n,f,t);return this.scale.scale(i)},pointToData:function(e,t){},getTicksCoords:function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=h(this,t).ticks,r=o(n,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this);return function(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var a,s,l=e.getExtent();if(1===o)t[0].coord=l[0],a=t[1]={coord:l[0]};else{var c=t[o-1].tickValue-t[0].tickValue,h=(t[o-1].coord-t[0].coord)/c;i(t,(function(e){e.coord-=h/2}));var p=e.scale.getExtent();s=1+p[1]-t[o-1].tickValue,a={coord:t[o-1].coord+h*s},t.push(a)}var d=l[0]>l[1];f(t[0].coord,l[0])&&(r?t[0].coord=l[0]:t.shift());r&&f(l[0],t[0].coord)&&t.unshift({coord:l[0]});f(l[1],a.coord)&&(r?a.coord=l[1]:t.pop());r&&f(a.coord,l[1])&&t.push({coord:l[1]});function f(e,t){return e=u(e),t=u(t),d?e>t:e<t}}(this,r,t.get("alignWithLabel"),e.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return o(t,(function(e){return o(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},getViewLabels:function(){return p(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return d(this)}};var y=m;e.exports=y},function(e,t,n){var r=n(1),i=r.retrieve,o=r.defaults,a=r.extend,s=r.each,l=n(17),u=n(12),c=n(23),h=n(13),p=h.isRadianAroundZero,d=h.remRadian,f=n(35).createSymbol,m=n(29),g=n(18).applyTransform,y=n(37).shouldShowAllLabels,v=Math.PI,_=function(e,t){this.opt=t,this.axisModel=e,o(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};_.prototype={constructor:_,hasBuilder:function(e){return!!x[e]},add:function(e){x[e].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),r=this._transform,i=[n[0],0],o=[n[1],0];r&&(g(i,i,r),g(o,o,r));var l=a({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:i[0],y1:i[1],x2:o[0],y2:o[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var c=t.get("axisLine.symbol"),h=t.get("axisLine.symbolSize"),p=t.get("axisLine.symbolOffset")||0;if("number"==typeof p&&(p=[p,p]),null!=c){"string"==typeof c&&(c=[c,c]),"string"!=typeof h&&"number"!=typeof h||(h=[h,h]);var d=h[0],m=h[1];s([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0}
1,{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((i[0]-o[0])*(i[0]-o[0])+(i[1]-o[1])*(i[1]-o[1]))}],(function(t,n){if("none"!==c[n]&&null!=c[n]){var r=f(c[n],-d/2,-m/2,d,m,l.stroke,!0),o=t.r+t.offset,a=[i[0]+o*Math.cos(e.rotation),i[1]-o*Math.sin(e.rotation)];r.attr({rotation:t.rotate,position:a,silent:!0,z2:11}),this.group.add(r)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=function(e,t,n){var r=t.axis,i=t.getModel("axisTick");if(!i.get("show")||r.scale.isBlank())return;for(var a=i.getModel("lineStyle"),s=n.tickDirection*i.get("length"),l=E(r.getTicksCoords(),e._transform,s,o(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<l.length;u++)e.group.add(l[u]);return l}(this,e,t),r=function(e,t,n){var r=t.axis;if(!i(n.axisLabelShow,t.get("axisLabel.show"))||r.scale.isBlank())return;var o=t.getModel("axisLabel"),a=o.get("margin"),l=r.getViewLabels(),h=(i(n.labelRotate,o.get("rotate"))||0)*v/180,p=w(n.rotation,h,n.labelDirection),d=t.getCategories&&t.getCategories(!0),f=[],m=S(t),g=t.get("triggerEvent");return s(l,(function(i,s){var l=i.tickValue,h=i.formattedLabel,y=i.rawLabel,v=o;d&&d[l]&&d[l].textStyle&&(v=new c(d[l].textStyle,o,t.ecModel));var _=v.getTextColor()||t.get("axisLine.lineStyle.color"),x=[r.dataToCoord(l),n.labelOffset+n.labelDirection*a],w=new u.Text({anid:"label_"+l,position:x,rotation:p.rotation,silent:m,z2:10});u.setTextStyle(w.style,v,{text:h,textAlign:v.getShallow("align",!0)||p.textAlign,textVerticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||p.textVerticalAlign,textFill:"function"==typeof _?_("category"===r.type?y:"value"===r.type?l+"":l,s):_}),g&&(w.eventData=b(t),w.eventData.targetType="axisLabel",w.eventData.value=y),e._dumbGroup.add(w),w.updateTransform(),f.push(w),e.group.add(w),w.decomposeTransform()})),f}(this,e,t);!function(e,t,n){if(y(e.axis))return;var r=e.get("axisLabel.showMinLabel"),i=e.get("axisLabel.showMaxLabel");n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===r?(k(o),k(u)):T(o,a)&&(r?(k(a),k(c)):(k(o),k(u)));!1===i?(k(s),k(h)):T(l,s)&&(i?(k(l),k(p)):(k(s),k(h)))}(e,r,n),function(e,t,n){var r=t.axis,i=t.getModel("minorTick");if(!i.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=o(s.getLineStyle(),o(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),c=0;c<a.length;c++)for(var h=E(a[c],e._transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)e.group.add(h[p])}(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=i(e.axisName,t.get("name"));if(n){var r,o,s=t.get("nameLocation"),c=e.nameDirection,h=t.getModel("nameTextStyle"),f=t.get("nameGap")||0,m=this.axisModel.axis.getExtent(),g=m[0]>m[1]?-1:1,y=["start"===s?m[0]-g*f:"end"===s?m[1]+g*f:(m[0]+m[1])/2,M(s)?e.labelOffset+c*f:0],_=t.get("nameRotate");null!=_&&(_=_*v/180),M(s)?r=w(e.rotation,null!=_?_:e.rotation,c):(r=function(e,t,n,r){var i,o,a=d(n-e.rotation),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;p(a-v/2)?(o=l?"bottom":"top",i="center"):p(a-1.5*v)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*v&&a>v/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e,s,_||0,m),null!=(o=e.axisNameAvailableWidth)&&(o=Math.abs(o/Math.sin(r.rotation)),!isFinite(o)&&(o=null)));var x=h.getFont(),k=t.get("nameTruncate",!0)||{},T=k.ellipsis,E=i(e.nameTruncateMaxWidth,k.maxWidth,o),C=null!=T&&null!=E?l.truncateText(n,E,x,T,{minChar:2,placeholder:k.placeholder}):n,I=t.get("tooltip",!0),A=t.mainType,P={componentType:A,name:n,$vars:["name"]};P[A+"Index"]=t.componentIndex;var D=new u.Text({anid:"name",__fullText:n,__truncatedText:C,position:y,rotation:r.rotation,silent:S(t),z2:1,tooltip:I&&I.show?a({content:n,formatter:function(){return n},formatterParams:P},I):null});u.setTextStyle(D.style,h,{text:C,textFont:x,textFill:h.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:h.get("align")||r.textAlign,textVerticalAlign:h.get("verticalAlign")||r.textVerticalAlign}),t.get("triggerEvent")&&(D.eventData=b(t),D.eventData.targetType="axisName",D.eventData.name=n),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},b=_.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},w=_.innerTextLayout=function(e,t,n){var r,i,o=d(t-e);return p(o)?(i=n>0?"top":"bottom",r="center"):p(o-v)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<v?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}};var S=_.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function k(e){e&&(e.ignore=!0)}
1function T(e,t,n){var r=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(r&&i){var o=m.identity([]);return m.rotate(o,o,-e.rotation),r.applyTransform(m.mul([],o,e.getLocalTransform())),i.applyTransform(m.mul([],o,t.getLocalTransform())),r.intersect(i)}}function M(e){return"middle"===e||"center"===e}function E(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(g(a,a,t),g(s,s,t));var h=new u.Line({anid:i+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,silent:!0});o.push(h)}return o}var C=_;e.exports=C},function(e,t){var n={};t.register=function(e,t){n[e]=t},t.get=function(e){return n[e]}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(263)},function(e,t,n){var r,i;
2/*!
3 * JavaScript Cookie v2.2.1
4 * https://github.com/js-cookie/js-cookie
5 *
6 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7 * Released under the MIT license
8 */!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
8)+/g,decodeURIComponent)}return function n(r){function i(){}function o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(i[u]=l,e===u)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},function(e,t,n){"use strict";var r=n(276).default;n(283),(t=e.exports=r).default=t},function(e,t){var n=Array.prototype.slice,r=function(e){this._$handlers={},this._$eventProcessor=e};function i(e,t,n,r,i,o){var a=e._$handlers;if("function"==typeof n&&(i=r,r=n,n=null),!r||!t)return e;n=function(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}(e,n),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===r)return e;var l={h:r,one:o,query:n,ctx:i||e,callAtLast:r.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),e}r.prototype={constructor:r,one:function(e,t,n,r){return i(this,e,t,n,r,!0)},on:function(e,t,n,r){return i(this,e,t,n,r,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],r=this._$eventProcessor;if(t){var i=arguments,o=i.length;o>3&&(i=n.call(i,1));for(var a=t.length,s=0;s<a;){var l=t[s];if(r&&r.filter&&null!=l.query&&!r.filter(e,l.query))s++;else{switch(o){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,i[1]);break;case 3:l.h.call(l.ctx,i[1],i[2]);break;default:l.h.apply(l.ctx,i)}l.one?(t.splice(s,1),a--):s++}}}return r&&r.afterTrigger&&r.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],r=this._$eventProcessor;if(t){var i=arguments,o=i.length;o>4&&(i=n.call(i,1,i.length-1));for(var a=i[i.length-1],s=t.length,l=0;l<s;){var u=t[l];if(r&&r.filter&&null!=u.query&&!r.filter(e,u.query))l++;else{switch(o){case 1:u.h.call(a);break;case 2:u.h.call(a,i[1]);break;case 3:u.h.call(a,i[1],i[2]);break;default:u.h.apply(a,i)}u.one?(t.splice(l,1),s--):l++}}}return r&&r.afterTrigger&&r.afterTrigger(e),this}};var o=r;e.exports=o},function(e,t,n){var r=n(1),i=n(165),o=n(19),a=function(e){for(var t in e=e||{},i.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof a&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,o=r.indexOf(i,e);return o<0||(i.splice(o,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,r=this.__storage;
8for(t=0;t<n.length;t++)e=n[t],r&&(r.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(r)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n];e.call(t,r),"group"===r.type&&r.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof a&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new o(0,0,0,0),r=e||this._children,i=[],a=0;a<r.length;a++){var s=r[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),(t=t||n.clone()).union(n)):(t=t||l.clone()).union(l)}}return t||n}},r.inherits(a,i);var s=a;e.exports=s},function(e,t,n){var r=n(83),i=n(1),o=n(32),a=n(102),s=n(101).ContextCachedBy,l=function(e){r.call(this,e)};l.prototype={constructor:l,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var r=n.text;null!=r&&(r+=""),a.needDrawText(r,n)?(this.setTransform(e),a.renderText(this,e,r,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=s.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&a.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var n=o.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(n.x+=e.x||0,n.y+=e.y||0,a.getStroke(e.textStroke,e.textStrokeWidth)){var r=e.textStrokeWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect}},i.inherits(l,r);var u=l;e.exports=u},function(e,t,n){n(15).__DEV__;var r=n(1),i=(r.isTypedArray,r.extend),o=(r.assert,r.each),a=r.isObject,s=n(14),l=s.getDataItemValue,u=s.isDataItemOption,c=n(13).parseDate,h=n(86),p=n(87),d=p.SOURCE_FORMAT_TYPED_ARRAY,f=p.SOURCE_FORMAT_ARRAY_ROWS,m=p.SOURCE_FORMAT_ORIGINAL,g=p.SOURCE_FORMAT_OBJECT_ROWS;function y(e,t){h.isInstance(e)||(e=h.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,r=e.sourceFormat;r===d&&(this._offset=0,this._dimSize=t,this._data=n);var o=_[r===f?r+"_"+e.seriesLayoutBy:r];i(this,o)}var v=y.prototype;v.pure=!1,v.persistent=!0,v.getSource=function(){return this._source};var _={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:w},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,r=0;r<n.length;r++){var i=n[r];t.push(i?i[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:x,getItem:b,appendData:w},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,r=0;r<n.length;r++){var i=this._data[n[r].name];t.push(i?i[e]:null)}return t},appendData:function(e){var t=this._data;o(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},original:{count:x,getItem:b,appendData:w},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,r=0;r<this._dimSize;r++)t[r]=this._data[n+r];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function x(){return this._data.length}function b(e){return this._data[e]}function w(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var S={arrayRows:k,objectRows:function(e,t,n,r){return null!=n?e[r]:e},keyedColumns:k,original:function(e,t,n,r){var i=l(e);return null!=n&&i instanceof Array?i[n]:i},typedArray:k};function k(e,t,n,r){return null!=n?e[n]:e}var T={arrayRows:M,objectRows:function(e,t,n,r){return E(e[t],this._dimensionInfos[t])},keyedColumns:M,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return!this._rawData.pure&&u(e)&&(this.hasItemOption=!0),E(i instanceof Array?i[r]:i,this._dimensionInfos[t])},typedArray:function(e,t,n,r){return e[r]}};function M(e,t,n,r){return E(e[r],this._dimensionInfos[t])}function E(e,t){var n=t&&t.type;if("ordinal"===n){var r=t&&t.ordinalMeta;return r?r.parseAndCollect(e):e}return"time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+c(e)),null==e||""===e?NaN:+e}t.DefaultDataProvider=y,t.defaultDimValueGetters=T,t.retrieveRawValue=function(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i,o,a=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(i=s.name,o=s.index),S[a](r,t,o,i)}}},t.retrieveRawAttr=function(e,t,n){if(e){var r=e.getProvider().getSource().sourceFormat;if(r===m||r===g){var i=e.getRawDataItem(t);return r!==m||a(i)||(i=null),i?i[n]:void 0}}}},function(e,t){function n(e){return e}function r(e,t,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||n,this._newKeyGetter=i||n,this.context=o}function i(e,t,n,r,i){for(var o=0;o<e.length;o++){var a="_ec_"+i[r](e[o],o),s=t[a];null==s?(n.push(a),t[a]=o):(s.length||(t[a]=s=[s]),s.push(o))}}r.prototype={constructor:r,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},r=[],o=[];for(i(e,{}
8,r,"_oldKeyGetter",this),i(t,n,o,"_newKeyGetter",this),a=0;a<e.length;a++){if(null!=(l=n[s=r[a]]))(c=l.length)?(1===c&&(n[s]=null),l=l.shift()):n[s]=null,this._update&&this._update(l,a);else this._remove&&this._remove(a)}for(var a=0;a<o.length;a++){var s=o[a];if(n.hasOwnProperty(s)){var l;if(null==(l=n[s]))continue;if(l.length)for(var u=0,c=l.length;u<c;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}};var o=r;e.exports=o},function(e,t,n){var r=n(1).isFunction;e.exports=function(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(e,i,o){var a=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),u=e.get("symbolKeepAspect"),c=e.get("symbolRotate"),h=r(s),p=r(l),d=r(c),f=h||p||d,m=!h&&s?s:t,g=p?null:l;if(a.setVisual({legendSymbol:n||m,symbol:m,symbolSize:g,symbolKeepAspect:u,symbolRotate:c}),!i.isSeriesFiltered(e))return{dataEach:a.hasItemOption||f?function(t,n){if(f){var r=e.getRawValue(n),i=e.getDataParams(n);h&&t.setItemVisual(n,"symbol",s(r,i)),p&&t.setItemVisual(n,"symbolSize",l(r,i)),d&&t.setItemVisual(n,"symbolRotate",c(r,i))}if(t.hasItemOption){var o=t.getItemModel(n),a=o.getShallow("symbol",!0),u=o.getShallow("symbolSize",!0),m=o.getShallow("symbolRotate",!0),g=o.getShallow("symbolKeepAspect",!0);null!=a&&t.setItemVisual(n,"symbol",a),null!=u&&t.setItemVisual(n,"symbolSize",u),null!=m&&t.setItemVisual(n,"symbolRotate",m),null!=g&&t.setItemVisual(n,"symbolKeepAspect",g)}}:null}}}}},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(110),o=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,r){this.axisPointerClass&&i.fixValue(e),o.superApply(this,"render",arguments),a(this,e,t,n,r,!0)},updateAxisPointer:function(e,t,n,r,i){a(this,e,t,n,r,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),o.superApply(this,"remove",arguments)},dispose:function(e,t){s(this,t),o.superApply(this,"dispose",arguments)}});function a(e,t,n,r,a,l){var u=o.getAxisPointerClass(e.axisPointerClass);if(u){var c=i.getAxisPointerModel(t);c?(e._axisPointer||(e._axisPointer=new u)).render(t,c,r,l):s(e,r)}}function s(e,t,n){var r=e._axisPointer;r&&r.dispose(t,n),e._axisPointer=null}var l=[];o.registerAxisPointerClass=function(e,t){l[e]=t},o.getAxisPointerClass=function(e){return e&&l[e]};var u=o;e.exports=u},function(e,t,n){var r=n(1);function i(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}t.retrieveTargetInfo=function(e,t,n){if(e&&r.indexOf(t,e.type)>=0){var i=n.getData().tree.root,o=e.targetNode;if("string"==typeof o&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}},t.getPathToRoot=i,t.aboveViewRoot=function(e,t){var n=i(e);return r.indexOf(n,t)>=0},t.wrapTreePathInfo=function(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}},function(e,t,n){var r=n(1),i=n(39),o=n(13).linearMap,a=r.each,s=r.isObject,l=function(e){var t=e.mappingMethod,n=e.type,i=this.option=r.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=_[t];var o=u[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[t],"piecewise"===t?(c(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,r.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===t?i.categories?function(e){var t=e.categories,n=e.visual,i=e.categoryMap={};if(a(t,(function(e,t){i[e]=t})),!r.isArray(n)){var o=[];r.isObject(n)?a(n,(function(e,t){var n=i[t];o[null!=n?n:-1]=e})):o[-1]=n,n=v(e,o)}for(var s=t.length-1;s>=0;s--)null==n[s]&&(delete i[t[s]],t.pop())}(i):c(i,!0):(r.assert("linear"!==t||i.dataExtent),c(i))};l.prototype={constructor:l,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)}
8,getNormalizer:function(){return r.bind(this._normalizeData,this)}};var u=l.visualHandlers={color:{applyVisual:d("color"),getColorMapper:function(){var e=this.option;return r.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),f.call(this,e)}:function(t,n,r){var o=!!r;return!n&&(t=this._normalizeData(t)),r=i.fastLerp(t,e.parsedVisual,r),o?r:i.stringify(r,"rgba")},this)},_doMap:{linear:function(e){return i.stringify(i.fastLerp(e,this.option.parsedVisual),"rgba")},category:f,piecewise:function(e,t){var n=y.call(this,t);return null==n&&(n=i.stringify(i.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:m}},colorHue:h((function(e,t){return i.modifyHSL(e,t)})),colorSaturation:h((function(e,t){return i.modifyHSL(e,null,t)})),colorLightness:h((function(e,t){return i.modifyHSL(e,null,null,t)})),colorAlpha:h((function(e,t){return i.modifyAlpha(e,t)})),opacity:{applyVisual:d("opacity"),_doMap:g([0,1])},liftZ:{applyVisual:d("liftZ"),_doMap:{linear:m,category:m,piecewise:m,fixed:m}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);if(r.isString(i))n("symbol",i);else if(s(i))for(var o in i)i.hasOwnProperty(o)&&n(o,i[o])},_doMap:{linear:p,category:f,piecewise:function(e,t){var n=y.call(this,t);return null==n&&(n=p.call(this,e)),n},fixed:m}},symbolSize:{applyVisual:d("symbolSize"),_doMap:g([0,1])}};function c(e,t){var n=e.visual,i=[];r.isObject(n)?a(n,(function(e){i.push(e)})):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),v(e,i)}function h(e){return{applyVisual:function(t,n,r){t=this.mapValueToVisual(t),r("color",e(n("color"),t))},_doMap:g([0,1])}}function p(e){var t=this.option.visual;return t[Math.round(o(e,[0,1],[0,t.length-1],!0))]||{}}function d(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function f(e){var t=this.option.visual;return t[this.option.loop&&-1!==e?e%t.length:e]}function m(){return this.option.visual[0]}function g(e){return{linear:function(t){return o(t,e,this.option.visual,!0)},category:f,piecewise:function(t,n){var r=y.call(this,n);return null==r&&(r=o(t,e,this.option.visual,!0)),r},fixed:m}}function y(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[l.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function v(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=r.map(t,(function(e){return i.parse(e)}))),t}var _={linear:function(e){return o(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=l.findPieceIndex(e,t,!0);if(null!=n)return o(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?-1:t},fixed:r.noop};function x(e,t,n){return e?t<=n:t<n}l.listVisualTypes=function(){var e=[];return r.each(u,(function(t,n){e.push(n)})),e},l.addVisualHandler=function(e,t){u[e]=t},l.isValidType=function(e){return u.hasOwnProperty(e)},l.eachVisual=function(e,t,n){r.isObject(e)?r.each(e,t,n):t.call(n,e)},l.mapVisual=function(e,t,n){var i,o=r.isArray(e)?[]:r.isObject(e)?{}:(i=!0,null);return l.eachVisual(e,(function(e,r){var a=t.call(n,e,r);i?o=a:o[r]=a})),o},l.retrieveVisuals=function(e){var t,n={};return e&&a(u,(function(r,i){e.hasOwnProperty(i)&&(n[i]=e[i],t=!0)})),t?n:null},l.prepareVisualTypes=function(e){if(s(e)){var t=[];a(e,(function(e,n){t.push(n)})),e=t}else{if(!r.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},l.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},l.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||"string"==typeof s&&s===e+"")return o;n&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(x(c[1],e,u[1]))return o}else if(u[1]===1/0){if(x(c[0],u[0],e))return o}else if(x(c[0],u[0],e)&&x(c[1],e,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function h(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}};var b=l;e.exports=b},function(e,t,n){"use strict";var r=n(78),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=d(n);i&&i!==f&&e(t,i,r)}var a=c(n);h&&(a=a.concat(h(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var v=p(n,y);try{u(t,y,v)}catch(e){}}}}return t}},,function(e,t,n){var r=n(83),i=n(19),o=n(1),a=n(121);function s(e){r.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,r=n.image;n.bind(e,this,t);var i=this._image=a.createOrUpdateImage(r,this._image,this,this.onload);if(i&&a.isImageReady(i)){var o=n.x||0,s=n.y||0,l=n.width,u=n.height,c=i.width/i.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=i.width,u=i.height),this.setTransform(e),n.sWidth&&n.sHeight){var h=n.sx||0,p=n.sy||0;e.drawImage(i,h,p,n.sWidth,n.sHeight,o,s,l,u)}else if(n.sx&&n.sy){var d=l-(h=n.sx),f=u-(p=n.sy);e.drawImage(i,h,p,d,f,o,s,l,u)}else e.drawImage(i,o,s,l,u);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect
8()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new i(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(s,r);var l=s;e.exports=l},function(e,t,n){var r=n(1);e.exports=function(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(n&&r.indexOf(n,s)>=0||i&&r.indexOf(i,s)<0)){var l=t.getShallow(s);null!=l&&(o[e[a][0]]=l)}}return o}}},function(e,t,n){var r=n(48),i=n(18),o=n(84),a=n(19),s=n(100).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],p=[],d=Math.min,f=Math.max,m=Math.cos,g=Math.sin,y=Math.sqrt,v=Math.abs,_="undefined"!=typeof Float32Array,x=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};x.prototype={constructor:x,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){n=n||0,this._ux=v(n/s/e)||0,this._uy=v(n/s/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=v(e-this._xi)>this._ux||v(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,r,i,o){return this.addData(l.C,e,t,n,r,i,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,r,i,o):this._ctx.bezierCurveTo(e,t,n,r,i,o)),this._xi=i,this._yi=o,this},quadraticCurveTo:function(e,t,n,r){return this.addData(l.Q,e,t,n,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},arc:function(e,t,n,r,i,o){return this.addData(l.A,e,t,n,n,r,i-r,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=m(i)*n+e,this._yi=g(i)*n+t,this},arcTo:function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},rect:function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},closePath:function(){this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!_||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,r,i=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=e-l,h=t-u,p=y(c*c+h*h),m=l,g=u,v=a.length;for(o<0&&(o=i+o),m-=(o%=i)*(c/=p),g-=o*(h/=p);c>0&&m<=e||c<0&&m>=e||0===c&&(h>0&&g<=t||h<0&&g>=t);)m+=c*(n=a[r=this._dashIdx]),g+=h*n,this._dashIdx=(r+1)%v,c>0&&m<l||c<0&&m>l||h>0&&g<u||h<0&&g>u||s[r%2?"moveTo":"lineTo"](c>=0?d(m,e):f(m,e),h>=0?d(g,t):f(g,t));c=m-e,h=g-t,this._dashOffset=-y(c*c+h*h)},_dashedBezierTo:function(e,t,n,i,o,a){var s,l,u,c,h,p=this._dashSum,d=this._dashOffset,f=this._lineDash,m=this._ctx,g=this._xi,v=this._yi,_=r.cubicAt,x=0,b=this._dashIdx,w=f.length,S=0;for(d<0&&(d=p+d),d%=p,s=0;s<1;s+=.1)l=_(g,e,n,o,s+.1)-_(g,e,n,o,s),u=_(v,t,i,a,s+.1)-_(v,t,i,a,s),x+=y(l*l+u*u);for(;b<w&&!((S+=f[b])>d);b++);for(s=(S-d)/x;s<=1;)c=_(g,e,n,o,s),h=_(v,t,i,a,s),b%2?m.moveTo(c,h):m.lineTo(c,h),s+=f[b]/x,b=(b+1)%w;b%2!=0&&m.lineTo(o,a),l=o-c,u=a-h,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(e,t,n,r){var i=n,o=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,_&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=p[0]=p[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,s=0,d=0;d<e.length;){var f=e[d++];switch(1===d&&(r=t=e[d],s=n=e[d+1]),f){case l.M:t=r=e[d++],n=s=e[d++],h[0]=r,h[1]=s,p[0]=r,p[1]=s;break;case l.L:o.fromLine(t,n,e[d],e[d+1],h,p),t=e[d++],n=e[d++];break;case l.C:o.fromCubic(t,n,e[d++],e[d++],e[d++],e[d++],e[d],e[d+1],h,p),t=e[d++],n=e[d++];break;case l.Q:o.fromQuadratic(t,n,e[d++],e[d++],e[d],e[d+1],h,p),t=e[d++],n=e[d++];break;case l.A:var y=e[d++],v=e[d++],_=e[d++],x=e[d++],b=e[d++],w=e[d++]+b;d+=1;var S=1-e[d++];1===d&&(r=m(b)*_+y,s=g(b)*x+v),o.fromArc(y,v,_,x,b,w,S,h,p),t=m(w)*_+y,n=g(w)*x+v;break;case l.R:r=t=e[d++],s=n=e[d++];var k=e[d++],T=e[d++];o.fromLine(r,s,r+k,s+T,h,p);break;case l.Z:t=r,n=s}
8i.min(u,u,h),i.max(c,c,p)}return 0===d&&(u[0]=u[1]=c[0]=c[1]=0),new a(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(e){for(var t,n,r,i,o,a,s=this.data,u=this._ux,c=this._uy,h=this._len,p=0;p<h;){var d=s[p++];switch(1===p&&(t=r=s[p],n=i=s[p+1]),d){case l.M:t=r=s[p++],n=i=s[p++],e.moveTo(r,i);break;case l.L:o=s[p++],a=s[p++],(v(o-r)>u||v(a-i)>c||p===h-1)&&(e.lineTo(o,a),r=o,i=a);break;case l.C:e.bezierCurveTo(s[p++],s[p++],s[p++],s[p++],s[p++],s[p++]),r=s[p-2],i=s[p-1];break;case l.Q:e.quadraticCurveTo(s[p++],s[p++],s[p++],s[p++]),r=s[p-2],i=s[p-1];break;case l.A:var f=s[p++],y=s[p++],_=s[p++],x=s[p++],b=s[p++],w=s[p++],S=s[p++],k=s[p++],T=_>x?_:x,M=_>x?1:_/x,E=_>x?x/_:1,C=b+w;Math.abs(_-x)>.001?(e.translate(f,y),e.rotate(S),e.scale(M,E),e.arc(0,0,T,b,C,1-k),e.scale(1/M,1/E),e.rotate(-S),e.translate(-f,-y)):e.arc(f,y,T,b,C,1-k),1===p&&(t=m(b)*_+f,n=g(b)*x+y),r=m(C)*_+f,i=g(C)*x+y;break;case l.R:t=r=s[p],n=i=s[p+1],e.rect(s[p++],s[p++],s[p++],s[p++]);break;case l.Z:e.closePath(),r=t,i=n}}}},x.CMD=l;var b=x;e.exports=b},function(e,t,n){var r=n(14).makeInner;e.exports=function(){var e=r();return function(t){var n=e(t),r=t.pipelineContext,i=n.large,o=n.progressiveRender,a=n.large=r&&r.large,s=n.progressiveRender=r&&r.progressiveRender;return!!(i^a||o^s)&&"reset"}}},function(e,t,n){var r=n(191);e.exports=function(e,t){return r((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},function(e,t,n){var r=n(1),i={getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:r.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=i},function(e,t,n){var r=n(72),i=n(34),o=n(1),a=o.extend,s=o.isArray;e.exports=function(e,t,n){t=s(t)&&{coordDimensions:t}||a({},t);var o=e.getSource(),l=r(o,t),u=new i(l,e);return u.initData(o,n),u}},function(e,t){function n(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function r(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=function(e,t,i,o,a,s){e=e||0;var l=i[1]-i[0];if(null!=a&&(a=r(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o){var u=Math.abs(t[1]-t[0]);u=r(u,[0,l]),a=s=r(u,[a,s]),o=0}t[0]=r(t[0],i),t[1]=r(t[1],i);var c=n(t,o);t[o]+=e;var h=a||0,p=i.slice();c.sign<0?p[0]+=h:p[1]-=h,t[o]=r(t[o],p);var d=n(t,o);return null!=a&&(d.sign!==c.sign||d.span<a)&&(t[1-o]=t[o]+c.sign*a),d=n(t,o),null!=s&&d.span>s&&(t[1-o]=t[o]+d.sign*s),t}},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(22),a=n(14),s=n(144),l=n(542),u=i.each,c=s.eachAxisDim;function h(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function p(e,t){var n=e._rangePropMode,r=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,i){var o=null!=t[e[0]],a=null!=t[e[1]];o&&!a?n[i]="percent":!o&&a?n[i]="value":r?n[i]=r[i]:o&&(n[i]="percent")}))}var d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var r=h(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this.doInit(r)},mergeOption:function(e){var t=h(e);i.merge(this.option,e,!0),i.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;o.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),p(this,e);var n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,n,r,i){var o=this.dependentModels[t.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new l(t.name,n,this,i));e[t.name+"_"+n]=a}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();c((function(t){var n=t.axisIndex;e[n]=a.normalizeToArray(e[n])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;c((function(n){null!=e[n.axisIndex]&&(t=!0)}),this);var n=e.orient;return null==n&&t?"orient":t?void 0:(null==n&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,r=this.dependentModels;if(e){var o="vertical"===t?"y":"x";r[o+"Axis"].length?(n[o+"AxisIndex"]=[0],e=!1):u(r.singleAxis,(function(r){e&&r.get("orient",!0)===t&&(n.singleAxisIndex=[r.componentIndex],e=!1)}))}e&&c((function(t){if(e){var r=[],i=this.dependentModels[t.axis];if(i.length&&!r.length)for(var o=0,a=i.length;o<a;o++)"category"===i[o].get("type")&&r.push(o);n[t.axisIndex]=r,r.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&c((function(t){var r=n[t.axisIndex],o=e.get(t.axisIndex),a=e.get(t.axisId);o=e.ecModel.queryComponents({mainType:t.axis,index:o,id:a}
8)[0].componentIndex,i.indexOf(r,o)<0&&r.push(o)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return c((function(r){var i=e.get(r.axisIndex),o=this.dependentModels[r.axis][i];o&&o.get("type")===t||(n=!1)}),this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return c((function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}}),this),e},eachTargetAxis:function(e,t){var n=this.ecModel;c((function(r){u(this.get(r.axisIndex),(function(i){e.call(t,r,i,this,n)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e){var t=this.option,n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});e.exports=d},function(e,t,n){var r=n(104).extend({type:"dataZoom",render:function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,n={};return e.eachTargetAxis((function(e,r){var i=t.getComponent(e.axis,r);if(i){var o=i.getCoordSysModel();o&&function(e,t,n,r){for(var i,o=0;o<n.length;o++)if(n[o].model===e){i=n[o];break}i||n.push(i={model:e,axisModels:[],coordIndex:r});i.axisModels.push(t)}(o,i,n[o.mainType]||(n[o.mainType]=[]),o.componentIndex)}}),this),n}});e.exports=r},function(e,t,n){"use strict";e.exports=n(268)},function(e,t,n){var r=n(273),i=n(274),o=n(275);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){"use strict";var r=n(284).default;n(289),(t=e.exports=r).default=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(300),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){var r=function(){};1===n(100).debugMode&&(r=console.error);var i=r;e.exports=i},function(e,t,n){var r=n(1),i=n(120),o=n(165),a=n(171);function s(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new i(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new i(e,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(s,o),r.mixin(s,a);var l=s;e.exports=l},function(e,t,n){var r=n(18),i=n(48),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r.create(),h=r.create(),p=r.create();var d=[],f=[];t.fromPoints=function(e,t,n){if(0!==e.length){var r,i=e[0],s=i[0],l=i[0],u=i[1],c=i[1];for(r=1;r<e.length;r++)i=e[r],s=o(s,i[0]),l=a(l,i[0]),u=o(u,i[1]),c=a(c,i[1]);t[0]=s,t[1]=u,n[0]=l,n[1]=c}},t.fromLine=function(e,t,n,r,i,s){i[0]=o(e,n),i[1]=o(t,r),s[0]=a(e,n),s[1]=a(t,r)},t.fromCubic=function(e,t,n,r,s,l,u,c,h,p){var m,g=i.cubicExtrema,y=i.
8cubicAt,v=g(e,n,s,u,d);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;m<v;m++){var _=y(e,n,s,u,d[m]);h[0]=o(_,h[0]),p[0]=a(_,p[0])}for(v=g(t,r,l,c,f),m=0;m<v;m++){var x=y(t,r,l,c,f[m]);h[1]=o(x,h[1]),p[1]=a(x,p[1])}h[0]=o(e,h[0]),p[0]=a(e,p[0]),h[0]=o(u,h[0]),p[0]=a(u,p[0]),h[1]=o(t,h[1]),p[1]=a(t,p[1]),h[1]=o(c,h[1]),p[1]=a(c,p[1])},t.fromQuadratic=function(e,t,n,r,s,l,u,c){var h=i.quadraticExtremum,p=i.quadraticAt,d=a(o(h(e,n,s),1),0),f=a(o(h(t,r,l),1),0),m=p(e,n,s,d),g=p(t,r,l,f);u[0]=o(e,s,m),u[1]=o(t,l,g),c[0]=a(e,s,m),c[1]=a(t,l,g)},t.fromArc=function(e,t,n,i,o,a,d,f,m){var g=r.min,y=r.max,v=Math.abs(o-a);if(v%u<1e-4&&v>1e-4)return f[0]=e-n,f[1]=t-i,m[0]=e+n,void(m[1]=t+i);if(c[0]=l(o)*n+e,c[1]=s(o)*i+t,h[0]=l(a)*n+e,h[1]=s(a)*i+t,g(f,c,h),y(m,c,h),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!d?a+=u:o<a&&d&&(o+=u),d){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(p[0]=l(x)*n+e,p[1]=s(x)*i+t,g(f,p,f),y(m,p,m))}},function(e,t,n){var r=n(1),i=n(42).parseClassType,o=0;t.getUID=function(e){return[e||"",o++,Math.random().toFixed(5)].join("_")},t.enableSubTypeDefaulter=function(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=i(e),t[e.main]=n},e.determineSubType=function(n,r){var o=r.type;if(!o){var a=i(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](r))}return o},e},t.enableTopologicalTravel=function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,o,a){if(e.length){var s=function(e){var i={},o=[];return r.each(e,(function(a){var s=n(i,a),l=function(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(a),e);s.entryCount=l.length,0===s.entryCount&&o.push(a),r.each(l,(function(e){r.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(i,e);r.indexOf(t.successor,e)<0&&t.successor.push(a)}))})),{graph:i,noEntryList:o}}(i),l=s.graph,u=s.noEntryList,c={};for(r.each(e,(function(e){c[e]=!0}));u.length;){var h=u.pop(),p=l[h],d=!!c[h];d&&(o.call(a,h,p.originalDeps.slice()),delete c[h]),r.each(p.successor,d?m:f)}r.each(c,(function(){throw new Error("Circle dependency may exists")}))}function f(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,f(e)}}}},function(e,t,n){var r=n(1),i=r.createHashMap,o=r.isTypedArray,a=n(42).enableClassCheck,s=n(87),l=s.SOURCE_FORMAT_ORIGINAL,u=s.SERIES_LAYOUT_BY_COLUMN,c=s.SOURCE_FORMAT_UNKNOWN,h=s.SOURCE_FORMAT_TYPED_ARRAY,p=s.SOURCE_FORMAT_KEYED_COLUMNS;function d(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===p?{}:[]),this.sourceFormat=e.sourceFormat||c,this.seriesLayoutBy=e.seriesLayoutBy||u,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&i(e.encodeDefine),this.startIndex=e.startIndex||
80,this.dimensionsDetectCount=e.dimensionsDetectCount}d.seriesDataToSource=function(e){return new d({data:e,sourceFormat:o(e)?h:l,fromDataset:!1})},a(d);var f=d;e.exports=f},function(e,t){t.SOURCE_FORMAT_ORIGINAL="original",t.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",t.SOURCE_FORMAT_OBJECT_ROWS="objectRows",t.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",t.SOURCE_FORMAT_UNKNOWN="unknown",t.SOURCE_FORMAT_TYPED_ARRAY="typedArray",t.SERIES_LAYOUT_BY_COLUMN="column",t.SERIES_LAYOUT_BY_ROW="row"},function(e,t,n){var r=n(1),i=r.each,o=r.createHashMap,a=(r.assert,n(15).__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function s(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}t.OTHER_DIMENSIONS=a,t.summarizeDimensions=function(e){var t={},n=t.encode={},r=o(),l=[],u=[],c=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};i(e.dimensions,(function(t){var i,o=e.getDimensionInfo(t),h=o.coordDim;if(h){var p=o.coordDimIndex;s(n,h)[p]=t,o.isExtraCoord||(r.set(h,1),"ordinal"!==(i=o.type)&&"time"!==i&&(l[0]=t),s(c.encode,h)[p]=o.index),o.defaultTooltip&&u.push(t)}a.each((function(e,t){var r=s(n,t),i=o.otherDims[t];null!=i&&!1!==i&&(r[i]=o.name)}))}));var h=[],p={};r.each((function(e,t){var r=n[t];p[t]=r[0],h=h.concat(r)})),t.dataDimsOnCoord=h,t.encodeFirstDimNotExtra=p;var d=n.label;d&&d.length&&(l=d.slice());var f=n.tooltip;return f&&f.length?u=f.slice():u.length||(u=l.slice()),n.defaultedLabel=l,n.defaultedTooltip=u,t},t.getDimensionTypeByAxis=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}},function(e,t,n){var r=n(12),i=n(108),o=n(1).isObject;function a(e){this.group=new r.Group,this._symbolCtor=e||i}var s=a.prototype;function l(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function u(e){return null==e||o(e)||(e={isIgnore:e}),e||{}}function c(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}s.updateData=function(e,t){t=u(t);var n=this.group,i=e.hostModel,o=this._data,a=this._symbolCtor,s=c(e);o||n.removeAll(),e.diff(o).add((function(r){var i=e.getItemLayout(r);if(l(e,i,r,t)){var o=new a(e,r,s);o.attr("position",i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(u,c){var h=o.getItemGraphicEl(c),p=e.getItemLayout(u);l(e,p,u,t)?(h?(h.updateData(e,u,s),r.updateProps(h,{position:p},i)):(h=new a(e,u)).attr("position",p),n.add(h),e.setItemGraphicEl(u,h)):n.remove(h)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._data=e},s.isPersistent=function(){return!0},s.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,n){var r=e.getItemLayout(n);t.attr("position",r)}))},s.incrementalPrepareUpdate=function(e){this._seriesScope=c(e),this._data=null,this.group.removeAll()},s.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=u(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(l(t,o,i,n)){var a=new this._symbolCtor(t,i,this._seriesScope);a.traverse(r),a.attr("position",o),this.group.add(a),t.setItemGraphicEl(i,a)}}},s.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var h=a;e.exports=h},function(e,t,n){var r=n(12),i=n(13).round;function o(e,t,n){var i=e.getArea(),o=e.getBaseAxis().isHorizontal(),a=i.x,s=i.y,l=i.width,u=i.height,c=n.get("lineStyle.width")||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new r.Rect({shape:{x:a,y:s,width:l,height:u}});return t&&(h.shape[o?"width":"height"]=0,r.initProps(h,{shape:{width:l,height:u}},n)),h}function a(e,t,n){var o=e.getArea(),a=new r.Sector({shape:{cx:i(e.cx,1),cy:i(e.cy,1),r0:i(o.r0,1),r:i(o.r,1),startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}});return t&&(a.shape.endAngle=o.startAngle,r.initProps(a,{shape:{endAngle:o.endAngle}},n)),a}t.createGridClipPath=o,t.createPolarClipPath=a,t.createClipPath=function(e,t,n){return e?"polar"===e.type?a(e,t,n):"cartesian2d"===e.type?o(e,t,n):null:null}},function(e,t,n){var r=n(1).map,i=n(71),o=n(41).isDimensionStacked;e.exports=function(e){return{seriesType:e,plan:i(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,i=e.pipelineContext.large;if(n){var a=r(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),s=a.length,l=t.getCalculationInfo("stackResultDimension");return o(t,a[0])&&(a[0]=l),o(t,a[1])&&(a[1]=l),s&&{progress:function(e,t){for(var r=e.end-e.start,o=i&&new Float32Array(r*s),l=e.start,u=0,c=[],h=[];l<e.end;l++){var p;if(1===s){var d=t.get(a[0],l);p=!isNaN(d)&&n.dataToPoint(d,null,h)}else{d=c[0]=t.get(a[0],l);var f=c[1]=t.get(a[1],l);p=!isNaN(d)&&!isNaN(f)&&n.dataToPoint(c,null,h)}i?(o[u++]=p?p[0]:NaN,o[u++]=p?p[1]:NaN):t.setItemLayout(l,p&&p.slice()||[NaN,NaN])}i&&t.setLayout("symbolPoints",o)}}}}}}},function(e,t,n){var r=n(9),i=n(1),o=n(12);n(130),n(364),r.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new o.Rect({shape:e.coordinateSystem.getRect(),style:i.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}
8))}}),r.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},function(e,t){var n=function(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){return t().indexOfName(e)>=0},this.indexOfName=function(t){return e().indexOfName(t)},this.getItemVisual=function(t,n){return e().getItemVisual(t,n)}};e.exports=n},function(e,t){e.exports=function(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}},function(e,t,n){var r=n(1),i=n(57),o=n(38),a=n(208);function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=r.bind,n=t(l,this),o=t(u,this),a=t(c,this),s=t(h,this),d=t(p,this);i.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,i){this.disable(),this._opt=r.defaults(r.clone(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",d))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",d)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(o.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function u(e){if(this._dragging&&m("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,s=t-r,l=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(e.event),f(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:r,oldY:i,newX:t,newY:n})}}function c(e){o.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function h(e){var t=m("zoomOnMouseWheel",e,this._opt),n=m("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;d(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:o,originY:a})}if(n){var l=Math.abs(r);d(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function p(e){a.isTaken(this._zr,"globalPan")||d(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY})}function d(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),f(e,t,n,r,i))}function f(e,t,n,i,o){o.isAvailableBehavior=r.bind(m,null,n,i),e.trigger(t,o)}function m(e,t,n){var i=n[e];return!e||i&&(!r.isString(i)||t.event[i+"Key"])}r.mixin(s,i);var g=s;e.exports=g},function(e,t,n){var r=n(9),i=n(1),o=n(110),a=n(493);n(494),n(495),n(227),r.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!i.isArray(t)&&(e.axisPointer.link=[t])}})),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=o.collect(e,t)})),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},function(e,t,n){"use strict";const r=n(603),i=n(604),o=n(605);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e,t){return t.decode?i(e):e}function l(e){const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":return(e,t,n)=>{const r="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;n[e]=r};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=Object.assign({decode:!0,arrayFormat:"none"},t)),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(i.replace(/\+/g," "),"=");a=void 0===a?null:s(a,t),n(s(e,t),a,r)}return Object.keys(r).sort().reduce((e,t)=>
8{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=l,t.parse=u,t.stringify=(e,t)=>{if(!e)return"";const n=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r?n:null===r?[...n,[a(t,e),"[",i,"]"].join("")]:[...n,[a(t,e),"[",a(i,e),"]=",a(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r?n:null===r?[...n,[a(t,e),"[]"].join("")]:[...n,[a(t,e),"[]=",a(r,e)].join("")];case"comma":return t=>(n,r,i)=>r?0===i?[[a(t,e),"=",a(r,e)].join("")]:[[n,a(r,e)].join(",")]:n;default:return t=>(n,r)=>void 0===r?n:null===r?[...n,a(t,e)]:[...n,[a(t,e),"=",a(r,e)].join("")]}}(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)),r=Object.keys(e);return!1!==t.sort&&r.sort(t.sort),r.map(r=>{const i=e[r];return void 0===i?"":null===i?a(r,t):Array.isArray(i)?i.reduce(n(r),[]).join("&"):a(r,t)+"="+a(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
8{const n=e.indexOf("#");return-1!==n&&(e=e.slice(0,n)),{url:e.split("?")[0]||"",query:u(l(e),t)}}},function(e,t,n){var r=n(163),i=n(22),o=n(1),a=n(309),s=n(313),l=n(317),u=n(319),c=n(320),h=!i.canvasSupported,p={canvas:l},d={};var f=function(e,t,n){n=n||{},this.dom=t,this.id=e;var r=this,l=new s,d=n.renderer;if(h){if(!p.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&p[d]||(d="canvas");var f=new p[d](t,l,n,e);this.storage=l,this.painter=f;var m=i.node||i.worker?null:new c(f.getViewportRoot(),f.root);this.handler=new a(l,f,m,f.root),this.animation=new u({stage:{update:o.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var g=l.delFromStorage,y=l.addToStorage;l.delFromStorage=function(e){g.call(l,e),e&&e.removeSelfFromZr(r)},l.addToStorage=function(e){y.call(l,e),e.addSelfToZr(r)}};f.prototype={constructor:f,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete d[e]}},t.version="4.3.2",t.init=function(e,t){var n=new f(r(),e,t);return d[n.id]=n,n},t.dispose=function(e){if(e)e.dispose();else{for(var t in d)d.hasOwnProperty(t)&&d[t].dispose();d={}}return this},t.getInstance=function(e){return d[e]},t.registerPainter=function(e,t){p[e]=t}},function(e,t,n){var r=n(29),i=n(18),o=r.identity;function a(e){return e>5e-5||e<-5e-5}var s=function(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s.prototype;l.transform=null,l.needLocalTransform=function(){return a(this.rotation)||a(this.position[0])||a(this.position[1])||a(this.scale[0]-1)||a(this.scale[1]-1)};var u=[];l.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;if(n||t){i=i||r.create(),n?this.getLocalTransform(i):o(i),t&&(n?r.mul(i,e.transform,i):r.copy(i,e.transform)),this.transform=i;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*a+s)/u[0]||0,h=((u[1]-l)*a+l)/u[1]||0;i[0]*=c,i[1]*=c,i[2]*=h,i[3]*=h}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,i)}else i&&o(i)},l.getLocalTransform=function(e){return s.getLocalTransform(this,e)},l.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},l.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var c=[],h=r.create();l.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=this.position,i=this.scale;a(t-1)&&(t=Math.sqrt(t)),a(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),r[0]=e[4],r[1]=e[5],i[0]=t,i[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},l.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(c,e.invTransform,t),t=c);var n=this.origin;
8n&&(n[0]||n[1])&&(h[4]=n[0],h[5]=n[1],r.mul(c,t,h),c[4]-=n[0],c[5]-=n[1],t=c),this.setLocalTransform(t)}},l.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},l.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},l.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},s.getLocalTransform=function(e,t){o(t=t||[]);var n=e.origin,i=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),r.scale(t,t,i),a&&r.rotate(t,t,a),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var p=s;e.exports=p},function(e,t){var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var r=n;t.debugMode=0,t.devicePixelRatio=r},function(e,t){t.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},t.WILL_BE_RESTORED=9},function(e,t,n){var r=n(1),i=r.retrieve2,o=r.retrieve3,a=r.each,s=r.normalizeCssArray,l=r.isString,u=r.isObject,c=n(32),h=n(172),p=n(121),d=n(168),f=n(101),m=f.ContextCachedBy,g=f.WILL_BE_RESTORED,y=c.DEFAULT_FONT,v={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){if(e){e.font=c.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||v[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;"center"===n&&(n="middle"),e.textVerticalAlign=null==n||_[n]?n:"top",e.textPadding&&(e.textPadding=s(e.textPadding))}}function k(e,t,n,r,i){if(n&&t.textRotation){var o=t.textOrigin;"center"===o?(r=n.width/2+n.x,i=n.height/2+n.y):o&&(r=o[0]+n.x,i=o[1]+n.y),e.translate(r,i),e.rotate(-t.textRotation),e.translate(-r,-i)}}function T(e,t,n,r,a,s,l,u){var c=r.rich[n.styleName]||{};c.text=n.text;var h=n.textVerticalAlign,p=s+a/2;"top"===h?p=s+n.height/2:"bottom"===h&&(p=s+a-n.height/2),!n.isLineHolder&&M(c)&&E(e,t,c,"right"===u?l-n.width:"center"===u?l-n.width/2:l,p-n.height/2,n.width,n.height);var d=n.textPadding;d&&(l=O(l,u,d),p-=n.height/2-d[2]-n.textHeight/2),A(t,"shadowBlur",o(c.textShadowBlur,r.textShadowBlur,0)),A(t,"shadowColor",c.textShadowColor||r.textShadowColor||"transparent"),A(t,"shadowOffsetX",o(c.textShadowOffsetX,r.textShadowOffsetX,0)),A(t,"shadowOffsetY",o(c.textShadowOffsetY,r.textShadowOffsetY,0)),A(t,"textAlign",u),A(t,"textBaseline","middle"),A(t,"font",n.font||y);var f=P(c.textStroke||r.textStroke,g),m=D(c.textFill||r.textFill),g=i(c.textStrokeWidth,r.textStrokeWidth);f&&(A(t,"lineWidth",g),A(t,"strokeStyle",f),t.strokeText(n.text,l,p)),m&&(A(t,"fillStyle",m),t.fillText(n.text,l,p))}function M(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function E(e,t,n,r,i,o,a){var s=n.textBackgroundColor,c=n.textBorderWidth,d=n.textBorderColor,f=l(s);if(A(t,"shadowBlur",n.textBoxShadowBlur||0),A(t,"shadowColor",n.textBoxShadowColor||"transparent"),A(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),A(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),f||c&&d){t.beginPath();var m=n.textBorderRadius;m?h.buildPath(t,{x:r,y:i,width:o,height:a,r:m}):t.rect(r,i,o,a),t.closePath()}if(f)if(A(t,"fillStyle",s),null!=n.fillOpacity){var g=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=g}else t.fill();else if(u(s)){var y=s.image;(y=p.createOrUpdateImage(y,null,e,C,s))&&p.isImageReady(y)&&t.drawImage(y,r,i,o,a)}if(c&&d)if(A(t,"lineWidth",c),A(t,"strokeStyle",d),null!=n.strokeOpacity){g=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=g}else t.stroke()}function C(e,t){t.image=e}function I(e,t,n,r){var i=n.x||0,o=n.y||0,a=n.textAlign,s=n.textVerticalAlign;if(r){var l=n.textPosition;if(l instanceof Array)i=r.x+L(l[0],r.width),o=r.y+L(l[1],r.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(b,n,r):c.calculateTextPosition(b,n,r);i=u.x,o=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var h=n.textOffset;h&&(i+=h[0],o+=h[1])}return(e=e||{}).baseX=i,e.baseY=o,e.textAlign=a,e.textVerticalAlign=s,e}
8function A(e,t,n){return e[t]=d(e,t,n),e[t]}function P(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function D(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function L(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function O(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}t.normalizeTextStyle=function(e){return S(e),a(e.rich,S),e},t.renderText=function(e,t,n,r,i,o){r.rich?function(e,t,n,r,i,o){o!==g&&(t.__attrCachedBy=m.NONE);var a=e.__textCotentBlock;a&&!e.__dirtyText||(a=e.__textCotentBlock=c.parseRichText(n,r));!function(e,t,n,r,i){var o=n.width,a=n.outerWidth,s=n.outerHeight,l=r.textPadding,u=I(w,e,r,i),h=u.baseX,p=u.baseY,d=u.textAlign,f=u.textVerticalAlign;k(t,r,i,h,p);var m=c.adjustTextX(h,a,d),g=c.adjustTextY(p,s,f),y=m,v=g;l&&(y+=l[3],v+=l[0]);var _=y+o;M(r)&&E(e,t,r,m,g,a,s);for(var x=0;x<n.lines.length;x++){for(var b,S=n.lines[x],C=S.tokens,A=C.length,P=S.lineHeight,D=S.width,L=0,O=y,R=_,z=A-1;L<A&&(!(b=C[L]).textAlign||"left"===b.textAlign);)T(e,t,b,r,P,v,O,"left"),D-=b.width,O+=b.width,L++;for(;z>=0&&"right"===(b=C[z]).textAlign;)T(e,t,b,r,P,v,R,"right"),D-=b.width,R-=b.width,z--;for(O+=(o-(O-y)-(_-R)-D)/2;L<=z;)b=C[L],T(e,t,b,r,P,v,O+b.width/2,"center"),O+=b.width,L++;v+=P}}(e,t,a,r,i)}(e,t,n,r,i,o):function(e,t,n,r,i,o){"use strict";var a,s=M(r),l=!1,u=t.__attrCachedBy===m.PLAIN_TEXT;o!==g?(o&&(a=o.style,l=!s&&u&&a),t.__attrCachedBy=s?m.NONE:m.PLAIN_TEXT):u&&(t.__attrCachedBy=m.NONE);var h=r.font||y;l&&h===(a.font||y)||(t.font=h);var p=e.__computedFont;e.__styleFont!==h&&(e.__styleFont=h,p=e.__computedFont=t.font);var f=r.textPadding,v=r.textLineHeight,_=e.__textCotentBlock;_&&!e.__dirtyText||(_=e.__textCotentBlock=c.parsePlainText(n,p,f,v,r.truncate));var b=_.outerHeight,S=_.lines,T=_.lineHeight,C=I(w,e,r,i),A=C.baseX,L=C.baseY,R=C.textAlign||"left",z=C.textVerticalAlign;k(t,r,i,A,L);var N=c.adjustTextY(L,b,z),B=A,F=N;if(s||f){var V=c.getWidth(n,p);f&&(V+=f[1]+f[3]);var j=c.adjustTextX(A,V,R);s&&E(e,t,r,j,N,V,b),f&&(B=O(A,R,f),F+=f[0])}t.textAlign=R,t.textBaseline="middle",t.globalAlpha=r.opacity||1;for(var U=0;U<x.length;U++){var G=x[U],q=G[0],H=G[1],W=r[q];l&&W===a[q]||(t[H]=d(t,H,W||G[2]))}F+=T/2;var Z=r.textStrokeWidth,Y=l?a.textStrokeWidth:null,X=!l||Z!==Y,K=!l||X||r.textStroke!==a.textStroke,$=P(r.textStroke,Z),J=D(r.textFill);$&&(X&&(t.lineWidth=Z),K&&(t.strokeStyle=$));J&&(l&&r.textFill===a.textFill||(t.fillStyle=J));if(1===S.length)$&&t.strokeText(S[0],B,F),J&&t.fillText(S[0],B,F);else for(U=0;U<S.length;U++)$&&t.strokeText(S[U],B,F),J&&t.fillText(S[U],B,F),F+=T}(e,t,n,r,i,o)},t.getBoxPosition=I,t.getStroke=P,t.getFill=D,t.parsePercent=L,t.needDrawText=function(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}},function(e,t){var n=function(e){this.colorStops=e||[]};n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var r=n;e.exports=r},function(e,t,n){var r=n(58),i=n(85),o=n(42),a=function(){this.group=new r,this.uid=i.getUID("viewComponent")},s=a.prototype={constructor:a,init:function(e,t){},render:function(e,t,n,r){},dispose:function(){},filterForExposedEvent:null};s.updateView=s.updateLayout=s.updateVisual=function(e,t,n,r){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0});var l=a;e.exports=l},function(e,t,n){var r=n(42);function i(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}i.prototype.parse=function(e){return e},i.prototype.getSetting=function(e){return this._setting[e]},i.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},i.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},i.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},i.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(e){this._isBlank=e},i.prototype.getLabel=null,r.enableClassExtend(i),r.enableClassManagement(i,{registerWhenExtend:!0});var o=i;e.exports=o},function(e,t,n){var r=n(13),i=n(17),o=n(105),a=n(193),s=r.round,l=o.extend({type:"interval",_interval:0,_intervalPrecision:2,
8setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push(s(r[0]-t,i)):o.push(n[0]));for(var a=r[0];a<=r[1]&&(o.push(a),(a=s(a+t,i))!==o[o.length-1]);)if(o.length>1e4)return[];var l=o.length?o[o.length-1]:r[1];return n[1]>l&&(e?o.push(s(l+t,i)):o.push(n[1])),o},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<t.length;o++){for(var a=t[o],s=t[o-1],l=0,u=[],c=(a-s)/e;l<e-1;){var h=r.round(s+(l+1)*c);h>i[0]&&h<i[1]&&u.push(h),l++}n.push(u)}return n},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=r.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=s(e,n,!0),i.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=a.intervalScaleNiceTicks(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=s(Math.ceil(t[1]/i)*i))}});l.create=function(){return new l};var u=l;e.exports=u},function(e,t,n){var r=n(1),i=n(13).parsePercent,o=n(41).isDimensionStacked,a=n(71),s="undefined"!=typeof Float32Array?Float32Array:Array;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function u(e){return e.dim+e.index}function c(e,t){var n=[];return t.eachSeriesByType(e,(function(e){m(e)&&!g(e)&&n.push(e)})),n}function h(e){var t=function(e){var t={};r.each(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.mapDimension(n.dim),a=0,s=r.count();a<s;++a){var l=r.get(o,a);t[i]?t[i].push(l):t[i]=[l]}}));var n=[];for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(o){o.sort((function(e,t){return e-t}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[i]=a}}return n}(e),n=[];return r.each(e,(function(e){var r,o=e.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,c=t[s],h=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),d=Math.abs(p[1]-p[0]);r=c?h/d*c:h}else{var f=e.getData();r=Math.abs(a[1]-a[0])/f.count()}var m=i(e.get("barWidth"),r),g=i(e.get("barMaxWidth"),r),y=i(e.get("barMinWidth")||1,r),v=e.get("barGap"),_=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:g,barMinWidth:y,barGap:v,barCategoryGap:_,axisKey:u(o),stackId:l(e)})})),p(n)}function p(e){var t={};r.each(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var h=e.barGap;null!=h&&(o.gap=h);var p=e.barCategoryGap;
8null!=p&&(o.categoryGap=p)}));var n={};return r.each(t,(function(e,t){n[t]={};var o=e.stacks,a=e.bandWidth,s=i(e.categoryGap,a),l=i(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),r.each(o,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=h;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==h&&(e.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;r.each(o,(function(e,t){e.width||(e.width=h),p=e,d+=e.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;r.each(o,(function(e,r){n[t][r]=n[t][r]||{bandWidth:a,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function d(e,t,n){if(e&&t){var r=e[u(t)];return null!=r&&null!=n&&(r=r[l(n)]),r}}var f={seriesType:"bar",plan:a(),reset:function(e){if(m(e)&&g(e)){var t=e.getData(),n=e.coordinateSystem,r=n.grid.getRect(),i=n.getBaseAxis(),o=n.getOtherAxis(i),a=t.mapDimension(o.dim),l=t.mapDimension(i.dim),u=o.isHorizontal(),c=u?0:1,p=d(h([e]),i,e).width;return p>.5||(p=.5),{progress:function(e,t){var h,d=e.count,f=new s(2*d),m=new s(2*d),g=new s(d),v=[],_=[],x=0,b=0;for(;null!=(h=e.next());)_[c]=t.get(a,h),_[1-c]=t.get(l,h),v=n.dataToPoint(_,null,v),m[x]=u?r.x+r.width:v[0],f[x++]=v[0],m[x]=u?v[1]:r.y+r.height,f[x++]=v[1],g[b++]=h;t.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:m,barWidth:p,valueAxisStart:y(i,o,!1),backgroundStart:u?r.x:r.y,valueAxisHorizontal:u})}}}}};function m(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function g(e){return e.pipelineContext&&e.pipelineContext.large}function y(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=function(e){var t=[],n=e.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<e.count;o++)t.push(r.defaults({bandWidth:i,axisKey:"axis0",stackId:"__ec_stack_"+o},e));var a=p(t),s=[];for(o=0;o<e.count;o++){var l=a.axis0["__ec_stack_"+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}},t.prepareLayoutBarSeries=c,t.makeColumnLayout=h,t.retrieveColumnLayout=d,t.layout=function(e,t){var n=c(e,t),i=h(n),a={},s={};r.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),c=l(e),h=i[u(r)][c],p=h.offset,d=h.width,f=n.getOtherAxis(r),m=e.get("barMinHeight")||0;a[c]=a[c]||[],s[c]=s[c]||[],t.setLayout({bandWidth:h.bandWidth,offset:p,size:d});for(var g=t.mapDimension(f.dim),v=t.mapDimension(r.dim),_=o(t,g),x=f.isHorizontal(),b=y(r,f,_),w=0,S=t.count();w<S;w++){var k,T,M,E,C,I=t.get(g,w),A=t.get(v,w),P=I>=0?"p":"n",D=b;if(_&&(a[c][A]||(a[c][A]={p:b,n:b}),D=a[c][A][P]),x)k=D,T=(C=n.dataToPoint([I,A]))[1]+p,M=C[0]-b,E=d,Math.abs(M)<m&&(M=(M<0?-1:1)*m),isNaN(M)||_&&(a[c][A][P]+=M);else k=(C=n.dataToPoint([A,I]))[0]+p,T=D,M=d,E=C[1]-b,Math.abs(E)<m&&(E=(E<=0?-1:1)*m),isNaN(E)||_&&(a[c][A][P]+=E);t.setItemLayout(w,{x:k,y:T,width:M,height:E})}}),this)},t.largeLayout=f},function(e,t,n){var r=n(1),i=n(35).createSymbol,o=n(12),a=n(13).parsePercent,s=n(129).getDefaultLabel;function l(e,t,n){o.Group.call(this),this.updateData(e,t,n)}var u=l.prototype,c=l.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function h(e){return[e[0]/2,e[1]/2]}function p(e,t){this.parent.drift(e,t)}u._createSymbol=function(e,t,n,r,o){this.removeAll();var a=t.getItemVisual(n,"color"),s=i(e,-1,-1,2,2,a,o);s.attr({z2:100,culling:!0,scale:h(r)}),s.drift=p,this._symbolType=e,this.add(s)},u.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},u.getSymbolPath=function(){return this.childAt(0)},u.getScale=function(){return this.childAt(0).scale},u.highlight=function(){this.childAt(0).trigger("emphasis")},u.downplay=function(){this.childAt(0).trigger("normal")},u.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},u.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},u.updateData=function(e,t,n){this.silent=!1;var r=e.getItemVisual(t,"symbol")||"circle",i=e.hostModel,a=c(e,t),s=r!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(r,e,t,a,l)}else{(u=this.childAt(0)).silent=!1,o.updateProps(u,{scale:h(a)},i,t)}if(this._updateCommon(e,t,a,n),s){var u=this.childAt(0),p=n&&n.fadeIn,d={scale:u.scale.slice()};p&&(d.style={opacity:u.style.opacity}),u.scale=[0,0],p&&(u.style.opacity=0),o.initProps(u,d,i,t)}this._seriesModel=i};var d=["itemStyle"],f=["emphasis","itemStyle"],m=["label"],g=["emphasis","label"];function y(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,r=n[1]/n[0],i={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*r)]};this.animateTo(i,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}u._updateCommon=function(e,t,n,i){var l=this.childAt(0),u=e.hostModel,c=e.getItemVisual(t,"color");"image"!==l.type?l.useStyle({strokeNoScale:!0}):l.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var p=i&&i.itemStyle,v=i&&i.hoverItemStyle,_=i&&i.symbolOffset,x=i&&i.labelModel,b=i&&i.hoverLabelModel,w=i&&i.hoverAnimation,S=i&&i.cursorStyle;if(!i||e.hasItemOption){var k=i&&i.itemModel?i.itemModel:e.getItemModel(t);p=k.getModel(d).getItemStyle(["color"]),v=k.getModel(f).getItemStyle(),_=k.getShallow("symbolOffset"),x=k.getModel(m),b=k.getModel(g),w=k.getShallow("hoverAnimation"),S=k.getShallow("cursor")}else v=r.extend({},v);var T=l.style,M=e.getItemVisual(t,"symbolRotate");l.attr("rotation",(M||0)*Math.PI/180||0),_&&l.attr("position",[a(_[0],n[0]),a(_[1],n[1])]),S&&l.attr("cursor",S),l.setColor(c,i&&i.symbolInnerColor),l.setStyle(p);var E=e.getItemVisual(t,"opacity");null!=E&&(T.opacity=E);
8var C=e.getItemVisual(t,"liftZ"),I=l.__z2Origin;null!=C?null==I&&(l.__z2Origin=l.z2,l.z2+=C):null!=I&&(l.z2=I,l.__z2Origin=null);var A=i&&i.useNameLabel;o.setLabelStyle(T,v,x,b,{labelFetcher:u,labelDataIndex:t,defaultText:function(t,n){return A?e.getName(t):s(e,t)},isRectText:!0,autoColor:c}),l.__symbolOriginalScale=h(n),l.hoverStyle=v,l.highDownOnUpdate=w&&u.isAnimationEnabled()?y:null,o.setHoverStyle(l)},u.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),o.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},r.inherits(l,o.Group);var v=l;e.exports=v},function(e,t,n){var r=n(1),i=n(201),o=n(24),a=n(16),s=a.getLayoutParams,l=a.mergeLayoutParam,u=n(192),c=["value","category","time","log"];e.exports=function(e,t,n,a){r.each(c,(function(o){t.extend({type:e+"Axis."+o,mergeDefaultAndTheme:function(t,i){var a=this.layoutMode,u=a?s(t):{},c=i.getTheme();r.merge(t,c.get(o+"Axis")),r.merge(t,this.getDefaultOption()),t.type=n(e,t),a&&l(t,u,a)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},i[o+"Axis"],a],!0)})})),o.registerSubTypeDefaulter(e+"Axis",r.curry(n,e))}},function(e,t,n){var r=n(1),i=n(23),o=r.each,a=r.curry;function s(e,t){return"all"===e||r.isArray(e)&&r.indexOf(e,t)>=0||e===t}function l(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[c(e)]}function u(e){return!!e.get("handle.show")}function c(e){return e.type+"||"+e.id}t.collect=function(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var l=t.getComponent("tooltip"),h=t.getComponent("axisPointer"),p=h.get("link",!0)||[],d=[];o(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var f=c(n.model),m=e.coordSysAxesInfo[f]={};e.coordSysMap[f]=n;var g=n.model.getModel("tooltip",l);if(o(n.getAxes(),a(x,!1,null)),n.getTooltipAxes&&l&&g.get("show")){var y="axis"===g.get("trigger"),v="cross"===g.get("axisPointer.type"),_=n.getTooltipAxes(g.get("axisPointer.axis"));(y||v)&&o(_.baseAxes,a(x,!v||"cross",y)),v&&o(_.otherAxes,a(x,"cross",!1))}}function x(a,l,f){var y=f.model.getModel("axisPointer",h),v=y.get("show");if(v&&("auto"!==v||a||u(y))){null==l&&(l=y.get("triggerTooltip"));var _=(y=a?function(e,t,n,a,s,l){var u=t.getModel("axisPointer"),c={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){c[e]=r.clone(u.get(e))})),c.snap="category"!==e.type&&!!l,"cross"===u.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===s){var p=u.get("label.show");if(h.show=null==p||p,!l){var d=c.lineStyle=u.get("crossStyle");d&&r.defaults(h,d.textStyle)}}return e.model.getModel("axisPointer",new i(c,n,a))}(f,g,h,t,a,l):y).get("snap"),x=c(f.model),b=l||_||"category"===f.type,w=e.axesInfo[x]={key:x,axis:f,coordSys:n,axisPointerModel:y,triggerTooltip:l,involveSeries:b,snap:_,useHandle:u(y),seriesModels:[]};m[x]=w,e.seriesInvolved|=b;var S=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(s(o[r+"AxisId"],n.id)||s(o[r+"AxisIndex"],n.componentIndex)||s(o[r+"AxisName"],n.name))return i}}(p,f);if(null!=S){var k=d[S]||(d[S]={axesInfo:{}});k.axesInfo[x]=w,k.mapper=p[S].mapper,w.linkGroup=k}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get("tooltip.trigger",!0),i=t.get("tooltip.show",!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get("axisPointer.show",!0)&&o(e.coordSysAxesInfo[c(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}(n,e),n},t.fixValue=function(e){var t=l(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=u(n);null==o&&(i.status=s?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(null==a||a>c[1])&&(a=c[1]),a<c[0]&&(a=c[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}},t.getAxisInfo=l,t.getAxisPointerModel=function(e){var t=l(e);return t&&t.axisPointerModel},t.makeKey=c},function(e,t,n){var r=n(1).createHashMap;e.exports=function(e){return{getTargetSeries:function(t){var n={},i=r();return t.eachSeriesByType(e,(function(e){e.__paletteScope=n,i.set(e.uid,e)})),i},reset:function(e,t){var n=e.getRawData(),r={},i=e.getData();i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(t){var o,a=r[t],s=null!=a&&i.getItemVisual(a,"color",!0),l=null!=a&&i.getItemVisual(a,"borderColor",!0);if(s&&l||(o=n.getItemModel(t)),!s){var u=o.get("itemStyle.color")||e.getColorFromPalette(n.getName(t)||t+"",e.__paletteScope,n.count());null!=a&&i.setItemVisual(a,"color",u)}if(!l){var c=o.get("itemStyle.borderColor");null!=a&&i.setItemVisual(a,"borderColor",c)}}))}}}},function(e,t,n){n(15).__DEV__;var r=n(1),i=r.each,o=r.createHashMap,a=n(128),s=n(392),l=n(397),u=n(19),c={geoJSON:s,svg:l},h={load:function(e,t,n){var r,a=[],s=o(),l=o(),h=d(e);return i(h,(function(o){var u=c[o.type].load(e,o,n);i(u.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),a.push(e),s.set(n,e),l.set(n,e.center)}));var h=u.boundingRect;h&&(r?r.union(h):r=h.clone())})),{regions:a,regionsMap:s,nameCoordMap:l,boundingRect:r||new u(0,0,0,0)}},makeGraphic:p("makeGraphic"),removeGraphic:p("removeGraphic")};function p(e){return function(t,n){var r=d(t),o=[];return i(r,(function(r){var i=c[r.type][e];i&&o.push(i(t,r,n))})),o}}function d(e){return a.retrieveMap(e)||[]}e.exports=h},function(e,t){var n={axisPointer:1,tooltip:1,brush:1};t.onIrrelevantElement=function(e,t,r){var i=t.getComponentByElement(e.topTarget),o=i&&i.coordinateSystem;return i&&i!==r&&!n[i.mainType]&&o&&o.model!==r}},function(e,t,n){var r=n(1),i=function(e){return e.get("autoCurveness")||null},o=function(e,t){var n=i(e),o=20,a=[];if("number"==typeof n)o=n;else if(r.isArray(n))return void(e.__curvenessList=n);t>o&&(o=t);var s=o%2?o+2:o+3;a=[];for(var l=0;l<s;l++)a.push((l%2?l+1:l)/10*(l%2?-1:1));e.__curvenessList=a},a=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},s=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},l=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};t.initCurvenessList=function(e){i(e)&&(e.__curvenessList=[],e.__edgeMap={},o(e))},t.createEdgeMapForCurveness=function(e,t,n,r){if(i(n)){var o=a(e,t,n
8),l=n.__edgeMap,u=l[s(o)];l[o]&&!u?l[o].isForward=!0:u&&l[o]&&(u.isForward=!0,l[o].isForward=!1),l[o]=l[o]||[],l[o].push(r)}},t.getCurvenessForEdge=function(e,t,n,u){var c=i(t),h=r.isArray(c);if(!c)return null;var p=function(e,t){var n=a(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!p)return null;for(var d=-1,f=0;f<p.length;f++)if(p[f]===n){d=f;break}var m=function(e,t){return l(a(e.node1,e.node2,t),t)+l(a(e.node2,e.node1,t),t)}(e,t);o(t,m),e.lineStyle=e.lineStyle||{};var g=a(e.node1,e.node2,t),y=t.__curvenessList,v=h||m%2?0:1;if(p.isForward)return y[v+d];var _=s(g),x=l(_,t),b=y[d+x+v];return u?h?c&&0===c[0]?(x+v)%2?b:-b:((x%2?0:1)+v)%2?b:-b:(x+v)%2?b:-b:y[d+x+v]}},function(e,t,n){var r=n(1),i=n(12),o=n(32),a=n(17),s=n(29),l=n(37),u=n(52);function c(e,t,n,r,i){var s=h(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),l=n.getModel("label"),u=a.normalizeCssArray(l.get("padding")||0),c=l.getFont(),p=o.getBoundingRect(s,c),d=i.position,f=p.width+u[1]+u[3],m=p.height+u[0]+u[2],g=i.align;"right"===g&&(d[0]-=f),"center"===g&&(d[0]-=f/2);var y=i.verticalAlign;"bottom"===y&&(d[1]-=m),"middle"===y&&(d[1]-=m/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(d,f,m,r);var v=l.get("backgroundColor");v&&"auto"!==v||(v=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:f,height:m,r:l.get("borderRadius")},position:d.slice(),style:{text:s,textFont:c,textFill:l.getTextColor(),textPosition:"inside",textPadding:u,fill:v,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function h(e,t,n,i,o){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:o.precision}),s=o.formatter;if(s){var u={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};r.each(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&u.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(u))}return a}function p(e,t,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),i.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}t.buildElStyle=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t},t.buildLabelElOption=c,t.getValueLabel=h,t.getTransformedPosition=p,t.buildCartesianSingleLabelElOption=function(e,t,n,r,i,o){var a=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get("label.margin"),c(t,r,i,o,{position:p(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})},t.makeLineShape=function(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}},t.makeRectShape=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},t.makeSectorShape=function(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}},function(e,t,n){var r=n(1),i=n(65),o=r.each;function a(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}t.createVisualMappings=function(e,t,n){var a={};return o(t,(function(t){var s,l=a[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);o(e[t],(function(e,o){if(i.isValidType(o)){var a={type:o,visual:e};n&&n(a,t),l[o]=new i(a),"opacity"===o&&((a=r.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new i(a))}}))})),a},t.replaceVisualOption=function(e,t,n){var i;r.each(n,(function(e){t.hasOwnProperty(e)&&a(t[e])&&(i=!0)})),i&&r.each(n,(function(n){t.hasOwnProperty(n)&&a(t[n])?e[n]=r.clone(t[n]):delete e[n]}))},t.applyVisual=function(e,t,n,o,a,s){var l,u={};function c(e){return n.getItemVisual(l,e)}function h(e,t){n.setItemVisual(l,e,t)}function p(e,r){l=null==s?e:r;var i=n.getRawDataItem(l);if(!i||!1!==i.visualMap)for(var p=o.call(a,e),d=t[p],f=u[p],m=0,g=f.length;m<g;m++){var y=f[m];d[y]&&d[y].applyVisual(e,c,h)}}r.each(e,(function(e){var n=i.prepareVisualTypes(t[e]);u[e]=n})),null==s?n.each(p):n.each([s],p)},t.incrementalApplyVisual=function(e,t,n,o){var a={};return r.each(e,(function(e){var n=i.prepareVisualTypes(t[e]);a[e]=n})),{progress:function(e,r){function i(e){return r.getItemVisual(l,e)}function s(e,t){r.setItemVisual(l,e,t)}var l;
8for(null!=o&&(o=r.getDimension(o));null!=(l=e.next());){var u=r.getRawDataItem(l);if(!u||!1!==u.visualMap)for(var c=null!=o?r.get(o,l,!0):l,h=n(c),p=t[h],d=a[h],f=0,m=d.length;f<m;f++){var g=d[f];p[g]&&p[g].applyVisual(c,i,s)}}}}}},function(e,t,n){var r=n(272);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var h=n[0],p=n[1],d=n.index;if(s+=e.slice(a,d),a=d+h.length,p)s+=p[1];else{var f=e[a],m=n[2],g=n[3],y=n[4],v=n[5],_=n[6],x=n[7];s&&(r.push(s),s="");var b=null!=m&&null!=f&&f!==m,w="+"===_||"*"===_,S="?"===_||"*"===_,k=n[2]||c,T=y||v;r.push({name:g||o++,prefix:m||"",delimiter:k,optional:S,repeat:w,partial:b,asterisk:!!x,pattern:T?u(T):x?".*":"[^"+l(k)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var o="",s=n||{},l=(i||{}).pretty?a:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var h,p=s[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(h=l(p[d]),!t[u].test(h))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===d?c.prefix:c.delimiter)+h}}else{if(h=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!t[u].test(h))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+h+'"');o+=c.prefix+h}}else o+=c}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function h(e){return e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var u=e[s];if("string"==typeof u)a+=l(u);else{var p=l(u.prefix),d="(?:"+u.pattern+")";t.push(u),u.repeat&&(d+="(?:"+p+d+")*"),a+=d=u.optional?u.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var f=l(n.delimiter||"/"),m=a.slice(-f.length)===f;return i||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+f+"|$)",c(new RegExp("^"+a,h(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",h(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(305);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=a},function(e,t){function n(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function r(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function i(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function o(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function a(e,t){var n,r,a,s=7,l=0;n=e.length;var u=[];function c(n){var c=r[n],h=a[n],p=r[n+1],d=a[n+1];a[n]=h+d,n===l-3&&(r[n+1]=r[n+2],a[n+1]=a[n+2]),l--;var f=o(e[p],e,c,h,0,t);c+=f,0!==(h-=f)&&0!==(d=i(e[c+h-1],e,p,d,d-1,t))&&(h<=d?function(n,r,a,l){var c=0;for(c=0;c<r;c++)u[c]=e[n+c];var h=0,p=a,d=n;if(e[d++]=e[p++],0==--l){for(c=0;c<r;c++)e[d+c]=u[h+c];return}if(1===r){for(c=0;c<l;c++)e[d+c]=e[p+c];return void(e[d+l]=u[h])}var f,m,g,y=s;for(;;){f=0,m=0,g=!1;
vendor: 1,631 bytes, line 8
8do{if(t(e[p],u[h])<0){if(e[d++]=e[p++],m++,f=0,0==--l){g=!0;break}}else if(e[d++]=u[h++],f++,m=0,1==--r){g=!0;break}}while((f|m)<y);if(g)break;do{if(0!==(f=o(e[p],u,h,r,0,t))){for(c=0;c<f;c++)e[d+c]=u[h+c];if(d+=f,h+=f,(r-=f)<=1){g=!0;break}}if(e[d++]=e[p++],0==--l){g=!0;break}if(0!==(m=i(u[h],e,p,l,0,t))){for(c=0;c<m;c++)e[d+c]=e[p+c];if(d+=m,p+=m,0===(l-=m)){g=!0;break}}if(e[d++]=u[h++],1==--r){g=!0;break}y--}while(f>=7||m>=7);if(g)break;y<0&&(y=0),y+=2}if((s=y)<1&&(s=1),1===r){for(c=0;c<l;c++)e[d+c]=e[p+c];e[d+l]=u[h]}else{if(0===r)throw new Error;for(c=0;c<r;c++)e[d+c]=u[h+c]}}(c,h,p,d):function(n,r,a,l){var c=0;for(c=0;c<l;c++)u[c]=e[a+c];var h=n+r-1,p=l-1,d=a+l-1,f=0,m=0;if(e[d--]=e[h--],0==--r){for(f=d-(l-1),c=0;c<l;c++)e[f+c]=u[c];return}if(1===l){for(m=(d-=r)+1,f=(h-=r)+1,c=r-1;c>=0;c--)e[m+c]=e[f+c];return void(e[d]=u[p])}var g=s;for(;;){var y=0,v=0,_=!1;do{if(t(u[p],e[h])<0){if(e[d--]=e[h--],y++,v=0,0==--r){_=!0;break}}else if(e[d--]=u[p--],v++,y=0,1==--l){_=!0;break}}while((y|v)<g);if(_)break;do{if(0!==(y=r-o(u[p],e,n,r,r-1,t))){for(r-=y,m=(d-=y)+1,f=(h-=y)+1,c=y-1;c>=0;c--)e[m+c]=e[f+c];if(0===r){_=!0;break}}if(e[d--]=u[p--],1==--l){_=!0;break}if(0!==(v=l-i(e[h],u,0,l,l-1,t))){for(l-=v,m=(d-=v)+1,f=(p-=v)+1,c=0;c<v;c++)e[m+c]=u[f+c];if(l<=1){_=!0;break}}if(e[d--]=e[h--],0==--r){_=!0;break}g--}while(y>=7||v>=7);if(_)break;g<0&&(g=0),g+=2}(s=g)<1&&(s=1);if(1===l){for(m=(d-=r)+1,f=(h-=r)+1,c=r-1;c>=0;c--)e[m+c]=e[f+c];e[d]=u[p]}else{if(0===l)throw new Error;for(f=d-(l-1),c=0;c<l;c++)e[f+c]=u[c]}}(c,h,p,d))}r=[],a=[],this.mergeRuns=function(){for(;l>1;){var e=l-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>
8=2&&a[e-2]<=a[e]+a[e-1])a[e-1]<a[e+1]&&e--;else if(a[e]>a[e+1])break;c(e)}},this.forceMergeRuns=function(){for(;l>1;){var e=l-2;e>0&&a[e-1]<a[e+1]&&e--,c(e)}},this.pushRun=function(e,t){r[l]=e,a[l]=t,l+=1}}e.exports=function(e,t,i,o){i||(i=0),o||(o=e.length);var s=o-i;if(!(s<2)){var l=0;if(s<32)r(e,i,o,i+(l=n(e,i,o,t)),t);else{var u=new a(e,t),c=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(s);do{if((l=n(e,i,o,t))<c){var h=s;h>c&&(h=c),r(e,i,i+h,i+l,t),l=h}u.pushRun(i,l),u.mergeRuns(),s-=l,i+=l}while(0!==s);u.forceMergeRuns()}}}},function(e,t,n){var r=n(168),i=n(101).ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(e){this.extendFrom(e,!1)};function s(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,e.createLinearGradient(r,o,i,a)}function l(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),e.createRadialGradient(a,s,0,a,s,l)}for(var u=a.prototype={constructor:a,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var a=n&&n.style,s=!a||e.__attrCachedBy!==i.STYLE_BIND;e.__attrCachedBy=i.STYLE_BIND;for(var l=0;l<o.length;l++){var u=o[l],c=u[0];(s||this[c]!==a[c])&&(e[c]=r(e,c,this[c]||u[1]))}if((s||this.fill!==a.fill)&&(e.fillStyle=this.fill),(s||this.stroke!==a.stroke)&&(e.strokeStyle=this.stroke),(s||this.opacity!==a.opacity)&&(e.globalAlpha=null==this.opacity?1:this.opacity),(s||this.blend!==a.blend)&&(e.globalCompositeOperation=this.blend||"source-over"),this.hasStroke()){var h=this.lineWidth;e.lineWidth=h/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var r=("radial"===t.type?l:s)(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}},c=0;c<o.length;c++){var h=o[c];h[0]in u||(u[h[0]]=h[1])}a.getGradient=u.getGradient;var p=a;e.exports=p},function(e,t,n){var r=new(n(167))(50);function i(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function o(e){return e&&e.width&&e.height}t.findExistImage=function(e){if("string"==typeof e){var t=r.get(e);return t&&t.image}return e},t.createOrUpdateImage=function(e,t,n,a,s){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var l=r.get(e),u={hostEl:n,cb:a,cbPayload:s};return l?!o(t=l.image)&&l.pending.push(u):((t=new Image).onload=t.onerror=i,r.put(e,t.__cachedImgObj={image:t,pending:[u]}),t.src=t.__zrImageSrc=e),t}return e}return t},t.isImageReady=o},function(e,t,n){var r=n(20),i=n(172),o=n(123).subPixelOptimizeRect,a={},s=r.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,r,s,l;this.subPixelOptimize?(o(a,t,this.style),n=a.x,r=a.y,s=a.width,l=a.height,a.r=t.r,t=a):(n=t.x,r=t.y,s=t.width,l=t.height),t.r?i.buildPath(e,t):e.rect(n,r,s,l),e.closePath()}});e.exports=s},function(e,t){var n=Math.round;function r(e,t,r){if(!t)return e;var i=n(2*e);return(i+n(t))%2==0?i/2:(i+(r?1:-1))/2}t.subPixelOptimizeLine=function(e,t,i){if(t){var o=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=o,e.x2=a,e.y1=s,e.y2=l;var u=i&&i.lineWidth;u&&(n(2*o)===n(2*a)&&(e.x1=e.x2=r(o,u,!0)),n(2*s)===n(2*l)&&(e.y1=e.y2=r(s,u,!0)))}},t.subPixelOptimizeRect=function(e,t,n){if(t){var i=t.x,o=t.y,a=t.width,s=t.height;
8e.x=i,e.y=o,e.width=a,e.height=s;var l=n&&n.lineWidth;l&&(e.x=r(i,l,!0),e.y=r(o,l,!0),e.width=Math.max(r(i+a,l,!1)-e.x,0===a?0:1),e.height=Math.max(r(o+s,l,!1)-e.y,0===s?0:1))}},t.subPixelOptimize=r},function(e,t,n){var r=n(1),i=n(103),o=function(e,t,n,r,o,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=a||!1,i.call(this,o)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(1).inherits,i=n(83),o=n(19);function a(e){i.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}a.prototype.incremental=!0,a.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},a.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},a.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},a.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},a.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},a.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++){(r=this._displayables[n]).beforeBrush&&r.beforeBrush(e),r.brush(e,n===this._cursor?null:this._displayables[n-1]),r.afterBrush&&r.afterBrush(e)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){var r;(r=this._temporaryDisplayables[n]).beforeBrush&&r.beforeBrush(e),r.brush(e,0===n?null:this._temporaryDisplayables[n-1]),r.afterBrush&&r.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var s=[];a.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new o(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();
8n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(s)),e.union(r)}this._rect=e}return this._rect},a.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},r(a,i);var l=a;e.exports=l},function(e,t,n){var r=n(60).retrieveRawValue,i=n(17),o=i.getTooltipMarker,a=i.formatTpl,s=n(14).getTooltipRenderMode,l=/\{@(.+?)\}/g,u={getDataParams:function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),l=n.getRawDataItem(e),u=n.getItemVisual(e,"color"),c=n.getItemVisual(e,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),d=s(p),f=this.mainType,m="series"===f,g=n.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:a,dataIndex:i,data:l,dataType:t,value:r,color:u,borderColor:c,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:o({color:u,renderMode:d}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,o){t=t||"normal";var s=this.getData(n),u=s.getItemModel(e),c=this.getDataParams(e,n);null!=i&&c.value instanceof Array&&(c.value=c.value[i]);var h=u.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]);return"function"==typeof h?(c.status=t,c.dimensionIndex=i,h(c)):"string"==typeof h?a(h,c).replace(l,(function(t,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(s,e,n)})):void 0},getRawValue:function(e,t){return r(this.getData(t),e)},formatTooltip:function(){}};e.exports=u},function(e,t,n){var r=n(1),i=(r.assert,r.isArray);n(15).__DEV__;function o(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var a=o.prototype;a.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,s=p(this._modBy),u=this._modDataCount||0,c=p(e&&e.modBy),h=e&&e.modDataCount||0;function p(e){return!(e>=1)&&(e=1),e}s===c&&u===h||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=function(e,t){var n,r;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&((n=e._reset(e.context))&&n.progress&&(r=n.forceFirstProgress,n=n.progress),i(n)&&!n.length&&(n=null));e._progress=n,e._modBy=e._modDataCount=null;var o=e._downstream;return o&&o.dirty(),r}(this,r)),this._modBy=c,this._modDataCount=h;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,m=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||f<m)){var g=this._progress;if(i(g))for(var y=0;y<g.length;y++)l(this,g[y],f,m,c,h);else l(this,g,f,m,c,h)}this._dueIndex=m;var v=null!=this._settedOutputEnd?this._settedOutputEnd:m;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var e,t,n,r,i,o={reset:function(l,u,c,h){t=l,e=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function l(e,t,n,r,i,o){s.reset(n,r,i,o),e._callingProgress=t,e._callingProgress({start:n,end:r,count:r-n,next:s.next},e.context)}a.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},a.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},a.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},a.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},a.getUpstream=function(){return this._upstream},a.getDownstream=function(){return this._downstream},a.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=function(e){return new o(e)}},function(e,t,n){n(15).__DEV__;var r=n(1),i=r.createHashMap,o=r.isString,a=r.isArray,s=r.each,l=(r.assert,n(188).parseXML),u=i(),c={registerMap:function(e,t,n){var r;return a(t)?r=t:t.svg?r=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),r=[{type:"geoJSON",source:t,specialAreas:n}]),s(r,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON"),(0,h[t])(e)})),u.set(e,r)},retrieveMap:function(e){return u.get(e)}},h={geoJSON:function(e){var t=e.source;e.geoJSON=o(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=l(e.source)}};e.exports=c},function(e,t,n){var r=n(60).retrieveRawValue;t.getDefaultLabel=function(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(e,t,n[0]);if(i){for(var o=[],a=0;a<n.length;a++){var s=r(e,t,n[a]);o.push(s)}return o.join(" ")}}},function(e,t,n){n(15).__DEV__;var r=n(1),i=r.isObject,o=r.each,a=r.map,s=r.indexOf,l=(r.retrieve,n(16).getLayoutRect),u=n(37),c=u.createScaleByModel,h=u.ifAxisCrossZero,p=u.niceScaleExtent,d=u.estimateLabelUnionRect,f=n(360),m=n(362),g=n(36),y=n(41).getStackedDimension;function v(e,t,n){return e.getCoordSysModel()===t}function _(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n(363);var x=_.prototype;function b(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)w(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&w(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function w(e){return e&&"category"!==e.type&&"time"!==e.type&&h(e)}x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),o(n.x,(function(e){p(e.scale,e.model)})),o(n.y,(function(e){p(e.scale,e.model)}));var r={};o(n.x,(function(e){b(n,"y",e,r)})),o(n.y,(function(e){b(n,"x",e,r)})),this.resize(this.model,t)},x.resize=function(e,t,n){var r=l(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=r;var i=this._axesList;function a(){o(i,(function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?r.x:r.y)}))}a(),!n&&e.get("containLabel")&&(o(i,(function(e){if(!e.model.get("axisLabel.inside")){var t=d(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get("axisLabel.margin");r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}})),a())},x.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var r in n)if(n.hasOwnProperty(r))return n[r];return n[t]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}i(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===e||o[r].getAxis("y").index===t)return o[r]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},x.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},x._findConvertTarget=function(e,t){var n,r,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis")[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis")[0],l=t.gridModel,u=this._coordsList;if(i)n=i.coordinateSystem,s(u,n)<0&&(n=null);else if(o&&a)n=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)r=this.getAxis("x",o.componentIndex);else if(a)r=this.getAxis("y",a.componentIndex);else if(l){l.coordinateSystem===this&&(n=this._coordsList[0])}return{cartesian:n,axis:r}},x.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},x._initCartesian=function(e,t,n){var r={left:!1,right:!1,top:!1,bottom:!1},i={x:{},y:{}},a={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function s(t){return function(n,o){if(v(n,e)){var s=n.get("position");"x"===t?"top"!==s&&"bottom"!==s&&(s=r.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=r.left?"right":"left"),r[s]=!0;var l=new m(t,c(n),[0,0],n.get("type"),s),u="category"===l.type;l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),n.axis=l,l.model=n,l.grid=this,l.index=o,this._axesList.push(l),i[t][o]=l,a[t]++}}}this._axesMap=i,o(i.x,(function(t,n){o(i.y,(function(r,i){var o="x"+n+"y"+i,a=new f(o);a.grid=this,a.model=e,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(r)}),this)}),this)},x._updateScale=function(e,t){function n(e,t,n){o(e.mapDimension(t.dim,!0),(function(n){t.scale.unionExtentFromData(e,y(e,n))}))}o(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(r){if(T(r)){var i=k(r,e),o=i[0],a=i[1];if(!v(o,t)||!v(a,t))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),l=r.getData(),u=s.getAxis("x"),c=s.getAxis("y");"list"===l.type&&(n(l,u,r),n(l,c,r))}}),this)},x.getTooltipAxes=function(e){var t=[],n=[];return o(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);s(t,i)<0&&t.push(i),s(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}};var S=["xAxis","yAxis"];function k(e,t){return a(S,(function(t){return e.getReferringComponents(t)[0]}))}
8function T(e){return"cartesian2d"===e.get("coordinateSystem")}_.create=function(e,t){var n=[];return e.eachComponent("grid",(function(r,i){var o=new _(r,e,t);o.name="grid_"+i,o.resize(r,t,!0),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if(T(e)){var t=k(e),n=t[0],r=t[1],i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),n},_.dimensions=_.prototype.dimensions=f.prototype.dimensions,g.register("cartesian2d",_);var M=_;e.exports=M},function(e,t,n){var r=n(1),i={updateSelectedMap:function(e){this._targetList=r.isArray(e)?e.slice():[],this._selectTargetMap=r.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),r.createHashMap())},select:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(e){e.selected=!1})),n&&(n.selected=!0)},unSelect:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);n&&(n.selected=!1)},toggleSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=n)return this[n.selected?"unSelect":"select"](e,t),n.selected},isSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return n&&n.selected}};e.exports=i},function(e,t){t.updateViewOnPan=function(e,t,n){var r=e.target,i=r.position;i[0]+=t,i[1]+=n,r.dirty()},t.updateViewOnZoom=function(e,t,n,r){var i=e.target,o=e.zoomLimit,a=i.position,s=i.scale,l=e.zoom=e.zoom||1;if(l*=t,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/e.zoom;e.zoom=l,a[0]-=(n-a[0])*(h-1),a[1]-=(r-a[1])*(h-1),s[0]*=h,s[1]*=h,i.dirty()}},function(e,t){t.updateCenterAndZoom=function(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;i=e.pointToData(a);e.setCenter(i)}if(null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}e.scale[0]*=o,e.scale[1]*=o;var u=e.position,c=(t.originX-u[0])*(o-1),h=(t.originY-u[1])*(o-1);u[0]-=c,u[1]-=h,e.updateTransform();i=e.pointToData(a);e.setCenter(i),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(399),a=n(16),s=n(13),l=n(112),u=n(128);function c(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var o,l=this.getBoundingRect(),u=e.get("layoutCenter"),c=e.get("layoutSize"),h=t.getWidth(),p=t.getHeight(),d=l.width/l.height*this.aspectScale,f=!1;if(u&&c&&(u=[s.parsePercent(u[0],h),s.parsePercent(u[1],p)],c=s.parsePercent(c,Math.min(h,p)),isNaN(u[0])||isNaN(u[1])||isNaN(c)||(f=!0)),f){var m={};d>1?(m.width=c,m.height=c/d):(m.height=c,m.width=c*d),m.y=u[1]-m.height/2,m.x=u[0]-m.width/2}else(o=e.getBoxLayoutParams()).aspect=d,m=a.getLayoutRect(o,{width:h,height:p});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function h(e,t){i.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var p={dimensions:o.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,r){var i=e.get("map"),a=e.get("aspectScale"),s=!0,l=u.retrieveMap(i);l&&l[0]&&"svg"===l[0].type?(null==a&&(a=1),s=!1):null==a&&(a=.75);var p=new o(i+r,i,e.get("nameMap"),s);p.aspectScale=a,p.zoomLimit=e.get("scaleLimit"),n.push(p),h(p,e),e.coordinateSystem=p,p.model=e,p.resize=c,p.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),i.each(r,(function(e,r){var a=i.map(e,(function(e){return e.get("nameMap")})),s=new o(r,r,i.mergeAll(a));s.zoomLimit=i.retrieve.apply(null,i.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=c,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),i.each(e,(function(e){e.coordinateSystem=s,h(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var r=(e||[]).slice(),o=i.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=l.load(t,n);return i.each(s.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r}};r.registerCoordinateSystem("geo",p);var d=p;e.exports=d},function(e,t,n){var r=n(1),i=n(18),o=n(29),a=n(19),s=n(99),l=i.applyTransform;function u(){s.call(this)}
8function c(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function h(e,t,n,r){var i=n.seriesModel,o=i?i.coordinateSystem:null;return o===this?o[e](r):null}r.mixin(u,s),c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,r){return this._rect=new a(e,t,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new a(e,t,n,r)},transformTo:function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new a(e,t,n,r)),o.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=i.applyTransform([],r,e),n=i.applyTransform([],n,e),t.origin=r,t.position=[n[0]-r[0],n[1]-r[1]],t.scale=[o,o],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),o.copy(this.transform||(this.transform=[]),t.transform||o.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?r.slice(e):o.create(),rawScale:r.slice(t.scale),rawPosition:r.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?l(n,e,r):i.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:r.curry(h,"dataToPoint"),convertFromPixel:r.curry(h,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},r.mixin(c,s);var p=c;e.exports=p},function(e,t,n){var r=n(1),i=n(210),o=n(34),a=n(72),s=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function l(e){this.root,this.data,this._nodes=[],this.hostModel=e}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"==typeof e&&(n=t,t=e,e=null),e=e||{},r.isString(e)&&(e={order:e});var i,o=e.order||"preorder",a=this[e.attr||"children"];"preorder"===o&&(i=t.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},getAncestors:function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(e,t,n){var u=new l(t),c=[],h=1;!function e(t,n){var i=t.value;h=Math.max(h,r.isArray(i)?i.length:1),c.push(t);var o=new s(t.name,u);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(o,n):u.root=o,u._nodes.push(o);var a=t.children;if(a)for(var l=0;l<a.length;l++)e(a[l],o)}(e),u.root.updateDepthAndHeight(0);var p=a(c,{coordDimensions:["value"],dimensionsCount:h}),d=new o(p,t);return d.initData(c),n&&n(d),i({mainData:d,struct:u,structAttr:"tree"}
8),u.update(),u};var u=l;e.exports=u},function(e,t,n){var r=n(12),i=n(138);function o(e){this._ctor=e||i,this.group=new r.Group}var a=o.prototype;function s(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function l(e){return isNaN(e[0])||isNaN(e[1])}function u(e){return!l(e[0])&&!l(e[1])}a.isPersistent=function(){return!0},a.updateData=function(e){var t=this,n=t.group,r=t._lineData;t._lineData=e,r||n.removeAll();var i=s(e);e.diff(r).add((function(n){!function(e,t,n,r){if(!u(t.getItemLayout(n)))return;var i=new e._ctor(t,n,r);t.setItemGraphicEl(n,i),e.group.add(i)}(t,e,n,i)})).update((function(n,o){!function(e,t,n,r,i,o){var a=t.getItemGraphicEl(r);if(!u(n.getItemLayout(i)))return void e.group.remove(a);a?a.updateData(n,i,o):a=new e._ctor(n,i,o);n.setItemGraphicEl(i,a),e.group.add(a)}(t,r,e,o,n,i)})).remove((function(e){n.remove(r.getItemGraphicEl(e))})).execute()},a.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},a.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=e.useHoverLayer=!0)}for(var r=e.start;r<e.end;r++){if(u(t.getItemLayout(r))){var i=new this._ctor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i)}}},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=o;e.exports=c},function(e,t,n){var r=n(1),i=n(18),o=n(35),a=n(422),s=n(12),l=n(13).round,u=["fromSymbol","toSymbol"];function c(e){return"_"+e+"Type"}function h(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var a=t.getItemVisual(n,"color"),s=t.getItemVisual(n,e+"Size"),l=t.getItemVisual(n,e+"Rotate");r.isArray(s)||(s=[s,s]);var u=o.createSymbol(i,-s[0]/2,-s[1]/2,s[0],s[1],a);return u.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,u.name=e,u}}function p(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}function d(e,t,n){s.Group.call(this),this._createLine(e,t,n)}var f=d.prototype;f.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.childOfName("label");if(e||t||!n.ignore){for(var r=1,o=this.parent;o;)o.scale&&(r/=o.scale[0]),o=o.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=i.sub([],u,l);if(i.normalize(c,c),e){if(e.attr("position",l),null==(p=e.__specifiedRotation)){var h=a.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0]))}else e.attr("rotation",p);e.attr("scale",[r*s,r*s])}if(t){var p;if(t.attr("position",u),null==(p=t.__specifiedRotation)){h=a.tangentAt(1);t.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0]))}else t.attr("rotation",p);t.attr("scale",[r*s,r*s])}if(!n.ignore){var d,f,m,g;n.attr("position",u);var y=n.__labelDistance,v=y[0]*r,_=y[1]*r,x=s/2,b=[(h=a.tangentAt(x))[1],-h[0]],w=a.pointAt(x);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S,k=h[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var T=-Math.atan2(h[1],h[0]);u[0]<l[0]&&(T=Math.PI+T),n.attr("rotation",T)}switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-_,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=_,m="top";break;default:S=0,m="middle"}switch(n.__position){case"end":d=[c[0]*v+u[0],c[1]*_+u[1]],f=c[0]>.8?"left":c[0]<-.8?"right":"center",m=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":d=[-c[0]*v+l[0],-c[1]*_+l[1]],f=c[0]>.8?"right":c[0]<-.8?"left":"center",m=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":d=[v*k+l[0],l[1]+S],f=h[0]<0?"right":"left",g=[-v*k,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":d=[w[0],w[1]+S],f="center",g=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":d=[-v*k+u[0],u[1]+S],f=h[0]>=0?"right":"left",g=[v*k,-S]}n.attr({style:{textVerticalAlign:n.__verticalAlign||m,textAlign:n.__textAlign||f},position:d,scale:[r,r],origin:g})}}}},f._createLine=function(e,t,n){var i=e.hostModel,o=function(e){var t=new a({name:"line",subPixelOptimize:!0});return p(t.shape,e),t}(e.getItemLayout(t));o.shape.percent=0,s.initProps(o,{shape:{percent:1}},i,t),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),r.each(u,(function(n){var r=h(n,e,t);this.add(r),this[c(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},f.updateData=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),a=e.getItemLayout(t),l={shape:{}};p(l.shape,a),s.updateProps(o,l,i,t),r.each(u,(function(n){var r=e.getItemVisual(t,n),i=c(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=h(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},f._updateCommonStl=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),a=n&&n.lineStyle,c=n&&n.hoverLineStyle,h=n&&n.labelModel,p=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var d=e.getItemModel(t);a=d.getModel("lineStyle").getLineStyle(),c=d.getModel("emphasis.lineStyle").getLineStyle(),h=d.getModel("label"),p=d.getModel("emphasis.label")}var f=e.getItemVisual(t,"color"),m=r.retrieve3(e.getItemVisual(t,"opacity"),a.opacity,1);o.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:m},a)),o.hoverStyle=c,r.each(u,(function(e){var t=this.childOfName(e);t&&(t.setColor(f),t.setStyle({opacity:m}))}),this);var g,y,v=h.getShallow("show"),_=p.getShallow("show"),x=this.childOfName("label");if((v||_)&&(g=f||"#000",null==(y=i.getFormattedLabel(t,"normal",e.dataType)))){var b=i.getRawValue(t);y=null==b?e.getName(t):isFinite(b)?l(b):b}var w=v?y:null,S=_?r.retrieve2(i.getFormattedLabel(t,"emphasis",e.dataType),y):null,k=x.style;if(null!=w||null!=S){s.setTextStyle(x.style,h,{text:w},{autoColor:g}),x.__textAlign=k.textAlign,x.__verticalAlign=k.textVerticalAlign,x.__position=h.get("position")||"middle";var T=h.get("distance");r.isArray(T)||(T=[T,T]),x.__labelDistance=T}x.hoverStyle=null!=S?{text:S,textFill:p.getTextColor(!0),fontStyle:p.getShallow("fontStyle"),fontWeight:p.getShallow("fontWeight"),fontSize:p.getShallow("fontSize"),fontFamily:p.getShallow("fontFamily")}:{text:null},x.ignore=!v&&!_,s.setHoverStyle(this)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},f.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},r.inherits(d,s.Group);var m=d;e.exports=m},function(e,t){t.getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scale,i=r&&r[0]||1;return((t.getZoom()-1)*n+1)/i},t.getSymbolSize=function(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(57),o=n(12),a=n(208),s=n(61),l=r.curry,u=r.each,c=r.map,h=Math.min,p=Math.max,d=Math.pow,f={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},g={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},y=0;function v(e){i.call(this),this._zr=e,this.group=new o.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+y++,this._handlers={},u(q,(function(e,t){this._handlers[t]=r.bind(e,this)}),this)}function _(e,t){var n=W[t.brushType].createCover(e,t);return n.__brushOption=t,w(n,t),e.group.add(n),n}function x(e,t){var n=k(t);return n.endCreating&&(n.endCreating(e,t),w(t,t.__brushOption)),t}function b(e,t){var n=t.__brushOption;k(t).updateCoverShape(e,t,n.range,n)}function w(e,t){var n=t.z;null==n&&(n=1e4),e.traverse((function(e){e.z=n,e.z2=n}))}function S(e,t){k(t).updateCommon(e,t),b(e,t)}function k(e){return W[e.__brushOption.brushType]}function T(e,t,n){var r,i=e._panels;if(!i)return!0;var o=e._transform;return u(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function M(e,t){var n=e._panels;if(!n)return!0;var r=t.__brushOption.panelId;return null==r||n[r]}function E(e){var t=e._covers,n=t.length;return u(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function C(e,t){var n=c(e._covers,(function(e){var t=e.__brushOption,n=r.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function I(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function A(e,t,n,r){var i=new o.Group;return i.add(new o.Rect({name:"main",style:O(n),silent:!0,draggable:!0,cursor:"move",drift:l(e,t,i,"nswe"),ondragend:l(C,t,{isEnd:!0})})),u(r,(function(n){i.add(new o.Rect({name:n,style:{opacity:0}
8,draggable:!0,silent:!0,invisible:!0,drift:l(e,t,i,n),ondragend:l(C,t,{isEnd:!0})}))})),i}function P(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=p(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,f=h-o+i/2,m=c-a,g=h-s,y=m+i,v=g+i;L(e,t,"main",a,s,m,g),r.transformable&&(L(e,t,"w",l,u,o,v),L(e,t,"e",d,u,o,v),L(e,t,"n",l,u,y,o),L(e,t,"s",l,f,y,o),L(e,t,"nw",l,u,o,o),L(e,t,"ne",d,u,o,o),L(e,t,"sw",l,f,o,o),L(e,t,"se",d,f,o,o))}function D(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(O(n)),i.attr({silent:!r,cursor:r?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var i=t.childOfName(n),a=function e(t,n){if(n.length>1)return n=n.split(""),("e"===(r=[e(t,n[0]),e(t,n[1])])[0]||"w"===r[0])&&r.reverse(),r.join("");var r;return{left:"w",right:"e",top:"n",bottom:"s"}[r=o.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[n],function(e){return o.getTransform(e.group)}(t))]}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?m[a]+"-resize":null})}))}function L(e,t,n,r,i,o,a){var s,l,u,c,d,f=t.childOfName(n);f&&f.setShape((s=F(e,t,[[r,i],[r+o,i+a]]),l=h(s[0][0],s[1][0]),u=h(s[0][1],s[1][1]),c=p(s[0][0],s[1][0]),d=p(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:d-u}))}function O(e){return r.defaults({strokeNoScale:!0},e.brushStyle)}function R(e,t,n,r){var i=[h(e,n),h(t,r)],o=[p(e,n),p(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function z(e,t,n,r,i,o,a,s){var l=r.__brushOption,c=e(l.range),h=B(n,o,a);u(i.split(""),(function(e){var t=f[e];c[t[0]][t[1]]+=h[t[0]]})),l.range=t(R(c[0][0],c[1][0],c[0][1],c[1][1])),S(n,r),C(n,{isEnd:!1})}function N(e,t,n,r,i){var o=t.__brushOption.range,a=B(e,n,r);u(o,(function(e){e[0]+=a[0],e[1]+=a[1]})),S(e,t),C(e,{isEnd:!1})}function B(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function F(e,t,n){var i=M(e,t);return i&&!0!==i?i.clipPath(n,e._transform):r.clone(n)}function V(e){var t=e.event;t.preventDefault&&t.preventDefault()}function j(e,t,n){return e.childOfName("main").contain(t,n)}function U(e,t,n,i){var o,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return d(i*i+o*o,.5)>6}
8(e)||a){if(s&&!a){"single"===l.brushMode&&E(e);var u=r.clone(l);u.brushType=G(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=_(e,u),e._covers.push(a)}if(a){var c=W[G(e._brushType,s)];a.__brushOption.range=c.getCreatingRange(F(e,a,e._track)),i&&(x(e,a),c.updateCommon(e,a)),b(e,a),o={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&T(e,t,n)&&E(e)&&(o={isEnd:i,removeOnClick:!0});return o}function G(e,t){return"auto"===e?t.defaultBrushType:e}v.prototype={constructor:v,enableBrush:function(e){var t,n;return this._brushType&&(n=(t=this)._zr,a.release(n,"globalPan",t._uid),function(e,t){u(t,(function(t,n){e.off(n,t)}))}(n,t._handlers),t._brushType=t._brushOption=null),e.brushType&&function(e,t){var n=e._zr;e._enableGlobalPan||a.take(n,"globalPan",e._uid);(function(e,t){u(t,(function(t,n){e.on(n,t)}))})(n,e._handlers),e._brushType=t.brushType,e._brushOption=r.merge(r.clone(g),t,!0)}(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};r.each(e,(function(e){t[e.panelId]=r.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){u(this._covers,e,t)},updateCovers:function(e){e=r.map(e,(function(e){return r.merge(r.clone(g),e,!0)}));var t=this._covers,n=this._covers=[],i=this,o=this._creatingCover;return new s(t,e,(function(e,t){return a(e.__brushOption,t)}),a).add(l).update(l).remove((function(e){t[e]!==o&&i.group.remove(t[e])})).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function l(r,a){var s=e[r];if(null!=a&&t[a]===o)n[r]=t[a];else{var l=n[r]=null!=a?(t[a].__brushOption=s,t[a]):x(i,_(i,s));S(i,l)}}},unmount:function(){return this.enableBrush(!1),E(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(v,i);var q={mousedown:function(e){if(this._dragging)H(this,e);else if(!e.target||!e.target.draggable){V(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t)){var r=e._zr,i=e._covers,o=T(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&W[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){V(e);var i=U(this,e,r,!1);i&&C(this,i)}},mouseup:function(e){H(this,e)}};function H(e,t){if(e._dragging){V(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=U(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&C(e,o)}}var W={lineX:Z(0),lineY:Z(1),rect:{createCover:function(e,t){return A(l(z,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=I(e);return R(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){P(e,t,n,r)},updateCommon:D,contain:j},polygon:{createCover:function(e,t){var n=new o.Group;return n.add(new o.Polyline({name:"main",style:O(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new o.Polygon({n
8ame:"main",draggable:!0,drift:l(N,e,t),ondragend:l(C,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:F(e,t,n)})},updateCommon:D,contain:j}};function Z(e){return{createCover:function(t,n){return A(l(z,(function(t){var n=[t,[0,100]];return e&&n.reverse(),n}),(function(t){return t[e]})),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=I(t);return[h(n[0][e],n[1][e]),p(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=M(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),P(t,n,l,i)},updateCommon:D,contain:j}}var Y=v;e.exports=Y},function(e,t,n){var r=n(1),i=n(42),o=n(12),a=n(110),s=n(38),l=n(49),u=(0,n(14).makeInner)(),c=r.clone,h=r.bind;function p(){}function d(e,t,n,i){(function e(t,n){if(r.isObject(t)&&r.isObject(n)){var i=!0;return r.each(n,(function(n,r){i=i&&e(t[r],n)})),!!i}return t===n})(u(n).lastProp,i)||(u(n).lastProp=i,t?o.updateProps(n,i,e):(n.stopAnimation(),n.attr(i)))}function f(e,t){e[t.get("label.show")?"show":"hide"]()}function m(e){return{position:e.position.slice(),rotation:e.rotation||0}}function g(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var c={};this.makeElOption(c,a,e,t,n);var h=c.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var p=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=r.curry(d,t,p);this.updatePointerEl(l,c,f,t),this.updateLabelEl(l,c,f,t)}else l=this._group=new o.Group,this.createPointerEl(l,c,e,t),this.createLabelEl(l,c,e,t),n.getZr().add(l);g(l,t,!0),this._renderHandle(a)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&r.getBandWidth()>s)return!0;if(o){var l=a.getAxisInfo(e).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(e,t,n,r,i){},createPointerEl:function(e,t,n,r){var i=t.pointer;if(i){var a=u(e).pointerEl=new o[i.type](c(t.pointer));e.add(a)}},createLabelEl:function(e,t,n,r){if(t.label){var i=u(e).labelEl=new o.Rect(c(t.label));e.add(i),f(i,r)}},updatePointerEl:function(e,t,n){var r=u(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,r){var i=u(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{shape:t.label.shape,position:t.label.position}),f(i,r))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,u=n.getModel("handle"),c=n.get("status");if(!u.get("show")||!c||"hide"===c)return a&&i.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=o.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),i.add(a)),g(a,n,!1);a.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var p=u.get("size");r.isArray(p)||(p=[p,p]),a.attr("scale",[p[0]/2,p[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){d(this._axisPointerModel,!t&&this._moveAnimation,this._handle,m(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(m(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(m(r)),u(n).lastProp=null,this._doDispat
8chAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},_onHandleDragEnd:function(e){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}},p.prototype.constructor=p,i.enableClassExtend(p);var y=p;e.exports=y},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(516),o=n(13).parsePercent,a=n(37),s=a.createScaleByModel,l=a.niceScaleExtent,u=n(36),c=n(41).getStackedDimension;function h(e,t){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();r.each(t.mapDimension("radius",!0),(function(e){o.scale.unionExtentFromData(t,c(t,e))})),r.each(t.mapDimension("angle",!0),(function(e){i.scale.unionExtentFromData(t,c(t,e))}))}})),l(i.scale,i.model),l(o.scale,o.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),s=360/i.scale.count();i.inverse?a[1]+=s:a[1]-=s,i.setExtent(a[0],a[1])}}function p(e,t){if(e.type=t.get("type"),e.scale=s(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}n(519);var d={dimensions:i.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,a){var s=new i(a);s.update=h;var l=s.getRadiusAxis(),u=s.getAngleAxis(),c=e.findAxisModel("radiusAxis"),d=e.findAxisModel("angleAxis");p(l,c),p(u,d),function(e,t,n){var i=t.get("center"),a=n.getWidth(),s=n.getHeight();e.cx=o(i[0],a),e.cy=o(i[1],s);var l=e.getRadiusAxis(),u=Math.min(a,s)/2,c=t.get("radius");null==c?c=[0,"100%"]:r.isArray(c)||(c=[0,c]),c=[o(c[0],u),o(c[1],u)],l.inverse?l.setExtent(c[1],c[0]):l.setExtent(c[0],c[1])}(s,e,t),n.push(s),e.coordinateSystem=s,s.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}};u.register("polar",d)},function(e,t,n){n(24).registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},function(e,t,n){var r=n(1),i=n(17),o=["cartesian2d","polar","singleAxis"];function a(e,t){e=e.slice();var n=r.map(e,i.capitalFirst);t=(t||[]).slice();var o=r.map(t,i.capitalFirst);return function(i,a){r.each(e,(function(e,r){for(var s={name:e,capital:n[r]},l=0;l<t.length;l++)s[t[l]]=e+o[l];i.call(a,s)}))}}var s=a(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);t.isCoordSupported=function(e){return r.indexOf(o,e)>=0},t.createNameEach=a,t.eachAxisDim=s,t.createLinkedNodesFinder=function(e,t,n){return function(o){var a,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!o)return s;i(o,s);do{a=!1,e(l)}while(a);function l(e){!function(e,t){return r.indexOf(t.nodes,e)>=0}(e,s)&&function(e,i){var o=!1;return t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]&&(o=!0)}))})),o}(e,s)&&(i(e,s),a=!0)}return s};function i(e,i){i.nodes.push(e),t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]=!0}))}))}}},function(e,t,n){var r=n(9),i=n(1),o=i.createHashMap,a=i.each;r.registerProcessor({getTargetSeries:function(e){var t=o();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,r){var i=r.getAxisProxy(e.name,n);a(i.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,r){r.getAxisProxy(e.name,n).reset(r,t)})),e.eachTargetAxis((function(e,n,r){r.getAxisProxy(e.name,n).filterData(r,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}))}})},function(e,t,n){var r=n(9),i=n(1),o=n(144);r.registerAction("dataZoom",(function(e,t){var n=o.createLinkedNodesFinder(i.bind(t.eachComponent,t,"dataZoom"),o.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),r=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){r.push.apply(r,n(e).nodes)})),i.each(r,(function(t,n){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(22),a=n(14),s=n(17),l=n(126),u=s.addCommas,c=s.encodeHTML;function h(e){a.defaultEmphasis(e,"label",["show"])}
8var p=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,n,r){var o=this.constructor,a=this.mainType+"Model";n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),s=e[a];n&&n.data?(s?s._mergeOption(n,t,!0):(r&&h(n),i.each(n.data,(function(e){e instanceof Array?(h(e[0]),h(e[1])):h(e)})),s=new o(n,this,t),i.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[a]=s):e[a]=null}),this)},formatTooltip:function(e,t,n,r){var o=this.getData(),a=this.getRawValue(e),s=i.isArray(a)?i.map(a,u).join(", "):u(a),l=o.getName(e),h=c(this.name);return(null!=a||l)&&(h+="html"===r?"<br/>":"\n"),l&&(h+=c(l),null!=a&&(h+=" : ")),null!=a&&(h+=c(s)),h},getData:function(){return this._data},setData:function(e){this._data=e}});i.mixin(p,l);var d=p;e.exports=d},function(e,t,n){var r=n(1),i=n(13),o=n(41).isDimensionStacked,a=r.indexOf;function s(e,t,n,r,a,s){var l=[],u=o(t,r)?t.getCalculationInfo("stackResultDimension"):r,c=h(t,u,e),p=t.indicesOfNearest(u,c)[0];l[a]=t.get(n,p),l[s]=t.get(u,p);var d=t.get(r,p),f=i.getPrecision(t.get(r,p));return(f=Math.min(f,20))>=0&&(l[s]=+l[s].toFixed(f)),[l,d]}var l=r.curry,u={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function c(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i<r.length;i++){var o=n.getDimensionInfo(r[i]);if(o.name===t)return o.coordDim}}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function h(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t,!0)["max"===n?1:0]}t.dataTransform=function(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!r.isArray(t.coord)&&i){var o=i.dimensions,s=c(t,n,i,e);if((t=r.clone(t)).type&&u[t.type]&&s.baseAxis&&s.valueAxis){var l=a(o,s.baseAxis.dim),p=a(o,s.valueAxis.dim),d=u[t.type](n,s.baseDataDim,s.valueDataDim,l,p);t.coord=d[0],t.value=d[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)u[f[m]]&&(f[m]=h(n,n.mapDimension(o[m]),f[m]));t.coord=f}}return t},t.getAxisInfo=c,t.dataFilter=function(e,t){return!(e&&e.containData&&t.coord&&!function(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}(t))||e.containData(t.coord)},t.dimValueGetter=function(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value},t.numCalculate=h},function(e,t,n){var r=n(9),i=n(1),o=r.extendComponentView({type:"marker",init:function(){this.markerGroupMap=i.createHashMap()},render:function(e,t,n){var r=this.markerGroupMap;r.each((function(e){e.__keep=!1}));var i=this.type+"Model";t.eachSeries((function(e){var r=e[i];r&&this.renderSeries(e,r,t,n)}),this),r.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=o},function(e,t,n){var r=n(151).createElement,i=n(70),o=n(19),a=n(29),s=n(32),l=n(102),u=n(59),c=i.CMD,h=Array.prototype.join,p=Math.round,d=Math.sin,f=Math.cos,m=Math.PI,g=2*Math.PI,y=180/m;function v(e){return p(1e4*e)/1e4}function _(e){return e<1e-4&&e>-1e-4}function x(e,t){t&&b(e,"transform","matrix("+h.call(t,",")+")")}function b(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function w(e,t,n,r){if(function(e,t){var n=t?e.textFill:e.fill;return null!=n&&"none"!==n}(t,n)){var i=n?t.textFill:t.fill;b(e,"fill",i="transparent"===i?"none":i),b(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else b(e,"fill","none");if(function(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&"none"!==n}(t,n)){var o=n?t.textStroke:t.stroke;b(e,"stroke",o="transparent"===o?"none":o),b(e,"stroke-width",(n?t.textStrokeWidth:t.lineWidth)/(!n&&t.strokeNoScale?r.getLineScale():1)),b(e,"paint-order",n?"stroke":"fill"),b(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity),t.lineDash?(b(e,"stroke-dasharray",t.lineDash.join(",")),b(e,"stroke-dashoffset",p(t.lineDashOffset||0))):b(e,"stroke-dasharray",""),t.lineCap&&b(e,"stroke-linecap",t.lineCap),t.lineJoin&&b(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&b(e,"stroke-miterlimit",t.miter
8Limit)}else b(e,"stroke","none")}var S={};S.brush=function(e){var t=e.style,n=e.__svgEl;n||(n=r("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;if(e.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,e.buildPath(i,e.shape),e.__dirtyPath=!1;var o=function(e){for(var t=[],n=e.data,r=e.len(),i=0;i<r;){var o="",a=0;switch(n[i++]){case c.M:o="M",a=2;break;case c.L:o="L",a=2;break;case c.Q:o="Q",a=4;break;case c.C:o="C",a=6;break;case c.A:var s=n[i++],l=n[i++],u=n[i++],h=n[i++],x=n[i++],b=n[i++],w=n[i++],S=n[i++],k=Math.abs(b),T=_(k-g)||(S?b>=g:-b>=g),M=b>0?b%g:b%g+g,E=!1;E=!!T||!_(k)&&M>=m==!!S;var C=v(s+u*f(x)),I=v(l+h*d(x));T&&(b=S?g-1e-4:1e-4-g,E=!0,9===i&&t.push("M",C,I));var A=v(s+u*f(x+b)),P=v(l+h*d(x+b));t.push("A",v(u),v(h),p(w*y),+E,+S,A,P);break;case c.Z:o="Z";break;case c.R:A=v(n[i++]),P=v(n[i++]);var D=v(n[i++]),L=v(n[i++]);t.push("M",A,P,"L",A+D,P,"L",A+D,P+L,"L",A,P+L,"L",A,P)}o&&t.push(o);for(var O=0;O<a;O++)t.push(v(n[i++]))}return t.join(" ")}(i);o.indexOf("NaN")<0&&b(n,"d",o)}w(n,t,!1,e),x(n,e.transform),null!=t.text?A(e,e.getBoundingRect()):D(e)};var k={brush:function(e){var t=e.style,n=t.image;n instanceof HTMLImageElement&&(n=n.src);if(n){var i=t.x||0,o=t.y||0,a=t.width,s=t.height,l=e.__svgEl;l||(l=r("image"),e.__svgEl=l),n!==e.__imageSrc&&(!function(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}(l,"href",n),e.__imageSrc=n),b(l,"width",a),b(l,"height",s),b(l,"x",i),b(l,"y",o),x(l,e.transform),null!=t.text?A(e,e.getBoundingRect()):D(e)}}},T={},M=new o,E={},C=[],I={left:"start",right:"end",center:"middle",middle:"middle"},A=function(e,t){var n=e.style,i=e.transform,o=e instanceof u||n.transformText;e.__dirty&&l.normalizeTextStyle(n,!0);var c=n.text;if(null!=c&&(c+=""),l.needDrawText(c,n)){null==c&&(c=""),!o&&i&&(M.copy(t),M.applyTransform(i),t=M);var h=e.__textSvgEl;h||(h=r("text"),e.__textSvgEl=h);var p=h.style,d=n.font||s.DEFAULT_FONT,f=h.__computedFont;d!==h.__styleFont&&(p.font=h.__styleFont=d,f=h.__computedFont=p.font);var m=n.textPadding,g=n.textLineHeight,y=e.__textCotentBlock;y&&!e.__dirtyText||(y=e.__textCotentBlock=s.parsePlainText(c,f,m,g,n.truncate));var v=y.outerHeight,_=y.lineHeight;l.getBoxPosition(E,e,n,t);var b=E.baseX,S=E.baseY,k=E.textAlign||"left",T=E.textVerticalAlign;!function(e,t,n,r,i,o,s){a.identity(C),t&&n&&a.copy(C,n);var l=r.textRotation;if(i&&l){var u=r.textOrigin;"center"===u?(o=i.width/2+i.x,s=i.height/2+i.y):u&&(o=u[0]+i.x,s=u[1]+i.y),C[4]-=o,C[5]-=s,a.rotate(C,C,l),C[4]+=o,C[5]+=s}x(e,C)}(h,o,i,n,t,b,S);var I=b,A=s.adjustTextY(S,v,T);m&&(I=function(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}(b,k,m),A+=m[0]),A+=_/2,w(h,n,!0,e);var D=y.canCacheByTextString,L=e.__tspanList||(e.__tspanList=[]),O=L.length;if(D&&e.__canCacheByTextString&&e.__text===c){if(e.__dirtyText&&O)for(var R=0;R<O;++R)P(L[R],k,I,A+R*_)}else{e.__text=c,e.__canCacheByTextString=D;var z=y.lines,N=z.length;for(R=0;R<N;R++){var B=L[R],F=z[R];B?B.__zrText!==F&&(B.innerHTML="",B.appendChild(document.createTextNode(F))):(B=L[R]=r("tspan"),h.appendChild(B),B.appendChild(document.createTextNode(F))),P(B,k,I,A+R*_)}if(O>N){for(;R<O;R++)h.removeChild(L[R]);L.length=N}}}};function P(e,t,n,r){b(e,"dominant-baseline","middle"),b(e,"text-anchor",I[t]),b(e,"x",n),b(e,"y",r)}function D(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}T.drawRectText=A,T.brush=function(e){null!=e.style.text?A(e,!1):D(e)},t.path=S,t.image=k,t.text=T},function(e,t){t.createElement=function(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}},function(e,t,n){var r=n(151).createElement,i=n(1),o=n(20),a=n(68),s=n(59),l=n(150),u=l.path,c=l.image,h=l.text;function p(e,t,n,r,i){this._zrId=e,this._svgRoot=t,this._tagNames="string"==typeof n?[n]:n,this._markLabel=r,this._domName=i||"_dom",this.nextId=0}p.prototype.createElement=r,p.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?e?((n=t.insertBefore(this.createElement("defs"),t.firstChild)).contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var r=t.length-1;r>=0;--r)if(t[r]===e)return!0;return!1}),n):null:n[0]},p.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"==typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},p.prototype.addDom=function(e){this.getDefs(!0).appendChild(e)},p.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},p.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return i.each(this._tagNames,(function(n){var r=e.getElementsByTagName(n);t=t.concat([].slice.call(r))})),t},p.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;i.each(e,(function(e){e[t._markLabel]="0"}))},p.prototype.markUsed=function(e){e&&(e[this._markLabel]="1")},p.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;i.each(t,(function(t){"1"!==t[n._markLabel]&&e.removeChild(t)}))}},p.prototype.getSvgProxy=function(e){return e instanceof o?u:e instanceof a?c:e instanceof s?h:u},p.prototype.getTextSvgElement=function(e){return e.__textSvgEl},p.prototype.getSvgElement=function(e){return e.__svgEl};var d=p;e.exports=d},function(e,t,n){e.exports=function e(t){"use strict";
vendor: 9,120 bytes, line 8
8var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,c=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,p=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,f=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,_=/(\{[^{]+?);(?=\})/g,x=/\s{2,}/g,b=/([^\(])(:+) */g,w=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,T=/-self|flex-/g,M=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,I="-webkit-",A="-moz-",P="-ms-",D=59,L=125,O=123,R=40,z=41,N=10,B=13,F=32,V=45,j=42,U=44,G=58,q=47,H=1,W=1,Z=0,Y=1,X=1,K=1,$=0,J=0,Q=0,ee=[],te=[],ne=0,re=null,ie=0,oe=1,ae="",se="",le="";function ue(e,t,i,o,a){for(var s,l,c=0,h=0,p=0,d=0,y=0,v=0,_=0,x=0,w=0,k=0,T=0,M=0,E=0,C=0,A=0,P=0,$=0,te=0,re=0,he=i.length,ye=he-1,ve="",_e="",xe="",be="",we="",Se="";A<he;){if(_=i.charCodeAt(A),A===ye&&h+d+p+c!==0&&(0!==h&&(_=h===q?N:q),d=p=c=0,he++,ye++),h+d+p+c===0){if(A===ye&&(P>0&&(_e=_e.replace(r,"")),_e.trim().length>0)){switch(_){case F:case 9:case D:case B:case N:break;default:_e+=i.charAt(A)}_=D}if(1===$)switch(_){case O:case L:case D:case 34:case 39:case R:case z:case U:$=0;case 9:case B:case N:case F:break;default:for($=0,re=A,y=_,A--,_=D;re<he;)switch(i.charCodeAt(re++)){case N:case B:case D:++A,_=y,re=he;break;case G:P>0&&(++A,_=y);case O:re=he}}switch(_){case O:for(y=(_e=_e.trim()).charCodeAt(0),T=1,re=++A;A<he;){switch(_=i.charCodeAt(A)){case O:T++;break;case L:T--;break;case q:switch(v=i.charCodeAt(A+1)){case j:case q:A=ge(v,A,ye,i)}break;case 91:_++;case R:_++;case 34:case 39:for(;A++<ye&&i.charCodeAt(A)!==_;);}if(0===T)break;A++}switch(xe=i.substring(re,A),0===y&&(y=(_e=_e.replace(n,"").trim()).charCodeAt(0)),y){case 64:switch(P>0&&(_e=_e.replace(r,"")),v=_e.charCodeAt(1)){case 100:case 109:case 115:case V:s=t;break;default:s=ee}if(re=(xe=ue(t,s,xe,v,a+1)).length,Q>0&&0===re&&(re=_e.length),ne>0&&(l=me(3,xe,s=ce(ee,_e,te),t,W,H,re,v,a,o),_e=s.join(""),void 0!==l&&0===(re=(xe=l.trim()).length)&&(v=0,xe="")),re>0)switch(v){case 115:_e=_e.replace(S,fe);case 100:case 109:case V:xe=_e+"{"+xe+"}";break;case 107:xe=(_e=_e.replace(f,"$1 $2"+(oe>0?ae:"")))+"{"+xe+"}",xe=1===X||2===X&&de("@"+xe,3)?"@"+I+xe+"@"+xe:"@"+xe;break;default:xe=_e+xe,112===o&&(be+=xe,xe="")}else xe="";break;default:xe=ue(t,ce(t,_e,te),xe,o,a+1)}we+=xe,M=0,$=0,C=0,P=0,te=0,E=0,_e="",xe="",_=i.charCodeAt(++A);break;case L:case D:if((re=(_e=(P>0?_e.replace(r,""):_e).trim()).length)>1)switch(0===C&&((y=_e.charCodeAt(0))===V||y>96&&y<123)&&(re=(_e=_e.replace(" ",":")).length),ne>0&&void 0!==(l=me(1,_e,t,e,W,H,be.length,o,a,o))&&0===(re=(_e=l.trim()).length)&&(_e="\0\0"),y=_e.charCodeAt(0),v=_e.charCodeAt(1),y){case 0:break;case 64:if(105===v||99===v){Se+=_e+i.charAt(A);break}default:if(_e.charCodeAt(re-1)===G)break;be+=pe(_e,y,v,_e.charCodeAt(2))}M=0,$=0,C=0,P=0,te=0,_e="",_=i.charCodeAt(++A)}}switch(_){case B:case N:if(h+d+p+c+J===0)switch(k){case z:case 39:case 34:case 64:case 126:case 62:case j:case 43:case q:case V:case G:case U:case D:case O:case L:break;default:C>0&&($=1)}h===q?h=0:Y+M===0&&107!==o&&_e.length>0&&(P=1,_e+="\0"),ne*ie>0&&me(0,_e,t,e,W,H,be.length,o,a,o),H=1,W++;break;case D:case L:if(h+d+p+c===0){H++;break}default:switch(H++,ve=i.charAt(A),_){case 9:case F:if(d+c+h===0)switch(x){case U:case G:case 9:case F:ve="";break;default:_!==F&&(ve=" ")}break;case 0:ve="\\0";break;case 12:ve="\\f";break;case 11:ve="\\v";break;case 38:d+h+c===0&&Y>0&&(te=1,P=1,ve="\f"+ve);break;case 108:if(d+h+c+Z===0&&C>0)switch(A-C){case 2:112===x&&i.charCodeAt(A-3)===G&&(Z=x);case 8:111===w&&(Z=w)}break;case G:d+h+c===0&&(C=A);break;case U:h+p+d+c===0&&(P=1,ve+="\r");break;case 34:case 39:0===h&&(d=d===_?0:0===d?_:d);break;case 91:d+h+p===0&&c++;break;case 93:d+h+p===0&&c--;break;case z:d+h+c===0&&p--;break;case R:if(d+h+c===0){if(0===M)switch(2*x+3*w){case 533:break;default:T=0,M=1}p++}break;case 64:h+p+d+c+C+E===0&&(E=1);break;case j:case q:if(d+c+p>0)break;switch(h){case 0:switch(2*_+3*i.charCodeAt(A+1)){case 235:h=q;break;case 220:re=A,h=j}break;case j:_===q&&x===j&&re+2!==A&&(33===i.charCodeAt(re+2)&&(be+=i.substring(re,A+1)),ve="",h=0)}}if(0===h){if(Y+d+c+E===0&&107!==o&&_!==D)switch(_){case U:case 126:case 62:case 43:case z:case R:if(0===M){switch(x){case 9:case F:case N:case B:ve+="\0";break;default:ve="\0"+ve+(_===U?"":"\0")}P=1}else switch(_){case R:C+7===A&&108===x&&(C=0),M=++T;break;case z:0==(M=--T)&&(P=1,ve+="\0")}break;case 9:case F:switch(x){case 0:case O:case L:case D:case U:case 12:case 9:case F:case N:case B:break;default:0===M&&(P=1,ve+="\0")}}_e+=ve,_!==F&&9!==_&&(k=_)}}w=x,x=_,A++}if(re=be.length,Q>0&&0===re&&0===we.length&&0===t[0].length==0&&(109!==o||1===t.length&&(Y>0?se:le)===t[0])&&(re=t.join(",").length+2),re>0){if(s=0===Y&&107!==o?function(e){for(var t,n,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(u),l="",c=0,h=0,p=0,d=0,f=s.length;c<f;++c)if(!(0===(h=(n=s[c]).length)&&f>1)){if(p=l.charCodeAt(l.length-1),d=n.charCodeAt(0),t="",0!==c)switch(p){case j:case 126:case 62:case 43:case F:case R:break;default:t=" "}switch(d){case 38:n=t+se;case 126:case 62:case 43:case F:case z:case R:break;case 91:n=t+n+se;break;case G:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(K>0){n=t+n.substring(8,h-1);break}default:(c<1||s[c-1].length<1)&&(n=t+se+n)}break;case U:t="";default:n=h>1&&n.indexOf(":")>0?t+n.replace(b,"$1"+se+"$2"):t+n+se}l+=n}a[i]=l.replace(r,"").trim()}return a}(t):t,ne>0&&void 0!==(l=me(2,be,s,e,W,H,re,o,a,o))&&0===(be=l).length)return Se+be+we;if(be=s.join(",")+"{"+be+"}",X*Z!=0){switch(2!==X||de(be,2)||(Z=0),Z){case 111:be=be.replace(g,":-moz-$1")+be;break;case 112:be=be.replace(m,"::"+I+"input-$1")+be.replace(m,"::-moz-$1")+be.replace(m,":-ms-input-$1")+be}Z=0}}return Se+be+we}function ce(e,t,n){var r=t.trim().split(c),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var s=0,l=0===a?"":e[0]+" ";s<o;++s)i[s]=he(l,i[s],n,a).trim();break;default:s=0;var u=0;for(i=[];s<o;++s)for(var h=0;h<a;++h)i[u++]=he(e[h]+" ",r[s],n,a).trim()}return i}function he(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case 38:switch(Y+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(h,"$1"+e.trim())}break;case G:switch(i.charCodeAt(1)){case 103:if(K>0&&Y>0)return i.replace(p,"$1").replace(h,"$1"+le);break;default:return e.trim()+i.replace(h,"$1"+e.trim())}default:if(n*Y>0&&i.indexOf("\f")>0)return i.replace(h,(e.charCodeAt(0)===G?"":"$1")+e.trim())}return e+i}function pe(e,t,n,r){var u,c=0,h=e+";",p=2*t+3*n+4*r;if(944===p)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*oe){case 0:break;case V:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){for(var u=o[a],c=u.split(l);u=c[n];){var h=u.charCodeAt(0);if(1===oe&&(h>64&&h<90||h>96&&h<123||95===h||h===V&&u.charCodeAt(1)!==V))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=ae}}c[n++]=u}i+=(0===a?"":",")+c.join(" ")}}return i=r+i+";",1===X||2===X&&de(i,1)?I+i+i:i}(h);if(0===X||2===X&&!de(h,1))return h;switch(p){case 1015:return 97===h.charCodeAt(10)?I+h+h:h;case 951:return 116===h.charCodeAt(3)?I+h+h:h;case 963:return 110===h.charCodeAt(5)?I+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return I+h+h;case 978:return I+h+A+h+h;case 1019:case 983:return I+h+A+h+P+h+h;case 883:return h.charCodeAt(8)===V?I+h+h:h.indexOf("image-set(",11)>0?h.replace(C,"$1"+I+"$2")+h:h;case 932:if(h.charCodeAt(4)===V)switch(h.charCodeAt(5)){case 103:return I+"box-"+h.replace("-grow","")+I+h+P+h.replace("grow","positive")+h;case 115:return I+h+P+h.replace("shrink","negative")+h;case 98:return I+h+P+h.replace("basis","preferred-size")+h}return I+h+P+h+h;case 964:return I+h+P+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return u=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),I+"box-pack"+u+I+h+P+"flex-pack"+u+h;case 1005:return o.test(h)?h.replace(i,":"+I)+h.replace(i,":"+A)+h:h;case 1e3:switch(c=(u=h.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(c)){case 226:u=h.replace(w,"tb");break;case 232:u=h.replace(w,"tb-rl");break;case 220:u=h.replace(w,"lr");break;default:return h}return I+h+P+u+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(c=(h=e).length-10,p=(u=(33===h.charCodeAt(c)?h.substring(0,c):h).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:h=h.replace(u,I+u)+";"+h;break;case 207:case 102:h=h.replace(u,I+(p>102?"inline-":"")+"box")+";"+h.replace(u,I+u)+";"+h.replace(u,P+u+"box")+";"+h}return h+";";
8case 938:if(h.charCodeAt(5)===V)switch(h.charCodeAt(6)){case 105:return u=h.replace("-items",""),I+h+I+"box-"+u+P+"flex-"+u+h;case 115:return I+h+P+"flex-item-"+h.replace(T,"")+h;default:return I+h+P+"flex-line-pack"+h.replace("align-content","").replace(T,"")+h}break;case 973:case 989:if(h.charCodeAt(3)!==V||122===h.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?pe(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):h.replace(u,I+u)+h.replace(u,A+u.replace("fill-",""))+h;break;case 962:if(h=I+h+(102===h.charCodeAt(5)?P+h:"")+h,n+r===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(a,"$1"+I+"$2")+h}return h}function de(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return re(2!==t?r:r.replace(M,"$1"),i,t)}function fe(e,t){var n=pe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function me(e,t,n,r,i,o,a,s,l,u){for(var c,h=0,p=t;h<ne;++h)switch(c=te[h].call(ve,e,p,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=c}if(p!==t)return p}function ge(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case q:if(e===j&&r.charCodeAt(i-1)===j&&t+2!==i)return i+1;break;case N:if(e===q)return i+1}return i}function ye(e){for(var t in e){var n=e[t];switch(t){case"keyframe":oe=0|n;break;case"global":K=0|n;break;case"cascade":Y=0|n;break;case"compress":$=0|n;break;case"semicolon":J=0|n;break;case"preserve":Q=0|n;break;case"prefix":re=null,n?"function"!=typeof n?X=1:(X=2,re=n):X=0}}return ye}function ve(t,n){if(void 0!==this&&this.constructor===ve)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),oe>0&&(ae=i.replace(d,91===o?"":"-")),o=1,1===Y?le=i:se=i;var a,s=[le];ne>0&&void 0!==(a=me(-1,n,s,s,W,H,0,0,0,0))&&"string"==typeof a&&(n=a);var l=ue(ee,s,n,0,0);return ne>0&&void 0!==(a=me(-2,l,s,s,W,H,l.length,0,0,0))&&"string"!=typeof(l=a)&&(o=0),ae="",le="",se="",Z=0,W=1,H=1,$*o==0?l:l.replace(r,"").replace(y,"").replace(v,"$1").replace(_,"$1").replace(x," ")}return ve.use=function e(t){switch(t){case void 0:case null:ne=te.length=0;break;default:if("function"==typeof t)te[ne++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else ie=0|!!t}return e},ve.set=ye,void 0!==t&&ye(t),ve}(null)},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}t.a=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},function(e,t,n){var r=n(9);!function(){for(var e in r){if(null==r||!r.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=r[e]}}();var i=n(189);!function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}}(),n(187),n(355),n(366),n(371),n(376),n(380),n(390),n(404),n(410),n(418),n(433),n(437),n(441),n(453),n(459),n(464),n(470),n(474),n(480),n(484),n(487),n(501),n(507),n(513),n(514),n(526),n(223),n(216),n(529),n(533),n(534),n(546),n(96),n(551),n(558),n(559),n(568),n(571),n(574),n(577),n(232),n(583),n(236),n(235),n(589),n(237),n(246),n(594),n(597)},function(e,t,n){"use strict";var r={};function i(e){return Math.floor(Math.abs(e)+.5)*(e>=0?1:-1)}function o(e,t,n){var r=2*((e=i(e*n))-(t=i(t*n)));r<0&&(r=-r-1);for(var o="";r>=32;)o+=String.fromCharCode(63+(32|31&r)),r/=32;return o+=String.fromCharCode(63+(0|r))}function a(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].slice();t.push([r[1],r[0]])}return t}r.decode=function(e,t){for(var n,r=0,i=0,o=0,a=[],s=0,l=0,u=null,c=Math.pow(10,Number.isInteger(t)?t:5);r<e.length;){u=null,s=1,l=0;do{l+=(31&(u=e.charCodeAt(r++)-63))*s,s*=32}while(u>=32);n=1&l?(-l-1)/2:l/2,s=1,l=0;do{l+=(31&(u=e.charCodeAt(r++)-63))*s,s*=32}while(u>=32);i+=n,o+=1&l?(-l-1)/2:l/2,a.push([i/c,o/c])}return a},r.encode=function(e,t){if(!e.length)return"";for(var n=Math.pow(10,Number.isInteger(t)?t:5),r=o(e[0][0],0,n)+o(e[0][1],0,n),i=1;i<e.length;i++){var a=e[i],s=e[i-1];r+=o(a[0],s[0],n),r+=o(a[1],s[1],n)}return r},r.fromGeoJSON=function(e,t){if(e&&"Feature"===e.type&&(e=e.geometry),!e||"LineString"!==e.type)throw new Error("Input must be a GeoJSON LineString");return r.encode(a(e.coordinates),t)},r.toGeoJSON=function(e,t){return{type:"LineString",coordinates:a(r.decode(e,t))}},e.exports&&(e.exports=r)},function(e,t,n){"use strict";
9/*
10object-assign
11(c) Sindre Sorhus
12@license MIT
13*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var h=0;h<s.length;h++)o.call(n,s[h])&&(l[s[h]]=n[s[h]])}}return l}},function(e,t,n){"use strict";t.extend=function(e){var t,n,i,o,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(i=a[t])for(o in i)r.call(i,o)&&(e[o]=i[o]);return e};var r=Object.prototype.hasOwnProperty;t.hop=r},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};
14/*!
15 * Adapted from jQuery UI core
16 *
17 * http://jqueryui.com
18 *
19 * Copyright 2014 jQuery Foundation and other contributors
20 * Released under the MIT license.
21 * http://jquery.org/license
22 *
23 * http://api.jqueryui.com/category/ui-core/
24 */
25var r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=u(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,i=n(304),o=(r=i)&&r.__esModule?r:{default:r},a=n(118);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";
25Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){i=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},i=new r;t.default=i},function(e,t){var n=2311;e.exports=function(){return n++}},function(e,t,n){var r=n(22),i=n(311).buildTransformer,o=[];function a(e,t,n,o,a){if(t.getBoundingClientRect&&r.domSupported&&!s(t)){var l=t.___zrEVENTSAVED||(t.___zrEVENTSAVED={}),u=function(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=!0,l=[],u=[],c=0;c<4;c++){var h=e[c].getBoundingClientRect(),p=2*c,d=h.left,f=h.top;l.push(d,f),s=s&&a&&d===a[p]&&f===a[p+1],u.push(e[c].offsetLeft,e[c].offsetTop)}return s&&o?o:(t.srcCoords=l,t[r]=n?i(u,l):i(l,u))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,l),l,a);if(u)return u(e,n,o),!0}return!1}function s(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=function(e,t,n,r,i){return a(o,t,r,i,!0)&&a(e,n,o[0],o[1])},t.transformCoordWithViewport=a,t.isCanvasEl=s},function(e,t,n){var r=n(163),i=n(57),o=n(99),a=n(314),s=n(1),l=function(e){o.call(this,e),i.call(this,e),a.call(this,e),this.id=e.id||r()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,a),s.mixin(l,o),s.mixin(l,i);var u=l;e.exports=u},function(e,t,n){var r=n(315),i=n(39),o=n(1).isArrayLike,a=Array.prototype.slice;function s(e,t){return e[t]}function l(e,t,n){e[t]=n}function u(e,t,n){return(t-e)*n+e}function c(e,t,n){return n>.5?t:e}function h(e,t,n,r,i){var o=e.length;if(1===i)for(var a=0;a<o;a++)r[a]=u(e[a],t[a],n);else{var s=o&&e[0].length;for(a=0;a<o;a++)for(var l=0;l<s;l++)r[a][l]=u(e[a][l],t[a][l],n)}}function p(e,t,n){var r=e.length,i=t.length;if(r!==i)if(r>i)e.length=i;else for(var o=r;o<i;
25o++)e.push(1===n?t[o]:a.call(t[o]));var s=e[0]&&e[0].length;for(o=0;o<e.length;o++)if(1===n)isNaN(e[o])&&(e[o]=t[o]);else for(var l=0;l<s;l++)isNaN(e[o][l])&&(e[o][l]=t[o][l])}function d(e,t,n){if(e===t)return!0;var r=e.length;if(r!==t.length)return!1;if(1===n){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1}else{var o=e[0].length;for(i=0;i<r;i++)for(var a=0;a<o;a++)if(e[i][a]!==t[i][a])return!1}return!0}function f(e,t,n,r,i,o,a,s,l){var u=e.length;if(1===l)for(var c=0;c<u;c++)s[c]=m(e[c],t[c],n[c],r[c],i,o,a);else{var h=e[0].length;for(c=0;c<u;c++)for(var p=0;p<h;p++)s[c][p]=m(e[c][p],t[c][p],n[c][p],r[c][p],i,o,a)}}function m(e,t,n,r,i,o,a){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*i+t}function g(e){if(o(e)){var t=e.length;if(o(e[0])){for(var n=[],r=0;r<t;r++)n.push(a.call(e[r]));return n}return a.call(e)}return e}function y(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function v(e,t,n,a,s,l){var g=e._getter,v=e._setter,_="spline"===t,x=a.length;if(x){var b,w=a[0].value,S=o(w),k=!1,T=!1,M=S?function(e){var t=e[e.length-1].value;return o(t&&t[0])?2:1}(a):0;a.sort((function(e,t){return e.time-t.time})),b=a[x-1].time;for(var E=[],C=[],I=a[0].value,A=!0,P=0;P<x;P++){E.push(a[P].time/b);var D=a[P].value;if(S&&d(D,I,M)||!S&&D===I||(A=!1),I=D,"string"==typeof D){var L=i.parse(D);L?(D=L,k=!0):T=!0}C.push(D)}if(l||!A){var O=C[x-1];for(P=0;P<x-1;P++)S?p(C[P],O,M):!isNaN(C[P])||isNaN(O)||T||k||(C[P]=O);S&&p(g(e._target,s),O,M);var R,z,N,B,F,V=0,j=0;if(k)var U=[0,0,0,0];var G=new r({target:e._target,life:b,loop:e._loop,delay:e._delay,onframe:function(e,t){var n;if(t<0)n=0;else if(t<j){for(n=Math.min(V+1,x-1);n>=0&&!(E[n]<=t);n--);n=Math.min(n,x-2)}else{for(n=V;n<x&&!(E[n]>t);n++);n=Math.min(n-1,x-2)}V=n,j=t;var r=E[n+1]-E[n];if(0!==r)if(R=(t-E[n])/r,_)if(N=C[n],z=C[0===n?n:n-1],B=C[n>x-2?x-1:n+1],F=C[n>x-3?x-1:n+2],S)f(z,N,B,F,R,R*R,R*R*R,g(e,s),M);else{if(k)i=f(z,N,B,F,R,R*R,R*R*R,U,1),i=y(U);else{if(T)return c(N,B,R);i=m(z,N,B,F,R,R*R,R*R*R)}v(e,s,i)}else if(S)h(C[n],C[n+1],R,g(e,s),M);else{var i;if(k)h(C[n],C[n+1],R,U,1),i=y(U);else{if(T)return c(C[n],C[n+1],R);i=u(C[n],C[n+1],R)}v(e,s,i)}},ondestroy:n});return t&&"spline"!==t&&(G.easing=t),G}}}var _=function(e,t,n,r){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||s,this._setter=r||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(e,t){var n=this._tracks;for(var r in t)if(t.hasOwnProperty(r)){if(!n[r]){n[r]=[];var i=this._getter(this._target,r);if(null==i)continue;0!==e&&n[r].push({time:0,value:g(i)})}n[r].push({time:e,value:t[r]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){var n,r=this,i=0,o=function(){--i||r._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=v(this,e,o,this._tracks[a],a,t);s&&(this._clipList.push(s),i++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(e,t){l(e,t);for(var n=0;n<r._onframeList.length;n++)r._onframeList[n](e,t)}}return i||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,r=0;r<t.length;r++){var i=t[r];e&&i.onframe(this._target,1),n&&n.removeClip(i)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var x=_;e.exports=x},function(e,t){var n=function(){this.head=null,this.tail=null,this._len=0},r=n.prototype;r.insert=function(e){var t=new i(e);return this.insertEntry(t),t},r.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.len=function(){return this._len},r.clear=function(){this.head=this.tail=null,this._len=0};var i=function(e){this.value=e,this.next,this.prev},o=function(e){this._list=new n,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},a=o.prototype;a.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),r[e]=s}return o},a.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},a.clear=function(){this._list.clear(),this._map={}};var s=o;e.exports=s},function(e,t){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};e.exports=function(e,t,r){return n.hasOwnProperty(t)?r*e.dpr:r}},function(e,t){var n=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};n.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var r=n;e.exports=r},function(e,t){var n="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=n},function(e,t,n){var r=n(102),i=n(19),o=n(101).WILL_BE_RESTORED,a=new i,s=function(){};s.prototype={constructor:s,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&r.normalizeTextStyle(n,!0);var i=n.text;if(null!=i&&(i+=""),r.needDrawText(i,n)){e.save();var s=this.transform;n.transformText?this.setTransform(e):s&&(a.copy(t),a.applyTransform(s),t=a),r.renderText(this,e,i,n,t,o),e.restore(
25)}}};var l=s;e.exports=l},function(e,t){t.buildPath=function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},function(e,t,n){n(15).__DEV__;var r=n(1),i=r.each,o=r.filter,a=r.map,s=r.isArray,l=r.indexOf,u=r.isObject,c=r.isString,h=r.createHashMap,p=r.assert,d=r.clone,f=r.merge,m=r.extend,g=r.mixin,y=n(14),v=n(23),_=n(24),x=n(338),b=n(185),w=n(43).resetSourceDefaulter,S=v.extend({init:function(e,t,n,r){n=n||{},this.option=null,this._theme=new v(n),this._optionManager=r},setOption:function(e,t){p(!("\0_ec_inner"in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var r=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(r)):k.call(this,r),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=n.getTimelineOption(this);o&&(this.mergeOption(o),t=!0)}if(!e||"recreate"===e||"media"===e){var a=n.getMediaOption(this,this._api);a.length&&i(a,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,r=[];
25w(this),i(e,(function(e,n){null!=e&&(_.hasClass(n)?n&&r.push(n):t[n]=null==t[n]?d(e):f(t[n],e,!0))})),_.topologicalTravel(r,_.getAllClassMainTypes(),(function(r,o){var a=y.normalizeToArray(e[r]),l=y.mappingToExists(n.get(r),a);y.makeIdAndName(l),i(l,(function(e,t){var n=e.option;u(n)&&(e.keyInfo.mainType=r,e.keyInfo.subType=function(e,t,n){return t.type?t.type:n?n.subType:_.determineSubType(e,t)}(r,n,e.exist))}));var c=function(e,t){s(t)||(t=t?[t]:[]);var n={};return i(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}(n,o);t[r]=[],n.set(r,[]),i(l,(function(e,i){var o=e.exist,a=e.option;if(p(u(a)||o,"Empty component definition"),a){var s=_.getClass(r,e.keyInfo.subType,!0);if(o&&o.constructor===s)o.name=e.keyInfo.name,o.mergeOption(a,this),o.optionUpdated(a,!1);else{var l=m({dependentModels:c,componentIndex:i},e.keyInfo);o=new s(a,this,this,l),m(o,l),o.init(a,this,this,l),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);n.get(r)[i]=o,t[r][i]=o.option}),this),"series"===r&&T(this,n.get("series"))}),this),this._seriesIndicesMap=h(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=d(this.option);return i(e,(function(t,n){if(_.hasClass(n)){for(var r=(t=y.normalizeToArray(t)).length-1;r>=0;r--)y.isIdInner(t[r])&&t.splice(r,1);e[n]=t}})),delete e["\0_ec_inner"],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,u=e.name,c=this._componentsMap.get(t);if(!c||!c.length)return[];if(null!=r)s(r)||(r=[r]),n=o(a(r,(function(e){return c[e]})),(function(e){return!!e}));else if(null!=i){var h=s(i);n=o(c,(function(e){return h&&l(i,e.id)>=0||!h&&e.id===i}))}else if(null!=u){var p=s(u);n=o(c,(function(e){return p&&l(u,e.name)>=0||!p&&e.name===u}))}else n=c.slice();return M(n,e)},findComponents:function(e){var t,n,r,i,a,s=e.query,l=e.mainType,u=(n=l+"Index",r=l+"Id",i=l+"Name",!(t=s)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:l,index:t[n],id:t[r],name:t[i]}),c=u?this.queryComponents(u):this._componentsMap.get(l);return a=M(c,e),e.filter?o(a,e.filter):a},eachComponent:function(e,t,n){var r=this._componentsMap;if("function"==typeof e)n=t,t=e,r.each((function(e,r){i(e,(function(e,i){t.call(n,r,e,i)}))}));else if(c(e))i(r.get(e),t,n);else if(u(e)){var o=this.findComponents(e);i(o,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){i(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},eachRawSeries:function(e,t){i(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){i(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},eachRawSeriesByType:function(e,t,n){return i(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){T(this,o(this._componentsMap.get("series"),e,t))},restoreData:function(e){var t=this._componentsMap;T(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),_.topologicalTravel(n,_.getAllClassMainTypes(),(function(n,r){i(t.get(n),(function(t){("series"!==n||!function(e,t){if(t){var n=t.seiresIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e))&&t.restoreData()}))}))}});function k(e){var t,n,r;e=e,this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=h({series:[]}),this._seriesIndices,this._seriesIndicesMap,t=e,n=this._theme.option,r=t.color&&!t.colorLayer,i(n,(function(e,n){"colorLayer"===n&&r||_.hasClass(n)||("object"==typeof e?t[n]=t[n]?f(t[n],e,!1):d(e):null==t[n]&&(t[n]=e))})),f(e,x,!1),this.mergeOption(e)}function T(e,t){e._seriesIndicesMap=h(e._seriesIndices=a(t,(function(e){return e.componentIndex}))||[])}function M(e,t){return t.hasOwnProperty("subType")?o(e,(function(e){return e.subType===t.subType})):e}g(S,b);var E=S;e.exports=E},function(e,t,n){var r=n(20),i=n(70),o=n(327),a=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,c=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},h=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(c(e)*c(t))},p=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(h(e,t))};function d(e,t,n,r,i,o,c,d,f,m,g){var y=f*(u/180),v=l(y)*(e-n)/2+s(y)*(t-r)/2,_=-1*s(y)*(e-n)/2+l(y)*(t-r)/2,x=v*v/(c*c)+_*_/(d*d);x>1&&(c*=a(x),d*=a(x));var b=(i===o?-1:1)*a((c*c*(d*d)-c*c*(_*_)-d*d*(v*v))/(c*c*(_*_)+d*d*(v*v)))||0,w=b*c*_/d,S=b*-d*v/c,k=(e+n)/2+l(y)*w-s(y)*S,T=(t+r)/2+s(y)*w+l(y)*S,M=p([1,0],[(v-w)/c,(_-S)/d]),E=[(v-w)/c,(_-S)/d],C=[(-1*v-w)/c,(-1*_-S)/d],I=p(E,C);h(E,C)<=-1&&(I=u),h(E,C)>=1&&(I=0),0===o&&I>0&&(I-=2*u),1===o&&I<0&&(I+=2*u),g.addData(m,k,T,c,d,M,I,y,o)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e,t){var n=function(e){if(!e)return new i;for(var t,n=0,r=0,o=n,a=r,s=new i,l=i.CMD,u=e.match(f),c=0;c<u.length;c++){for(var h,p=u[c],g=p.charAt(0),y=p.match(m)||[],v=y.length,_=0;_<v;_++)y[_]=parseFloat(y[_]);for(var x=0;x<v;){var b,w,S,k,T,M,E,C=n,I=r;switch(g){case"l":n+=y[x++],r+=y[x++],h=l.L,s.addData(h,n,r);break;case"L":n=y[x++],r=y[x++],h=l.L,s.addData(h,n,r);break;case"m":n+=y[x++],r+=y[x++],h=l.M,s.addData(h,n,r),o=n,a=r,g="l";break;case"M":n=y[x++],r=y[x++],h=l.M,s.addData(h,n,r),o=n,a=r,g="L";break;case"h":n+=y[x++],h=l.L,s.addData(h,n,r);break;case"H":n=y[x++],h=l.L,s.addData(h,n,r);break;case"v":r+=y[x++],h=l.L,s.addData(h,n,r);break;case"V":r=y[x++],h=l.L,s.addData(h,n,r);break;case"C":h=l.C,s.addData(h,y[x++],y[x++],y[x++],y[x++],y[x++],y[x++]),n=y[x-2],r=y[x-1];break;case"c":h=l.C,s.addData(h,y[x++]+n,y[x++]+r,y[x++]+n,y[x++]+r,y[x++]+n,y[x++]+r),n+=y[x-2],r+=y[x-1];break;case"S":b=n,w=r;var A=s.len(),P=s.data;t===l.C&&(b+=n-P[A-4],w+=r-P[A-3]),h=l.C,C=y[x++],I=y[x++],n=y[x++],r=y[x++],s.addData(h,b,w,C,I,n,r);break;case"s":b=n,w=r;A=s.len(),P=s.data;t===l.C&&(b+=n-P[A-4],w+=r-P[A-3]),h=l.C,C=n+y[x++],I=r+y[x++],n+=y[x++],r+=y[x++],s.addData(h,b,w,C,I,n,r);break;case"Q":C=y[x++],I=y[x++],n=y[x++],r=y[x++],h=l.Q,s.addData(h,C,I,n,r);break;case"q":C=y[x++]+n,I=y[x++]+r,n+=y[x++],r+=y[x++],h=l.Q,s.addData(h,C,I,n,r);break;case"T":b=n,w=r;A=s.len(),P=s.data;t===l.Q&&(b+=n-P[A-4],w+=r-P[A-3]),n=y[x++],r=y[x++],h=l.Q,s.addData(h,b,w,n,r);break;case"t":b=n,w=r;A=s.len(),P=s.data;t===l.Q&&(b+=n-P[A-4],w+=r-P[A-3]),n+=y[x++],r+=y[x++],h=l.Q,s.addData(h,b,w,n,r);break;case"A":S=y[x++],k=y[x++],T=y[x++],M=y[x++],E=y[x++],d(C=n,I=r,n=y[x++],r=y[x++],M,E,S,k,T,h=l.A,s);break;case"a":S=y[x++],k=y[x++],T=y[x++],M=y[x++],E=y[x++],d(C=n,I=r,n+=y[x++],r+=y[x++],M,E,S,k,T,h=l.A,s)}}"z"!==g&&"Z"!==g||(h=l.Z,s.addData(h),n=o,r=a),t=h}return s.toStatic(),s}(e);return(t=t||{}).buildPath=function(e){if(e.setData){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t)}else{var t=e;n.rebuildPath(t)}},t.applyTransform=function(e){o(n,e),this.dirty(!0)},t}t.createFromString=function(e,t){return new r(g(e,t))},t.extendFromString=function(e,t){return r.extend(g(e,t))},t.mergePath=function(e,t){for(var n=[],i=e.length,o=0;o<i;o++){var a=e[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var s=new r(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},s}},function(e,t){t.containStroke=function(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}},function(e,t,n){var r=n(48).quadraticProjectPoint;t.containStroke=function(e,t,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;return!(u>t+c&&u>i+c&&u>
25a+c||u<t-c&&u<i-c&&u<a-c||l>e+c&&l>n+c&&l>o+c||l<e-c&&l<n-c&&l<o-c)&&r(e,t,n,i,o,a,l,u,null)<=c/2}},function(e,t){var n=2*Math.PI;t.normalizeRadian=function(e){return(e%=n)<0&&(e+=n),e}},function(e,t){e.exports=function(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=r<t?1:-1,s=(o-t)/(r-t);1!==s&&0!==s||(a=r<t?.5:-.5);var l=s*(n-e)+e;return l===i?1/0:l>i?a:0}},function(e,t,n){var r=n(20).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=r},function(e,t,n){var r=n(22),i=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];e.exports=function(e){return r.browser.ie&&r.browser.version>=11?function(){var t,n=this.__clipPaths,r=this.style;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=a&&a.shape,l=a&&a.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<i.length;u++)i[u][2]=r[i[u][0]],r[i[u][0]]=i[u][1];t=!0;break}}if(e.apply(this,arguments),t)for(u=0;u<i.length;u++)r[i[u][0]]=i[u][2]}:e}},function(e,t,n){var r=n(20),i=n(182),o=r.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){i.buildPath(e,t,!0)}});e.exports=o},function(e,t,n){var r=n(330),i=n(331);t.buildPath=function(e,t,n){var o=t.points,a=t.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=i(o,a,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],p=o[(u+1)%l];e.bezierCurveTo(c[0],c[1],h[0],h[1],p[0],p[1])}}else{"spline"===a&&(o=r(o,n)),e.moveTo(o[0][0],o[0][1]);u=1;for(var d=o.length;u<d;u++)e.lineTo(o[u][0],o[u][1])}n&&e.closePath()}}},function(e,t,n){var r=n(20),i=n(182),o=r.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){i.buildPath(e,t,!1)}});e.exports=o},function(e,t,n){var r=n(20),i=n(123).subPixelOptimizeLine,o={},a=r.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,r,a,s;this.subPixelOptimize?(i(o,t,this.style),n=o.x1,r=o.y1,a=o.x2,s=o.y2):(n=t.x1,r=t.y1,a=t.x2,s=t.y2);var l=t.percent;0!==l&&(e.moveTo(n,r),l<1&&(a=n*(1-l)+a*l,s=r*(1-l)+s*l),e.lineTo(a,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=a},function(e,t,n){var r=n(14),i=r.makeInner,o=r.normalizeToArray,a=i();var s={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(e,t,n){var r=a(t=t||this),i=r.colorIdx||0,s=r.colorNameMap=r.colorNameMap||{};if(s.hasOwnProperty(e))return s[e];var l=o(this.get("color",!0)),u=this.get("colorLayer",!0),c=null!=n&&u?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(u,n):l;if((c=c||l)&&c.length){var h=c[i];return e&&(s[e]=h),r.colorIdx=(i+1)%c.length,h}}};e.exports=s},function(e,t,n){var r=n(1),i=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var o=function(e){r.each(i,(function(t){this[t]=r.bind(e[t],e)}),this)};e.exports=o},function(e,t,n){var r=n(24),i=n(104),o=n(43).detectSourceFormat,a=n(87).SERIES_LAYOUT_BY_COLUMN;r.extend({type:"dataset",defaultOption:{seriesLayoutBy:a,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),i.extend({type:"dataset"})},function(e,t,n){var r=n(58),i=n(68),o=n(59),a=n(179),s=n(122),l=n(349),u=n(184),c=n(20),h=n(181),p=n(183),d=n(124),f=n(120),m=n(29),g=n(174).createFromString,y=n(1),v=y.isString,_=y.extend,x=y.defaults,b=y.trim,w=y.each,S=/[\s,]+/;function k(e){v(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function T(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}T.prototype.parse=function(e,t){t=t||{};var n=k(e);if(!n)throw new Error("Illegal svg");var i=new r;this._root=i;var o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(l)&&(l=null),P(n,i,null,!0);for(var u,c,h=n.firstChild;h;)this._parseNode(h,i),h=h.nextSibling;
25if(o){var p=b(o).split(S);p.length>=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&null!=a&&null!=l&&(c=z(u,a,l),!t.ignoreViewBox)){var d=i;(i=new r).add(d),d.scale=c.scale.slice(),d.position=c.position.slice()}return t.ignoreRootClip||null==a||null==l||i.setClipPath(new s({shape:{x:0,y:0,width:a,height:l}})),{root:i,width:a,height:l,viewBoxRect:u,viewBoxTransform:c}},T.prototype._parseNode=function(e,t){var n,r,i=e.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){if(r=E[i]){var o=r.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=o)}}else(r=M[i])&&(n=r.call(this,e,t),t.add(n));for(var s=e.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},T.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,r=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var i=new o({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});C(t,i),P(e,i,this._defs);var a=i.style.fontSize;a&&a<9&&(i.style.fontSize=9,i.scale=i.scale||[1,1],i.scale[0]*=a/9,i.scale[1]*=a/9);var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i};var M={g:function(e,t){var n=new r;return C(t,n),P(e,n,this._defs),n},rect:function(e,t){var n=new s;return C(t,n),P(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new a;return C(t,n),P(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new u;return C(t,n),P(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new l;return C(t,n),P(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=I(n));var r=new h({shape:{points:n||[]}});return C(t,r),P(e,r,this._defs),r},polyline:function(e,t){var n=new c;C(t,n),P(e,n,this._defs);var r=e.getAttribute("points");return r&&(r=I(r)),new p({shape:{points:r||[]}})},image:function(e,t){var n=new i;return C(t,n),P(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,i=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new r;return C(t,s),P(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new r;return C(t,s),P(e,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(e,t){var n=e.getAttribute("d")||"",r=g(n);return C(t,r),P(e,r,this._defs),r}},E={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),r=parseInt(e.getAttribute("x2")||10,10),i=parseInt(e.getAttribute("y2")||0,10),o=new d(t,n,r,i);return function(e,t){var n=e.firstChild;for(;n;){if(1===n.nodeType){var r=n.getAttribute("offset");r=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var i=n.getAttribute("stop-color")||"#000000";t.addColorStop(r,i)}n=n.nextSibling}}(e,o),o},radialgradient:function(e){}};function C(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),x(t.__inheritedStyle,e.__inheritedStyle))}function I(e){for(var t=b(e).split(S),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}var A={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function P(e,t,n,r){var i=t.__inheritedStyle||{},o="text"===t.type;if(1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=null,i=[];n.replace(O,(function(e,t,n){i.push(t,n)}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1];switch(r=r||m.create(),s){case"translate":a=b(a).split(S),m.translate(r,r,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=b(a).split(S),m.scale(r,r,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=b(a).split(S),m.rotate(r,r,parseFloat(a[0]));break;case"skew":a=b(a).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":a=b(a).split(S);r[0]=parseFloat(a[0]),r[1]=parseFloat(a[1]),r[2]=parseFloat(a[2]),r[3]=parseFloat(a[3]),r[4]=parseFloat(a[4]),r[5]=parseFloat(a[5])}}t.setLocalTransform(r)}}(e,t),_(i,function(e){var t=e.getAttribute("style"),n={};if(!t)return n;var r,i={};R.lastIndex=0;for(;null!=(r=R.exec(t));)i[r[1]]=r[2];for(var o in A)A.hasOwnProperty(o)&&null!=i[o]&&(n[A[o]]=i[o]);return n}(e)),!r))for(var a in A)if(A.hasOwnProperty(a)){var s=e.getAttribute(a);null!=s&&(i[A[a]]=s)}var l=o?"textFill":"fill",u=o?"textStroke":"stroke";t.style=t.style||new f;var c=t.style;null!=i.fill&&c.set(l,L(i.fill,n)),null!=i.stroke&&c.set(u,L(i.stroke,n)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&o?"textStrokeWidth":e;null!=i[e]&&c.set(t,parseFloat(i[e]))})),i.textBaseline&&"auto"!==i.textBaseline||(i.textBaseline="alphabetic"),"alphabetic"===i.textBaseline&&(i.textBaseline="bottom"),"start"===i.textAlign&&(i.textAlign="left"),"end"===i.textAlign&&(i.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=i[e]&&c.set(e,i[e])})),i.lineDash&&(t.style.lineDash=b(i.lineDash).split(S)),c[u]&&"none"!==c[u]&&(t[u]=!0),t.__inheritedStyle=i}var D=/url\(\s*#(.*?)\)/;function L(e,t){var n=t&&e&&e.match(D);return n?t[b(n[1])]:e}
25var O=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var R=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(e,t,n){var r=t/e.width,i=n/e.height,o=Math.min(r,i);return{scale:[o,o],position:[-(e.x+e.width/2)*o+t/2,-(e.y+e.height/2)*o+n/2]}}t.parseXML=k,t.makeViewBoxTransform=z,t.parseSVG=function(e,t){return(new T).parse(e,t)}},function(e,t,n){var r=n(98);t.zrender=r;var i=n(29);t.matrix=i;var o=n(18);t.vector=o;var a=n(1),s=n(39);t.color=s;var l=n(12),u=n(13);t.number=u;var c=n(17);t.format=c;var h=n(49);h.throttle;t.throttle=h.throttle;var p=n(350);t.helper=p;var d=n(195);t.parseGeoJSON=d;var f=n(34);t.List=f;var m=n(23);t.Model=m;var g=n(51);t.Axis=g;var y=n(22);t.env=y;var v=d,_={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){_[e]=a[e]}));var x={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){x[e]=l[e]})),t.parseGeoJson=v,t.util=_,t.graphic=x},function(e,t,n){var r=n(1);var i=function(e){null!=e&&r.extend(this,e),this.otherDims={}};e.exports=i},function(e,t,n){var r=n(1),i=r.createHashMap,o=r.each,a=r.isString,s=r.defaults,l=r.extend,u=r.isObject,c=r.clone,h=n(14).normalizeToArray,p=n(43),d=p.guessOrdinal,f=p.BE_ORDINAL,m=n(86),g=n(88).OTHER_DIMENSIONS,y=n(190);function v(e,t,n){if(n||null!=t.get(e)){for(var r=0;null!=t.get(e+r);)r++;e+=r}return t.set(e,!0),e}var _=function(e,t,n){m.isInstance(t)||(t=m.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var r=(n.dimsDef||[]).slice(),p=i(),_=i(),x=[],b=function(e,t,n,r){var i=Math.max(e.dimensionsDetectCount||1,t.length,n.length,r||0);return o(t,(function(e){var t=e.dimsDef;t&&(i=Math.max(i,t.length))})),i}(t,e,r,n.dimCount),w=0;w<b;w++){var S=r[w]=l({},u(r[w])?r[w]:{name:r[w]}),k=S.name,T=x[w]=new y;null!=k&&null==p.get(k)&&(T.name=T.displayName=k,p.set(k,w)),null!=S.type&&(T.type=S.type),null!=S.displayName&&(T.displayName=S.displayName)}var M=n.encodeDef;!M&&n.encodeDefaulter&&(M=n.encodeDefaulter(t,b)),(M=i(M)).each((function(e,t){if(1===(e=h(e).slice()).length&&!a(e[0])&&e[0]<0)M.set(t,!1);else{var n=M.set(t,[]);o(e,(function(e,r){a(e)&&(e=p.get(e)),null!=e&&e<b&&(n[r]=e,C(x[e],t,r))}))}}));var E=0;function C(e,t,n){null!=g.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,_.set(t,!0))}o(e,(function(e,t){var n,r,i;if(a(e))n=e,e={};else{n=e.name;var l=e.ordinalMeta;e.ordinalMeta=null,(e=c(e)).ordinalMeta=l,r=e.dimsDef,i=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}if(!1!==(p=M.get(n))){var p;if(!(p=h(p)).length)for(var d=0;d<(r&&r.length||1);d++){for(;E<x.length&&null!=x[E].coordDim;)E++;E<x.length&&p.push(E++)}o(p,(function(t,o){var a=x[t];if(C(s(a,e),n,o),null==a.name&&r){var l=r[o];!u(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}i&&s(a.otherDims,i)}))}}));var I=n.generateCoord,A=n.generateCoordCount,P=null!=A;A=I?A||1:0;for(var D=I||"value",L=0;L<b;L++){null==(T=x[L]=x[L]||new y).coordDim&&(T.coordDim=v(D,_,P),T.coordDimIndex=0,(!I||A<=0)&&(T.isExtraCoord=!0),A--),null==T.name&&(T.name=v(T.coordDim,p)),null!=T.type||d(t,L,T.name)!==f.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}return x};e.exports=_},function(e,t,n){var r=n(1),i=r.createHashMap,o=r.isObject,a=r.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,n=t.data,r=n&&a(n,c);return new s({categories:r,needCollect:!r,deduplication:!1!==t.dedplication})};var l=s.prototype;function u(e){return e._map||(e._map=i(e.categories))}function c(e){return o(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return u(this).get(e)},l.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!=typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=u(this);return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t};var h=s;e.exports=h},function(e,t,n){var r=n(13),i=r.round;function o(e){return r.getPrecisionSafe(e)+2}function a(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function s(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),a(e,0,t),a(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=function(e,t,n,a){var l={},u=e[1]-e[0],c=l.interval=r.nice(u/t,!0);null!=n&&c<n&&(c=l.interval=n),null!=a&&c>a&&(c=l.interval=a);var h=l.intervalPrecision=o(c);return s(l.niceTickExtent=[i(Math.ceil(e[0]/c)*c,h),i(Math.floor(e[1]/c)*c,h)],e),l},t.getIntervalPrecision=o,t.fixExtent=s},function(e,t,n){var r=n(1),i=n(105),o=n(13),a=n(106),s=i.prototype,l=a.prototype,u=o.getPrecisionSafe,c=o.roun
25d,h=Math.floor,p=Math.ceil,d=Math.pow,f=Math.log,m=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new a},getTicks:function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return r.map(l.getTicks.call(this,e),(function(e){var r=o.round(d(this.base,e));return r=e===n[0]&&t.__fixMin?g(r,i[0]):r,r=e===n[1]&&t.__fixMax?g(r,i[1]):r}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),d(this.base,e)},setExtent:function(e,t){var n=this.base;e=f(e)/f(n),t=f(t)/f(n),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=d(e,t[0]),t[1]=d(e,t[1]);var n=this._originalScale,r=n.getExtent();return n.__fixMin&&(t[0]=g(t[0],r[0])),n.__fixMax&&(t[1]=g(t[1],r[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=f(e[0])/f(t),e[1]=f(e[1])/f(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=o.quantity(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[o.round(p(t[0]/r)*r),o.round(h(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function g(e,t){return c(e,u(t))}r.each(["contain","normalize"],(function(e){m.prototype[e]=function(t){return t=f(t)/f(this.base),s[e].call(this,t)}})),m.create=function(){return new m};var y=m;e.exports=y},function(e,t,n){var r=n(1),i=n(196);function o(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}e.exports=function(e,t){return function(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,r=0;r<n.length;r++)for(var i=n[r].geometry,a=i.coordinates,s=i.encodeOffsets,l=0;l<a.length;l++){var u=a[l];if("Polygon"===i.type)a[l]=o(u,s[l],t);else if("MultiPolygon"===i.type)for(var c=0;c<u.length;c++){var h=u[c];u[c]=o(h,s[l][c],t)}}e.UTF8Encoding=!1}(e),r.map(r.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,o=e.geometry,a=o.coordinates,s=[];"Polygon"===o.type&&s.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===o.type&&r.each(a,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new i(n[t||"name"],s,n.cp);return l.properties=n,l}))}},function(e,t,n){var r=n(19),i=n(84),o=n(18),a=n(197);function s(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var r=this.getBoundingRect();n=[r.x+r.width/2,r.y+r.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],a=[-t,-t],s=[],l=[],u=this.geometries,c=0;c<u.length;c++)if("polygon"===u[c].type){var h=u[c].exterior;i.fromPoints(h,s,l),o.min(n,n,s),o.max(a,a,l)}return 0===c&&(n[0]=n[1]=a[0]=a[1]=0),this._rect=new r(n[0],n[1],a[0]-n[0],a[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var o=n[r].exterior,s=n[r].interiors;if(a.contain(o,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue e;return!0}}return!1},transformTo:function(e,t,n,i){var a=this.getBoundingRect(),s=a.width/a.height;n?i||(i=n/s):n=s*i;for(var l=new r(e,t,n,i),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++)if("polygon"===c[h].type){for(var p=c[h].exterior,d=c[h].interiors,f=0;f<p.length;f++)o.applyTransform(p[f],p[f],u);for(var m=0;m<(d?d.length:0);m++)for(f=0;f<d[m].length;f++)o.applyTransform(d[m][f],d[m][f],u)}(a=this._rect).copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var l=s;e.exports=l},function(e,t,n){var r=n(178);function i(e,t){return Math.abs(e-t)<1e-8}t.contain=function(e,t,n){var o=0,a=e[0];if(!a)return!1;for(var s=1;s<e.length;s++){var l=e[s];o+=r(a[0],a[1],l[0],l[1],t,n),a=l}var u=e[0];return i(a[0],u[0])&&i(a[1],u[1])||(o+=r(a[0],a[1],u[0],u[1],t,n)),0!==o}},function(e,t,n){var r=n(41).isDimensionStacked,i=n(1).map;t.prepareDataCoordInfo=function(e,t,n){var o,a=e.getBaseAxis(),s=e.getOtherAxis(a),l=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(s,n),u=a.dim,c=s.dim,h=t.mapDimension(c),p=t.mapDimension(u),d="x"===c||"radiu
25s"===c?1:0,f=i(e.dimensions,(function(e){return t.mapDimension(e)})),m=t.getCalculationInfo("stackResultDimension");return(o|=r(t,f[0]))&&(f[0]=m),(o|=r(t,f[1]))&&(f[1]=m),{dataDimsForPoint:f,valueStart:l,valueAxisDim:c,baseAxisDim:u,stacked:!!o,valueDim:h,baseDim:p,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}},t.getStackedOnPoint=function(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}},function(e,t,n){var r=n(20),i=n(18),o=n(180),a=i.min,s=i.max,l=i.scaleAndAdd,u=i.copy,c=[],h=[],p=[];function d(e){return isNaN(e[0])||isNaN(e[1])}function f(e,t,n,r,i,o,a,s,l,u,c){return"none"!==u&&u?m.apply(this,arguments):g.apply(this,arguments)}function m(e,t,n,r,i,o,a,s,l,c,f){for(var m=0,g=n,y=0;y<r;y++){var v=t[g];if(g>=i||g<0)break;if(d(v)){if(f){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v[0],v[1]);else if(l>0){var _=t[m],x="y"===c?1:0,b=(v[x]-_[x])*l;u(h,_),h[x]=_[x]+b,u(p,v),p[x]=v[x]-b,e.bezierCurveTo(h[0],h[1],p[0],p[1],v[0],v[1])}else e.lineTo(v[0],v[1]);m=g,g+=o}return y}function g(e,t,n,r,o,f,m,g,y,v,_){for(var x=0,b=n,w=0;w<r;w++){var S=t[b];if(b>=o||b<0)break;if(d(S)){if(_){b+=f;continue}break}if(b===n)e[f>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(y>0){var k=b+f,T=t[k];if(_)for(;T&&d(t[k]);)T=t[k+=f];var M=.5,E=t[x];if(!(T=t[k])||d(T))u(p,S);else{var C,I;if(d(T)&&!_&&(T=S),i.sub(c,T,E),"x"===v||"y"===v){var A="x"===v?0:1;C=Math.abs(S[A]-E[A]),I=Math.abs(S[A]-T[A])}else C=i.dist(S,E),I=i.dist(S,T);l(p,S,c,-y*(1-(M=I/(I+C))))}a(h,h,g),s(h,h,m),a(p,p,g),s(p,p,m),e.bezierCurveTo(h[0],h[1],p[0],p[1],S[0],S[1]),l(h,S,c,y*M
25)}else e.lineTo(S[0],S[1]);x=b,b+=f}return w}function y(e,t){var n=[1/0,1/0],r=[-1/0,-1/0];if(t)for(var i=0;i<e.length;i++){var o=e[i];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>r[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1])}return{min:t?n:r,max:t?r:n}}var v=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(r.prototype.brush),buildPath:function(e,t){var n=t.points,r=0,i=n.length,o=y(n,t.smoothConstraint);if(t.connectNulls){for(;i>0&&d(n[i-1]);i--);for(;r<i&&d(n[r]);r++);}for(;r<i;)r+=f(e,n,r,i,i,1,o.min,o.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),_=r.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:o(r.prototype.brush),buildPath:function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length,a=t.smoothMonotone,s=y(n,t.smoothConstraint),l=y(r,t.smoothConstraint);if(t.connectNulls){for(;o>0&&d(n[o-1]);o--);for(;i<o&&d(n[i]);i++);}for(;i<o;){var u=f(e,n,i,o,o,1,s.min,s.max,t.smooth,a,t.connectNulls);f(e,r,i+u-1,u,o,-1,l.min,l.max,t.stackedOnSmooth,a,t.connectNulls),i+=u+1,e.closePath()}}});t.Polyline=v,t.Polygon=_},function(e,t,n){var r=n(1),i=n(24),o=n(109),a=n(73),s=i.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}r.merge(s.prototype,a);var u={offset:0};o("x",s,l,u),o("y",s,l,u);var c=s;e.exports=c},function(e,t,n){var r=n(1),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o={};o.categoryAxis=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),o.valueAxis=r.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},i),o.timeAxis=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=r.defaults({scale:!0,logBase:10},o.valueAxis);var a=o;e.exports=a},function(e,t,n){var r=n(1);t.layout=function(e,t,n){n=n||{};var i=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,c=o.dim,h=i.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,m="x"===c?[p[2]-f,p[3]+f]:[p[0]-f,p[1]+f];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));m[d.onZero]=Math.max(Math.min(g,m[1]),m[0])}a.position=["y"===c?m[d[u]]:p[0],"x"===c?m[d[u]]:p[3]],a.rotation=Math.PI/2*("x"===c?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],a.labelOffset=s?m[d[l]]-m[d.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),r.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var y=t.get("axisLabel.rotate");return a.labelRotate="top"===u?-y:y,a.z2=1,a}},function(e,t,n){var r=n(1),i=n(12);t.rectCoordAxisBuildSplitArea=function(e,t,n,o){var a=n.axis;if(!a.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),c=o.c
25oordinateSystem.getRect(),h=a.getTicksCoords({tickModel:s,clamp:!0});if(h.length){var p=u.length,d=e.__splitAreaColors,f=r.createHashMap(),m=0;if(d)for(var g=0;g<h.length;g++){var y=d.get(h[g].tickValue);if(null!=y){m=(y+(p-1)*g)%p;break}}var v=a.toGlobalCoord(h[0].coord),_=l.getAreaStyle();u=r.isArray(u)?u:[u];for(g=1;g<h.length;g++){var x,b,w,S,k=a.toGlobalCoord(h[g].coord);a.isHorizontal()?(x=v,b=c.y,w=k-x,S=c.height,v=x+w):(x=c.x,b=v,w=c.width,v=b+(S=k-b));var T=h[g-1].tickValue;null!=T&&f.set(T,m),t.add(new i.Rect({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:S},style:r.defaults({fill:u[m]},_),silent:!0})),m=(m+1)%p}e.__splitAreaColors=f}}},t.rectCoordAxisHandleRemove=function(e){e.__splitAreaColors=null}},function(e,t,n){var r=n(25),i=n(44),o=r.extend({type:"series.__base_bar__",getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=o},function(e,t,n){var r=n(12),i=n(129).getDefaultLabel;function o(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=function(e,t,n,a,s,l,u){var c=n.getModel("label"),h=n.getModel("emphasis.label");r.setLabelStyle(e,t,c,h,{labelFetcher:s,labelDataIndex:l,defaultText:i(s.getData(),l),isRectText:!0,autoColor:a}),o(e),o(t)}},function(e,t,n){var r=n(9),i=n(1);e.exports=function(e,t){i.each(t,(function(t){t.update="updateView",r.registerAction(t,(function(n,r){var i={};return r.eachComponent({mainType:"series",subType:e,query:n},(function(e){e[t.method]&&e[t.method](n.name,n.dataIndex);var r=e.getData();r.each((function(t){var n=r.getName(t);i[n]=e.isSelected(n)||!1}))})),{name:n.name,selected:i,seriesId:n.seriesId}}))}))}},function(e,t,n){var r=n(1),i=n(95),o=n(132),a=n(113).onIrrelevantElement,s=n(12),l=n(112),u=n(85).getUID,c=n(99);function h(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function p(e,t){t.eachChild((function(t){r.each(t.__regions,(function(n){t.trigger(e.isSelected(n.name)?"emphasis":"normal")}))}))}function d(e,t){var n=new s.Group;this.uid=u("ec_map_draw"),this._controller=new i(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new s.Group),n.add(this._backgroundGroup=new s.Group)}d.prototype={constructor:d,draw:function(e,t,n,i,o){var a="geo"===e.mainType,l=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){l||t.getHostGeoModel()!==e||(l=t.getData())}));var u=e.coordinateSystem;
25this._updateBackground(u);var d,f=this._regionsGroup,m=this.group,g=u.getTransformInfo(),y=!f.childAt(0)||o;if(y)m.transform=g.roamTransform,m.decomposeTransform(),m.dirty();else{var v=new c;v.transform=g.roamTransform,v.decomposeTransform();var _={scale:v.scale,position:v.position};d=v.scale,s.updateProps(m,_,e)}var x=g.rawScale,b=g.rawPosition;f.removeAll();var w=["itemStyle"],S=["emphasis","itemStyle"],k=["label"],T=["emphasis","label"],M=r.createHashMap();r.each(u.regions,(function(t){var n=M.get(t.name)||M.set(t.name,new s.Group),i=new s.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(i);var o,u=(N=e.getRegionModel(t.name)||e).getModel(w),c=N.getModel(S),p=h(u),g=h(c),v=N.getModel(k),_=N.getModel(T);if(l){o=l.indexOfName(t.name);var E=l.getItemVisual(o,"color",!0);E&&(p.fill=E)}var C=function(e){return[e[0]*x[0]+b[0],e[1]*x[1]+b[1]]};r.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(C(e.exterior[n]));i.shape.paths.push(new s.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],o=(t=[],0);o<r.length;++o)t.push(C(r[o]));i.shape.paths.push(new s.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),i.setStyle(p),i.style.strokeNoScale=!0,i.culling=!0;var I=v.get("show"),A=_.get("show"),P=l&&isNaN(l.get(l.mapDimension("value"),o)),D=l&&l.getItemLayout(o);if(a||P&&(I||A)||D&&D.showLabel){var L,O=a?t.name:o;(!l||o>=0)&&(L=e);var R=new s.Text({position:C(t.center.slice()),scale:[1/m.scale[0],1/m.scale[1]],z2:10,silent:!0});if(s.setLabelStyle(R.style,R.hoverStyle={},v,_,{labelFetcher:L,labelDataIndex:O,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var z=[1/d[0],1/d[1]];s.updateProps(R,{scale:z},e)}n.add(R)}if(l)l.setItemGraphicEl(o,n);else{var N=e.getRegionModel(t.name);i.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:N&&N.option||{}}}(n.__regions||(n.__regions=[])).push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),s.setHoverStyle(n,g),f.add(n)})),this._updateController(e,t,n),function(e,t,n,i,o){n.off("click"),n.off("mousedown"),t.get("selectedMode")&&(n.on("mousedown",(function(){e._mouseDownFlag=!0})),n.on("click",(function(a){if(e._mouseDownFlag){e._mouseDownFlag=!1;for(var s=a.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:r.map(s.__regions,(function(e){return{name:e.name,from:o.uid}}))};l[t.mainType+"Id"]=t.id,i.dispatchAction(l),p(t,n)}}})))}(this,e,f,n,i),p(e,f)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&l.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}}
25,_updateBackground:function(e){var t=e.map;this._mapName!==t&&r.each(l.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var i=e.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=i.getZoom(),s.enable(e.get("roam")||!1);var u=e.mainType;function c(){var t={type:"geoRoam",componentType:u};return t[u+"Id"]=e.id,t}s.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,o.updateViewOnPan(l,e.dx,e.dy),n.dispatchAction(r.extend(c(),{dx:e.dx,dy:e.dy}))}),this),s.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,o.updateViewOnZoom(l,e.scale,e.originX,e.originY),n.dispatchAction(r.extend(c(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),s.setPointerChecker((function(t,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!a(t,n,e)}))}};var f=d;e.exports=f},function(e,t,n){var r=n(9),i="\0_ec_interaction_mutex";function o(e){return e[i]||(e[i]={})}r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=function(e,t,n){o(e)[t]=n},t.release=function(e,t,n){var r=o(e);r[t]===n&&(r[t]=null)},t.isTaken=function(e,t){return!!o(e)[t]}},function(e,t,n){var r=n(9),i=n(1),o=n(133).updateCenterAndZoom;r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var a=o(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===n&&i.each(t.seriesGroup,(function(e){e.setCenter(a.center),e.setZoom(a.zoom)}))}}))}))},function(e,t,n){var r=n(1),i=r.each,o="\0__link_datas",a="\0__link_mainData";function s(e,t){if((i=this)[a]===i){var n=r.extend({},this[o]);n[this.dataType]=t,h(t,n,e)}else p(t,this.dataType,this[a],e);var i;return t}function l(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return i(t[o],(function(n,r){n!==t&&p(n.cloneShallow(),r,t,e)})),t}function c(e){var t=this[a];return null==e||null==t?t:t[o][e]}function h(e,t,n){e[o]={},i(t,(function(t,r){p(t,r,e,n)}))}function p(e,t,n,r){n[o][t]=e,e[a]=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=c}var d=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,h(t,n,e),i(n,(function(n){i(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,r.curry(s,e))}))})),t.wrapMethod("cloneShallow",r.curry(u,e)),i(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(l,e))})),r.assert(n[t.dataType]===t)};e.exports=d},function(e,t,n){var r=n(16);function i(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function o(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function a(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function s(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function l(e,t){return e.parentNode===t.parentNode?1:2}t.init=function(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,n,r=[e];t=r.pop();)if(n=t.children,t.isExpand&&n.length)for(var i=n.length-1;i>=0;i--){var o=n[i];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:i,thread:null},r.push(o)}},t.firstWalk=function(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,l=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(e);var u=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;l?(e.hierNode.prelim=l.hierNode.prelim+t(e,l),e.hierNode.modifier=e.hierNode.prelim-u):e.hierNode.prelim=u}else l&&(e.hierNode.prelim=l.hierNode.prelim+t(e,l));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var l=e,u=e,c=u.parentNode.children[0],h=t,p=l.hierNode.modifier,d=u.hierNode.modifier,f=c.hierNode.modifier,m=h.hierNode.modifier;h=i(h),u=o(u),h&&u;){l=i(l),c=o(c),l.hierNode.ancestor=e;var g=h.hierNode.prelim+m-u.hierNode.prelim-d+r(h,u);g>0&&(s(a(h,e,n),e,g),d+=g,p+=g),m+=h.hierNode.modifier,d+=u.hierNode.modifier,p+=l.hierNode.modifier,f+=c.hierNode.modifier}h&&!i(l)&&(l.hierNode.thread=h,l.hierNode.modifier+=m-p),u&&!o(c)&&(c.hierNode.thread=u,c.hierNode.modifier+=d-f,n=e)}return n}(e,l,e.parentNode.hierNode.defaultAncestor||r[0],t)},t.secondWalk=function(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier},t.separation=function(e){return arguments.length?e:l},t.radialCoordinate=function(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n},t.getViewRect=function(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}},function(e,t,n){var r=n(1),i=n(34),o=n(420),a=n(210),s=n(72),l=n(36),u=n(44);e.exports=function(e,t,n,c,h){for(var p=new o(c),d=0;d<e.length;d++)p.addNode(r.retrieve(e[d].id,e[d].name,d),d);var f=[],m=[],g=0;for(d=0;d<t.length;d++){var y=t[d],v=y.source,_=y.target;p.addEdge(v,_,g)&&(m.push(y),f.push(r.retrieve(y.id,v+" > "+_)),g++)}var x,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)x=u(e,n);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];r.indexOf(S,"value")<0&&S.concat(["value"]);var k=s(e,{coordDimensions:S});(x=new i(k,n)).initData(e)}var T=new i(["value"],n);return T.initData(m,f),h&&h(x,T),a({mainData:x,struct:p,structAttr:"graph",datas:{node:x,edge:T},datasAttr:{node:"data",edge:"edgeData"}}),p.update(),p}},function(e,t,n){var r=n(9);r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},function(e,t,n){var r=n(18),i=n(1),o=n(114).getCurvenessForEdge;function a(e,t){e.eachEdge((function(e,n){var a=i.retrieve3(e.getModel().get("lineStyle.curveness"),-o(e,t,n,!0),0),s=r.clone(e.node1.getLayout()),l=r.clone(e.node2.getLayout()),u=[s,l];+a&&u.push([(s[0]+l[0])/2-(s[1]-l[1])*a,(s[1]+l[1])/2-(l[0]-s[0])*a]),e.setLayout(u)}))}t.simpleLayout=function(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),a(n,e)}}
25,t.simpleLayoutEdge=a},function(e,t,n){var r=n(18),i=n(139),o=i.getSymbolSize,a=i.getNodeGlobalScale,s=n(1),l=n(114).getCurvenessForEdge,u=Math.PI,c=[];var h={value:function(e,t,n,r,i,o,a,s){var l=0,u=r.getSum("value"),c=2*Math.PI/(u||s);n.eachNode((function(e){var t=e.getValue("value"),n=c*(u?t:1)/2;l+=n,e.setLayout([i*Math.cos(l)+o,i*Math.sin(l)+a]),l+=n}))},symbolSize:function(e,t,n,r,i,s,l,h){var p=0;c.length=h;var d=a(e);n.eachNode((function(e){var t=o(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=d;var n=Math.asin(t/2/i);isNaN(n)&&(n=u/2),c[e.dataIndex]=n,p+=2*n}));var f=(2*u-p)/h/2,m=0;n.eachNode((function(e){var t=f+c[e.dataIndex];m+=t,e.setLayout([i*Math.cos(m)+s,i*Math.sin(m)+l]),m+=t}))}};t.circularLayout=function(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),o=e.getData(),a=o.graph,u=i.width/2+i.x,c=i.height/2+i.y,p=Math.min(i.width,i.height)/2,d=o.count();o.setLayout({cx:u,cy:c}),d&&(h[t](e,n,a,o,p,u,c,d),a.eachEdge((function(t,n){var i,o=s.retrieve3(t.getModel().get("lineStyle.curveness"),l(t,e,n),0),a=r.clone(t.node1.getLayout()),h=r.clone(t.node2.getLayout()),p=(a[0]+h[0])/2,d=(a[1]+h[1])/2;+o&&(i=[u*(o*=3)+p*(1-o),c*o+d*(1-o)]),t.setLayout([a,h,i])})))}}},function(e,t,n){var r=n(9),i=n(1),o=n(49),a=n(442);n(217),n(445),n(447);r.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},i.each(s,(function(e,t){n.getZr().on(t,this._handlers[t]=i.bind(e,this))}),this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){i.each(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(i.extend({type:"parallelAxisExpand"},e))}});var s={mousedown:function(e){l(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(l(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&l(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r&&null})}}};function l(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}r.registerPreprocessor(a)},function(e,t,n){var r=n(443);n(36).register("parallel",{create:function(e,t){var n=[];return e.eachComponent("parallel",(function(i,o){var a=new r(i,e,t);a.name="parallel_"+o,a.resize(i,t),i.coordinateSystem=a,a.model=i,n.push(a)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}})},function(e,t,n){var r=n(19),i=n(113).onIrrelevantElement,o=n(12);function a(e){return r.create(e)}t.makeRectPanelClipPath=function(e){return e=a(e),function(t,n){return o.clipPointsByRect(t,e)}},t.makeLinearBrushOtherExtent=function(e,t){return e=a(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}},t.makeRectIsTargetByCursor=function(e,t,n){return e=a(e),function(r,o,a){return e.contain(o[0],o[1])&&!i(r,t,n)}}},function(e,t,n){var r=n(74),i=n(1),o=n(88).getDimensionTypeByAxis,a=n(43).makeSeriesEncodeForAxisCoordSys,s={_baseAxisDim:null,getInitialData:function(e,t){var n,s,l=t.getComponent("xAxis",this.get("xAxisIndex")),u=t.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),h=u.get("type");"category"===c?(e.layout="horizontal",n=l.getOrdinalMeta(),s=!0):"category"===h?(e.layout="vertical",n=u.getOrdinalMeta(),s=!0):e.layout=e.layout||"horizontal";var p=["x","y"],d="horizontal"===e.layout?0:1,f=this._baseAxisDim=p[d],m=p[1-d],g=[l,u],y=g[d].get("type"),v=g[1-d].get("type"),_=e.data;if(_&&s){var x=[];i.each(_,(function(e,t){var n;e.value&&i.isArray(e.value)?(n=e.value.slice(),e.value.unshift(t)):i.isArray(e)?(n=e.slice(),e.unshift(t)):n=e,x.push(n)})),e.data=x}var b=this.defaultValueDimensions,w=[{name:f,type:o(y),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:o(v),dimsDef:b.slice()}];return r(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:i.curry(a,w,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=s},function(e,t,n){var r=n(12),i=n(138),o=n(1),a=n(35).createSymbol,s=n(18),l=n(48);function u(e,t,n){r.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}var c=u.prototype;c.createLine=function(e,t,n){return new i(e,t,n)},c._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");o.isArray(r)||(r=[r,r]);var s=n.get("color")||e.getItemVisual(t,"color"),l=this.childAt(1);this._symbolType!==i&&(this.remove(l),(l=a(i,-.5,-.5,1,1,s)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(n.getItemStyle(["color"])),l.attr("scale",r),l.setColor(s),l.attr("scale",r),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},c._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=this,a=e.getItemLayout(n),s=1e3*t.get("period"),l=t.get("loop"),u=t.get("constantSpeed"),c=o.retrieve(t.get("delay"),(function(t){return t/e.count()*s/3})),h="function"==typeof c;if(r.ignore=!0,this.updateAnimationPoints(r,a),u>0&&(s=this.getLineLength(r)/u*1e3),s!==this._period||l!==this._loop){r.stopAnimation();var p=c;h&&(p=c(n)),r.__t>0&&(p=-s*r.__t),r.__t=0;var d=r.animate("",l).when(s,{__t:1}).delay(p).during((function(){i.updateSymbolPosition(r)}));l||d.done((function(){i.remove(r)})),d.start()}this._period=s,this._loop=l}},c.getLineLength=function(e){return s.dist(e.__p1,e.__cp1)+s.dist(e.__cp1,e.__p2)},c.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},c.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},c.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,o=e.position,a=[o[0],o[1]],u=l.quadraticAt,c=l.quadraticDerivativeAt;o[0]=u(t[0],r[0],n[0],i),o[1]=u(t[1],r[1],n[1],i);var h=c(t[0],r[0],n[0],i),p=c(t[1],r[1],n[1],i);if(e.rotation=-Math.atan2(p,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var d=1.05*s.dist(a,o);e.attr("scale",[e.scale[0],d]),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)}
25else if(1===e.__lastT){d=2*s.dist(t,o);e.attr("scale",[e.scale[0],d])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},c.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},o.inherits(u,r.Group);var h=u;e.exports=h},function(e,t,n){var r=n(12),i=n(1);function o(e,t,n){r.Group.call(this),this._createPolyline(e,t,n)}var a=o.prototype;a._createPolyline=function(e,t,n){var i=e.getItemLayout(t),o=new r.Polyline({shape:{points:i}});this.add(o),this._updateCommonStl(e,t,n)},a.updateData=function(e,t,n){var i=e.hostModel,o=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};r.updateProps(o,a,i,t),this._updateCommonStl(e,t,n)},a._updateCommonStl=function(e,t,n){var o=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!e.hasItemOption||(l=a.getModel("lineStyle").getLineStyle(),u=a.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),o.hoverStyle=u,r.setHoverStyle(this)},a.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},i.inherits(o,r.Group);var s=o;e.exports=s},function(e,t,n){var r={seriesType:"lines",plan:n(71)(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,p=[];for(c=i.start;c<i.end;c++){var d=e.getLineCoords(c,a);n&&(s[h++]=d);for(var f=0;f<d;f++)p=t.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var m=o.getItemModel(c),g=(d=e.getLineCoords(c,a),[]);if(n)for(var y=0;y<d;y++)g.push(t.dataToPoint(a[y]));else{g[0]=t.dataToPoint(a[0]),g[1]=t.dataToPoint(a[1]);var v=m.get("lineStyle.curveness");+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}o.setItemLayout(c,g)}}}}};e.exports=r},function(e,t,n){var r=n(9);n(488),n(491),n(492),n(96),n(496),r.extendComponentView({type:"single"})},function(e,t,n){var r=n(1);t.layout=function(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,o={},a=i.position,s=i.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?c.vertical[a]:u[0],"horizontal"===s?c.horizontal[a]:u[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var h=t.rotate;return null==h&&(h=e.get("axisLabel.rotate")),o.labelRotation="top"===a?-h:h,o.z2=1,o}},function(e,t,n){var r=n(1),i=n(14);e.exports=function(e,t){var n,o=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=i.queryDataIndex(s,e);if(null==l||l<0||r.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)o=c.dataToPoint(s.getValues(r.map(c.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:u}}},function(e,t,n){var r=n(1),i=n(22),o=(0,n(14).makeInner)(),a=r.each;function s(e,t,n){e.handler("leave",null,n)}function l(e,t,n,r){t.handler(e,n,r)}t.register=function(e,t,n){if(!i.node){var u=t.getZr();o(u).records||(o(u).records={}),function(e,t){if(o(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);a(o(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}o(e).initialized=!0,n("click",r.curry(l,"click")),n("mousemove",r.curry(l,"mousemove")),n("globalout",s)}(u,t),(o(u).records[e]||(o(u).records[e]={})).handler=n}},t.unregister=function(e,t){if(!i.node){var n=t.getZr();(o(n).records||{})[e]&&(o(n).records[e]=null)}}},function(e,t,n){var r=n(141),i=n(115),o=n(202),a=n(63),s=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis,c=s.grid,h=r.get("type"),p=l(c,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(t,!0));if(h&&"none"!==h){var f=i.buildElStyle(r),m=u[h](s,d,p);m.style=f,e.graphicKey=m.type,e.pointer=m}var g=o.layout(c.model,n);i.buildCartesianSingleLabelElOption(t,e,g,n,r,a)},getHandleTransform:function(e,t,n){var r=o.layout(t.axis.grid.model,t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:i.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=l(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,c=e.position;c[u]+=t[u],c[u]=Math.min(a[1],c[u]),c[u]=Math.max(a[0],c[u]);var h=(s[1]+s[0])/2,p=[h,h];p[u]=c[u];return{position:c,rotation:e.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function l(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var u={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:i.makeLineShape([t,n[0]],[t,n[
251]],c(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:i.makeRectShape([t-r/2,n[0]],[r,o],c(e))}}};function c(e){return"x"===e.dim?0:1}a.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;e.exports=h},function(e,t,n){var r=n(16),i=r.getLayoutRect,o=r.box,a=r.positionElement,s=n(17),l=n(12);t.layout=function(e,t,n){var r=t.getBoxLayoutParams(),s=t.get("padding"),l={width:n.getWidth(),height:n.getHeight()},u=i(r,l,s);o(t.get("orient"),e,t.get("itemGap"),u.width,u.height),a(e,r,l,s)},t.makeBackground=function(e,t){var n=s.normalizeCssArray(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new l.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(12),o=n(14),a=n(218),s=r.each,l=r.indexOf,u=r.curry,c=["dataToPoint","pointToData"],h=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function p(e,t,n){var r=this._targetInfoList=[],i={},o=m(t,e);s(g,(function(e,t){(!n||!n.include||l(n.include,t)>=0)&&e(o,r,i)}))}var d=p.prototype;function f(e){return e[0]>e[1]&&e.reverse(),e}function m(e,t){return o.parseFinder(e,t,{includeMainTypes:h})}d.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=_[e.brushType](0,n,t);e.__rangeOffset={offset:b[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}))},d.matchOutputRanges=function(e,t,n){s(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&r.each(i.coordSyses,(function(r){var i=_[e.brushType](1,r,e.range);n(e,i.values,r,t)}))}),this)},d.setInputRanges=function(e,t){s(e,(function(e){var n,r,i,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=_[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?b[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=S(n),o=S(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},d.makePanelOpts=function(e,t){return r.map(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:a.makeRectPanelClipPath(r),isTargetByCursor:a.makeRectIsTargetByCursor(r,e,n.coordSysModel),getLinearBrushOtherExtent:a.makeLinearBrushOtherExtent(r)}}))},d.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&l(r.coordSyses,t.coordinateSystem)>=0},d.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=m(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(i=0;i<y.length;i++)if(y[i](r,o))return o}return!0};var g={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,o=e.gridModels,a=r.createHashMap(),u={},c={};(n||i||o)&&(s(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),u[t.id]=!0})),s(i,(function(e){var t=e.axis.grid.model;a.set(t.id,t),c[t.id]=!0})),s(o,(function(e){a.set(e.id,e),u[e.id]=!0,c[e.id]=!0})),a.each((function(e){var r=e.coordinateSystem,o=[];s(r.getCartesians(),(function(e,t){(l(n,e.getAxis("x").model)>=0||l(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:v.grid,xAxisDeclared:u[e.id],yAxisDeclared:c[e.id]})})))},geo:function(e,t){s(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:v.geo})}))}},y=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],v={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(i.getTransform(e)),t}},_={lineX:u(x,0),lineY:u(x,1),rect:function(e,t,n){var r=t[c[e]]([n[0][0],n[1][0]]),i=t[c[e]]([n[0][1],n[1][1]]),o=[f([r[0],i[0]]),f([r[1],i[1]])];return{values:o,xyMinMax:o}}
25,polygon:function(e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:r.map(n,(function(n){var r=t[c[e]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r})),xyMinMax:i}}};function x(e,t,n,i){var o=n.getAxis(["x","y"][e]),a=f(r.map([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(i[e])):o.toGlobalCoord(o.dataToCoord(i[e]))}))),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var b={lineX:u(w,0),lineY:u(w,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return r.map(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function w(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function S(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var k=p;e.exports=k},function(e,t,n){var r=n(1).each,i="\0_ec_hist_store";function o(e){var t=e[i];return t||(t=e[i]=[{}]),t}t.push=function(e,t){var n=o(e);r(t,(function(t,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(t)},t.pop=function(e){var t=o(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return r(n,(function(e,n){for(var r=t.length-1;r>=0;r--){if(e=t[r][n]){i[n]=e;break}}})),i},t.clear=function(e){e[i]=null},t.count=function(e){return o(e).length}},function(e,t,n){var r=n(9),i=n(1),o=n(19),a=n(116),s=n(553),l=n(49),u=n(229),c=["inBrush","outOfBrush"],h=r.PRIORITY.VISUAL.BRUSH;function p(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new u(t.option,e)).setInputRanges(t.areas,e)}))}function d(e,t){if(!e.isDisposed()){var n=e.getZr();n.__ecInBrushSelectEvent=!0,e.dispatchAction({type:"brushSelect",batch:t}),n.__ecInBrushSelectEvent=!1}}function f(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e[a.brushType](r,n,a.selectors,a))return!0}}function m(e){var t=e.brushSelector;if(i.isString(t)){var n=[];return i.each(s,(function(e,r){n[r]=function(n,r,i,o){var a=r.getItemLayout(n);return e[t](a,i,o)}})),n}if(i.isFunction(t)){var r={};return i.each(s,(function(e,n){r[n]=t})),r}return t}r.registerLayout(h,(function(e,t,n){e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),p(e)})),r.registerVisual(h,(function(e,t,n){var r,o,u=[];e.eachComponent({mainType:"brush"},(function(t,n){var l={brushId:t.id,brushIndex:n,brushName:t.name,areas:i.clone(t.areas),selected:[]};u.push(l);var h=t.option,p=h.brushLink,d=[],y=[],v=[],_=0;n||(r=h.throttleType,o=h.throttleDelay);var x=i.map(t.areas,(function(e){return function(e){var t=e.selectors={};return i.each(s[e.brushType],(function(n,r){t[r]=function(r){return n(r,t,e)}})),e}(i.defaults({boundingRect:g[e.brushType](e)},e))})),b=a.createVisualMappings(t.option,c,(function(e){e.mappingMethod="fixed"}));function w(e){return"all"===p||d[e]}function S(e){return!!e.length}i.isArray(p)&&i.each(p,(function(e){d[e]=1})),e.eachSeries((function(n,r){var o=v[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;_|=n.hasAxisBrushed(),w(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(y[t]=1)}))}(n,r):function(n,r,o){var a=m(n);if(!a||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(i.isArray(n)?i.indexOf(n,t)<0:t!==n)}(t,r))return;if(i.each(x,(function(r){a[r.brushType]&&t.brushTargetManager.controlSeries(r,n,e)&&o.push(r),_|=S(o)})),w(r)&&S(o)){var s=n.getData();s.each((function(e){f(a,o,s,e)&&(y[e]=1)}))}}(n,r,o)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(n);var r=m(e),i=v[t],o=e.getData(),s=w(t)?function(e){return y[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return f(r,i,o,e)?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(w(t)?_:S(i))&&a.applyVisual(c,b,o,s)}))})),function(e,t,n,r,i){if(!i)return;var o=e.getZr();if(o.__ecInBrushSelectEvent)return;o.__ecBrushSelect||(o.__ecBrushSelect=d);l.createOrUpdate(o,"__ecBrushSelect",n,t)(e,r)}(t,r,o,u,n)}));var g={lineX:i.noop,lineY:i.noop,rect:function(e){return y(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&y(t)}};function y(e){return new o(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},function(e,t,n){var r=n(9);n(233),n(578),n(234);var i=n(579),o=n(24);r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,i),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},function(e,t,n){var r=n(9),i=n(1),o=n(23),a=n(14).isNameSpecified,s=n(50).legend.selector,l={all:{type:"all",title:i.clone(s.all)},inverse:{type:"inverse",title:i.clone(s.inverse)}},u=r.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){u.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),i.isArray(t)&&i.each(t,(function(e,n){i.isString(e)&&(e={type:e}
25),t[n]=i.merge(e,l[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var s=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&a(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,s=i.map(r,(function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new o(e,this,this.ecModel)}),this);this._data=s},getData:function(){return this._data},select:function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;i.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;i.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;i.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&i.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),c=u;e.exports=c},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(35).createSymbol,a=n(12),s=n(228).makeBackground,l=n(16),u=i.curry,c=i.each,h=a.Group,p=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new h),this._backgroundEl,this.group.add(this._selectorGroup=new h),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),a=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===a?"right":"left");var u=e.get("selector",!0),c=e.get("selectorPosition",!0);!u||c&&"auto"!==c||(c="horizontal"===a?"end":"start"),this.renderInner(o,e,t,n,u,a,c);var h=e.getBoxLayoutParams(),p={width:n.getWidth(),height:n.getHeight()},d=e.get("padding"),f=l.getLayoutRect(h,p,d),m=this.layoutInner(e,o,f,r,u,c),g=l.getLayoutRect(i.defaults({width:m.width,height:m.height},h),p,d);this.group.attr("position",[g.x-m.x,g.y-m.y]),this.group.add(this._backgroundEl=s(m,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,n,r,o,a,s){var l=this.getContentGroup(),p=i.createHashMap(),d=t.get("selectedMode"),y=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&y.push(e.id)})),c(t.getData(),(function(i,o){var a=i.get("name");if(this.newlineDisabled||""!==a&&"\n"!==a){var s=n.getSeriesByName(a)[0];if(!p.get(a))if(s){var c=s.getData(),v=c.getVisual("color"),_=c.getVisual("borderColor");"function"==typeof v&&(v=v(s.getDataParams(0))),"function"==typeof _&&(_=_(s.getDataParams(0)));var x=c.getVisual("legendSymbol")||"roundRect",b=c.getVisual("symbol");this._createItem(a,o,i,t,x,b,e,v,_,d).on("click",u(f,a,null,r,y)).on("mouseover",u(m,s.name,null,r,y)).on("mouseout",u(g,s.name,null,r,y)),p.set(a,!0)}else n.eachRawSeries((function(n){if(!p.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var l=s.indexOfName(a),c=s.getItemVisual(l,"color"),h=s.getItemVisual(l,"borderColor");this._createItem(a,o,i,t,"roundRect",null,e,c,h,d).on("click",u(f,null,a,r,y)).on("mouseover",u(m,null,a,r,y)).on("mouseout",u(g,null,a,r,y)),p.set(a,!0)}}),this)}else l.add(new h({newline:!0}))}),this),o&&this._createSelector(o,t,r,a,s)},_createSelector:function(e,t,n,r,i){var o=this.getSelectorGroup();c(e,(function(e){!function(e){var r=e.type,i=new a.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var s=t.getModel("selectorLabel"),l=t.getModel("emphasis.selectorLabel");a.setLabelStyle(i.style,i.hoverStyle={},s,l,{defaultText:e.title,isRectText:!1}),a.setHoverStyle(i)}(e)}))},_createItem:function(e,t,n,r,s,l,u,c,p,f){var m=r.get("itemWidth"),g=r.get("itemHeight"),y=r.get("inactiveColor"),v=r.get("inactiveBorderColor"),_=r.get("symbolKeepAspect"),x=r.getModel("itemStyle"),b=r.isSelected(e),w=new h,S=n.getModel("textStyle"),k=n.get("icon"),T=n.getModel("tooltip"),M=T.parentModel,E=o(s=k||s,0,0,m,g,b?c:y,null==_||_);if(w.add(d(E,s,x,p,v,b)),!k&&l&&(l!==s||"none"===l)){var C=.8*g;"none"===l&&(l="circle");var I=o(l,(m-C)/2,(g-C)/2,C,C,b?c:y,null==_||_);w.add(d(I,l,x,p,v,b))}
25var A="left"===u?m+5:-5,P=u,D=r.get("formatter"),L=e;"string"==typeof D&&D?L=D.replace("{name}",null!=e?e:""):"function"==typeof D&&(L=D(e)),w.add(new a.Text({style:a.setTextStyle({},S,{text:L,x:A,y:g/2,textFill:b?S.getTextColor():y,textAlign:P,textVerticalAlign:"middle"})}));var O=new a.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:T.get("show")?i.extend({content:e,formatter:M.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:r.componentIndex,name:e,$vars:["name"]}},T.option):null});return w.add(O),w.eachChild((function(e){e.silent=!0})),O.silent=!f,this.getContentGroup().add(w),a.setHoverStyle(w),w.__legendDataIndex=t,w},layoutInner:function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();l.box(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),c=[-u.x,-u.y];if(i){l.box("horizontal",s,e.get("selectorItemGap",!0));var h=s.getBoundingRect(),p=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,m=0===f?"width":"height",g=0===f?"height":"width",y=0===f?"y":"x";"end"===o?p[f]+=u[m]+d:c[f]+=h[m]+d,p[1-f]+=u[g]/2-h[g]/2,s.attr("position",p),a.attr("position",c);var v={x:0,y:0};return v[m]=u[m]+d+h[m],v[g]=Math.max(u[g],h[g]),v[y]=Math.min(0,h[y]+p[1-f]),v}return a.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function d(e,t,n,r,i,o){var a;return"line"!==t&&t.indexOf("empty")<0?(a=n.getItemStyle(),e.style.stroke=r,o||(a.stroke=i)):a=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(a)}function f(e,t,n,r){g(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),m(e,t,n,r)}function m(e,t,n,r){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function g(e,t,n,r){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}e.exports=p},function(e,t,n){n(143),n(76),n(77),n(584),n(585),n(145),n(146)},function(e,t,n){n(143),n(76),n(77),n(586),n(587),n(145),n(146)},function(e,t,n){var r=n(9),i=n(238);n(239),n(240),n(590),n(591),n(245),r.registerPreprocessor(i)},function(e,t,n){var r=n(1),i=r.each;function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=function(e){var t=e&&e.visualMap;r.isArray(t)||(t=t?[t]:[]),i(t,(function(e){if(e){o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&r.isArray(t)&&i(t,(function(e){r.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))}}))}},function(e,t,n){n(24).registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},function(e,t,n){var r=n(9),i=n(1),o=n(116),a=n(65),s=r.PRIORITY.VISUAL.COMPONENT;function l(e,t,n,r){for(var i=t.targetVisuals[r],o=a.prepareVisualTypes(i),s={color:e.getData().getVisual("color")},l=0,u=o.length;l<u;l++){var c=o[l],h=i["opacity"===c?"__alphaForOpacity":c];h&&h.applyVisual(n,p,d)}return s.color;function p(e){return s[e]}function d(e,t){s[e]=t}}r.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(o.incrementalApplyVisual(t.stateList,t.targetVisuals,i.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),n}}),r.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(i.bind(l,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(n),s=n.getDimensionInfo(a);null!=s&&(o.dimension=s.index,r.push(o))}})),e.getData().setVisual("visualMeta",r)}})},function(e,t,n){var r=n(9),i=n(1),o=n(22),a=n(242),s=n(65),l=n(116),u=n(14),c=n(13),h=s.mapVisual,p=s.eachVisual,d=i.isArray,f=i.each,m=c.asc,g=c.linearMap,y=i.noop,v=r.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;o.canvasSupported||(n.realtime=!1),!t&&l.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=i.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=u.normalizeToArray(e),t},eachTargetSeries:function(e,t){i.each(this.getTargetSeriesIndices(),(function(n){e.call(t,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},formatValueText:function(e,t,n){var r,o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;return n=n||["<",">"],i.isArray(e)&&(e=e.slice(),r=!0),o=t?e:r?[c(e[0]),c(e[1])]:c(e),i.isString(u)?u.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):i.isFunction(u)?r?u(e[0],e[1]):u(e):r?e[0]===l[0]?n[0]+" "+o[1]:e[1]===l[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o;function c(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=m([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;
25if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var o=r[i];if(!e.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),o=t.controller||(t.controller={});i.merge(r,n),i.merge(o,n);var l=this.isCategory();function u(n){d(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")},f(this.stateList,(function(e){var t=n[e];if(i.isString(t)){var r=a.get(t,"active",l);r?(n[e]={},n[e][t]=r):delete n[e]}}),this)}u.call(this,r),u.call(this,o),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},f(r,(function(e,t){if(s.isValidType(t)){var n=a.get(t,"inactive",l);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");f(this.stateList,(function(o){var a=this.itemSize,s=e[o];s||(s=e[o]={color:l?r:[r]}),null==s.symbol&&(s.symbol=t&&i.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&i.clone(n)||(l?a[0]:[a[0],a[0]])),s.symbol=h(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var u=s.symbolSize;if(null!=u){var c=-1/0;p(u,(function(e){e>c&&(c=e)})),s.symbolSize=h(u,(function(e){return g(e,[0,c],[0,a[0]],!0)}))}}),this)}.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:y,getValueState:y,getVisualMeta:y});e.exports=v},function(e,t,n){var r=n(1),i={get:function(e,t,n){var i=r.clone((o[e]||{})[t]);return n&&r.isArray(i)?i[i.length-1]:i}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]}
25,colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=i;e.exports=a},function(e,t,n){var r=n(9),i=n(1),o=n(12),a=n(17),s=n(16),l=n(65),u=r.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,n=a.normalizeCssArray(t.get("padding")||0),r=e.getBoundingRect();e.add(new o.Rect({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,n){var r=(n=n||{}).forceState,o=this.visualMapModel,a={};if("symbol"===t&&(a.symbol=o.get("itemSymbol")),"color"===t){var s=o.get("contentColor");a.color=s}function u(e){return a[e]}function c(e,t){a[e]=t}var h=o.controllerVisuals[r||o.getValueState(e)],p=l.prepareVisualTypes(h);return i.each(p,(function(r){var i=h[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=h.__alphaForOpacity),l.dependsOn(r,t)&&i&&i.applyVisual(e,u,c)})),a[t]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:i.noop});e.exports=u},function(e,t,n){var r=n(1),i=n(16).getLayoutRect;t.getItemAlign=function(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var a={width:t.getWidth(),height:t.getHeight()},s="horizontal"===r.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},p=0;p<3;p++)h[l[1-s][p]]=c[p],h[u[p]]=2===p?n[0]:r[u[p]];var d=[["x","width",3],["y","height",0]][s],f=i(h,a,r.padding);return u[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*a[d[1]]?0:1]},t.makeHighDownBatch=function(e,t){return r.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}},function(e,t,n){n(9).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},function(e,t,n){var r=n(9),i=n(238);n(239),n(240),n(592),n(593),n(245),r.registerPreprocessor(i)},function(e,t,n){var r,i=n(22),o="urn:schemas-microsoft-com:vml",a="undefined"==typeof window?null:window,s=!1,l=a&&a.document;if(l&&!i.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",o),r=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){r=function(e){return l.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}t.doc=l,t.createNode=function(e){return r(e)},t.initVML=function(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,c=u&&u(Object);e.exports=function e(t,n,h){if("string"!=typeof n){if(c){var p=u(n);p&&p!==c&&e(t,p,h)}var d=a(n);s&&(d=d.concat(s(n)));for(var f=0;f<d.length;++f){var m=d[f];if(!(r[m]||i[m]||h&&h[m])){var g=l(n,m);try{o(t,m,g)}catch(e){}}}return t}return t}},function(e,t){},function(e,t,n){e.exports=function(){"use strict";return[{locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}},{locale:"en-001",parentLocale:"en",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo",other:"in {0} mo"},past:{one:"{0} mo ago",other:"{0} mo ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}}}},{locale:"en-150",parentLocale:"en-001"},{locale:"en-AG",parentLocale:"en-001"},{locale:"en-AI",parentLocale:"en-001"},{locale:"en-AS",parentLocale:"en"},{locale:"en-AT",parentLocale:"en-150"},{locale:"en-AU",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr",other:"in {0} yrs"},past:{one:"{0} yr ago",other:"{0} yrs ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"h",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hrs"},past:{one:"{0} hr ago",other:"{0} hrs ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} mins"},past:{one:"{0} min. ago",other:"{0} mins ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} secs"},past:{one:"{0} sec. ago",other:"{0} secs ago"}}}}},{locale:"en-BB",parentLocale:"en-001"},{locale:"en-BE",parentLocale:"en-001"},{locale:"en-BI",parentLocale:"en"},{locale:"en-BM",parentLocale:"en-001"},{locale:"en-BS",parentLocale:"en-001"},{locale:"en-BW",parentLocale:"en-001"},{locale:"en-BZ",parentLocale:"en-001"},{locale:"en-CA",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yrs."},past:{one:"{0} yr. ago",other:"{0} yrs. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mos."},past:{one:"{0} mo. ago",other:"{0} mos. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hrs."},past:{one:"{0} hr. ago",other:"{0} hrs. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} mins."},past:{one:"{0} min. ago",other:"{0} mins. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} secs."},past:{one:"{0} sec. ago",other:"{0} secs. ago"}}}}},{locale:"en-CC",parentLocale:"en-001"},{locale:"en-CH",parentLocale:"en-150"},{locale:"en-CK",parentLocale:"en-001"},{locale:"en-CM",parentLocale:"en-001"},{locale:"en-CX",parentLocale:"en-001"},{locale:"en-CY",parentLocale:"en-001"},{locale:"en-DE",parentLocale:"en-150"},{locale:"en-DG",parentLocale:"en-001"},{locale:"en-DK",parentLocale:"en-150"},{locale:"en-DM",parentLocale:"en-001"},{locale:"en-Dsrt",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},"year-short":{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},"month-short":{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},"day-short":{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},"hour-short":{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},"minute-short":{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}},"second-short":{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}},{locale:"en-ER",parentLocale:"en-001"},{locale:"en-FI",parentLocale:"en-150"},{locale:"en-FJ",parentLocale:"en-001"},{locale:"en-FK",parentLocale:"en-001"},{locale:"en-FM",parentLocale:"en-001"},{locale:"en-GB",parentLocale:"en-001"},{locale:"en-GD",parentLocale:"en-001"},{locale:"en-GG",parentLocale:"en-001"},{locale:"en-GH",parentLocale:"en-001"},{locale:"en-GI",parentLocale:"en-001"},{locale:"en-GM",parentLocale:"en-001"},{locale:"en-GU",parentLocale:"en"},{locale:"en-GY",parentLocale:"en-001"},{locale:"en-HK",parentLocale:"en-001"},{locale:"en-IE",parentLocale:"en-001"},{locale:"en-IL",parentLocale:"en-001"},{locale:"en-IM",parentLocale:"en-001"},{locale:"en-IN",parentLocale:"en-001"},{locale:"en-IO",parentLocale:"en-001"},{locale:"en-JE",parentLocale:"en-001"},{locale:"en-JM",parentLocale:"en-001"},{locale:"en-KE",parentLocale:"en-001"},{locale:"en-KI",par
25entLocale:"en-001"},{locale:"en-KN",parentLocale:"en-001"},{locale:"en-KY",parentLocale:"en-001"},{locale:"en-LC",parentLocale:"en-001"},{locale:"en-LR",parentLocale:"en-001"},{locale:"en-LS",parentLocale:"en-001"},{locale:"en-MG",parentLocale:"en-001"},{locale:"en-MH",parentLocale:"en"},{locale:"en-MO",parentLocale:"en-001"},{locale:"en-MP",parentLocale:"en"},{locale:"en-MS",parentLocale:"en-001"},{locale:"en-MT",parentLocale:"en-001"},{locale:"en-MU",parentLocale:"en-001"},{locale:"en-MW",parentLocale:"en-001"},{locale:"en-MY",parentLocale:"en-001"},{locale:"en-NA",parentLocale:"en-001"},{locale:"en-NF",parentLocale:"en-001"},{locale:"en-NG",parentLocale:"en-001"},{locale:"en-NL",parentLocale:"en-150"},{locale:"en-NR",parentLocale:"en-001"},{locale:"en-NU",parentLocale:"en-001"},{locale:"en-NZ",parentLocale:"en-001"},{locale:"en-PG",parentLocale:"en-001"},{locale:"en-PH",parentLocale:"en-001"},{locale:"en-PK",parentLocale:"en-001"},{locale:"en-PN",parentLocale:"en-001"},{locale:"en-PR",parentLocale:"en"},{locale:"en-PW",parentLocale:"en-001"},{locale:"en-RW",parentLocale:"en-001"},{locale:"en-SB",parentLocale:"en-001"},{locale:"en-SC",parentLocale:"en-001"},{locale:"en-SD",parentLocale:"en-001"},{locale:"en-SE",parentLocale:"en-150"},{locale:"en-SG",parentLocale:"en-001",fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr",relative:{0:"this yr",1:"next yr","-1":"last yr"},relativeTime:{future:{one:"in {0} yr",other:"in {0} yr"},past:{one:"{0} yr ago",other:"{0} yr ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mth",relative:{0:"this mth",1:"next mth","-1":"last mth"},relativeTime:{future:{one:"in {0} mth",other:"in {0} mth"},past:{one:"{0} mth ago",other:"{0} mth ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr",other:"in {0} hr"},past:{one:"{0} hr ago",other:"{0} hr ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min",other:"in {0} min"},past:{one:"{0} min ago",other:"{0} min ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec",other:"in {0} sec"},past:{one:"{0} sec ago",other:"{0} sec ago"}}}}},{locale:"en-SH",parentLocale:"en-001"},{locale:"en-SI",parentLocale:"en-150"},{locale:"en-SL",parentLocale:"en-001"},{locale:"en-SS",parentLocale:"en-001"},{locale:"en-SX",parentLocale:"en-001"},{locale:"en-SZ",parentLocale:"en-001"},{locale:"en-Shaw",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},"year-short":{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{other:"+{0} y"},past:{other:"-{0} y"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},"month-short":{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{other:"+{0} m"},past:{other:"-{0} m"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},"day-short":{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{other:"+{0} d"},past:{other:"-{0} d"}}},hour:{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},"hour-short":{displayName:"Hour",relative:{0:"this hour"},relativeTime:{future:{other:"+{0} h"},past:{other:"-{0} h"}}},minute:{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},"minute-short":{displayName:"Minute",relative:{0:"this minute"},relativeTime:{future:{other:"+{0} min"},past:{other:"-{0} min"}}},second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}},"second-short":{displayName:"Second",relative:{0:"now"},relativeTime:{future:{other:"+{0} s"},past:{other:"-{0} s"}}}}},{locale:"en-TC",parentLocale:"en-001"},{locale:"en-TK",parentLocale:"en-001"},{locale:"en-TO",parentLocale:"en-001"},{locale:"en-TT",parentLocale:"en-001"},{locale:"en-TV",parentLocale:"en-001"},{locale:"en-TZ",parentLocale:"en-001"},{locale:"en-UG",parentLocale:"en-001"},{locale:"en-UM",parentLocale:"en"},{locale:"en-US",parentLocale:"en"},{locale:"en-VC",parentLocale:"en-001"},{locale:"en-VG",parentLocale:"en-001"},{locale:"en-VI",parentLocale:"en"},{locale:"en-VU",parentLocale:"en-001"},{locale:"en-WS",parentLocale:"en-001"},{locale:"en-ZA",parentLocale:"en-001"},{locale:"en-ZM",parentLocale:"en-001"},{locale:"en-ZW",parentLocale:"en-001"}]}()},function(e,t,n){e.exports=function(){"use strict";return[{locale:"es",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"},fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}},{locale:"es-419",parentLocale:"es"},{locale:"es-AR",parentLocale:"es-419",fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} días",other:"dentro de {0} días"},past:{one:"hace {0} días",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"seg.",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} seg.",other:"dentro de {0} seg."},past:{one:"hace {0} seg.",other:"hace {0} seg."}}}}},{locale:"es-BO",parentLocale:"es-419"},{locale:"es-BR",parentLocale:"es-419"},{locale:"es-BZ",parentLocale:"es-419"},{locale:"es-CL",parentLocale:"es-419"},{locale:"es-CO",parentLocale:"es-419"},{locale:"es-CR",parentLocale:"es-419"},{locale:"es-CU",parentLocale:"es-419"},{locale:"es-DO",parentLocale:"es-419",fields:{year:{displayName:"Año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"Mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"Día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"Minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"Segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}},{locale:"es-EA",parentLocale:"es"},{locale:"es-EC",parentLocale:"es-419"},{locale:"es-GQ",parentLocale:"es"},{locale:"es-GT",parentLocale:"es-419"},{locale:"es-HN",parentLocale:"es-419"},{locale:"es-IC",parentLocale:"es"},{locale:"es-MX",parentLocale:"es-419",fields:{year:{displayName:"año",relative:{0:"este año",1:"el año próximo","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"en {0} a",other:"en {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el mes próximo","-1":"el mes pasado"},relativeTime:{future:{one:"en {0} mes",other:"en {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"en {0} m",other:"en {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"en {0} día",other:"en {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"en {0} h",other:"en {0} n"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"en {0} min",other:"en {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"en {0} s",other:"en {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}},{locale:"es-NI",parentLocale:"es
25-419"},{locale:"es-PA",parentLocale:"es-419"},{locale:"es-PE",parentLocale:"es-419"},{locale:"es-PH",parentLocale:"es"},{locale:"es-PR",parentLocale:"es-419"},{locale:"es-PY",parentLocale:"es-419",fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"seg.",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} seg.",other:"dentro de {0} seg."},past:{one:"hace {0} seg.",other:"hace {0} seg."}}}}},{locale:"es-SV",parentLocale:"es-419",fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"antier","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}},{locale:"es-US",parentLocale:"es-419",fields:{year:{displayName:"año",relative:{0:"este año",1:"el año próximo","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el mes próximo","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}},{locale:"es-UY",parentLocale:"es-419"},{locale:"es-VE",parentLocale:"es-419"}]}()},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,u,c,h){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";
vendor: 5,564 bytes, line 25
25default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";var r=n(294),i=n(296);function o(){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}t.parse=_,t.resolve=function(e,t){return _(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?_(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=_(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),h=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(297);function _(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var _=e=u.join(s);if(_=_.trim(),!n&&1===e.split("#").length){var x=l.exec(_);if(x)return this.path=_,this.href=_,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var b=a.exec(_);if(b){var w=(b=b[0]).toLowerCase();this.protocol=w,_=_.substr(b.length)}if(n||b||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===_.substr(0,2);!S||b&&g[b]||(_=_.substr(2),this.slashes=!0)}if(!g[b]&&(S||b&&!y[b])){for(var k,T,M=-1,E=0;E<p.length;E++){-1!==(C=_.indexOf(p[E]))&&(-1===M||C<M)&&(M=C)}-1!==(T=-1===M?_.lastIndexOf("@"):_.lastIndexOf("@",M))&&(k=_.slice(0,T),_=_.slice(T+1),this.auth=decodeURIComponent(k)),M=-1;for(E=0;E<h.length;E++){var C;-1!==(C=_.indexOf(h[E]))&&(-1===M||C<M)&&(M=C)}-1===M&&(M=_.length),this.host=_.slice(0,M),_=_.slice(M),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var A=this.hostname.split(/\./),P=(E=0,A.length);E<P;E++){var D=A[E];if(D&&!D.match(d)){for(var L="",O=0,R=D.length;O<R;O++)D.charCodeAt(O)>127?L+="x":L+=D[O];if(!L.match(d)){var z=A.slice(0,E),N=A.slice(E+1),B=D.match(f);B&&(z.push(B[1]),N.unshift(B[2])),N.length&&(_="/"+N.join(".")+_),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+F,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!m[w])for(E=0,P=c.length;E<P;E++){var j=c[E];if(-1!==_.indexOf(j)){var U=encodeURIComponent(j);U===j&&(U=escape(j)),_=_.split(j).join(U)}}var G=_.indexOf("#");-1!==G&&(this.hash=_.substr(G),_=_.slice(0,G));var q=_.indexOf("?");if(-1!==q?(this.search=_.substr(q),this.query=_.substr(q+1),t&&(this.query=v.parse(this.query)),_=_.slice(0,q)):t&&(this.search="",this.query={}),_&&(this.pathname=_),y[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var H=this.search||"";this.path=F+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";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&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=e[c])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var h=Object.keys(e),p=0;p<h.length;
25p++){var d=h[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var _=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=x||_||n.host&&e.pathname,w=b,S=n.pathname&&n.pathname.split("/")||[],k=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(k&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),b=b&&(""===f[0]||""===S[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=f;else if(f.length)S||(S=[]),S.pop(),S=S.concat(f),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(k)n.hostname=n.host=S.shift(),(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=S.slice(-1)[0],M=(n.host||e.host||S.length>1)&&("."===T||".."===T)||""===T,E=0,C=S.length;C>=0;C--)"."===(T=S[C])?S.splice(C,1):".."===T?(S.splice(C,1),E++):E&&(S.splice(C,1),E--);if(!b&&!w)for(;E--;E)S.unshift("..");!b||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),M&&"/"!==S.join("/").substr(-1)&&S.push("");var I,A=""===S[0]||S[0]&&"/"===S[0].charAt(0);k&&(n.hostname=n.host=A?"":S.length?S.shift():"",(I=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=I.shift(),n.host=n.hostname=I.shift()));return(b=b||n.host&&S.length)&&!A&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.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)}},function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(8)},function(e,t,n){e.exports=n(6)()},function(e,t){e.exports=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(2)),u=r(n(1)),c=r(n(5)),h=r(n(3)),p=function(e){function t(){var e,n,r;i(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.state={isSdkLoaded:!1,isProcessing:!1},r.responseApi=function(e){window.FB.api("/me",{locale:r.props.language,fields:r.props.fields},(function(t){a(t,e),r.props.callback(t)}))},r.checkLoginState=function(e){r.setStateIfMounted({isProcessing:!1}),e.authResponse?r.responseApi(e.authResponse):r.props.onFailure?r.props.onFailure({status:e.status}):r.props.callback({status:e.status})},r.checkLoginAfterRefresh=function(e){"connected"===e.status?r.checkLoginState(e):window.FB.login((function(e){return r.checkLoginState(e)}),!0)},r.click=function(e){if(r.state.isSdkLoaded&&!r.state.isProcessing&&!r.props.isDisabled){r.setState({isProcessing:!0});var t=r.props,n=t.scope,i=t.appId,o=t.onClick,a=t.returnScopes,s=t.responseType,l=t.redirectUri,u=t.disableMobileRedirect,h=t.authType,p=t.state;if("function"!=typeof o||(o(e),!e.defaultPrevented)){var d={client_id:i,redirect_uri:l,state:p,return_scopes:a,scope:n,response_type:s,auth_type:h};if(r.props.isMobile&&!u)window.location.href="https://www.facebook.com/dialog/oauth"+(0,c.default)(d);else{if(!window.FB)return void(r.props.onFailure&&r.props.onFailure({status:"facebookNotLoaded"}));window.FB.login(r.checkLoginState,{scope:n,return_scopes:a,auth_type:d.auth_type})}}}},o(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
25(t,e),s(t,[{key:"componentDidMount",value:function(){if(this._isMounted=!0,document.getElementById("facebook-jssdk"))this.sdkLoaded();else{this.setFbAsyncInit(),this.loadSdkAsynchronously();var e=document.getElementById("fb-root");e||((e=document.createElement("div")).id="fb-root",document.body.appendChild(e))}}},{key:"componentWillReceiveProps",value:function(e){this.state.isSdkLoaded&&e.autoLoad&&!this.props.autoLoad&&window.FB.getLoginStatus(this.checkLoginAfterRefresh)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"setStateIfMounted",value:function(e){this._isMounted&&this.setState(e)}},{key:"setFbAsyncInit",value:function(){var e=this,t=this.props,n=t.appId,r=t.xfbml,i=t.cookie,o=t.version,a=t.autoLoad;window.fbAsyncInit=function(){window.FB.init({version:"v"+o,appId:n,xfbml:r,cookie:i}),e.setStateIfMounted({isSdkLoaded:!0}),(a||e.isRedirectedFromFb())&&window.FB.getLoginStatus(e.checkLoginAfterRefresh)}}},{key:"isRedirectedFromFb",value:function(){var e=window.location.search;return(0,h.default)(e,"code")||(0,h.default)(e,"granted_scopes")}},{key:"sdkLoaded",value:function(){this.setState({isSdkLoaded:!0})}},{key:"loadSdkAsynchronously",value:function(){var e=this.props.language;!function(t,n,r){var i=t.getElementsByTagName(n)[0],o=i,a=i;t.getElementById(r)||((a=t.createElement(n)).id=r,a.src="https://connect.facebook.net/"+e+"/sdk.js",o.parentNode.insertBefore(a,o))}(document,"script","facebook-jssdk")}},{key:"render",value:function(){var e=this.props.render;if(!e)throw new Error("ReactFacebookLogin requires a render prop to render");var t={onClick:this.click,isDisabled:!!this.props.isDisabled,isProcessing:this.state.isProcessing,isSdkLoaded:this.state.isSdkLoaded};return this.props.render(t)}}]),t}(l.default.Component);p.propTypes={isDisabled:u.default.bool,callback:u.default.func.isRequired,appId:u.default.string.isRequired,xfbml:u.default.bool,cookie:u.default.bool,authType:u.default.string,scope:u.default.string,state:u.default.string,responseType:u.default.string,returnScopes:u.default.bool,redirectUri:u.default.string,autoLoad:u.default.bool,disableMobileRedirect:u.default.bool,isMobile:u.default.bool,fields:u.default.string,version:u.default.string,language:u.default.string,onClick:u.default.func,onFailure:u.default.func,render:u.default.func.isRequired},p.defaultProps={redirectUri:"undefined"!=typeof window?window.location.href:"/",scope:"public_profile,email",returnScopes:!1,xfbml:!1,cookie:!1,authType:"",fields:"name",version:"2.3",language:"en_US",disableMobileRedirect:!1,isMobile:function(){var e=!1;try{e=!!(window.navigator&&window.navigator.standalone||navigator.userAgent.match("CriOS")||navigator.userAgent.match(/mobile/i))}catch(e){}return e}(),onFailure:null,state:"facebookdirect",responseType:"code"},t.default=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}},function(e,t,n){"use strict";function r(){}var i=n(7);e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(2)),u=r(n(1)),c=r(n(9)),h=r(n(4)),p=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"style",value:function(){var e=this.constructor.defaultProps.cssClass;return this.props.cssClass===e&&l.default.createElement("style",{dangerouslySetInnerHTML:{__html:c.default}})}},{key:"containerStyle",value:function(e){var t=e.isProcessing,n=e.isSdkLoaded,r=e.isDisabled,i={transition:"opacity 0.5s"};return(t||!n||r)&&(i.opacity=.6),a(i,this.props.containerStyle)}},{key:"renderOwnButton",value:function(e){var t=this.props,n=t.cssClass,r=t.size,i=t.icon,o=t.textButton,s=t.typeButton,u=t.buttonStyle,c=e.onClick,h="str
25ing"==typeof i,p={};return e.isDisabled&&function(e){return["button","input","select","textarea","optgroup","option","fieldset"].indexOf((e+"").toLowerCase())>=0}(this.props.tag)&&(p.disabled=!0),l.default.createElement("span",{style:this.containerStyle(e)},h&&l.default.createElement("link",{rel:"stylesheet",href:"https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"}),l.default.createElement(this.props.tag,a({type:s,className:n+" "+r,style:u,onClick:c},p),i&&h&&l.default.createElement("i",{className:"fa "+i}),i&&!h&&i,o),this.style())}},{key:"render",value:function(){var e=this;return l.default.createElement(h.default,a({},this.props,{render:function(t){return e.renderOwnButton(t)}}))}}]),t}(l.default.Component);p.propTypes={textButton:u.default.string,typeButton:u.default.string,size:u.default.string,cssClass:u.default.string,icon:u.default.any,containerStyle:u.default.object,buttonStyle:u.default.object,tag:u.default.oneOfType([u.default.node,u.default.func])},p.defaultProps={textButton:"Login with Facebook",typeButton:"button",size:"metro",fields:"name",cssClass:"kep-login-facebook",tag:"button"},t.default=p},function(e,t,n){(t=e.exports=n(10)()).push([e.id,".kep-login-facebook{font-family:Helvetica,sans-serif;font-weight:700;-webkit-font-smoothing:antialiased;color:#fff;cursor:pointer;display:inline-block;font-size:calc(.27548vw + 12.71074px);text-decoration:none;text-transform:uppercase;transition:background-color .3s,border-color .3s;background-color:#4c69ba;border:calc(.06887vw + .67769px) solid #4c69ba;padding:calc(.34435vw + 13.38843px) calc(.34435vw + 18.38843px)}.kep-login-facebook.small{padding:calc(.34435vw + 3.38843px) calc(.34435vw + 8.38843px)}.kep-login-facebook.medium{padding:calc(.34435vw + 8.38843px) calc(.34435vw + 13.38843px)}.kep-login-facebook.metro{border-radius:0}.kep-login-facebook .fa{margin-right:calc(.34435vw + 3.38843px)}",""]),t.locals={"kep-login-facebook":"kep-login-facebook",small:"small",medium:"medium",metro:"metro",fa:"fa"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}}]))},function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){return r={},t.m=n=[function(t){t.exports=e},function(e,t,n){e.exports=n(2)()},function(e,t,n){"use strict";function r(){}function i(){}var o=n(3);i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n}},function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}
25(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){null!=t&&t<=e.length||(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n,r,i,o){var a=e.getElementsByTagName(t)[0],s=a,l=a;(l=e.createElement(t)).id=n,l.src=r,s&&s.parentNode?s.parentNode.insertBefore(l,s):e.head.appendChild(l),l.onerror=o,l.onload=i}function p(e,t){var n=e.getElementById(t);n&&n.parentNode.removeChild(n)}function d(e){return y.a.createElement("span",{style:{paddingRight:10,fontWeight:500,paddingLeft:e.icon?0:10,paddingTop:10,paddingBottom:10}},e.children)}function f(e){return y.a.createElement("div",{style:{marginRight:10,background:e.active?"#eee":"#fff",padding:10,borderRadius:2}},y.a.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},y.a.createElement("g",{fill:"#000",fillRule:"evenodd"},y.a.createElement("path",{d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",fill:"#EA4335"}),y.a.createElement("path",{d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",fill:"#4285F4"}),y.a.createElement("path",{d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",fill:"#FBBC05"}),y.a.createElement("path",{d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",fill:"#34A853"}),y.a.createElement("path",{fill:"none",d:"M0 0h18v18H0z"}))))}function m(e){var t=o(Object(g.useState)(!1),2),n=t[0],r=t[1],i=o(Object(g.useState)(!1),2),a=i[0],s=i[1],l=e.tag,u=e.type,c=e.className,h=e.disabledStyle,p=e.buttonText,m=e.children,_=e.render,x=e.theme,b=e.icon,w=e.disabled,S=v({onSuccess:e.onSuccess,onAutoLoadFinished:e.onAutoLoadFinished,onRequest:e.onRequest,onFailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,autoLoad:e.autoLoad,isSignedIn:e.isSignedIn,fetchBasicProfile:e.fetchBasicProfile,redirectUri:e.redirectUri,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,scope:e.scope,accessType:e.accessType,responseType:e.responseType,jsSrc:e.jsSrc,prompt:e.prompt}),k=S.signIn,T=w||!S.loaded;if(_)return _({onClick:k,disabled:T});var M={backgroundColor:"dark"===x?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===x?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},E={cursor:"pointer",backgroundColor:"dark"===x?"#3367D6":"#eee",color:"dark"===x?"#fff":"rgba(0, 0, 0, .54)",opacity:1},C=T?Object.assign({},M,h):a?Object.assign({},M,E):n?Object.assign({},M,{cursor:"pointer",opacity:.9}):M;return y.a.createElement(l,{onMouseEnter:function(){return r(!0)},onMouseLeave:function(){r(!1),s(!1)},onMouseDown:function(){return s(!0)},onMouseUp:function(){return s(!1)},onClick:k,style:C,type:u,disabled:T,className:c},[b&&y.a.createElement(f,{key:1,active:a}),y.a.createElement(d,{icon:b,key:2},m||p)])}n.r(t),n.d(t,"default",(function(){return x})),n.d(t,"GoogleLogin",(function(){return x})),n.d(t,"GoogleLogout",(function(){return w})),n.d(t,"useGoogleLogin",(function(){return v})),n.d(t,"useGoogleLogout",(function(){return b}));var g=n(0),y=n.n(g),v=(n(1),function(e){function t(e){var t=e.getBasicProfile(),n=e.getAuthResponse(!0);e.googleId=t.getId(),e.tokenObj=n,e.tokenId=n.id_token,e.accessToken=n.access_token,e.profileObj={googleId:t.getId(),imageUrl:t.getImageUrl(),email:t.getEmail(),name:t.getName(),givenName:t.getGivenName(),familyName:t.getFamilyName()},o(e)}function n(e){if(e&&e.preventDefault(),L){var n=window.gapi.auth2.getAuthInstance(),r={prompt:P};d(),"code"===C?n.grantOfflineAccess(r).then((function(e){return o(e)}),(function(e){return u(e)})):n.signIn(r).then((function(e){return t(e)}),(function(e){return u(e)}))}}var i=e.onSuccess,o=void 0===i?function(){}:i,a=e.onAutoLoadFinished,s=void 0===a?function(){}:a,l=e.onFailure,u=void 0===l?function(){}:l,c=e.onRequest,d=void 0===c?function(){}:c,f=e.onScriptLoadFailure,m=e.clientId,y=e.cookiePolicy,v=e.loginHint,_=e.hostedDomain,x=e.autoLoad,b=e.isSignedIn,w=e.fetchBasicProfile,S=e.redirectUri,
25k=e.discoveryDocs,T=e.uxMode,M=e.scope,E=e.accessType,C=e.responseType,I=e.jsSrc,A=void 0===I?"https://apis.google.com/js/api.js":I,P=e.prompt,D=r(Object(g.useState)(!1),2),L=D[0],O=D[1];return Object(g.useEffect)((function(){var e=!1,n=f||u;return h(document,"script","google-login",A,(function(){var r={client_id:m,cookie_policy:y,login_hint:v,hosted_domain:_,fetch_basic_profile:w,discoveryDocs:k,ux_mode:T,redirect_uri:S,scope:M,access_type:E};"code"===C&&(r.access_type="offline"),window.gapi.load("auth2",(function(){var i=window.gapi.auth2.getAuthInstance();i?i.then((function(){e||(b&&i.isSignedIn.get()?(O(!0),s(!0),t(i.currentUser.get())):(O(!0),s(!1)))}),(function(e){u(e)})):window.gapi.auth2.init(r).then((function(n){if(!e){O(!0);var r=b&&n.isSignedIn.get();s(r),r&&t(n.currentUser.get())}}),(function(e){O(!0),s(!1),n(e)}))}))}),(function(e){n(e)})),function(){e=!0,p(document,"google-login")}}),[]),Object(g.useEffect)((function(){x&&n()}),[L]),{signIn:n,loaded:L}});function _(e){var t=u(Object(g.useState)(!1),2),n=t[0],r=t[1],i=u(Object(g.useState)(!1),2),o=i[0],a=i[1],s=e.tag,l=e.type,c=e.className,h=e.disabledStyle,p=e.buttonText,m=e.children,v=e.render,_=e.theme,x=e.icon,w=e.disabled,S=b({jsSrc:e.jsSrc,onF
25ailure:e.onFailure,onScriptLoadFailure:e.onScriptLoadFailure,clientId:e.clientId,cookiePolicy:e.cookiePolicy,loginHint:e.loginHint,hostedDomain:e.hostedDomain,fetchBasicProfile:e.fetchBasicProfile,discoveryDocs:e.discoveryDocs,uxMode:e.uxMode,redirectUri:e.redirectUri,scope:e.scope,accessType:e.accessType,onLogoutSuccess:e.onLogoutSuccess}),k=S.signOut,T=w||!S.loaded;if(v)return v({onClick:k,disabled:T});var M={backgroundColor:"dark"===_?"rgb(66, 133, 244)":"#fff",display:"inline-flex",alignItems:"center",color:"dark"===_?"#fff":"rgba(0, 0, 0, .54)",boxShadow:"0 2px 2px 0 rgba(0, 0, 0, .24), 0 0 1px 0 rgba(0, 0, 0, .24)",padding:0,borderRadius:2,border:"1px solid transparent",fontSize:14,fontWeight:"500",fontFamily:"Roboto, sans-serif"},E={cursor:"pointer",backgroundColor:"dark"===_?"#3367D6":"#eee",color:"dark"===_?"#fff":"rgba(0, 0, 0, .54)",opacity:1},C=T?Object.assign({},M,h):o?Object.assign({},M,E):n?Object.assign({},M,{cursor:"pointer",opacity:.9}):M;return y.a.createElement(s,{onMouseEnter:function(){return r(!0)},onMouseLeave:function(){r(!1),a(!1)},onMouseDown:function(){return a(!0)},onMouseUp:function(){return a(!1)},onClick:k,style:C,type:l,disabled:T,className:c},[x&&y.a.createElement(f,{key:1,active:o}),y.a.createElement(d,{icon:x,key:2},m||p)])}m.defaultProps={type:"button",tag:"button",buttonText:"Sign in with Google",scope:"profile email",accessType:"online",prompt:"",cookiePolicy:"single_host_origin",fetchBasicProfile:!0,isSignedIn:!1,uxMode:"popup",disabledStyle:{opacity:.6},icon:!0,theme:"light",onRequest:function(){}};var x=m,b=function(e){var t=e.jsSrc,n=void 0===t?"https://apis.google.com/js/api.js":t,r=e.onFailure,i=e.onScriptLoadFailure,o=e.clientId,a=e.cookiePolicy,l=e.loginHint,u=e.hostedDomain,c=e.fetchBasicProfile,d=e.discoveryDocs,f=e.uxMode,m=e.redirectUri,y=e.scope,v=e.accessType,_=e.onLogoutSuccess,x=s(Object(g.useState)(!1),2),b=x[0],w=x[1],S=Object(g.useCallback)((function(){if(window.gapi){var e=window.gapi.auth2.getAuthInstance();null!=e&&e.then((function(){e.signOut().then((function(){e.disconnect(),_()}))}),(function(e){return r(e)}))}}),[_]);return Object(g.useEffect)((function(){var e=i||r;return h(document,"script","google-login",n,(function(){var t={client_id:o,cookie_policy:a,login_hint:l,hosted_domain:u,fetch_basic_profile:c,discoveryDocs:d,ux_mode:f,redirect_uri:m,scope:y,access_type:v};window.gapi.load("auth2",(function(){window.gapi.auth2.getAuthInstance()?w(!0):window.gapi.auth2.init(t).then((function(){return w(!0)}),(function(t){return e(t)}))}))}),(function(t){e(t)})),function(){p(document,"google-login")}}),[]),{signOut:S,loaded:b}};_.defaultProps={type:"button",tag:"button",buttonText:"Logout of Google",disabledStyle:{opacity:.6},icon:!0,theme:"light",jsSrc:"https://apis.google.com/js/api.js"};var w=_}],t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4);function t(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,r}(n(0))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
25ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function i(e){return"Undefined"===r(e)}function o(e){return"Null"===r(e)}function a(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function s(e){return"Array"===r(e)}function l(e){return"Symbol"===r(e)}var u,c,h,p,d;u=o,c=i;
26/*! *****************************************************************************
27Copyright (c) Microsoft Corporation. All rights reserved.
28Licensed under the Apache License, Version 2.0 (the "License"); you may not use
29this file except in compliance with the License. You may obtain a copy of the
30License at http://www.apache.org/licenses/LICENSE-2.0
31
32THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
33KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
34WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
35MERCHANTABLITY OR NON-INFRINGEMENT.
36
37See the Apache Version 2.0 License for specific language governing permissions
38and limitations under the License.
39***************************************************************************** */
40function f(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function m(e,t,n,r){var i=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function g(e,t,n){if(!a(t))return n&&s(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};a(e)&&(r=f(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){var i=e[r];return(!l(r)&&!Object.getOwnPropertyNames(t).includes(r)||l(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&m(n,r,i,e),n}),{}));return f(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(r,i){var o=t[i],l=a(e)?e[i]:void 0;return n&&s(n)&&n.forEach((function(e){o=e(l,o)})),void 0!==l&&a(o)&&(o=g(l,o,n)),m(r,i,o,t),r}),r)}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,i=e;return a(e)&&e.extensions&&1===Object.keys(e).length&&(i={},r=e.extensions),t.reduce((function(e,t){return g(e,t,r)}),i)}},function(e,t,n){e.exports=n(606)},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof c?t:c,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function h(){}function p(){}var d={};d[i]=function(){return this};var f=Object.getPrototypeOf,m=f&&f(f(S([])));m&&m!==t&&n.call(m,i)&&(d=m);var g=p.prototype=c.prototype=Object.create(d);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function v(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,a){var s=l(e[r],e,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);
vendor: 6,493 bytes, lines 40-48
40if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,p[a]=h.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},y(v.prototype),v.prototype[o]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,i){var o=new v(s(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(g),g[a]="Generator",g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),b(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;b(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";
41/** @license React v16.14.0
42 * react.production.min.js
43 *
44 * Copyright (c) Facebook, Inc. and its affiliates.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE file in the root directory of this source tree.
48 */var r=n(157),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,h=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function x(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||v}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||v}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=x.prototype;var S=w.prototype=new b;S.constructor=w,r(S,x.prototype),S.isPureReactComponent=!0;var k={current:null},T=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:k.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g,A=[];function P(e,t,n,r){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function L(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+O(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;u<t.length;u++){var c=n+O(s=t[u],u);
vendor: 31,301 bytes, lines 48-56
48l+=e(s,c,r,i)}else if(null===t||"object"!=typeof t?c=null:c="function"==typeof(c=g&&t[g]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),u=0;!(s=t.next()).done;)l+=e(s=s.value,c=n+O(s,u++),r,i);else if("object"===s)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?N(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function N(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(I,"$&/")+"/"),L(e,z,t=P(t,o,r,i)),D(t)}var B={current:null};function F(){var e=B.current;if(null===e)throw Error(y(321));return e}var V={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return N(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;L(e,R,t=P(null,null,t,n)),D(t)},count:function(e){return L(e,(function(){return null}),null)},toArray:function(e){var t=[];return N(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(y(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=u,t.PureComponent=w,t.StrictMode=l,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)T.call(t,c)&&!M.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var h=0;h<c;h++)u[h]=arguments[h+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:h,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";
49/** @license React v16.14.0
50 * react-dom.production.min.js
51 *
52 * Copyright (c) Facebook, Inc. and its affiliates.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE file in the root directory of this source tree.
56 */var r=n(0),i=n(157),o=n(264);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var l=!1,u=null,c=!1,h=null,p={onError:function(e){l=!0,u=e}};function d(e,t,n,r,i,o,a,c,h){l=!1,u=null,s.apply(p,arguments)}var f=null,m=null,g=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,i,o,s,p,f){if(d.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,h=m)}}(r,t,void 0,e),e.currentTarget=null}var v=null,_={};function x(){if(v)for(var e in _){var t=_[e],n=v.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!w[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in w[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(S.hasOwnProperty(l))throw Error(a(99,l));S[l]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&b(u[i],s,l);i=!0}else o.registrationName?(b(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function b(e,t,n){if(k[e])throw Error(a(100,e));k[e]=t,T[e]=t.eventTypes[n].dependencies}var w=[],S={},k={},T={};function M(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!_.hasOwnProperty(t)||_[t]!==r){if(_[t])throw Error(a(102,t));_[t]=r,n=!0}}n&&x()}var E=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),C=null,I=null,A=null;function P(e){if(e=m(e)){if("function"!=typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=f(t),C(e.stateNode,e.type,t))}}function D(e){I?A?A.push(e):A=[e]:I=e}function L(){if(I){var e=I,t=A;if(A=I=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function O(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function z(){}var N=O,B=!1,F=!1;function V(){null===I&&null===A||(z(),L())}function j(e,t,n){if(F)return e(t,n);F=!0;try{return N(e,t,n)}finally{F=!1,V()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,G=Object.prototype.hasOwnProperty,q={},H={};function W(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Z[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Z[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Z[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Z[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Z[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Z[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Z[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Z[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Z[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,X);Z[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,X);Z[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,X);Z[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Z[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),Z.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Z[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(e,t,n,r){var i=Z.hasOwnProperty(t)?Z[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!G.call(H,e)||!G.call(q,e)&&(U.test(e)?H[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,ne=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,le=Q?Symbol.for("react.forward_ref"):60112,ue=Q?Symbol.for("react.suspense"):60113,ce=Q?Symbol.for("react.suspense_list"):60120,he=Q?Symbol.for("react.memo"):60115,pe=Q?Symbol.for("react.lazy"):60116,de=Q?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case he:return ge(e.type);case de:return ge(e.render);case pe:if(e=1===e._status?e._result:null)return ge(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ge(e.type);n=null,r&&(n=ge(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _e(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=_e(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_e(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&$(e,"checked",t,!1)}function Te(e,t){ke(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ee(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Me(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ee(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ie(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function De(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Oe="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Be,Fe=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Be=Be||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function je(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:je("Animation","AnimationEnd"),animationiteration:je("Animation","AnimationIteration"),animationstart:je("Animation","AnimationStart"),transitionend:je("Transition","TransitionEnd")},Ge={},qe={};function He(e){if(Ge[e])return Ge[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return Ge[e]=n[t];return e}E&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var We=He("animationend"),Ze=He("animationiteration"),Ye=He("animationstart"),Xe=He("transitionend"),Ke="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$e=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=$e.get(e);return void 0===t&&(t=new Map,$e.set(e,t)),t}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Qe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=h,c=!1,h=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!E)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ht(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function pt(e,t,n,r){if(ct.length){var i=ct.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=En(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<w.length;l++){var u=w[l];u&&(u=u.extractEvents(r,t,o,i,a))&&(s=rt(s,u))}st(s)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ke.indexOf(e)&&Zt(e,t)}n.set(e,null)}}var mt,gt,yt,vt=!1,_t=[],xt=null,bt=null,wt=null,St=new Map,kt=new Map,Tt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Et="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function It(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function At(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&(null!==(t=Cn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=En(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Cn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function Lt(e,t,n){Dt(e)&&n.delete(t)}function Ot(){for(vt=!1;0<_t.length;){var e=_t[0];if(null!==e.blockedOn){null!==(e=Cn(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:_t.shift()}null!==xt&&Dt(xt)&&(xt=null),null!==bt&&Dt(bt)&&(bt=null),null!==wt&&Dt(wt)&&(wt=null),St.forEach(Lt),kt.forEach(Lt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,vt||(vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ot)))}function zt(e){function t(t){return Rt(t,e)}if(0<_t.length){Rt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&Rt(xt,e),null!==bt&&Rt(bt,e),null!==wt&&Rt(wt,e),St.forEach(t),kt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Pt(n),null===n.blockedOn&&Tt.shift()}var Nt={},Bt=new Map,Ft=new Map,Vt=["abort","abort",We,"animationEnd",Ze,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Xe,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Bt.set(r,o),Nt[i]=o}}jt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Vt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Gt=0;Gt<Ut.length;Gt++)Ft.set(Ut[Gt],0);var qt=o.unstable_UserBlockingPriority,Ht=o.unstable_runWithPriority,Wt=!0;function Zt(e,t){Yt(t,e,!1)}function Yt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Xt.bind(null,t,1,e);break;case 1:r=Kt.bind(null,t,1,e);break;default:r=$t.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Xt(e,t,n,r){B||z();var i=$t,o=B;B=!0;try{R(i,e,t,n,r)}finally{(B=o)||V()}}function Kt(e,t,n,r){Ht(qt,$t.bind(null,e,t,n,r))}function $t(e,t,n,r){if(Wt)if(0<_t.length&&-1<Mt.indexOf(e))e=Ct(null,e,t,n,r),_t.push(e);else{var i=Jt(e,t,n,r);if(null===i)It(e,r);else if(-1<Mt.indexOf(e))e=Ct(i,e,t,n,r),_t.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return xt=At(xt,e,t,n,r,i),!0;case"dragenter":return bt=At(bt,e,t,n,r,i),!0;case"mouseover":return wt=At(wt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return St.set(o,At(St.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kt.set(o,At(kt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){It(e,r),e=pt(e,r,null,t);try{j(dt,e)}finally{ht(e)}}}}function Jt(e,t,n,r){if(null!==(n=En(n=lt(r)))){var i=Qe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=pt(e,r,n,t);try{j(dt,e)}finally{ht(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Oe;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function un(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=hn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hn(r)}}function dn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,gn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function bn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function wn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+Sn,Tn="__reactEventHandlers$"+Sn,Mn="__reactContainere$"+Sn;function En(e){var t=e[kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mn]||n[kn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=wn(e);
vendor: 3,887 bytes, line 56
56null!==e;){if(n=e[kn])return n;e=wn(e)}return t}n=(e=n).parentNode}return null}function Cn(e){return!(e=e[kn]||e[Mn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[Tn]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var r=f(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function On(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function zn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function Nn(e){it(e,On)}var Bn=null,Fn=null,Vn=null;function jn(){if(Vn)return Vn;var e,t,n=Fn,r=n.length,i="value"in Bn?Bn.value:Bn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Vn=i.slice(e,1<t?1-t:void 0)}function Un(){return!0}function Gn(){return!1}function qn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Un:Gn,this.isPropagationStopped=Gn,this}function Hn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Wn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Hn,e.release=Wn}i(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){this.isPersistent=Un},isPersistent:Gn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Gn,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Zn(n),n},Zn(qn);var Yn=qn.extend({data:null}),Xn=qn.extend({data:null}),Kn=[9,13,27,32],$n=E&&"CompositionEvent"in window,Jn=null;E&&"documentMode"in document&&(Jn=document.documentMode);var Qn=E&&"TextEvent"in window&&!Jn,er=E&&(!$n||Jn&&8<Jn&&11>
vendor: 9,384 bytes, line 56
56=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if($n)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=jn()):(Fn="value"in(Bn=r)?Bn.value:Bn.textContent,ar=!0)),o=Yn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Nn(o),i=o):i=null,(e=Qn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!$n&&ir(e,t)?(e=jn(),Vn=Fn=Bn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Xn.getPooled(nr.beforeInput,t,n,r)).data=e,Nn(t)):t=null,null===i?t:null===t?i:[i,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hr(e,t,n){return(e=qn.getPooled(cr.change,e,t,n)).type="change",D(n),Nn(e),e}var pr=null,dr=null;function fr(e){st(e)}function mr(e){if(be(In(e)))return e}function gr(e,t){if("change"===e)return t}var yr=!1;function vr(){pr&&(pr.detachEvent("onpropertychange",_r),dr=pr=null)}function _r(e){if("value"===e.propertyName&&mr(dr))if(e=hr(dr,e,lt(e)),B)st(e);else{B=!0;try{O(fr,e)}finally{B=!1,V()}}}function xr(e,t,n){"focus"===e?(vr(),dr=n,(pr=t).attachEvent("onpropertychange",_r)):"blur"===e&&vr()}function br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(dr)}function wr(e,t){if("click"===e)return mr(t)}function Sr(e,t){if("input"===e||"change"===e)return mr(t)}E&&(yr=ut("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:cr,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var i=t?In(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=gr;else if(ur(i))if(yr)a=Sr;else{a=br;var s=xr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=wr);if(a&&(a=a(e,t)))return hr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ee(i,"number",i.value)}},Tr=qn.extend({view:null,detail:null}),Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function Cr(){return Er}var Ir=0,Ar=0,Pr=!1,Dr=!1,Lr=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ir;return Ir=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ar;return Ar=e.screenY,Dr?"mousemove"===e.type?e.screenY-t:0:(Dr=!0,0)}}),Or=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},zr={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?En(t):null)&&(t!==Qe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Lr,l=Rr.mouseLeave,u=Rr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Or,l=Rr.pointerLeave,u=Rr.pointerEnter,c="pointer");if(e=null==a?o:In(a),o=null==t?o:In(t),(l=s.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(u,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(u=c,a=0,e=s=r;e;e=Pn(e))a++;for(e=0,t=u;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)u=Pn(u),e--;for(;a--;){if(s===u||s===u.alternate)break e;s=Pn(s),u=Pn(u)}s=null}else s=null;for(u=s,s=[];r&&r!==u&&(null===(a=r.alternate)||a!==u);)s.push(r),r=Pn(r);for(r=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)r.push(c),c=Pn(c);for(c=0;c<s.length;c++)Rn(s[c],"bubbled",l);for(c=r.length;0<c--;)Rn(r[c],"captured",n);return 0==(64&i)?[l]:[l,n]}};var Nr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Br=Object.prototype.hasOwnProperty;function Fr(e,t){if(Nr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Br.call(t,n[r])||!Nr(e[n[r]],t[n[r]]))return!1;return!0}var Vr=E&&"documentMode"in document&&11>=document.documentMode,jr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ur=null,Gr=null,qr=null,Hr=!1;function Wr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Hr||null==Ur||Ur!==cn(n)?null:("selectionStart"in(n=Ur)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&Fr(qr,n)?null:(qr=n,(e=qn.getPooled(jr.select,Gr,e,t)).type="select",e.target=Ur,Nn(e),e))}var Zr={eventTypes:jr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),o=T.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?In(t):window,e){case"focus":(ur(i)||"true"===i.contentEditable)&&(Ur=i,Gr=t,qr=null);break;case"blur":qr=Gr=Ur=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Wr(n,r);case"selectionchange":if(Vr)break;case"keydown":case"keyup":return Wr(n,r)}return null}},Yr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kr=Tr.extend({relatedTarget:null});function $r(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Tr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$r(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
56yup"===e.type?Qr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cr,charCode:function(e){return"keypress"===e.type?$r(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$r(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Lr.extend({dataTransfer:null}),ni=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cr}),ri=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Nt,extractEvents:function(e,t,n,r){var i=Bt.get(e);if(!i)return null;switch(e){case"keypress":if(0===$r(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Kr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case We:case Ze:case Ye:e=Yr;break;case Xe:e=ri;break;case"scroll":e=Tr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Xr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Or;break;default:e=qn}return Nn(t=e.getPooled(i,t,n,r)),t}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),f=An,m=Cn,g=In,M({SimpleEventPlugin:oi,EnterLeaveEventPlugin:zr,ChangeEventPlugin:kr,SelectEventPlugin:Zr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function li(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ui(e,t){si++,ai[si]=e.current,e.current=t}var ci={},hi={current:ci},pi={current:!1},di=ci;function fi(e,t){var n=e.type.contextTypes;if(!n)return ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=(e=e.childContextTypes)}function gi(){li(pi),li(hi)}function yi(e,t,n){if(hi.current!==ci)throw Error(a(168));ui(hi,t),ui(pi,n)}function vi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ge(t)||"Unknown",o));return i({},n,{},r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,di=hi.current,ui(hi,e),ui(pi,pi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,li(pi),li(hi),ui(hi,e)):li(pi),ui(pi,n)}var bi=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,ki=o.unstable_requestPaint,Ti=o.unstable_now,Mi=o.unstable_getCurrentPriorityLevel,Ei=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Ai=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Di={},Li=o.unstable_shouldYield,Oi=void 0!==ki?ki:function(){},Ri=null,zi=null,Ni=!1,Bi=Ti(),Fi=1e4>Bi?Ti:function(){return Ti()-Bi};function Vi(){switch(Mi()){case Ei:return 99;case Ci:return 98;case Ii:return 97;case Ai:return 96;case Pi:return 95;default:throw Error(a(332))}}function ji(e){switch(e){case 99:return Ei;case 98:return Ci;case 97:return Ii;case 96:return Ai;case 95:return Pi;default:throw Error(a(332))}}function Ui(e,t){return e=ji(e),bi(e,t)}function Gi(e,t,n){return e=ji(e),wi(e,t,n)}function qi(e){return null===Ri?(Ri=[e],zi=wi(Ei,Wi)):Ri.push(e),Di}function Hi(){if(null!==zi){var e=zi;zi=null,Si(e)}Wi()}function Wi(){if(!Ni&&null!==Ri){Ni=!0;var e=0;try{var t=Ri;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),wi(Ei,Hi),t}finally{Ni=!1}}}function Zi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Xi={current:null},Ki=null,$i=null,Ji=null;function Qi(){Ji=$i=Ki=null}function eo(e){var t=Xi.current;li(Xi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}
vendor: 76,169 bytes, lines 56-64
56function no(e,t){Ki=e,Ji=$i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function ro(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$i){if(null===Ki)throw Error(a(308));$i=t,Ki.dependencies={expirationTime:0,firstContext:t,responders:null}}else $i=$i.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function lo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function uo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function co(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=o.baseState,c=0,h=null,p=null,d=null;if(null!==l)for(var f=l;;){if((s=f.expirationTime)<r){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===d?(p=d=m,h=u):d=d.next=m,s>c&&(c=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),ol(s,f.suspenseConfig);e:{var g=e,y=f;switch(s=t,m=n,y.tag){case 1:if("function"==typeof(g=y.payload)){u=g.call(m,u,s);break e}u=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=y.payload)?g.call(m,u,s):g))break e;u=i({},u,s);break e;case 2:io=!0}}null!==f.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[f]:s.push(f))}if(null===(f=f.next)||f===l){if(null===(s=o.shared.pending))break;f=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===d?h=u:d.next=p,o.baseState=h,o.baseQueue=d,al(c),e.expirationTime=c,e.memoizedState=u}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var po=K.ReactCurrentBatchConfig,fo=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ws(),i=po.suspense;(i=so(r=Zs(r,e,i),i)).payload=t,null!=n&&(i.callback=n),lo(e,i),Ys(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ws(),i=po.suspense;(i=so(r=Zs(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),lo(e,i),Ys(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ws(),r=po.suspense;(r=so(n=Zs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),lo(e,r),Ys(e,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(i,o))}function vo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(t)?di:hi.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=fo,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(t)?di:hi.current,i.context=fi(e,o)),co(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&go.enqueueReplaceState(i,i.state,null),co(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var bo=Array.isArray;function wo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===fo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ko(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ml(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Il(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=wo(e,t,n),r.return=e,r):((r=El(n.type,n.key,n.props,null,e.mode,r)).ref=wo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Al(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function h(e,t,n,r,o){return null===t||7!==t.tag?((t=Cl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Il(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=El(t.type,t.key,t.props,null,e.mode,n)).ref=wo(e,null,t),n.return=e,n;case te:return(t=Al(t,e.mode,n)).return=e,t}if(bo(t)||me(t))return(t=Cl(t,e.mode,n,null)).return=e,t;So(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?h(e,t,n.props.children,r,i):u(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(bo(n)||me(n))return null!==i?null:h(e,t,n,r,null);So(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?h(t,e,r.props.children,i,r.key):u(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(bo(r)||me(r))return h(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,h=a,m=a=0,g=null;null!==h&&m<s.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var y=d(i,h,s[m],l);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(i,h),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,h=g}if(m===s.length)return n(i,h),u;if(null===h){for(;m<s.length;m++)null!==(h=p(i,s[m],l))&&(a=o(h,a,m),null===c?u=h:c.sibling=h,c=h);return u}for(h=r(i,h);m<s.length;m++)null!==(g=f(h,i,m,s[m],l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(i,e)})),u}function g(i,s,l,u){var c=me(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var h=c=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var _=d(i,m,v.value,u);if(null===_){null===m&&(m=y);break}e&&m&&null===_.alternate&&t(i,m),s=o(_,s,g),null===h?c=_:h.sibling=_,h=_,m=y}if(v.done)return n(i,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,u))&&(s=o(v,s,g),null===h?c=v:h.sibling=v,h=v);return c}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=f(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=o(v,s,g),null===h?c=v:h.sibling=v,h=v);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===ne){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=wo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ne?((r=Cl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=El(o.type,o.key,o.props,null,e.mode,l)).ref=wo(e,r,o),l.return=e,e=l)}return s(e);case te:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Al(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Il(o,e.mode,l)).return=e,e=r),s(e);if(bo(o))return m(e,r,o,l);if(me(o))return g(e,r,o,l);if(c&&So(e,o),void 0===o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var To=ko(!0),Mo=ko(!1),Eo={},Co={current:Eo},Io={current:Eo},Ao={current:Eo};function Po(e){if(e===Eo)throw Error(a(174));return e}function Do(e,t){switch(ui(Ao,t),ui(Io,e),ui(Co,Eo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(Co),ui(Co,t)}function Lo(){li(Co),li(Io),li(Ao)}function Oo(e){Po(Ao.current);var t=Po(Co.current),n=Ne(t,e.type);t!==n&&(ui(Io,e),ui(Co,n))}function Ro(e){Io.current===e&&(li(Co),li(Io))}var zo={current:0};function No(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bo(e,t){return{responder:e,props:t}}var Fo=K.ReactCurrentDispatcher,Vo=K.ReactCurrentBatchConfig,jo=0,Uo=null,Go=null,qo=null,Ho=!1;function Wo(){throw Error(a(321))}function Zo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function Yo(e,t,n,r,i,o){if(jo=o,Uo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Fo.current=null===e||null===e.memoizedState?ya:va,e=n(r,i),t.expirationTime===jo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,qo=Go=null,t.updateQueue=null,Fo.current=_a,e=n(r,i)}while(t.expirationTime===jo)}if(Fo.current=ga,t=null!==Go&&null!==Go.next,jo=0,qo=Go=Uo=null,Ho=!1,t)throw Error(a(300));return e}function Xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qo?Uo.memoizedState=qo=e:qo=qo.next=e,qo}function Ko(){if(null===Go){var e=Uo.alternate;e=null!==e?e.memoizedState:null}else e=Go.next;var t=null===qo?Uo.memoizedState:qo.next;if(null!==t)qo=t,Go=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Go=e).memoizedState,baseState:Go.baseState,baseQueue:Go.baseQueue,queue:Go.queue,next:null},null===qo?Uo.memoizedState=qo=e:qo=qo.next=e}return qo}function $o(e,t){return"function"==typeof t?t(e):t}function Jo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Go,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.expirationTime;if(c<jo){var h={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=h,o=r):l=l.next=h,c>Uo.expirationTime&&(Uo.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),ol(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,Nr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Qo(e){var t=Ko(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Nr(o,t.memoizedState)||(Aa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Xo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e}).dispatch=ma.bind(null,Uo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Uo.updateQueue)?(t={lastEffect:null},Uo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Ko().memoizedState}function ra(e,t,n,r){var i=Xo();Uo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Ko();r=void 0===r?null:r;var o=void 0;if(null!==Go){var a=Go.memoizedState;if(o=a.destroy,null!==r&&Zo(r,a.deps))return void ta(t,n,o,r)}Uo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function la(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ua(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,la.bind(null,t,e),n)}function ca(){}function ha(e,t){return Xo().memoizedState=[e,void 0===t?null:t],e}function pa(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=Ko();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fa(e,t,n){var r=Vi();Ui(98>r?98:r,(function(){e(!0)})),Ui(97<r?97:r,(function(){var r=Vo.suspense;Vo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Vo.suspense=r}}))}function ma(e,t,n){var r=Ws(),i=po.suspense;i={expirationTime:r=Zs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Uo||null!==o&&o===Uo)Ho=!0,i.expirationTime=jo,Uo.expirationTime=jo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Nr(s,a))return}catch(e){}Ys(e,r)}}var ga={readContext:ro,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useResponder:Wo,useDeferredValue:Wo,useTransition:Wo},ya={readContext:ro,useCallback:ha,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,la.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Xo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,Uo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Xo().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[ha(fa.bind(null,t,e),[t,e]),n]}},va={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:da,useReducer:Jo,useRef:na,useState:function(){return Jo($o)},useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=Jo($o),r=n[0],i=n[1];return aa((function(){var n=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Jo($o),n=t[0];return t=t[1],[pa(fa.bind(null,t,e),[t,e]),n]}},_a={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:da,useReducer:Qo,useRef:na,useState:function(){return Qo($o)},useDebugValue:ca,useResponder:Bo,useDeferredValue:function(e,t){var n=Qo($o),r=n[0],i=n[1];return aa((function(){var n=Vo.suspense;Vo.suspense=void 0===t?null:t;try{i(e)}finally{Vo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qo($o),n=t[0];return t=t[1],[pa(fa.bind(null,t,e),[t,e]),n]}},xa=null,ba=null,wa=!1;function Sa(e,t){var n=kl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ka(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ta(e){if(wa){var t=ba;if(t){var n=t;if(!ka(e,t)){if(!(t=bn(n.nextSibling))||!ka(e,t))return e.effectTag=-1025&e.effectTag|2,wa=!1,void(xa=e);Sa(xa,n)}xa=e,ba=bn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,wa=!1,xa=e}}function Ma(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Ea(e){if(e!==xa)return!1;if(!wa)return Ma(e),wa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vn(t,e.memoizedProps))for(t=ba;t;)Sa(e,t),t=bn(t.nextSibling);if(Ma(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ba=bn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ba=null}}else ba=xa?bn(e.stateNode.nextSibling):null;return!0}function Ca(){ba=xa=null,wa=!1}var Ia=K.ReactCurrentOwner,Aa=!1;function Pa(e,t,n,r){t.child=null===e?Mo(t,null,n,r):To(t,e.child,n,r)}function Da(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Yo(e,t,n,r,o,i),null===e||Aa?(t.effectTag|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ya(e,t,i))}function La(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Tl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=El(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Oa(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(i,r)&&e.ref===t.ref)?Ya(e,t,o):(t.effectTag|=1,(e=Ml(a,r)).ref=t.ref,e.return=t,t.child=e)}function Oa(e,t,n,r,i,o){return null!==e&&Fr(e.memoizedProps,r)&&e.ref===t.ref&&(Aa=!1,i<o)?(t.expirationTime=e.expirationTime,Ya(e,t,o)):za(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function za(e,t,n,r,i){var o=mi(n)?di:hi.current;return o=fi(t,o),no(t,i),n=Yo(e,t,n,r,o,i),null===e||Aa?(t.effectTag|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ya(e,t,i))}function Na(e,t,n,r,i){if(mi(n)){var o=!0;_i(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),vo(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ro(u):u=fi(t,u=mi(n)?di:hi.current);var c=n.getDerivedStateFromProps,h="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;h||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_o(t,a,r,u),io=!1;var p=t.memoizedState;a.state=p,co(t,r,a,i),l=t.memoizedState,s!==r||p!==l||pi.current||io?("function"==typeof c&&(mo(t,n,c,r),l=t.memoizedState),(s=io||yo(t,n,s,r,p,l,u))?(h||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Yi(t.type,s),l=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=ro(u):u=fi(t,u=mi(n)?di:hi.current),(h="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_o(t,a,r,u),io=!1,l=t.memoizedState,a.state=l,co(t,r,a,i),p=t.memoizedState,s!==r||l!==p||pi.current||io?("function"==typeof c&&(mo(t,n,c,r),p=t.memoizedState),(c=io||yo(t,n,s,r,l,p,u))?(h||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Ra(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&xi(t,n,!1),Ya(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function Fa(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Do(e,t.containerInfo)}var Va,ja,Ua,Ga={dehydrated:null,retryTime:0};function qa(e,t,n){var r,i=t.mode,o=t.pendingProps,a=zo.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ui(zo,1&a),null===e){if(void 0!==o.fallback&&Ta(t),s){if(s=o.fallback,(o=Cl(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cl(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ga,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Mo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ml(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ml(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ga,t.child=n,i}return n=To(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Cl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cl(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ga,t.child=o,n}return t.memoizedState=null,t.child=To(t,e,o.children,n)}function Ha(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Wa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),0!=(2&(r=zo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(zo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===No(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Wa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===No(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Wa(t,!0,n,null,o,t.lastEffect);break;case"together":Wa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ya(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&al(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ml(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ml(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ka(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(t.type)&&gi(),null;case 3:return Lo(),li(pi),li(hi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ea(t)||(t.effectTag|=4),null;case 5:Ro(t),n=Po(Ao.current);var o=t.type;if(null!==e&&null!=t.stateNode)ja(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(Co.current),Ea(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[kn]=t,r[Tn]=s,o){case"iframe":case"object":case"embed":Zt("load",r);break;case"video":case"audio":for(e=0;e<Ke.length;e++)Zt(Ke[e],r);break;case"source":Zt("error",r);break;case"img":case"image":case"link":Zt("error",r),Zt("load",r);break;case"form":Zt("reset",r),Zt("submit",r);break;case"details":Zt("toggle",r);break;case"input":Se(r,s),Zt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Zt("invalid",r),ln(n,"onChange");break;case"textarea":Pe(r,s),Zt("invalid",r),ln(n,"onChange")}for(var l in on(o,s),e=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):k.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(o){case"input":xe(r),Me(r,s,!0);break;case"textarea":xe(r),Le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=ze(o)),e===sn?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[kn]=t,e[Tn]=r,Va(e,t),t.stateNode=e,l=an(o,r),o){case"iframe":case"object":case"embed":Zt("load",e),u=r;break;case"video":case"audio":for(u=0;u<Ke.length;u++)Zt(Ke[u],e);u=r;break;case"source":Zt("error",e),u=r;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),u=r;break;case"form":Zt("reset",e),Zt("submit",e),u=r;break;case"details":Zt("toggle",e),u=r;break;case"input":Se(e,r),u=we(e,r),Zt("invalid",e),ln(n,"onChange");break;case"option":u=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=i({},r,{value:void 0}),Zt("invalid",e),ln(n,"onChange");break;case"textarea":Pe(e,r),u=Ae(e,r),Zt("invalid",e),ln(n,"onChange");break;default:u=r}on(o,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var h=c[s];"style"===s?nn(e,h):"dangerouslySetInnerHTML"===s?null!=(h=h?h.__html:void 0)&&Fe(e,h):"children"===s?"string"==typeof h?("textarea"!==o||""!==h)&&Ve(e,h):"number"==typeof h&&Ve(e,""+h):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=h&&ln(n,s):null!=h&&$(e,s,h,l))}switch(o){case"input":xe(e),Me(e,r,!1);break;case"textarea":xe(e),Le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ie(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=un)}yn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ua(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Po(Ao.current),Po(Co.current),Ea(t)?(n=t.stateNode,r=t.memoizedProps,n[kn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kn]=t,t.stateNode=n)}return null;case 13:return li(zo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ea(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&zo.current)?Es===xs&&(Es=bs):(Es!==xs&&Es!==bs||(Es=ws),0!==Ds&&null!==ks&&(Ll(ks,Ms),Ol(ks,Ds)))),(n||r)&&(t.effectTag|=4),null);case 4:return Lo(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&gi(),null;case 19:if(li(zo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Xa(r,!1);else if(Es!==xs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=No(s))){for(t.effectTag|=64,Xa(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ui(zo,1&zo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=No(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Xa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Xa(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Fi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=zo.current,ui(zo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function $a(e){switch(e.tag){case 1:mi(e.type)&&gi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Lo(),li(pi),li(hi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return li(zo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(zo),null;case 4:return Lo(),null;case 10:return eo(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ye(t)}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ja=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,u=t.stateNode;switch(Po(Co.current),e=null,n){case"input":a=we(u,a),r=we(u,r),e=[];break;case"option":a=Ce(u,a),r=Ce(u,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ae(u,a),r=Ae(u,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(u.onclick=un)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(s,c)):"children"===s?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=c&&ln(o,s),e||u===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ua=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Qa="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){vl(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&zt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof wl&&wl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ui(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){vl(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){vl(e,t)}}(t,n);break;case 5:ts(t);break;case 4:cs(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function us(e){e:{for(var t=e.return;null!==t;){if(ls(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ve(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=un));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function cs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=n,h=u;;)if(as(l,h,c),null!==h.child&&4!==h.tag)h.child.return=h,h=h.child;else{if(h===u)break e;for(;null===h.sibling;){if(null===h.return||h.return===u)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}i?(l=r,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function hs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Tn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Fe(n,l):"children"===s?Ve(n,l):$(n,s,l,t)}switch(e){case"input":Te(n,r);break;case"textarea":De(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ie(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ie(n,!!r.multiple,r.defaultValue,!0):Ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,zt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Os=Fi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ps(t);case 19:return void ps(t);case 17:return}throw Error(a(163))}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var r=xl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zs||(zs=!0,Ns=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bs?Bs=new Set([this]):Bs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var gs,ys=Math.ceil,vs=K.ReactCurrentDispatcher,_s=K.ReactCurrentOwner,xs=0,bs=3,ws=4,Ss=0,ks=null,Ts=null,Ms=0,Es=xs,Cs=null,Is=1073741823,As=1073741823,Ps=null,Ds=0,Ls=!1,Os=0,Rs=null,zs=!1,Ns=null,Bs=null,Fs=!1,Vs=null,js=90,Us=null,Gs=0,qs=null,Hs=0;function Ws(){return 0!=(48&Ss)?1073741821-(Fi()/10|0):0!==Hs?Hs:Hs=1073741821-(Fi()/10|0)}function Zs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Vi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Ss))return Ms;if(null!==n)e=Zi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Zi(e,150,100);break;case 97:case 96:e=Zi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ks&&e===Ms&&--e,e}function Ys(e,t){if(50<Gs)throw Gs=0,qs=null,Error(a(185));if(null!==(e=Xs(e,t))){var n=Vi();1073741823===t?0!=(8&Ss)&&0==(48&Ss)?Qs(e):($s(e),0===Ss&&Hi()):$s(e),0==(4&Ss)||98!==n&&99!==n||(null===Us?Us=new Map([[e,t]]):(void 0===(n=Us.get(e))||n>t)&&Us.set(e,t))}}function Xs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(ks===i&&(al(t),Es===ws&&Ll(i,Ms)),Ol(i,t)),i}function Ks(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Dl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function $s(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qi(Qs.bind(null,e));else{var t=Ks(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ws();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Di&&Si(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qi(Qs.bind(null,e)):Gi(r,Js.bind(null,e),{timeout:10*(1073741821-t)-Fi()}),e.callbackNode=t}}}function Js(e,t){if(Hs=0,t)return Rl(e,t=Ws()),$s(e),null;var n=Ks(e);if(0!==n){if(t=e.callbackNode,0!=(48&Ss))throw Error(a(327));if(ml(),e===ks&&n===Ms||nl(e,n),null!==Ts){var r=Ss;Ss|=16;for(var i=il();;)try{ll();break}catch(t){rl(e,t)}if(Qi(),Ss=r,vs.current=i,1===Es)throw t=Cs,nl(e,n),Ll(e,n),$s(e),t;if(null===Ts)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Es,ks=null,r){case xs:case 1:throw Error(a(345));case 2:Rl(e,2<n?2:n);break;case bs:if(Ll(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=hl(i)),1073741823===Is&&10<(i=Os+500-Fi())){if(Ls){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(o=Ks(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=_n(pl.bind(null,e),i);break}pl(e);break;case ws:if(Ll(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=hl(i)),Ls&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(i=Ks(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==As?r=10*(1073741821-As)-Fi():1073741823===Is?r=0:(r=10*(1073741821-Is)-5e3,0>(r=(i=Fi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ys(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=_n(pl.bind(null,e),r);break}pl(e);break;case 5:if(1073741823!==Is&&null!==Ps){o=Is;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Fi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ll(e,n),e.timeoutHandle=_n(pl.bind(null,e),r);break}}pl(e);break;default:throw Error(a(329))}if($s(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Qs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Ss))throw Error(a(327));if(ml(),e===ks&&t===Ms||nl(e,t),null!==Ts){var n=Ss;Ss|=16;for(var r=il();;)try{sl();break}catch(t){rl(e,t)}if(Qi(),Ss=n,vs.current=r,1===Es)throw n=Cs,nl(e,t),Ll(e,t),$s(e),n;if(null!==Ts)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ks=null,pl(e),$s(e)}return null}function el(e,t){var n=Ss;Ss|=1;try{return e(t)}finally{0===(Ss=n)&&Hi()}}function tl(e,t){var n=Ss;Ss&=-2,Ss|=8;try{return e(t)}finally{0===(Ss=n)&&Hi()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Lo(),li(pi),li(hi);break;case 5:Ro(r);break;case 4:Lo();break;case 13:case 19:li(zo);break;case 10:eo(r)}n=n.return}ks=e,Ts=Ml(e.current,null),Ms=t,Es=xs,Cs=null,As=Is=1073741823,Ps=null,Ds=0,Ls=!1}function rl(e,t){for(;;){try{if(Qi(),Fo.current=ga,Ho)for(var n=Uo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(jo=0,qo=Go=Uo=null,Ho=!1,null===Ts||null===Ts.return)return Es=1,Cs=t,Ts=null;e:{var i=e,o=Ts.return,a=Ts,s=t;if(t=Ms,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&zo.current),h=o;do{var p;if(p=13===h.tag){var d=h.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var f=h.memoizedProps;p=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!c)}}if(p){var m=h.updateQueue;if(null===m){var g=new Set;g.add(l),h.updateQueue=g}else m.add(l);if(0==(2&h.mode)){if(h.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,lo(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new ds,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var _=_l.bind(null,i,l,a);l.then(_,_)}h.effectTag|=4096,h.expirationTime=t;break e}h=h.return}while(null!==h);s=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Es&&(Es=2),s=Ja(s,a),h=o;do{switch(h.tag){case 3:l=s,h.effectTag|=4096,h.expirationTime=t,uo(h,fs(h,l,t));break e;case 1:l=s;var x=h.type,b=h.stateNode;if(0==(64&h.effectTag)&&("function"==typeof x.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Bs||!Bs.has(b)))){h.effectTag|=4096,h.expirationTime=t,uo(h,ms(h,l,t));break e}}h=h.return}while(null!==h)}Ts=cl(Ts)}catch(e){t=e;continue}break}}function il(){var e=vs.current;return vs.current=ga,null===e?ga:e}function ol(e,t){e<Is&&2<e&&(Is=e),null!==t&&e<As&&2<e&&(As=e,Ps=t)}function al(e){e>Ds&&(Ds=e)}function sl(){for(;null!==Ts;)Ts=ul(Ts)}function ll(){for(;null!==Ts&&!Li();)Ts=ul(Ts)}function ul(e){var t=gs(e.alternate,e,Ms);return e.memoizedProps=e.pendingProps,null===t&&(t=cl(e)),_s.current=null,t}function cl(e){Ts=e;do{var t=Ts.alternate;if(e=Ts.return,0==(2048&Ts.effectTag)){if(t=Ka(t,Ts,Ms),1===Ms||1!==Ts.childExpirationTime){for(var n=0,r=Ts.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ts.firstEffect),e.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ts:e.firstEffect=Ts,e.lastEffect=Ts))}else{if(null!==(t=$a(Ts)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ts.sibling))return t;Ts=e}while(null!==Ts);return Es===xs&&(Es=5),null}function hl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function pl(e){var t=Vi();return Ui(99,dl.bind(null,e,t)),null}function dl(e,t){do{ml()}while(null!==Vs);if(0!=(48&Ss))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=hl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ks&&(Ts=ks=null,Ms=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ss;Ss|=32,_s.current=null,mn=Wt;var s=dn();if(fn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{l.nodeType,h.nodeType}catch(e){l=null;break e}var p=0,d=-1,f=-1,m=0,g=0,y=s,v=null;t:for(;;){for(var _;y!==l||0!==c&&3!==y.nodeType||(d=p+c),y!==h||0!==u&&3!==y.nodeType||(f=p+u),3===y.nodeType&&(p+=y.nodeValue.length),null!==(_=y.firstChild);)v=y,y=_;for(;;){if(y===s)break t;if(v===l&&++m===c&&(d=p),v===h&&++g===u&&(f=p),null!==(_=y.nextSibling))break;v=(y=v).parentNode}y=_}l=-1===d||-1===f?null:{start:d,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Wt=!1,Rs=i;do{try{fl()}catch(e){if(null===Rs)throw Error(a(330));vl(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=i;do{try{for(s=e,l=t;null!==Rs;){var x=Rs.effectTag;if(16&x&&Ve(Rs.stateNode,""),128&x){var b=Rs.alternate;if(null!==b){var w=b.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&x){case 2:us(Rs),Rs.effectTag&=-3;break;case 6:us(Rs),Rs.effectTag&=-3,hs(Rs.alternate,Rs);break;case 1024:Rs.effectTag&=-1025;break;case 1028:Rs.effectTag&=-1025,hs(Rs.alternate,Rs);break;case 4:hs(Rs.alternate,Rs);break;case 8:cs(s,c=Rs,l),ss(c)}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));vl(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);if(w=gn,b=dn(),x=w.focusedElem,l=w.selectionRange,b!==x&&x&&x.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(x.ownerDocument.documentElement,x)){null!==l&&fn(x)&&(b=l.start,void 0===(w=l.end)&&(w=b),"selectionStart"in x?(x.selectionStart=b,x.selectionEnd=Math.min(w,x.value.length)):(w=(b=x.ownerDocument||document)&&b.defaultView||window).getSelection&&(w=w.getSelection(),c=x.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!w.extend&&s>l&&(c=l,l=s,s=c),c=pn(x,s),h=pn(x,l),c&&h&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==h.node||w.focusOffset!==h.offset)&&((b=b.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),s>l?(w.addRange(b),w.extend(h.node,h.offset)):(b.setEnd(h.node,h.offset),w.addRange(b))))),b=[];for(w=x;w=w.parentNode;)1===w.nodeType&&b.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof x.focus&&x.focus(),x=0;x<b.length;x++)(w=b[x]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Wt=!!mn,gn=mn=null,e.current=n,Rs=i;do{try{for(x=e;null!==Rs;){var S=Rs.effectTag;if(36&S&&os(x,Rs.alternate,Rs),128&S){b=void 0;var k=Rs.ref;if(null!==k){var T=Rs.stateNode;switch(Rs.tag){case 5:b=T;break;default:b=T}"function"==typeof k?k(b):k.current=b}}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));vl(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=null,Oi(),Ss=o}else e.current=n;if(Fs)Fs=!1,Vs=e,js=t;else for(Rs=i;null!==Rs;)t=Rs.nextEffect,Rs.nextEffect=null,Rs=t;if(0===(t=e.firstPendingTime)&&(Bs=null),1073741823===t?e===qs?Gs++:(Gs=0,qs=e):Gs=0,"function"==typeof bl&&bl(n.stateNode,r),$s(e),zs)throw zs=!1,e=Ns,Ns=null,e;return 0!=(8&Ss)||Hi(),null}function fl(){for(;null!==Rs;){var e=Rs.effectTag;0!=(256&e)&&ns(Rs.alternate,Rs),0==(512&e)||Fs||(Fs=!0,Gi(97,(function(){return ml(),null}))),Rs=Rs.nextEffect}}function ml(){if(90!==js){var e=97<js?97:js;return js=90,Ui(e,gl)}}function gl(){if(null===Vs)return!1;var e=Vs;if(Vs=null,0!=(48&Ss))throw Error(a(331));var t=Ss;for(Ss|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(a(330));vl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Ss=t,Hi(),!0}function yl(e,t,n){lo(e,t=fs(e,t=Ja(n,t),1073741823)),null!==(e=Xs(e,1073741823))&&$s(e)}function vl(e,t){if(3===e.tag)yl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bs||!Bs.has(r))){lo(n,e=ms(n,e=Ja(t,e),1073741823)),null!==(n=Xs(n,1073741823))&&$s(n);break}}n=n.return}}function _l(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ks===e&&Ms===n?Es===ws||Es===bs&&1073741823===Is&&Fi()-Os<500?nl(e,Ms):Ls=!0:Dl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,$s(e)))}function xl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Zs(t=Ws(),e,null)),null!==(e=Xs(e,t))&&$s(e)}gs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)Aa=!0;else{if(r<n){switch(Aa=!1,t.tag){case 3:Fa(t),Ca();break;case 5:if(Oo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&_i(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,ui(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?qa(e,t,n):(ui(zo,1&zo.current),null!==(t=Ya(e,t,n))?t.sibling:null);ui(zo,1&zo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Za(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ui(zo,zo.current),!r)return null}return Ya(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=fi(t,hi.current),no(t,n),i=Yo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternalFiber=t,xo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Tl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===he)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=za(null,t,i,e,n);break e;case 1:t=Na(null,t,i,e,n);break e;case 11:t=Da(null,t,i,e,n);break e;case 14:t=La(null,t,i,Yi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,za(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Fa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),co(t,r,null,n),(r=t.memoizedState.element)===i)Ca(),t=Ya(e,t,n);else{if((i=t.stateNode.hydrate)&&(ba=bn(t.stateNode.containerInfo.firstChild),xa=t,i=wa=!0),i)for(n=Mo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,r,n),Ca();t=t.child}return t;case 5:return Oo(t),null===e&&Ta(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,vn(r,i)?s=null:null!==o&&vn(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Ta(t),null;case 13:return qa(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ui(Xi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Nr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!pi.current){t=Ya(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=so(n,null)).tag=2,lo(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),to(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,r,n),t.child;case 14:return o=Yi(i=t.type,t.pendingProps),La(e,t,i,o=Yi(i.type,o),r,n);case 15:return Oa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,_i(t)):e=!1,no(t,n),vo(t,r,i),xo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n)}throw Error(a(156,t.tag))};var bl=null,wl=null;function Sl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function kl(e,t,n,r){return new Sl(e,t,n,r)}function Tl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ml(e,t){var n=e.alternate;return null===n?((n=kl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function El(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Tl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Cl(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=kl(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ue:return(e=kl(13,n,t,i)).type=ue,e.elementType=ue,e.expirationTime=o,e;case ce:return(e=kl(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case he:s=14;break e;case pe:s=16,r=null;break e;case de:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=kl(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Cl(e,t,n,r){return(e=kl(7,e,r,t)).expirationTime=n,e}function Il(e,t,n){return(e=kl(6,e,null,t)).expirationTime=n,e}function Al(e,t,n){return(t=kl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Dl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ll(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ol(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Rl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function zl(e,t,n,r){var i=t.current,o=Ws(),s=po.suspense;o=Zs(o,i,s);e:if(n){t:{if(Qe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=vi(n,u,l);break e}}n=l}else n=ci;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),lo(i,t),Ys(i,o),o}function Nl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Fl(e,t){Bl(e,t),(e=e.alternate)&&Bl(e,t)}function Vl(e,t,n){var r=new Pl(e,t,n=null!=n&&!0===n.hydrate),i=kl(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[Mn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Mt.forEach((function(e){ft(e,t,n)})),Et.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ul(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Nl(a);s.call(e)}}zl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Vl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Nl(a);l.call(e)}}tl((function(){zl(t,a,e,i)}))}return Nl(a)}function Gl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ql(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!jl(t))throw Error(a(200));return Gl(e,t,null,n)}Vl.prototype.render=function(e){zl(e,this._internalRoot,null,null)},Vl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;zl(null,e,null,(function(){t[Mn]=null}))},mt=function(e){if(13===e.tag){var t=Zi(Ws(),150,100);Ys(e,t),Fl(e,t)}},gt=function(e){13===e.tag&&(Ys(e,3),Fl(e,3))},yt=function(e){if(13===e.tag){var t=Ws();Ys(e,t=Zs(t,e,null)),Fl(e,t)}},C=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=An(r);if(!i)throw Error(a(90));be(r),Te(r,i)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Ie(e,!!n.multiple,t,!1)}},O=el,R=function(e,t,n,r,i){var o=Ss;Ss|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(Ss=o)&&Hi()}},z=function(){0==(49&Ss)&&(function(){if(null!==Us){var e=Us;Us=null,e.forEach((function(e,t){Rl(t,e),$s(t)})),Hi()}}(),ml())},N=function(e,t){var n=Ss;Ss|=2;try{return e(t)}finally{0===(Ss=n)&&Hi()}};var Hl,Wl,Zl={Events:[Cn,In,An,M,S,Nn,function(e){it(e,zn)},D,L,$t,st,ml,{current:!1}]};Wl=(Hl={findFiberByHostInstance:En,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},wl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},Hl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Wl?Wl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zl,t.createPortal=ql,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Ss))throw Error(a(187));var n=Ss;Ss|=1;try{return Ui(99,e.bind(null,t))}finally{Ss=n,Hi()}},t.hydrate=function(e,t,n){if(!jl(t))throw Error(a(200));return Ul(null,e,t,!0,n)},t.render=function(e,t,n){if(!jl(t))throw Error(a(200));return Ul(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!jl(e))throw Error(a(40));return!!e._reactRootContainer&&(tl((function(){Ul(null,null,e,!1,(function(){e._reactRootContainer=null,e[Mn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return ql(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Ul(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(265)},function(e,t,n){"use strict";
57/** @license React v0.19.1
58 * scheduler.production.min.js
59 *
60 * Copyright (c) Facebook, Inc. and its affiliates.
61 *
62 * This source code is licensed under the MIT license found in the
63 * LICENSE file in the root directory of this source tree.
64 */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},h=Date.now();t.unstable_now=function(){return Date.now()-h},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},i=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,f=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof p&&"function"==typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var v=!1,_=null,x=-1,b=5,w=0;a=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,k=S.port2;S.port1.onmessage=function(){if(null!==_){var e=t.unstable_now();w=e+b;try{_(!0,e)?k.postMessage(null):(v=!1,_=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){_=e,v||(v=!0,k.postMessage(null))},i=function(e,n){x=f((function(){e(t.unstable_now())}),n)},o=function(){m(x),x=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function M(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],A=[],P=1,D=null,L=3,O=!1,R=!1,z=!1;function N(e){for(var t=M(A);null!==t;){if(null===t.callback)E(A);else{if(!(t.startTime<=e))break;E(A),t.sortIndex=t.expirationTime,T(I,t)}t=M(A)}}function B(e){if(z=!1,N(e),!R)if(null!==M(I))R=!0,r(F);else{var t=M(A);null!==t&&i(B,t.startTime-e)}}function F(e,n){R=!1,z&&(z=!1,o()),O=!0;var r=L;try{for(N(n),D=M(I);null!==D&&(!(D.expirationTime>n)||e&&!a());){var s=D.callback;if(null!==s){D.callback=null,L=D.priorityLevel;var l=s(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?D.callback=l:D===M(I)&&E(I),N(n)}else E(I);D=M(I)}if(null!==D)var u=!0;else{var c=M(A);null!==c&&i(B,c.startTime-n),u=!1}return u}finally{D=null,L=r,O=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||O||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return M(I)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:V(e)}else a=V(e),l=s;return e={id:P++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,T(A,e),null===M(I)&&e===M(A)&&(z?o():z=!0,i(B,l-s))):(e.sortIndex=a,T(I,e),R||O||(R=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();N(e);var n=M(I);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},function(e,t,n){"use strict";var r=n(267);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
64;return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
65/** @license React v16.8.6
66 * react-is.production.min.js
67 *
68 * Copyright (c) Facebook, Inc. and its affiliates.
69 *
70 * This source code is licensed under the MIT license found in the
71 * LICENSE file in the root directory of this source tree.
72 */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case h:case p:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case u:return e;default:return t}}case g:case m:case o:return t}}}function v(e){return y(e)===p}t.typeOf=y,t.AsyncMode=h,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=f,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===l||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d)},t.isAsyncMode=function(e){return v(e)||y(e)===h},t.isConcurrentMode=v,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===l},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===f}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){"use strict";var r=n(277),i=n(282);r.default.__addLocaleData(i.default),r.default.defaultLocale="en",t.default=r.default},function(e,t,n){"use strict";var r=n(158),i=n(278),o=n(279),a=n(280);function s(e,t,n){var r="string"==typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,o),l=this;this.format=function(t){try{return l._format(a,t)}
72catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t.default=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(s,"__parse",{value:a.default.parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){return new o.default(t,n,r).compile(e)},s.prototype._findPluralRuleFunction=function(e){for(var t=s.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,i,o,a,s,l,u="";for(n=0,i=e.length;n<i;n+=1)if("string"!=typeof(o=e[n])){if(a=o.id,!t||!r.hop.call(t,a))throw(l=new Error("A value must be provided for: "+a)).variableId=a,l;
72s=t[a],o.options?u+=this._format(o.getOption(s),t):u+=o.format(s)}else u+=o;return u},s.prototype._mergeFormats=function(e,t){var n,o,a={};for(n in e)r.hop.call(e,n)&&(a[n]=o=i.objCreate(e[n]),t&&r.hop.call(t,n)&&r.extend(o,t[n]));return a},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,r,i,o=s.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(r=e[t].toLowerCase().split("-");r.length;){if(i=o[r.join("-")])return i.locale;r.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+a)}},function(e,t,n){"use strict";var r=n(158),i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):r.hop.call(e,t)&&!("value"in n)||(e[t]=n.value)}),a=Object.create||function(e,t){var n,i;function a(){}for(i in a.prototype=e,n=new a,t)r.hop.call(t,i)&&o(n,i,t[i]);return n};t.defineProperty=o,t.objCreate=a},function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function i(e){this.id=e}function o(e,t,n,r,i){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=i}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}t.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,i=e.elements,o=[];for(t=0,n=i.length;t<n;t+=1)switch((r=i[t]).type){case"messageTextElement":o.push(this.compileMessageText(r));break;case"argumentElement":o.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return o},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new i(e.id);var n,r=this.formats,a=this.locales,l=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(e),new o(e.id,t.ordinal,t.offset,n,l);case"selectFormat":return n=this.compileOptions(e),new s(e.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t,n,r,i=e.format,o=i.options,a={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===i.type?e:null,t=0,n=o.length;t<n;t+=1)a[(r=o[t]).selector]=this.compileMessage(r.value);return this.currentPlural=this.pluralStack.pop(),a},i.prototype.format=function(e){return e||"number"==typeof e?"string"==typeof e?e:String(e):""},o.prototype.getOption=function(e){var t=this.options;return t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)]||t.other},a.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},s.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},function(e,t,n){"use strict";(t=e.exports=n(281).default).default=t},function(e,t,n){"use strict";t.default=function(){function e(t,n,r,i){this.message=t,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),{SyntaxError:e,parse:function(t){var n,r=arguments.length>1?arguments[1]:{},i={},o={start:Ae},a=Ae,s=function(e){return{type:"messageFormatPattern",elements:e,location:Te()}},l=function(e){var t,n,r,i,o,a="";for(t=0,r=e.length;t<r;t+=1)for(n=0,o=(i=e[t]).length;n<o;n+=1)a+=i[n];return a},u=function(e){return{type:"messageTextElement",value:e,location:Te()}},c=/^[^ \t\n\r,.+={}#]/,h={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},p="{",d={type:"literal",value:"{",description:'"{"'},f=",",m={type:"literal",value:",",description:'","'},g="}",y={type:"literal",value:"}",description:'"}"'},v=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2],location:Te()}},_="number",x={type:"literal",value:"number",description:'"number"'},b="date",w={type:"literal",value:"date",description:'"date"'},S="time",k={type:"literal",value:"time",description:'"time"'},T=function(e,t){return{type:e+"Format",style:t&&t[2],location:Te()}},M="plural",E={type:"literal",value:"plural",description:'"plural"'},C=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options,location:Te()}},I="selectordinal",A={type:"literal",value:"selectordinal",description:'"selectordinal"'},P=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options,location:Te()}},D="select",L={type:"literal",value:"select",description:'"select"'},O=function(e){return{type:"selectFormat",options:e,location:Te()}},R="=",z={type:"literal",value:"=",description:'"="'},N=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t,location:Te()}},B="offset:",F={type:"literal",value:"offset:",description:'"offset:"'},V=function(e){return e},j=function(e,t){return{type:"pluralFormat",offset:e,options:t,location:Te()}},U={type:"other",description:"whitespace"},G=/^[ \t\n\r]/,q={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},H={type:"other",description:"optionalWhitespace"},W=/^[0-9]/,Z={type:"class",value:"[0-9]",description:"[0-9]"},Y=/^[0-9a-f]/i,X={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"}
72,K="0",$={type:"literal",value:"0",description:'"0"'},J=/^[1-9]/,Q={type:"class",value:"[1-9]",description:"[1-9]"},ee=function(e){return parseInt(e,10)},te=/^[^{}\\\0-\x1F� \t\n\r]/,ne={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},re="\\\\",ie={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},oe=function(){return"\\"},ae="\\#",se={type:"literal",value:"\\#",description:'"\\\\#"'},le=function(){return"\\#"},ue="\\{",ce={type:"literal",value:"\\{",description:'"\\\\{"'},he=function(){return"{"},pe="\\}",de={type:"literal",value:"\\}",description:'"\\\\}"'},fe=function(){return"}"},me="\\u",ge={type:"literal",value:"\\u",description:'"\\\\u"'},ye=function(e){return String.fromCharCode(parseInt(e,16))},ve=function(e){return e.join("")},_e=0,xe=0,be=[{line:1,column:1,seenCR:!1}],we=0,Se=[],ke=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');a=o[r.startRule]}function Te(){return Ee(xe,_e)}function Me(e){var n,r,i=be[e];if(i)return i;for(n=e-1;!be[n];)n--;for(i={line:(i=be[n]).line,column:i.column,seenCR:i.seenCR};n<e;)"\n"===(r=t.charAt(n))?(i.seenCR||i.line++,i.column=1,i.seenCR=!1):"\r"===r||"\u2028"===r||"\u2029"===r?(i.line++,i.column=1,i.seenCR=!0):(i.column++,i.seenCR=!1),n++;return be[e]=i,i}function Ee(e,t){var n=Me(e),r=Me(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Ce(e){_e<we||(_e>we&&(we=_e,Se=[]),Se.push(e))}function Ie(t,n,r,i){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.description<t.description?-1:e.description>t.description?1:0}));t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}(n),new e(null!==t?t:function(e,t){var n,r=new Array(e.length);for(n=0;n<e.length;n++)r[n]=e[n].description;return"Expected "+(e.length>1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,r),n,r,i)}function Ae(){return Pe()}function Pe(){var e,t,n;for(e=_e,t=[],n=De();n!==i;)t.push(n),n=De();return t!==i&&(xe=e,t=s(t)),e=t}function De(){var e;return(e=Oe())===i&&(e=ze()),e}function Le(){var e,n,r,o,a,s;if(e=_e,n=[],r=_e,(o=Ze())!==i&&(a=Je())!==i&&(s=Ze())!==i?r=o=[o,a,s]:(_e=r,r=i),r!==i)for(;r!==i;)n.push(r),r=_e,(o=Ze())!==i&&(a=Je())!==i&&(s=Ze())!==i?r=o=[o,a,s]:(_e=r,r=i);else n=i;return n!==i&&(xe=e,n=l(n)),(e=n)===i&&(e=_e,e=(n=We())!==i?t.substring(e,_e):n),e}function Oe(){var e,t;return e=_e,(t=Le())!==i&&(xe=e,t=u(t)),e=t}function Re(){var e,n,r;if((e=Ke())===i){if(e=_e,n=[],c.test(t.charAt(_e))?(r=t.charAt(_e),_e++):(r=i,0===ke&&Ce(h)),r!==i)for(;r!==i;)n.push(r),c.test(t.charAt(_e))?(r=t.charAt(_e),_e++):(r=i,0===ke&&Ce(h));else n=i;e=n!==i?t.substring(e,_e):n}return e}function ze(){var e,n,r,o,a,s,l;return e=_e,123===t.charCodeAt(_e)?(n=p,_e++):(n=i,0===ke&&Ce(d)),n!==i&&Ze()!==i&&(r=Re())!==i&&Ze()!==i?(o=_e,44===t.charCodeAt(_e)?(a=f,_e++):(a=i,0===ke&&Ce(m)),a!==i&&(s=Ze())!==i&&(l=Ne())!==i?o=a=[a,s,l]:(_e=o,o=i),o===i&&(o=null),o!==i&&(a=Ze())!==i?(125===t.charCodeAt(_e)?(s=g,_e++):(s=i,0===ke&&Ce(y)),s!==i?(xe=e,e=n=v(r,o)):(_e=e,e=i)):(_e=e,e=i)):(_e=e,e=i),e}function Ne(){var e;return(e=Be())===i&&(e=Fe())===i&&(e=Ve())===i&&(e=je()),e}function Be(){var e,n,r,o,a,s;return e=_e,t.substr(_e,6)===_?(n=_,_e+=6):(n=i,0===ke&&Ce(x)),n===i&&(t.substr(_e,4)===b?(n=b,_e+=4):(n=i,0===ke&&Ce(w)),n===i&&(t.substr(_e,4)===S?(n=S,_e+=4):(n=i,0===ke&&Ce(k)))),n!==i&&Ze()!==i?(r=_e,44===t.charCodeAt(_e)?(o=f,_e++):(o=i,0===ke&&Ce(m)),o!==i&&(a=Ze())!==i&&(s=Je())!==i?r=o=[o,a,s]:(_e=r,r=i),r===i&&(r=null),r!==i?(xe=e,e=n=T(n,r)):(_e=e,e=i)):(_e=e,e=i),e}function Fe(){var e,n,r,o;return e=_e,t.substr(_e,6)===M?(n=M,_e+=6):(n=i,0===ke&&Ce(E)),n!==i&&Ze()!==i?(44===t.charCodeAt(_e)?(r=f,_e++):(r=i,0===ke&&Ce(m)),r!==i&&Ze()!==i&&(o=He())!==i?(xe=e,e=n=C(o)):(_e=e,e=i)):(_e=e,e=i),e}function Ve(){var e,n,r,o;return e=_e,t.substr(_e,13)===I?(n=I,_e+=13):(n=i,0===ke&&Ce(A)),n!==i&&Ze()!==i?(44===t.charCodeAt(_e)?(r=f,_e++):(r=i,0===ke&&Ce(m)),r!==i&&Ze()!==i&&(o=He())!==i?(xe=e,e=n=P(o)):(_e=e,e=i)):(_e=e,e=i),e}function je(){var e,n,r,o,a;if(e=_e,t.substr(_e,6)===D?(n=D,_e+=6):(n=i,0===ke&&Ce(L)),n!==i)if(Ze()!==i)if(44===t.charCodeAt(_e)?(r=f,_e++):(r=i,0===ke&&Ce(m)),r!==i)if(Ze()!==i){if(o=[],(a=Ge())!==i)for(;a!==i;)o.push(a),a=Ge();else o=i;o!==i?(xe=e,e=n=O(o)):(_e=e,e=i)}else _e=e,e=i;else _e=e,e=i;else _e=e,e=i;else _e=e,e=i;return e}function Ue(){var e,n,r,o;return e=_e,n=_e,61===t.charCodeAt(_e)?(r=R,_e++):(r=i,0===ke&&Ce(z)),r!==i&&(o=Ke())!==i?n=r=[r,o]:(_e=n,n=i),(e=n!==i?t.substring(e,_e):n)===i&&(e=Je()),e}function Ge(){var e,n,r,o,a;return e=_e,Ze()!==i&&(n=Ue())!==i&&Ze()!==i?(123===t.charCodeAt(_e)?(r=p,_e++):(r=i,0===ke&&Ce(d
72)),r!==i&&Ze()!==i&&(o=Pe())!==i&&Ze()!==i?(125===t.charCodeAt(_e)?(a=g,_e++):(a=i,0===ke&&Ce(y)),a!==i?(xe=e,e=N(n,o)):(_e=e,e=i)):(_e=e,e=i)):(_e=e,e=i),e}function qe(){var e,n,r;return e=_e,t.substr(_e,7)===B?(n=B,_e+=7):(n=i,0===ke&&Ce(F)),n!==i&&Ze()!==i&&(r=Ke())!==i?(xe=e,e=n=V(r)):(_e=e,e=i),e}function He(){var e,t,n,r;if(e=_e,(t=qe())===i&&(t=null),t!==i)if(Ze()!==i){if(n=[],(r=Ge())!==i)for(;r!==i;)n.push(r),r=Ge();else n=i;n!==i?(xe=e,e=t=j(t,n)):(_e=e,e=i)}else _e=e,e=i;else _e=e,e=i;return e}function We(){var e,n;if(ke++,e=[],G.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=i,0===ke&&Ce(q)),n!==i)for(;n!==i;)e.push(n),G.test(t.charAt(_e))?(n=t.charAt(_e),_e++):(n=i,0===ke&&Ce(q));else e=i;return ke--,e===i&&(n=i,0===ke&&Ce(U)),e}function Ze(){var e,n,r;for(ke++,e=_e,n=[],r=We();r!==i;)n.push(r),r=We();return e=n!==i?t.substring(e,_e):n,ke--,e===i&&(n=i,0===ke&&Ce(H)),e}function Ye(){var e;return W.test(t.charAt(_e))?(e=t.charAt(_e),_e++):(e=i,0===ke&&Ce(Z)),e}function Xe(){var e;return Y.test(t.charAt(_e))?(e=t.charAt(_e),_e++):(e=i,0===ke&&Ce(X)),e}function Ke(){var e,n,r,o,a,s;if(e=_e,48===t.charCodeAt(_e)?(n=K,_e++):(n=i,0===ke&&Ce($)),n===i){if(n=_e,r=_e,J.test(t.charAt(_e))?(o=t.charAt(_e),_e++):(o=i,0===ke&&Ce(Q)),o!==i){for(a=[],s=Ye();s!==i;)a.push(s),s=Ye();a!==i?r=o=[o,a]:(_e=r,r=i)}else _e=r,r=i;n=r!==i?t.substring(n,_e):r}return n!==i&&(xe=e,n=ee(n)),e=n}function $e(){var e,n,r,o,a,s,l,u;return te.test(t.charAt(_e))?(e=t.charAt(_e),_e++):(e=i,0===ke&&Ce(ne)),e===i&&(e=_e,t.substr(_e,2)===re?(n=re,_e+=2):(n=i,0===ke&&Ce(ie)),n!==i&&(xe=e,n=oe()),(e=n)===i&&(e=_e,t.substr(_e,2)===ae?(n=ae,_e+=2):(n=i,0===ke&&Ce(se)),n!==i&&(xe=e,n=le()),(e=n)===i&&(e=_e,t.substr(_e,2)===ue?(n=ue,_e+=2):(n=i,0===ke&&Ce(ce)),n!==i&&(xe=e,n=he()),(e=n)===i&&(e=_e,t.substr(_e,2)===pe?(n=pe,_e+=2):(n=i,0===ke&&Ce(de)),n!==i&&(xe=e,n=fe()),(e=n)===i&&(e=_e,t.substr(_e,2)===me?(n=me,_e+=2):(n=i,0===ke&&Ce(ge)),n!==i?(r=_e,o=_e,(a=Xe())!==i&&(s=Xe())!==i&&(l=Xe())!==i&&(u=Xe())!==i?o=a=[a,s,l,u]:(_e=o,o=i),(r=o!==i?t.substring(r,_e):o)!==i?(xe=e,e=n=ye(r)):(_e=e,e=i)):(_e=e,e=i)))))),e}function Je(){var e,t,n;if(e=_e,t=[],(n=$e())!==i)for(;n!==i;)t.push(n),n=$e();else t=i;return t!==i&&(xe=e,t=ve(t)),e=t}if((n=a())!==i&&_e===t.length)return n;throw n!==i&&_e<t.length&&Ce({type:"end",description:"end of input"}),Ie(null,Se,we<t.length?t.charAt(we):null,we<t.length?Ee(we,we+1):Ee(we,we))}}}()},function(e,t,n){"use strict";t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"}}},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(285),i=n(288);r.default.__addLocaleData(i.default),r.default.defaultLocale="en",t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=n(286),o=n(287);t.default=l;var a=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"],s=["best fit","numeric"];function l(e,t){t=t||{},o.isArray(e)&&(e=e.concat()),o.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),o.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),o.defineProperty(this,"_locales",{value:e}),o.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),o.defineProperty(this,"_messages",{value:o.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}o.defineProperty(l,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(l,"__addLocaleData",{value:function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];if(!t||!t.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");l.__localeData__[t.locale.toLowerCase()]=t,r.default.__addLocaleData(t)}}}),o.defineProperty(l,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),o.defineProperty(l,"thresholds",{enumerable:!0,value:{second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11}}),l.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},l.prototype._compileMessage=function(e){var t,n=this._locales,i=(this._locale,this._fields[e].relativeTime),o="",a="";for(t in i.future)i.future.hasOwnProperty(t)&&(o+=" "+t+" {"+i.future[t].replace("{0}","#")+"}");for(t in i.past)i.past.hasOwnProperty(t)&&(a+=" "+t+" {"+i.past[t].replace("{0}","#")+"}");var s="{when, select, future {{0, plural, "+o+"}}past {{0, plural, "+a+"}}}";return new r.default(s,n)},l.prototype._getMessage=function(e){var t=this._messages;return t[e]||(t[e]=this._compileMessage(e)),t[e]},l.prototype._getRelativeUnits=function(e,t){var n=this._fields[t];if(n.relative)return n.relative[e]},l.prototype._findFields=function(e){for(var t=l.__localeData__,n=t[e.toLowerCase()];n;){if(n.fields)return n.fields;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+e)},l.prototype._format=function(e,t){var n=t&&void 0!==t.now?t.now:o.dateNow();if(void 0===e&&(e=n),!isFinite(n))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var r=i.default(n,e),a=this._options.units||this._selectUnits(r),s=r[a];if("numeric"!==this._options.style){var l=this._getRelativeUnits(s,a);if(l)return l}
72return this._getMessage(a).format({0:Math.abs(s),when:s<0?"past":"future"})},l.prototype._isValidUnits=function(e){if(!e||o.arrIndexOf.call(a,e)>=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&o.arrIndexOf.call(a,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+a.join('", "')+'"')},l.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(l.defaultLocale);var t,n,r,i,o=l.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(r=e[t].toLowerCase().split("-");r.length;){if(i=o[r.join("-")])return i.locale;r.pop()}var a=e.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+e.join(", ")+", or the default locale: "+a)},l.prototype._resolveStyle=function(e){if(!e)return s[0];if(o.arrIndexOf.call(s,e)>=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+s.join('", "')+'"')},l.prototype._selectUnits=function(e){var t,n,r,i=a.filter((function(e){return e.indexOf("-short")<1}));for(t=0,n=i.length;t<n&&(r=i[t],!(Math.abs(e[r])<l.thresholds[r]));t+=1);return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Math.round;function i(e){var t=new Date(e);return t.setHours(0,0,0,0),t}t.default=function(e,t){var n,o,a,s,l,u=r((t=+t)-(e=+e)),c=r(u/1e3),h=r(c/60),p=r(h/60),d=(n=e,o=i(t),a=i(n),s=o.getTime()-6e4*o.getTimezoneOffset(),l=a.getTime()-6e4*a.getTimezoneOffset(),Math.round((s-l)/864e5)),f=r(d/7),m=400*d/146097,g=r(12*m),y=r(m);return{millisecond:u,second:c,"second-short":c,minute:h,"minute-short":h,hour:p,"hour-short":p,day:d,"day-short":d,week:f,"week-short":f,month:g,"month-short":g,year:y,"year-short":y}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):r.call(e,t)&&!("value"in n)||(e[t]=n.value)});t.defineProperty=a;var s=Object.create||function(e,t){var n,i;function o(){}for(i in o.prototype=e,n=new o,t)r.call(t,i)&&a(n,i,t[i]);return n};t.objCreate=s;var l=Array.prototype.indexOf||function(e,t){if(!this.length)return-1;for(var n=t||0,r=this.length;n<r;n++)if(this[n]===e)return n;return-1};t.arrIndexOf=l;var u=Array.isArray||function(e){return"[object Array]"===i.call(e)};t.isArray=u;var c=Date.now||function(){return(new Date).getTime()};t.dateNow=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},week:{displayName:"week",relativePeriod:"the week of {0}",relative:{0:"this week",1:"next week","-1":"last week"},relativeTime:{future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}}},"week-short":{displayName:"wk.",relativePeriod:"the week of {0}",relative:{0:"this wk.",1:"next wk.","-1":"last wk."},relativeTime:{future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},function(e,t){},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to de
72structure non-iterable instance")}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,h=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&d())}function d(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++h<t;)l&&l[h].run();h=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new f(e,t)),1!==u.length||c||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function m(e){throw new RangeError(p[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(h,".")).split("."),t).join(".")}function v(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function _(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function w(e){var t,n,r,i,o,a,s,u,c,h,p,f=[],g=e.length,y=0,v=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),f.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=y,a=1,s=36;i>=g&&m("invalid-input"),((u=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>d((l-y)/a))&&m("overflow"),y+=u*a,!(u<(c=s<=x?1:s>=x+26?26:s-x));s+=36)a>d(l/(h=36-c))&&m("overflow"),a*=h;x=b(y-o,t=f.length+1,0==o),d(y/t)>l-v&&m("overflow"),v+=d(y/t),y%=t,f.splice(y++,0,v)}return _(f)}function S(e){var t,n,r,i,o,a,s,u,c,h,p,g,y,_,w,S=[];for(g=(e=v(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(p=e[a])<128&&S.push(f(p));for(r=i=S.length,i&&S.push("-");r<g;){for(s=l,a=0;a<g;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>d((l-n)/(y=r+1))&&m("overflow"),n+=(s-t)*y,t=s,a=0;a<g;++a)if((p=e[a])<t&&++n>l&&m("overflow"),p==t){for(u=n,c=36;!(u<(h=c<=o?1:c>=o+26?26:c-o));c+=36)w=u-h,_=36-h,S.push(f(x(h+w%_,0))),u=d(w/_);S.push(f(x(u,0))),o=b(n,y,r==i),n=0,++r}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:_},decode:w,encode:S,toASCII:function(e){return y(e,(function(e){return c.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(295)(e),n(159))},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,n){"use strict";e.exports={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(e,t,n){"use strict";t.decode=t.parse=n(298),t.encode=t.stringify=n(299)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,p,d,f,m=e[c].replace(s,"%20"),g=m.indexOf(n);g>=0?(h=m.substr(0,g),p=m.substr(g+1)):(h=m,p=""),d=decodeURIComponent(h),f=decodeURIComponent(p),r(a,d)?i(a[d])?a[d].push(f):a[d]=[a[d],f]:a[d]=f}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(
vendor: 9,512 bytes, line 72
72a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=f(o),s=f(n(54)),l=f(n(2)),u=f(n(301)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(161)),h=n(118),p=f(h),d=n(308);function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",_=h.canUseDOM&&void 0!==s.default.createPortal,x=function(e){return document.createElement(e)},b=function(){return _?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var S=function(e){function t(){var e,n,i;m(this,t);for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];return n=i=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!_&&s.default.unmountComponentAtNode(i.node);var e=w(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=b()(i,a.default.createElement(u.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},g(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){h.canUseDOM&&(_||(this.node=x("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!_&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(h.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!_&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(h.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return h.canUseDOM&&_?(!this.node&&_&&(this.node=x("div")),b()(a.default.createElement(u.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);S.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(h.SafeHTMLCollection),l.default.instanceOf(h.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},S.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(S),t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=g(n(2)),l=m(n(302)),u=g(n(303)),c=m(n(161)),h=m(n(306)),p=n(118),d=g(p),f=g(n(162));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(307);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;o&&h.remove(s.body,o),i&&h.remove(s.getElementsByTagName("html")[0],i),r&&v>0&&0===(v-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.ke
vendor: 1,684 bytes, line 72
72yCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 4,265 bytes, line 72
72(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName,o=e.parentSelector,a=o&&o().ownerDocument||document;i&&h.add(a.body,i),r&&h.add(a.getElementsByTagName("html")[0],r),n&&(v+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,l=i?{}:o.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),h=this.props.contentElement(c,a);return this.props.overlayElement(u,h)}}]),t}(a.Component);_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=_,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var r,i=n(160),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";
72Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!i)return;r=s}s!==l||i||(r=a);a===l&&i&&(r=s);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(l);c>-1&&(c+=i?-1:1);if(void 0===(r=n[c]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()};var r,i=n(160),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){var r;
73/*!
74  Copyright (c) 2015 Jed Watson.
75  Based on code that is Copyright 2013-2015, Facebook, Inc.
76  All rights reserved.
77*/!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)o(e,r[t]);var n=document.body;for(var a in i)o(n,i[a]);r={},i={}},t.log=function(){0};var r={},i={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,i=n(162),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}o.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){var r=n(1),i=n(18),o=n(310),a=n(57),s=n(38),l=n(312);function u(){s.stop(this.event)}function c(){}c.prototype.dispose=function(){};var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,n,r){a.call(this),this.storage=e,this.painter=t,this.painterRoot=r,n=n||new c,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(n)};function d(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r,i=e;i;){if(i.clipPath&&!i.clipPath.contain(t,n))return!1;i.silent&&(r=!0),i=i.parent}return!r||"silent"}return!1}function f(e,t,n){var r=e.painter;return t<0||t>
77r.getWidth()||n<0||n>r.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(r.each(h,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,r=f(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?{x:t,y:n}:this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:u}}(t,e,n);r&&(r[i]&&(o.cancelBubble=r[i].call(r,o)),r.trigger(t,o),r=r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},findHover:function(e,t,n){for(var r=this.storage.getDisplayList(),i={x:e,y:t},o=r.length-1;o>=0;o--){var a;if(r[o]!==n&&!r[o].ignore&&(a=d(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),"silent"!==a)){i.target=r[o];break}}return i},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);
77if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i,this.dispatchToElement({target:r.target},i,r.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var n,r,o=t.zrX,a=t.zrY,s=f(this,o,a);if("mouseup"===e&&s||(r=(n=this.findHover(o,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||i.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),r.mixin(p,a),r.mixin(p,o);var m=p;e.exports=m},function(e,t){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function r(e,t){return{target:e,topTarget:t&&t.topTarget}}n.prototype={constructor:n,_dragStart:function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(r(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(o,a,e),this.dispatchToElement(r(t,e),"drag",e.event);var s=this.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(r(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(r(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(r(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(r(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var i=n;e.exports=i},function(e,t){var n=Math.log(2);function r(e,t,i,o,a,s){var l=o+"-"+a,u=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var c=Math.round(Math.log((1<<u)-1&~a)/n);return e[i][c]}for(var h=o|1<<i,p=i+1;o&1<<p;)p++;for(var d=0,f=0,m=0;f<u;f++){var g=1<<f;g&a||(d+=(m%2?-1:1)*e[i][f]*r(e,t-1,p,h,a|g,s),m++)}return s[l]=d,d}t.buildTransformer=function(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},o=r(n,8,0,0,0,i);if(0!==o){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*r(n,7,0===s?1:0,1<<s,1<<l,i)/o*t[s];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}},function(e,t,n){var r=n(38),i=function(){this._track=[]};function o(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}i.prototype={constructor:i,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},a=0,s=i.length;a<s;a++){var l=i[a],u=r.clientToLocal(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(e){for(var t in a)if(a.hasOwnProperty(t)){var n=a[t](this._track,e);if(n)return n}}};var a={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var s=o(i)/o(a);!isFinite(s)&&(s=1),t.pinchScale=s;var l=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},s=i;e.exports=s},function(e,t,n){var r=n(1),i=n(22),o=n(58),a=n(119);function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,o=t.length;r<o;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,i.canvasSupported&&a(n,s)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(
77),e.afterUpdate();var r=e.clipPath;if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.clipPath}if(e.isGroup){for(var a=e._children,s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof o&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof o&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var i=e.length;t<i;t++)this.delRoot(e[t])}else{var a=r.indexOf(this._roots,e);a>=0&&(this.delFromStorage(e),this._roots.splice(a,1),e instanceof o&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;e.exports=u},function(e,t,n){var r=n(166),i=n(82),o=n(1),a=o.isString,s=o.isFunction,l=o.isObject,u=o.isArrayLike,c=o.indexOf,h=function(){this.animators=[]};function p(e,t,n,r,i,o,c,h){a(r)?(o=i,i=r,r=0):s(i)?(o=i,i="linear",r=0):s(r)?(o=r,r=0):s(n)?(o=n,n=500):n||(n=500),e.stopAnimation(),function e(t,n,r,i,o,a,s){var c={},h=0;for(var p in i)i.hasOwnProperty(p)&&(null!=r[p]?l(i[p])&&!u(i[p])?e(t,n?n+"."+p:p,r[p],i[p],o,a,s):(s?(c[p]=r[p],d(t,n,p,i[p])):c[p]=i[p],h++):null==i[p]||s||d(t,n,p,i[p]));h>0&&t.animate(n,!1).when(null==o?500:o,c).delay(a||0)}(e,"",e,t,n,r,h);var p=e.animators.slice(),f=p.length;function m(){--f||o&&o()}f||o&&o();for(var g=0;g<p.length;g++)p[g].done(m).start(i,c)}function d(e,t,n,r){if(t){var i={};i[t]={},i[t][n]=r,e.attr(i)}else e.attr(n,r)}h.prototype={constructor:h,animate:function(e,t){var n,o=!1,a=this,s=this.__zr;if(e){var l=e.split("."),u=a;o="shape"===l[0];for(var h=0,p=l.length;h<p;h++)u&&(u=u[l[h]]);u&&(n=u)}else n=a;if(n){var d=a.animators,f=new r(n,t);return f.during((function(e){a.dirty(o)})).done((function(){d.splice(c(d,f),1)})),d.push(f),s&&s.animation.addAnimator(f),f}i('Property "'+e+'" is not existed in element '+a.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,r=0;r<n;r++)t[r].stop(e);return t.length=0,this},animateTo:function(e,t,n,r,i,o){p(this,e,t,n,r,i,o)},animateFrom:function(e,t,n,r,i,o){p(this,e,t,n,r,i,o,!0)}};var f=h;e.exports=f},function(e,t,n){var r=n(316);function i(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}i.prototype={constructor:i,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,o="string"==typeof i?r[i]:i,a="function"==typeof o?o(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){this[e="on"+e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var o=i;e.exports=o},function(e,t){var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}},r=n;e.exports=r},function(e,t,n){var r=n(100).devicePixelRatio,i=n(1),o=n(82),a=n(19),s=n(119),l=n(318),u=n(170),c=n(68),h=n(22);function p(e){return parseInt(e,10)}var d=new a(0,0,0,0),f=new a(0,0,0,0);var m=function(e,t,n){this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=i.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=o,this.root=e;var a=e.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],u=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,o){var c=e.width,h=e.height;null!=n.width&&(c=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,e.width=c*this.dpr,e.height=h*this.dpr,this._width=c,this._height=h;var p=new l(e,this,this.dpr);p.__builtin__=!0,p.initContext(),u[314159]=p,p.zlevel=314159,s.push(314159),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}this._hoverlayer=null,this._hoverElements=[]};m.prototype={constructor:m,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var r=0;r<n.length;r++){var i=n[r],o=this._layers[i];if(!o.__builtin__&&o.refresh){var a=0===r?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,r=i.indexOf(n,t);r>=0&&n.splice(r,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var r=t[n].__from;r&&(r.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){s(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(1e5));var r={};n.ctx.save();for(var i=0;i<t;){var o=e[i],a=o.__from;a&&a.__zr?(i++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,r))):(e.splice(i,1),a.__hoverMir=null,t--)}
77n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!r){var i=this;u((function(){i._paintList(e,t,n)}))}}},_compositeManually:function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},_doPaintList:function(e,t){for(var n=[],r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];(l=this._layers[o]).__builtin__&&l!==this._hoverlayer&&(l.__dirty||t)&&n.push(l)}for(var a=!0,s=0;s<n.length;s++){var l,u=(l=n[s]).ctx,c={};u.save();var p=t?l.__startIndex:l.__drawIndex,d=!t&&l.incremental&&Date.now,f=d&&Date.now(),m=l.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m);else if(p===l.__startIndex){var g=e[p];g.incremental&&g.notClear&&!t||l.clear(!1,m)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);for(var y=p;y<l.__endIndex;y++){var v=e[y];if(this._doPaintEl(v,l,t,c),v.__dirty=v.__dirtyText=!1,d)if(Date.now()-f>15)break}l.__drawIndex=y,l.__drawIndex<l.__endIndex&&(a=!1),c.prevElClipPaths&&u.restore(),u.restore()}return h.wxa&&i.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),a},_doPaintEl:function(e,t,n,r){var i=t.ctx,o=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!o||o[0]||o[3])&&(!e.culling||!function(e,t,n){return d.copy(e.getBoundingRect()),e.transform&&d.applyTransform(e.transform),f.width=t,f.height=n,!d.intersect(f)}(e,this._width,this._height))){var a=e.__clipPaths,s=r.prevElClipPaths;s&&!function(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(a,s)||(s&&(i.restore(),r.prevElClipPaths=null,r.prevEl=null),a&&(i.save(),function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.setTransform(t),t.beginPath(),r.buildPath(t,r.shape),t.clip(),r.restoreTransform(t)}}(a,i),r.prevElClipPaths=a)),e.beforeBrush&&e.beforeBrush(i),e.brush(i,r.prevEl||null),r.prevEl=e,e.afterBrush&&e.afterBrush(i)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new l("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?i.merge(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&i.merge(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=null,s=-1,l=this._domRoot;if(n[e])o("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var u=a.dom;u.nextSibling?l.insertBefore(t.dom,u.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else o("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var n,r,i=this._zlevelList;for(r=0;r<i.length;r++)n=i[r],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],(n=this._layers[r]).__builtin__&&e.call(t,n,r)},eachOtherLayer:function(e,t){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],(n=this._layers[r]).__builtin__||e.call(t,n,r)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i=null,a=0;for(n=0;n<e.length;n++){var s,l,u=(s=e[n]).zlevel;r!==u&&(r=u,a=0),s.incremental?((l=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):l=this.getLayer(u+(a>0?.01:0),this._needsManuallyCompositing),l.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+l.id),l!==i&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,t(n),i=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}t(n),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()}
77,setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?i.merge(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===e||o===e+.01){var a=this._layers[o];i.merge(a,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(i.indexOf(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);i.each(this._progressiveLayers,(function(n){n.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new l("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,r=t.dom.height,i=t.ctx;this.eachLayer((function(e){e.__builtin__?i.drawImage(e.dom,0,0,n,r):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var u=a[s];this._doPaintEl(u,t,!0,o)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||p(s[n])||p(a.style[n]))-(p(s[i])||0)-(p(s[o])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=e.getBoundingRect(),o=e.style,a=o.shadowBlur*t,s=o.shadowOffsetX*t,l=o.shadowOffsetY*t,u=o.hasStroke()?o.lineWidth:0,h=Math.max(u/2,-s+a),p=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),m=i.width+h+p,g=i.height+d+f;n.width=m*t,n.height=g*t,r.scale(t,t),r.clearRect(0,0,m,g),r.dpr=t;var y={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[h-i.x,d-i.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(r);var v=new c({style:{x:0,y:0,image:n}});return null!=y.position&&(v.position=e.position=y.position),null!=y.rotation&&(v.rotation=e.rotation=y.rotation),null!=y.scale&&(v.scale=e.scale=y.scale),v}};var g=m;e.exports=g},function(e,t,n){var r=n(1),i=n(100).devicePixelRatio,o=n(120),a=n(169);function s(){return!1}function l(e,t,n){var i=r.createCanvas(),o=t.getWidth(),a=t.getHeight(),s=i.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=o*n,i.height=a*n,i}var u=function(e,t,n){var o;n=n||i,"string"==typeof e?o=l(e,t,n):r.isObject(e)&&(e=(o=e).id),this.id=e,this.dom=o;var a=o.style;a&&(o.onselectstart=s,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a.padding=0,a.margin=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=l("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;
77i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,r=this.dom,i=this.ctx,s=r.width,l=r.height,u=(t=t||this.clearColor,this.motionBlur&&!e),c=this.lastFrameAlpha,h=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,s/h,l/h)),i.clearRect(0,0,s,l),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||o.getGradient(i,t,{x:0,y:0,width:s,height:l}),t.__canvasGradient=n):t.image&&(n=a.prototype.getCanvasPattern.call(t,i)),i.save(),i.fillStyle=n||t,i.fillRect(0,0,s,l),i.restore());if(u){var p=this.domBack;i.save(),i.globalAlpha=c,i.drawImage(p,0,0,s,l),i.restore()}}};var c=u;e.exports=c},function(e,t,n){var r=n(1),i=n(38).Dispatcher,o=n(170),a=n(166),s=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,i.call(this)};s.prototype={constructor:s,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=r.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,r=n.length,i=[],o=[],a=0;a<r;a++){var s=n[a],l=s.step(e,t);l&&(i.push(l),o.push(s))}for(a=0;a<r;)n[a]._needsRemove?(n[a]=n[r-1],n.pop(),r--):a++;r=i.length;for(a=0;a<r;a++)o[a].fire(i[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;this._running=!0,o((function t(){e._running&&(o(t),!e._paused&&e._update())}))},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){var n=new a(e,(t=t||{}).loop,t.getter,t.setter);return this.addAnimator(n),n}},r.mixin(s,i);var l=s;e.exports=l},function(e,t,n){var r,i,o=n(38),a=o.addEventListener,s=o.removeEventListener,l=o.normalizeEvent,u=o.getNativeEvent,c=n(1),h=n(57),p=n(22),d=p.domSupported,f=(i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:c.map(r,(function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}))}),m=["mousemove","mouseup"],g=["pointermove","pointerup"];function y(e){return"mousewheel"===e&&p.browser.firefox?"DOMMouseScroll":e}function v(e){var t=e.pointerType;return"pen"===t||"touch"===t}function _(e){e&&(e.zrByTouch=!0)}function x(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}function b(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=c.noop;var S={mousedown:function(e){e=l(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=l(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||I(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=l(this.dom,e),I(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=l(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=x(this,t),this.trigger("mouseout",e)},touchstart:function(e){_(e=l(this.dom,e)),this._lastTouchMoment=ne
vendor: 1,643 bytes, line 77
77w Date,this.handler.processGesture(e,"start"),S.mousemove.call(this,e),S.mousedown.call(this,e)},touchmove:function(e){_(e=l(this.dom,e)),this.handler.processGesture(e,"change"),S.mousemove.call(this,e)},touchend:function(e){_(e=l(this.dom,e)),this.handler.processGesture(e,"end"),S.mouseup.call(this,e),+new Date-this._lastTouchMoment<300&&S.click.call(this,e)},pointerdown:function(e){S.mousedown.call(this,e)},pointermove:function(e){v(e)||S.mousemove.call(this,e)},pointerup:function(e){S.mouseup.call(this,e)},pointerout:function(e){v(e)||S.mouseout.call(this,e)}};c.each(["click","mousewheel","dblclick","contextmenu"],(function(e){S[e]=function(t){t=l(this.dom,t),this.trigger(e,t)}}));var k={pointermove:function(e){v(e)||k.mousemove.call(this,e)},pointerup:function(e){k.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;I(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function T(e,t){var n=t.domHandlers;p.pointerEventsSupported?c.each(f.pointer,(function(r){E(t,r,(function(t){n[r].call(e,t)}))})):(p.touchEventsSupported&&c.each(f.touch,(function(r){E(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),c.each(f.mouse,(function(r){E(t,r,(function(i){i=u(i),t.touching||n[r].call(e,i)}))})))}function M(e,t){function n(n){E(t,n,(function(r){r=u(r),x(e,r.target)||(r=function(e,t){return l(e.dom,new b(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}
77),{capture:!0})}p.pointerEventsSupported?c.each(g,n):p.touchEventsSupported||c.each(m,n)}function E(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,a(e.domTarget,y(t),n,r)}function C(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&s(e.domTarget,y(n),t[n],e.listenerOpts[n]);e.mounted={}}function I(e,t){if(e._mayPointerCapture=null,d&&e._pointerCapturing^t){e._pointerCapturing=t;var n=e._globalHandlerScope;t?M(e,n):C(n)}}function A(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function P(e,t){h.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new A(e,S),d&&(this._globalHandlerScope=new A(document,k)),this._pointerCapturing=!1,this._mayPointerCapture=null,T(this,this._localHandlerScope)}var D=P.prototype;D.dispose=function(){C(this._localHandlerScope),d&&C(this._globalHandlerScope)},D.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},c.mixin(P,h);var L=P;e.exports=L},function(e,t,n){var r=n(69)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),i={getLineStyle:function(e){var t=r(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),r=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[r,r]:[n,n])}};e.exports=i},function(e,t,n){var r=n(69)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),i={getAreaStyle:function(e,t){return r(this,e,t)}};e.exports=i},function(e,t,n){var r=n(32),i=n(12),o=["textStyle","color"],a={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(o):null)},getFont:function(){return i.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return r.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=a},function(e,t,n){var r=n(70),i=n(175),o=n(325),a=n(176),s=n(326),l=n(177).normalizeRadian,u=n(48),c=n(178),h=r.CMD,p=2*Math.PI;var d=[-1,-1,-1],f=[-1,-1];function m(e,t,n,r,i,o,a,s,l,c){if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var h,p=u.cubicRootAt(t,r,o,s,c,d);if(0===p)return 0;for(var m,g,y=0,v=-1,_=0;_<p;_++){var x=d[_],b=0===x||1===x?.5:1;u.cubicAt(e,n,i,a,x)<l||(v<0&&(v=u.cubicExtrema(t,r,o,s,f),f[1]<f[0]&&v>1&&(h=void 0,h=f[0],f[0]=f[1],f[1]=h),m=u.cubicAt(t,r,o,s,f[0]),v>1&&(g=u.cubicAt(t,r,o,s,f[1]))),2===v?x<f[0]?y+=m<t?b:-b:x<f[1]?y+=g<m?b:-b:y+=s<g?b:-b:x<f[0]?y+=m<t?b:-b:y+=s<m?b:-b)}return y}
77function g(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=u.quadraticRootAt(t,r,o,s,d);if(0===l)return 0;var c=u.quadraticExtremum(t,r,o);if(c>=0&&c<=1){for(var h=0,p=u.quadraticAt(t,r,o,c),f=0;f<l;f++){var m=0===d[f]||1===d[f]?.5:1;u.quadraticAt(e,n,i,d[f])<a||(d[f]<c?h+=p<t?m:-m:h+=o<p?m:-m)}return h}m=0===d[0]||1===d[0]?.5:1;return u.quadraticAt(e,n,i,d[0])<a?0:o<t?m:-m}function y(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);d[0]=-u,d[1]=u;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c%p<1e-4){r=0,i=p;var h=o?1:-1;return a>=d[0]+e&&a<=d[1]+e?h:0}if(o){u=r;r=l(i),i=l(u)}else r=l(r),i=l(i);r>i&&(i+=p);for(var f=0,m=0;m<2;m++){var g=d[m];if(g+e>a){var y=Math.atan2(s,g);h=o?1:-1;y<0&&(y=p+y),(y>=r&&y<=i||y+p>=r&&y+p<=i)&&(y>Math.PI/2&&y<1.5*Math.PI&&(h=-h),f+=h)}}return f}function v(e,t,n,r,l){for(var u,p,d=0,f=0,v=0,_=0,x=0,b=0;b<e.length;){var w=e[b++];switch(w===h.M&&b>1&&(n||(d+=c(f,v,_,x,r,l))),1===b&&(_=f=e[b],x=v=e[b+1]),w){case h.M:f=_=e[b++],v=x=e[b++];break;case h.L:if(n){if(i.containStroke(f,v,e[b],e[b+1],t,r,l))return!0}else d+=c(f,v,e[b],e[b+1],r,l)||0;f=e[b++],v=e[b++];break;case h.C:if(n){if(o.containStroke(f,v,e[b++],e[b++],e[b++],e[b++],e[b],e[b+1],t,r,l))return!0}else d+=m(f,v,e[b++],e[b++],e[b++],e[b++],e[b],e[b+1],r,l)||0;f=e[b++],v=e[b++];break;case h.Q:if(n){if(a.containStroke(f,v,e[b++],e[b++],e[b],e[b+1],t,r,l))return!0}else d+=g(f,v,e[b++],e[b++],e[b],e[b+1],r,l)||0;f=e[b++],v=e[b++];break;case h.A:var S=e[b++],k=e[b++],T=e[b++],M=e[b++],E=e[b++],C=e[b++];b+=1;var I=1-e[b++],A=Math.cos(E)*T+S,P=Math.sin(E)*M+k;b>1?d+=c(f,v,A,P,r,l):(_=A,x=P);var D=(r-S)*M/T+S;if(n){if(s.containStroke(S,k,M,E,E+C,I,t,D,l))return!0}else d+=y(S,k,M,E,E+C,I,D,l);f=Math.cos(E+C)*T+S,v=Math.sin(E+C)*M+k;break;case h.R:_=f=e[b++],x=v=e[b++];A=_+e[b++],P=x+e[b++];if(n){if(i.containStroke(_,x,A,x,t,r,l)||i.containStroke(A,x,A,P,t,r,l)||i.containStroke(A,P,_,P,t,r,l)||i.containStroke(_,P,_,x,t,r,l))return!0}else d+=c(A,x,A,P,r,l),d+=c(_,P,_,x,r,l);break;case h.Z:if(n){if(i.containStroke(f,v,_,x,t,r,l))return!0}else d+=c(f,v,_,x,r,l);f=_,v=x}}return n||(u=v,p=x,Math.abs(u-p)<1e-4)||(d+=c(f,v,_,x,r,l)||0),0!==d}t.contain=function(e,t,n){return v(e,0,!1,t,n)},t.containStroke=function(e,t,n,r){return v(e,t,!0,n,r)}},function(e,t,n){var r=n(48);t.containStroke=function(e,t,n,i,o,a,s,l,u,c,h){if(0===u)return!1;var p=u;return!(h>t+p&&h>i+p&&h>a+p&&h>l+p||h<t-p&&h<i-p&&h<a-p&&h<l-p||c>e+p&&c>n+p&&c>o+p&&c>s+p||c<e-p&&c<n-p&&c<o-p&&c<s-p)&&r.cubicProjectPoint(e,t,n,i,o,a,s,l,c,h,null)<=p/2}},function(e,t,n){var r=n(177).normalizeRadian,i=2*Math.PI;t.containStroke=function(e,t,n,o,a,s,l,u,c){if(0===l)return!1;var h=l;u-=e,c-=t;var p=Math.sqrt(u*u+c*c);if(p-h>n||p+h<n)return!1;if(Math.abs(o-a)%i<1e-4)return!0;if(s){var d=o;o=r(a),a=r(d)}else o=r(o),a=r(a);o>a&&(a+=i);var f=Math.atan2(c,u);return f<0&&(f+=i),f>=o&&f<=a||f+i>=o&&f+i<=a}},function(e,t,n){var r=n(70),i=n(18).applyTransform,o=r.CMD,a=[[],[],[]],s=Math.sqrt,l=Math.atan2;e.exports=function(e,t){var n,r,u,c,h,p=e.data,d=o.M,f=o.C,m=o.L,g=o.R,y=o.A,v=o.Q;for(u=0,c=0;u<p.length;){switch(n=p[u++],c=u,r=0,n){case d:case m:r=1;break;case f:r=3;break;case v:r=2;break;case y:var _=t[4],x=t[5],b=s(t[0]*t[0]+t[1]*t[1]),w=s(t[2]*t[2]+t[3]*t[3]),S=l(-t[1]/w,t[0]/b);p[u]*=b,p[u++]+=_,p[u]*=w,p[u++]+=x,p[u++]*=b,p[u++]*=w,p[u++]+=S,p[u++]+=S,c=u+=2;break;case g:k[0]=p[u++],k[1]=p[u++],i(k,k,t),p[c++]=k[0],p[c++]=k[1],k[0]+=p[u++],k[1]+=p[u++],i(k,k,t),p[c++]=k[0],p[c++]=k[1]}for(h=0;h<r;h++){var k;(k=a[h])[0]=p[u++],k[1]=p[u++],i(k,k,t),p[c++]=k[0],p[c++]=k[1]}}}},function(e,t,n){var r=n(20),i=n(180),o=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i(r.prototype.brush),buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,l=t.clockwise,u=Math.cos(a),c=Math.sin(a);
77e.moveTo(u*i+n,c*i+r),e.lineTo(u*o+n,c*o+r),e.arc(n,r,o,a,s,!l),e.lineTo(Math.cos(s)*i+n,Math.sin(s)*i+r),0!==i&&e.arc(n,r,i,s,a,l),e.closePath()}});e.exports=o},function(e,t,n){var r=n(20).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)}});e.exports=r},function(e,t,n){var r=n(18).distance;function i(e,t,n,r,i,o,a){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*i+t}e.exports=function(e,t){for(var n=e.length,o=[],a=0,s=1;s<n;s++)a+=r(e[s-1],e[s]);var l=a/2;for(l=l<n?n:l,s=0;s<l;s++){var u,c,h,p=s/(l-1)*(t?n:n-1),d=Math.floor(p),f=p-d,m=e[d%n];t?(u=e[(d-1+n)%n],c=e[(d+1)%n],h=e[(d+2)%n]):(u=e[0===d?d:d-1],c=e[d>n-2?n-1:d+1],h=e[d>n-3?n-1:d+2]);var g=f*f,y=f*g;o.push([i(u[0],m[0],c[0],h[0],f,g,y),i(u[1],m[1],c[1],h[1],f,g,y)])}return o}},function(e,t,n){var r=n(18),i=r.min,o=r.max,a=r.scale,s=r.distance,l=r.add,u=r.clone,c=r.sub;e.exports=function(e,t,n,r){var h,p,d,f,m=[],g=[],y=[],v=[];if(r){d=[1/0,1/0],f=[-1/0,-1/0];for(var _=0,x=e.length;_<x;_++)i(d,d,e[_]),o(f,f,e[_]);i(d,d,r[0]),o(f,f,r[1])}for(_=0,x=e.length;_<x;_++){var b=e[_];if(n)h=e[_?_-1:x-1],p=e[(_+1)%x];else{if(0===_||_===x-1){m.push(u(e[_]));continue}h=e[_-1],p=e[_+1]}c(g,p,h),a(g,g,t);var w=s(b,h),S=s(b,p),k=w+S;0!==k&&(w/=k,S/=k),a(y,g,-w),a(v,g,S);var T=l([],b,y),M=l([],b,v);r&&(o(T,T,d),i(T,T,f),o(M,M,d),i(M,M,f)),m.push(T),m.push(M)}return n&&m.push(m.shift()),m}},function(e,t,n){var r=n(20),i=n(18),o=n(48),a=o.quadraticSubdivide,s=o.cubicSubdivide,l=o.quadraticAt,u=o.cubicAt,c=o.quadraticDerivativeAt,h=o.cubicDerivativeAt,p=[];function d(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?h:u)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?h:u)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?c:l)(e.x1,e.cpx1,e.x2,t),(n?c:l)(e.y1,e.cpy1,e.y2,t)]}var f=r.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,h=t.cpy2,d=t.percent;0!==d&&(e.moveTo(n,r),null==c||null==h?(d<1&&(a(n,l,i,d,p),l=p[1],i=p[2],a(r,u,o,d,p),u=p[1],o=p[2]),e.quadraticCurveTo(l,u,i,o)):(d<1&&(s(n,l,c,i,d,p),l=p[1],c=p[2],i=p[3],s(r,u,h,o,d,p),u=p[1],h=p[2],o=p[3]),e.bezierCurveTo(l,u,c,h,i,o)))},pointAt:function(e){return d(this.shape,e,!1)},tangentAt:function(e){var t=d(this.shape,e,!0);return i.normalize(t,t)}});e.exports=f},function(e,t,n){var r=n(20).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)}});e.exports=r},function(e,t,n){var r=n(20),i=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),r.prototype.getBoundingRect.call(this)}});e.exports=i},function(e,t,n){var r=n(1),i=n(103),o=function(e,t,n,r,o){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,i.call(this,r)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(69)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),i={getItemStyle:function(e,t){var n=r(this,e,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=i},function(e,t){e.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(e,t){var n="";"undefined"!=typeof navigator&&(n=navigator.platform||"");var r={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=r},function(e,t,n){var r=n(1),i=n(14),o=n(24),a=r.each,s=r.clone,l=r.map,u=r.merge,c=/^(min|max)?(.+)$/;function h(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function p(e,t,n){var i,o,s=[],l=[],u=e.timeline;if(e.baseOption&&(o=e.baseOption),(u||e.options)&&(o=o||{},s=(e.options||[]).slice()),e.media){o=o||{};var c=e.media;a(c,(function(e){e&&e.option&&(e.query?l.push(e):i||(i=e))}))}return o||(o=e),o.timeline||(o.timeline=u),a([o].concat(s).concat(r.map(l,(function(e){return e.option}))),(function(e){a(t,(function(t){t(e,n)}))})),{baseOption:o,timelineOptions:s,mediaDefault:i,mediaList:l}}function d(e,t,n){var i={width:t,height:n,aspectratio:t/n},o=!0;return r.each(e,(function(e,t){var n=t.match(c);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,r)||(o=!1)}})),o}h.prototype={constructor:h,setOption:function(e,t){e&&r.each(i.normalizeToArray(e.series),(function(e){e&&e.data&&r.isTypedArray(e.data)&&r.setAsPrimitive(e.data)})),e=s(e);var n,c,h=this._optionBackup,d=p.call(this,e,t,!h);this._newBaseOption=d.baseOption,h?(n=h.baseOption,c=d.baseOption,a(c=c||{},(function(e,t){if(null!=e){var r=n[t];if(o.hasClass(t)){e=i.normalizeToArray(e),r=i.normalizeToArray(r);var a=i.mappingToExists(r,e);n[t]=l(a,(function(e){return e.option&&e.exist?u(e.exist,e.option,!0):e.exist||e.option}))}else n[t]=u(r,e,!0)}})),d.timelineOptions.length&&(h.timelineOptions=d.timelineOptions),d.mediaList.length&&(h.mediaList=d.mediaList),d.mediaDefault&&(h.mediaDefault=d.mediaDefault)):this._optionBackup=d},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=s(n[r.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,u=[],c=[];if(!o.length&&!a)return c;for(var h=0,p=o.length;h<p;h++)d(o[h].query,r,i)&&u.push(h);return!u.length&&a&&(u=[-1]),u.length&&(t=u,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(c=l(u,(function(e){return s(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=u,c}};var f=h;e.exports=f},function(e,t,n){var r=n(1),i=r.each,o=r.isArray,a=r.isObject,s=n(341),l=n(14).normalizeToArray;function u(e){i(c,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];e.exports=function(e,t){s(e,t),e.series=l(e.series),i(e.series,(function(e){if(a(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var n=function(e,t){t=t.split(",");for(var n=e,r=0;r<t.length&&null!=(n=n&&n[t[r]]);r++);return n}(e,"pointer.color");null!=n&&function(e,t,n,r){t=t.split(",");for(var i,o=e,a=0;a<t.length-1;a++)null==o[i=t[a]]&&(o[i]={}),o=o[i];(r||null==o[t[a]])&&(o[t[a]]=n)}(e,"itemStyle.color",n)}u(e)}})),e.dataRange&&(e.visualMap=e.dataRange),i(h,(function(t){var n=e[t];n&&(o(n)||(n=[n]),i(n,(function(e){u(e)})))}
77))}},function(e,t,n){var r=n(1),i=n(14),o=r.each,a=r.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=s.length;n<i;n++){var o=s[n],a=t.normal,l=t.emphasis;a&&a[o]&&(e[o]=e[o]||{},e[o].normal?r.merge(e[o].normal,a[o]):e[o].normal=a[o],a[o]=null),l&&l[o]&&(e[o]=e[o]||{},e[o].emphasis?r.merge(e[o].emphasis,l[o]):e[o].emphasis=l[o],l[o]=null)}}function u(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,o=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,r.defaults(e[t],i)):e[t]=i),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o)}}function c(e){u(e,"itemStyle"),u(e,"lineStyle"),u(e,"areaStyle"),u(e,"label"),u(e,"labelLine"),u(e,"upperLabel"),u(e,"edgeLabel")}function h(e,t){var n=a(e)&&e[t],r=a(n)&&n.textStyle;if(r)for(var o=0,s=i.TEXT_STYLE_OPTIONS.length;o<s;o++){t=i.TEXT_STYLE_OPTIONS[o];r.hasOwnProperty(t)&&(n[t]=r[t])}}function p(e){e&&(c(e),h(e,"label"),e.emphasis&&h(e.emphasis,"label"))}function d(e){return r.isArray(e)?e:e?[e]:[]}function f(e){return(r.isArray(e)?e[0]:e)||{}}e.exports=function(e,t){o(d(e.series),(function(e){a(e)&&function(e){if(a(e)){l(e),c(e),h(e,"label"),h(e,"upperLabel"),h(e,"edgeLabel"),e.emphasis&&(h(e.emphasis,"label"),h(e.emphasis,"upperLabel"),h(e.emphasis,"edgeLabel")),(n=e.markPoint)&&(l(n),p(n)),(i=e.markLine)&&(l(i),p(i));var t=e.markArea;t&&p(t);var n,i,o=e.data;if("graph"===e.type){o=o||e.nodes;var s=e.links||e.edges;if(s&&!r.isTypedArray(s))for(var d=0;d<s.length;d++)p(s[d]);r.each(e.categories,(function(e){c(e)}))}if(o&&!r.isTypedArray(o))for(d=0;d<o.length;d++)p(o[d]);if((n=e.markPoint)&&n.data){var f=n.data;for(d=0;d<f.length;d++)p(f[d])}if((i=e.markLine)&&i.data){var m=i.data;for(d=0;d<m.length;d++)r.isArray(m[d])?(p(m[d][0]),p(m[d][1])):p(m[d])}"gauge"===e.type?(h(e,"axisLabel"),h(e,"title"),h(e,"detail")):"treemap"===e.type?(u(e.breadcrumb,"itemStyle"),r.each(e.levels,(function(e){c(e)}))):"tree"===e.type&&c(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(t){o(d(e[t]),(function(e){e&&(h(e,"axisLabel"),h(e.axisPointer,"label"))}))})),o(d(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;h(t,"axisLabel"),h(t&&t.axisPointer,"label")})),o(d(e.calendar),(function(e){u(e,"itemStyle"),h(e,"dayLabel"),h(e,"monthLabel"),h(e,"yearLabel")})),o(d(e.radar),(function(e){h(e,"name")})),o(d(e.geo),(function(e){a(e)&&(p(e),o(d(e.regions),(function(e){p(e)})))})),o(d(e.timeline),(function(e){p(e),u(e,"label"),u(e,"itemStyle"),u(e,"controlStyle",!0);var t=e.data;r.isArray(t)&&r.each(t,(function(e){r.isObject(e)&&(u(e,"label"),u(e,"itemStyle"))}))})),o(d(e.toolbox),(function(e){u(e,"iconStyle"),o(e.feature,(function(e){u(e,"iconStyle")}))})),h(f(e.axisPointer),"label"),h(f(e.tooltip).axisPointer,"label")}},function(e,t,n){var r=n(1),i=r.createHashMap,o=r.each;function a(e){o(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=a.map(o,(function(o,l,u){var c,h,p=a.get(t.stackedDimension,u);if(isNaN(p))return i;s?h=a.getRawIndex(u):c=a.get(t.stackedByDimension,u);for(var d=NaN,f=n-1;f>=0;f--){var m=e[f];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,c)),h>=0){var g=m.data.getByRawIndex(m.stackResultDimension,h);if(p>=0&&g>0||p<=0&&g<0){p+=g,d=g;break}}}return r[0]=p,r[1]=d,r}));a.hostModel.setData(l),t.data=l}))}e.exports=function(e){var t=i();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(a)}},function(e,t,n){var r=n(103),i=n(1).isFunction,o={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),o=(e.visualColorAccessPath||"itemStyle.color").split("."),a=e.get(o),s=!i(a)||a instanceof r?null:a;a&&!s||(a=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",a);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=e.get(l);if(n.setVisual("borderColor",u),!t.isSeriesFiltered(e)){s&&n.each((function(t){n.setItemVisual(t,"color",s(e.getDataParams(t)))}));return{dataEach:n.hasItemOption?function(e,t){var n=e.getItemModel(t),r=n.get(o,!0),i=n.get(l,!0);null!=r&&e.setItemVisual(t,"color",r),null!=i&&e.setItemVisual(t,"borderColor",i)}:null}}}};e.exports=o},function(e,t,n){var r=n(1),i=n(50),o=n(60).retrieveRawValue;e.exports=function(e,t){var n=t.getModel("aria");if(n.get("show"))if(n.get("description"))e.setAttribute("aria-label",n.get("description"));else{var a=0;t.eachSeries((function(e,t){++a}),this);var s,l=n.get("data.maxCount")||10,u=n.get("series.maxCount")||10,c=Math.min(a,u);if(!(a<1)){var h=function(){var e=t.getModel("title").option;e&&e.length&&(e=e[0]);return e&&e.text}();s=h?d(f("general.withTitle"),{title:h}):f("general.withoutTitle");var p=[];s+=d(f(a>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:a}),t.eachSeries((function(e,t){if(t<c){var n,r=e.get("name"),s="series."+(a>1?"multiple":"single")+".";n=d(n=f(r?s+"withName":s+"withoutName"),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(v=e.subType,i.series.typeNames[v]||"自定义图")});var u=e.getData();window.data=u,u.count()>l?n+=d(f("data.partialData"),{displayCnt:l}):n+=f("data.allData");for(var h=[],m=0;m<u.count();m++)if(m<l){var g=u.getName(m),y=o(u,m);h.push(d(f(g?"data.withName":"data.withoutName"),{name:g,value:y}))}n+=h.join(f("data.separator.middle"))+f("data.separator.end"),p.push(n)}var v}
77)),s+=p.join(f("series.multiple.separator.middle"))+f("series.multiple.separator.end"),e.setAttribute("aria-label",s)}}function d(e,t){if("string"!=typeof e)return e;var n=e;return r.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function f(e){var t=n.get(e);if(null==t){for(var r=e.split("."),o=i.aria,a=0;a<r.length;++a)o=o[r[a]];return o}return t}}},function(e,t,n){var r=n(1),i=n(12),o=n(32),a=Math.PI;e.exports=function(e,t){t=t||{},r.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new i.Group,s=new i.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(s);var l=t.fontSize+" sans-serif",u=new i.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(u),t.showSpinner){var c=new i.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});c.animateShape(!0).when(1e3,{endAngle:3*a/2}).start("circularInOut"),c.animateShape(!0).when(1e3,{startAngle:3*a/2}).delay(300).start("circularInOut"),n.add(c)}return n.resize=function(){var n=o.getWidth(t.text,l),r=t.showSpinner?t.spinnerRadius:0,i=(e.getWidth()-2*r-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),a=e.getHeight()/2;t.showSpinner&&c.setShape({cx:i,cy:a}),u.setShape({x:i-r,y:a-r,width:2*r,height:2*r}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}},function(e,t,n){var r=n(1),i=r.each,o=r.map,a=r.isFunction,s=r.createHashMap,l=r.noop,u=n(127).createTask,c=n(85).getUID,h=n(173),p=n(186),d=n(14).normalizeToArray;function f(e,t,n,r){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice();this._allHandlers=n.concat(r),this._stageTaskMap=s()}var m=f.prototype;function g(e,t,n,r,o){var a;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}o=o||{},i(t,(function(t,i){if(!o.visualType||o.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(e){s(o,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),y(c,r);var d=e.getPerformArgs(c,o.block);p.each((function(e){e.perform(d)})),a|=c.perform(d)}else u&&u.each((function(i,l){s(o,i)&&i.dirty();var u=e.getPerformArgs(i,o.block);u.skip=!t.performRawSeries&&n.isSeriesFiltered(i.context.model),y(i,r),a|=i.perform(u)}))}})),e.unfinished|=a}m.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},m.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},m.getPipeline=function(e){return this._pipelineMap.get(e)},m.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},m.restorePipelines=function(e){var t=this,n=t._pipelineMap=s();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),E(t,e,e.dataTask)}))},m.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;i(this._allHandlers,(function(r){var o=e.get(r.uid)||e.set(r.uid,[]);r.reset&&function(e,t,n,r,i){var o=n.seriesTaskMap||(n.seriesTaskMap=s()),a=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):a?r.eachRawSeriesByType(a,c):l&&l(r,i).each(c);function c(n){var a=n.uid,s=o.get(a)||o.set(a,u({plan:w,reset:S,count:M}));s.context={model:n,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},E(e,n,s)}var h=e._pipelineMap;o.each((function(e,t){h.get(t)||(e.dispose(),o.removeKey(t))}))}(this,r,o,t,n),r.overallReset&&function(e,t,n,r,o){var a=n.overallTask=n.overallTask||u({reset:v});a.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:e};var l=a.agentStubMap=a.agentStubMap||s(),c=t.seriesType,h=t.getTargetSeries,p=!0,d=t.modifyOutputEnd;c?r.eachRawSeriesByType(c,f):h?h(r,o).each(f):(p=!1,i(r.getSeries(),f));function f(t){var n=t.uid,r=l.get(n);r||(r=l.set(n,u({reset:_,onDirty:b})),a.dirty()),r.context={model:t,overallProgress:p,modifyOutputEnd:d},r.agent=a,r.__block=p,E(e,t,r)}var m=e._pipelineMap;l.each((function(e,t){m.get(t)||(e.dispose(),a.dirty(),l.removeKey(t))}))}(this,r,o,t,n)}),this)},m.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,E(this,t,i)},m.performDataProcessorTasks=function(e,t){g(this,this._dataProcessorHandlers,e,t,{block:!0})},m.performVisualTasks=function(e,t,n){g(this,this._visualHandlers,e,t,n)},m.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},m.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var y=m.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function v(e){e.overallReset(e.ecModel,e.api,e.payload)}function _(e,t){return e.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function b(){this.agent&&this.agent.dirty()}function w(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function S(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=d(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?o(t,(function(e,t){return T(t)})):k}var k=T(0);function T(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function M(e){return e.data.count()}function E(e,t,n){var r=t.uid,i=e._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i}function C(e){I=null;try{e(A,P)}catch(e){}return I}f.wrapStageHandler=function(e,t){return a(e)&&(e={overallReset:e,seriesType:C(e)}),e.uid=c("stageHandler"),t&&(e.visualType=t),e};var I,A={},P={};function D(e,t){for(var n in t.prototype)e[n]=l}D(A,h),D(P,p),A.eachSeriesByType=A.eachRawSeriesByType=function(e){I=e},A.eachComponent=function(e){"series"===e.mainType&&e.subType&&(I=e.subType)};var L=f;e.exports=L},function(e,t){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],r={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};e.exports=r},function(e,t){var n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"},label:{color:"#000"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}}
77,timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var i=r;e.exports=i},function(e,t,n){var r=n(20).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()}});e.exports=r},function(e,t,n){var r=n(1),i=n(44),o=n(37),a=n(73),s=n(23),l=n(16);l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var u=n(41),c=u.enableDataStack,h=u.isDimensionStacked,p=u.getStackedDimension,d=n(191);t.completeDimensions=d;var f=n(72);t.createDimensions=f;var m=n(35);t.createSymbol=m.createSymbol;var g={isDimensionStacked:h,enableDataStack:c,getStackedDimension:p};t.createList=function(e){return i(e.getSource(),e)},t.dataStack=g,t.createScale=function(e,t){var n=t;s.isInstance(t)||(n=new s(t),r.mixin(n,a));var i=o.createScaleByModel(n);return i.setExtent(e[0],e[1]),o.niceScaleExtent(i,n),i},t.mixinAxisModelCommonMethods=function(e){r.mixin(e,a)}},function(e,t,n){n(15).__DEV__;var r=n(1),i=r.createHashMap,o=(r.retrieve,r.each);function a(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=i(),this.categoryAxisMap=i(),this.firstCategoryDimIndex=null}var s={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis")[0],o=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),l(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),l(o)&&(r.set("y",o),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",i),l(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar")[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),l(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),l(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();o(a.parallelAxisIndex,(function(e,o){var a=i.getComponent("parallelAxis",e),u=s[o];n.set(u,a),l(a)&&null==t.firstCategoryDimIndex&&(r.set(u,a),t.firstCategoryDimIndex=o)}))}};function l(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=function(e){var t=e.get("coordinateSystem"),n=new a(t),r=s[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}},function(e,t,n){var r=n(1),i=n(105),o=n(192),a=i.prototype,s=i.extend({type:"ordinal",init:function(e,t){e&&!r.isArray(e)||(e=new o({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:r.noop,niceExtent:r.noop});s.create=function(){return new s};var l=s;e.exports=l},function(e,t,n){var r=n(1),i=n(13),o=n(17),a=n(193),s=n(106),l=s.prototype,u=Math.ceil,c=Math.floor,h=864e5,p=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);
77return o.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=h,t[1]+=h),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-h}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=i.round(c(t[0]/r)*r)),e.fixMax||(t[1]=i.round(u(t[1]/r)*r))},niceTicks:function(e,t,n){e=e||10;var r=this._extent,o=r[1]-r[0],s=o/e;null!=t&&s<t&&(s=t),null!=n&&s>n&&(s=n);var l=d.length,h=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(d,s,0,l),p=d[Math.min(h,l-1)],f=p[1];if("year"===p[0]){var m=o/f;f*=i.nice(m/e,!0)}var g=this.getSetting("useUTC")?0:60*new Date(+r[0]||+r[1]).getTimezoneOffset()*1e3,y=[Math.round(u((r[0]-g)/f)*f+g),Math.round(c((r[1]-g)/f)*f+g)];a.fixExtent(y,r),this._stepLvl=p,this._interval=f,this._niceExtent=y},parse:function(e){return+i.parseDate(e)}});r.each(["contain","normalize"],(function(e){p.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var d=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",h],["MM-dd\nyyyy",2*h],["MM-dd\nyyyy",3*h],["MM-dd\nyyyy",4*h],["MM-dd\nyyyy",5*h],["MM-dd\nyyyy",6*h],["week",7*h],["MM-dd\nyyyy",10*h],["week",14*h],["week",21*h],["month",31*h],["week",42*h],["month",62*h],["week",70*h],["quarter",95*h],["month",31*h*4],["month",31*h*5],["half-year",380*h/2],["month",31*h*8],["month",31*h*10],["year",380*h]];p.create=function(e){return new p({useUTC:e.ecModel.get("useUTC")})};var f=p;e.exports=f},function(e,t,n){var r=n(1),i=n(32),o=n(14).makeInner,a=n(37),s=a.makeLabelFormatter,l=a.getOptionCategoryInterval,u=a.shouldShowAllLabels,c=o();function h(e,t){var n,i,o=p(e,"labels"),a=l(t),s=d(o,a);return s||(r.isFunction(a)?n=g(e,a):(i="auto"===a?function(e){var t=c(e).autoInterval;return null!=t?t:c(e).autoInterval=e.calculateCategoryInterval()}(e):a,n=m(e,i)),f(o,a,{labels:n,labelCategoryInterval:i}))}function p(e,t){return c(e)[t]||(c(e)[t]=[])}function d(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function f(e,t,n){return e.push({key:t,value:n}),n}function m(e,t,n){var r=s(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),h=o[0],p=i.count();0!==h&&c>1&&p/c>2&&(h=Math.round(Math.ceil(h/c)*c));var d=u(e),f=a.get("showMinLabel")||d,m=a.get("showMaxLabel")||d;f&&h!==o[0]&&y(o[0]);for(var g=h;g<=o[1];g+=c)y(g);function y(e){l.push(n?e:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:e})}return m&&g-c!==o[1]&&y(o[1]),l}function g(e,t,n){var i=e.scale,o=s(e),a=[];return r.each(i.getTicks(),(function(e){var r=i.getLabel(e);t(e,r)&&a.push(n?e:{formattedLabel:o(e),rawLabel:r,tickValue:e})})),a}t.createAxisLabels=function(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=h(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=s(e);return{labels:r.map(t,(function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}(e)},t.createAxisTicks=function(e,t){return"category"===e.type?function(e,t){var n,i,o=p(e,"ticks"),a=l(t),s=d(o,a);if(s)return s;t.get("show")&&!e.scale.isBlank()||(n=[]);if(r.isFunction(a))n=g(e,a,!0);else if("auto"===a){var u=h(e,e.getLabelModel());i=u.labelCategoryInterval,n=r.map(u.labels,(function(e){return e.tickValue}))}else n=m(e,i=a,!0);return f(o,a,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:e.scale.getTicks()}},t.calculateCategoryInterval=function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=s(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,a=o.getExtent(),l=o.count();if(a[1]-a[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));
77for(var h=a[0],p=e.dataToCoord(h+1)-e.dataToCoord(h),d=Math.abs(p*Math.cos(r)),f=Math.abs(p*Math.sin(r)),m=0,g=0;h<=a[1];h+=u){var y,v,_=i.getBoundingRect(n(h),t.font,"center","top");y=1.3*_.width,v=1.3*_.height,m=Math.max(m,y,7),g=Math.max(g,v,7)}var x=m/d,b=g/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),S=c(e.model),k=e.getExtent(),T=S.lastAutoInterval,M=S.lastTickCount;return null!=T&&null!=M&&Math.abs(T-w)<=1&&Math.abs(M-l)<=1&&T>w&&S.axisExtend0===k[0]&&S.axisExtend1===k[1]?w=T:(S.lastTickCount=l,S.lastAutoInterval=w,S.axisExtend0=k[0],S.axisExtend1=k[1]),w}},function(e,t,n){var r=n(9);n(356),n(357);var i=n(62),o=n(91),a=n(359);n(92),r.registerVisual(i("line","circle","line")),r.registerLayout(o("line")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a("line"))},function(e,t,n){n(15).__DEV__;var r=n(44),i=n(25).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=i},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(84).fromPoints,o=n(89),a=n(108),s=n(358),l=n(12),u=n(14),c=n(199),h=c.Polyline,p=c.Polygon,d=n(40),f=n(198),m=f.prepareDataCoordInfo,g=f.getStackedOnPoint,y=n(90),v=y.createGridClipPath,_=y.createPolarClipPath;function x(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r[0]!==i[0]||r[1]!==i[1])return}return!0}}function b(e,t){var n=[],r=[],o=[],a=[];return i(e,n,r),i(t,o,a),Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]))}function w(e){return"number"==typeof e?e:e?.5:0}function S(e,t,n){for(var r=t.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,o=[],a=0;a<e.length-1;a++){var s=e[a+1],l=e[a];o.push(l);var u=[];switch(n){case"end":u[i]=s[i],u[1-i]=l[1-i],o.push(u);break;case"middle":var c=(l[i]+s[i])/2,h=[];u[i]=h[i]=c,u[1-i]=l[1-i],h[1-i]=s[1-i],o.push(u),o.push(h);break;default:u[i]=l[i],u[1-i]=s[1-i],o.push(u)}}return e[a]&&o.push(e[a]),o}function k(e,t,n){var i=e.get("showAllSymbol"),o="auto"===i;if(!i||o){var s=n.getAxesByScale("ordinal")[0];if(s&&(!o||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),s=0;s<i;s+=o)if(1.5*a.getSymbolSize(t,s)[e.isHorizontal()?1:0]>r)return!1;return!0}(s,t))){var l=t.mapDimension(s.dim),u={};return r.each(s.getViewLabels(),(function(e){u[e.tickValue]=1})),function(e){return!u.hasOwnProperty(t.get(l,e))}}}}function T(e,t,n){if("cartesian2d"===e.type){var r=e.getBaseAxis().isHorizontal(),i=v(e,t,n);if(!n.get("clip",!0)){var o=i.shape,a=Math.max(o.width,o.height);r?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return i}return _(e,t,n)}var M=d.extend({type:"line",init:function(){var e=new l.Group,t=new o;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=a.mapArray(a.getItemLayout),h="polar"===i.type,p=this._coordSys,d=this._symbolDraw,f=this._polyline,y=this._polygon,v=this._lineGroup,_=e.get("animation"),b=!u.isEmpty(),M=u.get("origin"),E=function(e,t,n){if(!n.valueDim)return[];for(var r=[],i=0,o=t.count();i<o;i++)r.push(g(n,e,t,i));return r}(i,a,m(i,a,M)),C=e.get("showSymbol"),I=C&&!h&&k(e,a,i),A=this._data;A&&A.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),A.setItemGraphicEl(t,null))})),C||d.remove(),o.add(v);var P,D=!h&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(P=i.getArea()).width?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r1+=.5)),this._clipShapeForSymbol=P,f&&p.type===i.type&&D===this._step?(b&&!y?y=this._newPolygon(c,E,i,_):y&&!b&&(v.remove(y),y=this._polygon=null),v.setClipPath(T(i,!1,e)),C&&d.updateData(a,{isIgnore:I,clipShape:P}),a.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),x(this._stackedOnPoints,E)&&x(this._points,c)||(_?this._updateAnimation(a,E,i,n,D,M):(D&&(c=S(c,i,D),E=S(E,i,D)),f.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:E})))):(C&&d.updateData(a,{isIgnore:I,clipShape:P}),D&&(c=S(c,i,D),E=S(E,i,D)),f=this._newPolyline(c,i,_),b&&(y=this._newPolygon(c,E,i,_)),v.setClipPath(T(i,!0,e)));var L=function(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=n.length-1;a>=0;a--){var s=n[a].dimension,u=e.dimensions[s],c=e.getDimensionInfo(u);if("x"===(i=c&&c.coordDim)||"y"===i){o=n[a];break}}if(o){var h=t.getAxis(i),p=r.map(o.stops,(function(e){return{coord:h.toGlobalCoord(h.dataToCoord(e.value)),color:e.color}})),d=p.length,f=o.outerColors.slice();d&&p[0].coord>p[d-1].coord&&(p.reverse(),f.reverse());var m=p[0].coord-10,g=p[d-1].coord+10,y=g-m;if(y<.001)return"transparent";r.each(p,(function(e){e.offset=(e.coord-m)/y})),p.push({offset:d?p[d-1].offset:.5,color:f[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:f[0]||"transparent"});var v=new l.LinearGradient(0,0,0,0,p,!0);return v[i]=m,v[i+"2"]=g,v}}}(a,i)||a.getVisual("color");f.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var O=e.get("smooth");if(O=w(e.get("smooth")),f.setShape({smooth:O,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("
77connectNulls")}),y){var R=a.getCalculationInfo("stackedOnSeries"),z=0;y.useStyle(r.defaults(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),R&&(z=w(R.get("smooth"))),y.setShape({smooth:O,stackedOnSmooth:z,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=E,this._points=c,this._step=D,this._valueOrigin=M},dispose:function(){},highlight:function(e,t,n,r){var i=e.getData(),o=u.queryDataIndex(i,r);if(!(o instanceof Array)&&null!=o&&o>=0){var s=i.getItemGraphicEl(o);if(!s){var l=i.getItemLayout(o);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(s=new a(i,o)).position=l,s.setZ(e.get("zlevel"),e.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else d.prototype.highlight.call(this,e,t,n,r)},downplay:function(e,t,n,r){var i=e.getData(),o=u.queryDataIndex(i,r);if(null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else d.prototype.downplay.call(this,e,t,n,r)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new h({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,r,i,o){var a=this._polyline,u=this._polygon,c=e.hostModel,h=s(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),p=h.current,d=h.stackedOnCurrent,f=h.next,m=h.stackedOnNext;if(i&&(p=S(h.current,n,i),d=S(h.stackedOnCurrent,n,i),f=S(h.next,n,i),m=S(h.stackedOnNext,n,i)),b(p,f)>3e3||u&&b(d,m)>3e3)return a.setShape({points:f}),void(u&&u.setShape({points:f,stackedOnPoints:m}));a.shape.__points=h.current,a.shape.points=p,l.updateProps(a,{shape:{points:f}},c),u&&(u.setShape({points:p,stackedOnPoints:d}),l.updateProps(u,{shape:{points:f,stackedOnPoints:m}},c));for(var g=[],y=h.status,v=0;v<y.length;v++){if("="===y[v].cmd){var _=e.getItemGraphicEl(y[v].idx1);_&&g.push({el:_,ptIdx:v})}}a.animators&&a.animators.length&&a.animators[0].during((function(){for(var e=0;e<g.length;e++){g[e].el.attr("position",a.shape.__points[g[e].ptIdx])}}))},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=M},function(e,t,n){var r=n(198),i=r.prepareDataCoordInfo,o=r.getStackedOnPoint;e.exports=function(e,t,n,r,a,s,l,u){for(var c=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),h=[],p=[],d=[],f=[],m=[],g=[],y=[],v=i(a,t,l),_=i(s,e,u),x=0;x<c.length;x++){var b=c[x],w=!0;switch(b.cmd){case"=":var S=e.getItemLayout(b.idx),k=t.getItemLayout(b.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=k.slice()),h.push(S),p.push(k),d.push(n[b.idx]),f.push(r[b.idx1]),y.push(t.getRawIndex(b.idx1));break;case"+":var T=b.idx;h.push(a.dataToPoint([t.get(v.dataDimsForPoint[0],T),t.get(v.dataDimsForPoint[1],T)])),p.push(t.getItemLayout(T).slice()),d.push(o(v,a,t,T)),f.push(r[T]),y.push(t.getRawIndex(T));break;case"-":T=b.idx;var M=e.getRawIndex(T);M!==T?(h.push(e.getItemLayout(T)),p.push(s.dataToPoint([e.get(_.dataDimsForPoint[0],T),e.get(_.dataDimsForPoint[1],T)])),d.push(n[T]),f.push(o(_,s,e,T)),y.push(M)):w=!1}w&&(m.push(b),g.push(g.length))}g.sort((function(e,t){return y[e]-y[t]}));var E=[],C=[],I=[],A=[],P=[];for(x=0;x<g.length;x++){T=g[x];E[x]=h[T],C[x]=p[T],I[x]=d[T],A[x]=f[T],P[x]=m[T]}return{current:E,next:C,stackedOnCurrent:I,stackedOnNext:A,status:P}}},function(e,t){var n={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},r=function(e,t){return Math.round(e.length/2)};e.exports=function(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,t,i){var o=e.getData(),a=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&a){var l,u=s.getBaseAxis(),c=s.getOtherAxis(u),h=u.getExtent(),p=Math.abs(h[1]-h[0]),d=Math.round(o.count()/p);if(d>1)"string"==typeof a?l=n[a]:"function"==typeof a&&(l=a),l&&e.setData(o.downSample(o.mapDimension(c.dim),1/d,l,r))}}}}},function(e,t,n){var r=n(1),i=n(19),o=n(361);function a(e){o.call(this,e)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var r=this.getAxis("x"),i=this.getAxis("y");return(n=n||[])[0]=r.toGlobalCoord(r.dataToCoord(e[0])),n[1]=i.toGlobalCoord(i.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),r=this.getAxis("y");return(t=t||[])[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=r.coordToData(r.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),o=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-r;return new i(n,r,o,a)}},r.inherits(a,o);var s=a;e.exports=s},function(e,t,n){var r=n(1);function i(e){return this._axes[e]}var o=function(e){this._axes={},this._dimList=[],this.name=e||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return r.map(this._dimList,i,this)},getAxesByScale:function(e){return e=e.toLowerCase(),r.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,r=e instanceof Array?[]:{},i=0;i<n.length;i++){var o=n[i],a=this._axes[o];r[o]=a[t](e[o])}return r}};var a=o;e.exports=a},function(e,t,n){var r=n(1),i=n(51),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){n(200);var r=n(24).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=r},function(e,t,n){n(200),n(365)},function(e,t,n){var r=n(1),i=n(12),o=n(52),a=n(63),s=n(202),l=n(203),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],p=["splitArea","splitLine","minorSplitLine"],d=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new i.Group,this.group.add(this._axisGroup),e.get("show")){var u=e.getCoordSysModel(),c=s.layout(u,e),f=new o(e,c);r.each(h,f.add,f),this._axisGroup.add(f.getGroup()),r.each(p,(function(t){e.get(t+".show")&&this["_"+t](e,u)}),this),i.groupTransition(l,this._axisGroup,e),d.superCall(this,"render",e,t,n,a)}},remove:function(){c(this)},_splitLine:function(e,t){var n=e.axis;
77if(!n.scale.isBlank()){var o=e.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=r.isArray(s)?s:[s];for(var l=t.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,h=n.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),m=0;m<h.length;m++){var g=n.toGlobalCoord(h[m].coord);u?(p[0]=g,p[1]=l.y,d[0]=g,d[1]=l.y+l.height):(p[0]=l.x,p[1]=g,d[0]=l.x+l.width,d[1]=g);var y=c++%s.length,v=h[m].tickValue;this._axisGroup.add(new i.Line({anid:null!=v?"line_"+h[m].tickValue:null,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:r.defaults({stroke:s[y]},f),silent:!0}))}}},_minorSplitLine:function(e,t){var n=e.axis,r=e.getModel("minorSplitLine").getModel("lineStyle"),o=t.coordinateSystem.getRect(),a=n.isHorizontal(),s=n.getMinorTicksCoords();if(s.length)for(var l=[],u=[],c=r.getLineStyle(),h=0;h<s.length;h++)for(var p=0;p<s[h].length;p++){var d=n.toGlobalCoord(s[h][p].coord);a?(l[0]=d,l[1]=o.y,u[0]=d,u[1]=o.y+o.height):(l[0]=o.x,l[1]=d,u[0]=o.x+o.width,u[1]=d),this._axisGroup.add(new i.Line({anid:"minor_line_"+s[h][p].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:c,silent:!0}))}},_splitArea:function(e,t){u(this,this._axisGroup,e,t)}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},function(e,t,n){var r=n(9),i=n(1),o=n(107),a=o.layout,s=o.largeLayout;n(130),n(367),n(368),n(92),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,i.curry(a,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),r.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},function(e,t,n){var r=n(204).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=r},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(12),a=n(205).setLabel,s=n(23),l=n(369),u=n(20),c=n(58),h=n(49).throttle,p=n(90).createClipPath,d=n(370),f=["itemStyle","barBorderWidth"],m=[0,0];i.extend(s.prototype,l);var g=r.extendChartView({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var r=e.get("coordinateSystem");return"cartesian2d"!==r&&"polar"!==r||(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,r){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,n){var r,i=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var h=e.isAnimationEnabled()?e:null,p=e.get("clip",!0),d=function(e,t){var n=e.getArea&&e.getArea();if("cartesian2d"===e.type){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);i.removeClipPath();var f=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),y=g.get("barBorderRadius")||0,v=[],k=this._backgroundEls||[],M=function(e){var t=S[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?o.Sector:o.Rect)({shape:I(t,n,e),silent:!0,z2:0})}(l,r,t);return n.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),v[e]=n,n};a.diff(s).add((function(t){var n=a.getItemModel(t),o=S[l.type](a,t,n);if(m&&M(t),a.hasValue(t)){if(p)if(_[l.type](d,o))return void i.remove(s);var s=x[l.type](t,o,r,h,!1,f);a.setItemGraphicEl(t,s),i.add(s),T(s,a,t,n,o,e,r,"polar"===l.type)}})).update((function(t,n){var u=a.getItemModel(t),c=S[l.type](a,t,u);if(m){var b;0===k.length?b=M(n):((b=k[n]).useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&b.setShape("r",y),v[t]=b);var w=S[l.type](a,t),E=I(r,w,l);o.updateProps(b,{shape:E},h,t)}var C=s.getItemGraphicEl(n);if(a.hasValue(t)){if(p)if(_[l.type](d,c))return void i.remove(C);C?o.updateProps(C,{shape:c},h,t):C=x[l.type](t,c,r,h,!0,f),a.setItemGraphicEl(t,C),i.add(C),T(C,a,t,u,c,e,r,"polar"===l.type)}else i.remove(C)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&b(e,h,t):t&&w(e,h,t)})).execute();var E=this._backgroundGroup||(this._backgroundGroup=new c);E.removeAll();for(var C=0;C<v.length;++C)E.add(v[C]);i.add(E),this._backgroundEls=v,this._data=a},_renderLarge:function(e,t,n){this._clear(),E(e,this.group);var r=e.get("clip",!0)?p(e.coordinateSystem,!1,e):null;r?this.group.setClipPath(r):this.group.removeClipPath()}
77,_incrementalRenderLarge:function(e,t){this._removeBackground(),E(t,this.group,!0)},dispose:i.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){"sector"===t.type?w(t.dataIndex,e,t):b(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),y=Math.max,v=Math.min,_={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=y(t.x,e.x),o=v(t.x+t.width,e.x+e.width),a=y(t.y,e.y),s=v(t.y+t.height,e.y+e.height);t.x=i,t.y=a,t.width=o-i,t.height=s-a;var l=t.width<0||t.height<0;return n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),l},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}r=v(t.r,e.r);var i=y(t.r0,e.r0);t.r=r,t.r0=i;var o=r-i<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},x={cartesian2d:function(e,t,n,r,a){var s=new o.Rect({shape:i.extend({},t),z2:1});if(s.name="item",r){var l=n?"height":"width",u={};s.shape[l]=0,u[l]=t[l],o[a?"updateProps":"initProps"](s,{shape:u},r,e)}return s},polar:function(e,t,n,r,a,s){var l=t.startAngle<t.endAngle,u=new(!n&&s?d:o.Sector)({shape:i.defaults({clockwise:l},t),z2:1});if(u.name="item",r){var c=n?"r":"endAngle",h={};u.shape[c]=n?0:t.startAngle,h[c]=t[c],o[a?"updateProps":"initProps"](u,{shape:h},r,e)}return u}};function b(e,t,n){n.style.text=null,o.updateProps(n,{shape:{width:0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}function w(e,t,n){n.style.text=null,o.updateProps(n,{shape:{r:n.shape.r0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}var S={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(f)||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,r,i)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function k(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function T(e,t,n,r,s,l,u,c){var h=t.getItemVisual(n,"color"),p=t.getItemVisual(n,"opacity"),d=t.getVisual("borderColor"),f=r.getModel("itemStyle"),m=r.getModel("emphasis.itemStyle").getBarItemStyle();c||e.setShape("r",f.get("barBorderRadius")||0),e.useStyle(i.defaults({stroke:k(s)?"none":d,fill:k(s)?"none":h,opacity:p},f.getBarItemStyle()));var g=r.getShallow("cursor");g&&e.attr("cursor",g);var y=u?s.height>0?"bottom":"top":s.width>0?"left":"right";c||a(e.style,m,r,h,l,n,y),k(s)&&(m.fill=m.stroke="none"),o.setHoverStyle(e,m)}var M=u.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,o=0;o<n.length;o+=2)r[i]=n[o+i],e.moveTo(r[0],r[1]),e.lineTo(n[o],n[o+1])}});function E(e,t,n){var r=e.getData(),i=[],o=r.getLayout("valueAxisHorizontal")?1:0;i[1-o]=r.getLayout("valueAxisStart");var a=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),l=e.getModel("backgroundStyle");if(e.get("showBackground",!0)){var u=r.getLayout("largeBackgroundPoints"),c=[];c[1-o]=r.getLayout("backgroundStart");var h=new M({shape:{points:u},incremental:!!n,__startPoint:c,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});!function(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}(h,l,r),t.add(h)}var p=new M({shape:{points:r.getLayout("largePoints")},incremental:!!n,__startPoint:i,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});t.add(p),function(e,t,n){var r=n.getVisual("borderColor")||n.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}(p,e,r),p.seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",C),p.on("mousemove",C))}var C=h((function(e){var t=function(e,t,n){var r=e.__baseDimIdx,i=1-r,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];m[0]=t,m[1]=n;for(var u=m[r],c=m[1-r],h=u-s,p=u+s,d=0,f=o.length/2;d<f;d++){var g=2*d,y=o[g+r],v=o[g+i];if(y>=h&&y<=p&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[d]}return-1}(this,e.offsetX,e.offsetY);this.dataIndex=t>=0?t:null}),30,!1);function I(e,t,n){var r,i="polar"===n.type;return r=i?n.getArea():n.grid.getRect(),i?{cx:r.cx,cy:r.cy,r0:e?r.r0:t.r0,r:e?r.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:r.x,y:e?r.y:t.y,width:e?t.width:r.width,height:e?r.height:t.height}}e.exports=g},function(e,t,n){var r=n(69)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),i={getBarItemStyle:function(e){var t=r(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}};e.exports=i},function(e,t,n){var r=(0,n(12).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,h=Math.cos(l),p=Math.sin(l),d=Math.cos(u),f=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(e.moveTo(h*i+n,p*i+r),e.arc(h*s+n,p*s+r,a,-Math.PI+l,l,!c)),e.arc(n,r,o,l,u,!c),e.moveTo(d*o+n,f*o+r),e.arc(d*s+n,f*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&(e.arc(n,r,i,u,l,c),e.moveTo(h*i+n,f*i+r)),e.closePath()}});e.exports=r},function(e,t,n){var r=n(9),i=n(1);n(372),n(373);var o=n(206),a=n(111),s=n(374),l=n(94);o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisual(a("pie")),r.registerLayout(i.curry(s,"pie")),r.registerProcessor(l("pie"))},function(e,t,n){var r=n(9),i=n(74),o=n(1),a=n(14),s=n(13).getPercentWithPrecision,l=n(131),u=n(60).retrieveRawAttr,c=n(43).makeSeriesEncodeForNameBased,h=n(93),p=r.extendSeriesModel({type:"series.pie",init:function(e){p.superApply(this,"init",arguments),this.legendVisualProvider=new h(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList(
77)),this._defaultLabelLine(e)},mergeOption:function(e){p.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return i(this,{coordDimensions:["value"],encodeDefaulter:o.curry(c,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],r=0,i=e.count();r<i;r++)n.push({name:e.getName(r),value:e.get(t,r),selected:u(e,r,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=p.superCall(this,"getDataParams",e),r=[];return t.each(t.mapDimension("value"),(function(e){r.push(e)})),n.percent=s(r,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){a.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(p,l);var d=p;e.exports=d},function(e,t,n){var r=n(1),i=n(12),o=n(40);function a(e,t,n,r){var i=t.getData(),o=this.dataIndex,a=i.getName(o),l=t.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),i.each((function(e){s(i.getItemGraphicEl(e),i.getItemLayout(e),t.isSelected(i.getName(e)),l,n)}))}function s(e,t,n,r,i){var o=(t.startAngle+t.endAngle)/2,a=n?r:0,s=[Math.cos(o)*a,Math.sin(o)*a];i?e.animate().when(200,{position:s}).start("bounceOut"):e.attr("position",s)}function l(e,t){i.Group.call(this);var n=new i.Sector({z2:2}),r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.updateData(e,t,!0)}var u=l.prototype;u.updateData=function(e,t,n){var o=this.childAt(0),a=this.childAt(1),l=this.childAt(2),u=e.hostModel,c=e.getItemModel(t),h=e.getItemLayout(t),p=r.extend({},h);p.label=null;var d=u.getShallow("animationTypeUpdate");n?(o.setShape(p),"scale"===u.getShallow("animationType")?(o.shape.r=h.r0,i.initProps(o,{shape:{r:h.r}},u,t)):(o.shape.endAngle=h.startAngle,i.updateProps(o,{shape:{endAngle:h.endAngle}},u,t))):"expansion"===d?o.setShape(p):i.updateProps(o,{shape:p},u,t);var f=e.getItemVisual(t,"color");o.useStyle(r.defaults({lineJoin:"bevel",fill:f},c.getModel("itemStyle").getItemStyle())),o.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var m=c.getShallow("cursor");m&&o.attr("cursor",m),s(this,e.getItemLayout(t),u.isSelected(e.getName(t)),u.get("selectedOffset"),u.get("animation"));var g=!n&&"transition"===d;this._updateLabel(e,t,g),this.highDownOnUpdate=u.get("silent")?null:function(e,t){var n=u.isAnimationEnabled()&&c.get("hoverAnimation");"emphasis"===t?(a.ignore=a.hoverIgnore,l.ignore=l.hoverIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r+u.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,l.ignore=l.normalIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")))},i.setHoverStyle(this)},u._updateLabel=function(e,t,n){var r=this.childAt(1),o=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t).label,u=e.getItemVisual(t,"color");if(!l||isNaN(l.x)||isNaN(l.y))o.ignore=o.normalIgnore=o.hoverIgnore=r.ignore=r.normalIgnore=r.hoverIgnore=!0;else{var c={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},h={x:l.x,y:l.y};n?(i.updateProps(r,{shape:c},a,t),i.updateProps(o,{style:h},a,t)):(r.attr({shape:c}),o.attr({style:h})),o.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var p=s.getModel("label"),d=s.getModel("emphasis.label"),f=s.getModel("labelLine"),m=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");i.setLabelStyle(o.style,o.hoverStyle={},p,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:l.text,autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!p.get("show"),o.hoverIgnore=!d.get("show"),r.ignore=r.normalIgnore=!f.get("show"),r.hoverIgnore=!m.get("show"),r.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),r.setStyle(f.getModel("lineStyle").getLineStyle()),r.hoverStyle=m.getModel("lineStyle").getLineStyle();var g=f.get("smooth");g&&!0===g&&(g=.4),r.setShape({smooth:g})}},r.inherits(l,i.Group);var c=o.extend({type:"pie",init:function(){var e=new i.Group;this._sectorGroup=e},render:function(e,t,n,i){if(!i||i.from!==this.uid){var o=e.getData(),s=this._data,u=this.group,c=t.get("animation"),h=!s,p=e.get("animationType"),d=e.get("animationTypeUpdate"),f=r.curry(a,this.uid,e,c,n),m=e.get("selectedMode");if(o.diff(s).add((function(e){var t=new l(o,e);h&&"scale"!==p&&t.eachChild((function(e){e.stopAnimation(!0)})),m&&t.on("click",f),o.setItemGraphicEl(e,t),u.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);h||"transition"===d||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(o,e),n.off("click"),m&&n.on("click",f),u.add(n),o.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);u.remove(t)})).execute(),c&&o.count()>0&&(h?"scale"!==p:"transition"!==d)){for(var g=o.getItemLayout(0),y=1;isNaN(g.startAngle)&&y<o.count();++y)g=o.getItemLayout(y);var v=Math.max(n.getWidth(),n.getHeight())/2,_=r.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,v,g.startAngle,g.clockwise,_,e,h))}else u.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(e,t,n,r,o,a,s,l){var u=new i.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:r,endAngle:r,clockwise:o}});return(l?i.initProps:i.updateProps)(u,{shape:{endAngle:r+(o?1:-1)*Math.PI*2}},s,a),u},containPoint:function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}}});e.exports=c},function(e,t,n){var r=n(13),i=r.parsePercent,o=r.linearMap,a=n(16),s=n(375),l=n(1),u=2*Math.PI,c=Math.PI/180;e.exports=function(e,t,n,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),h=function(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}
77(e,n),p=e.get("center"),d=e.get("radius");l.isArray(d)||(d=[0,d]),l.isArray(p)||(p=[p,p]);var f=i(h.width,n.getWidth()),m=i(h.height,n.getHeight()),g=Math.min(f,m),y=i(p[0],f)+h.x,v=i(p[1],m)+h.y,_=i(d[0],g/2),x=i(d[1],g/2),b=-e.get("startAngle")*c,w=e.get("minAngle")*c,S=0;t.each(r,(function(e){!isNaN(e)&&S++}));var k=t.getSum(r),T=Math.PI/(k||S)*2,M=e.get("clockwise"),E=e.get("roseType"),C=e.get("stillShowZeroSum"),I=t.getDataExtent(r);I[0]=0;var A=u,P=0,D=b,L=M?1:-1;if(t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:y,cy:v,r0:_,r:E?NaN:x,viewRect:h});else{(r="area"!==E?0===k&&C?T:e*T:u/S)<w?(r=w,A-=w):P+=e;var i=D+L*r;t.setItemLayout(n,{angle:r,startAngle:D,endAngle:i,clockwise:M,cx:y,cy:v,r0:_,r:E?o(e,I,[_,x]):x,viewRect:h}),D=i}})),A<u&&S)if(A<=.001){var O=u/S;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=O,r.startAngle=b+L*n*O,r.endAngle=b+L*(n+1)*O}}))}else T=A/P,D=b,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===w?w:e*T;r.startAngle=D,r.endAngle=D+L*i,D+=L*i}}));s(e,x,h.width,h.height,h.x,h.y)}))}},function(e,t,n){var r=n(32),i=n(13).parsePercent,o=Math.PI/180;function a(e,t,n,r,i,o,a,s,l,u){function c(t,n,r,i){for(var o=t;o<n&&!(e[o].y+r>l+a);o++)if(e[o].y+=r,o>t&&o+1<n&&e[o+1].y>e[o].y+e[o].height)return void h(o,r/2);h(n-1,r/2)}function h(t,n){for(var r=t;r>=0&&!(e[r].y-n<l)&&(e[r].y-=n,!(r>0&&e[r].y>e[r-1].y+e[r-1].height));r--);}function p(e,t,n,r,i,o){for(var a=t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++)if("none"===e[s].labelAlignTo){var u=Math.abs(e[s].y-r),c=e[s].len,h=e[s].len2,p=u<i+c?Math.sqrt((i+c+h)*(i+c+h)-u*u):Math.abs(e[s].x-n);t&&p>=a&&(p=a-10),!t&&p<=a&&(p=a+10),e[s].x=n+p*o,a=p}}e.sort((function(e,t){return e.y-t.y}));for(var d,f=0,m=e.length,g=[],y=[],v=0;v<m;v++){if("outer"===e[v].position&&"labelLine"===e[v].labelAlignTo){var _=e[v].x-u;e[v].linePoints[1][0]+=_,e[v].x=u}(d=e[v].y-f)<0&&c(v,m,-d),f=e[v].y+e[v].height}a-f<0&&h(m-1,f-a);for(v=0;v<m;v++)e[v].y>=n?y.push(e[v]):g.push(e[v]);p(g,!1,t,n,r,i),p(y,!0,t,n,r,i)}function s(e){return"center"===e.position}e.exports=function(e,t,n,l,u,c){var h,p,d=e.getData(),f=[],m=!1,g=(e.get("minShowLabelAngle")||0)*o;d.each((function(o){var a=d.getItemLayout(o),s=d.getItemModel(o),l=s.getModel("label"),c=l.get("position")||s.get("emphasis.label.position"),y=l.get("distanceToLabelLine"),v=l.get("alignTo"),_=i(l.get("margin"),n),x=l.get("bleedMargin"),b=l.getFont(),w=s.getModel("labelLine"),S=w.get("length");S=i(S,n);var k=w.get("length2");if(k=i(k,n),!(a.angle<g)){var T,M,E,C,I=(a.startAngle+a.endAngle)/2,A=Math.cos(I),P=Math.sin(I);h=a.cx,p=a.cy;var D,L=e.getFormattedLabel(o,"normal")||d.getName(o),O=r.getBoundingRect(L,b,C,"top"),R="inside"===c||"inner"===c;if("center"===c)T=a.cx,M=a.cy,C="center";else{var z=(R?(a.r+a.r0)/2*A:a.r*A)+h,N=(R?(a.r+a.r0)/2*P:a.r*P)+p;if(T=z+3*A,M=N+3*P,!R){var B=z+A*(S+t-a.r),F=N+P*(S+t-a.r),V=B+(A<0?-1:1)*k;T="edge"===v?A<0?u+_:u+n-_:V+(A<0?-y:y),M=F,E=[[z,N],[B,F],[V,F]]}C=R?"center":"edge"===v?A>0?"right":"left":A>0?"left":"right"}var j=l.get("rotate");D="number"==typeof j?j*(Math.PI/180):j?A<0?-I+Math.PI:-I:0,m=!!D,a.label={x:T,y:M,position:c,height:O.height,len:S,len2:k,linePoints:E,textAlign:C,verticalAlign:"middle",rotation:D,inside:R,labelDistance:y,labelAlignTo:v,labelMargin:_,bleedMargin:x,textRect:O,text:L,font:b},R||f.push(a.label)}})),!m&&e.get("avoidLabelOverlap")&&function(e,t,n,i,o,l,u,c){for(var h=[],p=[],d=Number.MAX_VALUE,f=-Number.MAX_VALUE,m=0;m<e.length;m++)s(e[m])||(e[m].x<t?(d=Math.min(d,e[m].x),h.push(e[m])):(f=Math.max(f,e[m].x),p.push(e[m])));for(a(p,t,n,i,1,0,l,0,c,f),a(h,t,n,i,-1,0,l,0,c,d),m=0;m<e.length;m++){var g=e[m];if(!s(g)){var y=g.linePoints;if(y){var v,_="edge"===g.labelAlignTo,x=g.textRect.width;(v=_?g.x<t?y[2][0]-g.labelDistance-u-g.labelMargin:u+o-g.labelMargin-y[2][0]-g.labelDistance:g.x<t?g.x-u-g.bleedMargin:u+o-g.x-g.bleedMargin)<g.textRect.width&&(g.text=r.truncateText(g.text,v,g.font),"edge"===g.labelAlignTo&&(x=r.getWidth(g.text,g.font)));var b=y[1][0]-y[2][0];_?g.x<t?y[2][0]=u+g.labelMargin+x+g.labelDistance:y[2][0]=u+o-g.labelMargin-x-g.labelDistance:(g.x<t?y[2][0]=g.x+g.labelDistance:y[2][0]=g.x-g.labelDistance,y[1][0]=y[2][0]+b),y[1][1]=y[2][1]=g.y}}}}(f,h,p,t,n,l,u,c)}},function(e,t,n){var r=n(9);n(377),n(378);var i=n(62),o=n(91);n(92),r.registerVisual(i("scatter","circle")),r.registerLayout(o("scatter"))},function(e,t,n){var r=n(44),i=n(25).extend({type:"series.scatter",depen
77dencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=i},function(e,t,n){var r=n(9),i=n(89),o=n(379),a=n(91);r.extendChartView({type:"scatter",render:function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},incrementalRender:function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=a().reset(e);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},_updateSymbolDraw:function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new o:new i,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},function(e,t,n){var r=n(12),i=n(35).createSymbol,o=n(125),a=r.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,o=i.shape;if(!((e.getContext?e.getContext():e)&&r[0]<4))for(var a=0;a<n.length;){var s=n[a++],l=n[a++];isNaN(s)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(s,l)||(o.x=s-r[0]/2,o.y=l-r[1]/2,o.width=r[0],o.height=r[1],i.buildPath(e,o,!0)))}},afterBrush:function(e){var t=this.shape,n=t.points,r=t.size;if(r[0]<4){this.setTransform(e);for(var i=0;i<n.length;){var o=n[i++],a=n[i++];isNaN(o)||isNaN(a)||(this.softClipShape&&!this.softClipShape.contain(o,a)||e.fillRect(o-r[0]/2,a-r[1]/2,r[0],r[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1}});function s(){this.group=new r.Group}var l=s.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(e,t){this.group.removeAll();var n=new a({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},l.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)}))}},l.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new a,this._incremental.addDisplayable(r,!0)):((r=new a({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(r)),r.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(r,t,!!this._incremental,n)},l._setCommon=function(e,t,n,r){var o=t.hostModel;r=r||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=i(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var s=e.shape.size[0]<4;e.useStyle(o.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var l=t.getVisual("color");l&&e.setColor(l),n||(e.seriesIndex=o.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>
77=0&&(e.dataIndex=n+(e.startIndex||0))})))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var u=s;e.exports=u},function(e,t,n){var r=n(9);n(381),n(386),n(387);var i=n(111),o=n(62),a=n(388),s=n(94),l=n(389);r.registerVisual(i("radar")),r.registerVisual(o("radar","circle")),r.registerLayout(a),r.registerProcessor(s("radar")),r.registerPreprocessor(l)},function(e,t,n){n(382),n(384),n(385)},function(e,t,n){var r=n(1),i=n(383),o=n(106),a=n(13),s=n(37),l=s.getScaleExtent,u=s.niceScaleExtent,c=n(36),h=n(194);function p(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=r.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new i(n,"log"===e.get("axisType")?new h:new o);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}p.prototype.getIndicatorAxes=function(){return this._indicatorAxes},p.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},p.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},p.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},p.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o)/2;this.cx=a.parsePercent(n[0],i),this.cy=a.parsePercent(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!=typeof l&&"number"!=typeof l||(l=[0,l]),this.r0=a.parsePercent(l[0],s),this.r=a.parsePercent(l[1],s),r.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},p.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;r.each(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var a=t.getData();r.each(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var o=i.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}r.each(n,(function(e,t){var n=l(e.scale,e.model).extent;u(e.scale,e.model);var r=e.model,i=e.scale,c=r.getMin(),h=r.getMax(),p=i.getInterval();if(null!=c&&null!=h)i.setExtent(+c,+h),i.setInterval((h-c)/o);else if(null!=c){do{d=c+p*o,i.setExtent(+c,d),i.setInterval(p),p=s(p)}while(d<n[1]&&isFinite(d)&&isFinite(n[1]))}else if(null!=h){do{f=h-p*o,i.setExtent(f,+h),i.setInterval(p),p=s(p)}while(f>n[0]&&isFinite(f)&&isFinite(n[0]))}else{i.getTicks().length-1>o&&(p=s(p));var d=Math.ceil(n[1]/p)*p,f=a.round(d-p*o);i.setExtent(f,d),i.setInterval(p)}}))},p.dimensions=[],p.create=function(e,t){var n=[];return e.eachComponent("radar",(function(r){var i=new p(r,e,t);n.push(i),r.coordinateSystem=i})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},c.register("radar",p);var d=p;e.exports=d},function(e,t,n){var r=n(1),i=n(51);function o(e,t,n){i.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(9),i=n(1),o=n(201),a=n(23),s=n(73),l=o.valueAxis;function u(e,t){return i.defaults({show:t},e)}var c=r.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),p=this.get("name.formatter"),d=this.get("nameGap"),f=this.get("triggerEvent"),m=i.map(this.get("indicator")||[],(function(m){null!=m.max&&m.max>0&&!m.min?m.min=0:null!=m.min&&m.min<0&&!m.max&&(m.max=0);var g=c;if(null!=m.color&&(g=i.defaults({color:m.color},c)),m=i.merge(i.clone(m),{boundaryGap:e,splitNumber:t,scale:n,axisLine
77:r,axisTick:o,axisType:l,axisLabel:u,name:m.text,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1),h||(m.name=""),"string"==typeof p){var y=m.name;m.name=p.replace("{value}",null!=y?y:"")}else"function"==typeof p&&(m.name=p(m.name,m));var v=i.extend(new a(m,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:i.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:u(l.axisLabel,!1),axisTick:u(l.axisTick,!1),axisType:"interval",splitLine:u(l.splitLine,!0),splitArea:u(l.splitArea,!0),indicator:[]}});e.exports=c},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(52),a=n(12),s=["axisLine","axisTickLabel","axisName"],l=r.extendComponentView({type:"radar",render:function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=i.map(n,(function(e){return new o(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));i.each(r,(function(e){i.each(s,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),p=l.get("color"),d=u.get("color");p=i.isArray(p)?p:[p],d=i.isArray(d)?d:[d];var f=[],m=[];if("circle"===r)for(var g=n[0].getTicksCoords(),y=t.cx,v=t.cy,_=0;_<g.length;_++){if(c)f[E(f,p,_)].push(new a.Circle({shape:{cx:y,cy:v,r:g[_].coord}}));if(h&&_<g.length-1)m[E(m,d,_)].push(new a.Ring({shape:{cx:y,cy:v,r0:g[_].coord,r:g[_+1].coord}}))}else{var x,b=i.map(n,(function(e,n){var r=e.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),i.map(r,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(_=0;_<=x;_++){for(var S=[],k=0;k<n.length;k++)S.push(b[k][_]);if(S[0]&&S.push(S[0].slice()),c)f[E(f,p,_)].push(new a.Polyline({shape:{points:S}}));if(h&&w)m[E(m,d,_-1)].push(new a.Polygon({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var T=l.getLineStyle(),M=u.getAreaStyle();i.each(m,(function(e,t){this.group.add(a.mergePath(e,{style:i.defaults({stroke:"none",fill:d[t%d.length]},M),silent:!0}))}),this),i.each(f,(function(e,t){this.group.add(a.mergePath(e,{style:i.defaults({fill:"none",stroke:p[t%p.length]},T),silent:!0}))}),this)}function E(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}}});e.exports=l},function(e,t,n){var r=n(25),i=n(74),o=n(1),a=n(17).encodeHTML,s=n(93),l=r.extend({type:"series.radar",dependencies:["radar"],init:function(e){l.superApply(this,"init",arguments),this.legendVisualProvider=new s(o.bind(this.getData,this),o.bind(this.getRawData,this))},getInitialData:function(e,t){return i(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,n,r){var i=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),l=this.getData().getName(e),u="html"===r?"<br/>":"\n";return a(""===l?this.name:l)+u+o.map(s,(function(t,n){var r=i.get(i.mapDimension(t.dim),e);return a(t.name+" : "+r)})).join(u)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(o.map(n.dimensions,(function(e){return t.mapDimension(e)})),e,!0),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var s=n.getIndicatorAxes();return n.coordToPoint(s[i].dataToCoord(r[i]),i)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=l;e.exports=u},function(e,t,n){var r=n(9),i=n(12),o=n(1),a=n(35);var s=r.extendChartView({type:"radar",render:function(e,t,n){var r=e.coordinateSystem,s=this.group,l=e.getData(),u=this._data;function c(e,t){var n=e.getItemVisual(t,"symbol")||"circle",r=e.getItemVisual(t,"color");
77if("none"!==n){var i=function(e){return o.isArray(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),s=a.createSymbol(n,-1,-1,2,2,r),l=e.getItemVisual(t,"symbolRotate")||0;return s.attr({style:{strokeNoScale:!0},z2:100,scale:[i[0]/2,i[1]/2],rotation:l*Math.PI/180||0}),s}}function h(t,n,r,o,a,s){r.removeAll();for(var l=0;l<n.length-1;l++){var u=c(o,a);u&&(u.__dimIdx=l,t[l]?(u.attr("position",t[l]),i[s?"initProps":"updateProps"](u,{position:n[l]},e,a)):u.attr("position",n[l]),r.add(u))}}function p(e){return o.map(e,(function(e){return[r.cx,r.cy]}))}l.diff(u).add((function(t){var n=l.getItemLayout(t);if(n){var r=new i.Polygon,o=new i.Polyline,a={shape:{points:n}};r.shape.points=p(n),o.shape.points=p(n),i.initProps(r,a,e,t),i.initProps(o,a,e,t);var s=new i.Group,u=new i.Group;s.add(o),s.add(r),s.add(u),h(o.shape.points,n,u,l,t,!0),l.setItemGraphicEl(t,s)}})).update((function(t,n){var r=u.getItemGraphicEl(n),o=r.childAt(0),a=r.childAt(1),s=r.childAt(2),c={shape:{points:l.getItemLayout(t)}};c.shape.points&&(h(o.shape.points,c.shape.points,s,l,t,!1),i.updateProps(o,c,e),i.updateProps(a,c,e),l.setItemGraphicEl(t,r))})).remove((function(e){s.remove(u.getItemGraphicEl(e))})).execute(),l.eachItemGraphicEl((function(e,t){var n=l.getItemModel(t),r=e.childAt(0),a=e.childAt(1),u=e.childAt(2),c=l.getItemVisual(t,"color");s.add(e),r.useStyle(o.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),r.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var h=n.getModel("areaStyle"),p=n.getModel("emphasis.areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty(),f=p.isEmpty()&&p.parentModel.isEmpty();f=f&&d,a.ignore=d,a.useStyle(o.defaults(h.getAreaStyle(),{fill:c,opacity:.7})),a.hoverStyle=p.getAreaStyle();var m=n.getModel("itemStyle").getItemStyle(["color"]),g=n.getModel("emphasis.itemStyle").getItemStyle(),y=n.getModel("label"),v=n.getModel("emphasis.label");u.eachChild((function(e){e.setStyle(m),e.hoverStyle=o.clone(g);var n=l.get(l.dimensions[e.__dimIdx],t);(null==n||isNaN(n))&&(n=""),i.setLabelStyle(e.style,e.hoverStyle,y,v,{labelFetcher:l.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:n,autoColor:c,isRectText:!0})})),e.highDownOnUpdate=function(e,t){a.attr("ignore","emphasis"===t?f:d)},i.setHoverStyle(e)})),this._data=l},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=s},function(e,t,n){var r=n(1);function i(e){return!isNaN(e[0])&&!isNaN(e[1])}function o(e){return[e.cx,e.cy]}e.exports=function(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var s=a.getIndicatorAxes();r.each(s,(function(e,r){t.each(t.mapDimension(s[r].dim),(function(e,t){n[t]=n[t]||[];var s=a.dataToPoint(e,r);n[t][r]=i(s)?s:o(a)}))})),t.each((function(e){var s=r.find(n[e],(function(e){return i(e)}))||o(a);n[e].push(s.slice()),t.setItemLayout(e,n[e])}))}}))}},function(e,t,n){var r=n(1);e.exports=function(e){var t=e.polar;if(t){r.isArray(t)||(t=[t]);var n=[];r.each(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],r.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}r.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}},function(e,t,n){var r=n(9);n(391),n(398),n(209),n(134);var i=n(400),o=n(401),a=n(402),s=n(403),l=n(206);r.registerLayout(i),r.registerVisual(o),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a),r.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},function(e,t,n){var r=n(1),i=n(74),o=n(25),a=n(17),s=a.encodeHTML,l=a.addCommas,u=n(131),c=n(60).retrieveRawAttr,h=n(112),p=n(43).makeSeriesEncodeForNameBased,d=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=i(this,{coordDimensions:["value"],encodeDefaulter:r.curry(p,this)}),n=t.mapDimension("value"),o=r.createHashMap(),a=[],s=[],l=0,u=t.count();l<u;l++){var d=t.getName(l);o.set(d,!0),a.push({name:d,value:t.get(n,l),selected:c(t,l,"selected")})}var f=h.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);
77return r.each(f.regions,(function(e){var t=e.name;o.get(t)||(a.push({name:t}),s.push(t))})),this.updateSelectedMap(a),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,n,r){for(var i=this.getData(),o=l(this.getRawValue(e)),a=i.getName(e),u=this.seriesGroup,c=[],h=0;h<u.length;h++){var p=u[h].originalData.indexOfName(a),d=i.mapDimension("value");isNaN(u[h].originalData.get(d,p))||c.push(s(u[h].name))}var f="html"===r?"<br/>":"\n";return c.join(", ")+f+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});r.mixin(d,u);var f=d;e.exports=f},function(e,t,n){var r=n(1).each,i=n(195),o=n(14).makeInner,a=n(393),s=n(394),l=n(395),u=n(396),c=o(),h={load:function(e,t,n){var o=c(t).parsed;if(o)return o;var h,d=t.specialAreas||{},f=t.geoJSON;try{h=f?i(f,n):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return a(e,h),r(h,(function(t){var n=t.name;s(e,t),l(e,t),u(e,t);var r=d[n];r&&t.transformTo(r.left,r.top,r.width,r.height)})),c(t).parsed={regions:h,boundingRect:p(h)}}};function p(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}e.exports=h},function(e,t,n){for(var r=n(1),i=n(196),o=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=o[0],a[s][l][1]+=o[1];e.exports=function(e,t){"china"===e&&t.push(new i("南海诸岛",r.map(a,(function(e){return{type:"polygon",exterior:e}})),o))}},function(e,t){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};e.exports=function(e,t){if("china"===e){var r=n[t.name];if(r){var i=t.center;i[0]+=r[0]/10.5,i[1]+=-r[1]/14}}}},function(e,t){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};e.exports=function(e,t){if("world"===e){var r=n[t.name];if(r){var i=t.center;i[0]=r[0],i[1]=r[1]}}}},function(e,t){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];e.exports=function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:n[0]})}},function(e,t,n){var r=n(188),i=r.parseSVG,o=r.makeViewBoxTransform,a=n(58),s=n(122),l=n(1),u=l.assert,c=l.createHashMap,h=n(19),p=(0,n(14).makeInner)(),d={load:function(e,t){var n=p(t).originRoot;if(n)return{root:n,boundingRect:p(t).boundingRect};var r=f(t);return p(t).originRoot=r.root,p(t).boundingRect=r.boundingRect,r},makeGraphic:function(e,t,n){var r=p(t),i=r.rootMap||(r.rootMap=c()),o=i.get(n);if(o)return o;
77var a=r.originRoot,s=r.boundingRect;return r.originRootHostKey?o=f(t,s).root:(r.originRootHostKey=n,o=a),i.set(n,o)},removeGraphic:function(e,t,n){var r=p(t),i=r.rootMap;i&&i.removeKey(n),n===r.originRootHostKey&&(r.originRootHostKey=null)}};function f(e,t){var n,r,l=e.svgXML;try{r=(n=l&&i(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,u(null!=r)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var c=n.width,p=n.height,d=n.viewBoxRect;if(t||(t=null==c||null==p?r.getBoundingRect():new h(0,0,0,0),null!=c&&(t.width=c),null!=p&&(t.height=p)),d){var f=o(d,t.width,t.height),m=r;(r=new a).add(m),m.scale=f.scale,m.position=f.position}return r.setClipPath(new s({shape:t.plain()})),{root:r,boundingRect:t}}e.exports=d},function(e,t,n){var r=n(9),i=n(1),o=n(12),a=n(207),s=r.extendChartView({type:"map",render:function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(o=this._mapDraw)&&i.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new a(n,!0);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var r=e.originalData,a=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var s=r.getItemLayout(n);if(s&&s.point){var c=s.point,h=s.offset,p=new o.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:c[0]+9*h,cy:c[1],r:3},silent:!0,z2:8+(h?0:o.Z2_EMPHASIS_LIFT+1)});if(!h){var d=e.mainSeries.getData(),f=r.getName(n),m=d.indexOfName(f),g=r.getItemModel(n),y=g.getModel("label"),v=g.getModel("emphasis.label"),_=d.getItemGraphicEl(m),x=i.retrieve2(e.getFormattedLabel(m,"normal"),f),b=i.retrieve2(e.getFormattedLabel(m,"emphasis"),x),w=_.__seriesMapHighDown,S=Math.random();if(!w){w=_.__seriesMapHighDown={};var k=i.curry(l,!0),T=i.curry(l,!1);_.on("mouseover",k).on("mouseout",T).on("emphasis",k).on("normal",T)}_.__seriesMapCallKey=S,i.extend(w,{recordVersion:S,circle:p,labelModel:y,hoverLabelModel:v,emphasisText:b,normalText:x}),u(w,!1)}a.add(p)}}}))}});function l(e){var t=this.__seriesMapHighDown;t&&t.recordVersion===this.__seriesMapCallKey&&u(t,e)}function u(e,t){var n=e.circle,r=e.labelModel,i=e.hoverLabelModel,a=e.emphasisText,s=e.normalText;t?(n.style.extendFrom(o.setTextStyle({},i,{text:i.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(n.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}e.exports=s},function(e,t,n){var r=n(1),i=n(19),o=n(135),a=n(112);function s(e,t,n,r){o.call(this,e),this.map=t;var i=a.load(t,n);this._nameCoordMap=i.nameCoordMap,this._regionsMap=i.regionsMap,this._invertLongitute=null==r||r,this.regions=i.regions,this._rect=i.boundingRect}function l(e,t,n,r){var i=n.geoModel,o=n.seriesModel,a=i?i.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](r):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},transformTo:function(e,t,n,r){var o=this.getBoundingRect(),a=this._invertLongitute;o=o.clone(),a&&(o.y=-o.y-o.height);var s=this._rawTransformable;if(s.transform=o.calculateTransform(new i(e,t,n,r)),s.decomposeTransform(),a){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,n){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return o.prototype.dataToPoint.call(this,e,t,n)},convertToPixel:r.curry(l,"dataToPoint"),convertFromPixel:r.curry(l,"pointToData")},r.mixin(s,o);var u=s;e.exports=u},function(e,t,n){var r=n(1);e.exports=function(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var o={};r.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var i=r.getName(t),a=n.getRegion(i);if(a&&!isNaN(e)){var s=o[i]||0,l=n.dataToPoint(a.center);o[i]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};
77n.showLabel=!o[t],a.setItemLayout(e,n)})),t[i]=!0}}))}},function(e,t){e.exports=function(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),n=e.getModel("itemStyle"),r=n.get("areaColor"),i=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:r,color:i})}))}},function(e,t,n){var r=n(1);e.exports=function(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),r.each(t,(function(e,t){for(var n,i,o,a=(n=r.map(e,(function(e){return e.getData()})),i=e[0].get("mapValueCalculation"),o={},r.each(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var r="ec-"+e.getName(n);o[r]=o[r]||[],isNaN(t)||o[r].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var r,a="ec-"+n[0].getName(t),s=0,l=1/0,u=-1/0,c=o[a].length,h=0;h<c;h++)l=Math.min(l,o[a][h]),u=Math.max(u,o[a][h]),s+=o[a][h];return r="min"===i?l:"max"===i?u:"average"===i?s/c:s,0===c?NaN:r}))),s=0;s<e.length;s++)e[s].originalData=e[s].getData();for(s=0;s<e.length;s++)e[s].seriesGroup=e,e[s].needsDrawMap=0===s&&!e[s].getHostGeoModel(),e[s].setData(a.cloneShallow()),e[s].mainSeries=e[0]}))}},function(e,t,n){var r=n(1);e.exports=function(e){var t=[];r.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,r.defaults(e,e.mapLocation))}))}},function(e,t,n){var r=n(9);
77n(405),n(406),n(407);var i=n(62),o=n(408);r.registerVisual(i("tree","circle")),r.registerLayout(o)},function(e,t,n){var r=n(25),i=n(136),o=n(17).encodeHTML,a=n(23),s=r.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new a(n,this,this.ecModel),o=i.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=r),e}))}));var s=0;o.eachNode("preorder",(function(e){e.depth>s&&(s=e.depth)}));var l=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),o.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var t=this.getData().tree,n=t.root.children[0],r=t.getNodeByDataIndex(e),i=r.getValue(),a=r.name;r&&r!==n;)a=r.parentNode.name+"."+a,r=r.parentNode;return o(a+(isNaN(i)||null==i?"":" : "+i))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=s},function(e,t,n){var r=n(1),i=n(12),o=n(108),a=n(211).radialCoordinate,s=n(9),l=n(84),u=n(135),c=n(132),h=n(95),p=n(113).onIrrelevantElement,d=(n(15).__DEV__,n(13).parsePercent),f=i.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=d(t.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=a[l],e.lineTo(h[0],h[1]),e.lineTo(a[0],a[1]);for(var p=1;p<r-1;p++){var f=n[p];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}}}),m=s.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new i.Group,this._controller=new h(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,n,r){var i=e.getData(),o=e.layoutInfo,a=this._mainGroup,s=e.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(e,o,s),this._updateController(e,t,n);var l=this._data,u={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};i.diff(l).add((function(t){g(i,t)&&v(i,t,null,a,e,u)})).update((function(t,n){var r=l.getItemGraphicEl(n);g(i,t)?v(i,t,r,a,e,u):r&&_(l,n,r,a,e,u)})).remove((function(t){var n=l.getItemGraphicEl(t);n&&_(l,t,n,a,e,u)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===u.expandAndCollapse&&i.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=i},_updateViewCoordSys:function(e){var t=e.getData(),n=[];t.each((function(e){var r=t.getItemLayout(e);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];l.fromPoints(n,r,i);var o=this._min,a=this._max;i[0]-r[0]==0&&(r[0]=o?o[0]:r[0]-1,i[0]=a?a[0]:i[0]+1),i[1]-r[1]==0&&(r[1]=o?o[1]:r[1]-1,i[1]=a?a[1]:i[1]+1);var s=e.coordinateSystem=new u;
77s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=r,this._max=i},_updateController:function(e,t,n){var r=this._controller,i=this._controllerHost,o=this.group;r.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!p(t,n,e)})),r.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){c.updateViewOnPan(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){c.updateViewOnZoom(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),n=this._getNodeGlobalScale(e),r=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",r)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scale,i=r&&r[0]||1;return((t.getZoom()-1)*n+1)/i},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function y(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=t.getModel("lineStyle").getLineStyle(),n.labelModel=t.getModel("label"),n.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function v(e,t,n,a,s,l){var u=!n,c=e.tree.getNodeByDataIndex(t),h=c.getModel(),p=(l=y(c,h,l),e.tree.root),d=c.parentNode===p?c:c.parentNode||c,m=e.getItemGraphicEl(d.dataIndex),g=d.getLayout(),v=m?{x:m.position[0],y:m.position[1],rawX:m.__radialOldRawX,rawY:m.__radialOldRawY}:g,_=c.getLayout();u?(n=new o(e,t,l)).attr("position",[v.x,v.y]):n.updateData(e,t,l),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=_.rawX,n.__radialRawY=_.rawY,a.add(n),e.setItemGraphicEl(t,n),i.updateProps(n,{position:[_.x,_.y]},s);var b=n.getSymbolPath();if("radial"===l.layout){var w,S,k=p.children[0],T=k.getLayout(),M=k.children.length;if(_.x===T.x&&!0===c.isExpand){var E={};E.x=(k.children[0].getLayout().x+k.children[M-1].getLayout().x)/2,E.y=(k.children[0].getLayout().y+k.children[M-1].getLayout().y)/2,(w=Math.atan2(E.y-T.y,E.x-T.x))<0&&(w=2*Math.PI+w),(S=E.x<T.x)&&(w-=Math.PI)}else(w=Math.atan2(_.y-T.y,_.x-T.x))<0&&(w=2*Math.PI+w),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(S=_.x<T.x)&&(w-=Math.PI):(S=_.x>T.x)||(w-=Math.PI);var C=S?"left":"right",I=l.labelModel.get("rotate"),A=I*(Math.PI/180);b.setStyle({textPosition:l.labelModel.get("position")||C,textRotation:null==I?-w:A,textOrigin:"center",verticalAlign:"middle"})}!function(e,t,n,o,a,s,l,u,c){var h=c.edgeShape,p=o.__edge;if("curve"===h)t.parentNode&&t.parentNode!==n&&(p||(p=o.__edge=new i.BezierCurve({shape:x(c,a,a),style:r.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),i.updateProps(p,{shape:x(c,s,l),style:r.defaults({opacity:1},c.lineStyle)},e));else if("polyline"===h&&"orthogonal"===c.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var d=t.children,m=[],g=0;g<d.length;g++){var y=d[g].getLayout();m.push([y.x,y.y])}p||(p=o.__edge=new f({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:c.orient,forkPosition:c.edgeForkPosition},style:r.defaults({opacity:0,strokeNoScale:!0},c.lineStyle)})),i.updateProps(p,{shape:{parentPoint:[l.x,l.y],childPoints:m},style:r.defaults({opacity:1},c.lineStyle)},e)}u.add(p)}(s,c,p,n,v,g,_,a,l)}function _(e,t,n,r,o,a){for(var s,l=e.tree.getNodeByDataIndex(t),u=e.tree.root,c=l.getModel(),h=(a=y(l,c,a),l.parentNode===u?l:l.parentNode||l),p=a.edgeShape;null==(s=h.getLayout());)h=h.parentNode===u?h:h.parentNode||h;i.updateProps(n,{position:[s.x+1,s.y+1]},o,(function(){r.remove(n),e.setItemGraphicEl(t,null)})),n.fadeOut(null,{keepLabel:!0});var d=e.getItemGraphicEl(h.dataIndex).__edge,f=n.__edge||(!1===h.isExpand||1===h.children.length?d:void 0);p=a.edgeShape;f&&("curve"===p?i.updateProps(f,{shape:x(a,s,s),style:{opacity:0}
77},o,(function(){r.remove(f)})):"polyline"===p&&"orthogonal"===a.layout&&i.updateProps(f,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},o,(function(){r.remove(f)})))}function x(e,t,n){var r,i,o,s,l,u,c,h,p=e.orient;if("radial"===e.layout){l=t.rawX,c=t.rawY,u=n.rawX,h=n.rawY;var d=a(l,c),f=a(l,c+(h-c)*e.curvature),m=a(u,h+(c-h)*e.curvature),g=a(u,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:m.x,cpy2:m.y}}return l=t.x,c=t.y,u=n.x,h=n.y,"LR"!==p&&"RL"!==p||(r=l+(u-l)*e.curvature,i=c,o=u+(l-u)*e.curvature,s=h),"TB"!==p&&"BT"!==p||(r=l,i=c+(h-c)*e.curvature,o=u,s=h+(c-h)*e.curvature),{x1:l,y1:c,x2:u,y2:h,cpx1:r,cpy1:i,cpx2:o,cpy2:s}}e.exports=m},function(e,t,n){var r=n(9),i=n(133).updateCenterAndZoom;r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,r=i(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},function(e,t,n){var r=n(409),i=r.eachAfter,o=r.eachBefore,a=n(211),s=a.init,l=a.firstWalk,u=a.secondWalk,c=a.separation,h=a.radialCoordinate,p=a.getViewRect;e.exports=function(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=p(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,d=0,f=null;"radial"===r?(a=2*Math.PI,d=Math.min(n.height,n.width)/2,f=c((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,d=n.height,f=c());var m=e.getData().tree.root,g=m.children[0];if(g){s(m),i(g,l,f),m.hierNode.modifier=-g.hierNode.prelim,o(g,u);var y=g,v=g,_=g;o(g,(function(e){var t=e.getLayout().x;t<y.getLayout().x&&(y=e),t>v.getLayout().x&&(v=e),e.depth>_.depth&&(_=e)}));var x=y===v?1:f(y,v)/2,b=x-y.getLayout().x,w=0,S=0,k=0,T=0;if("radial"===r)w=a/(v.getLayout().x+x+b),S=d/(_.depth-1||1),o(g,(function(e){k=(e.getLayout().x+b)*w,T=(e.depth-1)*S;var t=h(k,T);e.setLayout({x:t.x,y:t.y,rawX:k,rawY:T},!0)}));else{var M=e.getOrient();"RL"===M||"LR"===M?(S=d/(v.getLayout().x+x+b),w=a/(_.depth-1||1),o(g,(function(e){T=(e.getLayout().x+b)*S,k="LR"===M?(e.depth-1)*w:a-(e.depth-1)*w,e.setLayout({x:k,y:T},!0)}))):"TB"!==M&&"BT"!==M||(w=a/(v.getLayout().x+x+b),S=d/(_.depth-1||1),o(g,(function(e){k=(e.getLayout().x+b)*w,T="TB"===M?(e.depth-1)*S:d-(e.depth-1)*S,e.setLayout({x:k,y:T},!0)})))}}}(e,t)}))}},function(e,t){t.eachAfter=function(e,t,n){for(var r,i=[e],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)t(r,n)},t.eachBefore=function(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}},function(e,t,n){var r=n(9);n(411),n(412),n(415);var i=n(416),o=n(417);r.registerVisual(i),r.registerLayout(o)},function(e,t,n){var r=n(1),i=n(25),o=n(136),a=n(23),s=n(17),l=s.encodeHTML,u=s.addCommas,c=n(64).wrapTreePathInfo,h=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}}
77,visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;r.each(t.children,(function(t){e(t);var i=t.value;r.isArray(i)&&(i=i[0]),n+=i}));var i=t.value;r.isArray(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);r.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=e.levels||[],s=this.designatedVisualItemStyle={},l=new a({itemStyle:s},this,t);i=e.levels=function(e,t){var n,i=t.get("color");if(!i)return;if(e=e||[],r.each(e,(function(e){var t=new a(e),r=t.get("color");(t.get("itemStyle.color")||r&&"none"!==r)&&(n=!0)})),!n){(e[0]||(e[0]={})).color=i.slice()}return e}(i,t);var u=r.map(i||[],(function(e){return new a(e,l,t)}),this),c=o.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=c.getNodeByDataIndex(t),r=u[n.depth];return e.parentModel=r||l,e}))}));return c.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),i=r.isArray(n)?u(n[0]):u(n),o=t.getName(e);return l(o+": "+i)},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=c(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});e.exports=h},function(e,t,n){var r=n(9),i=n(1),o=n(12),a=n(61),s=n(64),l=n(413),u=n(95),c=n(19),h=n(29),p=n(414),d=n(69),f=n(17).windowOpen,m=i.bind,g=o.Group,y=o.Rect,v=i.each,_=["label"],x=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],S=d([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),k=function(e){var t=S(e);return t.stroke=t.fill=t.lineWidth=null,t},T=r.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,r){var o=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(i.indexOf(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=s.retrieveTargetInfo(r,["treemapZoomToNode","treemapRootToNode"],e),l=r&&r.type,u=e.layoutInfo,c=!this._oldTree,h=this._storage,p="treemapRootToNode"===l&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,d=this._giveContainerGroup(u),f=this._doRender(d,e,p);c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?f.renderFinally():this._doAnimation(d,f,e,p),this._resetController(n),this._renderBreadcrumb(e,n,a)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new g,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){var r=t.getData().tree,o=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,c=[],h=i.curry(M,t,l,u,n,s,c);!function e(t,n,r,o,s){o?(n=t,v(t,(function(e,t){!e.isRemoved()&&u(t,t)}))):new a(n,t,l,l).add(u).update(u).remove(i.curry(u,null)).execute();function l(e){return e.getId()}function u(i,a){var l=null!=i?t[i]:null,u=null!=a?n[a]:null,c=h(l,u,r,s);c&&e(l&&l.viewChildren||[],u&&u.viewChildren||[],c,o,s+1)}}(r.root?[r.root]:[],o&&o.root?[o.root]:[],e,r===o||!o,0);var p=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&v(e,(function(e,n){var r=t[n];v(e,(function(e){e&&(r.push(e),e.__tmWillDelete=1)}))})),t}(u);return this._oldTree=r,this._storage=l,{lastsForAnimation:s,willDeleteEls:p,renderFinally:function(){v(p,(function(e){v(e,(function(e){e.parent&&e.parent.remove(e)}))})),v(c,(function(e){e.invisible=!0,e.dirty()}))}}},_doAnimation:function(e,t,n,r){if(n.get("animation")){var o=n.get("animationDurationUpdate"),a=n.get("animationEasing"),s=p.createWrap();v(t.willDeleteEls,(function(e,t){v(e,(function(e,n){if(!e.invisible){var i,l=e.parent;if(r&&"drillDown"===r.direction)i=l===r.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}
77}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),i="nodeGroup"===t?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}i&&s.add(e,i,o,a)}}))})),v(this._storage,(function(e,n){v(e,(function(e,r){var l=t.lastsForAnimation[n][r],u={};l&&("nodeGroup"===n?l.old&&(u.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(u.shape=i.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),u.style={opacity:1}):1!==e.style.opacity&&(u.style={opacity:1})),s.add(e,u,o,a))}))}),this),this._state="animating",s.done(m((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||((t=this._controller=new u(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",m(this._onPan,this)),t.on("zoom",m(this._onZoom,this)));var n=new c(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},_onZoom:function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new c(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=h.create();h.translate(s,s,[-t,-n]),h.scale(s,s,[e.scale,e.scale]),h.translate(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var i=r.hostTree.data.getItemModel(r.dataIndex),o=i.get("link",!0),a=i.get("target",!0)||"blank";o&&f(o,a)}}}}}),this)},_renderBreadcrumb:function(e,t,n){n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,n.node,m((function(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;
77n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n}});function M(e,t,n,r,a,s,l,u,c,h){if(l){var p=l.getLayout(),d=e.getData();if(d.setItemGraphicEl(l.dataIndex,null),p&&p.isInView){var f=p.width,m=p.height,v=p.borderWidth,T=p.invisible,M=l.getRawIndex(),C=u&&u.getRawIndex(),I=l.viewChildren,A=p.upperHeight,P=I&&I.length,D=l.getModel("itemStyle"),L=l.getModel("emphasis.itemStyle"),O=j("nodeGroup",g);if(O){if(c.add(O),O.attr("position",[p.x||0,p.y||0]),O.__tmNodeWidth=f,O.__tmNodeHeight=m,p.isAboveViewRoot)return O;var R=l.getModel(),z=j("background",y,h,1);if(z&&function(t,n,r){if(n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:m}),T)B(n);else{n.invisible=!1;var i=l.getVisual("borderColor",!0),a=L.get("borderColor"),s=k(D);s.fill=i;var u=S(L);if(u.fill=a,r){var c=f-2*v;F(s,u,i,c,A,{x:v,y:0,width:c,height:A})}else s.text=u.text=null;n.setStyle(s),o.setElementHoverStyle(n,u)}t.add(n)}(O,z,P&&p.upperLabelHeight),P)o.isHighDownDispatcher(O)&&o.setAsHighDownDispatcher(O,!1),z&&(o.setAsHighDownDispatcher(z,!0),d.setItemGraphicEl(l.dataIndex,z));else{var N=j("content",y,h,2);N&&function(t,n){n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex;var r=Math.max(f-2*v,0),i=Math.max(m-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:r,height:i}),T)B(n);else{n.invisible=!1;var a=l.getVisual("color",!0),s=k(D);s.fill=a;var u=S(L);F(s,u,a,r,i),n.setStyle(s),o.setElementHoverStyle(n,u)}t.add(n)}(O,N),z&&o.isHighDownDispatcher(z)&&o.setAsHighDownDispatcher(z,!1),o.setAsHighDownDispatcher(O,!0),d.setItemGraphicEl(l.dataIndex,O)}return O}}}function B(e){!e.invisible&&s.push(e)}function F(t,n,r,a,s,u){var c=R.get("name"),h=R.getModel(u?b:_),d=R.getModel(u?w:x),f=h.getShallow("show");o.setLabelStyle(t,n,h,d,{defaultText:f?c:null,autoColor:r,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:u?"upperLabel":"label"}),V(t,u,p),V(n,u,p),u&&(t.textRect=i.clone(u)),t.truncate=f&&h.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function V(t,n,r){var i=t.text;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function j(e,o,s,u){var c=null!=C&&n[e][C],h=a[e];return c?(n[e][C]=null,function(e,t,n){(e[M]={}).old="nodeGroup"===n?t.position.slice():i.extend({},t.shape)}(h,c,e)):T||((c=new o({z:E(s,u)})).__tmDepth=s,c.__tmStorageName=e,function(e,t,n){var i=e[M]={},o=l.parentNode;if(o&&(!r||"drillDown"===r.direction)){var s=0,u=0,c=a.background[o.getRawIndex()];!r&&c&&c.old&&(s=c.old.width,u=c.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}(h,0,e)),t[e][M]=c}}function E(e,t){var n=10*e+t;return(n-1)/n}e.exports=T},function(e,t,n){var r=n(12),i=n(16),o=n(1),a=n(64).wrapTreePathInfo;function s(e){this.group=new r.Group,e.add(this.group)}function l(e,t,n,r,i,o){var a=[[i?e:e-5,t],[e+n,t],[e+n,t+r],[i?e:e-5,t+r]];return!o&&a.splice(2,0,[e+n+5,t+r/2]),!i&&a.push([e,t+r/2]),a}function u(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&a(n,t)}}s.prototype={constructor:s,render:function(e,t,n,r){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var s=o.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,s,l,r),i.positionElement(a,u.pos,u.box)}},_prepare:function(e,t,n){for(var r=e;r;r=r.parentNode){var i=r.getModel().get("name"),o=n.getTextRect(i),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:r,text:i,width:a})}},_renderContent:function(e,t,n,a,s){for(var c=0,h=t.emptyItemWidth,p=e.get("breadcrumb.height"),d=i.getAvailableSize(t.pos,t.box),f=t.totalWidth,m=t.renderList,g=m.length-1;g>=0;g--){var y=m[g],v=y.node,_=y.width,x=y.text;f>d.width&&(f-=_-h,_=h,x=null);var b=new r.Polygon({shape:{points:l(c,0,_,p,g===m.length-1,0===g)},style:o.defaults(n.getItemStyle(),{lineJoin:"bevel",text:x,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:o.curry(s,v)});this.group.add(b),u(b,e,v),c+=_+8}},remove:function(){this.group.removeAll()}};var c=s;e.exports=c},function(e,t,n){var r=n(1);t.createWrap=function(){var e,t=[],n={};
77return{add:function(e,i,o,a,s){return r.isString(a)&&(s=a,a=0),!n[e.id]&&(n[e.id]=1,t.push({el:e,target:i,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var r=t.length,i=0,o=t.length;i<o;i++){var a=t[i];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){--r||(t.length=0,n={},e&&e())}}}}},function(e,t,n){for(var r=n(9),i=n(64),o=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)r.registerAction({type:a[s],update:"updateView"},o);r.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var r=i.retrieveTargetInfo(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var o=t.getViewRoot();o&&(e.direction=i.aboveViewRoot(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}))},function(e,t,n){var r=n(65),i=n(39),o=n(1),a=o.isArray,s={seriesType:"treemap",reset:function(e,t,n,a){var s=e.getData().tree.root;s.isRemoved()||function e(t,n,a,s){var u=t.getModel(),h=t.getLayout();if(!h||h.invisible||!h.isInView)return;var p,d=t.getModel("itemStyle"),f=function(e,t,n){var r=o.extend({},t),i=n.designatedVisualItemStyle;return o.each(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(d,n,s),m=d.get("borderColor"),g=d.get("borderColorSaturation");null!=g&&(p=l(f),m=function(e,t){return null!=t?i.modifyHSL(t,null,null,e):null}(g,p));t.setVisual("borderColor",m);var y=t.viewChildren;if(y&&y.length){var v=function(e,t,n,i,o,a){if(!a||!a.length)return;var s=c(t,"color")||null!=o.color&&"none"!==o.color&&(c(t,"colorAlpha")||c(t,"colorSaturation"));if(!s)return;var l=t.get("visualMin"),u=t.get("visualMax"),h=n.dataExtent.slice();null!=l&&l<h[0]&&(h[0]=l),null!=u&&u>h[1]&&(h[1]=u);var p=t.get("colorMappingBy"),d={type:s.name,dataExtent:h,visual:s.range};"color"!==d.type||"index"!==p&&"id"!==p?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new r(d);return f.__drColorMappingBy=p,f}(0,u,h,0,f,y);o.each(y,(function(t,n){if(t.depth>=a.length||t===a[t.depth]){var r=function(e,t,n,r,i,a){var s=o.extend({},t);if(i){var l=i.type,u="color"===l&&i.__drColorMappingBy,c="index"===u?r:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[l]=i.mapValueToVisual(c)}return s}(u,f,t,n,v,s);e(t,r,a,s)}}))}else p=l(f),t.setVisual("color",p)}(s,{},e.getViewRoot().getAncestors(),e)}};function l(e){var t=u(e,"color");if(t){var n=u(e,"colorAlpha"),r=u(e,"colorSaturation");return r&&(t=i.modifyHSL(t,null,null,r)),n&&(t=i.modifyAlpha(t,n)),t}}function u(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function c(e,t){var n=e.get(t);return a(n)&&n.length?{name:t,range:n}:null}e.exports=s},function(e,t,n){var r=n(1),i=n(19),o=n(13),a=o.parsePercent,s=o.MAX_SAFE_INTEGER,l=n(16),u=n(64),c=Math.max,h=Math.min,p=r.retrieve,d=r.each,f=["itemStyle","borderWidth"],m=["itemStyle","gapWidth"],g=["upperLabel","show"],y=["upperLabel","height"],v={seriesType:"treemap",reset:function(e,t,n,o){var g=n.getWidth(),y=n.getHeight(),v=e.option,S=l.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),k=v.size||[],T=a(p(S.width,k[0]),g),M=a(p(S.height,k[1]),y),E=o&&o.type,C=u.retrieveTargetInfo(o,["treemapZoomToNode","treemapRootToNode"],e),I="treemapRender"===E||"treemapMove"===E?o.rootRect:null,A=e.getViewRoot(),P=u.getPathToRoot(A);if("treemapMove"!==E){var D="treemapZoomToNode"===E?function(e,t,n,r,i){var o,a=(t||{}).node,l=[r,i];if(!a||a===n)return l;var u=r*i,c=u*e.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var h=0,p=o.children,d=0,m=p.length;d<m;d++)h+=p[d].getValue();var g=a.getValue();if(0===g)return l;c*=h/g;var y=o.getModel(),v=y.get(f),_=Math.max(v,w(y));(c+=4*v*v+(3*v+_)*Math.pow(c,.5))>s&&(c=s),a=o}c<u&&(c=u);var x=Math.pow(c/u,.5);return[r*x,i*x]}(e,C,A,T,M):I?[I.width,I.height]:[T,M],L=v.sort;L&&"asc"!==L&&"desc"!==L&&(L="desc");var O={squareRatio:v.squareRatio,sort:L,leafDepth:v.leafDepth};A.hostTree.clearLayouts();var R={x:0,y:0,width:D[0],height:D[1],area:D[0]*D[1]};A.setLayout(R),function e(t,n,r,i){var o,a;if(t.isRemoved())return;var s=t.getLayout();o=s.width,a=s.height;var l=(v=t.getModel()).get(f),u=v.get(m)/2,p=w(v),d=Math.max(l,p),g=l-u,y=d-u,v=t.getModel();t.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:p},!0),o=c(o-2*g,0),a=c(a-g-y,0);var S=o*a,k=_(t,v,S,n,r,i);if(!k.length)return;var T={x:g,y:y,width:o,height:a},M=h(o,a),E=1/0,C=[];C.area=0;for(var I=0,A=k.length;I<A;){var P=k[I];C.push(P),C.area+=P.getLayout().area;var D=x(C,M,n.squareRatio);D<=E?(I++,E=D):(C.area-=C.pop().getLayout().area,b(C,M,T,u,!1),M=h(T.width,T.height),C.length=C.area=0,E=1/0)}C.length&&b(C,M,T,u,!0);
77if(!r){var L=v.get("childrenVisibleMin");null!=L&&S<L&&(r=!0)}for(I=0,A=k.length;I<A;I++)e(k[I],n,r,i+1)}(A,O,!1,0);R=A.getLayout();d(P,(function(e,t){var n=(P[t+1]||A).getValue();e.setLayout(r.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},R))}))}var z=e.getData().tree.root;z.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(S,I,C),!0),e.setLayoutInfo(S),function e(t,n,r,o,a){var s=t.getLayout(),l=r[a],u=l&&l===t;if(l&&!u||a===r.length&&t!==o)return;t.setLayout({isInView:!0,invisible:!u&&!n.intersect(s),isAboveViewRoot:u},!0);var c=new i(n.x-s.x,n.y-s.y,n.width,n.height);d(t.viewChildren||[],(function(t){e(t,c,r,o,a+1)}))}(z,new i(-S.x,-S.y,g,y),P,A,0)}};function _(e,t,n,i,o,a){var s=e.children||[],l=i.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=i.leafDepth&&i.leafDepth<=a;if(o&&!u)return e.viewChildren=[];!function(e,t){t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}))}(s=r.filter(s,(function(e){return!e.isRemoved()})),l);var c=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a=e.get("visualDimension");if(t&&t.length)if("value"===a&&n)s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];d(t,(function(e){var t=e.getValue(a);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:r,dataExtent:s}}(t,s,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(t,n,c.sum,l,s),0===c.sum)return e.viewChildren=[];for(var h=0,p=s.length;h<p;h++){var f=s[h].getValue()/c.sum*n;s[h].setLayout({area:f})}return u&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:c.dataExtent},!0),s}function x(e,t,n){for(var r,i=0,o=1/0,a=0,s=e.length;a<s;a++)(r=e[a].getLayout().area)&&(r<o&&(o=r),r>i&&(i=r));var l=e.area*e.area,u=t*t*n;return l?c(u*i/l,l/(u*o)):1/0}function b(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],p=t?e.area/t:0;(i||p>n[l[a]])&&(p=n[l[a]]);for(var d=0,f=e.length;d<f;d++){var m=e[d],g={},y=p?m.getLayout().area/p:0,v=g[l[a]]=c(p-2*r,0),_=n[s[o]]+n[l[o]]-u,x=d===f-1||_<y?_:y,b=g[l[o]]=c(x-2*r,0);g[s[a]]=n[s[a]]+h(r,v/2),g[s[o]]=u+h(r,b/2),u+=x,m.setLayout(g,!0)}n[s[a]]+=p,n[l[a]]-=p}function w(e){return e.get(g)?e.get(y):0}e.exports=v},function(e,t,n){var r=n(9);n(419),n(421),n(424);var i=n(425),o=n(62),a=n(426),s=n(427),l=n(428),u=n(429),c=n(430),h=n(432);r.registerProcessor(i),r.registerVisual(o("graph","circle",null)),r.registerVisual(a),r.registerVisual(s),r.registerLayout(l),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),r.registerLayout(c),r.registerCoordinateSystem("graphView",{create:h})},function(e,t,n){var r=n(9),i=n(34),o=n(1),a=n(14).defaultEmphasis,s=n(23),l=n(17).encodeHTML,u=n(212),c=n(93),h=n(114),p=h.initCurvenessList,d=h.createEdgeMapForCurveness,f=r.extendSeriesModel({type:"series.graph",init:function(e){f.superApply(this,"init",arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new c(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){f.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){f.superApply(this,"mergeDefaultAndTheme",arguments),a(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){p(this);var a=u(r,n,this,!0,(function(e,n){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var r=i.getModel("edgeLabel"),o=new s({label:r.option},r.parentModel,t),a=i.getModel("emphasis.edgeLabel"),l=new s({emphasis:{label:a.option}},a.parentModel,t);function u(e){return(e=this.parsePath(e))&&"label"===e[0]?o:e&&"emphasis"===e[0]&&"label"===e[1]?l:this.parentModel}n.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(u),e}))}));return o.each(a.edges,(function(e){d(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),u=[];return null!=a&&u.push(a),null!=s&&u.push(s),u=l(u.join(" > ")),i.value&&(u+=" : "+l(i.value)),u}return f.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=o.map(this.option.categories||[],(function(e){return null!=e.value?e:o.extend({value:0},e)})),t=new i(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return f.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0}
77,left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),m=f;e.exports=m},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(42).enableClassCheck;function o(e){return"_EC_"+e}var a=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=a.prototype;function l(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function u(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[o(e)]){var r=new l(e,t);return r.hostGraph=this,this.nodes.push(r),n[o(e)]=r,r}},s.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},s.getNodeById=function(e){return this._nodesMap[o(e)]},s.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),l.isInstance(e)||(e=r[o(e)]),l.isInstance(t)||(t=r[o(t)]),e&&t){var a=e.id+"-"+t.id,s=new u(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[a]=s,s}},s.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},s.getEdge=function(e,t){l.isInstance(e)&&(e=e.id),l.isInstance(t)&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},s.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},s.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},s.breadthFirstTraverse=function(e,t,n,r){if(l.isInstance(t)||(t=this._nodesMap[o(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var s=[t];s.length;){var u=s.shift(),c=u[i];for(a=0;a<c.length;a++){var h=c[a],p=h.node1===u?h.node2:h.node1;if(!p.__visited){if(e.call(r,p,u))return;s.push(p),p.__visited=!0}}}}},s.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},s.clone=function(){for(var e=new a(this._directed),t=this.nodes,n=this.edges,r=0;r<t.length;r++)e.addNode(t[r].id,t[r].dataIndex);for(r=0;r<n.length;r++){var i=n[r];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},l.prototype={constructor:l,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)}},u.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)};var c=function(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n,r){return this[e][t].getItemVisual(this.dataIndex,n,r)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};r.mixin(l,c("hostGraph","data")),r.mixin(u,c("hostGraph","edgeData")),a.Node=l,a.Edge=u,i(l),i(u);var h=a;e.exports=h},function(e,t,n){var r=n(9),i=n(1),o=n(89),a=n(137),s=n(95),l=n(132),u=n(113).onIrrelevantElement,c=n(12),h=n(423),p=n(139).getNodeGlobalScale,d="__focusNodeAdjacency",f=["itemStyle","opacity"],m=["lineStyle","opacity"];function g(e,t){var n=e.getVisual("opacity");return null!=n?n:e.getModel().get(t)}function y(e,t,n){var r=e.getGraphicEl(),i=g(e,t);null!=n&&(null==i&&(i=1),i*=n),r.downplay&&r.downplay(),r.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==n||(t=i),e.setStyle("opacity",t)}}))}function v(e,t){var n=g(e,t),r=e.getGraphicEl();r.traverse((function(e){!e.isGroup&&e.setStyle("opacity",n)})),r.highlight&&r.highlight()}var _=r.extendChartView({type:"graph",init:function(e,t){var n=new o,r=new a,i=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRen
77der=!0},render:function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if("view"===i.type){var l={position:i.position,scale:i.scale};this._firstRender?s.attr(l):c.updateProps(s,l,e)}h(e.getGraph(),p(e));var u=e.getData();o.updateData(u);var f=e.getEdgeData();a.updateData(f),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var m=e.forceLayout,g=e.get("force.layoutAnimation");m&&this._startForceLayoutIteration(m,g),u.eachItemGraphicEl((function(t,i){var o=u.getItemModel(i);t.off("drag").off("dragend");var a=o.get("draggable");a&&t.on("drag",(function(){m&&(m.warmUp(),!this._layouting&&this._startForceLayoutIteration(m,g),m.setFixed(i),u.setItemLayout(i,t.position))}),this).on("dragend",(function(){m&&m.setUnfixed(i)}),this),t.setDraggable(a&&m),t[d]&&t.off("mouseover",t[d]),t.__unfocusNodeAdjacency&&t.off("mouseout",t.__unfocusNodeAdjacency),o.get("focusNodeAdjacency")&&(t.on("mouseover",t[d]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t.__unfocusNodeAdjacency=function(){r._dispatchUnfocus(n)}))}),this),u.graph.eachEdge((function(t){var i=t.getGraphicEl();i[d]&&i.off("mouseover",i[d]),i.__unfocusNodeAdjacency&&i.off("mouseout",i.__unfocusNodeAdjacency),t.getModel().get("focusNodeAdjacency")&&(i.on("mouseover",i[d]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),i.on("mouseout",i.__unfocusNodeAdjacency=function(){r._dispatchUnfocus(n)}))}));var y="circular"===e.get("layout")&&e.get("circular.rotateLabel"),v=u.getLayout("cx"),_=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t).get("label.rotate")||0,r=e.getSymbolPath();if(y){var i=u.getItemLayout(t),o=Math.atan2(i[1]-_,i[0]-v);o<0&&(o=2*Math.PI+o);var a=i[0]<v;a&&(o-=Math.PI);var s=a?"left":"right";c.modifyLabelStyle(r,{textRotation:-o,textPosition:s,textOrigin:"center"},{textPosition:s})}else c.modifyLabelStyle(r,{textRotation:n*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,r){var o=e.getData().graph,a=r.dataIndex,s=r.edgeDataIndex,l=o.getNodeByIndex(a),u=o.getEdgeByIndex(s);(l||u)&&(o.eachNode((function(e){y(e,f,.1)})),o.eachEdge((function(e){y(e,m,.1)})),l&&(v(l,f),i.each(l.edges,(function(e){e.dataIndex<0||(v(e,m),v(e.node1,f),v(e.node2,f))}))),u&&(v(u,m),v(u.node1,f),v(u.node2,f)))},unfocusNodeAdjacency:function(e,t,n,r){var i=e.getData().graph;i.eachNode((function(e){y(e,f)})),i.eachEdge((function(e){y(e,m)}))},_startForceLayoutIteration:function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},_updateController:function(e,t,n){var r=this._controller,i=this._controllerHost,o=this.group;r.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!u(t,n,e)})),"view"===e.coordinateSystem.type?(r.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){l.updateViewOnPan(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){l.updateViewOnZoom(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),h(e.getGraph(),p(e)),this._lineDraw.updateLayout()}),this)):r.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),n=p(e),r=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",r)}))},updateLayout:function(e){h(e.getGraph(),p(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=_},function(e,t,n){var r=n(12),i=n(18),o=r.Line.prototype,a=r.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}
77var l=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:o.buildPath,_buildPathCurve:a.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:o.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(e){var t=this.shape,n=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return i.normalize(n,n)},_tangentAtCurve:a.tangentAt});e.exports=l},function(e,t,n){var r=n(48),i=n(18),o=n(139).getSymbolSize,a=[],s=[],l=[],u=r.quadraticAt,c=i.distSquare,h=Math.abs;function p(e,t,n){for(var r,i=e[0],o=e[1],p=e[2],d=1/0,f=n*n,m=.1,g=.1;g<=.9;g+=.1){a[0]=u(i[0],o[0],p[0],g),a[1]=u(i[1],o[1],p[1],g),(_=h(c(a,t)-f))<d&&(d=_,r=g)}for(var y=0;y<32;y++){var v=r+m;s[0]=u(i[0],o[0],p[0],r),s[1]=u(i[1],o[1],p[1],r),l[0]=u(i[0],o[0],p[0],v),l[1]=u(i[1],o[1],p[1],v);var _=c(s,t)-f;if(h(_)<.01)break;var x=c(l,t)-f;m/=2,_<0?x>=0?r+=m:r-=m:x>=0?r-=m:r+=m}return r}e.exports=function(e,t){var n=[],a=r.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];t/=2,e.eachEdge((function(e,r){var c=e.getLayout(),h=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");c.__original||(c.__original=[i.clone(c[0]),i.clone(c[1])],c[2]&&c.__original.push(i.clone(c[2])));var f=c.__original;if(null!=c[2]){if(i.copy(s[0],f[0]),i.copy(s[1],f[2]),i.copy(s[2],f[1]),h&&"none"!==h){var m=o(e.node1),g=p(s,f[0],m*t);a(s[0][0],s[1][0],s[2][0],g,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],g,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){m=o(e.node2),g=p(s,f[1],m*t);a(s[0][0],s[1][0],s[2][0],g,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],g,n),s[1][1]=n[1],s[2][1]=n[2]}i.copy(c[0],s[0]),i.copy(c[1],s[2]),i.copy(c[2],s[1])}else{if(i.copy(l[0],f[0]),i.copy(l[1],f[1]),i.sub(u,l[1],l[0]),i.normalize(u,u),h&&"none"!==h){m=o(e.node1);i.scaleAndAdd(l[0],l[0],u,m*t)}if(d&&"none"!==d){m=o(e.node2);i.scaleAndAdd(l[1],l[1],u,-m*t)}i.copy(c[0],l[0]),i.copy(c[1],l[1])}}))}},function(e,t,n){var r=n(9),i=n(133).updateCenterAndZoom;n(213);r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,r=i(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){"number"==typeof n&&(n=i[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}),this)}},function(e,t){e.exports=function(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.get("itemStyle.color")||e.getColorFromPalette(o,t);n.setItemVisual(r,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){"string"==typeof t&&(t=i["ec-"+t]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<o.length;a++)null==r.getItemVisual(e,o[a],!0)&&r.setItemVisual(e,o[a],n.getItemVisual(t,o[a]))}}))}))}},function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}e.exports=function(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),r=e.getEdgeData(),i=n(e.get("edgeSymbol")),o=n(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("color",e.get(a)),r.setVisual("opacity",e.get(s)),r.each((function(e){var i=r.getItemModel(e),o=t.getEdgeByIndex(e),l=n(i.getShallow("symbol",!0)),u=n(i.getShallow("symbolSize",!0)),c=i.get(a),h=i.get(s);switch(c){case"source":c=o.node1.getVisual("color");break;case"target":c=o.node2.getVisual("color")}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",c),o.setVisual("opacity",h)}))}))}},function(e,t,n){var r=n(1).each,i=n(214),o=i.simpleLayout,a=i.simpleLayoutE
77dge;e.exports=function(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),s=[];r(n.dimensions,(function(e){s=s.concat(i.mapDimension(e,!0))}));for(var l=0;l<i.count();l++){for(var u=[],c=!1,h=0;h<s.length;h++){var p=i.get(s[h],l);isNaN(p)||(c=!0),u.push(p)}c?i.setItemLayout(l,n.dataToPoint(u)):i.setItemLayout(l,[NaN,NaN])}a(i.graph,e)}else t&&"none"!==t||o(e)}))}},function(e,t,n){var r=n(215).circularLayout;e.exports=function(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&r(e,"symbolSize")}))}},function(e,t,n){var r=n(431).forceLayout,i=n(214).simpleLayout,o=n(215).circularLayout,a=n(13).linearMap,s=n(18),l=n(1),u=n(114).getCurvenessForEdge;e.exports=function(e){e.eachSeriesByType("graph",(function(e){if(!(v=e.coordinateSystem)||"view"===v.type)if("force"===e.get("layout")){var t=e.preservedPoints||{},n=e.getGraph(),c=n.data,h=n.edgeData,p=e.getModel("force"),d=p.get("initLayout");e.preservedPoints?c.each((function(e){var n=c.getId(e);c.setItemLayout(e,t[n]||[NaN,NaN])})):d&&"none"!==d?"circular"===d&&o(e,"value"):i(e);var f=c.getDataExtent("value"),m=h.getDataExtent("value"),g=p.get("repulsion"),y=p.get("edgeLength");l.isArray(g)||(g=[g,g]),l.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var v,_=c.mapArray("value",(function(e,t){var n=c.getItemLayout(t),r=a(e,f,g);return isNaN(r)&&(r=(g[0]+g[1])/2),{w:r,rep:r,fixed:c.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),x=h.mapArray("value",(function(t,r){var i=n.getEdgeByIndex(r),o=a(t,m,y);isNaN(o)&&(o=(y[0]+y[1])/2);var s=i.getModel(),c=l.retrieve3(s.get("lineStyle.curveness"),-u(i,e,r,!0),0);return{n1:_[i.node1.dataIndex],n2:_[i.node2.dataIndex],d:o,curveness:c,ignoreForceLayout:s.get("ignoreForceLayout")}})),b=(v=e.coordinateSystem).getBoundingRect(),w=r(_,x,{rect:b,gravity:p.get("gravity"),friction:p.get("friction")}),S=w.step;w.step=function(e){for(var r=0,i=_.length;r<i;r++)_[r].fixed&&s.copy(_[r].p,n.getNodeByIndex(r).getLayout());S((function(r,i,o){for(var a=0,l=r.length;a<l;a++)r[a].fixed||n.getNodeByIndex(a).setLayout(r[a].p),t[c.getId(a)]=r[a].p;for(a=0,l=i.length;a<l;a++){var u=i[a],h=n.getEdgeByIndex(a),p=u.n1.p,d=u.n2.p,f=h.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],p),s.copy(f[1],d),+u.curveness&&(f[2]=[(p[0]+d[0])/2-(p[1]-d[1])*u.curveness,(p[1]+d[1])/2-(d[0]-p[0])*u.curveness]),h.setLayout(f)}e&&e(o)}))},e.forceLayout=w,e.preservedPoints=t,w.step()}else e.forceLayout=null}))}},function(e,t,n){var r=n(18),i=r.scaleAndAdd;t.forceLayout=function(e,t,n){for(var o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<e.length;c++){var h=e[c];h.p||(h.p=r.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=r.clone(h.p),h.edges=null}var p=null==n.friction?.6:n.friction,d=p;return{warmUp:function(){d=.8*p},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(n){for(var o=[],a=e.length,s=0;s<t.length;s++){var c=t[s];if(!c.ignoreForceLayout){var h=c.n1,p=c.n2;r.sub(o,p.p,h.p);var f=r.len(o)-c.d,m=p.w/(h.w+p.w);isNaN(m)&&(m=0),r.normalize(o,o),!h.fixed&&i(h.p,h.p,o,m*f*d),!p.fixed&&i(p.p,p.p,o,-(1-m)*f*d)}}for(s=0;s<a;s++){(_=e[s]).fixed||(r.sub(o,l,_.p),i(_.p,_.p,o,u*d))}for(s=0;s<a;s++){h=e[s];for(var g=s+1;g<a;g++){p=e[g];r.sub(o,p.p,h.p),0===(f=r.len(o))&&(r.set(o,Math.random()-.5,Math.random()-.5),f=1);var y=(h.rep+p.rep)/f/f;!h.fixed&&i(h.pp,h.pp,o,y),!p.fixed&&i(p.pp,p.pp,o,-y)}}var v=[];for(s=0;s<a;s++){var _;(_=e[s]).fixed||(r.sub(v,_.p,_.pp),i(_.p,_.p,v,d),r.copy(_.pp,_.p))}d*=.992,n&&n(e,t,d<.01)}}}},function(e,t,n){var r=n(135),i=n(16).getLayoutRect,o=n(84);e.exports=function(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var a=e.get("coordinateSystem");if(!a||"view"===a){var s=e.getData(),l=s.mapArray((function(e){var t=s.getItemModel(e);return[+t.get("x"),+t.get("y")]})),u=[],c=[];o.fromPoints(l,u,c),c[0]-u[0]==0&&(c[0]+=1,u[0]-=1),c[1]-u[1]==0&&(c[1]+=1,u[1]-=1);var h=(c[0]-u[0])/(c[1]-u[1]),p=function(e,t,n){var r=e.getBoxLayoutParams();return r.aspect=n,i(r,{width:t.getWidth(),height:t.getHeight()})}(e,t,h);isNaN(h)&&(u=[p.x,p.y],c=[p.x+p.width,p.y+p.height]);var d=c[0]-u[0],f=c[1]-u[1],m=p.width,g=p.height,y=e.coordinateSystem=new r;
77y.zoomLimit=e.get("scaleLimit"),y.setBoundingRect(u[0],u[1],d,f),y.setViewRect(p.x,p.y,m,g),y.setCenter(e.get("center")),y.setZoom(e.get("zoom")),n.push(y)}})),n}},function(e,t,n){n(434),n(435)},function(e,t,n){var r=n(74),i=n(25).extend({type:"series.gauge",getInitialData:function(e,t){return r(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});e.exports=i},function(e,t,n){var r=n(436),i=n(12),o=n(40),a=n(13),s=a.parsePercent,l=a.round,u=a.linearMap;function c(e,t){return t&&("string"==typeof t?e=t.replace("{value}",null!=e?e:""):"function"==typeof t&&(e=t(e))),e}var h=2*Math.PI,p=o.extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var r=e.get("axisLine.lineStyle.color"),i=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i);return{cx:s(n[0],t.getWidth()),cy:s(n[1],t.getHeight()),r:s(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,r,i)},dispose:function(){},_renderMain:function(e,t,n,r,o){for(var a=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),u=e.get("clockwise"),c=-e.get("startAngle")/180*Math.PI,p=((y=-e.get("endAngle")/180*Math.PI)-c)%h,d=c,f=l.get("width"),m=s.get("show"),g=0;m&&g<r.length;g++){var y=c+p*Math.min(Math.max(r[g][0],0),1),v=new i.Sector({shape:{startAngle:d,endAngle:y,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-f,r:o.r},silent:!0});v.setStyle({fill:r[g][1]}),v.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),a.add(v),d=y}var _=function(e){if(e<=0)return r[0][1];for(var t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!u){var x=c;c=y,y=x}this._renderTicks(e,t,n,_,o,c,y,u),this._renderPointer(e,t,n,_,o,c,y,u),this._renderTitle(e,t,n,_,o),this._renderDetail(e,t,n,_,o)},_renderTicks:function(e,t,n,r,o,a,u,h){for(var p=this.group,d=o.cx,f=o.cy,m=o.r,g=+e.get("min"),y=+e.get("max"),v=e.getModel("splitLine"),_=e.getModel("axisTick"),x=e.getModel("axisLabel"),b=e.get("splitNumber"),w=_.get("splitNumber"),S=s(v.get("length"),m),k=s(_.get("length"),m),T=a,M=(u-a)/b,E=M/w,C=v.getModel("lineStyle").getLineStyle(),I=_.getModel("lineStyle").getLineStyle(),A=0;A<=b;A++){var P=Math.cos(T),D=Math.sin(T);if(v.get("show")){var L=new i.Line({shape:{x1:P*m+d,y1:D*m+f,x2:P*(m-S)+d,y2:D*(m-S)+f},style:C,silent:!0});"auto"===C.stroke&&L.setStyle({stroke:r(A/b)}),p.add(L)}if(x.get("show")){var O=c(l(A/b*(y-g)+g),x.get("formatter")),R=x.get("distance"),z=r(A/b);p.add(new i.Text({style:i.setTextStyle({},x,{text:O,x:P*(m-S-R)+d,y:D*(m-S-R)+f,textVerticalAlign:D<-.4?"top":D>.4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:z}),silent:!0}))}if(_.get("show")&&A!==b){for(var N=0;N<=w;N++){P=Math.cos(T),D=Math.sin(T);var B=new i.Line({shape:{x1:P*m+d,y1:D*m+f,x2:P*(m-k)+d,y2:D*(m-k)+f},silent:!0,style:I});"auto"===I.stroke&&B.setStyle({stroke:r((A+N/w)/b)}),p.add(B),T+=E}T-=E}else T+=M}},_renderPointer:function(e,t,n,o,a,l,c,h){var p=this.group,d=this._data;if(e.get("pointer.show")){var f=[+e.get("min"),+e.get("max")],m=[l,c],g=e.getData(),y=g.mapDimension("value");g.diff(d).add((function(t){var n=new r({shape:{angle:l}});i.initProps(n,{shape:{angle:u(g.get(y,t),f,m,!0)}},e),p.add(n),g.setItemGraphicEl(t,n)})).update((function(t,n){var r=d.getItemGraphicEl(n);i.updateProps(r,{shape:{angle:u(g.get(y,t),f,m,!0)}},e),p.add(r),g.setItemGraphicEl(t,r)})).remove((function(e){var t=d.getItemGraphicEl(e);p.remove(t)})).execute(),g.eachItemGraphicEl((function(e,t){var n=g.getItemModel(t),r=n.getModel("pointer");e.setShape({x:a.cx,y:a.cy,width:s(r.get("width"),a.r),r:s(r.get("length"),a.r)}),e.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",o(u(g.get(y,t),f,[0,1],!0))),i.setHoverStyle(e,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=g}else d&&d.eachItemGraphicEl((function(e){p.remove(e)}))},_renderTitle:function(e,t,n,r,o){var a=e.getData(),l=a.mapDimension("value"),c=e.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),p=o.cx+s(h[0],o.r),d=o.cy+s(h[1],o.r),f=+e.get("min"),m=+e.get("max"),g=e.getData().get(l,0),y=r(u(g,[f,m],[0,1],!0));this.group.add(new i.Text({silent:!0,style:i.setTextStyle({},c,{x:p,y:d,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:y,forceRich:!0})}))}}
77,_renderDetail:function(e,t,n,r,o){var a=e.getModel("detail"),l=+e.get("min"),h=+e.get("max");if(a.get("show")){var p=a.get("offsetCenter"),d=o.cx+s(p[0],o.r),f=o.cy+s(p[1],o.r),m=s(a.get("width"),o.r),g=s(a.get("height"),o.r),y=e.getData(),v=y.get(y.mapDimension("value"),0),_=r(u(v,[l,h],[0,1],!0));this.group.add(new i.Text({silent:!0,style:i.setTextStyle({},a,{x:d,y:f,text:c(v,a.get("formatter")),textWidth:isNaN(m)?null:m,textHeight:isNaN(g)?null:g,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}});e.exports=p},function(e,t,n){var r=n(20).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)}});e.exports=r},function(e,t,n){var r=n(9);n(438),n(439);var i=n(111),o=n(440),a=n(94);r.registerVisual(i("funnel")),r.registerLayout(o),r.registerProcessor(a("funnel"))},function(e,t,n){var r=n(9),i=n(1),o=n(74),a=n(14).defaultEmphasis,s=n(43).makeSeriesEncodeForNameBased,l=n(93),u=r.extendSeriesModel({type:"series.funnel",init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(i.bind(this.getData,this),i.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:i.curry(s,this)})},_defaultLabelLine:function(e){a(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),n=u.superCall(this,"getDataParams",e),r=t.mapDimension("value"),i=t.getSum(r);return n.percent=i?+(t.get(r,e)/i*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),c=u;e.exports=c},function(e,t,n){var r=n(12),i=n(1),o=n(40);function a(e,t){r.Group.call(this);var n=new r.Polygon,i=new r.Polyline,o=new r.Text;this.add(n),this.add(i),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore):(i.ignore=i.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var o=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),u=e.getItemLayout(t),c=e.getItemModel(t).get(l);c=null==c?1:c,o.useStyle({}),n?(o.setShape({points:u.points}),o.setStyle({opacity:0}
77),r.initProps(o,{style:{opacity:c}},a,t)):r.updateProps(o,{style:{opacity:c},shape:{points:u.points}},a,t);var h=s.getModel("itemStyle"),p=e.getItemVisual(t,"color");o.setStyle(i.defaults({lineJoin:"round",fill:p},h.getItemStyle(["opacity"]))),o.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),r.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),i=this.childAt(2),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"color");r.updateProps(n,{shape:{points:s.linePoints||s.linePoints}},o,t),r.updateProps(i,{style:{x:s.x,y:s.y}},o,t),i.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var u=a.getModel("label"),c=a.getModel("emphasis.label"),h=a.getModel("labelLine"),p=a.getModel("emphasis.labelLine");l=e.getItemVisual(t,"color");r.setLabelStyle(i.style,i.hoverStyle={},u,c,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!c.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:l}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},i.inherits(a,r.Group);var u=o.extend({type:"funnel",render:function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new a(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(e){var t=i.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=u},function(e,t,n){n(15).__DEV__;var r=n(16),i=n(13),o=i.parsePercent,a=i.linearMap;e.exports=function(e,t,n){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),s=e.get("sort"),l=function(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),u=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return"function"==typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}(n,s),c=e.get("orient"),h=l.width,p=l.height,d=l.x,f=l.y,m="horizontal"===c?[o(e.get("minSize"),p),o(e.get("maxSize"),p)]:[o(e.get("minSize"),h),o(e.get("maxSize"),h)],g=n.getDataExtent(i),y=e.get("min"),v=e.get("max");null==y&&(y=Math.min(g[0],0)),null==v&&(v=g[1]);var _=e.get("funnelAlign"),x=e.get("gap"),b=(("horizontal"===c?h:p)-x*(n.count()-1))/n.count(),w=function(e,t){if("horizontal"===c){var r,o=n.get(i,e)||0,s=a(o,[y,v],m,!0);switch(_){case"top":r=f;break;case"center":r=f+(p-s)/2;break;case"bottom":r=f+(p-s)}return[[t,r],[t,r+s]]}o=n.get(i,e)||0;var l,u=a(o,[y,v],m,!0);switch(_){case"left":l=d;break;case"center":l=d+(h-u)/2;break;case"right":l=d+h-u}return[[l,t],[l+u,t]]};"ascending"===s&&(b=-b,x=-x,"horizontal"===c?d+=h:f+=p,u=u.reverse());for(var S=0;S<u.length;S++){var k=u[S],T=u[S+1],M=n.getItemModel(k);if("horizontal"===c){var E=M.get("itemStyle.width");null==E?E=b:(E=o(E,h),"ascending"===s&&(E=-E));var C=w(k,d),I=w(T,d+E);d+=E+x,n.setItemLayout(k,{points:C.concat(I.slice().reverse())})}else{var A=M.get("itemStyle.height");null==A?A=b:(A=o(A,p),"ascending"===s&&(A=-A));C=w(k,"horizontal"===c?d:f),I=w(T,"horizontal"===c?d+E:f+A);f+=A+x,n.setItemLayout(k,{points:C.concat(I.slice().reverse())})}}!function(e){e.each((function(t){var n,r,i,o,a=e.getItemModel(t),s=a.getModel("label").get("position"),l=a.get("orient"),u=a.getModel("labelLine"),c=e.getItemLayout(t),h=c.points,p="inner"===s||"inside"===s||"center"===s||"insideLeft"===s||"insideRight"===s;if(p)"insideLeft"===s?(r=(h[0][0]+h[3][0])/2+5,i=(h[0][1]+h[3][1])/2,n="left"):"insideRight"===s?(r=(h[1][0]+h[2][0])/2-5,i=(h[1][1]+h[2][1])/2,n="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,i=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center"),o=[[r,i],[r,i]];else{var d,f,m,g,y=u.get("length");"left"===s?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,r=(m=d-y)-5,n="right"):"right"===s?(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,r=(m=d+y)+5,n="left"):"top"===s?(d=(h[3][0]+h[0][0])/2,i=(g=(f=(h[3][1]+h[0][1])/2)-y)-5,n="center"):"bottom"===s?(d=(h[1][0]+h[2][0])/2,i=(g=(f=(h[1][1]+h[2][1])/2)+y)+5,n="center"):"rightTop"===s?(d="horizontal"===l?h[3][0]:h[1][0],f="horizontal"===l?h[3][1]:h[1][1],"horizontal"===l?(i=(g=f-y)-5,n="center"):(r=(m=d+y)+5,n="top")):"rightBottom"===s?(d=h[2][0],f=h[2][1],"horizontal"===l?(i=(g=f+y)+5,n="center"):(r=(m=d+y)+5,n="bottom")):"leftTop"===s?(d=h[0][0],f="horizontal"===l?h[0][1]:h[1][1],"horizontal"===l?(i=(g=f-y)-5,n="center"):(r=(m=d-y)-5,n="right")):"leftBottom"===s?(d="horizontal"===l?h[1][0]:h[3][0],f="horizontal"===l?h[1][1]:h[2][1],"horizontal"===l?(i=(g=f+y)+5,n="center"):(r=(m=d-y)-5,n="right")):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===l?(i=(g=f+y)+5,n="center"):(r=(m=d+y)+5,n="left")),"horizontal"===l?r=m=d:i=g=f,o=[[d,f],[m,g]]}c.label={linePoints:o,x:r,y:i,verticalAlign:"middle",textAlign:n,inside:p}}))}(n)}))}},function(e,t,n){var r=n(9);n(216),n(450),n(451);var i=n(452);r.registerVisual(i)},function(e,t,n){var r=n(1),i=n(14);e.exports=function(e){!function(e){if(e.parallel)return;var t=!1;r.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}(e),function(e){var t=i.normalizeToArray(e.parallelAxis);r.each(t,(function(t){if(r.isObject(t)){var n=t.parallelIndex||0,o=i.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&r.merge(t,o.parallelAxisDefault,!1)}}))}(e)}},function(e,t,n){var r=n(1),i=n(29),o=n(16),a=n(37),s=n(444),l=n(12),u=n(13),c=n(75),h=r.each,p=Math.min,d=Math.max,f=Math.floor,m=Math.ceil,g=u.round,y=Math.PI;function v(e,t,n){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function _(e,t){return p(d(e,t[0]),t[1])}function x(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function b(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}v.prototype={type:"parallel",constructor:v,_init:function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;h(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),l=this._axesMap.set(e,new s(e,a.createScaleByModel(o),[0,0],o.get("type"),r)),u="category"===l.type;l.onBand=u&&o.get("boundaryGap"),l.inverse=o.get("inverse"),o.axis=l,l.model=o,l.coordinateSystem=o.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>
77=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();h(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),a.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=_(t.get("axisExpandWidth"),l),h=_(t.get("axisExpandCount")||0,[0,u]),p=t.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=t.get("axisExpandWindow");d?(e=_(d[1]-d[0],l),d[1]=d[0]+e):(e=_(c*(h-1),l),(d=[c*(t.get("axisExpandCenter")||f(u/2))-e/2])[1]=d[0]+e);var y=(s-e)/(u-h);y<3&&(y=0);var v=[f(g(d[0]/c,1))+1,m(g(d[1]/c,1))-1],x=y/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:x}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),h(n,(function(t,n){var a=(r.axisExpandable?b:x)(n,r),s={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},l={horizontal:y/2,vertical:0},u=[s[o].x+e.x,s[o].y+e.y],c=l[o],h=i.create();i.rotate(h,h,c),i.translate(h,h,u),this._axesLayout[t]={position:u,rotation:c,transform:h,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];r.each(a,(function(t){s.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var h;if(u){h="active";for(var p=e.getValues(s,c),d=0,f=a.length;d<f;d++){if("inactive"===l[d].getActiveState(p[d])){h="inactive";break}}}else h="normal";t(h,c)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return l.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return r.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=null!=h[0];if(u)f&&u&&s<i*h[0]?(l="jump",a=s-i*h[2]):f&&u&&s>i*(1-h[0])?(l="jump",a=s-i*(1-h[2])):(a=s-i*h[1])>=0&&(a=s-i*(1-h[1]))<=0&&(a=0),(a*=t.axisExpandWidth/u)?c(a,r,o,"all"):l="none";else{i=r[1]-r[0];(r=[d(0,o[1]*s/i-i/2)])[1]=p(o[1],r[0]+i),r[0]=r[1]-i}return{axisExpandWindow:r,behavior:l}}};var w=v;e.exports=w},function(e,t,n){var r=n(1),i=n(51),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(1),i=n(24);n(446);var o=i.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null}
77,init:function(){i.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&r.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){r.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=r.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);r.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=o},function(e,t,n){var r=n(1),i=n(24),o=n(69),a=n(109),s=n(13),l=n(73),u=i.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=r.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"}});r.merge(u.prototype,l),a("parallel",u,(function(e,t){return t.type||(t.data?"category":"value")}),{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10});var c=u;e.exports=c},function(e,t,n){n(217),n(448),n(449)},function(e,t,n){var r=n(9);r.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),r.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},function(e,t,n){var r=n(9),i=n(1),o=n(52),a=n(140),s=n(218),l=n(12),u=["axisLine","axisTickLabel","axisName"],c=r.extendComponentView({type:"parallelAxis",init:function(e,t){c.superApply(this,"init",arguments),(this._brushController=new a(t.getZr())).on("brush",i.bind(this._onBrush,this))},render:function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),c=s.coordinateSystem,h=e.getAreaSelectStyle(),p=h.width,d=e.axis.dim,f=c.getAxisLayout(d),m=i.extend({strokeContainThreshold:p},f),g=new o(e,m);i.each(u,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(m,h,e,s,p,n);var y=r&&!1===r.animation?null:e;l.groupTransition(a,this._axisGroup,y)}}},_refreshBrushController:function(e,t,n,r,o,a){var u=n.axis.getExtent(),c=u[1]-u[0],h=Math.min(30,.1*Math.abs(c)),p=l.BoundingRect.create({x:u[0],y:-o/2,width:c,height:o});p.x-=h,p.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(p),isTargetByCursor:s.makeRectIsTargetByCursor(p,a,r),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(p,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return i.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},_onBrush:function(e,t){var n=this.axisModel,r=n.axis,o=i.map(e,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});var h=c;e.exports=h},function(e,t,n){var r=n(1),i=r.each,o=r.createHashMap,a=n(25),s=n(44),l=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return function(e,t){if(e.encodeDefine)return;var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(!n)return;var r=e.encodeDefine=o();i(n.dimensions,(function(e){var t=+e.replace("dim","");r.set(e,t)}))}(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});e.exports=l},function(e,t,n){var r=n(12),i=n(40);function o(e,t,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function a(e,t,n,i,a){var s=o(e,n,i,a),l=new r.Polyline({shape:{points:s},silent:!0,z2:10});return t.add(l),e.setItemGraphicEl(n,l),l}function s(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:.3}}function l(e,t,n,r){var i=r.lineStyle;t.hasItemOption&&(i=t.getItemModel(n).getModel("lineStyle").getLineStyle());e.useStyle(i);var o=e.style;o.fill=null,o.stroke=t.getItemVisual(n,"color"),o.opacity=t.getItemVisual(n,"opacity"),r.smooth&&(e.shape.smooth=r.smooth)}var u=i.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,i){var u=this._dataGroup,c=e.getData(),h=this._data,p=e.coordinateSystem,d=p.dimensions,f=s(e);if(c.diff(h).add((function(e){l(a(c,u,e,d,p),c,e,f)})).update((function(t,n){var a=h.getItemGraphicEl(n),s=o(c,t,d,p);c.setItemGraphicEl(t,a);var u=i&&!1===i.animation?null:e;r.updateProps(a,{shape:{points:s}},u,t),l(a,c,t,f)})).remove((function(e){var t=h.getItemGraphicEl(e);u.remove(t)})).execute(),!this._initialized){this._initialized=!0;var m=function(e,t,n){var i=e.model,o=e.getRect(),a=new r.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===i.get("layout")?"width":"height";return a.setShape(s,0),r.initProps(a,{shape:{width:o.width,height:o.height}},t,n),a}(p,e,(function(){setTimeout((function(){u.removeClipPath()}))}));u.setClipPath(m)}this._data=c},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,u=s(t),c=e.start;c<e.end;c++){var h=a(r,this._dataGroup,c,o,i);h.incremental=!0,l(h,r,c,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});e.exports=u},function(e,t){var n=["lineStyle","normal","opacity"],r={seriesType:"parallel",reset:function(e,t,r){var i=e.getModel("itemStyle"),o=e.getModel("lineStyle"),a=t.get("color"),s=o.get("color")||i.get("color")||a[e.seriesIndex%a.length],l=e.get("inactiveOpacity"),u=e.get("activeOpacity"),c=e.getModel("lineStyle").getLineStyle(),h=e.coordinateSystem,p=e.getData(),d={normal:c.opacity,active:u,inactive:l};return p.setVisual("color",s),{progress:function(e,t){h.eachActiveState(t,(function(e,r){var i=d[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(r).get(n,!0);null!=o&&(i=o)}t.setItemVisual(r,"opacity",i)}),e.start,e.end)}}}};e.exports=r},function(e,t,n){var r=n(9);n(454),n(455),n(456);var i=n(457),o=n(458);r.registerLayout(i),r.registerVisual(o)},function(e,t,n){var r=n(25),i=n(212),o=n(17).encodeHTML,a=n(23),s=(n(15).__DEV__,r.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,r=e.data||e.nodes,o=e.levels,s=this.levelModels={},l=0;l<o.length;l++)null!=o[l].depth&&o[l].depth>=0&&(s[o[l].depth]=new a(o[l],this,t));if(r&&n)return i(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getData().getItemLayout(t).depth;return n.levelModels[r]||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout().depth;return n.levelModels[r]||this.parentModel})),e}))})).data},setNodePosition:function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getDataParams(e,n),i=r.data,a=i.source+" -- "+i.target;
77return r.value&&(a+=" : "+r.value),o(a)}if("node"===n){var l=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;if(l)a=u+" : "+l;return o(a)}return s.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=s.superCall(this,"getDataParams",e,t);if(null==n.value&&"node"===t){var r=this.getGraph().getNodeByIndex(e).getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),l=s;e.exports=l},function(e,t,n){var r=n(12),i=n(9),o=n(1),a=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function h(e,t,n){var r=e.getGraphicEl(),i=c(e,t);null!=n&&(null==i&&(i=1),i*=n),r.downplay&&r.downplay(),r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)}))}function p(e,t){var n=c(e,t),r=e.getGraphicEl();r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",n)})),r.highlight&&r.highlight()}var d=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),f=i.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,n){var i=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,u=s.height,c=e.getData(),h=e.getData("edge"),p=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(t){var n=new d;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var i,o,s,c,f,m,g,y,v=t.getModel("lineStyle"),_=v.get("curveness"),x=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),k=t.node2.getLayout(),T=t.node2.getModel(),M=T.get("localX"),E=T.get("localY"),C=t.getLayout();switch(n.shape.extent=Math.max(1,C.dy),n.shape.orient=p,"vertical"===p?(i=(null!=w?w*l:x.x)+C.sy,o=(null!=S?S*u:x.y)+x.dy,s=(null!=M?M*l:k.x)+C.ty,f=i,m=o*(1-_)+(c=null!=E?E*u:k.y)*_,g=s,y=o*_+c*(1-_)):(i=(null!=w?w*l:x.x)+x.dx,o=(null!=S?S*u:x.y)+C.sy,f=i*(1-_)+(s=null!=M?M*l:k.x)*_,m=o,g=i*_+s*(1-_),y=c=(null!=E?E*u:k.y)+C.ty),n.setShape({x1:i,y1:o,x2:s,y2:c,cpx1:f,cpy1:m,cpx2:g,cpy2:y}),n.setStyle(v.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color")}r.setHoverStyle(n,t.getModel("emphasis.lineStyle").getItemStyle()),a.add(n),h.setItemGraphicEl(t.dataIndex,n)})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),s=i.get("localY"),h=i.getModel("label"),p=i.getModel("emphasis.label"),d=new r.Rect({shape:{x:null!=o?o*l:n.x,y:null!=s?s*u:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle()}),f=t.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(d.style,f,h,p,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),d.setStyle("fill",t.getVisual("color")),r.setHoverStyle(d,f),a.add(d),c.setItemGraphicEl(t.dataIndex,d),d.dataType="node"})),c.eachItemGraphicEl((function(t,r){var o=c.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/u})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),h.eachItemGraphicEl((function(t,r){var o=h.getItemModel(r);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),!this._data&&e.get("animation")&&a.setClipPath(function(e,t,n){var i=new r.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return r.initProps(i,{shape:{width:e.width+20}},t,n),i}
77(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,r){var i=e.getData(),c=i.graph,d=r.dataIndex,f=i.getItemModel(d),m=r.edgeDataIndex;if(null!=d||null!=m){var g=c.getNodeByIndex(d),y=c.getEdgeByIndex(m);if(c.eachNode((function(e){h(e,a,.1)})),c.eachEdge((function(e){h(e,l,.1)})),g){p(g,s);var v=f.get("focusNodeAdjacency");"outEdges"===v?o.each(g.outEdges,(function(e){e.dataIndex<0||(p(e,u),p(e.node2,s))})):"inEdges"===v?o.each(g.inEdges,(function(e){e.dataIndex<0||(p(e,u),p(e.node1,s))})):"allEdges"===v&&o.each(g.edges,(function(e){e.dataIndex<0||(p(e,u),e.node1!==g&&p(e.node1,s),e.node2!==g&&p(e.node2,s))}))}y&&(p(y,u),p(y.node1,s),p(y.node2,s))}},unfocusNodeAdjacency:function(e,t,n,r){var i=e.getGraph();i.eachNode((function(e){h(e,a)})),i.eachEdge((function(e){h(e,l)}))}});e.exports=f},function(e,t,n){var r=n(9);n(213),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e,t,n){var r=n(16),i=n(1),o=n(14).groupData;function a(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function s(e,t,n,r,o){var a="vertical"===o?"x":"y";i.each(e,(function(e){var i,s,l;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var u=0,c=e.length,h="vertical"===o?"dx":"dy",p=0;p<c;p++)(l=u-(s=e[p]).getLayout()[a])>0&&(i=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]+s.getLayout()[h]+t;if((l=u-t-("vertical"===o?r:n))>0)for(i=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0),u=i,p=c-2;p>=0;--p)(l=(s=e[p]).getLayout()[a]+s.getLayout()[h]+t-u)>0&&(i=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]}))}function l(e,t,n){i.each(e.slice().reverse(),(function(e){i.each(e,(function(e){if(e.outEdges.length){var r=m(e.outEdges,u,n)/m(e.outEdges,f,n);if(isNaN(r)){var i=e.outEdges.length;r=i?m(e.outEdges,c,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-d(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-d(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function u(e,t){return d(e.node2,t)*e.getValue()}function c(e,t){return d(e.node2,t)}function h(e,t){return d(e.node1,t)*e.getValue()}function p(e,t){return d(e.node1,t)}function d(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function f(e){return e.getValue()}function m(e,t,n){for(var r=0,i=e.length,o=-1;++o<i;){var a=+t.call(e,e[o],n);isNaN(a)||(r+=a)}return r}function g(e,t,n){i.each(e,(function(e){i.each(e,(function(e){if(e.inEdges.length){var r=m(e.inEdges,h,n)/m(e.inEdges,f,n);if(isNaN(r)){var i=e.inEdges.length;r=i?m(e.inEdges,p,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-d(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-d(e,n))*t;e.setLayout({y:a},!0)}}}))}))}e.exports=function(e,t,n){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),u=e.get("nodeGap"),c=function(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=c;var h=c.width,p=c.height,d=e.getGraph(),y=d.nodes,v=d.edges;!function(e){i.each(e,(function(e){var t=m(e.outEdges,f),n=m(e.inEdges,f),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}(y),function(e,t,n,r,u,c,h,p,d){(function(e,t,n,r,o,s,l){for(var u=[],c=[],h=[],p=[],d=0,f=0;f<t.length;f++)u[f]=1;for(f=0;f<e.length;f++)c[f]=e[f].inEdges.length,0===c[f]&&h.push(e[f]);var m=-1;for(;h.length;){for(var g=0;g<h.length;g++){var y=h[g],v=y.hostGraph.data.getRawDataItem(y.dataIndex),_=null!=v.depth&&v.depth>=0;_&&v.depth>m&&(m=v.depth),y.setLayout({depth:_?v.depth:d},!0),"vertical"===s?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var x=0;x<y.outEdges.length;x++){var b=y.outEdges[x],w=t.indexOf(b);u[w]=0;var S=b.node2,k=e.indexOf(S);0==--c[k]&&p.indexOf(S)<0&&p.push(S)}}++d,h=p,p=[]}for(f=0;f<u.length;f++)if(1===u[f])throw new Error("Sankey is a DAG, the original data has cycle!");var T=m>d-1?m:d-1;l&&"left"!==l&&function(e,t,n,r){if("right"===t){for(var o=[],s=e,l=0;s.length;){for(var u=0;u<s.length;u++){var c=s[u];c.setLayout({skNodeHeight:l},!0);for(var h=0;h<c.inEdges.length;h++){var p=c.inEdges[h];o.indexOf(p.node1)<0&&o.push(p.node1)}}s=o,o=[],++l}i.each(e,(function(e){a(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){i.each(e,(function(e){a(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,r)}(e,l,0,T);!function(e,t,n){i.each(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}(e,"vertical"===s?(o-n)/T:(r-n)/T,s)})(e,t,n,u,c,p,d),function(e,t,n,r,a,u,c){var h=function(e,t){var n=[],r="vertical"===t?"y":"x",a=o(e,(function(e){return e.getLayout()[r]}));return a.keys.sort((function(e,t){return e-t})),i.each(a.keys,(function(e){n.push(a.buckets.get(e))})),n}(e,c);(function(e,t,n,r,o,a){var s=1/0;i.each(e,(function(e){var t=e.length,l=0;i.each(e,(function(e){l+=e.getLayout().value}));var u="vertical"===a?(r-(t-1)*o)/l:(n-(t-1)*o)/l;u<s&&(s=u)})),i.each(e,(function(e){i.each(e,(function(e,t){var n=e.getLayout().value*s;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),i.each(t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))})(h,t,n,r,a,c),s(h,a,n,r,c);for(var p=1;u>0;u--)l(h,p*=.99,c),s(h,a,n,r,c),g(h,p,c),s(h,a,n,r,c)}(e,t,c,u,r,h,p),function(e,t){var n="vertical"===t?"x":"y";i.each(e,(function(e){e.outEdges.sort((function(e,t){return e.no
77de2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),i.each(e,(function(e){var t=0,n=0;i.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),i.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,p)}(y,v,n,u,h,p,0!==i.filter(y,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}},function(e,t,n){var r=n(65),i=n(1);e.exports=function(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,o=-1/0;i.each(t,(function(e){var t=e.getLayout().value;t<n&&(n=t),t>o&&(o=t)})),i.each(t,(function(t){var i=new r({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),a=t.getModel().get("itemStyle.color");null!=a?t.setVisual("color",a):t.setVisual("color",i)}))}}))}},function(e,t,n){var r=n(9);n(460),n(461);var i=n(462),o=n(463);r.registerVisual(i),r.registerLayout(o)},function(e,t,n){var r=n(1),i=n(25),o=n(219).seriesModelMixin,a=i.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(a,o,!0);var s=a;e.exports=s},function(e,t,n){var r=n(1),i=n(40),o=n(12),a=n(20),s=["itemStyle"],l=["emphasis","itemStyle"],u=i.extend({type:"boxplot",render:function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=h(r.getItemLayout(e),r,e,a,!0);r.setItemGraphicEl(e,t),i.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?p(s,n,r,e):n=h(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:r.noop}),c=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])}});function h(e,t,n,r,i){var o=e.ends,a=new c({shape:{points:i?d(o,r,e):o}});return p(e,a,t,n,i),a}function p(e,t,n,r,i){var a=n.hostModel;(0,o[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,r);var u=n.getItemModel(r),c=u.getModel(s),h=n.getItemVisual(r,"color"),p=c.getItemStyle(["borderColor"]);p.stroke=h,p.strokeNoScale=!0,t.useStyle(p),t.z2=100;var d=u.getModel(l).getItemStyle();o.setHoverStyle(t,d)}function d(e,t,n){return r.map(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var f=u;e.exports=f},function(e,t){var n=["itemStyle","borderColor"];e.exports=function(e,t){var r=e.get("color");e.eachRawSeriesByType("boxplot",(function(t){var i=r[t.seriesIndex%r.length],o=t.getData();o.setVisual({legendSymbol:"roundRect",color:t.get(n)||i}),e.isSeriesFiltered(t)||o.each((function(e){var t=o.getItemModel(e);o.setItemVisual(e,{color:t.get(n,!0)})}))}))}},function(e,t,n){var r=n(1),i=n(13).parsePercent,o=r.each;e.exports=function(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),o=r.indexOf(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)})),t}(e);o(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n,a=e.axis,s=e.seriesModels,l=s.length,u=e.boxWidthList=[],c=e.boxOffsetList=[],h=[];if("category"===a.type)n=a.getBandWidth();else{var p=0;o(s,(function(e){p=Math.max(p,e.getData().count())})),t=a.getExtent(),Math.abs(t[1]-t[0])}o(s,(function(e){var t=e.get("boxWidth");r.isArray(t)||(t=[t,t]),h.push([i(t[0],n)||0,i(t[1],n)||0])}));var d=.8*n-2,f=d/l*.3,m=(d-f*(l-1))/l,g=m/2-d/2;
77o(s,(function(e,t){c.push(g),g+=f+m,u.push(Math.min(Math.max(m,h[t][0]),h[t][1]))}))}(e),o(t,(function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimension(l[s],!0);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var p=i.get(u,h),d=_(p,c[2],h),f=_(p,c[0],h),m=_(p,c[1],h),g=_(p,c[3],h),y=_(p,c[4],h),v=[];x(v,m,0),x(v,g,1),v.push(f,m,y,g),b(v,f),b(v,y),b(v,d),i.setItemLayout(h,{initBaseline:d[s],ends:v})}function _(e,n,o){var l,u=i.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=t,l}function x(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function b(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}},function(e,t,n){var r=n(9);n(465),n(466);var i=n(467),o=n(468),a=n(469);r.registerPreprocessor(i),r.registerVisual(o),r.registerLayout(a)},function(e,t,n){var r=n(1),i=n(25),o=n(219).seriesModelMixin,a=i.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)}});r.mixin(a,o,!0);var s=a;e.exports=s},function(e,t,n){var r=n(1),i=n(40),o=n(12),a=n(20),s=n(90).createClipPath,l=["itemStyle"],u=["emphasis","itemStyle"],c=["color","color0","borderColor","borderColor0"],h=i.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,r){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,u=t.getItemLayout(n);if(a&&f(l,u))return;s=d(u,n,!0),o.initProps(s,{shape:{points:u.ends}},e,n),m(s,t,n,i),r.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,u){var c=n.getItemGraphicEl(u);if(t.hasValue(s)){var h=t.getItemLayout(s);a&&f(l,h)?r.remove(c):(c?o.updateProps(c,{shape:{points:h.ends}},e,s):c=d(h,s),m(c,t,s,i),r.add(c),t.setItemGraphicEl(s,c))}else r.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),v(e,this.group);var t=e.get("clip",!0)?s(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var o;m(o=d(r.getItemLayout(n),n),r,n,i),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){v(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:r.noop}),p=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))}});function d(e,t,n){var r=e.ends;return new p({shape:{points:n?g(r,e):r},z2:100}
77)}function f(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function m(e,t,n,r){var i=t.getItemModel(n),a=i.getModel(l),s=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"borderColor")||s,p=a.getItemStyle(c);e.useStyle(p),e.style.strokeNoScale=!0,e.style.fill=s,e.style.stroke=h,e.__simpleBox=r;var d=i.getModel(u).getItemStyle();o.setHoverStyle(e,d)}function g(e,t){return r.map(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var y=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3}});function v(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),o=new y({shape:{points:i},__sign:1});t.add(o);var a=new y({shape:{points:i},__sign:-1});t.add(a),_(1,o,e,r),_(-1,a,e,r),n&&(o.incremental=!0,a.incremental=!0)}function _(e,t,n,r){var i=e>0?"P":"N",o=r.getVisual("borderColor"+i)||r.getVisual("color"+i),a=n.getModel(l).getItemStyle(c);t.useStyle(a),t.style.fill=null,t.style.stroke=o}var x=h;e.exports=x},function(e,t,n){var r=n(1);e.exports=function(e){e&&r.isArray(e.series)&&r.each(e.series,(function(e){r.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}},function(e,t,n){var r=n(71),i=["itemStyle","borderColor"],o=["itemStyle","borderColor0"],a=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:r(),performRawSeries:!0,reset:function(e,t){if(e.getData().setVisual({legendSymbol:"roundRect",colorP:n(1,e),colorN:n(-1,e),borderColorP:r(1,e),borderColorN:r(-1,e)}),!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){var i;for(;null!=(i=e.next());){var o=t.getItemModel(i),a=t.getItemLayout(i).sign;t.setItemVisual(i,{color:n(a,o),borderColor:r(a,o)})}}};function n(e,t){return t.get(e>0?a:s)}function r(e,t){return t.get(e>0?i:o)}}};e.exports=l},function(e,t,n){var r=n(12).subPixelOptimize,i=n(71),o=n(13).parsePercent,a=n(1).retrieve2,s="undefined"!=typeof Float32Array?Float32Array:Array,l={seriesType:"candlestick",plan:i(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),s=o(a(e.get("barMaxWidth"),i),i),l=o(a(e.get("barMinWidth"),1),i),u=e.get("barWidth");return null!=u?o(u,i):Math.max(Math.min(i/2,s),l)}(e,n),l=["x","y"],c=n.mapDimension(l[0]),h=n.mapDimension(l[1],!0),p=h[0],d=h[1],f=h[2],m=h[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==c||h.length<4))return{progress:e.pipelineContext.large?function(e,n){var r,i,o=new s(4*e.count),a=0,l=[],h=[];for(;null!=(i=e.next());){var g=n.get(c,i),y=n.get(p,i),v=n.get(d,i),_=n.get(f,i),x=n.get(m,i);isNaN(g)||isNaN(_)||isNaN(x)?(o[a++]=NaN,a+=3):(o[a++]=u(n,i,y,v,d),l[0]=g,l[1]=_,r=t.dataToPoint(l,null,h),o[a++]=r?r[0]:NaN,o[a++]=r?r[1]:NaN,l[1]=x,r=t.dataToPoint(l,null,h),o[a++]=r?r[1]:NaN)}n.setLayout("largePoints",o)}:function(e,n){var o;for(;null!=(o=e.next());){var a=n.get(c,o),s=n.get(p,o),l=n.get(d,o),h=n.get(f,o),g=n.get(m,o),y=Math.min(s,l),v=Math.max(s,l),_=k(y,a),x=k(v,a),b=k(h,a),w=k(g,a),S=[];T(S,x,0),T(S,_,1),S.push(E(w),E(x),E(b),E(_)),n.setItemLayout(o,{sign:u(n,o,s,l,d),initBaseline:s>l?x[1]:_[1],ends:S,brushRect:M(h,g,a)})}function k(e,n){var r=[];return r[0]=n,r[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function T(e,t,n){var o=t.slice(),a=t.slice();o[0]=r(o[0]+i/2,1,!1),a[0]=r(a[0]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function M(e,t,n){var r=k(e,n),o=k(t,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function E(e){return e[0]=r(e[0],1),e}}}}};function u(e,t,n,r,i){return n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1}e.exports=l},function(e,t,n){var r=n(9);n(471),n(472);var i=n(62),o=n(91);r.registerVisual(i("effectScatter","circle")),r.registerLayout(o("effectScatter"))},function(e,t,n){var r=n(44),i=n(25).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=i},function(e,t,n){var r=n(9),i=n(89),o=n(473),a=n(29),s=n(91),l=r.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(o)},render:function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},updateTransform:function(e,t,n){var r=e.getData();this.group.dirty();var i=s().reset(e);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},function(e,t,n){var r=n(1),i=n(35).createSymbol,o=n(12).Group,a=n(13).parsePercent,s=n(108);function l(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}
77function u(e,t){o.call(this);var n=new s(e,t),r=new o;this.add(n),this.add(r),r.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var c=u.prototype;c.stopEffectAnimation=function(){this.childAt(1).removeAll()},c.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),o=0;o<3;o++){var a=i(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-o/3*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}l(r,e)},c.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}l(n,e)},c.highlight=function(){this.trigger("emphasis")},c.downplay=function(){this.trigger("normal")},c.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),s=e.getItemVisual(t,"symbol"),l=function(e){return r.isArray(e)||(e=[+e,+e]),e}(e.getItemVisual(t,"symbolSize")),u=e.getItemVisual(t,"color");i.attr("scale",l),i.traverse((function(e){e.attr({fill:u})}));var c=o.getShallow("symbolOffset");if(c){var h=i.position;h[0]=a(c[0],l[0]),h[1]=a(c[1],l[1])}var p=e.getItemVisual(t,"symbolRotate");i.rotation=(p||0)*Math.PI/180||0;var d={};if(d.showEffectOn=n.get("showEffectOn"),d.rippleScale=o.get("rippleEffect.scale"),d.brushType=o.get("rippleEffect.brushType"),d.period=1e3*o.get("rippleEffect.period"),d.effectOffset=t/e.count(),d.z=o.getShallow("z")||0,d.zlevel=o.getShallow("zlevel")||0,d.symbolType=s,d.color=u,d.rippleEffectColor=o.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),m=function(){f.highlight(),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},g=function(){f.downplay(),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",m,this).on("mouseout",g,this).on("emphasis",m,this).on("normal",g,this)}this._effectCfg=d},c.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},r.inherits(u,o);var h=u;e.exports=h},function(e,t,n){var r=n(9);n(475),n(476);var i=n(222),o=n(479);r.registerLayout(i),r.registerVisual(o)},function(e,t,n){n(15).__DEV__;var r=n(25),i=n(34),o=n(1),a=o.concatArray,s=o.mergeAll,l=o.map,u=n(17).encodeHTML,c=(n(36),"undefined"==typeof Uint32Array?Array:Uint32Array),h="undefined"==typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=l(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),s([t,e[0],e[1]])})))}var d=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),d.superApply(this,"init",arguments)},mergeOption:function(e){if(p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}d.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=a(this._flatCoords,t.flatCoords),this._flatCoordsOffset=a(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof e[0]){for(var n=e.length,r=new c(n),i=new h(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];r[a++]=o+t,r[a++]=u;for(var p=0;p<u;p++){var d=e[l++],f=e[l++];i[o++]=d,i[o++]=f}}
77return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var n=new i(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},formatTooltip:function(e){var t=this.getData().getItemModel(e),n=t.get("name");if(n)return n;var r=t.get("fromName"),i=t.get("toName"),o=[];return null!=r&&o.push(r),null!=i&&o.push(i),u(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),f=d;e.exports=f},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(137),o=n(220),a=n(138),s=n(221),l=n(477),u=n(478),c=n(222),h=n(90).createClipPath,p=r.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),o=e.get("zlevel"),a=e.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&h(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},incrementalRender:function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=c.reset(e);o.progress&&o.progress({start:0,end:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(e,t){var n=this._lineDraw,r=this._showEffect(t),c=!!t.get("polyline"),h=t.pipelineContext.large;return n&&r===this._hasEffet&&c===this._isPolyline&&h===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=h?new u:new i(c?r?l:s:r?o:a),this._hasEffet=r,this._isPolyline=c,this._isLargeDraw=h,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=p},function(e,t,n){var r=n(221),i=n(1),o=n(220),a=n(18);function s(e,t,n){o.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(e,t,n){return new r(e,t,n)},l.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],s=t[i];r+=a.dist(o,s),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o=this._lastFrame;if(t<this._lastFramePercent){for(s=Math.min(o+1,i-1);s>=0&&!(r[s]<=t);s--);s=Math.min(s,i-2)}else{for(var s=o;s<i&&!(r[s]>t);s++);s=Math.min(s-1,i-2)}a.lerp(e.position,n[s],n[s+1],(t-r[s])/(r[s+1]-r[s]));var l=n[s+1][0]-n[s][0],u=n[s+1][1]-n[s][1];e.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=t,e.ignore=!1}},i.inherits(s,o);var u=s;e.exports=u},function(e,t,n){var r=n(12),i=n(125),o=n(175),a=n(176),s=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var n=t.segs,r=t.curveness;if(t.polyline)for(var i=0;i<n.length;){var o=n[i++];if(o>0){e.moveTo(n[i++],n[i++]);for(var a=1;a<o;a++)e.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],l=n[i++],u=n[i++],c=n[i++];if(e.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,p=(l+c)/2-(u-s)*r;e.quadraticCurveTo(h,p,u,c)}else e.lineTo(u,c)}},findDataIndex:function(e,t){var n=this.shape,r=n.segs,i=n.curveness;if(n.polyline)for(var s=0,l=0;l<r.length;){var u=r[l++];if(u>0)for(var c=r[l++],h=r[l++],p=1;p<u;p++){var d=r[l++],f=r[l++];if(o.containStroke(c,h,d,f))return s}s++}else for(s=0,l=0;l<r.length;
77){c=r[l++],h=r[l++],d=r[l++],f=r[l++];if(i>0){var m=(c+d)/2-(h-f)*i,g=(h+f)/2-(d-c)*i;if(a.containStroke(c,h,m,g,d,f))return s}else if(o.containStroke(c,h,d,f))return s;s++}return-1}});function l(){this.group=new r.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new i({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var n=new s;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get("lineStyle.curveness")}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),n||(e.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n+e.__startIndex)})))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=l;e.exports=c},function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}var r="lineStyle.opacity".split("."),i={seriesType:"lines",reset:function(e,t,i){var o=n(e.get("symbol")),a=n(e.get("symbolSize")),s=e.getData();return s.setVisual("fromSymbol",o&&o[0]),s.setVisual("toSymbol",o&&o[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",e.get(r)),{dataEach:s.hasItemOption?function(e,t){var i=e.getItemModel(t),o=n(i.getShallow("symbol",!0)),a=n(i.getShallow("symbolSize",!0)),s=i.get(r);o[0]&&e.setItemVisual(t,"fromSymbol",o[0]),o[1]&&e.setItemVisual(t,"toSymbol",o[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1]),e.setItemVisual(t,"opacity",s)}:null}}};e.exports=i},function(e,t,n){n(481),n(482)},function(e,t,n){var r=n(25),i=n(44),o=n(36),a=r.extend({type:"series.heatmap",getInitialData:function(e,t){return i(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=o.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=a},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(12),o=n(483),a=n(1);var s=r.extendChartView({type:"heatmap",render:function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):function(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}(i)&&this._renderOnGeo(i,e,r,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,r){t.coordinateSystem&&this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,r,o){var s,l,u=e.coordinateSystem;if("cartesian2d"===u.type){var c=u.getAxis("x"),h=u.getAxis("y");s=c.getBandWidth(),l=h.getBandWidth()}for(var p=this.group,d=e.getData(),f=e.getModel("itemStyle").getItemStyle(["color"]),m=e.getModel("emphasis.itemStyle").getItemStyle(),g=e.getModel("label"),y=e.getModel("emphasis.label"),v=u.type,_="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=n;x<r;x++){var b;if("cartesian2d"===v){if(isNaN(d.get(_[2],x)))continue;var w=u.dataToPoint([d.get(_[0],x),d.get(_[1],x)]);
77b=new i.Rect({shape:{x:Math.floor(Math.round(w[0])-s/2),y:Math.floor(Math.round(w[1])-l/2),width:Math.ceil(s),height:Math.ceil(l)},style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}else{if(isNaN(d.get(_[1],x)))continue;b=new i.Rect({z2:1,shape:u.dataToRect([d.get(_[0],x)]).contentShape,style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}var S=d.getItemModel(x);d.hasItemOption&&(f=S.getModel("itemStyle").getItemStyle(["color"]),m=S.getModel("emphasis.itemStyle").getItemStyle(),g=S.getModel("label"),y=S.getModel("emphasis.label"));var k=e.getRawValue(x),T="-";k&&null!=k[2]&&(T=k[2]),i.setLabelStyle(f,m,g,y,{labelFetcher:e,labelDataIndex:x,defaultText:T,isRectText:!0}),b.setStyle(f),i.setHoverStyle(b,d.hasItemOption?m:a.extend({},m)),b.incremental=o,o&&(b.useHoverLayer=!0),p.add(b),d.setItemGraphicEl(x,b)}},_renderOnGeo:function(e,t,n,r){var s=n.targetVisuals.inRange,l=n.targetVisuals.outOfRange,u=t.getData(),c=this._hmLayer||this._hmLayer||new o;c.blurSize=t.get("blurSize"),c.pointSize=t.get("pointSize"),c.minOpacity=t.get("minOpacity"),c.maxOpacity=t.get("maxOpacity");var h=e.getViewRect().clone(),p=e.getRoamTransform();h.applyTransform(p);var d=Math.max(h.x,0),f=Math.max(h.y,0),m=Math.min(h.width+h.x,r.getWidth()),g=Math.min(h.height+h.y,r.getHeight()),y=m-d,v=g-f,_=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],x=u.mapArray(_,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=d,i[1]-=f,i.push(r),i})),b=n.getExtent(),w="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(b,n.option.range):function(e,t,n){var r=e[1]-e[0],i=(t=a.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}))).length,o=0;return function(e){for(var r=o;r<i;r++){if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(b,n.getPieceList(),n.option.selected);c.update(x,y,v,s.color.getNormalizer(),{inRange:s.color.getColorMapper(),outOfRange:l.color.getColorMapper()},w);var S=new i.Image({style:{width:y,height:v,x:d,y:f,image:c.canvas},silent:!0});this.group.add(S)},dispose:function(){}});e.exports=s},function(e,t,n){var r=n(1);function i(){var e=r.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}i.prototype={update:function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(e,i,"inRange"),l=this._getGradient(e,i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=e.length;c.width=t,c.height=n;for(var d=0;d<p;++d){var f=e[d],m=f[0],g=f[1],y=r(f[2]);h.globalAlpha=y,h.drawImage(a,m-u,g-u)}if(!c.width||!c.height)return c;for(var v=h.getImageData(0,0,c.width,c.height),_=v.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){y=_[x+3]/256;var k=4*Math.floor(255*y);if(y>0){var T=o(y)?s:l;y>0&&(y=y*S+w),_[x++]=T[k],_[x++]=T[k+1],_[x++]=T[k+2],_[x++]=T[k+3]*y*256}else x+=4}return h.putImageData(v,0,0),c},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=r.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},_getGradient:function(e,t,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i}};var o=i;e.exports=o},function(e,t,n){var r=n(9),i=n(1);n(130),n(485),n(486);var o=n(107).layout,a=n(62);n(92),r.registerLayout(i.curry(o,"pictorialBar")),r.registerVisual(a("pictorialBar","roundRect"))},function(e,t,n){var r=n(204).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,r.superApply(this,"getInitialData",arguments)}}),i=r;e.exports=i},function(e,t,n){var r=n(9),i=n(1),o=n(12),a=n(35).createSymbol,s=n(13),l=s.parsePercent,u=s.isNumeric,c=n(205).setLabel,h=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],d=new o.Circle;function f(e,t,n,r){var o=e.getItemLayout(t),a=n.get("symbolRepeat"),s=n.get("symbolClip"),c=n.get("symbolPosition")||"start",p=(n.get("symbolRotate")||0)*Math.PI/180||0,f=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),y={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:p,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2
77:n.getShallow("z",!0)||0};!function(e,t,n,r,o){var a,s=r.valueDim,l=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(i.isArray(l)){var p=[m(u,l[0])-c,m(u,l[1])-c];p[1]<p[0]&&p.reverse(),a=p[h]}else a=null!=l?m(u,l)-c:t?r.coordSysExtent[s.index][h]-c:n[s.wh];o.boundingLength=a,t&&(o.repeatCutLength=n[s.wh]);o.pxSign=a>0?1:a<0?-1:0}(n,a,o,r,y),function(e,t,n,r,o,a,s,u,c,h){var p=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),m=e.getItemVisual(t,"symbolSize");i.isArray(m)?m=m.slice():(null==m&&(m="100%"),m=[m,m]);m[d.index]=l(m[d.index],f),m[p.index]=l(m[p.index],r?f:Math.abs(a)),h.symbolSize=m,(h.symbolScale=[m[0]/u,m[1]/u])[p.index]*=(c.isHorizontal?-1:1)*s}(e,t,o,a,0,y.boundingLength,y.pxSign,f,r,y),function(e,t,n,r,i){var o=e.get(h)||0;o&&(d.attr({scale:t.slice(),rotation:n}),d.updateTransform(),o/=d.getLineScale(),o*=t[r.valueDim.index]);i.valueLineWidth=o}(n,y.symbolScale,p,r,y);var v=y.symbolSize,_=n.get("symbolOffset");return i.isArray(_)&&(_=[l(_[0],v[0]),l(_[1],v[1])]),function(e,t,n,r,o,a,s,c,h,p,d,f){var m=d.categoryDim,g=d.valueDim,y=f.pxSign,v=Math.max(t[g.index]+c,0),_=v;if(r){var x=Math.abs(h),b=i.retrieve(e.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=l(b,t[g.index]);var S=Math.max(v+2*b,0),k=w?0:2*b,T=u(r),M=T?r:P((x+k)/S);S=v+2*(b=(x-M*v)/2/(w?M:M-1)),k=w?0:2*b,T||"fixed"===r||(M=p?P((Math.abs(p)+k)/S):0),_=M*S-k,f.repeatTimes=M,f.symbolMargin=b}var E=y*(_/2),C=f.pathPosition=[];C[m.index]=n[m.wh]/2,C[g.index]="start"===s?E:"end"===s?h-E:h/2,a&&(C[0]+=a[0],C[1]+=a[1]);var I=f.bundlePosition=[];I[m.index]=n[m.xy],I[g.index]=n[g.xy];var A=f.barRectShape=i.extend({},n);A[g.wh]=y*Math.max(Math.abs(n[g.wh]),Math.abs(C[g.index]+E)),A[m.wh]=n[m.wh];var D=f.clipShape={};D[m.xy]=-n[m.xy],D[m.wh]=d.ecSize[m.wh],D[g.xy]=0,D[g.wh]=n[g.wh]}(n,v,o,a,0,_,c,y.valueLineWidth,y.boundingLength,y.repeatCutLength,r,y),y}function m(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function g(e){var t=e.symbolPatternSize,n=a(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function y(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,h=o[t.valueDim.index]+a+2*n.symbolMargin;for(C(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?I(e,null,f(c),n,r):I(e,null,{scale:[0,0]},n,r,(function(){i.remove(e)})),k(e,n),c++}));c<u;c++){var p=g(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,i.add(p);var d=f(c);I(p,{position:d.position,scale:[0,0]},{scale:d.scale,rotation:d.rotation},n,r),p.on("mouseover",m).on("mouseout",y),k(p,n)}function f(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>
770:r<0)&&(i=u-1-e),t[l.index]=h*(i-u/2+.5)+s[l.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function m(){C(e,(function(e){e.trigger("emphasis")}))}function y(){C(e,(function(e){e.trigger("normal")}))}}function v(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?I(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,r):(o=e.__pictorialMainPath=g(n),i.add(o),I(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,r),o.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),k(o,n)}function _(e,t,n){var r=i.extend({},t.barRectShape),a=e.__pictorialBarRect;a?I(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new o.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function x(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,s=i.extend({},n.clipShape),l=t.valueDim,u=n.animationModel,c=n.dataIndex;if(a)o.updateProps(a,{shape:s},u,c);else{s[l.wh]=0,a=new o.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var h={};h[l.wh]=n.clipShape[l.wh],o[r?"updateProps":"initProps"](a,{shape:h},u,c)}}}function b(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=w,n.isAnimationEnabled=S,n}function w(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function k(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function T(e,t,n,r){var i=new o.Group,a=new o.Group;return i.add(a),i.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?y(i,t,n):v(i,0,n),_(i,n,r),x(i,t,n,r),i.__pictorialShapeStr=E(e,n),i.__pictorialSymbolMeta=n,i}function M(e,t,n,r){var a=r.__pictorialBarRect;a&&(a.style.text=null);var s=[];C(r,(function(e){s.push(e)})),r.__pictorialMainPath&&s.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),i.each(s,(function(e){o.updateProps(e,{scale:[0,0]},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function E(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function C(e,t,n){i.each(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function I(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&o[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function A(e,t,n){var r=n.color,a=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),h=s.getShallow("cursor");C(e,(function(e){e.setColor(r),e.setStyle(i.defaults({fill:r,opacity:n.opacity},l)),o.setHoverStyle(e,u),h&&(e.cursor=h),e.z2=n.z2}));var p={},d=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;c(f.style,p,s,r,t.seriesModel,a,d),o.setHoverStyle(f,p)}function P(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var D=r.extendChartView({type:"pictorialBar",render:function(e,t,n){var r=this.group,i=e.getData(),a=this._data,s=e.coordinateSystem,l=!!s.getBaseAxis().isHorizontal(),u=s.grid.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return i.diff(a).add((function(e){if(i.hasValue(e)){var t=b(i,e),n=f(i,e,t,c),o=T(i,c,n);i.setItemGraphicEl(e,o),r.add(o),A(o,c,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var s=b(i,e),l=f(i,e,s,c),u=E(i,l);n&&u!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},r,i),n.symbolRepeat?y(e,t,n,!0):v(e,t,n,!0);_(e,n,!0),x(e,t,n,!0)}(n,c,l):n=T(i,c,l,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=l,r.add(n),A(n,c,l)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&M(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},dispose:i.noop,remove:function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){M(r,t.dataIndex,e,t)})):n.removeAll()}});e.exports=D},function(e,t,n){var r=n(9);n(223),n(497),n(498);var i=n(499),o=n(500),a=n(94);r.registerLayout(i),r.registerVisual(o),r.registerProcessor(a("themeRiver"))},function(e,t,n){var r=n(489);n(36).register("single",{create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,o){var a=new r(i,e,t);a.name="single_"+o,a.resize(i,t),i.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),n},dimensions:r.prototype.dimensions})},function(e,t,n){var r=n(490),i=n(37),o=n(16).getLayoutRect,a=n(1).each;function s(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(e,t,n){var o=this.dimension,a=new r(o,i.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();a(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=o({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect}
77,_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r}};var l=s;e.exports=l},function(e,t,n){var r=n(1),i=n(51),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(1),i=n(52),o=n(12),a=n(224),s=n(63),l=n(203),u=l.rectCoordAxisBuildSplitArea,c=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],p=["splitArea","splitLine"],d=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,n,s){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new o.Group;var c=a.layout(e),f=new i(e,c);r.each(h,f.add,f),l.add(this._axisGroup),l.add(f.getGroup()),r.each(p,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),o.groupTransition(u,this._axisGroup,e),d.superCall(this,"render",e,t,n,s)},remove:function(){c(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var n=e.getModel("splitLine"),r=n.getModel("lineStyle"),i=r.get("width"),a=r.get("color");a=a instanceof Array?a:[a];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),u=[],c=0,h=t.getTicksCoords({tickModel:n}),p=[],d=[],f=0;f<h.length;++f){var m=t.toGlobalCoord(h[f].coord);l?(p[0]=m,p[1]=s.y,d[0]=m,d[1]=s.y+s.height):(p[0]=s.x,p[1]=m,d[0]=s.x+s.width,d[1]=m);var g=c++%a.length;u[g]=u[g]||[],u[g].push(new o.Line({subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:{lineWidth:i},silent:!0}))}for(f=0;f<u.length;++f)this.group.add(o.mergePath(u[f],{style:{stroke:a[f%a.length],lineDash:r.getLineDash(i),lineWidth:i},silent:!0}))}},_splitArea:function(e){u(this,this._axisGroup,e,e)}}),f=d;e.exports=f},function(e,t,n){var r=n(1),i=n(24),o=n(109),a=n(73),s=i.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});r.merge(s.prototype,a),o("single",s,(function(e,t){return t.type||(t.data?"category":"value")}),{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}});var l=s;e.exports=l},function(e,t,n){var r=n(1),i=n(14).makeInner,o=n(110),a=n(225),s=r.each,l=r.curry,u=i();function c(e,t,n,i,o){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var l=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,l=-1;return s(t.seriesModels,(function(t,u){var c,h,p=t.getData().mapDimension(r,!0);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(p,e,n);h=d.dataIndices,c=d.nestestValue}else{if(!(h=t.getData().indicesOfNearest(p[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(p[0],h[0])}if(null!=c&&isFinite(c)){var f=e-c,m=Math.abs(f);m<=a&&((m<a||f>=0&&l<0)&&(a=m,l=f,i=c,o.length=0),s(h,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),u=l.payloadBatch,c=l.snapToValue;u[0]&&null==o.seriesIndex&&r.extend(o,u[0]),!i&&e.snap&&a.containData(c)&&null!=c&&(t=c),n.showPointer(e,t,u,o),n.showTooltip(e,l,c)}else n.showPointer(e,t)}function h(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function p(e,t,n,r){var i=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(t.triggerTooltip&&i.length){var u=t.coordSys.model,c=o.makeKey(u),h=e.map[c];h||(h=e.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:i.slice()})}}function d(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function f(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}
77e.exports=function(e,t,n){var i=e.currTrigger,o=[e.x,e.y],m=e,g=e.dispatchAction||r.bind(n.dispatchAction,n),y=t.getComponent("axisPointer").coordSysAxesInfo;if(y){f(o)&&(o=a({seriesIndex:m.seriesIndex,dataIndex:m.dataIndex},t).point);var v=f(o),_=m.axesInfo,x=y.axesInfo,b="leave"===i||f(o),w={},S={},k={list:[],map:{}},T={showPointer:l(h,S),showTooltip:l(p,k)};s(y.coordSysMap,(function(e,t){var n=v||e.containPoint(o);s(y.coordSysAxesInfo[t],(function(e,t){var r=e.axis,i=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(_,e);if(!b&&n&&(!_||i)){var a=i&&i.value;null!=a||v||(a=r.pointToData(o)),null!=a&&c(e,a,T,!1,w)}}))}));var M={};return s(x,(function(e,t){var n=e.linkGroup;n&&!S[t]&&s(n.axesInfo,(function(t,r){var i=S[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,d(t),d(e)))),M[e.key]=o}}))})),s(M,(function(e,t){c(x[t],e,T,!0,w)})),function(e,t,n){var r=n.axesInfo=[];s(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(S,x,w),function(e,t,n,r){if(f(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(k,o,e,g),function(e,t,n){var i=n.getZr(),o=u(i).axisPointerLastHighlights||{},a=u(i).axisPointerLastHighlights={};s(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&s(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var l=[],c=[];r.each(o,(function(e,t){!a[t]&&c.push(e)})),r.each(a,(function(e,t){!o[t]&&l.push(e)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:l})}(x,0,n),w}}},function(e,t,n){var r=n(9).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});e.exports=r},function(e,t,n){var r=n(9),i=n(226),o=r.extendComponentView({type:"axisPointer",render:function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.register("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){i.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){i.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}}),a=o;e.exports=a},function(e,t,n){var r=n(141),i=n(115),o=n(224),a=n(63),s=["x","y"],l=["width","height"],u=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis,l=s.coordinateSystem,u=p(l,1-h(s)),d=l.dataToPoint(t)[0],f=r.get("type");if(f&&"none"!==f){var m=i.buildElStyle(r),g=c[f](s,d,u);g.style=m,e.graphicKey=g.type,e.pointer=g}var y=o.layout(n);i.buildCartesianSingleLabelElOption(t,e,y,n,r,a)},getHandleTransform:function(e,t,n){var r=o.layout(t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:i.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=h(i),s=p(o,a),l=e.position;
77l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=p(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{position:l,rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:i.makeLineShape([t,n[0]],[t,n[1]],h(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:i.makeRectShape([t-r/2,n[0]],[r,o],h(e))}}};function h(e){return e.isHorizontal()?0:1}function p(e,t){var n=e.getRect();return[n[s[t]],n[s[t]]+n[l[t]]]}a.registerAxisPointerClass("SingleAxisPointer",u);var d=u;e.exports=d},function(e,t,n){var r=n(25),i=n(72),o=n(88).getDimensionTypeByAxis,a=n(34),s=n(1),l=n(14).groupData,u=n(17).encodeHTML,c=n(93),h=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){h.superApply(this,"init",arguments),this.legendVisualProvider=new c(s.bind(this.getData,this),s.bind(this.getRawData,this))},fixData:function(e){var t=e.length,n={},r=l(e,(function(e){return n.hasOwnProperty(e[0])||(n[e[0]]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,u=0;u<i[a].dataList.length;++u){var c=i[a].dataList[u][0];n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[],e[t][0]=c,e[t][1]=0,e[t][2]=s,t++)}return e},getInitialData:function(e,t){for(var n=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),r=s.filter(e.data,(function(e){return void 0!==e[2]})),l=this.fixData(r||[]),u=[],c=this.nameMap=s.createHashMap(),h=0,p=0;p<l.length;++p)u.push(l[p][2]),c.get(l[p][2])||(c.set(l[p][2],h),h++);var d=i(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),f=new a(d,this);return f.initData(l),f},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=l(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},getAxisTooltipData:function(e,t,n){s.isArray(e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],l=o.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,p=o[u].indices.length,d=0;d<p;++d){var f=i.get(e[0],o[u].indices[d]),m=Math.abs(f-t);m<=c&&(r=f,c=m,h=o[u].indices[d])}a.push(h)}return{dataIndices:a,nestestValue:r}},formatTooltip:function(e){var t=this.getData(),n=t.getName(e),r=t.get(t.mapDimension("value"),e);return(isNaN(r)||null==r)&&(r="-"),u(n+" : "+r)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),p=h;e.exports=p},function(e,t,n){var r=n(9),i=n(199).Polygon,o=n(12),a=n(1),s=a.bind,l=a.extend,u=n(61),c=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var r=e.getData(),a=this.group,c=e.getLayerSeries(),h=r.getLayout("layoutInfo"),p=h.rect,d=h.boundaryGap;function f(e){return e.name}a.attr("position",[0,p.y+d[0]]);var m=new u(this._layersSeries||[],c,f,f),g={};function y(t,n,s){var u=this._layers;if("remove"!==t){for(var h,p,d,f=[],m=[],y=c[n].indices,v=0;v<y.length;v++){var _=r.getItemLayout(y[v]),x=_.x,b=_.y0,w=_.y;f.push([x,b]),m.push([x,b+w]),h=r.getItemVisual(y[v],"color")}var S=r.getItemLayout(y[0]),k=r.getItemModel(y[v-1]),T=k.getModel("label"),M=T.get("margin");if("add"===t){var E=g[n]=new o.Group;p=new i({shape:{points:f,stackedOnPoints:m,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),d=new o.Text({style:{x:S.x-M,y:S.y0+S.y/2}}),E.add(p),E.add(d),a.add(E),p.setClipPath(function(e,t,n){var r=new o.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return o.initProps(r,{shape:{width:e.width+20,height:e.height+20}},t,n),r}(p.getBoundingRect(),e,(function(){p.removeClipPath()})))}else{E=u[s];p=E.childAt(0),d=E.childAt(1),a.add(E),g[n]=E,o.updateProps(p,{shape:{points:f,stackedOnPoints:m}},e),o.updateProps(d,{style:{x:S.x-M,y:S.y0+S.y/2}},e)}var C=k.getModel("emphasis.itemStyle"),I=k.getModel("itemStyle");o.setTextStyle(d.style,T,{text:T.get("show")?e.getFormattedLabel(y[v-1],"normal")||r.getName(y[v-1]):null,textVerticalAlign:"middle"}),p.setStyle(l({fill:h},I.getItemStyle(["color"]))),o.setHoverStyle(p,C.getItemStyle())}else a.remove(u[n])}m.add(s(y,this,"add")).update(s(y,this,"update")).remove(s(y,this,"remove")).execute(),this._layersSeries=c,this._layers=g},dispose:function(){}});e.exports=c},function(e,t,n){var r=n(1),i=n(13);function o(e,t,n){if(e.count())for(var i,o=t.coordinateSystem,a=t.getLayerSeries(),s=e.mapDimension("single"),l=e.mapDimension("value"),u=r.map(a,(function(t){return r.map(t.indices,(function(t){var n=o.dataToPoint(e.get(s,t));return n[1]=e.get(l,t),n}))})),c=function(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a={},s=0;s<n;++s){for(var l=0,u=0;l<t;++l)u+=e[l][s][1];u>o&&(o=u),r.push(u)}for(var c=0;c<n;++c)i[c]=(o-r[c])/2;o=0;for(var h=0;h<n;++h){var p=r[h]+i[h];p>o&&(o=p)}return a.y0=i,a.max=o,a}(u),h=c.y0,p=n/c.max,d=a.length,f=a[0].indices.length,m=0;m<f;++m){i=h[m]*p,e.setItemLayout(a[0].indices[m],{layerIndex:0,x:u[0][m][0],y0:i,y:u[0][m][1]*p});for(var g=1;g<d;++g)i+=u[g-1][m][1]*p,e.setItemLayout(a[g].indices[m],{layerIndex:g,x:u[g][m][0],y0:i,y:u[g][m][1]*p})}}e.exports=function(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},a=n.getRect();r.rect=a;var s=e.get("boundaryGap"),l=n.getAxis();(r.boundaryGap=s,"horizontal"===l.orient)?(s[0]=i.parsePercent(s[0],a.height),s[1]=i.parsePercent(s[1],a.height),o(t,e,a.height-s[0]-s[1])):(s[0]=i.parsePercent(s[0],a.width),s[1]=i.parsePercent(s[1],a.width),o(t,e,a.width-s[0]-s[1]));t.setLayout("layoutInfo",r)}))}},function(e,t,n){var r=n(1).createHashMap;e.exports=function(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.getRawData(),i=e.get("
77color"),o=r();t.each((function(e){o.set(t.getRawIndex(e),e)})),n.each((function(r){var a=n.getName(r),s=i[(e.nameMap.get(a)-1)%i.length];n.setItemVisual(r,"color",s);var l=o.get(r);null!=l&&t.setItemVisual(l,"color",s)}))}))}},function(e,t,n){var r=n(9),i=n(1);n(502),n(503),n(505);var o=n(111),a=n(506),s=n(94);r.registerVisual(i.curry(o,"sunburst")),r.registerLayout(i.curry(a,"sunburst")),r.registerProcessor(i.curry(s,"sunburst"))},function(e,t,n){var r=n(1),i=n(25),o=n(136),a=n(23),s=n(64).wrapTreePathInfo,l=i.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;r.each(t.children,(function(t){e(t);var i=t.value;r.isArray(i)&&(i=i[0]),n+=i}));var i=t.value;r.isArray(i)&&(i=i[0]);(null==i||isNaN(i))&&(i=n);i<0&&(i=0);r.isArray(t.value)?t.value[0]=i:t.value=i}(n);var i=r.map(e.levels||[],(function(e){return new a(e,this,t)}),this),s=o.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}));return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=s(n,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});e.exports=l},function(e,t,n){var r=n(1),i=n(40),o=n(504),a=n(61),s=n(17).windowOpen,l=i.extend({type:"sunburst",init:function(){},render:function(e,t,n,i){var s=this;this.seriesModel=e,this.api=n,this.ecModel=t;var l=e.getData(),u=l.tree.root,c=e.getViewRoot(),h=this.group,p=e.get("renderLabelForZeroData"),d=[];c.eachNode((function(e){d.push(e)}));var f=this._oldChildren||[];if(function(n,i){if(0===n.length&&0===i.length)return;function s(e){return e.getId()}function c(r,a){!function(n,r){p||!n||n.getValue()||(n=null);if(n!==u&&r!==u)if(r&&r.piece)n?(r.piece.updateData(!1,n,"normal",e,t),l.setItemGraphicEl(n.dataIndex,r.piece)):function(e){if(!e)return;e.piece&&(h.remove(e.piece),e.piece=null)}(r);else if(n){var i=new o(n,e,t);h.add(i),l.setItemGraphicEl(n.dataIndex,i)}}(null==r?null:n[r],null==a?null:i[a])}new a(i,n,s,s).add(c).update(c).remove(r.curry(c,null)).execute()}(d,f),function(n,r){if(r.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new o(n,e,t),h.add(s.virtualPiece)),r.piece._onclickEvent&&r.piece.off("click",r.piece._onclickEvent);var i=function(e){s._rootToNode(r.parentNode)};r.piece._onclickEvent=i,s.virtualPiece.on("click",i)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}(u,c),i&&i.highlight&&i.highlight.piece){var m=e.getShallow("highlightPolicy");i.highlight.piece.onEmphasis(m)}else if(i&&i.unhighlight){var g=this.virtualPiece;!g&&u.children.length&&(g=u.children[0].piece),g&&g.onNormal()}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece.childAt(0)===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var l=o.get("target",!0)||"_blank";s(a,l)}}n=!0}}))};
77this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}}});e.exports=l},function(e,t,n){var r=n(1),i=n(12),o="none",a="ancestor",s="self";function l(e,t,n){i.Group.call(this);var r=new i.Sector({z2:2});r.seriesIndex=t.seriesIndex;var o=new i.Text({z2:4,silent:e.getModel("label").get("silent")});function a(){o.ignore=o.hoverIgnore}function s(){o.ignore=o.normalIgnore}this.add(r),this.add(o),this.updateData(!0,e,"normal",t,n),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var u=l.prototype;u.updateData=function(e,t,n,o,a){this.node=t,t.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),u=t.getLayout(),c=r.extend({},u);c.label=null;var h=function(e,t,n){var i=e.getVisual("color"),o=e.getVisual("visualMeta");o&&0!==o.length||(i=null);var a=e.getModel("itemStyle").get("color");if(a)return a;if(i)return i;if(0===e.depth)return n.option.color[0];var s=n.option.color.length;a=n.option.color[function(e){var t=e;for(;t.depth>1;)t=t.parentNode;var n=e.getAncestors()[0];return r.indexOf(n.children,t)}(e)%s];return a}(t,0,a);!function(e,t,n){t.getData().setItemVisual(e.dataIndex,"color",n)}(t,o,h);var p,d=l.getModel("itemStyle").getItemStyle();if("normal"===n)p=d;else{var f=l.getModel(n+".itemStyle").getItemStyle();p=r.merge(f,d)}p=r.defaults({lineJoin:"bevel",fill:p.fill||h},p),e?(s.setShape(c),s.shape.r=u.r0,i.updateProps(s,{shape:{r:u.r}},o,t.dataIndex),s.useStyle(p)):"object"==typeof p.fill&&p.fill.type||"object"==typeof s.style.fill&&s.style.fill.type?(i.updateProps(s,{shape:c},o),s.useStyle(p)):i.updateProps(s,{shape:c,style:p},o),this._updateLabel(o,h,n);var m=l.getShallow("cursor");if(m&&s.attr("cursor",m),e){var g=o.getShallow("highlightPolicy");this._initEvents(s,t,o,g)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,i.setHoverStyle(this)},u.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){var r,i,l;n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):(r=n,i=t.node,(l=e)!==o&&(l===s?r===i:l===a?r===i||r.isAncestorOf(i):r===i||r.isDescendantOf(i))?n.piece.childAt(0).trigger("highlight"):e!==o&&n.piece.childAt(0).trigger("downplay")))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(e,t,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),l=o.getModel("emphasis.label"),u=s.get("formatter")?n:"normal",c=r.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===M("show")&&(c="");var h=this.node.getLayout(),p=s.get("minAngle");null==p&&(p=a.get("minAngle")),p=p/180*Math.PI;var d=h.endAngle-h.startAngle;null!=p&&Math.abs(d)<p&&(c="");var f=this.childAt(1);i.setLabelStyle(f.style,f.hoverStyle||{},a,l,{defaultText:s.getShallow("show")?c:null,autoColor:t,useInsideStyle:!0});var m,g=(h.startAngle+h.endAngle)/2,y=Math.cos(g),v=Math.sin(g),_=M("position"),x=M("distance")||0,b=M("align");"outside"===_?(m=h.r+x,b=g>Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(m=h.r0+x,g>Math.PI/2&&(b="right")):"right"===b&&(m=h.r-x,g>Math.PI/2&&(b="left")):(m=(h.r+h.r0)/2,b="center"),f.attr("style",{text:c,textAlign:b,textVerticalAlign:M("verticalAlign")||"middle",opacity:M("opacity")});var w=m*y+h.cx,S=m*v+h.cy;f.attr("position",[w,S]);var k=M("rotate"),T=0;function M(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===k?(T=-g)<-Math.PI/2&&(T+=Math.PI):"tangential"===k?(T=Math.PI/2-g)>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI):"number"==typeof k&&(T=k*Math.PI/180),f.attr("rotation",T)},u._initEvents=function(e,t,n,r){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,o=function(){i.onEmphasis(r)},a=function(){i.onNormal()};n.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",(function(){i.onDownplay()})).on("highlight",(function(){i.onHighlight()}))},r.inherits(l,i.Group);var c=l;e.exports=c},function(e,t,n){var r=n(9),i=n(64);r.registerAction({type:"sunburstRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=i.retrieveTargetInfo(e,["sunburstRootToNode"],t);if(r){var o=t.getViewRoot();o&&(e.direction=i.aboveViewRoot(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}));r.registerAction({type:"sunburstHighlight",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=i.retrieveTargetInfo(e,["sunburstHighlight"],t);r&&(e.highlight=r.node)}))}));r.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){e.unhighlight=!0}))}))},function(e,t,n){var r=n(13).parsePercent,i=n(1),o=Math.PI/180;function a(e,t){var n=e.children||[];e.children=function(e,t){if("function"==typeof t)return e.sort(t);var n="asc"===t;return e.sort((function(e,t){var r=(e.getValue()-t.getValue())*(n?1:-1);return 0===r?(e.dataIndex-t.dataIndex)*(n?-1:1):r}))}(n,t),n.length&&i.each(e.children,(function(e){a(e,t)}))}
77e.exports=function(e,t,n,s){t.eachSeriesByType(e,(function(e){var t=e.get("center"),s=e.get("radius");i.isArray(s)||(s=[0,s]),i.isArray(t)||(t=[t,t]);var l=n.getWidth(),u=n.getHeight(),c=Math.min(l,u),h=r(t[0],l),p=r(t[1],u),d=r(s[0],c/2),f=r(s[1],c/2),m=-e.get("startAngle")*o,g=e.get("minAngle")*o,y=e.getData().tree.root,v=e.getViewRoot(),_=v.depth,x=e.get("sort");null!=x&&a(v,x);var b=0;i.each(v.children,(function(e){!isNaN(e.getValue())&&b++}));var w=v.getValue(),S=Math.PI/(w||b)*2,k=v.depth>0,T=v.height-(k?-1:1),M=(f-d)/(T||1),E=e.get("clockwise"),C=e.get("stillShowZeroSum"),I=E?1:-1,A=function(e,t){if(e){var n=t;if(e!==y){var o=e.getValue(),a=0===w&&C?S:o*S;a<g&&(a=g),n=t+I*a;var s=e.depth-_-(k?-1:1),l=d+M*s,u=d+M*(s+1),f=e.getModel();null!=f.get("r0")&&(l=r(f.get("r0"),c/2)),null!=f.get("r")&&(u=r(f.get("r"),c/2)),e.setLayout({angle:a,startAngle:t,endAngle:n,clockwise:E,cx:h,cy:p,r0:l,r:u})}if(e.children&&e.children.length){var m=0;i.each(e.children,(function(e){m+=A(e,t+m)}))}return n-t}};if(k){var P=d,D=d+M,L=2*Math.PI;y.setLayout({angle:L,startAngle:m,endAngle:m+L,clockwise:E,cx:h,cy:p,r0:P,r:D})}A(v,m)}))}},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(12),o=n(129).getDefaultLabel,a=n(44),s=n(107).getLayoutOnAxis,l=n(61),u=n(25),c=n(23),h=n(40),p=n(90).createClipPath,d=n(508),f=n(509),m=n(510),g=n(511),y=n(512),v=i.CACHED_LABEL_STYLE_PROPERTIES,_=["itemStyle"],x=["emphasis","itemStyle"],b=["label"],w=["emphasis","label"],S={cartesian2d:d,geo:f,singleAxis:m,polar:g,calendar:y};function k(e,t,n,r,i){null==n[e]||i||(t[e]=n[e],n[e]=r[e])}function T(e,t,n,a){var l=e.get("renderItem"),u=e.coordinateSystem,c={};u&&(c=u.prepareCustoms?u.prepareCustoms():S[u.type](u));var h,p,d,f,m,g=r.defaults({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:function(e,n){return null==n&&(n=h),t.get(t.getDimension(e||0),n)},style:function(n,a){null==a&&(a=h),k(a);var s=p.getModel(_).getItemStyle();null!=m&&(s.fill=m);var l=t.getItemVisual(a,"opacity");null!=l&&(s.opacity=l);var u=n?P(n,d):d;return i.setTextStyle(s,u,null,{autoColor:m,isRectText:!0}),s.text=u.getShallow("show")?r.retrieve2(e.getFormattedLabel(a,"normal"),o(t,a)):null,n&&D(s,n),s},styleEmphasis:function(n,a){null==a&&(a=h),k(a);var s=p.getModel(x).getItemStyle(),l=n?P(n,f):f;return i.setTextStyle(s,l,null,{isRectText:!0},!0),s.text=l.getShallow("show")?r.retrieve3(e.getFormattedLabel(a,"emphasis"),e.getFormattedLabel(a,"normal"),o(t,a)):null,n&&D(s,n),s},visual:function(e,n){return null==n&&(n=h),t.getItemVisual(n,e)},barLayout:function(e){if(u.getBaseAxis){var t=u.getBaseAxis();return s(r.defaults({axis:t},e),a)}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return i.getFont(e,n)}},c.api||{}),y={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:M(e.getData())},v=!0;return function(e,n){return h=e,v=!0,l&&l(r.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},y),g)};function k(e){null==e&&(e=h),v&&(p=t.getItemModel(e),d=p.getModel(b),f=p.getModel(w),m=t.getItemVisual(e,"color"),v=!1)}}function M(e){var t={};return r.each(e.dimensions,(function(n,r){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim;(t[o]=t[o]||[])[i.coordDimIndex]=r}})),t}function E(e,t,n,r,i,o){return(e=C(e,t,n,r,i,o,!0))&&o.setItemGraphicEl(t,e),e}function C(e,t,n,o,a,s,u){var c,h=!n,p=(n=n||{}).type,d=n.shape,f=n.style;if(e&&(h||null!=p&&p!==e.__customGraphicType||"path"===p&&((c=d)&&(c.hasOwnProperty("pathData")||c.hasOwnProperty("d")))&&O(d)!==e.__customPathData||"image"===p&&R(f,"image")&&f.image!==e.__customImagePath||"text"===p&&R(d,"text")&&f.text!==e.__customText)&&(a.remove(e),e=null),!h){var m=!e;return!e&&(e=function(e){var t,n=e.type;if("path"===n){var r=e.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=O(r);(t=i.makePath(a,null,o,r.layout||"center")).__customPathData=a}else if("image"===n)(t=new i.Image({})).__customImagePath=e.style.image;else if("text"===n)(t=new i.Text({})).__customText=e.style.text;else if("group"===n)t=new i.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');
77t=new(i.getShapeClass(n))}return t.__customGraphicType=n,t.name=e.name,t}(n)),function(e,t,n,o,a,s,l){var u={},c=n.style||{};if(n.shape&&(u.shape=r.clone(n.shape)),n.position&&(u.position=n.position.slice()),n.scale&&(u.scale=n.scale.slice()),n.origin&&(u.origin=n.origin.slice()),n.rotation&&(u.rotation=n.rotation),"image"===e.type&&n.style){var h=u.style={};r.each(["x","y","width","height"],(function(t){k(t,h,c,e.style,s)}))}if("text"===e.type&&n.style){h=u.style={};r.each(["x","y"],(function(t){k(t,h,c,e.style,s)})),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke)}if("group"!==e.type&&(e.useStyle(c),s)){e.style.opacity=0;var p=c.opacity;null==p&&(p=1),i.initProps(e,{style:{opacity:p}},o,t)}s?e.attr(u):i.updateProps(e,u,o,t),n.hasOwnProperty("z2")&&e.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&e.attr("silent",n.silent),n.hasOwnProperty("invisible")&&e.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&e.attr("ignore",n.ignore),n.hasOwnProperty("info")&&e.attr("info",n.info);var d=n.styleEmphasis;i.setElementHoverStyle(e,d),l&&i.setAsHighDownDispatcher(e,!1!==d)}(e,t,n,o,0,m,u),"group"===p&&function(e,t,n,r,i){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,u="byName"===s||n.diffChildrenByName,c=!1===s;if(!a&&!u&&!c)return;if(u)return h={oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,animatableModel:r,group:e,data:i},void new l(h.oldChildren,h.newChildren,I,I,h).add(A).update(A).remove(L).execute();var h;c&&e.removeAll();for(var p=0;p<a;p++)o[p]&&C(e.childAt(p),t,o[p],r,e,i)}(e,t,n,o,s),a.add(e),e}}function I(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function A(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null;C(null!=t?n.oldChildren[t]:null,n.dataIndex,r,n.animatableModel,n.group,n.data)}function P(e,t){var n=new c({},t);return r.each(v,(function(t,r){e.hasOwnProperty(t)&&(n.option[r]=e[t])})),n}function D(e,t){for(var n in t)!t.hasOwnProperty(n)&&v.hasOwnProperty(n)||(e[n]=t[n])}function L(e){var t=this.context,n=t.oldChildren[e];n&&t.group.remove(n)}function O(e){return e&&(e.pathData||e.d)}function R(e,t){return e&&e.hasOwnProperty(t)}u.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return a(this.getSource(),this)},getDataParams:function(e,t,n){var r=u.prototype.getDataParams.apply(this,arguments);return n&&(r.info=n.info),r}}),h.extend({type:"custom",_data:null,render:function(e,t,n,r){var i=this._data,o=e.getData(),a=this.group,s=T(e,o,t,n);o.diff(i).add((function(t){E(null,t,s(t,r),e,a,o)})).update((function(t,n){E(i.getItemGraphicEl(n),t,s(t,r),e,a,o)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&a.remove(t)})).execute();var l=e.get("clip",!0)?p(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},incrementalPrepareRender:function(e,t,n){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,r,i){var o=t.getData(),a=T(t,o,n,r);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++){E(null,l,a(l,i),t,this.group,o).traverse(s)}},dispose:r.noop,filterForExposedEvent:function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;for(;(n=n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1}})},function(e,t,n){var r=n(1);function i(e,t){return t=t||[0,0],r.map(["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}e.exports=function(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:r.bind(i,e)}}}},function(e,t,n){var r=n(1);function i(e,t){return t=t||[0,0],r.map([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}
77e.exports=function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:r.bind(i,e)}}}},function(e,t,n){var r=n(1);function i(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}e.exports=function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:r.bind(i,e)}}}},function(e,t,n){var r=n(1);function i(e,t){return r.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=t[r],a=e[r]/2,s="dataTo"+n,l="category"===i.type?i.getBandWidth():Math.abs(i[s](o-a)-i[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}e.exports=function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),o=t.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:o[1],r0:o[0]},api:{coord:r.bind((function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a})),size:r.bind(i,e)}}}},function(e,t){e.exports=function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}},function(e,t,n){n(92),n(227),n(96)},function(e,t,n){var r=n(9),i=n(1),o=n(515);n(142),n(521),n(523),n(96),n(525),r.registerLayout(i.curry(o,"bar")),r.extendComponentView({type:"polar"})},function(e,t,n){var r=n(1),i=n(13).parsePercent,o=n(41).isDimensionStacked;function a(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function s(e,t){return t.dim+e.model.componentIndex}var l=function(e,t,n){var l={},u=function(e,t){var n={};r.each(e,(function(e,t){var r=e.getData(),o=e.coordinateSystem,l=o.getBaseAxis(),u=s(o,l),c=l.getExtent(),h="category"===l.type?l.getBandWidth():Math.abs(c[1]-c[0])/r.count(),p=n[u]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=p.stacks;n[u]=p;var f=a(e);d[f]||p.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var m=i(e.get("barWidth"),h),g=i(e.get("barMaxWidth"),h),y=e.get("barGap"),v=e.get("barCategoryGap");m&&!d[f].width&&(m=Math.min(p.remainedWidth,m),d[f].width=m,p.remainedWidth-=m),g&&(d[f].maxWidth=g),null!=y&&(p.gap=y),null!=v&&(p.categoryGap=v)}));var o={};return r.each(n,(function(e,t){o[t]={};var n=e.stacks,a=e.bandWidth,s=i(e.categoryGap,a),l=i(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),r.each(n,(function(e,t){var n=e.maxWidth;n&&n<h&&(n=Math.min(n,u),e.width&&(n=Math.min(n,e.width)),u-=n,e.width=n,c--)})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;r.each(n,(function(e,t){e.width||(e.width=h),p=e,d+=e.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;r.each(n,(function(e,n){o[t][n]=o[t][n]||{offset:f,width:e.width},f+=e.width*(1+l)}))})),o}(r.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=s(n,r),c=a(e),h=u[i][c],p=h.offset,d=h.width,f=n.getOtherAxis(r),m=e.coordinateSystem.cx,g=e.coordinateSystem.cy,y=e.get("barMinHeight")||0,v=e.get("barMinAngle")||0;l[c]=l[c]||[];for(var _=t.mapDimension(f.dim),x=t.mapDimension(r.dim),b=o(t,_),w="radius"!==r.dim||!e.get("roundCap",!0),S="radius"===f.dim?f.dataToRadius(0):f.dataToAngle(0),k=0,T=t.count();k<T;k++){var M,E,C,I,A=t.get(_,k),P=t.get(x,k),D=A>=0?"p":"n",L=S;if(b&&(l[c][P]||(l[c][P]={p:S,n:S}),L=l[c][P][D]),"radius"===f.dim){var O=f.dataToRadius(A)-S,R=r.dataToAngle(P);Math.abs(O)<y&&(O=(O<0?-1:1)*y),M=L,E=L+O,I=(C=R-p)-d,b&&(l[c][P][D]=E)}else{var z=f.dataToAngle(A,w)-S,N=r.dataToRadius(P);Math.abs(z)<v&&(z=(z<0?-1:1)*v),E=(M=N+p)+d,C=L,I=L+z,b&&(l[c][P][D]=I)}t.setItemLayout(k,{cx:m,cy:g,r0:M,r:E,startAngle:-C*Math.PI/180,endAngle:-I*Math.PI/180})}}}),this)};e.exports=l},function(e,t,n){var r=n(517),i=n(518),o=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new i,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}}};var a=o;e.exports=a},function(e,t,n){var r=n(1),i=n(51);
77function o(e,t){i.call(this,"radius",e,t),this.type="category"}o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:i.prototype.dataToCoord,radiusToData:i.prototype.coordToData},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(1),i=n(32),o=n(51),a=(0,n(14).makeInner)();function s(e,t){t=t||[0,360],o.call(this,"angle",e,t),this.type="category"}s.prototype={constructor:s,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),r=t.count();if(n[1]-n[0]<1)return 0;var o=n[0],s=this.dataToCoord(o+1)-this.dataToCoord(o),l=Math.abs(s),u=i.getBoundingRect(o,e.getFont(),"center","top"),c=Math.max(u.height,7)/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),p=a(this.model),d=p.lastAutoInterval,f=p.lastTickCount;return null!=d&&null!=f&&Math.abs(d-h)<=1&&Math.abs(f-r)<=1&&d>h?h=d:(p.lastTickCount=r,p.lastAutoInterval=h),h}},r.inherits(s,o);var l=s;e.exports=l},function(e,t,n){var r=n(9);n(520);var i=r.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=i},function(e,t,n){var r=n(1),i=n(24),o=n(109),a=n(73),s=i.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(s.prototype,a);var l={splitNumber:5};function u(e,t){return t.type||(t.data?"category":"value")}o("angle",s,u,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),o("radius",s,u,l)},function(e,t,n){n(142),n(522)},function(e,t,n){var r=n(1),i=n(12),o=n(23),a=n(63),s=n(52),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function c(e){return e.getRadiusAxis().inverse?0:1}function h(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var p=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=r.map(n.getViewLabels(),(function(e){return(e=r.clone(e)).coord=n.dataToCoord(e.tickValue),e}));h(u),h(a),r.each(l,(function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,a,s,o,u)}),this)}},_axisLine:function(e,t,n,r,o){var a,s=e.getModel("axisLine.lineStyle"),l=c(t),u=l?0:1;(a=0===o[u]?new i.Circle({shape:{cx:t.cx,cy:t.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new i.Ring({shape:{cx:t.cx,cy:t.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,this.group.add(a)},_axisTick:function(e,t,n,o,a){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=a[c(t)],p=r.map(n,(function(e){return new i.Line({shape:u(t,[h,h+l],e.coord)})}));this.group.add(i.mergePath(p,{style:r.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,n,o,a){if(o.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),p=a[c(t)],d=[],f=0;f<o.length;f++)for(var m=0;m<o[f].length;m++)d.push(new i.Line({shape:u(t,[p,p+h],o[f][m].coord)}));this.group.add(i.mergePath(d,{style:r.defaults(l.getModel("lineStyle").getLineStyle(),r.defaults(s.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,n,a,l,u){var h=e.getCategories(!0),p=e.getModel("axisLabel"),d=p.get("margin"),f=e.get("triggerEvent");r.each(u,(function(n,r){var a=p,u=n.tickValue,m=l[c(t)],g=t.coordToPoint([m+d,n.coord]),y=t.cx,v=t.cy,_=Math.abs(g[0]-y)/m<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-v)/m<.3?"middle":g[1]>v?"top":"bottom";h&&h[u]&&h[u].textStyle&&(a=new o(h[u].textStyle,p,p.ecModel));var b=new i.Text({silent:s.isLabelSilent(e)});this.group.add(b),i.setTextStyle(b.style,a,{x:g[0],y:g[1],textFill:a.getTextColor()||e.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:_,textVerticalAlign:x}),f&&(b.eventData=s.makeAxisEventDataBase(e),b.eventData.targetType="axisLabel",b.eventData.value=n.rawLabel)}),this)},_splitLine:function(e,t,n,o,a){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var h=[],p=0;p<n.length;p++){var d=c++%l.length;h[d]=h[d]||[],h[d].push(new i.Line({shape:u(t,a,n[p].coord)}))}for(p=0;p<h.length;p++)this.group.add(i.mergePath(h[p],{style:r.defaults({stroke:l[p%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,n,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var c=0;c<r[l].length;c++)s.push(new i.Line({shape:u(t,o,r[l][c].coord)}));this.group.add(i.mergePath(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,n,o,a){if(n.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,p=-n[0].coord*h,d=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),m=e.get("clockwise"),g=1;g<n.length;g++){var y=u++%l.length;c[y]=c[y]||[],c[y].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:d,r:f,startAngle:p,endAngle:-n[g].coord*h,clockwise:m},silent:!0})),p=-n[g].coord*h}for(g=0;g<c.length;g++)this.group.add(i.mergePath(c[g],{style:r.defaults({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}});e.exports=p},function(e,t,n){n(142),n(524)},function(e,t,n){var r=n(1),i=n(12),o=n(52),a=n(63),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],u=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getAngleAxis(),u=n.getTicksCoords(),c=n.getMinorTicksCoords(),h=a.getExtent()[0],p=n.getExtent(),d=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(i,e,h),f=new o(e,d);r.each(s,f.add,f),this.group.add(f.getGroup()),r.each(l,(function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,i,h,p,u,c)}),this)}},_splitLine:function(e,t,n,o,a){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<a.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new i.Circle({shape:{cx:t.cx,cy:t.cy,r:a[h].coord}}))}for(h=0;h<c.length;h++)this.group.add(i.mergePath(c[h],{style:r.defaults({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))}
77,_minorSplitLine:function(e,t,n,o,a,s){if(s.length){for(var l=e.getModel("minorSplitLine").getModel("lineStyle"),u=[],c=0;c<s.length;c++)for(var h=0;h<s[c].length;h++)u.push(new i.Circle({shape:{cx:t.cx,cy:t.cy,r:s[c][h].coord}}));this.group.add(i.mergePath(u,{style:r.defaults({fill:null},l.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,n,o,a){if(a.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=a[0].coord,p=1;p<a.length;p++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[p].coord}for(p=0;p<c.length;p++)this.group.add(i.mergePath(c[p],{style:r.defaults({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}});e.exports=u},function(e,t,n){var r=n(17),i=n(141),o=n(12),a=n(115),s=n(29),l=n(52),u=n(63),c=i.extend({makeElOption:function(e,t,n,i,u){var c=n.axis;"angle"===c.dim&&(this.animationThreshold=Math.PI/18);var p,d=c.polar,f=d.getOtherAxis(c).getExtent();p=c["dataTo"+r.capitalFirst(c.dim)](t);var m=i.get("type");if(m&&"none"!==m){var g=a.buildElStyle(i),y=h[m](c,d,p,f,g);y.style=g,e.graphicKey=y.type,e.pointer=y}var v=function(e,t,n,r,i){var a=t.axis,u=a.dataToCoord(e),c=r.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,p,d,f=r.getRadiusAxis().getExtent();if("radius"===a.dim){var m=s.create();s.rotate(m,m,c),s.translate(m,m,[r.cx,r.cy]),h=o.applyTransform([u,-i],m);var g=t.getModel("axisLabel").get("rotate")||0,y=l.innerTextLayout(c,g*Math.PI/180,-1);p=y.textAlign,d=y.textVerticalAlign}else{var v=f[1];h=r.coordToPoint([v+i,u]);var _=r.cx,x=r.cy;p=Math.abs(h[0]-_)/v<.3?"center":h[0]>_?"left":"right",d=Math.abs(h[1]-x)/v<.3?"middle":h[1]>x?"top":"bottom"}return{position:h,align:p,verticalAlign:d}}(t,n,0,d,i.get("label.margin"));a.buildLabelElOption(e,n,i,u,v)}});var h={line:function(e,t,n,r,i){return"angle"===e.dim?{type:"Line",shape:a.makeLineShape(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i){var o=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,r[0],r[1],(-n-o/2)*s,(o/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",c);var p=c;e.exports=p},function(e,t,n){var r=n(9),i=n(1);function o(e,t){t.update="updateView",r.registerAction(t,(function(t,n){var r={};return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;i.each(o.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}))})),{selected:r,name:t.name}}))}n(527),n(134),n(528),n(209),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(e,t,n){var r=n(1),i=n(14),o=n(24),a=n(23),s=n(131),l=n(134),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),i.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=r.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new a(n,t)),e}),r.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var n=this.getRegionModel(e).get(("normal"===t?"":t+".")+"label.formatter"),r={name:e};return"function"==typeof n?(r.status=t,n(r)):"string"==typeof n?n.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});
77r.mixin(u,s);var c=u;e.exports=c},function(e,t,n){var r=n(207),i=n(9).extendComponentView({type:"geo",init:function(e,t){var n=new r(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,r){if(!r||"geoToggleSelect"!==r.type||r.from!==this.uid){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=i},function(e,t,n){n(530),n(531),n(532)},function(e,t,n){var r=n(1),i=n(16),o=n(13),a=n(36);function s(e,t,n){this._model=e}function l(e,t,n,r){var i=n.calendarModel,o=n.seriesModel,a=i?i.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[e](r):null}s.prototype={constructor:s,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){var t=(e=o.parseDate(e)).getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var r=e.getDate();r=r<10?"0"+r:r;var i=e.getDay();return{y:t,m:n,d:r,day:i=Math.abs((i+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+n+"-"+r,date:e}},getNextNDay:function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],(function(e){h(a,e)&&(s[o[e]]=a[e]*l[e])}));var u={width:t.getWidth(),height:t.getHeight()},c=this._rect=i.getLayoutRect(s,u);function h(e,t){return null!=e[t]&&"auto"!==e[t]}r.each([0,1],(function(e){h(a,e)||(a[e]=c[o[e]]/l[e])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,t){r.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];var a=n.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},convertToPixel:r.curry(l,"dataToPoint"),convertFromPixel:r.curry(l,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(r.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;(e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])])[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/864e5)-Math.floor(e[0].time/864e5)+1,r=new Date(e[0].time),i=r.getDate(),o=e[1].date.getDate();r.setDate(i+n-1);var a=r.getDate();if(a!==o)for(var s=r.getTime()-e[1].time>0?1:-1;(a=r.getDate())!==o&&(r.getTime()-e[1].time)*s>0;)n-=s,r.setDate(a-s);var l=Math.floor((n+e[0].day+6)/7),u=t?1-l:l-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:l,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return!1;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(r.start.d+i),this.getDateInfo(o)}},s.dimensions=s.prototype.dimensions,s.getDimensionsInfo=s.prototype.getDimensionsInfo,s.create=function(e,t){var n=[];return e.eachComponent("calendar",(function(r){var i=new s(r,e,t);n.push(i),r.coordinateSystem=i}
77)),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},a.register("calendar",s);var u=s;e.exports=u},function(e,t,n){var r=n(1),i=n(24),o=n(16),a=o.getLayoutParams,s=o.sizeCalculable,l=o.mergeLayoutParam,u=i.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,n,r){var i=a(e);u.superApply(this,"init",arguments),c(e,i)},mergeOption:function(e,t){u.superApply(this,"mergeOption",arguments),c(this.option,e)}});function c(e,t){var n=e.cellSize;r.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var i=r.map([0,1],(function(e){return s(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));l(e,t,{type:"box",ignoreSize:i})}var h=u;e.exports=h},function(e,t,n){var r=n(9),i=n(1),o=n(12),a=n(17),s=n(13),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},c=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,a,r),this._renderWeekText(e,o,a,r)},_renderDayRect:function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=t.start.time;l<=t.end.time;l=r.getNextNDay(l,1).time){var u=r.dataToRect([l],!1).tl,c=new o.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:i});n.add(c)}},_renderLines:function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function p(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}p(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},_getEdgesPoints:function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},_drawSplitline:function(e,t,n){var r=new o.Polyline({z2:20,shape:{points:e},style:t});n.add(r)},_getLinePointsOfOneWeek:function(e,t,n){var r=e.coordinateSystem;t=r.getDateInfo(t);for(var i=[],o=0;o<7;o++){var a=r.getNextNDay(t.time,o),s=r.dataToRect([a.time],!1);i[2*a.day]=s.tl,i[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return i},_formatterLabel:function(e,t){return"string"==typeof e&&e?a.formatTplSimple(e,t):"function"==typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,r,i){t=t.slice();var o=["center","bottom"];"bottom"===r?(t[1]+=i,o=["center","top"]):"left"===r?t[0]-=i:"right"===r?(t[0]+=i,o=["center","top"]):t[1]-=i;var a=0;return"left"!==r&&"right"!==r||(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),s=i.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,h="horizontal"===n?0:1,p={top:[u,l[h][1]],bottom:[u,l[1-h][1]],left:[l[1-h][0],c],right:[l[h][0],c]},d=t.start.y;+t.end.y>
77+t.start.y&&(d=d+"-"+t.end.y);var f=i.get("formatter"),m={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(f,m),y=new o.Text({z2:30});o.setTextStyle(y.style,i,{text:g}),y.attr(this._yearTextPositionControl(y,p[s],n,s,a)),r.add(y)}},_monthTextPositionControl:function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),s=r.get("margin"),u=r.get("position"),c=r.get("align"),h=[this._tlpoints,this._blpoints];i.isString(a)&&(a=l[a.toUpperCase()]||[]);var p="start"===u?0:1,d="horizontal"===t?0:1;s="start"===u?-s:s;for(var f="center"===c,m=0;m<h[p].length-1;m++){var g=h[p][m].slice(),y=this._firstDayOfMonth[m];if(f){var v=this._firstDayPoints[m];g[d]=(v[d]+h[0][m+1][d])/2}var _=r.get("formatter"),x=a[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},w=this._formatterLabel(_,b),S=new o.Text({z2:30});i.extend(o.setTextStyle(S.style,r,{text:w}),this._monthTextPositionControl(g,f,t,u,s)),n.add(S)}}},_weekTextPositionControl:function(e,t,n,r,i){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(e,t,n,r){var a=e.getModel("dayLabel");if(a.get("show")){var l=e.coordinateSystem,c=a.get("position"),h=a.get("nameMap"),p=a.get("margin"),d=l.getFirstDayOfWeek();i.isString(h)&&(h=u[h.toUpperCase()]||[]);var f=l.getNextNDay(t.end.time,7-t.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];p=s.parsePercent(p,m["horizontal"===n?0:1]),"start"===c&&(f=l.getNextNDay(t.start.time,-(7+t.fweek)).time,p=-p);for(var g=0;g<7;g++){var y,v=l.getNextNDay(f,g),_=l.dataToRect([v.time],!1).center;y=Math.abs((g+d)%7);var x=new o.Text({z2:30});i.extend(o.setTextStyle(x.style,a,{text:h[y]}),this._weekTextPositionControl(_,n,c,p,m)),r.add(x)}}}});e.exports=c},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(14),a=n(12),s=n(16),l=n(13).parsePercent,u={path:null,compoundPath:null,group:a.Group,image:a.Image,text:a.Text};r.registerPreprocessor((function(e){var t=e.graphic;i.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var c=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,c.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,r=(t?n:e).elements,a=n.elements=t?[]:n.elements,l=[];this._flatten(r,l);var u=o.mappingToExists(a,l);o.makeIdAndName(u);var c=this._elOptionsToUpdate=[];i.each(u,(function(e,t){var n=e.option;n&&(c.push(n),function(e,t){var n=e.exist;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=i.extend({},n),o=e[t],a=n.$action||"merge";"merge"===a?o?(i.merge(o,r,!0),s.mergeLayoutParam(o,r,{ignoreSize:!0}),s.copyLayoutParams(n,o)):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&o&&(e[t]=null)}(a,t,n),function(e,t){if(!e)return;e.hv=t.hv=[d(t,["left","right"]),d(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0))}(a[t],n))}),this);for(var h=a.length-1;h>=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(e,t,n){i.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function h(e,t,n,r){var i=n.type,o=new(u.hasOwnProperty(i)?u[i]:a.getShapeClass(i))(n);t.add(o),r.set(e,o),o.__ecGraphicId=e}function p(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),n.remove(e))}function d(e,t){var n;return i.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}r.extendComponentView({type:"graphic",init:function(e,t){this._elMap=i.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group;i.each(t,(function(t){var o=t.$action,a=t.id,l=n.get(a),u=t.parentId,c=null!=u?n.get(u):r,d=t.style;"text"===t.type&&d&&(t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var f=function(e){return e=i.extend({},e),i.each(["id","parentId","$action","hv","bounding"].concat(s.LOCATION_PARAMS),(function(t){delete e[t]})),e}(t);o&&"merge"!==o?"replace"===o?(p(l,n),h(a,c,f,n)):"remove"===o&&p(l,n):l?l.attr(f):h(a,c,f,n);var m=n.get(a);m&&(m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,function(e,t,n){var r=e.eventData;e.silent||e.ignore||r||(r=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=e.info)}(m,e))}))}},_relocate:function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),u=0;u<n.length;u++){var c=n[u];if((p=i.get(c.id))&&p.isGroup){var h=(d=p.parent)===r;p.__ecGraphicWidth=l(p.__ecGraphicWidthOption,h?o:d.__ecGraphicWidth)||0,p.__ecGraphicHeight=l(p.__ecGraphicHeightOption,h?a:d.__ecGraphicHeight)||0}}for(u=n.length-1;u>=0;u--){var p;c=n[u];if(p=i.get(c.id)){var d,f=(d=p.parent)===r?{width:o,height:a}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};s.positionElement(p,c,f,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=i.createHashMap()},dispose:function(){this._clear()}})},function(e,t,n){n(535),n(536),n(537),n(538),n(539),n(540),n(545)},function(e,t,n){var r=n(9),i=n(1),o=n(53),a=r.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),i.each(this.option.feature,(function(e,t){var n=o.get(t);n&&i.merge(e,n.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"r
77ight",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=a;e.exports=s},function(e,t,n){var r=n(9),i=n(1),o=n(32),a=n(53),s=n(12),l=n(23),u=n(61),c=n(228),h=r.extendComponentView({type:"toolbox",render:function(e,t,n,r){var h=this.group;if(h.removeAll(),e.get("show")){var p=+e.get("itemSize"),d=e.get("feature")||{},f=this._features||(this._features={}),m=[];i.each(d,(function(e,t){m.push(t)})),new u(this._featureNames||[],m).add(g).update(g).remove(i.curry(g,null)).execute(),this._featureNames=m,c.layout(h,e,n),h.add(c.makeBackground(h.getBoundingRect(),e)),h.eachChild((function(e){var t=e.__title,r=e.hoverStyle;if(r&&t){var i=o.getBoundingRect(t,o.makeFont(r)),a=e.position[0]+h.position[0],s=!1;e.position[1]+h.position[1]+p+i.height>n.getHeight()&&(r.textPosition="top",s=!0);var l=s?-5-i.height:p+8;a+i.width/2>n.getWidth()?(r.textPosition=["100%",l],r.textAlign="right"):a-i.width/2<0&&(r.textPosition=[0,l],r.textAlign="left")}}))}function g(o,u){var c,g=m[o],y=m[u],v=d[g],_=new l(v,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===g&&(v.title=r.newTitle),g&&!y){if(function(e){return 0===e.indexOf("my")}(g))c={model:_,onclick:_.option.onclick,featureName:g};else{var x=a.get(g);if(!x)return;c=new x(_,t,n)}f[g]=c}else{if(!(c=f[y]))return;c.model=_,c.ecModel=t,c.api=n}g||!y?_.get("show")&&!c.unusable?(!function(r,o,a){var l=r.getModel("iconStyle"),u=r.getModel("emphasis.iconStyle"),c=o.getIcons?o.getIcons():r.get("icon"),d=r.get("title")||{};if("string"==typeof c){var f=c,m=d;d={},(c={})[a]=f,d[a]=m}var g=r.iconPaths={};i.each(c,(function(a,c){var f=s.createIcon(a,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(l.getItemStyle()),f.hoverStyle=u.getItemStyle(),f.setStyle({text:d[c],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var m=e.getModel("tooltip");m&&m.get("show")&&f.attr("tooltip",i.extend({content:d[c],formatter:m.get("formatter",!0)||function(){return d[c]},formatterParams:{componentType:"toolbox",name:c,title:d[c],$vars:["name","title"]},position:m.get("position",!0)||"bottom"},m.option)),s.setHoverStyle(f),e.get("showTitle")&&(f.__title=d[c],f.on("mouseover",(function(){var t=u.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";f.setStyle({textFill:u.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(r.get("iconStatus."+c)||"normal"),h.add(f),f.on("click",i.bind(o.onclick,o,t,n,c)),g[c]=f}))}(_,c,g),_.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&r[e].trigger(t)},c.render&&c.render(_,t,n,r)):c.remove&&c.remove(t,n):c.dispose&&c.dispose(t,n)}},updateView:function(e,t,n,r){i.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,n,r)}))},remove:function(e,t){i.each(this._features,(function(n){n.remove&&n.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){i.each(this._features,(function(n){n.dispose&&n.dispose(e,t)}))}});e.exports=h},function(e,t,n){var r=n(22),i=n(50),o=n(53),a=i.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",n
77ame:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!r.canvasSupported,s.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType()?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||r.browser.ie||r.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,i+"."+o)}else{var h=n.get("lang"),p='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /></body>';window.open().document.write(p)}else{var d=document.createElement("a");d.download=i+"."+o,d.target="_blank",d.href=a;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(f)}},o.register("saveAsImage",s);var l=s;e.exports=l},function(e,t,n){var r=n(9),i=n(1),o=n(50),a=n(53),s=o.toolbox.magicType;function l(e){this.model=e}l.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:i.clone(s.title),option:{},seriesIndex:{}};var u=l.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return i.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n};var c={line:function(e,t,n,r){if("bar"===e)return i.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0)},bar:function(e,t,n,r){if("line"===e)return i.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0)},stack:function(e,t,n,r){var o="__ec_magicType_stack__"===n.get("stack");if("line"===e||"bar"===e)return r.setIconStatus("stack",o?"normal":"emphasis"),i.merge({id:t,stack:o?"":"__ec_magicType_stack__"},r.get("option.stack")||{},!0)}},h=[["line","bar"],["stack"]];u.onclick=function(e,t,n){var r=this.model,o=r.get("seriesIndex."+n);if(c[n]){var a,l={series:[]};if(i.each(h,(function(e){i.indexOf(e,n)>=0&&i.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},(function(t){var o=t.subType,a=t.id,s=c[n](o,a,t,r);s&&(i.defaults(s,t.option),l.series.push(s));var u=t.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===n||"bar"===n)){var h=u.getAxesByScale("ordinal")[0];if(h){var p=h.dim+"Axis",d=e.queryComponents({mainType:p,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;l[p]=l[p]||[];for(var f=0;f<=d;f++)l[p][d]=l[p][d]||{};l[p][d].boundaryGap="bar"===n}}})),"stack"===n)a=l.series&&l.series[0]&&"__ec_magicType_stack__"===l.series[0].stack?i.merge({stack:s.title.tiled},s.title):i.clone(s.title);t.dispatchAction({type:"changeMagicType",currentType:n,newOption:l,newTitle:a,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),a.register("magicType",l);var p=l;e.exports=p},function(e,t,n){var r=n(9),i=n(1),o=n(38),a=n(50),s=n(53),l=a.toolbox.dataView,u=new Array(60).join("-");function c(e){return i.map(e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+"\t":"")+r.join("\t"))})),n.join("\n")})).join("\n\n"+u+"\n\n")}function h(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var p=new RegExp("[\t]+","g");function d(e,t){var n=e.split(new RegExp("\n*"+u+"\n*","g")),r={series:[]};return i.each(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf("\t")>=0)return!0}(e)){var o=function(e){for(var t=e.split(/\n+/g),n=h(t.shift()).split(p),r=[],o=i.map(n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var s=h(t[a]).split(p);r.push(s.shift());for(var l=0;l<s.length;l++)o[l]&&(o[l].data[a]=s[l])}return{series:o,categories:r}}(e),a=t[n],s=a.axisDim+"Axis";a&&(r[s]=r[s]||[],r[s][a.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{o=function(e){for(var t=e.split(/\n+/g),n=h(t.shift()),r=[],i=0;i<t.length;i++){var o=h(t[i]);if(o){var a,s=o.split(p),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),r[i]={name:l,value:[]},a=r[i].value):a=r[i]=[];for(var c=0;c<s.length;c++)a.push(+s[c]);1===a.length&&(u?r[i].value=a[0]:r[i]=a[0])}}return{name:n,data:r}}(e);r.series.push(o)}})),r}function f(e){this._dom=null,this.model=e}function m(e,t){return i.map(e,(function(e,n){var r=t&&t[n];if(i.isObject(r)&&!i.isArray(r)){i.isObject(e)&&!i.isArray(e)||(e={value:e});var o=null!=r.name&&null==e.name;return e=i.defaults(e,r),o&&delete e.name,e}return e}))}f.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i.clone(l.title),lang:i.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},f.prototype.onclick=function(e,t){var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;
77left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var h=document.createElement("div"),p=document.createElement("textarea");h.style.cssText="display:block;width:100%;overflow:auto;";var f=r.get("optionToContent"),m=r.get("contentToOption"),g=function(e){var t,n,r=function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:i.filter([(t=r.seriesGroupByCategoryAxis,n=[],i.each(t,(function(e,t){var r=e.categoryAxis,o=e.valueAxis.dim,a=[" "].concat(i.map(e.series,(function(e){return e.name}))),s=[r.model.getCategories()];i.each(e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join("\t")],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join("\t"))}n.push(l.join("\n"))})),n.join("\n\n"+u+"\n\n")),c(r.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:r.meta}}(e);if("function"==typeof f){var y=f(t.getOption());"string"==typeof y?h.innerHTML=y:i.isDom(y)&&h.appendChild(y)}else h.appendChild(p),p.readOnly=r.get("readOnly"),p.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",p.style.color=r.get("textColor"),p.style.borderColor=r.get("textareaBorderColor"),p.style.backgroundColor=r.get("textareaColor"),p.value=g.value;var v=g.meta,_=document.createElement("div");_.style.cssText="position:absolute;bottom:0;left:0;right:0;";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");x+=";background-color:"+r.get("buttonColor"),x+=";color:"+r.get("buttonTextColor");var S=this;function k(){n.removeChild(a),S._dom=null}o.addEventListener(b,"click",k),o.addEventListener(w,"click",(function(){var e;try{e="function"==typeof m?m(h,t.getOption()):d(p.value,v)}catch(e){throw k(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),k()})),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=x,b.style.cssText=x,!r.get("readOnly")&&_.appendChild(w),_.appendChild(b),a.appendChild(s),a.appendChild(h),a.appendChild(_),h.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},f.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},f.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",f),r.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];i.each(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var o=r.get("data");n.push({name:e.name,data:m(e.data,o)})}else n.push(i.extend({type:"scatter"},e))})),t.mergeOption(i.defaults({series:n},e.newOption))}));var g=f;e.exports=g},function(e,t,n){var r=n(9),i=n(1),o=n(140),a=n(229),s=n(230),l=n(75),u=n(50),c=n(53);n(541);var h=u.toolbox.dataZoom,p=i.each;function d(e,t,n){(this._brushController=new o(n.getZr())).on("brush",i.bind(this._onBrush,this)).mount(),this._isZoomActive}d.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:i.clone(h.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var f=d.prototype;f.render=function(e,t,n,r){this.model=e,this.ecModel=t,this.api=n,function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var s=new a(g(e.option),t,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}(e,t)},f.onclick=function(e,t,n){m[n].call(this)},f.remove=function(e,t){this._brushController.unmount()},f.dispose=function(e,t){this._brushController.dispose()};
77var m={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function g(e){var t={};return i.each(["xAxisIndex","yAxisIndex"],(function(n){t[n]=e[n],null==t[n]&&(t[n]="all"),(!1===t[n]||"none"===t[n])&&(t[n]=[])})),t}f._onBrush=function(e,t){if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new a(g(this.model.option),r,{include:["grid"]}).matchOutputRanges(e,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),s.push(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,a,r),u=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=l(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},f._dispatchZoomAction=function(e){var t=[];p(e,(function(e,n){t.push(i.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},c.register("dataZoom",d),r.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);i.isArray(t)||(e.dataZoom=t=[t]);var n=e.toolbox;if(n&&(i.isArray(n)&&(n=n[0]),n&&n.feature)){var r=n.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(n,r){if(r){var o=n+"Index",a=r[o];null==a||"all"===a||i.isArray(a)||(a=!1===a||"none"===a?[]:[a]),function(t,n){var r=e[t];i.isArray(r)||(r=r?[r]:[]);p(r,n)}(n,(function(e,s){if(null==a||"all"===a||-1!==i.indexOf(a,s)){var l={type:"select",$fromToolbox:!0,filterMode:r.filterMode||"filter",id:"\0_ec_\0toolbox-dataZoom_"+n+s};l[o]=s,t.push(l)}}))}}}));var y=d;e.exports=y},function(e,t,n){n(143),n(76),n(77),n(543),n(544),n(145),n(146)},function(e,t,n){var r=n(1),i=n(13),o=n(144),a=n(75),s=r.each,l=i.asc,u=function(e,t,n,r){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=r,this._dataZoomModel=n};function c(e,t){var n=e.getAxisModel(),r=e._percentWindow,o=e._valueWindow;if(r){var a=i.getPixelPrecision(o,[0,500]);a=Math.min(a,20);var s=t||0===r[0]&&100===r[1];n.setRange(s?null:+o[0].toFixed(a),s?null:+o[1].toFixed(a))}}u.prototype={constructor:u,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(n){if(o.isCoordSupported(n.get("coordinateSystem"))){var r=this._dimName,i=t.queryComponents({mainType:r+"Axis",index:n.get(r+"AxisIndex"),id:n.get(r+"AxisId")})[0];this._axisIndex===(i&&i.componentIndex)&&e.push(n)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n,r=this._dimName,i=this.ecModel,o=this.getAxisModel();return"x"===r||"y"===r?(t="gridIndex",e="x"===r?"y":"x"):(t="polarIndex",e="angle"===r?"radius":"angle"),i.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(o.get(t)||0)&&(n=e)})),n},getMinMaxSpan:function(){return r.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),u=[0,100],c=[],h=[];s(["start","end"],(function(a,s){var l=e[a],p=e[a+"Value"];"percent"===o[s]?(null==l&&(l=u[s]),p=r.parse(i.linearMap(l,u,n))):(t=!0,p=null==p?n[s]:r.parse(p),l=i.linearMap(p,n,u)),h[s]=p,c[s]=l})),l(h),l(c);var p=this._minMaxSpan;function d(e,t,n,o,s){var l=s?"Span":"ValueSpan";a(0,e,n,"all",p["min"+l],p["max"+l]);for(var u=0;u<2;u++)t[u]=i.linearMap(e[u],n,o,!0),s&&(t[u]=r.parse(t[u]))}return t?d(h,c,n,u,!1):d(c,h,u,n,!0),{valueWindow:h,percentWindow:c}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];s(n,(function(e){var n=e.getData();n&&s(n.mapDimension(t,!0),(function(e){var t=n.getApproximateExtent(e);t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])}))})),r[1]<r[0]&&(r=[NaN,NaN]);return function(e,t){var n=e.getAxisModel(),r=n.getMin(!0),i="category"===n.get("type"),o=i&&n.getCategories().length;null!=r&&"dataMin"!==r&&"function"!=typeof r?t[0]=r:i&&(t[0]=o>0?0:NaN);var a=n.getMax(!0);null!=a&&"dataMax"!==a&&"function"!=typeof a?t[1]=a:i&&(t[1]=o>0?o-1:NaN);n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0))}(e,r),r}(this,this._dimName,t),function(e){var t=e._minMaxSpan={},n=e._dataZoomModel,r=e._dataExtent;s(["min","max"],(function(o){var a=n.get(o+"Span"),s=n.get(o+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?a=i.linearMap(r[0]+s,r,[0,100],!0):null!=a&&(s=i.linearMap(a,[0,100],r,!0)-r[0]),t[o+"Span"]=a,t[o+"ValueSpan"]=s}))}(this);var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,c(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,c(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&s(r,(function(e){var t=e.getData(),r=t.mapDimension(n,!0);r.length&&("weakFilter"===i?t.filterSelf((function(e){for(var n,i,a,s=0;s<r.length;s++){var l=t.get(r[s],e),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(i=!0)}return a&&n&&i})):s(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}})),s(r,(function(e){t.setApproximateExtent(o,e)})))}))}}};var h=u;e.exports=h},function(e,t,n){var r=n(76).extend({type:"dataZoom.select"});e.exports=r},function(e,t,n){var r=n(77).extend({type:"dataZoom.select"});e.exports=r},function(e,t,n){var r=n(9),i=n(230),o=n(50),a=n(53),s=o.toolbox.restore;function l(e){this.model=e}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title},l.prototype.onclick=function(e,t,n){i.clear(e),t.dispatchAction({type:"restore",from:this.uid})},a.register("restore",l),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var u=l;e.exports=u},function(e,t,n){var r=n(9);n(96),n(547),n(548),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},function(e,t,n){var r=n(9).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=r},function(e,t,n){var r=n(9),i=n(1),o=n(22),a=n(549),s=n(550),l=n(17),u=n(13),c=n(12),h=n(225),p=n(16),d=n(23),f=n(226),m=n(37),g=n(115),y=n(14).getTooltipRenderMode,v=i.bind,_=i.each,x=u.parsePercent,b=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=r.extendComponentView({type:"tooltip",init:function(e,t){if(!o.node){var n,r=e.getComponent("tooltip"),i=r.get("renderMode");this._renderMode=y(i),"html"===this._renderMode?(n=new a(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!o.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel.get("triggerOn");f.register("itemTooltip",this._api,v((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY})}))}},manuallyShowTip:function(e,t,n,r){if(r.from!==this.uid&&!o.node){var i=k(r,n);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=b;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=h(r,t),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:r.position,target:l.el},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},manuallyHideTip:function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,r.from!==this.uid&&this._hide(k(r,n))},_manuallyAxisShowTip:function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===(e=S([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,e])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},_tryShow:function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=i.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,r=this._tooltipModel,o=[t.offsetX,t.offsetY],a=[],s=[],u=S([t.tooltipOption,r]),c=this._renderMode,h=this._newLine,p={};_(e,(function(e){_(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value,o=[];if(t&&null!=r){var u=g.getValueLabel(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);i.each(e.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),h=a.dataIndexInside,d=l&&l.getDataParams(h);if(d.axisDim=e.axisDim,d.axisIndex=e.axisIndex,d.axisType=e.axisType,d.axisId=e.axisId,d.axisValue=m.getAxisRawValue(t.axis,r),d.axisValueLabel=u,d){s.push(d);var f,g=l.formatTooltip(h,!0,null,c);if(i.isObject(g)){f=g.html;var y=g.markers;i.merge(p,y)}else f=g;o.push(f)}}));var d=u;"html"!==c?a.push(o.join(h)):a.push((d?l.encodeHTML(d)+h:"")+o.join(h))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var d=t.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(u,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(u,a,s,Math.random(),o[0],o[1],d,void 0,p)}))},_showSeriesItemTooltip:function(e,t,n){var r=this._ecModel,o=t.seriesIndex,a=r.getSeriesByIndex(o),s=t.dataModel||a,l=t.dataIndex,u=t.dataType,c=s.getData(u),h=S([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),p=h.get("trigger");if(null==p||"item"===p){var d,f,m=s.getDataParams(l,u),g=s.formatTooltip(l,!1,u,this._renderMode);
77i.isObject(g)?(d=g.html,f=g.markers):(d=g,f=null);var y="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,d,m,y,e.offsetX,e.offsetY,e.position,e.target,f)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var r=t.tooltip;if("string"==typeof r){r={content:r,formatter:r}}var i=new d(r,this._tooltipModel,this._ecModel),o=i.get("content"),a=Math.random();this._showOrMove(i,(function(){this._showTooltipContent(i,o,i.get("formatterParams")||{},a,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,r,i,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent,h=e.get("formatter");a=a||e.get("position");var p=t;if(h&&"string"==typeof h)p=l.formatTpl(h,n,!0);else if("function"==typeof h){var d=v((function(t,r){t===this._ticket&&(c.setContent(r,u,e),this._updatePosition(e,a,i,o,c,n,s))}),this);this._ticket=r,p=h(n,r,d)}c.setContent(p,u,e),c.show(e),this._updatePosition(e,a,i,o,c,n,s)}},_updatePosition:function(e,t,n,r,o,a,s){var l=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=o.getSize(),h=e.get("align"),d=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof t&&(t=t([n,r],a,o.el,f,{viewSize:[l,u],contentSize:c.slice()})),i.isArray(t))n=x(t[0],l),r=x(t[1],u);else if(i.isObject(t)){t.width=c[0],t.height=c[1];var m=p.getLayoutRect(t,{width:l,height:u});n=m.x,r=m.y,h=null,d=null}else if("string"==typeof t&&s){var g=function(e,t,n){var r=n[0],i=n[1],o=0,a=0,s=t.width,l=t.height;switch(e){case"inside":o=t.x+s/2-r/2,a=t.y+l/2-i/2;break;case"top":o=t.x+s/2-r/2,a=t.y-i-5;break;case"bottom":o=t.x+s/2-r/2,a=t.y+l+5;break;case"left":o=t.x-r-5,a=t.y+l/2-i/2;break;case"right":o=t.x+s+5,a=t.y+l/2-i/2}return[o,a]}(t,f,c);n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;null!=o&&(e+l+o>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,o,l,u,h?null:20,d?null:20);n=g[0],r=g[1]}if(h&&(n-=T(h)?c[0]/2:"right"===h?c[0]:0),d&&(r-=T(d)?c[1]/2:"bottom"===d?c[1]:0),e.get("confine")){g=function(e,t,n,r,i){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,o,l,u);n=g[0],r=g[1]}o.moveTo(n,r)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&_(t,(function(t,r){var i=t.dataByAxis||{},o=(e[r]||{}).dataByAxis||[];(n&=i.length===o.length)&&_(i,(function(e,t){var r=o[t]||{},i=e.seriesDataIndices||[],a=r.seriesDataIndices||[];(n&=e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===a.length)&&_(i,(function(e,t){var r=a[t];n&=e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",t))}});function S(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(d.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),t=new d(n,t,t.ecModel))}return t}function k(e,t){return e.dispatchAction||i.bind(t.dispatchAction,t)}function T(e){return"center"===e||"middle"===e}e.exports=w},function(e,t,n){var r=n(1),i=n(39),o=n(38),a=n(164),s=n(22),l=n(17),u=r.each,c=l.toCamelCase,h=["","-webkit-","-moz-","-o-"];function p(e){var t,n,o=[],a=e.get("transitionDuration"),p=e.get("backgroundColor"),d=e.getModel("textStyle"),f=e.get("padding");return a&&o.push((n="left "+(t=a)+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)",r.map(h,(function(e){return e+"transition:"+n})).join(";"))),p&&(s.canvasSupported?o.push("background-Color:"+p):(o.push("background-Color:#"+i.toHex(p)),o.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(t){var n="border-"+t,r=c(n),i=e.get(r);null!=i&&o.push(n+":"+i+("color"===t?"":"px"))})),o.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=e.get("lineHeight");null==i&&(i=Math.round(3*n/2)),n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),u(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(d)),null!=f&&o.push("padding:"+l.normalizeCssArray(f).join("px ")+"px"),o.join(";")+";"}function d(e,t,n,r,i){var o=t&&t.painter;if(n){var s=o&&o.getViewportRoot();s&&a.transformLocalCoord(e,s,document.body,r,i)}else{e[0]=r,e[1]=i;var l=o&&o.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}
77e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function f(e,t,n){if(s.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],d(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(r):e.appendChild(r),this._container=e,this._show=!1,this._hideTimeout;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=i.handler,n=i.painter.getViewportRoot();o.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}f.prototype={constructor:f,_enterable:!0,update:function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),r=t.style;"absolute"!==r.position&&"absolute"!==n.position&&(r.position="relative"),e.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),r=t*this._zr.getHeight();this.moveTo(n,r)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+p(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;d(n,this._zr,this._appendToBody,e,t);var r=this.el.style;r.left=n[0]+"px",r.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}};var m=f;e.exports=m},function(e,t,n){var r=n(1),i=n(59),o=n(12);function a(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function s(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],a(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(e){e.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),r=t*this._zr.getHeight();this.moveTo(n,r)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);for(var r={},a=e,s=a.indexOf("{marker");s>=0;){var l=a.indexOf("|}"),u=a.substr(s+"{marker".length,l-s-"{marker".length);u.indexOf("sub")>-1?r["marker"+u]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[u],textOffset:[3,0]}:r["marker"+u]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[u]},s=(a=a.substr(l+1)).indexOf("{marker")}var c=n.getModel("textStyle"),h=c.get("fontSize"),p=n.get("textLineHeight");null==p&&(p=Math.round(3*h/2)),this.el=new i({style:o.setTextStyle({},c,{rich:r,text:e,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:p}),z:n.get("z")}),this._zr.add(this.el);var d=this;this.el.on("mouseover",(function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0})),this.el.on("mouseout",(function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1}))},setEnterable:function(e){this._enterable=e}
77,getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var n=this._styleCoord;a(n,this._zr,e,t),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var l=s;e.exports=l},function(e,t,n){var r=n(9),i=n(552);n(231),n(554),n(555),n(556),n(557),r.registerPreprocessor(i)},function(e,t,n){var r=n(1),i=["rect","polygon","keep","clear"];e.exports=function(e,t){var n=e&&e.brush;if(r.isArray(n)||(n=n?[n]:[]),n.length){var o=[];r.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))}));var a=e&&e.toolbox;r.isArray(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var s,l,u=a.feature||(a.feature={}),c=u.brush||(u.brush={}),h=c.type||(c.type=[]);h.push.apply(h,o),s=h,l={},r.each(s,(function(e){l[e]=1})),s.length=0,r.each(l,(function(e,t){s.push(t)})),t&&!h.length&&h.push.apply(h,i)}}},function(e,t,n){var r=n(197),i=n(19),o=n(12).linePolygonIntersect;function a(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return s(t[e],i)}},rect:function(r,i,o){if(r){var a=o.range,l=[r[t[e]],r[t[e]]+r[n[e]]];return l[1]<l[0]&&l.reverse(),s(l[0],a)||s(l[1],a)||s(a[0],l)||s(a[1],l)}}}}function s(e,t){return t[0]<=e&&e<=t[1]}var l={lineX:a(0),lineY:a(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&r.contain(n.range,e[0],e[1])},rect:function(e,t,n){var a=n.range;if(!e||a.length<=1)return!1;var s=e.x,l=e.y,u=e.width,c=e.height,h=a[0];return!!(r.contain(a,s,l)||r.contain(a,s+u,l)||r.contain(a,s,l+c)||r.contain(a,s+u,l+c)||i.create(e).contain(h[0],h[1])||o(s,l,s+u,l,a)||o(s,l,s,l+c,a)||o(s+u,l,s+u,l+c,a)||o(s,l+c,s+u,l+c,a))||void 0}}};e.exports=l},function(e,t,n){n(15).__DEV__;var r=n(9),i=n(1),o=n(116),a=n(23),s=["#ddd"];function l(e,t){return i.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new a(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var u=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&o.replaceVisualOption(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:s},r.hasOwnProperty("liftZ")||(r.liftZ=5)},setAreas:function(e){e&&(this.areas=i.map(e,(function(e){return l(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=l(this.option,e),this.brushType=this.brushOption.brushType}});e.exports=u},function(e,t,n){var r=n(9),i=n(1),o=n(140),a=n(231).layoutCovers,s=r.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new o(t.getZr())).on("brush",i.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,l.apply(this,arguments)},updateTransform:function(e,t){return a(t),l.apply(this,arguments)},updateView:l,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:i.clone(e),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:i.clone(e),$from:n})}});function l(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}
77e.exports=s},function(e,t,n){var r=n(9);r.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},function(e,t,n){var r=n(1),i=n(53),o=n(50).toolbox.brush;function a(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}a.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.clone(o.title)};var s=a.prototype;s.render=s.updateView=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",a|=e.areas.length})),this._brushType=i,this._brushMode=o,r.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")}))},s.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return r.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},s.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},i.register("brush",a);var l=a;e.exports=l},function(e,t,n){var r=n(1),i=n(9),o=n(12),a=n(16).getLayoutRect,s=n(17).windowOpen;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,l=e.getModel("textStyle"),u=e.getModel("subtextStyle"),c=e.get("textAlign"),h=r.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),p=new o.Text({style:o.setTextStyle({},l,{text:e.get("text"),textFill:l.getTextColor()},{disableBox:!0}),z2:10}),d=p.getBoundingRect(),f=e.get("subtext"),m=new o.Text({style:o.setTextStyle({},u,{text:f,textFill:u.getTextColor(),y:d.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),y=e.get("sublink"),v=e.get("triggerEvent",!0);p.silent=!g&&!v,m.silent=!y&&!v,g&&p.on("click",(function(){s(g,"_"+e.get("target"))})),y&&m.on("click",(function(){s(y,"_"+e.get("subtarget"))})),p.eventData=m.eventData=v?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(p),f&&i.add(m);
77var _=i.getBoundingRect(),x=e.getBoxLayoutParams();x.width=_.width,x.height=_.height;var b=a(x,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));c||("middle"===(c=e.get("left")||e.get("right"))&&(c="center"),"right"===c?b.x+=b.width:"center"===c&&(b.x+=b.width/2)),h||("center"===(h=e.get("top")||e.get("bottom"))&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),i.attr("position",[b.x,b.y]);var w={textAlign:c,textVerticalAlign:h};p.setStyle(w),m.setStyle(w),_=i.getBoundingRect();var S=b.margin,k=e.getItemStyle(["color","opacity"]);k.fill=e.get("backgroundColor");var T=new o.Rect({shape:{x:_.x-S[3],y:_.y-S[0],width:_.width+S[1]+S[3],height:_.height+S[0]+S[2],r:e.get("borderRadius")},style:k,subPixelOptimize:!0,silent:!0});i.add(T)}}})},function(e,t,n){var r=n(9),i=n(560);n(561),n(562),n(563),n(565),r.registerPreprocessor(i)},function(e,t,n){var r=n(1);function i(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},a=i.normal||(i.normal={}),s={normal:1,emphasis:1};r.each(i,(function(e,t){s[t]||o(a,t)||(a[t]=e)})),n.label&&!o(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function o(e,t){return e.hasOwnProperty(t)}e.exports=function(e){var t=e&&e.timeline;r.isArray(t)||(t=t?[t]:[]),r.each(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(i(e),o(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});o(a,"position")||(a.position=e.controlPosition),"none"!==a.position||o(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}r.each(e.data||[],(function(e){r.isObject(e)&&!r.isArray(e)&&(!o(e,"value")&&o(e,"name")&&(e.value=e.name),i(e))}))}(e)}))}},function(e,t,n){n(24).registerSubTypeDefaulter("timeline",(function(){return"slider"}))},function(e,t,n){var r=n(9),i=n(1);r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),i.defaults({currentIndex:n.option.currentIndex},e)})),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))},function(e,t,n){var r=n(1),i=n(564),o=n(126),a=i.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,o);var s=a;e.exports=s},function(e,t,n){var r=n(1),i=n(24),o=n(34),a=n(14),s=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,i=this._names=[];if("category"===n){var s=[];r.each(t,(function(e,t){var n,o=a.getDataItemValue(e);r.isObject(e)?(n=r.clone(e)).value=t:n=t,s.push(n),r.isString(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")})),t=s}var l={category:"ordinal",time:"time"}[n]||"number";
77(this._data=new o([{name:"value",type:l}],this)).initData(t,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;e.exports=l},function(e,t,n){var r=n(1),i=n(19),o=n(29),a=n(12),s=n(16),l=n(566),u=n(567),c=n(35).createSymbol,h=n(37),p=n(13),d=n(17).encodeHTML,f=r.bind,m=r.each,g=Math.PI,y=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,r){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return d(s.scale.getLabel(e))},m(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,o,s,e)}),this),this._renderAxisLabel(i,a,s,e),this._position(i,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),r=e.get("orient"),i=function(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t);null==n||"auto"===n?n="horizontal"===r?i.y+i.height/2<t.getHeight()/2?"-":"+":i.x+i.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var o,a,l,u,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:g/2},d="vertical"===r?i.height:i.width,f=e.getModel("controlStyle"),m=f.get("show",!0),y=m?f.get("itemSize"):0,v=m?f.get("itemGap"):0,_=y+v,x=e.get("label.rotate")||0;x=x*g/180;var b=f.get("position",!0),w=m&&f.get("showPlayBtn",!0),S=m&&f.get("showPrevBtn",!0),k=m&&f.get("showNextBtn",!0),T=0,M=d;return"left"===b||"bottom"===b?(w&&(o=[0,0],T+=_),S&&(a=[T,0],T+=_),k&&(l=[M-y,0],M-=_)):(w&&(o=[M-y,0],M-=_),S&&(a=[0,0],T+=_),k&&(l=[M-y,0],M-=_)),u=[T,M],e.get("inverse")&&u.reverse(),{viewRect:i,mainLength:d,orient:r,rotation:p[r],labelRotation:x,labelPosOpt:n,labelAlign:e.get("label.align")||c[r],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||h[r],playPosition:o,prevBtnPosition:a,nextBtnPosition:l,axisExtent:u,controlSize:y,controlGap:v}},_position:function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=o.create(),s=i.x,l=i.y+i.height;o.translate(a,a,[-s,-l]),o.rotate(a,a,-g/2),o.translate(a,a,[s,l]),(i=i.clone()).applyTransform(a)}var u=v(i),c=v(n.getBoundingRect()),h=v(r.getBoundingRect()),p=n.position,d=r.position;d[0]=p[0]=u[0][0];var f,m=e.labelPosOpt;isNaN(m)?(_(p,c,u,1,f="+"===m?0:1),_(d,h,u,1,1-f)):(_(p,c,u,1,f=m>=0?0:1),d[1]=p[1]+m);function y(e){var t=e.position;e.origin=[u[0][0]-t[0],u[1][0]-t[1]]}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.attr("position",p),r.attr("position",d),n.rotation=r.rotation=e.rotation,y(n),y(r)},_createAxis:function(e,t){var n=t.getData(),r=t.get("axisType"),i=h.createScaleByModel(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.niceTicks();var a=new u("value",i,e.axisExtent,r);return a.model=t,a},_createGroup:function(e){var t=this["_"+e]=new a.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,i){var o=n.getExtent();i.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:r.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,r){var i=r.getData(),o=n.scale.getTicks();m(o,(function(e){var o=n.dataToCoord(e),s=i.getItemModel(e),l=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),c={position:[o,0],onclick:f(this._changeTimeline,this,e)},h=v(s,l,t,c);a.setHoverStyle(h,u.getItemStyle()),s.get("tooltip")?(h.dataIndex=e,h.dataModel=r):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,r){if(n.getLabelModel().get("show")){var i=r.getData(),o=n.getViewLabels();m(o,(function(r){var o=r.tickValue,s=i.getItemModel(o),l=s.getModel("label"),u=s.getModel("emphasis.label"),c=n.dataToCoord(r.tickValue),h=new a.Text({position:[c,0],rotation:e.labelRotation-e.rotation,onclick:f(this._changeTimeline,this,o),silent:!1});a.setTextStyle(h.style,l,{text:r.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(h),a.setHoverStyle(h,a.setTextStyle({},u))}),this)}},_renderControl:function(e,t,n,r){var o=e.controlSize,s=e.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-o/2,o,o],h=r.getPlayState(),p=r.get("inverse",!0);function d(e,n,h,p){if(e){var d=function(e,t,n,r){var o=r.style,s=a.createIcon(e.get(t),r||{},new i(n[0],n[1],n[2],n[3]));o&&s.setStyle(o);return s}(r,n,c,{position:e,origin:[o/2,0],rotation:p?-s:0,rectHover:!0,style:l,oncl
77ick:h});t.add(d),a.setHoverStyle(d,u)}}d(e.nextBtnPosition,"controlStyle.nextIcon",f(this._changeTimeline,this,p?"-":"+")),d(e.prevBtnPosition,"controlStyle.prevIcon",f(this._changeTimeline,this,p?"+":"-")),d(e.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),f(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=f(s._handlePointerDrag,s),e.ondragend=f(s._handlePointerDragend,s),_(e,o,n,r,!0)},onUpdate:function(e){_(e,o,n,r)}};this._currentPointer=v(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=p.asc(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(f((function(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return a.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=o)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function v(e,t,n,i,o,a){var s=t.get("color");if(o)o.setColor(s),n.add(o),a&&a.onUpdate(o);else{var l=e.get("symbol");(o=c(l,-1,-1,2,2,s)).setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)}var u=t.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),i=r.merge({rectHover:!0,z2:100},i,!0);var h=e.get("symbolSize");(h=h instanceof Array?h.slice():[+h,+h])[0]/=2,h[1]/=2,i.scale=h;var d=e.get("symbolOffset");if(d){var f=i.position=i.position||[0,0];f[0]+=p.parsePercent(d[0],h[0]),f[1]+=p.parsePercent(d[1],h[1])}var m=e.get("symbolRotate");return i.rotation=(m||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function _(e,t,n,r,i){if(!e.dragging){var o=r.getModel("checkpointStyle"),a=n.dataToCoord(r.getData().get(["value"],t));i||!o.get("animation",!0)?e.attr({position:[a,0]}):(e.stopAnimation(!0),e.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}e.exports=y},function(e,t,n){var r=n(104).extend({type:"timeline"});e.exports=r},function(e,t,n){var r=n(1),i=n(51),o=function(e,t,n,r){i.call(this,e,t,n),this.type=r||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},r.inherits(o,i);var a=o;e.exports=a},function(e,t,n){var r=n(9);n(569),n(570),r.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},function(e,t,n){var r=n(147).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=r},function(e,t,n){var r=n(1),i=n(89),o=n(13),a=n(34),s=n(148);function l(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,s=e.getItemModel(i),l=o.parsePercent(s.get("x"),n.getWidth()),u=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),h=e.get(r.dimensions[1],i);a=r.dataToPoint([c,h])}}else a=[l,u];isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),e.setItemLayout(i,a)}))}var u=n(149).extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markPointModel;t&&(l(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,n,o){var u=e.coordinateSystem,c=e.id,h=e.getData(),p=this.markerGroupMap,d=p.get(c)||p.set(c,new i),f=function(e,t,n){var i;i=e?r.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return r.defaults({name:e},n)})):[{name:"value",type:"float"}];var o=new a(i,n),l=r.map(n.get("data"),r.curry(s.dataTransform,t));e&&(l=r.filter(l,r.curry(s.dataFilter,e)));return o.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),o}(u,e,t);t.setData(f),l(t.getData(),e,o),f.each((function(e){var n=f.getItemModel(e),i=n.getShallow("symbol"),o=n.get
77Shallow("symbolSize"),a=n.getShallow("symbolRotate"),s=r.isFunction(i),l=r.isFunction(o),u=r.isFunction(a);if(s||l||u){var c=t.getRawValue(e),p=t.getDataParams(e);s&&(i=i(c,p)),l&&(o=o(c,p)),u&&(a=a(c,p))}f.setItemVisual(e,{symbol:i,symbolSize:o,symbolRotate:a,color:n.get("itemStyle.color")||h.getVisual("color")})})),d.updateData(f),this.group.add(d.group),f.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),d.__keep=!0,d.group.silent=t.get("silent")||e.get("silent")}});e.exports=u},function(e,t,n){var r=n(9);n(572),n(573),r.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},function(e,t,n){var r=n(147).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=r},function(e,t,n){var r=n(1),i=n(34),o=n(13),a=n(148),s=n(137),l=n(149),u=n(41).getStackedDimension,c=function(e,t,n,i){var o=e.getData(),s=i.type;if(!r.isArray(i)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=i.xAxis||null!=i.yAxis)){var l,c;if(null!=i.yAxis||null!=i.xAxis)l=t.getAxis(null!=i.yAxis?"y":"x"),c=r.retrieve(i.yAxis,i.xAxis);else{var h=a.getAxisInfo(i,o,t,e);l=h.valueAxis;var p=u(o,h.valueDataDim);c=a.numCalculate(o,p,s)}var d="x"===l.dim?0:1,f=1-d,m=r.clone(i),g={};m.type=null,m.coord=[],g.coord=[],m.coord[f]=-1/0,g.coord[f]=1/0;var y=n.get("precision");y>=0&&"number"==typeof c&&(c=+c.toFixed(Math.min(y,20))),m.coord[d]=g.coord[d]=c,i=[m,g,{type:s,valueIndex:i.valueIndex,value:c}]}return(i=[a.dataTransform(e,i[0]),a.dataTransform(e,i[1]),r.extend({},i[2])])[2].type=i[2].type||"",r.merge(i[2],i[0]),r.merge(i[2],i[1]),i};function h(e){return!isNaN(e)&&!isFinite(e)}function p(e,t,n,r){var i=1-e,o=r.dimensions[e];return h(t[i])&&h(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function d(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(p(1,n,r,e)||p(0,n,r,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function f(e,t,n,r,i){var a,s=r.coordinateSystem,l=e.getItemModel(t),u=o.parsePercent(l.get("x"),i.getWidth()),c=o.parsePercent(l.get("y"),i.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var p=s.dimensions,d=e.get(p[0],t),f=e.get(p[1],t);a=s.dataToPoint([d,f])}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");p=s.dimensions;h(e.get(p[0],t))?a[0]=m.toGlobalCoord(m.getExtent()[n?0:1]):h(e.get(p[1],t))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(c)||(a[1]=c)}else a=[u,c];e.setItemLayout(t,a)}var m=l.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var r=t.getData(),i=t.__from,o=t.__to;i.each((function(t){f(i,t,!0,e,n),f(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,o){var l=e.coordinateSystem,u=e.id,h=e.getData(),p=this.markerGroupMap,m=p.get(u)||p.set(u,new s);this.group.add(m.group);var g=function(e,t,n){var o;o=e?r.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return r.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new i(o,n),l=new i(o,n),u=new i([],n),h=r.map(n.get("data"),r.curry(c,t,e,n));e&&(h=r.filter(h,r.curry(d,e)));var p=e?a.dimValueGetter:function(e){return e.value};return s.initData(r.map(h,(function(e){return e[0]})),null,p),l.initData(r.map(h,(function(e){return e[1]})),null,p),u.initData(r.map(h,(function(e){return e[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}(l,e,t),y=g.from,v=g.to,_=g.line;t.__from=y,t.__to=v,t.setData(_);var x=t.get("symbol"),b=t.get("symbolSize");function w(t,n,r){var i=t.getItemModel(n);f(t,n,r,e,o),t.setItemVisual(n,{symbolRotate:i.get("symbolRotate"),symbolSize:i.get("symbolSize")||b[r?0:1],symbol:i.get("symbol",!0)||x[r?0:1],color:i.get("itemStyle.color")||h.getVisual("color")})}r.isArray(x)||(x=[x,x]),"number"==typeof b&&(b=[b,b]),g.from.each((function(e){w(y,e,!0),w(v,e,!1)})),_.each((function(e){var t=_.getItemModel(e).get("lineStyle.color");_.setItemVisual(e,{color:t||y.getItemVisual(e,"color")}),_.setItemLayout(e,[y.getItemLayout(e),v.getItemLayout(e)]),_.setItemVisual(e,{fromSymbolRotate:y.getItemVisual(e,"symbolRotate"),fromSymbolSize:y.getItemVisual(e,"symbolSize"),fromSymbol
77:y.getItemVisual(e,"symbol"),toSymbolRotate:v.getItemVisual(e,"symbolRotate"),toSymbolSize:v.getItemVisual(e,"symbolSize"),toSymbol:v.getItemVisual(e,"symbol")})})),m.updateData(_),g.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),m.__keep=!0,m.group.silent=t.get("silent")||e.get("silent")}});e.exports=m},function(e,t,n){var r=n(9);n(575),n(576),r.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},function(e,t,n){var r=n(147).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=r},function(e,t,n){var r=n(1),i=n(39),o=n(34),a=n(13),s=n(12),l=n(148),u=n(149),c=function(e,t,n,i){var o=l.dataTransform(e,i[0]),a=l.dataTransform(e,i[1]),s=r.retrieve,u=o.coord,c=a.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),c[0]=s(c[0],1/0),c[1]=s(c[1],1/0);var h=r.mergeAll([{},o,a]);return h.coord=[o.coord,a.coord],h.x0=o.x,h.y0=o.y,h.x1=a.x,h.y1=a.y,h};function h(e){return!isNaN(e)&&!isFinite(e)}function p(e,t,n,r){var i=1-e;return h(t[i])&&h(n[i])}function d(e,t){var n=t.coord[0],r=t.coord[1];return!("cartesian2d"!==e.type||!n||!r||!p(1,n,r)&&!p(0,n,r))||(l.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:r,x:t.x1,y:t.y1}))}function f(e,t,n,r,i){var o,s=r.coordinateSystem,l=e.getItemModel(t),u=a.parsePercent(l.get(n[0]),i.getWidth()),c=a.parsePercent(l.get(n[1]),i.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(n,t));else{var p=[m=e.get(n[0],t),g=e.get(n[1],t)];s.clampData&&s.clampData(p,p),o=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var d=s.getAxis("x"),f=s.getAxis("y"),m=e.get(n[0],t),g=e.get(n[1],t);h(m)?o[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):h(g)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];return o}var m=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];u.extend({type:"markArea",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var i=t.getData();i.each((function(t){var o=r.map(m,(function(r){return f(i,t,r,e,n)}));i.setItemLayout(t,o),i.getItemGraphicEl(t).setShape("points",o)}))}}),this)},renderSeries:function(e,t,n,a){var l=e.coordinateSystem,u=e.id,p=e.getData(),g=this.markerGroupMap,y=g.get(u)||g.set(u,{group:new s.Group});this.group.add(y.group),y.__keep=!0;var v=function(e,t,n){var i,a;e?(i=r.map(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return r.defaults({name:e},i)})),a=new o(r.map(["x0","y0","x1","y1"],(function(e,t){return{name:e,type:i[t%2].type}})),n)):a=new o(i=[{name:"value",type:"float"}],n);var s=r.map(n.get("data"),r.curry(c,t,e,n));e&&(s=r.filter(s,r.curry(d,e)));var l=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return a.initData(s,null,l),a.hasItemOption=!0,a}(l,e,t);t.setData(v),v.each((function(t){var n=r.map(m,(function(n){return f(v,t,n,e,a)})),i=!0;r.each(m,(function(e){if(i){var n=v.get(e[0],t),r=v.get(e[1],t);(h(n)||l.getAxis("x").containData(n))&&(h(r)||l.getAxis("y").containData(r))&&(i=!1)}})),v.setItemLayout(t,{points:n,allClipped:i}),v.setItemVisual(t,{color:p.getVisual("color")})})),v.diff(y.__data).add((function(e){var t=v.getItemLayout(e);if(!t.allClipped){var n=new s.Polygon({shape:{points:t.points}});v.setItemGraphicEl(e,n),y.group.add(n)}})).update((function(e,n){var r=y.__data.getItemGraphicEl(n),i=v.getItemLayout(e);i.allClipped?r&&y.group.remove(r):(r?s.updateProps(r,{shape:{points:i.points}},t,e):r=new s.Polygon({shape:{points:i.points}}),v.setItemGraphicEl(e,r),y.group.add(r))})).remove((function(e){var t=y.__data.getItemGraphicEl(e);y.group.remove(t)})).execute(),v.eachItemGraphicEl((function(e,n){var o=v.getItemModel(n),a=o.getModel("label"),l=o.getModel("emphasis.label"),u=v.getItemVisual(n,"color");e.useStyle(r.defaults(o.getModel("itemStyle").getItemStyle(),{fill:i.modifyAlpha(u,.4),stroke:u})),e.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,a,l,{labelFetcher:t,labelDataIndex:n,defaultText:v.getName(n)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(e,{}),e.dataModel=t})),y.__data=v,y.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,n){n(232),n(580),n(581),n(582)},function(e,t,n){var r=n(9),i=n(1);function o(e,t,n){var r,o={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var s=n.getData();i.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&r:o[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}r.registerAction("legendToggleSelect","legendselectchanged",i.curry(o,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",i.curry(o,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",i.curry(o,"inverseSelect")),r.registerAction("legendSelect","legendselected",i.curry(o,"select")),r.registerAction("legendUnSelect","legendunselected",i.curry(o,"unSelect"))},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}},function(e,t,n){var r=n(233),i=n(16),o=i.mergeLayoutParam,a=i.getLayoutParams,s=r.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,n,r){var i=a(e);s.superCall(this,"init",e,t,n,r),l(this,e,i)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),l(this,this.option,e)}});function l(e,t,n){var r=[1,1];r[e.getOrient().index]=0,o(t,n,{type:"box",ignoreSize:r})}var u=s;e.exports=u},function(e,t,n){var r=n(1),i=n(12),o=n(16),a=n(234),s=i.Group,l=["width","height"],u=["x","y"],c=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,o,a,s,l){var u=this;c.superCall(this,"renderInner",e,t,n,o,a,s,l);var h=this._controllerGroup,p=t.get("pageIconSize",!0);r.isArray(p)||(p=[p,p]),f("pagePrev",0);var d=t.getModel("pageTextStyle");function f(e,n){var a=e+"DataIndex",s=i.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:r.bind(u._pageGo,u,a,t,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});s.name=e,h.add(s)}h.add(new i.Text({name:"pageText",style:{textFill:d.getTextColor(),font:d.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,t,n,i,a,s){var c=this.getSelectorGroup(),h=e.getOrient().index,p=l[h],d=u[h],f=l[1-h],m=u[1-h];a&&o.box("horizontal",c,e.get("selectorItemGap",!0));
77var g=e.get("selectorButtonGap",!0),y=c.getBoundingRect(),v=[-y.x,-y.y],_=r.clone(n);a&&(_[p]=n[p]-y[p]-g);var x=this._layoutContentAndController(e,i,_,h,p,f,m);if(a){if("end"===s)v[h]+=x[p]+g;else{var b=y[p]+g;v[h]-=b,x[d]-=b}x[p]+=y[p]+g,v[1-h]+=x[m]+x[f]/2-y[f]/2,x[f]=Math.max(x[f],y[f]),x[m]=Math.min(x[m],y[m]+v[1-h]),c.attr("position",v)}return x},_layoutContentAndController:function(e,t,n,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;o.box(e.get("orient"),c,e.get("itemGap"),a?n.width:null,a?null:n.height),o.box("horizontal",p,e.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),f=p.getBoundingRect(),m=this._showController=d[s]>n[s],g=[-d.x,-d.y];t||(g[a]=c.position[a]);var y=[0,0],v=[-f.x,-f.y],_=r.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));m&&("end"===e.get("pageButtonPosition",!0)?v[a]+=n[s]-f[s]:y[a]+=f[s]+_);v[1-a]+=d[l]/2-f[l]/2,c.attr("position",g),h.attr("position",y),p.attr("position",v);var x={x:0,y:0};if(x[s]=m?n[s]:d[s],x[l]=Math.max(d[l],f[l]),x[u]=Math.min(0,f[u]+v[1-a]),h.__rectSize=n[s],m){var b={x:0,y:0};b[s]=Math.max(n[s]-f[s]-_,0),b[l]=x[l],h.setClipPath(new i.Rect({shape:b})),h.__rectSize=b[s]}else p.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&i.updateProps(c,{position:w.contentPosition},!!m&&e),this._updatePageInfoView(e,w),x},_pageGo:function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;r.each(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var i=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;i&&o&&i.setStyle("text",r.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=l[i],a=u[i],s=this._findTargetItemIndex(t),c=n.children(),h=c[s],p=c.length,d=p?1:0,f={contentPosition:n.position.slice(),pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var m=x(h);f.contentPosition[i]=-m.s;for(var g=s+1,y=m,v=m,_=null;g<=p;++g)(!(_=x(c[g]))&&v.e>y.s+r||_&&!b(_,y.s))&&(y=v.i>y.i?v:_)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=y.i),++f.pageCount),v=_;for(g=s-1,y=m,v=m,_=null;g>=-1;--g)(_=x(c[g]))&&b(v,_.s)||!(y.i<v.i)||(v=y,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=_;return f;function x(e){if(e){var t=e.getBoundingRect(),n=t[a]+e.position[i];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},_findTargetItemIndex:function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n}}),h=c;e.exports=h},function(e,t,n){n(9).registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))},function(e,t,n){n(235),n(236)},function(e,t,n){var r=n(76).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});e.exports=r},function(e,t,n){var r=n(1),i=n(38),o=n(12),a=n(49),s=n(77),l=n(13),u=n(16),c=n(75),h=o.Rect,p=l.linearMap,d=l.asc,f=r.bind,m=r.each,g=["line","bar","candlestick","scatter"],y=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,r){y.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){y.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){y.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new o.Group;
77this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o="horizontal"===this._orient?{right:i.width-n.x-n.width,top:i.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=u.getLayoutParams(e.option);r.each(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=u.getLayoutRect(a,i,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr("horizontal"!==n||i?"horizontal"===n&&i?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==n||i?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([o]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=a){var s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,c=[0,t[1]],h=[0,t[0]],d=[[t[0],0],[0,0]],f=[],m=h[1]/(i.count()-1),g=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)g+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:p(e,s,c,!0);n&&!u&&t?(d.push([d[d.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&u&&(d.push([g,0]),f.push([g,0])),d.push([g,r]),f.push([g,r]),g+=m,u=n}}));var v=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:d},style:r.defaults({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:f},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(o,a){var s=e.getAxisProxy(o.name,a).getTargetSeriesModels();r.each(s,(function(e){if(!(n||!0!==t&&r.indexOf(g,e.get("type"))<0)){var s,l=i.getComponent(o.axis,a).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[o.name],c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(s=c.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),n={thisAxis:l,series:e,thisDim:o.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],r=this._displayables.barGroup,i=this._size,a=this.dataZoomModel;r.add(e.filler=new h({draggable:!0,cursor:v(this._orient),drift:f(this._onDragMove,this,"all"),ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),r.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),m([0,1],(function(e){var i=o.createIcon(a.get("handleIcon"),{cursor:v(this._orient),draggable:!0,drift:f(this._onDragMove,this,e),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=i.getBoundingRect();this._handleHeight=l.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,i.setStyle(a.getModel("handleStyle").getItemStyle());var u=a.get("handleColor");null!=u&&(i.style.fill=u),r.add(t[e]=i);var c=a.textStyleModel;this.group.add(n[e]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:c.getTextColor(),textFont:c.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[p(e[0],[0,100],t,!0),p(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];c(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?p(o.minSpan,a,i,!0):null,null!=o.maxSpan?p(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=d([p(r[0],i,a,!0),p(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,r=d(n.slice()),i=this._size;m([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scale:[o/2,o/2],position:[n[e],i[1]/2-o/2]})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=e?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=d(this._handleEnds.slice());function p(e){var t=o.getTransform(n.handles[e].parent,this.group),s=o.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+5,u=o.applyTransform([h[e]+(0===e?-l:l),this._size[1]/2],t);r[e].setStyle({x:u[0],y:u[1],textVerticalAlign:"horizontal"===i?"middle":s,textAlign:"horizontal"===i?s:"center",text:a[e]})}p.call(this,0),p.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return r.isFunction(i)?i(e,a):r.isString(i)?i.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,r){this._dragging=!0,i.stop(r.event);
77var a=this._displayables.barGroup.getLocalTransform(),s=o.applyTransform([t,n],a,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(m(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}})),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function v(e){return"vertical"===e?"ns-resize":"ew-resize"}var _=y;e.exports=_},function(e,t,n){var r=n(76).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=r},function(e,t,n){var r=n(1),i=n(77),o=n(75),a=n(588),s=r.bind,l=i.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,i){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),r.each(this.getTargetCoordInfo(),(function(t,i){var o=r.map(t,(function(e){return a.generateCoordId(e.model)}
77));r.each(t,(function(t){var l=t.model,c={};r.each(["pan","zoom","scrollMove"],(function(e){c[e]=s(u[e],this,t,i)}),this),a.register(n,{coordId:a.generateCoordId(l),allCoordIds:o,containsPoint:function(e,t,n){return l.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:c})}),this)}),this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(e,t,n,r){var i=this._range,a=i.slice(),s=e.axisModels[0];if(s){var l=h[t](null,[r.originX,r.originY],s,n,e),u=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-u)*c+u,a[1]=(a[1]-u)*c+u;var p=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,p.minSpan,p.maxSpan),this._range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:c((function(e,t,n,r,i,o){var a=h[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:c((function(e,t,n,r,i,o){return h[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n).signal*(e[1]-e[0])*o.scrollDelta}))};function c(e){return function(t,n,r,i){var a=this._range,s=a.slice(),l=t.axisModels[0];if(l){var u=e(s,l,t,n,r,i);return o(u,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var h={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},p=l;e.exports=p},function(e,t,n){var r=n(1),i=n(95),o=n(49),a="\0_ec_dataZoom_roams";function s(e){var t=e.getZr();return t[a]||(t[a]={})}function l(e){r.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function u(e,t){e.dispatchAction({type:"dataZoom",batch:t})}t.register=function(e,t){var n=s(e),a=t.dataZoomId,c=t.coordId;r.each(n,(function(e,n){var i=e.dataZoomInfos;i[a]&&r.indexOf(t.allCoordIds,c)<0&&(delete i[a],e.count--)})),l(n);var h=n[c];h||((h=n[c]={coordId:c,dataZoomInfos:{},count:0}).controller=function(e,t){var n=new i(e.getZr());return r.each(["pan","zoom","scrollMove"],(function(e){n.on(e,(function(n){var i=[];r.each(t.dataZoomInfos,(function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[e],a=o&&o(t.controller,n);!r.dataZoomModel.get("disabled",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}})),i.length&&t.dispatchAction(i)}))})),n}(e,h),h.dispatchAction=r.curry(u,e)),!h.dataZoomInfos[a]&&h.count++,h.dataZoomInfos[a]=t;var p,d,f,m,g=(p=h.dataZoomInfos,f={type_true:2,type_move:1,type_false:0,type_undefined:-1},m=!0,r.each(p,(function(e){var t=e.dataZoomModel,n=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");f["type_"+n]>f["type_"+d]&&(d=n),m&=t.get("preventDefaultMouseMove",!0)})),{controlType:d,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!m}});h.controller.enable(g.controlType,g.opt),h.controller.setPointerChecker(t.containsPoint),o.createOrUpdate(h,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")},t.unregister=function(e,t){var n=s(e);r.each(n,(function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)})),l(n)},t.generateCoordId=function(e){return e.type+"\0_"+e.id}},function(e,t,n){n(237),n(246)},function(e,t,n){var r=n(1),i=n(241),o=n(13),a=[20,140],s=i.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=a[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):r.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){i.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,u=t.length;a<u&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(c=1;a<u;
77a++)(!n.length||n[n.length-1]<t[a])&&(c&&(r.length&&i(r[r.length-1].value,"outOfRange"),c=0),i(t[a],"outOfRange"));var h=r.length;return{stops:r,outerColors:[h?r[0].color:"transparent",h?r[h-1].color:"transparent"]}}});function l(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var u=s;e.exports=u},function(e,t,n){var r=n(1),i=n(124),o=n(38),a=n(243),s=n(12),l=n(13),u=n(75),c=n(244),h=n(14),p=l.linearMap,d=r.each,f=Math.min,m=Math.max,g=a.extend({type:"visualMap.continuous",init:function(){g.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,l=this._shapes.barGroup,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],l),c=this._applyTransform(0===n?"bottom":"top",l),h=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===h?"middle":c,textAlign:"horizontal"===h?c:"center",text:r,textFont:p.getFont(),textFill:p.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,o=this._orient,a=this._useHandle,s=c.getItemAlign(t,this.api,i),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=y()),l.add(n.inRange=y(null,a?_(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0)));var u=t.textStyleModel.getTextRect("国"),h=m(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,i,h,o,s),this._createHandle(l,1,i,h,o,s)),this._createIndicator(l,i,h,o),e.add(l)},_createHandle:function(e,t,n,i,a){var l=r.bind(this._dragHandle,this,t,!1),u=r.bind(this._dragHandle,this,t,!0),c=y(function(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}(t,i),_(this._orient),l,u);c.position[0]=n[0],e.add(c);var h=this.visualMapModel.textStyleModel,p=new s.Text({draggable:!0,drift:l,onmousemove:function(e){o.stop(e.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(p);var d=["horizontal"===a?i/2:1.5*i,"horizontal"===a?0===t?-1.5*i:1.5*i:0===t?-i/2:i/2],f=this._shapes;f.handleThumbs[t]=c,f.handleLabelPoints[t]=d,f.handleLabels[t]=p},_createIndicator:function(e,t,n,r){var i=y([[0,0]],"move");i.position[0]=t[0],i.attr({invisible:!0,silent:!0}),e.add(i);var o=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var l=["horizontal"===r?n/2:9,0],u=this._shapes;u.indicator=i,u.indicatorLabel=a,u.indicatorLabelPoint=l},_dragHandle:function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.barGroup,!0);this._updateInterval(e,i[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():v(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[p(t[0],n,r,!0),p(t[1],n,r,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];u(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[p(r[0],i,o,!0),p(r[1],i,o,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,o),s=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],l=this._createBarPoints(n,s);return{barColor:new i(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}
77:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels;d([0,1],(function(a){var l=i[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var u=s.applyTransform(n.handleLabelPoints[a],s.getTransform(l,this.group));o[a].setStyle({x:u[0],y:u[1],text:r.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,l=[0,a[1]],u=p(e,o,l,!0),c=this._shapes,h=c.indicator;if(h){h.position[1]=u,h.attr("invisible",!1),h.setShape("points",function(e,t,n,r){return e?[[0,-f(t,m(n,0))],[6,0],[0,f(t,m(r-n,0))]]:[[0,0],[5,-5],[5,5]]}(!!n,r,u,a[1]));var d=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0});h.setStyle("fill",d);var g=s.applyTransform(c.indicatorLabelPoint,s.getTransform(h,this.group)),y=c.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",c.barGroup),_=this._orient;y.setStyle({text:(n||"")+i.formatValueText(t),textVerticalAlign:"horizontal"===_?v:"middle",textAlign:"horizontal"===_?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);r[1]=f(m(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=f(m(i[0],e),i[1]);var a=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=p(i,t,n,!0)/2);return r}(n,o,i),s=[e-a,e+a],l=p(e,i,o,!0),u=[p(s[0],i,o,!0),p(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var d=this._hoverLinkDataIndices,g=[];(t||v(n))&&(g=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var y=h.compressBatches(d,g);this._dispatchHighDown("downplay",c.makeHighDownBatch(y[0],n)),this._dispatchHighDown("highlight",c.makeHighDownBatch(y[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var r=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(r)){var i=r.getData(t.dataType),o=i.get(n.getDataDimension(i),t.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,i){var o=s.getTransform(t,i?null:this.group);return s[r.isArray(e)?"applyTransform":"transformDirection"](e,o,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(e,t,n,r){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){o.stop(e.event)},ondragend:r})}function v(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function _(e){return"vertical"===e?"ns-resize":"ew-resize"}var x=g;e.exports=x},function(e,t,n){n(15).__DEV__;var r=n(1),i=n(241),o=n(65),a=n(242),s=n(13).reformIntervals,l=i.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,
77splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();u[this._mode].call(this),this._resetSelected(e,t);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=r.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,(function(e){e=r.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},n=o.listVisualTypes(),s=this.isCategory();function l(e,t,n){return e&&e[t]&&(r.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}r.each(e.pieces,(function(e){r.each(n,(function(n){e.hasOwnProperty(n)&&(t[n]=1)}))})),r.each(t,(function(t,n){var i=0;r.each(this.stateList,(function(t){i|=l(e,t,n)||l(e.target,t,n)}),this),!i&&r.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=a.get(n,"inRange"===t?"active":"inactive",s)}))}),this),i.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,i=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,r.each(i,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;r.each(i,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(a?o[n]=!1:a=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=r.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){o.findPieceIndex(t,this._pieceList)===e&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],n=[],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}}}),u={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var l=0,u=i[0];l<o;u+=a,l++){var c=l===o-1?i[1]:u+a;t.push({interval:[u,c],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),s(t),r.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;r.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),c(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;r.each(e.pieces,(function(e,n){r.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],c=[-1/0,1/0],h=[],p=0;p<2;p++){for(var d=[["gte","gt","min"],["lte","lt","max"]][p],f=0;f<3&&null==s[p];f++)s[p]=e[d[f]],l[p]=u[f],h[p]=2===f;
77null==s[p]&&(s[p]=c[p])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=o.retrieveVisuals(e),t.push(i)}),this),c(e,t),s(t),r.each(t,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function c(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var h=l;e.exports=h},function(e,t,n){var r=n(1),i=n(243),o=n(12),a=n(35).createSymbol,s=n(16),l=n(244),u=i.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),l=i.getTextColor(),u=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),p=h.endsText,d=r.retrieve(t.get("showLabel",!0),!p);p&&this._renderEndsText(e,p[0],c,d,u),r.each(h.viewPieceList,(function(i){var s=i.piece,h=new o.Group;h.onclick=r.bind(this._onItemClick,this,s),this._enableHoverLink(h,i.indexInModelPieceList);var p=t.getRepresentValue(s);if(this._createItemSymbol(h,p,[0,0,c[0],c[1]]),d){var f=this.visualMapModel.getValueState(p);h.add(new o.Text({style:{x:"right"===u?-n:c[0]+n,y:c[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:u,textFont:a,textFill:l,opacity:"outOfRange"===f?.5:1}}))}e.add(h)}),this),p&&this._renderEndsText(e,p[1],c,d,u),s.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:l.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return l.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,r,i){if(t){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:r?i:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=r.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(a(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,i=r.clone(n.selected),o=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[o]=!0,r.each(i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});e.exports=u},function(e,t,n){n(595),(0,n(98).registerPainter)("vml",n(596))},function(e,t,n){var r=n(22),i=n(18).applyTransform,o=n(19),a=n(39),s=n(32),l=n(102),u=n(171),c=n(83),h=n(68),p=n(59),d=n(20),f=n(70),m=n(103),g=n(247),y=f.CMD,v=Math.round,_=Math.sqrt,x=Math.abs,b=Math.cos,w=Math.sin,S=Math.max;if(!r.canvasSupported){var k=21600,T=k/2,M=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=k+","+k,e.coordorigin="0,0"},E=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},C=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},I=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},A=function(e,t,n){return 1e5*(parseFloat(e)||0)+1e3*(parseFloat(t)||0)+n},P=l.parsePercent,D=function(e,t,n){var r=a.parse(t);n=+n,isNaN(n)&&(n=1),r&&(e.color=E(r[0],r[1],r[2]),e.opacity=n*r[3])},L=function(e,t,n,r){var o="fill"===t,s=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(o||!o&&n.lineWidth)?(e[o?"filled":"stroked"]="true",n[t]instanceof m&&I(e,s),s||(s=g.createNode(t)),o?function(e,t,n){var r,o,s=t.fill;if(null!=s)if(s instanceof m){var l,u=0,c=[0,0],h=0,p=1,d=n.getBoundingRect(),f=d.width,g=d.height;if("linear"===s.type){l="gradient";var y=n.transform,v=[s.x*f,s.y*g],_=[s.x2*f,s.y2*g];y&&(i(v,v,y),i(_,_,y));var x=_[0]-v[0],b=_[1]-v[1];(u=180*Math.atan2(x,b)/Math.PI)<0&&(u+=360),u<1e-6&&(u=0)}else{l="gradientradial";v=[s.x*f,s.y*g],y=n.transform;var w=n.scale,T=f,M=g;c=[(v[0]-d.x)/T,(v[1]-d.y)/M],y&&i(v,v,y),T/=w[0]*k,M/=w[1]*k;var C=S(T,M);h=0/C,p=2*s.r/C-h}var I=s.colorStops.slice();I.sort((function(e,t){return e.offset-t.offset}));
77for(var A=I.length,P=[],L=[],O=0;O<A;O++){var R=I[O],z=(r=R.color,o=void 0,o=a.parse(r),[E(o[0],o[1],o[2]),o[3]]);L.push(R.offset*p+h+" "+z[0]),0!==O&&O!==A-1||P.push(z)}if(A>=2){var N=P[0][0],B=P[1][0],F=P[0][1]*t.opacity,V=P[1][1]*t.opacity;e.type=l,e.method="none",e.focus="100%",e.angle=u,e.color=N,e.color2=B,e.colors=L.join(","),e.opacity=V,e.opacity2=F}"radial"===l&&(e.focusposition=c.join(","))}else D(e,s,t.opacity)}(s,n,r):function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof m||D(e,t.stroke,t.opacity)}(s,n),C(e,s)):(e[o?"filled":"stroked"]="false",I(e,s))},O=[[],[],[]];d.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=g.createNode("shape"),M(n),this._vmlEl=n),L(n,"fill",t,this),L(n,"stroke",t,this);var r=this.transform,o=null!=r,a=n.getElementsByTagName("stroke")[0];if(a){var s=t.lineWidth;if(o&&!t.strokeNoScale){var l=r[0]*r[3]-r[1]*r[2];s*=_(x(l))}a.weight=s+"px"}var u=this.path||(this.path=new f);this.__dirtyPath&&(u.beginPath(),u.subPixelOptimize=!1,this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),n.path=function(e,t){var n,r,o,a,s,l,u=y.M,c=y.C,h=y.L,p=y.A,d=y.Q,f=[],m=e.data,g=e.len();for(a=0;a<g;){switch(r="",n=0,o=m[a++]){case u:r=" m ",n=1,s=m[a++],l=m[a++],O[0][0]=s,O[0][1]=l;break;case h:r=" l ",n=1,s=m[a++],l=m[a++],O[0][0]=s,O[0][1]=l;break;case d:case c:r=" c ",n=3;var x,S,M=m[a++],E=m[a++],C=m[a++],I=m[a++];o===d?(x=C,S=I,C=(C+2*M)/3,I=(I+2*E)/3,M=(s+2*M)/3,E=(l+2*E)/3):(x=m[a++],S=m[a++]),O[0][0]=M,O[0][1]=E,O[1][0]=C,O[1][1]=I,O[2][0]=x,O[2][1]=S,s=x,l=S;break;case p:var A=0,P=0,D=1,L=1,R=0;t&&(A=t[4],P=t[5],D=_(t[0]*t[0]+t[1]*t[1]),L=_(t[2]*t[2]+t[3]*t[3]),R=Math.atan2(-t[1]/L,t[0]/D));var z=m[a++],N=m[a++],B=m[a++],F=m[a++],V=m[a++]+R,j=m[a++]+V+R;a++;var U=m[a++],G=z+b(V)*B,q=N+w(V)*F,H=(M=z+b(j)*B,E=N+w(j)*F,U?" wa ":" at ");Math.abs(G-M)<1e-4&&(Math.abs(j-V)>.01?U&&(G+=.0125):Math.abs(q-N)<1e-4?U&&G<z||!U&&G>z?E-=.0125:E+=.0125:U&&q<N||!U&&q>N?M+=.0125:M-=.0125),f.push(H,v(((z-B)*D+A)*k-T),",",v(((N-F)*L+P)*k-T),",",v(((z+B)*D+A)*k-T),",",v(((N+F)*L+P)*k-T),",",v((G*D+A)*k-T),",",v((q*L+P)*k-T),",",v((M*D+A)*k-T),",",v((E*L+P)*k-T)),s=M,l=E;break;case y.R:var W=O[0],Z=O[1];W[0]=m[a++],W[1]=m[a++],Z[0]=W[0]+m[a++],Z[1]=W[1]+m[a++],t&&(i(W,W,t),i(Z,Z,t)),W[0]=v(W[0]*k-T),Z[0]=v(Z[0]*k-T),W[1]=v(W[1]*k-T),Z[1]=v(Z[1]*k-T),f.push(" m ",W[0],",",W[1]," l ",Z[0],",",W[1]," l ",Z[0],",",Z[1]," l ",W[0],",",Z[1]);break;case y.Z:f.push(" x ")}if(n>0){f.push(r);for(var Y=0;Y<n;Y++){var X=O[Y];t&&i(X,X,t),f.push(v(X[0]*k-T),",",v(X[1]*k-T),Y<n-1?",":"")}}}return f.join("")}(u,this.transform),n.style.zIndex=A(this.zlevel,this.z,this.z2),C(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},d.prototype.onRemove=function(e){I(e,this._vmlEl),this.removeRectText(e)},d.prototype.onAdd=function(e){C(e,this._vmlEl),this.appendRectText(e)};h.prototype.brushVML=function(e){var t,n,r,o=this.style,a=o.image;if("object"==typeof(r=a)&&r.tagName&&"IMG"===r.tagName.toUpperCase()){var s=a.src;if(s===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var l=a.runtimeStyle,u=l.width,c=l.height;l.width="auto",l.height="auto",t=a.width,n=a.height,l.width=u,l.height=c,this._imageSrc=s,this._imageWidth=t,this._imageHeight=n}a=s}else a===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(a){var h=o.x||0,p=o.y||0,d=o.width,f=o.height,m=o.sWidth,y=o.sHeight,x=o.sx||0,b=o.sy||0,w=m&&y,k=this._vmlEl;k||(k=g.doc.createElement("div"),M(k),this._vmlEl=k);var T,E=k.style,I=!1,P=1,D=1;if(this.transform&&(T=this.transform,P=_(T[0]*T[0]+T[1]*T[1]),D=_(T[2]*T[2]+T[3]*T[3]),I=T[1]||T[2]),I){var L=[h,p],O=[h+d,p],R=[h,p+f],z=[h+d,p+f];i(L,L,T),i(O,O,T),i(R,R,T),i(z,z,T);var N=S(L[0],O[0],R[0],z[0]),B=S(L[1],O[1],R[1],z[1]),F=[];F.push("M11=",T[0]/P,",","M12=",T[2]/D,",","M21=",T[1]/P,",","M22=",T[3]/D,",","Dx=",v(h*P+T[4]),",","Dy=",v(p*D+T[5])),E.padding="0 "+v(N)+"px "+v(B)+"px 0",E.filter="progid:DXImageTransform.Microsoft.Matrix("+F.join("")+", SizingMethod=clip)"}else T&&(h=h*P+T[4],p=p*D+T[5]),E.filter="",E.left=v(h)+"px",E.top=v(p)+"px";var V=this._imageEl,j=this._cropEl;
77V||(V=g.doc.createElement("div"),this._imageEl=V);var U=V.style;if(w){if(t&&n)U.width=v(P*t*d/m)+"px",U.height=v(D*n*f/y)+"px";else{var G=new Image,q=this;G.onload=function(){G.onload=null,t=G.width,n=G.height,U.width=v(P*t*d/m)+"px",U.height=v(D*n*f/y)+"px",q._imageWidth=t,q._imageHeight=n,q._imageSrc=a},G.src=a}j||((j=g.doc.createElement("div")).style.overflow="hidden",this._cropEl=j);var H=j.style;H.width=v((d+x*d/m)*P),H.height=v((f+b*f/y)*D),H.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-x*d/m*P+",Dy="+-b*f/y*D+")",j.parentNode||k.appendChild(j),V.parentNode!==j&&j.appendChild(V)}else U.width=v(P*d)+"px",U.height=v(D*f)+"px",k.appendChild(V),j&&j.parentNode&&(k.removeChild(j),this._cropEl=null);var W="",Z=o.opacity;Z<1&&(W+=".Alpha(opacity="+v(100*Z)+") "),W+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+a+", SizingMethod=scale)",U.filter=W,k.style.zIndex=A(this.zlevel,this.z,this.z2),C(e,k),null!=o.text&&this.drawRectText(e,this.getBoundingRect())}},h.prototype.onRemove=function(e){I(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},h.prototype.onAdd=function(e){C(e,this._vmlEl),this.appendRectText(e)};var R,z={},N=0,B=document.createElement("div");s.$override("measureText",(function(e,t){var n=g.doc;R||((R=n.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",g.doc.body.appendChild(R));try{R.style.font=t}catch(e){}return R.innerHTML="",R.appendChild(n.createTextNode(e)),{width:R.offsetWidth}}));for(var F=new o,V=function(e,t,n,r){var o=this.style;this.__dirty&&l.normalizeTextStyle(o,!0);var a=o.text;if(null!=a&&(a+=""),a){if(o.rich){var u=s.parseRichText(a,o);a=[];for(var c=0;c<u.lines.length;c++){for(var h=u.lines[c].tokens,p=[],d=0;d<h.length;d++)p.push(h[d].text);a.push(p.join(""))}a=a.join("\n")}var f,m,y=o.textAlign,_=o.textVerticalAlign,x=function(e){var t=z[e];if(!t){N>100&&(N=0,z={});var n,r=B.style;try{r.font=e,n=r.fontFamily.split(",")[0]}catch(e){}t={style:r.fontStyle||"normal",variant:r.fontVariant||"normal",weight:r.fontWeight||"normal",size:0|parseFloat(r.fontSize||12),family:n||"Microsoft YaHei"},z[e]=t,N++}return t}(o.font),b=x.style+" "+x.variant+" "+x.weight+" "+x.size+'px "'+x.family+'"';n=n||s.getBoundingRect(a,b,y,_,o.textPadding,o.textLineHeight);var w=this.transform;if(w&&!r&&(F.copy(t),F.applyTransform(w),t=F),r)f=t.x,m=t.y;else{var S=o.textPosition;if(S instanceof Array)f=t.x+P(S[0],t.width),m=t.y+P(S[1],t.height),y=y||"left";else{var k=this.calculateTextPosition?this.calculateTextPosition({},o,t):s.calculateTextPosition({},o,t);f=k.x,m=k.y,y=y||k.textAlign,_=_||k.textVerticalAlign}}f=s.adjustTextX(f,n.width,y),m=s.adjustTextY(m,n.height,_),m+=n.height/2;var T,E,I,D=g.createNode,O=this._textVmlEl;O?E=(T=(I=O.firstChild).nextSibling).nextSibling:(O=D("line"),T=D("path"),E=D("textpath"),I=D("skew"),E.style["v-text-align"]="left",M(O),T.textpathok=!0,E.on=!0,O.from="0 0",O.to="1000 0.05",C(O,I),C(O,T),C(O,E),this._textVmlEl=O);var R=[f,m],V=O.style;w&&r?(i(R,R,w),I.on=!0,I.matrix=w[0].toFixed(3)+","+w[2].toFixed(3)+","+w[1].toFixed(3)+","+w[3].toFixed(3)+",0,0",I.offset=(v(R[0])||0)+","+(v(R[1])||0),I.origin="0 0",V.left="0px",V.top="0px"):(I.on=!1,V.left=v(f)+"px",V.top=v(m)+"px"),E.string=String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{E.style.font=b}catch(e){}L(O,"fill",{fill:o.textFill,opacity:o.opacity},this),L(O,"stroke",{stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash||null},this),O.style.zIndex=A(this.zlevel,this.z,this.z2),C(e,O)}},j=function(e){I(e,this._textVmlEl),this._textVmlEl=null},U=function(e){C(e,this._textVmlEl)},G=[u,c,h,d,p],q=0;q<G.length;q++){var H=G[q].prototype;H.drawRectText=V,H.removeRectText=j,H.appendRectText=U}p.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},p.prototype.onRemove=function(e){this.removeRectText(e)},p.prototype.onAdd=function(e){this.appendRectText(e)}}},function(e,t,n){var r=n(82),i=n(247),o=n(1).each;function a(e){return parseInt(e,10)}function s(e,t){i.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),r=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;
77left:0;top:0;",e.appendChild(n),this._vmlRoot=r,this._vmlViewport=n,this.resize();var o=t.delFromStorage,a=t.addToStorage;t.delFromStorage=function(e){o.call(t,e),e&&e.onRemove&&e.onRemove(r)},t.addToStorage=function(e){e.onAdd&&e.onAdd(r),a.call(t,e)},this._firstPaint=!0}s.prototype={constructor:s,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var r=e[n];r.invisible||r.ignore?(r.__alreadyNotVisible||r.onRemove(t),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(t),r.__alreadyNotVisible=!1,r.__dirty&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,t),r.afterBrush&&r.afterBrush())),r.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var n=this._vmlViewport.style;n.width=e+"px",n.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||a(t.width))-a(t.paddingLeft)-a(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||a(t.height))-a(t.paddingTop)-a(t.paddingBottom)|0}},o(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){var t;s.prototype[e]=(t=e,function(){r('In IE8.0 VML mode painter not support method "'+t+'"')})}));var l=s;e.exports=l},function(e,t,n){n(150),(0,n(98).registerPainter)("svg",n(598))},function(e,t,n){var r=n(151).createElement,i=n(1),o=n(82),a=n(20),s=n(68),l=n(59),u=n(599),c=n(600),h=n(601),p=n(602),d=n(150),f=d.path,m=d.image,g=d.text;function y(e){return parseInt(e,10)}function v(e,t){return t&&e&&t.parentNode!==e}function _(e,t,n){if(v(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function x(e,t){if(v(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function b(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function w(e){return e.__textSvgEl}function S(e){return e.__svgEl}var k=function(e,t,n,o){this.root=e,this.storage=t,this._opts=n=i.extend({},n||{});var a=r("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=r("g");a.appendChild(s);var l=r("g");a.appendChild(l),this.gradientManager=new c(o,l),this.clipPathManager=new h(o,l),this.shadowManager=new p(o,l);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=l,this._backgroundRoot=s,this._viewport=u,e.appendChild(u),u.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=r("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,n,r=this._svgRoot,i=this._visibleList,o=e.length,c=[];for(t=0;t<o;
77t++){var h=e[t],p=(n=h)instanceof a?f:n instanceof s?m:n instanceof l?g:f,d=S(h)||w(h);h.invisible||(h.__dirty&&(p&&p.brush(h),this.clipPathManager.update(h),h.style&&(this.gradientManager.update(h.style.fill),this.gradientManager.update(h.style.stroke),this.shadowManager.update(d,h)),h.__dirty=!1),c.push(h))}var y,v=u(i,c);for(t=0;t<v.length;t++){if((M=v[t]).removed)for(var k=0;k<M.count;k++){d=S(h=i[M.indices[k]]);var T=w(h);b(r,d),b(r,T)}}for(t=0;t<v.length;t++){var M;if((M=v[t]).added)for(k=0;k<M.count;k++){d=S(h=c[M.indices[k]]),T=w(h);y?_(r,d,y):x(r,d),d?_(r,T,d):y?_(r,T,y):x(r,T),_(r,T,d),y=T||d||y,this.gradientManager.addWithoutUpdate(d||T,h),this.shadowManager.addWithoutUpdate(d||T,h),this.clipPathManager.markUsed(h)}else if(!M.removed)for(k=0;k<M.count;k++){d=S(h=c[M.indices[k]]),T=w(h),d=S(h),T=w(h);this.gradientManager.markUsed(h),this.gradientManager.addWithoutUpdate(d||T,h),this.shadowManager.markUsed(h),this.shadowManager.addWithoutUpdate(d||T,h),this.clipPathManager.markUsed(h),T&&_(r,T,d),y=d||T||y}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=c},_getDefs:function(e){var t,n=this._svgDom;return 0===(t=n.getElementsByTagName("defs")).length?e?((t=n.insertBefore(r("defs"),n.firstChild)).contains||(t.contains=function(e){var n=t.children;if(!n)return!1;for(var r=n.length-1;r>=0;--r)if(n[r]===e)return!0;return!1}),t):null:t[0]},resize:function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var o=this._svgDom;o.setAttribute("width",e),o.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||y(s[n])||y(a.style[n]))-(y(s[i])||0)-(y(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"))}},i.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){var t;k.prototype[e]=(t=e,function(){o('In SVG mode painter not support method "'+t+'"')})}));var T=k;e.exports=T},function(e,t){function n(){}function r(e,t,n,r){for(var i=0,o=t.length,a=0,s=0;i<o;i++){var l=t[i];if(l.removed){for(u=[],c=s;c<s+l.count;c++)u.push(c);l.indices=u,s+=l.count}else{for(var u=[],c=a;c<a+l.count;c++)u.push(c);l.indices=u,a+=l.count,l.added||(s+=l.count)}}return t}n.prototype={diff:function(e,t,n){n||(n=function(e,t){return e===t}),this.equals=n;var i=this;e=e.slice();var o=(t=t.slice()).length,a=e.length,s=1,l=o+a,u=[{newPos:-1,components:[]}],c=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=o&&c+1>=a){for(var h=[],p=0;p<t.length;p++)h.push(p);return[{indices:h,count:t.length}]}function d(){for(var n=-1*s;n<=s;n+=2){var l,c=u[n-1],h=u[n+1],p=(h?h.newPos:0)-n;c&&(u[n-1]=void 0);var d=c&&c.newPos+1<o,f=h&&0<=p&&p<a;if(d||f){if(!d||f&&c.newPos<h.newPos?(l={newPos:(m=h).newPos,components:m.components.slice(0)},i.pushComponent(l.components,void 0,!0)):((l=c).newPos++,i.pushComponent(l.components,!0,void 0)),p=i.extractCommon(l,t,e,n),l.newPos+1>=o&&p+1>=a)return r(i,l.components,t,e);u[n]=l}else u[n]=void 0}var m;s++}for(;s<=l;){var f=d();if(f)return f}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;a+1<i&&s+1<o&&this.equals(t[a+1],n[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var i=new n;e.exports=function(e,t,n){return i.diff(e,t,n)}},function(e,t,n){var r=n(152),i=n(1),o=n(82),a=n(39);function s(e,t){r.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}i.inherits(s,r),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;i.each(["fill","stroke"],(function(r){if(t.style[r]&&("linear"===t.style[r].type||"radial"===t.style[r].type)){var i,o=t.style[r],a=n.getDefs(!0);o._dom?(i=o._dom,a.contains(o._dom)||n.addDom(i)):i=n.add(o),n.markUsed(t);var s=i.getAttribute("id");e.setAttribute(r,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return o("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;r.prototype.update.call(this,e,(function(){var n=e.type,r=e._dom.tagName;"linear"===n&&"linearGradient"===r||"radial"===n&&"radialGradient"===r?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void o("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,r=0,i=n.length;r<i;++r){var s=this.createElement("stop");s.setAttribute("offset",100*n[r].offset+"%");var l=n[r].color;if(l.indexOf("rgba")>-1){var u=a.parse(l)[3],c=a.toHex(l);s.setAttribute("stop-color","#"+c),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",n[r].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&r.prototype.markUsed.call(this,t._dom),(t=e.style.stroke)&&t._dom&&r.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},function(e,t,n){var r=n(152),i=n(1),o=n(29);function a(e,t){r.call(this,e,t,"clipPath","__clippath_in_use__")}i.inherits(a,r),a.prototype.update=function(e){var t=this.getSvg
77Element(e);t&&this.updateDom(t,e.__clipPaths,!1);var n=this.getTextSvgElement(e);n&&this.updateDom(n,e.__clipPaths,!0),this.markUsed(e)},a.prototype.updateDom=function(e,t,n){if(t&&t.length>0){var r,i,a=this.getDefs(!0),s=t[0],l=n?"_textDom":"_dom";s[l]?(i=s[l].getAttribute("id"),r=s[l],a.contains(r)||a.appendChild(r)):(i="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",i),a.appendChild(r),s[l]=r);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var c=Array.prototype.slice.call(s.transform);o.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);r.innerHTML="",r.appendChild(h.cloneNode()),e.setAttribute("clip-path","url(#"+i+")"),t.length>1&&this.updateDom(r,t.slice(1),n)}else e&&e.setAttribute("clip-path","none")},a.prototype.markUsed=function(e){var t=this;e.__clipPaths&&i.each(e.__clipPaths,(function(e){e._dom&&r.prototype.markUsed.call(t,e._dom),e._textDom&&r.prototype.markUsed.call(t,e._textDom)}))};var s=a;e.exports=s},function(e,t,n){var r=n(152);function i(e,t){r.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function o(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}n(1).inherits(i,r),i.prototype.addWithoutUpdate=function(e,t){if(t&&o(t.style)){var n;if(t._shadowDom)n=t._shadowDom,this.getDefs(!0).contains(t._shadowDom)||this.addDom(n);else n=this.add(t);this.markUsed(t);var r=n.getAttribute("id");
77e.style.filter="url(#"+r+")"}},i.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},i.prototype.update=function(e,t){if(o(t.style)){var n=this;r.prototype.update.call(this,t,(function(){n.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},i.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},i.prototype.updateDom=function(e,t){var n=t.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var r,i,o,a,s=e.style,l=e.scale&&e.scale[0]||1,u=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)r=s.shadowOffsetX||0,i=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);r=s.textShadowOffsetX||0,i=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",r/l),n.setAttribute("dy",i/u),n.setAttribute("flood-color",a);var c=o/2/l+" "+o/2/u;n.setAttribute("stdDeviation",c),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(o/2*200)+"%"),t.setAttribute("height",Math.ceil(o/2*200)+"%"),t.appendChild(n),e._shadowDom=t},i.prototype.markUsed=function(e){e._shadowDom&&r.prototype.markUsed.call(this,e._shadowDom)};var a=i;e.exports=a},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var l=o[s];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";n.r(t);var r=n(45),i=n.n(r),o=n(30),a=n.n(o),s=n(0),l=n.n(s),u=n(54),c=n.n(u),h=n(4),p=n.n(h);function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var f=n(2),m=n.n(f),g=l.a.createContext(null),y=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}d(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||g;return l.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(s.Component);y.propTypes={store:m.a.shape({subscribe:m.a.func.isRequired,dispatch:m.a.func.isRequired,getState:m.a.func.isRequired}),context:m.a.object,children:m.a.any};var v=y;function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var b=n(66),w=n.n(b),S=n(21),k=n.n(S),T=n(78);function M(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,o=n.methodName,a=void 0===o?"connectAdvanced":o,u=n.renderCountProp,c=void 0===u?void 0:u,h=n.shouldHandleStateChanges,p=void 0===h||h,f=n.storeKey,m=void 0===f?"store":f,y=n.withRef,v=void 0!==y&&y,b=n.forwardRef,S=void 0!==b&&b,M=n.context,E=void 0===M?g:M,C=x(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);k()(void 0===c,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),k()(!v,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var I="To use a custom Redux store for specific components,  create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like:  <Provider context={MyContext}><ConnectedComponent context={MyContext} />
vendor: 4,890 bytes, line 77
77</Provider>. You may also pass a {context : MyContext} option to connect";k()("store"===m,"storeKey has been removed and does not do anything. "+I);var A=E;return function(t){var n=t.displayName||t.name||"Component",r=i(n),o=_({},C,{getDisplayName:i,methodName:a,renderCountProp:c,shouldHandleStateChanges:p,storeKey:m,displayName:r,wrappedComponentName:n,WrappedComponent:t}),u=C.pure,h=s.Component;u&&(h=s.PureComponent);var f=function(n){function i(t){var r,i,o,a,s,c,h,p,d,f,g;return r=n.call(this,t)||this,k()(S?!t.wrapperProps[m]:!t[m],"Passing redux store in props has been removed and does not do anything. "+I),r.selectDerivedProps=function(t,n,r,l){if(u&&i===n&&o===t)return a;r===s&&c===l||(s=r,c=l,h=e(r.dispatch,l)),i=n,o=t;var p=h(t,n);return a=p},r.selectChildElement=function(e,t,n){return t===p&&n===d&&g===e||(p=t,d=n,g=e,f=l.a.createElement(e,_({},t,{ref:n}))),f},r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r}d(i,n);var a=i.prototype;return a.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},a.renderWrappedComponent=function(e){k()(e,'Could not find "store" in the context of "'+r+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+r+" in connect options.");var n,i=e.storeState,a=e.store,s=this.props;S&&(s=this.props.wrapperProps,n=this.props.forwardedRef);var l=this.selectDerivedProps(i,s,a,o);return this.selectChildElement(t,l,n)},a.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(T.isContextConsumer)(l.a.createElement(this.props.context.Consumer,null))?this.props.context:A;return l.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},i}(h);if(f.WrappedComponent=t,f.displayName=r,S){var g=l.a.forwardRef((function(e,t){return l.a.createElement(f,{wrapperProps:e,forwardedRef:t})}));return g.displayName=r,g.WrappedComponent=t,w()(g,t)}return w()(f,t)}}var E=Object.prototype.hasOwnProperty;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function I(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!E.call(t,n[i])||!C(e[n[i]],t[n[i]]))return!1;return!0}function A(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var P="function"==typeof Symbol&&Symbol.observable||"@@observable",D=function(){return Math.random().toString(36).substring(7).split("").join(".")},L={INIT:"@@redux/INIT"+D(),REPLACE:"@@redux/REPLACE"+D(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+D()}};function O(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function R(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(A(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(A(1));return n(R)(e,t)}if("function"!=typeof e)throw new Error(A(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(A(3));return o}function h(e){if("function"!=typeof e)throw new Error(A(4));if(l)throw new Error(A(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(A(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function p(e){if(!O(e))throw new Error(A(7));if(void 0===e.type)throw new Error(A(8));if(l)throw new Error(A(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function d(e){if("function"!=typeof e)throw new Error(A(10));i=e,p({type:L.REPLACE})}function f(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(A(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[P]=function(){return this},e}return p({type:L.INIT}),(r={dispatch:p,subscribe:h,getState:c,replaceReducer:d})[P]=f,r}function z(e,t){return function(){return t(e.apply(this,arguments))}}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function B(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function F(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function V(e,t){return function(t,n){n.displayName;
vendor: 5,499 bytes, line 77
77var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=F(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=F(i),i=r(t,n)),i},r}}var j=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:B((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?B((function(t){return function(e,t){if("function"==typeof e)return z(e,t);if("object"!=typeof e||null===e)throw new Error(A(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=z(i,t))}return n}(e,t)})):void 0}];var U=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:B((function(){return{}}))}];function G(e,t,n){return _({},n,e,t)}var q=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return G}}];function H(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function W(e,t,n,r,i){var o,a,s,l,u,c=i.areStatesEqual,h=i.areOwnPropsEqual,p=i.areStatePropsEqual,d=!1;function f(i,d){var f,m,g=!h(d,a),y=!c(i,o);return o=i,a=d,g&&y?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):y?(f=e(o,a),m=!p(f,s),s=f,m&&(u=n(s,l,a)),u):u}return function(i,c){return d?f(i,c):(s=e(o=i,a=c),l=t(r,a),u=n(s,l,a),d=!0,u)}}function Z(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=x(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?W:H)(a,s,l,e,o)}function Y(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}var K,$,J,Q,ee,te,ne,re,ie,oe,ae,se,le=(J=($=void 0===K?{}:K).connectHOC,Q=void 0===J?M:J,ee=$.mapStateToPropsFactories,te=void 0===ee?U:ee,ne=$.mapDispatchToPropsFactories,re=void 0===ne?j:ne,ie=$.mergePropsFactories,oe=void 0===ie?q:ie,ae=$.selectorFactory,se=void 0===ae?Z:ae,function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.pure,a=void 0===o||o,s=i.areStatesEqual,l=void 0===s?X:s,u=i.areOwnPropsEqual,c=void 0===u?I:u,h=i.areStatePropsEqual,p=void 0===h?I:h,d=i.areMergedPropsEqual,f=void 0===d?I:d,m=x(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=Y(e,te,"mapStateToProps"),y=Y(t,re,"mapDispatchToProps"),v=Y(n,oe,"mergeProps");return Q(se,_({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:v,pure:a,areStatesEqual:l,areOwnPropsEqual:c,areStatePropsEqual:p,areMergedPropsEqual:f},m))}),ue=n(257),ce=n.n(ue);function he(e){return"/"===e.charAt(0)}function pe(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&he(e),o=t&&he(t),a=i||o;if(e&&he(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var l=r[r.length-1];s="."===l||".."===l||""===l}else s=!1;for(var u=0,c=r.length;c>=0;c--){var h=r[c];"."===h?pe(r,c):".."===h?(pe(r,c),u++):u&&(pe(r,c),u--)}if(!a)for(;u--;u)r.unshift("..");!a||""===r[0]||r[0]&&he(r[0])||r.unshift("");var p=r.join("/");return s&&"/"!==p.substr(-1)&&(p+="/"),p},fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var me=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var r=void 0===t?"undefined":fe(t);if(r!==(void 0===n?"undefined":fe(n)))return!1;if("object"===r){var i=t.valueOf(),o=n.valueOf();if(i!==t||o!==n)return e(i,o);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every((function(r){return e(t[r],n[r])}))}return!1};var ge=function(e,t){if(!e)throw new Error("Invariant failed")};function ye(e){return"/"===e.charAt(0)?e:"/"+e}function ve(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function _e(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function xe(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function be(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=_({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invali
77d percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=de(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function we(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&me(e.state,t.state)}function Se(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ke=!("undefined"==typeof window||!window.document||!window.document.createElement);function Te(e,t){t(window.confirm(e))}function Me(){try{return window.history.state||{}}catch(e){return{}}}function Ee(e){void 0===e&&(e={}),ke||ge(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,u=void 0===l?Te:l,c=o.keyLength,h=void 0===c?6:c,p=e.basename?_e(ye(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return p&&(o=ve(o,p)),be(o,r,n)}function f(){return Math.random().toString(36).substr(2,h)}var m=Se();function g(e){_(I,e),I.length=n.length,m.notifyListeners(I.location,I.action)}function y(e){(function(e){void 0===e.state&&navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function v(){b(d(Me()))}var x=!1;function b(e){if(x)x=!1,g();else{m.confirmTransitionTo(e,"POP",u,(function(t){t?g({action:"POP",location:e}):function(e){var t=I.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(x=!0,T(i))}(e)}))}}var w=d(Me()),S=[w.key];function k(e){return p+xe(e)}function T(e){n.go(e)}var M=0;function E(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",y),i&&window.addEventListener("hashchange",v)):0===M&&(window.removeEventListener("popstate",y),i&&window.removeEventListener("hashchange",v))}var C=!1;var I={length:n.length,action:"POP",location:w,createHref:k,push:function(e,t){var i=be(e,t,f(),I.location);m.confirmTransitionTo(i,"PUSH",u,(function(e){if(e){var t=k(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),s)window.location.href=t;else{var l=S.indexOf(I.location.key),u=S.slice(0,-1===l?0:l+1);u.push(i.key),S=u,g({action:"PUSH",location:i})}else window.location.href=t}}))},replace:function(e,t){var i=be(e,t,f(),I.location);m.confirmTransitionTo(i,"REPLACE",u,(function(e){if(e){var t=k(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),s)window.location.replace(t);else{var l=S.indexOf(I.location.key);-1!==l&&(S[l]=i.key),g({action:"REPLACE",location:i})}else window.location.replace(t)}}))},go:T,goBack:function(){T(-1)},goForward:function(){T(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),t()}},listen:function(e){var t=m.appendListener(e);return E(1),function(){E(-1),t()}}};return I}var Ce=n(33),Ie=n.n(Ce),Ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Le=function(e){function t(){var n,r;Pe(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=De(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props.history.location.pathname)},De(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:Ae({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;k()(null==n||1===l.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){e.setState({match:e.computeMatch(r.location.pathname)})}))},t.prototype.componentWillReceiveProps=function(e){Ie()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?l.a.Children.only(e):null},t}(l.a.Component);
vendor: 7,656 bytes, line 77
77Le.propTypes={history:m.a.object.isRequired,children:m.a.node},Le.contextTypes={router:m.a.object},Le.childContextTypes={router:m.a.object.isRequired};var Oe=Le;function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ne=function(e){function t(){var n,r;Re(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ze(this,e.call.apply(e,[this].concat(o))),r.history=Ee(r.props),ze(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){ce()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return l.a.createElement(Oe,{history:this.history,children:this.props.children})},t}(l.a.Component);Ne.propTypes={basename:m.a.string,forceRefresh:m.a.bool,getUserConfirmation:m.a.func,keyLength:m.a.number,children:m.a.node};var Be=Ne,Fe=n(117),Ve=n.n(Fe),je={},Ue=0,Ge=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=je[n]||(je[n]={});if(r[e])return r[e];var i=[],o={re:Ve()(e,i,t),keys:i};return Ue<1e4&&(r[e]=o,Ue++),o},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,o=r.exact,a=void 0!==o&&o,s=r.strict,l=void 0!==s&&s,u=r.sensitive,c=void 0!==u&&u;if(null==i)return n;var h=Ge(i,{end:a,strict:l,sensitive:c}),p=h.re,d=h.keys,f=p.exec(e);if(!f)return null;var m=f[0],g=f.slice(1),y=e===m;return a&&!y?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:y,params:d.reduce((function(e,t,n){return e[t.name]=g[n],e}),{})}};function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ze=function(e){function t(){return He(this,t),We(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){k()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){Ie()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),Ie()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return l.a.Children.forEach(t,(function(t){if(null==r&&l.a.isValidElement(t)){var o=t.props,a=o.path,s=o.exact,u=o.strict,c=o.sensitive,h=o.from,p=a||h;i=t,r=qe(n.pathname,{path:p,exact:s,strict:u,sensitive:c},e.match)}})),r?l.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(l.a.Component);Ze.contextTypes={router:m.a.shape({route:m.a.object.isRequired}).isRequired},Ze.propTypes={children:m.a.node,location:m.a.object};var Ye=Ze,Xe=n(3),Ke=n(26),$e=n.n(Ke),Je=n(6),Qe=n.n(Je),et=n(7),tt=n.n(et),nt=n(8),rt=n.n(nt),it=n(11),ot=n.n(it),at=n(5),st=n.n(at),lt=n(10),ut=n.n(lt),ct=n(248),ht=n.n(ct),pt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var mt=function(e){return 0===l.a.Children.count(e)},gt=function(e){function t(){var n,r;dt(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ft(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props,r.context.router)},ft(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildContext=function(){return{router:pt({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,i=e.path,o=e.strict,a=e.exact,s=e.sensitive;if(n)return n;k()(t,"You should not use <Route> or withRouter() outside a <Router>");var l=t.route,u=(r||l.location).pathname;return qe(u,{path:i,strict:o,exact:a,sensitive:s},l.match)},t.prototype.componentWillMount=function(){Ie()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),Ie()(!(this.props.component&&this.props.children&&!mt(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),Ie()(!(this.props.render&&this.props.children&&!mt(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){Ie()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),Ie()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,o=this.context.router,a=o.history,s=o.route,u=o.staticContext,c={match:e,location:this.props.location||s.location,history:a,staticContext:u};return r?e?l.a.createElement(r,c):null:i?e?i(c):null:"function"==typeof n?n(c):n&&!mt(n)?l.a.Children.only(n):null},t}(l.a.Component);gt.propTypes={computedMatch:m.a.object,path:m.a.string,exact:m.a.bool,strict:m.a.bool,sensitive:m.a.bool,component:m.a.func,render:m.a.func,children:m.a.oneOfType([m.a.func,m.a.node]),location:m.a.object},gt.contextTypes={router:m.a.shape({history:m.a.object.isRequired,route:m.a.object.isRequired,staticContext:m.a.object})},gt.childContextTypes={router:m.a.object.isRequired};var yt=gt,vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};
77var _t=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return l.a.createElement(yt,{children:function(t){return l.a.createElement(e,vt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:m.a.func},ht()(t,e)};function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bt(bt({},t),{},{localization:e.localization,user:e.user})},St={activity:function(e,t){return{store:wt(e,{activity:e.activities[t.match.params.id],modals:e.modals})}},analytics:function(e){return{store:wt(e)}},challenges:function(e){return{store:wt(e,{challenges:e.challenges})}},challenge:function(e,t){return{store:wt(e,{challenge:e.challenges[t.match.params.id]})}},follow:function(e){return{store:wt(e)}},header:function(e){return{store:wt(e,{modals:e.modals})}},home:function(e){return{store:wt(e)}},map:function(e){return{store:wt(e)}},profile:function(e,t){return{store:wt(e,{profile:e.profiles[t.match.params.id]})}},search:function(e){return{store:wt(e)}},userLogin:function(e){return{store:wt(e,{modals:e.modals})}},userSignup:function(e){return{store:wt(e,{modals:e.modals})}},userSettings:function(e){return{store:wt(e)}},inAppModal:function(e){return{store:wt(e)}},weather:function(e){return{store:wt(e)}},link:function(e){return{store:wt(e)}}},kt=n(28),Tt=n.n(kt),Mt=!!window.location.origin.match(/localhost/),Et=function(){return rt()((function e(){tt()(this,e),Qe()(this,"events",{FIRST_TIME_LOGIN:"Registro: usuario ingresa por primera vez",LOGIN_SUCCESS_NO_SIGN_UP:"Registro: usuario hace login exitosamente",WELCOME_MENU_FACEBOOK_BUTTON_TAPPED:"Registro-Menú: usuario aprieta Ingresar con Facebook",WELCOME_MENU_GOOGLE_BUTTON_TAPPED:"Registro-Menú: usuario aprieta Ingresar con Google",WELCOME_MENU_SIGN_UP_BUTTON_TAPPED:"Registro-Menú: usuario aprieta Registrar",WELCOME_MENU_LOG_IN_BUTTON_TAPPED:"Registro-Menú: usuario aprieta Ingresar",CREATE_ACCOUNT_DONE_BUTTON_TAPPED:"Registro-RegistrarConEmail: usuario aprieta crear cuenta",LOG_IN_DONE_BUTTON_TAPPED:"Registro-Ingresar: usuario aprieta ingresar",SEARCHER_SEARCH_RESULTS_SHOWN:"Buscador: aplicación despliega resultados de búsqueda",SEARCHER_SEARCH_RESULT_TAPPED:"Buscador: usuario aprieta ver resultado",PROFILE_VIEW_DID_LOAD:"Perfil: usuario ingresa al perfil",ACTIVITY_VIEW_DID_LOAD:"Actividad: usuario ingresa al detalle de la actividad",ACTIVITY_META_DATA_DID_LOAD:"Actividad: llegan los datos de la actividad",BANNERS_ACTIVITY_BANNER_TAPPED:"Banners-Actividad: usuario aprieta banner",CHALLENGE_JOIN_BUTTON_TAPPED:"Desafío: usuario aprieta inscribir",CHALLENGE_VIEW_DID_LOAD:"Desafío: usuario ingresa al detalle del desafío",PRODUCTS_ACTIVITY_PRODUCT_URL_TAPPED:"Productos-Actividad: usuario aprieta ver sitio web de producto",LOGOUT:"Sesión: usuario hace logout",INAPP_DID_LOAD:"Promoción: aplicación despliega banner web",INAPP_BUTTON_TAPPED:"Promoción: usuario aprieta ver URL desde banner web"}),Qe()(this,"searchResultTypes",{Activity:"activity",Person:"user",ContentView:"contentview"})}),[{key:"log",value:function(e){if(Mt){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).log.apply(t,[e].concat(r))}}},{key:"error",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console).error.apply(t,[e].concat(r))}},{key:"init",value:function(e,t){try{this.log("Init",e,t),this.mixpanelEnabled=!!e,this.mixpanelEnabled&&e&&Tt.a.init(e,{api_host:"https://mxp.suda.io"}),this.onAfterReset()}catch(e){this.error(e)}}},{key:"initCurrentUser",value:function(e){}},{key:"track",value:function(e,t){if(this.mixpanelEnabled)try{this.log("Event:",e,t),Tt.a.track(e,t)}catch(e){this.error(e)}}},{key:"pageview",value:function(e){try{this.log("Pageview:",e)}catch(e){this.error(e)}}},{key:"signup",value:function(e){try{this.log("Sign up:",e.id,e.authMethod,e.authProvider),this.mixpanelEnabled&&(Tt.a.alias(e.id),Tt.a.track(this.events.FIRST_TIME_LOGIN,{login_type:e.authProvider}),Tt.a.people.set_once({$name:e.name,$email:e.email,user_object_id:e.id,user_gender:e.gender,user_is_public:e.isPublic,user_is_ambassador:!1,user_total_distance:e.totalDistance,user_total_spots:e.totalSpots})),this.onAuthenticated(e)}catch(e){this.error(e)}}},{key:"login",value:function(e){try{this.log("Log in:",e.id,e.authMethod,e.authProvider),Tt.a.identify(e.id),Tt.a.track(this.events.LOGIN_SUCCESS_NO_SIGN_UP,{login_type:e.authProvider}),this.onAuthenticated(e)}catch(e){this.error(e)}}},{key:"logout",value:function(){try{this.log("Logout"),Tt.a.track(this.events.LOGOUT),Tt.a.reset(),this.onAfterReset()}catch(e){this.error(e)}}},{key:"onAuthenticated",value:function(e){this.mixpanelEnabled&&(Tt.a.people.set_once({first_web_login:(new Date).toISOString()}),Tt.a.register({$name:e.name,$email:e.email,user_gender:e.gender,user_is_public:e.isPublic,user_object_id:e.id,user_total_distance:e.totalDistance,user_total_spots:e.totalSpots}))}},{key:"onAfterReset",value:function(){this.mixpanelEnabled&&(Tt.a.has_opted_in_tracking()||Tt.a.opt_in_tracking({track_event_name:"Opt-in web tracking",track_properties:{forced_tracking:!0}}),Tt.a.has_opted_out_tracking()&&this.log("DNT is enabled. Tracking is disabled :)"),Tt.a.register({
77web_session:!0}))}}])}();function Ct(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var It=function(e){function t(){var e;return tt()(this,t),(e=Ct(this,t)).analytics=new Et,e.analytics.init(window.SERVER_DATA.mixpanelToken,window.SERVER_DATA.gaTrackingId),e}return ut()(t,e),rt()(t,[{key:"getChildContext",value:function(){return{analytics:this.analytics}}},{key:"componentDidMount",value:function(){var e=this;this.analytics.initCurrentUser(this.props.store.user),this.analytics.pageview(this.props.location.pathname),this.unlisten=this.props.history.listen((function(t){e.analytics.pageview(t.pathname)}))}},{key:"componentDidUpdate",value:function(e){var t=this.props.store.user;e.store.user.id!==t.id&&(t.id?t.isNew?this.analytics.signup(t):this.analytics.login(t):this.analytics.logout())}},{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){return l.a.createElement(l.a.Fragment,null,this.props.children)}}])}(l.a.Component),At=m.a.shape({init:m.a.func.isRequired,track:m.a.func.isRequired,pageview:m.a.func.isRequired,signup:m.a.func.isRequired,login:m.a.func.isRequired,logout:m.a.func.isRequired});function Pt(e){var t=function(t){function n(e,t){var r;if(tt()(this,n),r=Ct(this,n,[e,t]),!t||!t.analytics)throw new Error("Could not find analytics object in context.");return r}return ut()(n,t),rt()(n,[{key:"render",value:function(){return l.a.createElement(e,$e()({},this.props,{analytics:this.context.analytics}))}}])}(l.a.Component);return Qe()(t,"displayName","InjectAnalytics(".concat(e.displayName||e.name||"Component",")")),Qe()(t,"contextTypes",{analytics:At}),w()(t,e)}It.childContextTypes={analytics:At};var Dt=_t(le(St.analytics)(It)),Lt=n(79),Ot=n.n(Lt),Rt=n(249),zt=n.n(Rt),Nt=n(56),Bt=n.n(Nt),Ft=n(80),Vt=n.n(Ft);function jt(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}var Ut=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=jt(r),a=o&&t[o];return a||(a=new((n=e).bind.apply(n,[void 0].concat(r))),o&&(t[o]=a)),a}},Gt={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e];t.forEach((function(e){e&&e.locale&&(Bt.a.__addLocaleData(e),Vt.a.__addLocaleData(e))}))}function Ht(e){var t=e&&e.toLowerCase();return!(!Bt.a.__localeData__[t]||!Vt.a.__localeData__[t])}var Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt=(function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(e){o("throw",e)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}
77(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),Yt=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Xt=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Jt=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Qt=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},en=m.a.bool,tn=m.a.number,nn=m.a.string,rn=m.a.func,on=m.a.object,an=m.a.oneOf,sn=m.a.shape,ln=m.a.any,un=m.a.oneOfType,cn=an(["best fit","lookup"]),hn=an(["narrow","short","long"]),pn=an(["numeric","2-digit"]),dn=rn.isRequired,fn={locale:nn,timeZone:nn,formats:on,messages:on,textComponent:ln,defaultLocale:nn,defaultFormats:on,onError:rn},mn={formatDate:dn,formatTime:dn,formatRelative:dn,formatNumber:dn,formatPlural:dn,formatMessage:dn,formatHTMLMessage:dn},gn=sn(Kt({},fn,mn,{formatters:on,now:dn})),yn=(nn.isRequired,un([nn,on]),{localeMatcher:cn,formatMatcher:an(["basic","best fit"]),timeZone:nn,hour12:en,weekday:hn,era:hn,year:pn,month:an(["numeric","2-digit","narrow","short","long"]),day:pn,hour:pn,minute:pn,second:pn,timeZoneName:an(["short","long"])}),vn={localeMatcher:cn,style:an(["decimal","currency","percent"]),currency:nn,currencyDisplay:an(["symbol","code","name"]),useGrouping:en,minimumIntegerDigits:tn,minimumFractionDigits:tn,maximumFractionDigits:tn,minimumSignificantDigits:tn,maximumSignificantDigits:tn},_n={style:an(["best fit","numeric"]),units:an(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])},xn={style:an(["cardinal","ordinal"])},bn=Object.keys(fn),wn={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Sn=/[&><"']/g;function kn(e){return(""+e).replace(Sn,(function(e){return wn[e]}))}function Tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t}),{})}function Mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;k()(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function En(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":Wt(e))||null===e||"object"!==(void 0===t?"undefined":Wt(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<n.length;o++)if(!i(n[o])||e[n[o]]!==t[n[o]])return!1;return!0}function Cn(e,t,n){var r=e.props,i=e.state,o=e.context,a=void 0===o?{}:o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,u=void 0===l?{}:l,c=s.intl,h=void 0===c?{}:c;return!En(t,r)||!En(n,i)||!(h===u||En(Tn(h,bn),Tn(u,bn)))}function In(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function An(e){0}function Pn(e){return e.displayName||e.name||"Component"}function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,i=t.withRef,o=void 0!==i&&i,a=function(t){function n(e,t){Zt(this,n);var r=Jt(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return Mn(t),r}return $t(n,t),Yt(n,[{key:"getWrappedInstance",value:function(){return k()(o,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return l.a.createElement(e,Kt({}
77,this.props,Xt({},r,this.context.intl),{ref:o?function(e){return t._wrappedInstance=e}:null}))}}]),n}(s.Component);return a.displayName="InjectIntl("+Pn(e)+")",a.contextTypes={intl:gn},a.WrappedComponent=e,w()(a,e)}function Ln(e){return Bt.a.prototype._resolveLocale(e)}function On(e){return Bt.a.prototype._findPluralRuleFunction(e)}var Rn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zt(this,e);var r="ordinal"===n.style,i=On(Ln(t));this.format=function(e){return i(e,r)}},zn=Object.keys(yn),Nn=Object.keys(vn),Bn=Object.keys(_n),Fn=Object.keys(xn),Vn={second:60,minute:60,hour:24,day:30,month:12};function jn(e){var t=Vt.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function Un(e,t,n,r){var i=e&&e[t]&&e[t][n];if(i)return i;r(In("No "+t+" format named: "+n))}function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=n.id,c=n.defaultMessage;k()(u,"[React Intl] An `id` must be provided to format a message.");var h=a&&a[u],p=Object.keys(r).length>0;if(!p)return h||c||u;var d=void 0,f=e.onError||An;if(h)try{var m=t.getMessageFormat(h,i,o);d=m.format(r)}catch(e){f(In('Error formatting message: "'+u+'" for locale: "'+i+'"'+(c?", using default message as fallback.":""),e))}else(!c||i&&i.toLowerCase()!==s.toLowerCase())&&f(In('Missing message: "'+u+'" for locale: "'+i+'"'+(c?", using default message as fallback.":"")));if(!d&&c)try{var g=t.getMessageFormat(c,s,l);d=g.format(r)}catch(e){f(In('Error formatting the default message for: "'+u+'"',e))}return d||f(In('Cannot format message: "'+u+'", using message '+(h||c?"source":"id")+" as fallback.")),d||h||c||u}var qn=Object.freeze({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||An,u=new Date(n),c=Kt({},a&&{timeZone:a},s&&Un(o,"date",s,l)),h=Tn(r,zn,c);try{return t.getDateTimeFormat(i,h).format(u)}catch(e){l(In("Error formatting date.",e))}return String(u)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||An,u=new Date(n),c=Kt({},a&&{timeZone:a},s&&Un(o,"time",s,l)),h=Tn(r,zn,c);h.hour||h.minute||h.second||(h=Kt({},h,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(i,h).format(u)}catch(e){l(In("Error formatting time.",e))}return String(u)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||An,l=new Date(n),u=new Date(r.now),c=a&&Un(o,"relative",a,s),h=Tn(r,Bn,c),p=Kt({},Vt.a.thresholds);jn(Vn);try{return t.getRelativeFormat(i,h).format(l,{now:isFinite(u)?u:t.now()})}catch(e){s(In("Error formatting relative time.",e))}finally{jn(p)}return String(l)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||An,l=a&&Un(o,"number",a,s),u=Tn(r,Nn,l);try{return t.getNumberFormat(i,u).format(n)}catch(e){s(In("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=Tn(r,Fn),a=e.onError||An;try{return t.getPluralFormat(i,o).format(n)}catch(e){a(In("Error formatting plural.",e))}return"other"},formatMessage:Gn,formatHTMLMessage:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?kn(n):n,e}),{});return Gn(e,t,n,i)}}),Hn=Object.keys(fn),Wn=Object.keys(mn),Zn={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:An},Yn=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));k()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` pol
77yfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):i?i.now():Date.now();var a=i||{},s=a.formatters,l=void 0===s?{getDateTimeFormat:Ut(Intl.DateTimeFormat),getNumberFormat:Ut(Intl.NumberFormat),getMessageFormat:Ut(Bt.a),getRelativeFormat:Ut(Vt.a),getPluralFormat:Ut(Rn)}:s;return r.state=Kt({},l,{now:function(){return r._didDisplay?Date.now():o}}),r}return $t(t,e),Yt(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=Tn(this.props,Hn,e);for(var n in Zn)void 0===t[n]&&(t[n]=Zn[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(Ht(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,i=r.locale,o=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(In('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),t=Kt({},t,{locale:o,formats:a,messages:Zn.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Wn.reduce((function(n,r){return n[r]=qn[r].bind(null,e,t),n}),{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:Kt({},e,t,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return s.Children.only(this.props.children)}}]),t}(s.Component);Yn.displayName="IntlProvider",Yn.contextTypes={intl:gn},Yn.childContextTypes={intl:gn.isRequired};var Xn=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatDate,n=e.textComponent,r=this.props,i=r.value,o=r.children,a=t(i,this.props);return"function"==typeof o?o(a):l.a.createElement(n,null,a)}}]),t}(s.Component);Xn.displayName="FormattedDate",Xn.contextTypes={intl:gn};var Kn=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatTime,n=e.textComponent,r=this.props,i=r.value,o=r.children,a=t(i,this.props);return"function"==typeof o?o(a):l.a.createElement(n,null,a)}}]),t}(s.Component);Kn.displayName="FormattedTime",Kn.contextTypes={intl:gn};var $n=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));Mn(n);var i=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return r.state={now:i},r}return $t(t,e),Yt(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this;clearTimeout(this._timer);var r=e.value,i=e.units,o=e.updateInterval,a=new Date(r).getTime();if(o&&isFinite(a)){var s=a-t.now,l=function(e){switch(e){case"second":return 1e3;case"minute":return 6e4;case"hour":return 36e5;case"day":return 864e5;default:return 2147483647}}(i||function(e){var t=Math.abs(e);return t<6e4?"second":t<36e5?"minute":t<864e5?"hour":"day"}(s)),u=Math.abs(s%l),c=s<0?Math.max(o,l-u):Math.max(o,u);this._timer=setTimeout((function(){n.setState({now:n.context.intl.now()})}),c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){(function(e,t){if(e===t)return!0;var n=new Date(e).getTime(),r=new Date(t).getTime();return isFinite(n)&&isFinite(r)&&n===r})(e.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}}
77,{key:"render",value:function(){var e=this.context.intl,t=e.formatRelative,n=e.textComponent,r=this.props,i=r.value,o=r.children,a=t(i,Kt({},this.props,this.state));return"function"==typeof o?o(a):l.a.createElement(n,null,a)}}]),t}(s.Component);$n.displayName="FormattedRelative",$n.contextTypes={intl:gn},$n.defaultProps={updateInterval:1e4};var Jn=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatNumber,n=e.textComponent,r=this.props,i=r.value,o=r.children,a=t(i,this.props);return"function"==typeof o?o(a):l.a.createElement(n,null,a)}}]),t}(s.Component);Jn.displayName="FormattedNumber",Jn.contextTypes={intl:gn};var Qn=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Cn.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatPlural,n=e.textComponent,r=this.props,i=r.value,o=r.other,a=r.children,s=t(i,this.props),u=this.props[s]||o;return"function"==typeof a?a(u):l.a.createElement(n,null,u)}}]),t}(s.Component);Qn.displayName="FormattedPlural",Qn.contextTypes={intl:gn},Qn.defaultProps={style:"cardinal"};var er=function(e,t){return Gn({},{getMessageFormat:Ut(Bt.a)},e,t)},tr=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.defaultMessage||Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!En(n,t))return!0;for(var r=Kt({},e,{values:t}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Cn.apply(void 0,[this,r].concat(o))}},{key:"render",value:function(){var e,t=this.context.intl||{},n=t.formatMessage,r=void 0===n?er:n,i=t.textComponent,o=void 0===i?"span":i,a=this.props,l=a.id,u=a.description,c=a.defaultMessage,h=a.values,p=a.tagName,d=void 0===p?o:p,f=a.children,m=void 0,g=void 0,y=void 0;if(h&&Object.keys(h).length>0){var v=Math.floor(1099511627776*Math.random()).toString(16),_=(e=0,function(){return"ELEMENT-"+v+"-"+(e+=1)});m="@__"+v+"__@",g={},y={},Object.keys(h).forEach((function(e){var t=h[e];if(Object(s.isValidElement)(t)){var n=_();g[e]=m+n+m,y[n]=t}else g[e]=t}))}var x=r({id:l,description:u,defaultMessage:c},g||h),b=void 0;return b=y&&Object.keys(y).length>0?x.split(m).filter((function(e){return!!e})).map((function(e){return y[e]||e})):[x],"function"==typeof f?f.apply(void 0,Qt(b)):s.createElement.apply(void 0,[d,null].concat(Qt(b)))}}]),t}(s.Component);tr.displayName="FormattedMessage",tr.contextTypes={intl:gn},tr.defaultProps={values:{}};var nr=function(e){function t(e,n){Zt(this,t);var r=Jt(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return Mn(n),r}return $t(t,e),Yt(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!En(n,t))return!0;for(var r=Kt({},e,{values:t}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return Cn.apply(void 0,[this,r].concat(o))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatHTMLMessage,n=e.textComponent,r=this.props,i=r.id,o=r.description,a=r.defaultMessage,s=r.values,u=r.tagName,c=void 0===u?n:u,h=r.children,p=t({id:i,description:o,defaultMessage:a},s);if("function"==typeof h)return h(p);var d={__html:p};return l.a.createElement(c,{dangerouslySetInnerHTML:d})}}]),t}(s.Component);nr.displayName="FormattedHTMLMessage",nr.contextTypes={intl:gn},nr.defaultProps={values:{}},qt(Gt),qt(zt.a);var rr=n(250),ir=n.n(rr),or=n(251),ar=n.n(or),sr=n(46),lr=n.n(sr),ur={url:window.location.origin.match(/localhost/)?"http://localhost:4000":window.location.origin,path:"/api/v1"};function cr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
77if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pr=function(e,t){var n=e;return Object.keys(t).forEach((function(e){n=n.replace(":".concat(e),t[e])})),n},dr=n(47),fr=function(){return rt()((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:"",sessionToken:""},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;tt()(this,e),this.url="".concat(ur.url).concat(ur.path),this.endpoints=dr[t],this.currentUser=n,this.requestLang=r,this.requestCountry=i}),[{key:"all",value:function(e){var t=this,n={method:this.endpoints.all.method},r=this.endpoints.all.url;return e&&(r="".concat(r,"?").concat(Object.keys(e).map((function(t){return"".concat(t,"=").concat(e[t])})).join("&"))),new Promise((function(e){t._request(r,n).then((function(t){e(t)}))}))}},{key:"find",value:function(e){var t=this,n=pr(this.endpoints.find.url,{id:e}),r={method:this.endpoints.find.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"send",value:function(e){var t=this,n=e,r=n.url;if(!n.url)throw new Error('ServerRequest: "url" is missing from options.');if(n.method||(n.method="GET"),"GET"===n.method&&n.body){var i=Object.keys(n.body).map((function(e){return"".concat(e,"=").concat(n.body[e])}));delete n.body,r+="?".concat(i.join("&"))}return new Promise((function(e){t._request(r,n).then((function(t){e(t)}))}))}},{key:"join",value:function(e,t){var n=this,r=pr(this.endpoints.join.url,{id:e}),i={method:this.endpoints.join.method,body:{referrerCode:t}};return new Promise((function(e){n._request(r,i).then((function(t){e(t)}))}))}},{key:"login",value:function(e){var t=this,n=e.username,r=e.password,i=this.endpoints.login.url,o={method:this.endpoints.login.method,body:{username:n,password:r}};return new Promise((function(e){t._request(i,o).then((function(t){e(t)}))}))}},{key:"register",value:function(e){var t=this,n=e.username,r=e.email,i=e.password,o=this.endpoints.register.url,a={method:this.endpoints.register.method,body:{username:n,email:r,password:i}};return new Promise((function(e){t._request(o,a).then((function(t){e(t)}))}))}},{key:"socialLogin",value:function(e){var t=this,n=e.authProvider,r=e.authData,i=this.endpoints.socialLogin.url,o={method:this.endpoints.socialLogin.method,body:{authProvider:n,authData:r}};return new Promise((function(e){t._request(i,o).then((function(t){e(t)}))}))}},{key:"inApp",value:function(e){var t=this,n=pr(this.endpoints.inApp.url,{id:e}),r={method:this.endpoints.inApp.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"follow",value:function(e){var t=this,n=pr(this.endpoints.follow.url,{id:e}),r={method:this.endpoints.follow.method,body:{fromPerson:this.currentUser.id,toPerson:e}};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"unfollow",value:function(e){var t=this,n=pr(this.endpoints.unfollow.url,{id:e}),r={method:this.endpoints.unfollow.method,body:{fromPerson:this.currentUser.id,toPerson:e}};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"search",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=pr(this.endpoints.search.url,{search:e}),i={method:this.endpoints.search.method};return new Promise((function(e){t._request("".concat(r,"&offset=").concat(n),i).then((function(t){e(t)}))}
77))}},{key:"autocomplete",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=pr(this.endpoints.autocomplete.url,{search:e}),i={method:this.endpoints.autocomplete.method};return new Promise((function(e){t._request("".concat(r,"&offset=").concat(n),i).then((function(t){e(t)}))}))}},{key:"autocompleteLocations",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=pr(this.endpoints.autocompleteLocations.url,{search:e}),i={method:this.endpoints.autocomplete.method};return new Promise((function(e){t._request("".concat(r,"&offset=").concat(n),i).then((function(t){e(t)}))}))}},{key:"download",value:function(e){var t=this,n=pr(this.endpoints.download.url,{id:e}),r={method:this.endpoints.download.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"leaderboard",value:function(e){var t=this,n=e.id,r=e.offset,i=pr(this.endpoints.leaderboard.url,{id:n,offset:r}),o={method:this.endpoints.leaderboard.method};return new Promise((function(e){t._request(i,o).then((function(t){e(t)}))}))}},{key:"like",value:function(e){var t=this,n=pr(this.endpoints.like.url,{id:e}),r={method:this.endpoints.like.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"unlike",value:function(e,t){var n=this,r=pr(this.endpoints.unlike.url,{id:e}),i={method:this.endpoints.unlike.method,body:{personObjectId:t}};return new Promise((function(e){n._request(r,i).then((function(t){e(t)}))}))}},{key:"activities",value:function(e){var t=this,n=pr(this.endpoints.activities.url,{id:e.id,offset:e.offset}),r={method:this.endpoints.activities.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"favorites",value:function(e){var t=this,n=pr(this.endpoints.favorites.url,{id:e.id,offset:e.offset}),r={method:this.endpoints.favorites.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"followers",value:function(e){var t=this,n=pr(this.endpoints.followers.url,{id:e.id,offset:e.offset}),r={method:this.endpoints.followers.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"following",value:function(e){var t=this,n=pr(this.endpoints.following.url,{id:e.id,offset:e.offset}),r={method:this.endpoints.following.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"products",value:function(e){var t=this,n=pr(this.endpoints.products.url,{id:e}),r={method:this.endpoints.products.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"banners",value:function(e){var t=this,n=pr(this.endpoints.banners.url,{id:e}),r={method:this.endpoints.banners.method};return new Promise((function(e){t._request(n,r).then((function(t){e(t)}))}))}},{key:"geolocation",value:function(){var e=this,t=this.endpoints.url,n={method:this.endpoints.method};return new Promise((function(r){e._request(t,n).then((function(e){r(e)}))}))}},{key:"challengeReferrerData",value:(e=i()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=pr(this.endpoints.url,{referrerCode:t}),r={method:this.endpoints.method},e.abrupt("return",this._request(n,r));case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_requestCredentials",value:function(){return this.currentUser.sessionToken}},{key:"_request",value:function(e,t){var n=this;return new Promise((function(r,i){var o=new XMLHttpRequest,a=n._buildQueryWithParams(e,{lang:n.requestLang,country:n.requestCountry});o.open(t.method,a),o.setRequestHeader("Authorization",n._requestCredentials()),o.setRequestHeader("Content-Type","application/json"),o.onload=function(e){try{r(JSON.parse(e.target.responseText))}catch(e){e instanceof SyntaxError?(console.warn(e),r({})):i(e)}},o.send(JSON.stringify(t.body))}))}},{key:"_buildQueryWithParams",value:function(e,t){var n=[];Object.entries(t).forEach((function(e){var t=lr()(e,2),r=t[0],i=t[1];i&&""!==i&&n.push([r,i])}));var r=n.map((function(e){var t=lr()(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(r)})).join("&"),i=""!==r?"?".concat(r):"";return"".concat(this.url).concat(e).concat(i)}}]);var e}(),mr=fr,gr={ADD_ACTIVITY:"ADD_ACTIVITY",UPDATE_ROUTE:"UPDATE_ROUTE",ADD_CHALLENGES:"ADD_CHALLENGES",ADD_CHALLENGE:"ADD_CHALLENGE",ADD_ACTIVITY_ROUTE:"ADD_ACTIVITY_ROUTE",USER_LOGIN:"USER_LOGIN",USER_LOGOUT:"USER_LOGOUT",OPEN_MODAL:"OPEN_MODAL",CLOSE_MODAL:"CLOSE_MODAL",ADD_PROFILE:"ADD_PROFILE",UPDATE_PROFILE:"UPDATE_PROFILE",INIT_LOCALIZATION:"INIT_LOCALIZATION",ADD_LOCALIZATION:"ADD_LOCALIZATION",UPDATE_LOCALIZATION:"UPDATE_LOCALIZATION"},yr={about_the_author:"About the author",about_us_get_it_now:"Get it now",about_us_heading_2:"How does it work?",about_us_our_mission:"We believe our world will be a better place if everyone experiences the outdoors. People would be healthier, happier and become more conscious when it comes to protecting nature.",about_us_paragraph_2_1:"Record, save and share your routes and adventures. Find new routes created by other users, download them in your smartphone and use them offline.",about_us_paragraph_2_2:"Find new friends and join a community with more than 100K people. Share your achievements and keep in touch with what other sportspeople are doing.",about_us_paragraph_2_3:"Don't know 
77what to do? Join our exploring challenges and win prizes from the best outdoor brands in the world!",about_us_partners:"Partners",about_us_subheading_2_1:"ROUTES",about_us_subheading_2_2:"COMMUNITY",about_us_subheading_2_3:"CHALLENGES",about_us_the_app:"We promote contact with nature through outdoors sports, providing an app where all the community interacts and shares valuable information to go outside.",about_us_what_is:"What is SUDA",about_us:"About us",account_already_exists_for_this_username:"You have already signed up with this email using another authentication provider. Please try to sign in using your email and password.",activity_average_speed_value:"{speed, number} kph",activity_average_speed:"Average speed",activity_comments:"{number, number} {number, plural, one {comment} other {comments}}",activity_create_comment:"To add a new comment sign in to your account from your phone using SUDA app.",activity_difficulty_beginner:"Beginner",activity_difficulty_expert:"Expert",activity_difficulty_intermediate:"Intermediate",activity_difficulty:"Difficulty",activity_download:"Download route",activity_downloaded:"We sent you an e-mail with your route",activity_elevation_gain_value:"{elevation, number} mts",activity_elevation_gain:"Elevation gain",activity_likes:"{likes, number} {likes, plural, one {like} other {likes}}",activity_max_elevation_value:"{elevation, number} mts",activity_max_elevation:"Max elevation",activity_max_speed_value:"{speed, number} kph",activity_max_speed:"Max speed",activity_moving_time:"Moving time",activity_no_comments:"No comments yet",activity_recommended_products:"Recommended products",activity_start_location:"Starting location",activity_sponsored_by:"Sponsored by",activity_moving_distance:"Moving distance",activity_moving_distance_value:"{distance, number} {distance, plural, one {km} other {kms}}",activity_paused_distance:"Paused distance",activity_paused_distance_value:"{distance, number} {distance, plural, one {km} other {kms}}",activity_total_duration:"Total time",activity_weather_humidity_value:"{humidity, number}%",activity_weather_humidity:"Humidity:",activity_weather_loading:"Fetching weather",activity_weather_pressure_value:"{pressure, number} hPa",activity_weather_pressure:"Pressure:",activity_weather_temperature_value:"{temperature, number} ºC",activity_weather_temperature:"Temperature:",activity_weather_wind_speed_value:"{speed, number} m/s",activity_weather_wind_speed:"Wind Speed:",activity_weather:"Current weather",back_to_home:"Back to home",blog:"Adventures",challenge_already_joined:"You already joined this challenge and have completed {completedTasks, number} out of {totalTasks, number} tasks.",challenge_completed:"You have completed this challenge.",challenge_completed_tag:"Completed",challenge_day:"day",challenge_days:"days",challenges_heading:"Join to our SUDA challenges",challenge_hour:"hour",challenge_hours:"hours",challenge_is_not_available_in_your_country:"Unfortunately this challenge is not available in your country.",challenge_join_challenge_button:"Join challenge",challenge_join_challenge:"Do you want to be part of this challenge? Sign up, download the app and start completing the objectives!",challenge_join_challenge_only_app:"This challenge is only joinable through the app",challenge_minute:"minute",challenge_minutes:"minutes",challenge_not_accomplished:"no one has achieved it yet",challenge_objective_accomplished:"{people, number} {people, plural, one {person has} other {people have}} achieved it",challenge_objectives:"Objectives",challenge_prizes:"Prizes",challenge_second:"second",challenge_seconds:"seconds",challenge_time_left:"{time} left",challenges_anonymous_past_challenges:"Sign in to check your past challenges",challenges_empty_user_challenges:"You were not subscribed in any past challenges",challenges_no_current_challenges:"There are no challenges going on right now at your location",challenges_no_user_challenges:"You are not participating in any challenges yet. Select one below to start!",challenges_user_challenges_active:"Currently active challenges",challenges_user_challenges_mine:"Joined challenges",challenges_user_challenges_past:"Past challenges",challenges_user_joined:"{subscribers, number} {subscribers, plural, one {person has} other {people have}} joined",challenges:"Challenges",chart_elevation:"Elevation",cookies_consent_message:"We use cookies to enhance your experience on our site, analyze traffic, and personalize content. By continuing to browse, you agree to our use of cookies.",cookies_consent_accept:"Accept all cookies",continue_with_facebook:"Continue with Facebook",continue_with_google:"Continue with Google",email_required:"email is required.",follow_btn_accepted:"Following",follow_btn_cancel:"Cancel follow request",follow_btn_pending:"Pending request",follow_btn_unfollow:"Unfollow",follow_btn:"Follow",home_available_for:"Available for iOS and Android",home_cannot_miss:"Can't miss it",home_compatible_with:"Compatible with:",home_download:"Download",home_featured:"Featured routes",home_follow_us:"Follow us on social media",home_headline:"MOVE · EXPLORE · DISCOVER",home_search_on_map:"Search routes on the map",home_subtitle:"Find where, with who and how to practice Outdoor sports",home_suda_ad_explore:"EXPLORE",home_suda_ad_more_than:"More than",home_suda_ad_number_of_routes:"{routes, number}",home_suda_ad_routes_to:"Routes to",inapp_learnmore:"Learn more",invalid_email:"There is already an account with this email address.",invalid_username_password:"Invalid username and/or password.",leaderboard_accumulated_distance:"{distance, number} km in {routes, number} {routes, plural, one {route} other {routes}}",leaderboard_accumulated_elevation_gain:"{distance, number} m in {routes, number} {routes, plural, one {route} other {routes}}",leaderboard_accumulated_moving_time:"{hours} in total",leaderboard_accumulated_route_count:"{routes, number} {routes, plural, one {route} other {routes}}",leaderboard_completed_at:"Completed on {date}",leaderboard_empty:"No one has completed this challenge yet.",leaderboard_finisher:"Finisher",leaderboard_finishers_list_for_distance:"These users have accumulated distance",leaderboard_finishers_list_for_elevation_gain:"These users have accumulated elevation",leaderboard_finishers_list_for_moving_time:"These users have accumulated moving time",leaderboard_finishers_list_for_route_count:"These users have accumulated routes",leaderboard_finishers_list:"These users completed the challenge",leaderboard_loading:"Fetching finishers...",leaderboard_winners_list:"Prize winners",leaderboard:"Leaderboard",learn_more:"Learn more",load_more:"Load more",loading:"Loading",login_button:"Log in",login_email:"Or log in with your email",login_label_email:"Email",login_label_password:"Password",login_social:"Log in to start exploring and living new experiences.",login:"Log in",logout:"Log out",map_search_location:"Search places",map:"Map",name_required:"Name is required.",no_more_results:"No more results",password_required:"Password is required.",passwords_do_no_match:"Passwords do not match.",profile_activities_count:"{activities, number} published {activities, plural, one {route} other {routes}}",profile_activities_empty:"This user does not have any public activities yet",profile_distance_covered:"{distance, number} {distance, plural, one {km} other {kms}} covered",profile_favorites_count:"{favorites, number} {favorites, plural, one {favorite} other {favorites}}",profile_followers_count:"{followers, number} {followers, plural, one {Follower} other {Followers}}",profile_followings_count:"{followings, number} Following",profile_nav_favorites:"Favorites",profile_nav_followers:"Followers",profile_nav_following:"Following",profile_nav_routes:"Routes",profile_people_empty:"This user does not have any public followers yet",search_filter_results:"Filter results",search_no_results:"Your search returned no results.",search:"Routes, places and people",signup_button:"Sign up",signup_email:"Sign up with your email",signup_label_name:"Name",signup_label_repeat_password:"Repeat your password",signup_login_button:"Already have an account?",signup_social:"Sign up to start exploring and living new experiences.",signup_terms_and_conditions:"Terms and Conditions",signup:"Create an account",social_share_facebook:"Share on Facebook",something_went_wrong:"Something went wrong.",sport_4x4offroad:"4x4 off Road",sport_atv:"ATV",sport_backcountryskiing:"Back Country Skiing",sport_basejump:"Base Jump",sport_birdwatching:"Bird Watching",sport_bmx:"BMX",sport_bodyboarding:"Bodyboarding",sport_bungee:"Bungee",sport_camping:"Camping",sport_canopy:"Canopy",sport_climbing:"Climbing",sport_fishing:"Fis
77hing",sport_flowride:"Flowride",sport_flyfishing:"Fly Fishing",sport_freediving:"Free Diving",sport_gliding:"Gliding",sport_hanggliding:"Hang Gliding",sport_horsebackriding:"Horseback Riding",sport_iceclimbing:"Ice Climbing",sport_jetski:"Jetski",sport_kayaking:"Kayaking",sport_kitesurfing:"Kitesurfing",sport_longboarding:"Longboarding",sport_motocross:"Motocross",sport_motoenduro:"Moto Enduro",sport_mototurismo:"Moto Turismo",sport_mountainbiking:"Mountain Biking",sport_mountainboarding:"Mountainboarding",sport_mountaneering:"Mountaneering",sport_mtbdownhill:"MTB Downhill",sport_paragliding:"Paragliding",sport_plogging:"Plogging",sport_quads:"Quads",sport_rafting:"Rafting",sport_roadbiking:"Road Biking",sport_rollerskating:"Roller Skating",sport_rowing:"Rowing",sport_running:"Running",sport_rv:"RV",sport_sailing:"Sailing",sport_sandboarding:"Sandboarding",sport_scubadiving:"Scuba Diving",sport_seakayaking:"Sea Kayaking",sport_skate:"Skate",sport_skiing:"Skiing",sport_skimboarding:"Skimboarding",sport_skydiving:"Skydiving",sport_slackline:"Slackline",sport_snowboarding:"Snowboarding",sport_snowmobile:"Snowmobile",sport_snowshoetrekking:"Snowshow Trekking",sport_speedflying:"SpeedFlying",sport_standuppaddling:"Stand up Paddling",sport_surfing:"Surfing",sport_swimming:"Swimming",sport_trailrunning:"Trail Running",sport_trekking:"Trekking",sport_wakeboarding:"Wakeboarding",sport_walking:"Walking",sport_waterskiing:"Waterskiing",sport_wildlifewatching:"Wildlife Watching",sport_windsurfing:"Windsurfing",sport_wingsuit:"Wingsuit",sport_petwalking:"Pet Walking",sport_ebiking:"E-Biking",sport_gravelbiking:"Gravel Biking",sport_activebreaks:"Active Breaks",sport_stairclimbing:"Stair Climbing",sport_yoga:"Yoga",sport_pilates:"Pilates",sport_dancing:"Dancing",sport_crossfit:"CrossFit",sport_hiit:"HIIT",sport_gym:"Gym",sport_workout:"Workout",sport_weighttraining:"Weight Training",sport_ellipticaltrainer:"Elliptical Trainer",sport_treadmill:"Treadmill",sport_indoorcycling:"Indoor Cycling",sport_soccer:"Soccer",sport_tennis:"Tennis",sport_padel:"Padel",sport_golf:"Golf",sport_volleyball:"Volleyball",sport_basketball:"Basketball",sport_baseball:"Baseball",sport_hockey:"Hockey",sport_tabletennis:"Table Tennis",sport_athletics:"Athletics",sport_martialarts:"Martial Arts",sport_boxing:"Boxing",suda:"SUDA Outdoors",support:"Support",upload_activity:"Upload activity",country_AD:"Andorra",country_AE:"United Arab Emirates",country_AF:"Afghanistan",country_AG:"Antigua and Barbuda",country_AI:"Anguilla",country_AL:"Albania",country_AM:"Armenia",country_AN:"Netherlands Antilles",country_AO:"Angola",country_AQ:"Antarctica",country_AR:"Argentina",country_AS:"American Samoa",country_AT:"Austria",country_AU:"Australia",country_AW:"Aruba",country_AX:"Aland Islands",country_AZ:"Azerbaijan",country_BA:"Bosnia and Herzegovina",country_BB:"Barbados",country_BD:"Bangladesh",country_BE:"Belgium",country_BF:"Burkina Faso",country_BG:"Bulgaria",country_BH:"Bahrain",country_BI:"Burundi",country_BJ:"Benin",country_BL:"Saint Barthelemy",country_BM:"Bermuda",country_BN:"Brunei",country_BO:"Bolivia",country_BR:"Brazil",country_BS:"Bahamas",country_BT:"Bhutan",country_BV:"Bouvet Island",country_BW:"Botswana",country_BY:"Belarus",country_BZ:"Belize",country_CA:"Canada",country_CC:"Cocos Islands",country_CD:"Democratic Republic of the Congo",country_CF:"Central African Republic",country_CG:"Republic of the Congo",country_CH:"Switzerland",country_CI:"Ivory Coast",country_CK:"Cook Islands",country_CL:"Chile",country_CM:"Cameroon",country_CN:"China",country_CO:"Colombia",country_CR:"Costa Rica",country_CU:"Cuba",country_CV:"Cape Verde",country_CX:"Christmas Island",country_CY:"Cyprus",country_CZ:"Czechia",country_DE:"Germany",country_DJ:"Djibouti",country_DK:"Denmark",country_DM:"Dominica",country_DO:"Dominican Republic",country_DZ:"Algeria",country_EC:"Ecuador",country_EE:"Estonia",country_EG:"Egypt",country_EH:"Western Sahara",country_ER:"Eritrea",country_ES:"Spain",country_ET:"Ethiopia",country_FI:"Finland",country_FJ:"Fiji",country_FK:"Falkland Islands",country_FM:"Micronesia",country_FO:"Faroe Islands",country_FR:"France",country_GA:"Gabon",country_GB:"United Kingdom",country_GD:"Grenada",country_GE:"Georgia",country_GF:"French Guiana",country_GG:"Guernsey",country_GH:"Ghana",country_GI:"Gibraltar",country_GL:"Greenland",country_GM:"Gambia",country_GN:"Guinea",country_GP:"Guadeloupe",country_GQ:"Equatorial Guinea",country_GR:"Greece",country_GS:"South Georgia and the South Sandwich Islands",country_GT:"Guatemala",country_GU:"Guam",country_GW:"Guinea-Bissau",country_GY:"Guyana",country_HK:"Hong Kong",country_HM:"Heard Island and McDonald Islands",country_HN:"Honduras",country_HR:"Croatia",country_HT:"Haiti",country_HU:"Hungary",country_ID:"Indonesia",country_IE:"Ireland",country_IL:"Israel",country_IM:"Isle of Man",country_IN:"India",country_IO:"British Indian Ocean Territory",country_IQ:"Iraq",country_IR:"Iran",country_IS:"Iceland",country_IT:"Italy",country_JE:"Jersey",country_JM:"Jamaica",country_JO:"Jordan",country_JP:"Japan",country_KE:"Kenya",country_KG:"Kyrgyzstan",country_KH:"Cambodia",country_KI:"Kiribati",country_KM:"Comoros",country_KN:"Saint Kitts and Nevis",country_KP:"North Korea",country_KR:"South Korea",country_KW:"Kuwait",country_KY:"Cayman Islands",country_KZ:"Kazakhstan",country_LA:"Laos",country_LB:"Lebanon",country_LC:"Saint Lucia",country_LI:"Liechtenstein",country_LK:"Sri Lanka",country_LR:"Liberia",country_LS:"Lesotho",country_LT:"Lithuania",country_LU:"Luxembourg",country_LV:"Latvia",country_LY:"Libya",country_MA:"Morocco",country_MC:"Monaco",country_MD:"Moldova",country_ME:"Montenegro",country_MF:"Saint Martin",country_MG:"Mad
77agascar",country_MH:"Marshall Islands",country_MK:"Macedonia",country_ML:"Mali",country_MM:"Myanmar",country_MN:"Mongolia",country_MO:"Macao",country_MP:"Northern Mariana Islands",country_MQ:"Martinique",country_MR:"Mauritania",country_MS:"Montserrat",country_MT:"Malta",country_MU:"Mauritius",country_MV:"Maldives",country_MW:"Malawi",country_MX:"Mexico",country_MY:"Malaysia",country_MZ:"Mozambique",country_NA:"Namibia",country_NC:"New Caledonia",country_NE:"Niger",country_NF:"Norfolk Island",country_NG:"Nigeria",country_NI:"Nicaragua",country_NL:"Netherlands",country_NO:"Norway",country_NP:"Nepal",country_NR:"Nauru",country_NU:"Niue",country_NZ:"New Zealand",country_OM:"Oman",country_PA:"Panama",country_PE:"Peru",country_PF:"French Polynesia",country_PG:"Papua New Guinea",country_PH:"Philippines",country_PK:"Pakistan",country_PL:"Poland",country_PM:"Saint Pierre and Miquelon",country_PN:"Pitcairn",country_PR:"Puerto Rico",country_PS:"Palestinian Territory",country_PT:"Portugal",country_PW:"Palau",country_PY:"Paraguay",country_QA:"Qatar",country_RE:"Reunion",country_RO:"Romania",country_RS:"Serbia",country_RU:"Russia",country_RW:"Rwanda",country_SA:"Saudi Arabia",country_SB:"Solomon Islands",country_SC:"Seychelles",country_SD:"Sudan",country_SE:"Sweden",country_SG:"Singapore",country_SH:"Saint Helena",country_SI:"Slovenia",country_SJ:"Svalbard and Jan Mayen",country_SK:"Slovakia",country_SL:"Sierra Leone",country_SM:"San Marino",country_SN:"Senegal",country_SO:"Somalia",country_SR:"Suriname",country_ST:"Sao Tome and Principe",country_SV:"El Salvador",country_SY:"Syria",country_SZ:"Swaziland",country_TC:"Turks and Caicos Islands",country_TD:"Chad",country_TF:"French Southern Territories",country_TG:"Togo",country_TH:"Thailand",country_TJ:"Tajikistan",country_TK:"Tokelau",country_TL:"Timor Leste",country_TM:"Turkmenistan",country_TN:"Tunisia",country_TO:"Tonga",country_TR:"Turkey",country_TT:"Trinidad and Tobago",country_TV:"Tuvalu",country_TW:"Taiwan",country_TZ:"Tanzania",country_UA:"Ukraine",country_UG:"Uganda",country_UM:"United States Minor Outlying Islands",country_US:"United States",country_UY:"Uruguay",country_UZ:"Uzbekistan",country_VA:"Vatican",country_VC:"Saint Vincent and the Grenadines",country_VE:"Venezuela",country_VG:"British Virgin Islands",country_VI:"U.S. Virgin Islands",country_VN:"Vietnam",country_VU:"Vanuatu",country_WF:"Wallis and Futuna",country_WS:"Samoa",country_YE:"Yemen",country_YT:"Mayotte",country_ZA:"South Africa",country_ZM:"Zambia",country_ZW:"Zimbabwe",test:"test-english"},vr={en:yr,es:{about_the_author:"Sobre el autor",about_us_get_it_now:"Probar ahora",about_us_heading_2:"¿Cómo funciona?",about_us_our_mission:"Creemos que nuestro mundo será un mejor lugar si todos viven la experiencia outdoor. Las personas serían más saludables, más felices y estarían más conscientes acerca de la protección de la naturaleza.",about_us_paragraph_2_1:"Graba, guarda y comparte tus rutas o recorridos. Encuentra nuevas rutas creadas por otros usuarios que incluso puedes descargar en tu smartphone para luego usarlas sin conexión a internet.",about_us_paragraph_2_2:"Encuentra amigos y forma parte de una comunidad de más de 100K. Comparte tus logros y entérate de lo que están haciendo otros deportistas.",about_us_paragraph_2_3:"¿No sabes cómo empezar? ¡Únete a nuestros desafíos de exploración y gana premios de las mejores marcas outdoor en el mundo!",about_us_partners:"Partners",about_us_subheading_2_1:"ROUTES",about_us_subheading_2_2:"COMUNIDAD",about_us_subheading_2_3:"DESAFÍOS",about_us_the_app:"Promovemos el contacto con la naturaleza a través de los deportes al aire libre, proveyendo una aplicación donde toda la comunidad interactúa y comparte información valiosa para cuando sales a explorar.",about_us_what_is:"Qué es SUDA",about_us:"Sobre nosotros",account_already_exists_for_this_username:"Ya te registraste con este email usando otro proveedor de autenticación. Por favor ingresa con tu email y password",activity_average_speed_value:"{speed, number} km/h",activity_average_speed:"Velocidad promedio",activity_comments:"{number, number} {number, plural, one {comentario} other {comentarios}}",activity_create_comment:"Para agregar un nuevo comentario inicia sesión desde tu teléfono usando SUDA app.",activity_difficulty_beginner:"Principiante",activity_difficulty_expert:"Experto",activity_difficulty_intermediate:"Intermedio",activity_difficulty:"Dificultad",activity_download:"Descargar ruta",activity_downloaded:"Te enviamos un correo con tu ruta",activity_elevation_gain_value:"{elevation, number} mts",activity_elevation_gain:"Desnivel acumulado",activity_likes:"{likes, number} {likes, plural, one {like} other {likes}}",activity_max_elevation_value:"{elevation, number} mts",activity_max_elevation:"Altitud máxima",activity_max_speed_value:"{speed, number} km/h",activity_max_speed:"Velocidad máxima",activity_moving_time:"Tiempo en movimiento",activity_no_comments:"Sin comentarios",activity_recommended_products:"Productos recomendados",activity_start_location:"Localización de inicio",activity_sponsored_by:"Auspiciado por",activity_moving_distance:"Distancia en movimiento",activity_moving_distance_value:"{distance, number} {distance, plural, one {km} other {kms}}",activity_paused_distance:"Distancia en pausa",activity_paused_distance_value:"{distance, number} {distance, plural, one {km} other {kms}}",activity_total_duration:"Tiempo total",activity_weather_humidity_value:"{humidity, number}%",activity_weather_humidity:"Humedad:",activity_weather_loading:"Buscando condiciones",activity_weather_pressure_value:"{pressure, number} hPa",activity_weather_pressure:"Presión:",activity_weather_temperature_value:"{temperature, number} ºC",activity_weather_temperature:"Temperatura:",activity_weather_wind_speed_value:"{speed, number} m/s",activity_weather_wind_speed:"Viento:",activity_weather:"Meteo actual",back_to_home:"Volver al inicio",blog:"Aventuras",challenge_already_joined:"Ya estas participando en este desafío. Has completado {c
77ompletedTasks, number} de {totalTasks, number} objetivos.",challenge_completed:"Ya has completado este desafío.",challenge_completed_tag:"Completado",challenge_day:"día",challenge_days:"días",challenges_heading:"Únete a los desafíos SUDA",challenge_hour:"hora",challenge_hours:"horas",challenge_is_not_available_in_your_country:"Lamentablemente este desafío no se encuentra disponible en tu país.",challenge_join_challenge_button:"Aceptar desafío",challenge_join_challenge:"¿Quieres ser parte de este desafío? Regístrate, descarga la app y comienza a completar los objetivos!",challenge_join_challenge_only_app:"Necesitas la app para unirte a este desafío",challenge_minute:"minuto",challenge_minutes:"minutos",challenge_not_accomplished:"nadie lo ha logrado",challenge_objective_accomplished:"{people, number} {people, plural, one {persona lo ha} other {personas lo han}} logrado",challenge_objectives:"Objetivos",challenge_prizes:"Premios",challenge_second:"segundo",challenge_seconds:"segundos",challenge_time_left:"Quedan {time} ",challenges_anonymous_past_challenges:"Ingresa con tu cuenta para revisar tus desafíos anteriores",challenges_empty_user_challenges:"No has participado en desafíos anteriores",challenges_no_current_challenges:"Actualmente no hay desafíos activos en tu país",challenges_no_user_challenges:"No estás participando en ningún desafío. Revisa e inscríbete en los desafíos activos",challenges_user_challenges_active:"Desafíos activos",challenges_user_challenges_mine:"Desafíos",challenges_user_challenges_past:"Desafíos anteriores",challenges_user_joined:"{subscribers, number} {subscribers, plural, one {inscrito} other {inscritos}}",challenges:"Desafíos",chart_elevation:"Elevación",cookies_consent_message:"Usamos cookies para mejorar tu experiencia en nuestro sitio, analizar el tráfico y personalizar el contenido.",cookies_consent_accept:"Aceptar todas las cookies",continue_with_facebook:"Continuar con Facebook",continue_with_google:"Continuar con Google",email_required:"email requerido.",follow_btn_accepted:"Siguiendo",follow_btn_cancel:"Cancelar solicitud de seguimiento",follow_btn_pending:"Solicitud pendiente",follow_btn_unfollow:"Dejar de seguir",follow_btn:"Seguir",home_available_for:"Disponible para iOS y Android",home_cannot_miss:"Imperdibles",home_compatible_with:"Compatible con",home_download:"Descarga",home_featured:"Rutas destacadas",home_follow_us:"Síguenos en redes sociales",home_headline:"MOVE · EXPLORE · DISCOVER",home_search_on_map:"Buscar rutas en el mapa",home_subtitle:"Encuentra dónde, con quién y cómo practicar deportes Outdoor",home_suda_ad_explore:"EXPLORAR",home_suda_ad_more_than:"Más de",home_suda_ad_number_of_routes:"{routes, number}",home_suda_ad_routes_to:"Rutas para",inapp_learnmore:"Ver más",invalid_email:"Ya existe una cuenta con esta dirección de email",invalid_username_password:"Usuario y/o contraseña inválida",leaderboard_accumulated_distance:"{distance, number} km en {routes, number} {routes, plural, one {ruta} other {rutas}}",leaderboard_accumulated_elevation_gain:"{distance, number} m en {routes, number} {routes, plural, one {ruta} other {rutas}}",leaderboard_accumulated_moving_time:"{hours} en total",leaderboard_accumulated_route_count:"{routes, number} {routes, plural, one {ruta} other {rutas}}",leaderboard_completed_at:"Completado en {date}",leaderboard_empty:"Nadie ha completado este desafío aún.",leaderboard_finisher:"Finalista",leaderboard_finishers_list_for_distance:"Estos usuarios han acumulado distancia",leaderboard_finishers_list_for_elevation_gain:"Estos usuarios han acumulado elevación",leaderboard_finishers_list_for_moving_time:"Estos usuarios han acumulado tiempo en movimiento",leaderboard_finishers_list_for_route_count:"Estos usuarios han acumulado rutas",leaderboard_finishers_list:"Estos usuarios completaron el desafío",leaderboard_loading:"Cargando finalistas...",leaderboard_winners_list:"Ganadores de premios",leaderboard:"Leaderboard",learn_more:"Conocer más",load_more:"Ver más",loading:"Cargando",login_button:"Ingresar",login_email:"O ingresa con tu email",login_label_email:"Email",login_label_password:"Contraseña",login_social:"Ingresa para empezar a explorar y vivir nuevas experiencias.",login:"Iniciar sesión",logout:"Salir",map_search_location:"Buscar lugares",map:"Mapa",name_required:"Nombre requerido.",no_more_results:"No hay más resultados",password_required:"Contraseña requerida.",passwords_do_no_match:"Las contraseñas no coinciden",profile_activities_count:"{activities, number} {activities, plural, one {ruta publicada} other {rutas publicadas}}",profile_activities_empty:"Este usuario no tiene rutas publicas",profile_distance_covered:"{distance, number} {distance, plural, one {km} other {kms}} recorridos",profile_favorites_count:"{favorites, number} {favorites, plural, one {favorito} other {favoritos}}",profile_followers_count:"{followers, number} {followers, plural, one {Seguidor} other {Seguidores}}",profile_followings_count:"{followings, number} Seguidos",profile_nav_favorites:"Favoritos",profile_nav_followers:"Seguidores",profile_nav_following:"Seguidos",profile_nav_routes:"Rutas",profile_people_empty:"Este usuario no tiene rutas públicas",search_filter_results:"Filtrar resultados",search_no_results:"No hay resultados.",search:"Rutas, lugares y personas",signup_button:"Registrarse",signup_email:"Registrarse con tu email",signup_label_name:"Nombre ",signup_label_repeat_password:"Repite tu contraseña",signup_login_button:"Ya tienes una cuenta?",signup_social:"Regístrate y comienza a explorar y vivir nuevas experiencias.",signup_terms_and_conditions:"Términos y Condiciones",signup:"Crear cuenta",social_share_facebook:"Compartir en Facebook",something_went_wrong:"Nuestro team está trabajando para solucionar este problema",sport_4x4offroad:"Todo Terreno",sport_atv:"ATV",sport_backcountryskiing:"Randonee",sport_basejump:"Salto Base",sport_birdwatching:"Observación de Aves",sport_bmx:"BMX",sport_bodyboarding:"Bodyboarding",sport_bungee:"Bungee",sport_camping:"Camping",sport_canopy:"Canopy",sport_climbing:"Escalada ",sport_fishing:"Pesca",sport_flowride:"Flowride",sport_flyfishing:"Pesca con mosca",sport_freediving:"Apnea",sport_gliding:"Planeador",sport_hanggliding:"Ala Delta",sport_horsebackriding:"Cabalgata",sport_iceclimbing:"Escalada en Hielo",sport_jetski:"Jetski",sport_kayaking:"Kayak",sport_kitesurfing:"Kite",sport_longboarding:"Longboard",sport_motocross:"Motocross",sport_motoenduro:"Moto Enduro",sport_mototurismo:"Moto Turismo",sport_mountainbiking:"Mountain Bike",sport_mountainboarding:"Mountainboard",sport_mountaneering:"Montañismo",sport_mtbdownhill:"MTB Desce
77nso",sport_paragliding:"Parapente",sport_plogging:"Plogging",sport_quads:"Moto Quad",sport_rafting:"Rafting",sport_roadbiking:"Bicicleta de Ruta",sport_rollerskating:"Roller",sport_rowing:"Remo",sport_running:"Running",sport_rv:"RV",sport_sailing:"Vela",sport_sandboarding:"Sandboard",sport_scubadiving:"Buceo",sport_seakayaking:"Kakak de Travesía",sport_skate:"Skate",sport_skiing:"Ski",sport_skimboarding:"Skimboard",sport_skydiving:"Skydiving",sport_slackline:"Slackline",sport_snowboarding:"Snowboard",sport_snowmobile:"Snowmobile",sport_snowshoetrekking:"Raqueteo en Nieve",sport_speedflying:"SpeedFly",sport_standuppaddling:"Stand Up Paddle",sport_surfing:"Surf",sport_swimming:"Natación",sport_trailrunning:"Trail Running",sport_trekking:"Trekking",sport_wakeboarding:"Wakeboard",sport_walking:"Caminata",sport_waterskiing:"Ski Acuático",sport_wildlifewatching:"Observación de Animales",sport_windsurfing:"Windsurf",sport_wingsuit:"Wingsuit",sport_petwalking:"Paseo de Mascotas",sport_ebiking:"E-Bike",sport_gravelbiking:"Gravel",sport_activebreaks:"Gimnasia de Pausa",sport_stairclimbing:"Subir Escaleras",sport_yoga:"Yoga",sport_pilates:"Pilates",sport_dancing:"Baile",sport_crossfit:"CrossFit",sport_hiit:"HIIT",sport_gym:"Gimnasio",sport_workout:"Entrenamiento",sport_weighttraining:"Pesas",sport_ellipticaltrainer:"Elíptica",sport_treadmill:"Trotadora",sport_indoorcycling:"Spinning",sport_soccer:"Fútbol",sport_tennis:"Tenis",sport_padel:"Pádel",sport_golf:"Golf",sport_volleyball:"Vóleibol",sport_basketball:"Básquetbol",sport_baseball:"Béisbol",sport_hockey:"Hockey",sport_tabletennis:"Tenis de Mesa",sport_athletics:"Atletismo",sport_martialarts:"Artes Marciales",sport_boxing:"Boxeo",suda:"SUDA Outdoors",support:"Soporte",upload_activity:"Subir ruta",country_AD:"Andorra",country_AE:"Emiratos Árabes Unidos",country_AF:"Afganistán",country_AG:"Antigua y Barbuda",country_AI:"Anguila",country_AL:"Albania",country_AM:"Armenia",country_AN:"Antillas Neerlandesas",country_AO:"Angola",country_AQ:"Antártida",country_AR:"Argentina",country_AS:"Samoa Americana",country_AT:"Austria",country_AU:"Australia",country_AW:"Aruba",country_AX:"Islas de Åland",country_AZ:"Azerbayán",country_BA:"Bosnia y Herzegovina",country_BB:"Barbados",country_BD:"Bangladesh",country_BE:"Bélgica",country_BF:"Burkina Faso",country_BG:"Bulgaria",country_BH:"Bahrein",country_BI:"Burundi",country_BJ:"Benín",country_BL:"San Bartolomé",country_BM:"Islas Bermudas",country_BN:"Brunéi",country_BO:"Bolivia",country_BR:"Brasil",country_BS:"Bahamas",country_BT:"Bhután",country_BV:"Isla Bouvet",country_BW:"Botsuana",country_BY:"Bielorrusia",country_BZ:"Belice",country_CA:"Canadá",country_CC:"Islas Cocos (Keeling)",country_CD:"Congo",country_CF:"República Centroafricana",country_CG:"Congo",country_CH:"Suiza",country_CI:"Costa de Marfil",country_CK:"Islas Cook",country_CL:"Chile",country_CM:"Camerún",country_CN:"China",country_CO:"Colombia",country_CR:"Costa Rica",country_CU:"Cuba",country_CV:"Cabo Verde",country_CX:"Isla de Navidad",country_CY:"Chipre",country_CZ:"República Checa",country_DE:"Alemania",country_DJ:"Yibuti",country_DK:"Dinamarca",country_DM:"Dominica",country_DO:"República Dominicana",country_DZ:"Algeria",country_EC:"Ecuador",country_EE:"Estonia",country_EG:"Egipto",country_EH:"Sahara Occidental",country_ER:"Eritrea",country_ES:"España",country_ET:"Etiopía",country_FI:"Finlandia",country_FJ:"Fiyi",country_FK:"Islas Malvinas",country_FM:"Micronesia",country_FO:"Islas Feroe",country_FR:"Francia",country_GA:"Gabón",country_GB:"Reino Unido",country_GD:"Granada",country_GE:"Georgia",country_GF:"Guayana Francesa",country_GG:"Guernsey",country_GH:"Ghana",country_GI:"Gibraltar",country_GL:"Groenlandia",country_GM:"Gambia",country_GN:"Guinea",country_GP:"Guadalupe",country_GQ:"Guinea Ecuatorial",country_GR:"Grecia",country_GS:"Islas Georgias del Sur y Sandwich del Sur",country_GT:"Guatemala",country_GU:"Guam",country_GW:"Guinea-Bissau",country_GY:"Guyana",country_HK:"Hong kong",country_HM:"Islas Heard y McDonald",country_HN:"Honduras",country_HR:"Croacia",country_HT:"Haití",country_HU:"Hungría",country_ID:"Indonesia",country_IE:"Irlanda",country_IL:"Israel",country_IM:"Isla de Man",country_IN:"India",country_IO:"Territorio Británico del Océano Índico",country_IQ:"Irak",country_IR:"Irán",country_IS:"Islandia",country_IT:"Italia",country_JE:"Jersey",country_JM:"Jamaica",country_JO:"Jordania",country_JP:"Japón",country_KE:"Kenia",country_KG:"Kirgizstán",country_KH:"Camboya",country_KI:"Kiribati",country_KM:"Comoras",country_KN:"San Cristóbal y Nieves",country_KP:"Corea del Norte",country_KR:"Corea del Sur",country_KW:"Kuwait",country_KY:"Islas Caimán",country_KZ:"Kazajistán",country_LA:"Laos",country_LB:"Líbano",country_LC:"Santa Lucía",country_LI:"Liechtenstein",country_LK:"Sri lanka",country_LR:"Liberia",country_LS:"Lesoto",country_LT:"Lituania",country_LU:"Luxemburgo",country_LV:"Letonia",country_LY:"Libia",country_MA:"Marruecos",country_MC:"Mónaco",country_MD:"Moldavia",country_ME:"Montenegro",country_MF:"San Martín (Francia)",country_MG:"Mad
77agascar",country_MH:"Islas Marshall",country_MK:"Macedônia",country_ML:"Mali",country_MM:"Birmania",country_MN:"Mongolia",country_MO:"Macao",country_MP:"Islas Marianas del Norte",country_MQ:"Martinica",country_MR:"Mauritania",country_MS:"Montserrat",country_MT:"Malta",country_MU:"Mauricio",country_MV:"Islas Maldivas",country_MW:"Malawi",country_MX:"México",country_MY:"Malasia",country_MZ:"Mozambique",country_NA:"Namibia",country_NC:"Nueva Caledonia",country_NE:"Niger",country_NF:"Isla Norfolk",country_NG:"Nigeria",country_NI:"Nicaragua",country_NL:"Países Bajos",country_NO:"Noruega",country_NP:"Nepal",country_NR:"Nauru",country_NU:"Niue",country_NZ:"Nueva Zelanda",country_OM:"Omán",country_PA:"Panamá",country_PE:"Perú",country_PF:"Polinesia Francesa",country_PG:"Papúa Nueva Guinea",country_PH:"Filipinas",country_PK:"Pakistán",country_PL:"Polonia",country_PM:"San Pedro y Miquelón",country_PN:"Islas Pitcairn",country_PR:"Puerto Rico",country_PS:"Palestina",country_PT:"Portugal",country_PW:"Palau",country_PY:"Paraguay",country_QA:"Qatar",country_RE:"Reunión",country_RO:"Rumanía",country_RS:"Serbia",country_RU:"Rusia",country_RW:"Ruanda",country_SA:"Arabia Saudita",country_SB:"Islas Salomón",country_SC:"Seychelles",country_SD:"Sudán",country_SE:"Suecia",country_SG:"Singapur",country_SH:"Santa Elena",country_SI:"Eslovenia",country_SJ:"Svalbard y Jan Mayen",country_SK:"Eslovaquia",country_SL:"Sierra Leona",country_SM:"San Marino",country_SN:"Senegal",country_SO:"Somalia",country_SR:"Surinám",country_ST:"Santo Tomé y Príncipe",country_SV:"El Salvador",country_SY:"Siria",country_SZ:"Swazilandia",country_TC:"Islas Turcas y Caicos",country_TD:"Chad",country_TF:"Territorios Australes y Antárticas Franceses",country_TG:"Togo",country_TH:"Tailandia",country_TJ:"Tadjikistán",country_TK:"Tokelau",country_TL:"Timor Oriental",country_TM:"Turkmenistán",country_TN:"Tunez",country_TO:"Tonga",country_TR:"Turquía",country_TT:"Trinidad y Tobago",country_TV:"Tuvalu",country_TW:"Taiwán",country_TZ:"Tanzania",country_UA:"Ucrania",country_UG:"Uganda",country_UM:"Islas Ultramarinas Menores de Estados Unidos",country_US:"Estados Unidos",country_UY:"Uruguay",country_UZ:"Uzbekistán",country_VA:"Ciudad del Vaticano",country_VC:"San Vicente y las Granadinas",country_VE:"Venezuela",country_VG:"Islas Vírgenes Británicas",country_VI:"Islas Vírgenes de los Estados Unidos",country_VN:"Vietnam",country_VU:"Vanuatu",country_WF:"Wallis y Futuna",country_WS:"Samoa",country_YE:"Yemen",country_YT:"Mayotte",country_ZA:"Sudáfrica",country_ZM:"Zambia",country_ZW:"Zimbabue",test:"test-spanish"}},_r=function(){var e=window.navigator;return(e.userLanguage||e.language).substring(0,2)};function xr(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var br,wr=_r(),Sr=vr[br=wr]?vr[br]:yr;qt([].concat(Ot()(ir.a),Ot()(ar.a)));var kr=function(e){function t(e){var n;tt()(this,t),n=xr(this,t,[e]);var r=document.getElementsByTagName("html")[0].lang,i=document.getElementsByTagName("meta")["geo.region"].content;return n.props.dispatch({type:gr.INIT_LOCALIZATION,payload:{lang:r,country:i}}),n.request=new mr("geolocation"),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){this.fetchGeolocation()}},{key:"fetchGeolocation",value:function(){var e=this;this.request.geolocation().then((function(t){e.props.dispatch({type:gr.ADD_LOCALIZATION,payload:{lang:t.lang,country:t.country}})})).catch((function(t){console.error(t),e.props.dispatch({type:gr.ADD_LOCALIZATION,payload:{lang:"es",country:"CL"}})}))}},{key:"render",value:function(){return l.a.createElement(Yn,{locale:wr,messages:Sr},this.props.children)}}])}(l.a.Component),Tr=le(St.userSettings)(kr),Mr={},Er=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr,t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},e);switch(t.type){case gr.ADD_ACTIVITY:return n[t.payload.activity.id]=t.payload.activity,n.lastUpdatedAt=Date.now(),n;case gr.ADD_ACTIVITY_ROUTE:return n[t.payload.activity.id].parsedGPX=t.payload.parsedGPX,n;case gr.UPDATE_ROUTE:return n[t.payload.activity.id]=Object.assign({},n[t.payload.activity.id],t.payload.activity),n;default:return e}},Cr={grouped:{active:{completed:[],uncompleted:[]},finished:{completed:[],uncompleted:[]}}},Ir=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cr,t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},e);switch(t.type){case gr.ADD_CHALLENGE:return n[t.payload.challenge.id]=t.payload.challenge,n;case gr.ADD_CHALLENGES:return Object.assign({},n,t.payload.challenges);default:return e}};function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
77t%2?Ar(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dr={country:document.getElementsByTagName("meta")["geo.region"].content,lang:document.getElementsByTagName("html")[0].lang},Lr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case gr.INIT_LOCALIZATION:case gr.ADD_LOCALIZATION:var n=Pr(Pr({},e),t.payload);return n;case gr.UPDATE_LOCALIZATION:return console.warn("This action has not been implemented yet",t.type),e;default:return e}},Or={},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Or,t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},e);switch(t.type){case gr.OPEN_MODAL:return n[t.payload.id]=!0,n;case gr.CLOSE_MODAL:return Object.keys(n).forEach((function(e){n[e]=!1})),n;default:return e}},zr={},Nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zr,t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},e);switch(t.type){case gr.ADD_PROFILE:return n[t.payload.profile.id]=t.payload.profile,n[t.payload.profile.id].activities=[],n[t.payload.profile.id].favorites=[],n[t.payload.profile.id].followers=[],n[t.payload.profile.id].following=[],n;case gr.UPDATE_PROFILE:return n[t.payload.profile.id]=Object.assign({},n[t.payload.profile.id],t.payload.profile),n;default:return e}},Br={id:null,name:null,sessionToken:window.SERVER_DATA.publicSessionToken,email:null,gender:null,isPublic:null,totalDistance:0,totalSpots:0,authMethod:null,authProvider:null,isNew:null},Fr=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:L.INIT}))throw new Error(A(12));if(void 0===n(void 0,{type:L.PROBE_UNKNOWN_ACTION()}))throw new Error(A(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],h=u(c,t);if(void 0===h){t&&t.type;throw new Error(A(14))}i[l]=h,r=r||h!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}({activities:Er,challenges:Ir,localization:Lr,modals:Rr,profiles:Nr,user:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Br,t=arguments.length>1?arguments[1]:void 0,n=Object.assign({},e);switch(t.type){case gr.USER_LOGIN:return n.id=t.payload.id,n.name=t.payload.displayName,n.sessionToken=t.payload.sessionToken,n.email=t.payload.email,n.gender=t.payload.gender,n.isPublic=t.payload.isPublic,n.totalDistance=t.payload.totalDistance,n.totalSpots=t.payload.totalSpots,n.authMethod=t.payload.authMethod,n.authProvider=t.payload.authProvider,n.isNew=t.payload.isNew,localStorage.setItem("suda-store",JSON.stringify({user:n})),n;case gr.USER_LOGOUT:return localStorage.setItem("suda-store",JSON.stringify({user:Br})),Br;default:return e}}}),Vr=window.localStorage.getItem("suda-store")?JSON.parse(window.localStorage.getItem("suda-store")):{};Vr.user&&!Vr.user.id&&Vr.user.sessionToken!==window.SERVER_DATA.publicSessionToken&&(Vr.user.sessionToken=window.SERVER_DATA.publicSessionToken);var jr=R(Fr,Vr,N),Ur=yt,Gr={suda:{id:"suda",defaultMessage:"SUDA Outdoors"},backToHome:{id:"back_to_home",defaultMessage:"Back to home"},aboutUs:{id:"about_us",defaultMessage:"About us"},challenges:{id:"challenges",defaultMessage:"Challenges"},map:{id:"map",defaultMessage:"Map"},blog:{id:"blog",defaultMessage:"Blog"},support:{id:"support",defaultMessage:"Support"},headline:{id:"home_headline",defaultMessage:"Discover your next adventure"},headlineSubtitle:{id:"home_subtitle",defaultMessage:"Find where, with who and how to practice Outdoor sports"},cannotMiss:{id:"home_cannot_miss",defaultMessage:"Can't miss it"},featured:{id:"home_featured",defaultMessage:"Featured routes"},followUsOnSocialMedia:{id:"home_follow_us",defaultMessage:"Follow us on social media"},availableFor:{id:"home_available_for",defaultMessage:"Available for iOS and Android"},download:{id:"home_download",defaultMessage:"Download"},compatibleWith:{id:"home_compatible_with",defaultMessage:"Compatible with:"},loading:{id:"loading",defaultMessage:"Loading"},moreThan:{id:"home_suda_ad_more_than",defaultMessage:"More than"},numberOfRoutes:{id:"home_suda_ad_number_of_routes",defaultMessage:"{routes, number}"},routesTo:{id:"home_suda_ad_routes_to",defaultMessage:"Routes to"},explore:{id:"home_suda_ad_explore",defaultMessage:"EXPLORE"},searchOnMap:{id:"home_search_on_map",defaultMessage:"Search on a map"},kayaking:{id:"sport_kayaking",defaultMessage:"Kayaking"},roadbiking:{id:"sport_roadbiking",defaultMessage:"Road Biking"},wingsuit:{id:"sport_wingsuit",defaultMessage:"Wingsuit"},canopy:{id:"sport_canopy",defaultMessage:"Canopy"},basejump:{id:"sport_basejump",defaultMessage:"Base Jump"},bungee:{id:"sport_bungee",defaultMessage:"Bungee"},slackline:{id:"sport_slackline",defaultMessage:"Slackline"},gliding:{id:"sport_gliding",defaultMessage:"Gliding"},speedflying:{id:"sport_speedflying",defaultMessage:"SpeedFlying"},skydiving:{id:"sport_skydiving",defaultMessage:"Skydiving"},paragliding:{id:"sport_paragliding",defaultMessage:"Paragliding"},skiing:{id:"sport_skiing",defaultMessage:"Skiing"},snowboarding:{id:"sport_snowboarding",defaultMessage:"Snowboarding"},snowshoetrekking:{id:"sport_snowshoetrekking",defaultMessage:"Snowshow Trekking"},running:{id:"sport_running",defaultMessage:"Running"},trailrunning:{id:"sport_trailrunning",defaultMessage:"Trail Running"},mountaneering:{id:"sport_mountaneering",defaultMessage:"Mountaneering"},climbing:{id:"sport_climbing",defaultMessage:"Climbing"},iceclimbing:{id:"sport_iceclimbing",defaultMessage:"Ice Climbing"},horsebackriding:{id:"sport_horsebackriding",defaultMessage:"Horseback Riding"},mountainbiking:{id:"sport_mountainbiking",defaultMessage:"Mountain Biking"},mtbdownhill:{id:"sport_mtbdownhill",defaultMessage:"MTB Downhill"},snowmobile:{id:"sport_snowmobile",defaultMessage:"Snowmobile"},sandboarding:{id:"sport_sandboarding",defaultMessage:"Sandboarding"},mountainboarding:{id:"sport_mountainboarding",defaultMessage:"Mountainboarding"},"4x4offroad":{id:"sport_4x4offroad",defaultMessage:"4x4 off Road"},skate:{id:"sport_skate",defaultMessage:"Skate"},trekking:{id:"sport_trekking",defaultMessage:"Trekking"},backcountryskiing:{id:"sport_backcountryskiing",defaultMessage:"Back Country Skiing"},longboarding:{id:"sport_longboarding",defaultMessage:"Longboarding"}
77,motoenduro:{id:"sport_motoenduro",defaultMessage:"Moto Enduro"},mototurismo:{id:"sport_mototurismo",defaultMessage:"Moto Turismo"},motocross:{id:"sport_motocross",defaultMessage:"Motocross"},rollerskating:{id:"sport_rollerskating",defaultMessage:"Roller Skating"},birdwatching:{id:"sport_birdwatching",defaultMessage:"Bird Watching"},scubadiving:{id:"sport_scubadiving",defaultMessage:"Scuba Diving"},wakeboarding:{id:"sport_wakeboarding",defaultMessage:"Wakeboarding"},waterskiing:{id:"sport_waterskiing",defaultMessage:"Waterskiing"},rafting:{id:"sport_rafting",defaultMessage:"Rafting"},surfing:{id:"sport_surfing",defaultMessage:"Surfing"},kitesurfing:{id:"sport_kitesurfing",defaultMessage:"Kitesurfing"},windsurfing:{id:"sport_windsurfing",defaultMessage:"Windsurfing"},seakayaking:{id:"sport_seakayaking",defaultMessage:"Sea Kayaking"},rowing:{id:"sport_rowing",defaultMessage:"Rowing"},skimboarding:{id:"sport_skimboarding",defaultMessage:"Skimboarding"},standuppaddling:{id:"sport_standuppaddling",defaultMessage:"Stand up Paddling"},fishing:{id:"sport_fishing",defaultMessage:"Fishing"},flyfishing:{id:"sport_flyfishing",defaultMessage:"Fly Fishing"},sailing:{id:"sport_sailing",defaultMessage:"Sailing"},bodyboarding:{id:"sport_bodyboarding",defaultMessage:"Bodyboarding"},hanggliding:{id:"sport_hanggliding",defaultMessage:"Hang Gliding"},bmx:{id:"sport_bmx",defaultMessage:"BMX"},atv:{id:"sport_atv",defaultMessage:"ATV"},quads:{id:"sport_quads",defaultMessage:"Quads"},flowride:{id:"sport_flowride",defaultMessage:"Flowride"},freediving:{id:"sport_freediving",defaultMessage:"Free Diving"},jetski:{id:"sport_jetski",defaultMessage:"Jetski"},camping:{id:"sport_camping",defaultMessage:"Camping"},wildlifewatching:{id:"sport_wildlifewatching",defaultMessage:"Wildlife Watching"}
77,swimming:{id:"sport_swimming",defaultMessage:"Swimming"},plogging:{id:"sport_plogging",defaultMessage:"Plogging"},rv:{id:"sport_rv",defaultMessage:"RV"},walking:{id:"sport_walking",defaultMessage:"Walking"},petwalking:{id:"sport_petwalking",defaultMessage:"Pet Walking"},ebiking:{id:"sport_ebiking",defaultMessage:"E-Biking"},gravelbiking:{id:"sport_gravelbiking",defaultMessage:"Gravel Biking"},activebreaks:{id:"sport_activebreaks",defaultMessage:"Active Breaks"},stairclimbing:{id:"sport_stairclimbing",defaultMessage:"Stair Climbing"},yoga:{id:"sport_yoga",defaultMessage:"Yoga"},pilates:{id:"sport_pilates",defaultMessage:"Pilates"},dancing:{id:"sport_dancing",defaultMessage:"Dancing"},crossfit:{id:"sport_crossfit",defaultMessage:"CrossFit"},hiit:{id:"sport_hiit",defaultMessage:"HIIT"},gym:{id:"sport_gym",defaultMessage:"Gym"},workout:{id:"sport_workout",defaultMessage:"Workout"},weighttraining:{id:"sport_weighttraining",defaultMessage:"Weight Training"},ellipticaltrainer:{id:"sport_ellipticaltrainer",defaultMessage:"Elliptical Trainer"},treadmill:{id:"sport_treadmill",defaultMessage:"Treadmill"},indoorcycling:{id:"sport_indoorcycling",defaultMessage:"Indoor Cycling"},soccer:{id:"sport_soccer",defaultMessage:"Soccer"},tennis:{id:"sport_tennis",defaultMessage:"Tennis"},padel:{id:"sport_padel",defaultMessage:"Padel"},golf:{id:"sport_golf",defaultMessage:"Golf"},volleyball:{id:"sport_volleyball",defaultMessage:"Volleyball"},basketball:{id:"sport_basketball",defaultMessage:"Basketball"},baseball:{id:"sport_baseball",defaultMessage:"Baseball"},hockey:{id:"sport_hockey",defaultMessage:"Hockey"},tabletennis:{id:"sport_tabletennis",defaultMessage:"Table Tennis"},athletics:{id:"sport_athletics",defaultMessage:"Athletics"},martialarts:{id:"sport_martialarts",defaultMessage:"Martial Arts"},boxing:{id:"sport_boxing",defaultMessage:"Boxing"},filterResults:{id:"search_filter_results",defaultMessage:"Filter results"},noResults:{id:"search_no_results",defaultMessage:"Your search returned no results."},seeAllResults:{id:"search_see_all_results",defaultMessage:"See all results"},distanceCovered:{id:"profile_distance_covered",defaultMessage:"{distance, number} {distance, plural, one {km} other {kms}} covered"},favoritesCount:{id:"profile_favorites_count",defaultMessage:"{favorites, number} {favorites, plural, one {favorite} other {favorites}}"},followersCount:{id:"profile_followers_count",defaultMessage:"{followers, number} {followers, plural, one {Follower} other {Followers}}"},followingsCount:{id:"profile_followings_count",defaultMessage:"{followings, number} Following"},activitiesCount:{id:"profile_activities_count",defaultMessage:"{activities, number} published {activities, plural, one {route} other {routes}}"},noActivities:{id:"profile_activities_empty",defaultMessage:"This user does not have any public activities yet"},noPeople:{id:"profile_people_empty",defaultMessage:"This user does not have any public followers yet"},routes:{id:"profile_nav_routes",defaultMessage:"Routes"},favorites:{id:"profile_nav_favorites",defaultMessage:"Favorites"},followers:{id:"profile_nav_followers",defaultMessage:"Followers"},following:{id:"profile_nav_following",defaultMessage:"Following"},loadMore:{id:"load_more",defaultMessage:"Load more"},noMoreResults:{id:"no_more_results",defaultMessage:"No more results"},logIn:{id:"login",defaultMessage:"Log in"},labelEmail:{id:"login_label_email",defaultMessage:"Email"},labelPassword:{id:"login_label_password",defaultMessage:"Password"},loginButton:{id:"login_button",defaultMessage:"Log in"},loginSocial:{id:"login_social",defaultMessage:"Log in to start exploring and living new experiences."},loginEmail:{id:"login_email",defaultMessage:"Or log in with your email"},invalidUsernameAndPassword:{id:"invalid_username_password",defaultMessage:"Invalid username and/or password."},missingEmail:{id:"email_required",defaultMessage:"email is required."},missingPassword:{id:"password_required",defaultMessage:"Password is required."},accountAlreadyExistsForThisUsername:{id:"account_already_exists_for_this_username",defaultMessage:"You have already signed up with this email using another authentication provider. Please try to log in using your email and password."}
77,continueWithFacebook:{id:"continue_with_facebook",defaultMessage:"Continue with Facebook"},continueWithGoogle:{id:"continue_with_google",defaultMessage:"Continue with Google"},logOut:{id:"logout",defaultMessage:"Log out"},difficulty:{id:"activity_difficulty",defaultMessage:"Difficulty"},difficulty_beginner:{id:"activity_difficulty_beginner",defaultMessage:"Beginner"},difficulty_intermediate:{id:"activity_difficulty_intermediate",defaultMessage:"Intermediate"},difficulty_expert:{id:"activity_difficulty_expert",defaultMessage:"Expert"},movingDuration:{id:"activity_moving_time",defaultMessage:"Moving time"},totalDuration:{id:"activity_total_duration",defaultMessage:"Total time"},movingDistance:{id:"activity_moving_distance",defaultMessage:"Moving distance"},pausedDistance:{id:"activity_paused_distance",defaultMessage:"Paused distance"},movingDistanceValue:{id:"activity_moving_distance_value",defaultMessage:"{distance, number} {distance, plural, one {km} other {kms}}"},pausedDistanceValue:{id:"activity_paused_distance_value",defaultMessage:"{distance, number} {distance, plural, one {km} other {kms}}"},avgSpeed:{id:"activity_average_speed",defaultMessage:"Average speed"},avgSpeedValue:{id:"activity_average_speed_value",defaultMessage:"{speed, number} kph"},maxSpeed:{id:"activity_max_speed",defaultMessage:"Max speed"},maxSpeedValue:{id:"activity_max_speed_value",defaultMessage:"{speed, number} kph"},elevationGain:{id:"activity_elevation_gain",defaultMessage:"Elevation gain"},elevationGainValue:{id:"activity_elevation_gain_value",defaultMessage:"{elevation, number} mts"},maxElevation:{id:"activity_max_elevation",defaultMessage:"Max elevation"},maxElevationValue:{id:"activity_max_elevation_value",defaultMessage:"{elevation, number} mts"},startLocation:{id:"activity_start_location",defaultMessage:"Starting location"},downloadActivity:{id:"activity_download",defaultMessage:"Download route"},downloadedActivity:{id:"activity_downloaded",defaultMessage:"We sent you an e-mail with your route"},upload_activity:{id:"upload_activity",defaultMessage:"Upload activity"},days:{id:"challenge_days",defaultMessage:"days"},day:{id:"challenge_day",defaultMessage:"day"},hours:{id:"challenge_hours",defaultMessage:"hours"},hour:{id:"challenge_hour",defaultMessage:"hour"},minutes:{id:"challenge_minutes",defaultMessage:"minutes"},minute:{id:"challenge_minute",defaultMessage:"minute"},seconds:{id:"challenge_seconds",defaultMessage:"seconds"},second:{id:"challenge_second",defaultMessage:"second"},timeLeft:{id:"challenge_time_left",defaultMessage:"{time} left"},comments:{id:"activity_comments",defaultMessage:"{number, number} {number, plural, one {comment} other {comments}}"},noComments:{id:"activity_no_comments",defaultMessage:"No comments yet"},createNewComment:{id:"activity_create_comment",defaultMessage:"To add a new comment log into your account from your phone using SUDA app."},elevation:{id:"chart_elevation",defaultMessage:"Elevation"},followButton:{id:"follow_btn",defaultMessage:"Follow"},pendingButton:{id:"follow_btn_pending",defaultMessage:"Pending request"},followingButton:{id:"follow_btn_accepted",defaultMessage:"Following"},unfollowButton:{id:"follow_btn_unfollow",defaultMessage:"Unfollow"},cancelRequestButton:{id:"follow_btn_cancel",defaultMessage:"Cancel follow request"},search:{id:"search",defaultMessage:"Search"},signUp:{id:"signup",defaultMessage:"Create an account"},termsAndConditionsAgreement:{id:"signup_terms_and_conditions",defaultMessage:"By signing up, you agree to our "},termsAndConditionsLink:{id:"signup_terms_and_conditions",defaultMessage:"Terms and Conditions"},labelName:{id:"signup_label_name",defaultMessage:"Name"},labelRepeatPassword:{id:"signup_label_repeat_password",defaultMessage:"Repeat your password"},signupButton:{id:"signup_button",defaultMessage:"Sign up"},alreadyHaveAnAccountButton:{id:"signup_login_button",defaultMessage:"Already have an account?"},passwordsDoNotMatch:{id:"passwords_do_no_match",defaultMessage:"Passwords do not match."},missingName:{id:"name_required",defaultMessage:"Name is required."},invalidEmail:{id:"invalid_email",defaultMessage:"email is not val
77id."},registeredEmail:{id:"invalid_email",defaultMessage:"There is already an account with this email address."},somethingWentWrong:{id:"something_went_wrong",defaultMessage:"Something went wrong."},signupSocial:{id:"signup_social",defaultMessage:"Sign up to start exploring and living new experiences."},signupEmail:{id:"signup_email",defaultMessage:"Sign up with your email"},weather:{id:"activity_weather",defaultMessage:"Current weather"},loadingWeather:{id:"activity_weather_loading",defaultMessage:"Fetching weather"},temperature:{id:"activity_weather_temperature",defaultMessage:"Temperature:"},temperatureValue:{id:"activity_weather_temperature_value",defaultMessage:"{temperature, number} ºC"},pressure:{id:"activity_weather_pressure",defaultMessage:"Pressure:"},pressureValue:{id:"activity_weather_pressure_value",defaultMessage:"{pressure, number} hPa"},humidity:{id:"activity_weather_humidity",defaultMessage:"Humidity:"},humidityValue:{id:"activity_weather_humidity_value",defaultMessage:"{humidity, number}%"},windSpeed:{id:"activity_weather_wind_speed",defaultMessage:"Wind Speed:"},windSpeedValue:{id:"activity_weather_wind_speed_value",defaultMessage:"{speed, number} kph"},challengesHeading:{id:"challenges_heading",defaultMessage:"Join our SUDA Challenges!"},challengesHeadingSmall:{id:"challenges_heading_small",defaultMessage:"Our brands invite you to participate & win"},userChallenges:{id:"challenges_user_challenges_mine",defaultMessage:"Your challenges"},currentChallenges:{id:"challenges_user_challenges_active",defaultMessage:"Currently active"},pastChallenges:{id:"challenges_user_challenges_past",defaultMessage:"Past challenges"},noUserChallenges:{id:"challenges_no_user_challenges",defaultMessage:"You are not participating in any challenges yet. Select one below to start!"},noCurrentChallenges:{id:"challenges_no_current_challenges",defaultMessage:"There are no challenges going on right now at your location"},noPastChallenges:{id:"challenges_empty_user_challenges",defaultMessage:"You were not subscribed in any past challenges"},anonymousPastChallenges:{id:"challenges_anonymous_past_challenges",defaultMessage:"Sign in to check your past challenges"},peopleJoined:{id:"challenges_user_joined",defaultMessage:"{subscribers, number} {subscribers, plural, one {person has} other {people have}} joined"},completedTag:{id:"challenge_completed_tag",defaultMessage:"Completed"},objectives:{id:"challenge_objectives",defaultMessage:"Objectives"},prizes:{id:"challenge_prizes",defaultMessage:"Prizes"},objectiveAccomplishedBy:{id:"challenge_objective_accomplished",defaultMessage:"{people, number} {people, plural, one {person has} other {people have}} achieved it"},notAccomplished:{id:"challenge_not_accomplished",defaultMessage:"no one has achieved it yet"},joinChallenge:{id:"challenge_join_challenge",defaultMessage:"Do you want to be part of this challenge? Sign up, download the app and start completing the objectives!"},joinChallengeOnlyApp:{id:"challenge_join_challenge_only_app",defaultMessage:"This challenge is only joinable through the app"},joinChallengeButton:{id:"challenge_join_challenge_button",defaultMessage:"Join challenge"},challengeIsNotAvailableInYourCountry:{id:"challenge_is_not_available_in_your_country",defaultMessage:"Unfortunately this challenge is not available in your country."},challengeAlreadyJoined:{id:"challenge_already_joined",defaultMessage:"You already joined this challenge and have completed {completedTasks, number} out of {totalTasks, number} tasks."},challengeCompleted:{id:"challenge_completed",defaultMessage:"You have completed this challenge."},aboutTheAuthor:{id:"about_the_author",defaultMessage:"About the author"},leaderboard:{id:"leaderboard",defaultMessage:"Leaderboard"},winnersList:{id:"leaderboard_winners_list",defaultMessage:"Prize winners"},finishersList:{id:"leaderboard_finishers_list",defaultMessage:"These users completed the challenge"},finishersListForDistance:{id:"leaderboard_finishers_list_for_distance",defaultMessage:"These users have accumulated distance"},finishersListForElevationGain:{id:"leaderboard_finishers_list_for_elevation_gain",defaultMessage:"The
77se users have accumulated elevation"},finishersListForRouteCount:{id:"leaderboard_finishers_list_for_route_count",defaultMessage:"These users have accumulated routes"},finishersListForMovingTime:{id:"leaderboard_finishers_list_for_moving_time",defaultMessage:"These users have accumulated moving time"},likes:{id:"activity_likes",defaultMessage:"{likes, number} {likes, plural, one {like} other {likes}}"},socialShareFacebook:{id:"social_share_facebook",defaultMessage:"Share on Facebook"},recommendedProducts:{id:"activity_recommended_products",defaultMessage:"Recommended products"},learnMore:{id:"learn_more",defaultMessage:"Learn more"},sponsoredBy:{id:"activity_sponsored_by",defaultMessage:"Sponsored by"},emptyLeaderboard:{id:"leaderboard_empty",defaultMessage:"No one has completed this challenge yet."},accumulatedDistance:{id:"leaderboard_accumulated_distance",defaultMessage:"{distance, number} km in {routes, number} {routes, plural, one {route} other {routes}}"},accumulatedElevationGain:{id:"leaderboard_accumulated_elevation_gain",defaultMessage:"{distance, number} m in {routes, number} {routes, plural, one {route} other {routes}}"},accumulatedRouteCount:{id:"leaderboard_accumulated_route_count",defaultMessage:"{routes, number} {routes, plural, one {route} other {routes}}"},accumulatedMovingTime:{id:"leaderboard_accumulated_moving_time",defaultMessage:"{hours} in total"},completedOn:{id:"leaderboard_completed_at",defaultMessage:"Completed on {date}"},leaderboardFinisher:{id:"leaderboard_finisher",defaultMessage:"Finalista"},loadingLeaderboard:{id:"leaderboard_loading",defaultMessage:"Fetching finishers..."},searchLocation:{id:"map_search_location",defaultMessage:"Search places"},whatIsSuda:{id:"about_us_what_is",defaultMessage:"What is SUDA"},whatIsSudaDesc:{id:"about_us_the_app",defaultMessage:"SUDA motivates you to live new experiences in contact with nature. You can discover and share routes for more than 30 outdoors sports. Follow routes without internet connection."},whatIsSudaMission:{id:"about_us_our_mission",defaultMessage:"SUDA has a real interest in getting people outdoors, to make you aware of what lies in the heart of nature, and protect it. We are the most important outdoor community in Latam, where thousands are inspiring others to find their next adventure."},howDoesItWork:{id:"about_us_heading_2",defaultMessage:"How does it work?"},aboutUsRoutes:{id:"about_us_subheading_2_1",defaultMessage:"ROUTES"},aboutUsRoutesDesc:{id:"about_us_paragraph_2_1",defaultMessage:"Record, save and share your routes and adventures. Find new routes created by other users, download them in your smartphone and use them offline."},aboutUsCommunity:{id:"about_us_subheading_2_2",defaultMessage:"COMMUNITY"},aboutUsCommunityDesc:{id:"about_us_paragraph_2_2",defaultMessage:"Find new friends and join a community with more than 100K people. Share your achievements and keep in touch with what other sportspeople are doing."},aboutUsChallenges:{id:"about_us_subheading_2_3",defaultMessage:"CHALLENGES"},aboutUsChallengesDesc:{id:"about_us_paragraph_2_3",defaultMessage:"Get involved in different contest modes, test yourself in group Challenges and win!"},getItNow:{id:"about_us_get_it_now",defaultMessage:"Get it now"},partners:{id:"about_us_partners",defaultMessage:"Partners"},learnmore:{id:"inapp_learnmore",defaultMessage:"Learn more"},cookiesConsentMessage:{id:"cookies_consent_message"},cookiesConsentAccept:{id:"cookies_consent_accept"}};function qr(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Hr=function(e){function t(){return tt()(this,t),qr(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){this.setTitle()}},{key:"componentWillUnmount",value:function(){this.unsetTitle()}},{key:"setTitle",value:function(){this.props.noSuffix?document.title=this.props.title:document.title="".concat(this.props.title," - ").concat("SUDA Outdoors")}},{key:"unsetTitle",value:function(){document.title="SUDA Outdoors"}},{key:"render",value:function(){return this.setTitle(),null}}])}(l.a.PureComponent);Qe()(Hr,"propTypes",{title:m.a.string.isRequired,noSuffix:m.a.bool}),Qe()(Hr,"defaultProps",{noSuffix:!1});var Wr,Zr,Yr,Xr=Hr,Kr=Xe.d.span(Wr||(Wr=p()(["\n  & > i {\n    ","\n\n    ","\n  }\n"])),(function(e){return e.isBrand&&Object(Xe.c)(Zr||(Zr=p()(["\n        font-family: 'Font Awesome 5 Brands';\n      "])))}),(function(e){return e.suda&&Object(Xe.c)(Yr||(Yr=p()(["\n        font-size: 2em;\n      "])))})),$r=function(e){var t=e.type,n=e.spin,r=e.isBrand,i=e.suda;return i?l.a.createElement(Kr,{isBrand:r,suda:i},l.a.createElement("i",{className:"suda-icon-".concat(t)})):l.a.createElement(Kr,{isBrand:r},l.a.createElement("i",{className:"fas fa-".concat(t," ").concat(n?"fa-spin":"")}))};
77$r.propTypes={type:m.a.string.isRequired,spin:m.a.bool,isBrand:m.a.bool,suda:m.a.bool},$r.defaultProps={spin:!1,isBrand:!1,suda:!1};var Jr=$r,Qr=Jr,ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ti(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ni(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ri=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},ii=function(e){function t(){var n,r;ti(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=ni(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!ri(e)){e.preventDefault();var t=r.context.router.history,n=r.props,i=n.replace,o=n.to;i?t.replace(o):t.push(o)}},ni(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);k()(this.context.router,"You should not use <Link> outside a <Router>"),k()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,o="string"==typeof t?be(t,null,null,i.location):t,a=i.createHref(o);return l.a.createElement("a",ei({},r,{onClick:this.handleClick,href:a,ref:n}))},t}(l.a.Component);ii.propTypes={onClick:m.a.func,target:m.a.string,replace:m.a.bool,to:m.a.oneOfType([m.a.string,m.a.object]).isRequired,innerRef:m.a.oneOfType([m.a.string,m.a.func])},ii.defaultProps={replace:!1},ii.contextTypes={router:m.a.shape({history:m.a.shape({push:m.a.func.isRequired,replace:m.a.func.isRequired,createHref:m.a.func.isRequired}).isRequired}).isRequired};var oi,ai,si,li,ui,ci,hi,pi,di,fi,mi,gi,yi,vi,_i,xi,bi,wi,Si,ki,Ti,Mi,Ei,Ci,Ii=ii,Ai=Xe.d.button(oi||(oi=p()(["\n  font-size: 1em;\n  background: transparent;\n  border: none;\n  cursor: pointer;\n  padding: 10px;\n  border-radius: 2px;\n\n  ","\n\n  ","\n"])),(function(e){return e.primary&&Object(Xe.c)(ai||(ai=p()(["\n      background: ",";\n      color: #fff;\n      &:disabled {\n        background: ",";\n        color: ",";\n        border: solid thin ",";\n      }\n    "])),e.theme.colors.main,e.theme.colors.button.disabled.background,e.theme.colors.button.disabled.color,e.theme.colors.button.disabled.borderColor)}),(function(e){return e.fullWidth&&"width: 100%;"})),Pi=Object(Xe.d)(Ai)(si||(si=p()(["\n  padding: 0;\n  background: none;\n  border: 0;\n  cursor: pointer;\n"]))),Di=Object(Xe.d)(Ai)(li||(li=p()(["\n  padding: 0;\n  color: ",";\n"])),(function(e){return e.theme.colors.main})),Li=Xe.d.section(ui||(ui=p()(["\n  &:not(:last-of-type) {\n    margin-bottom: 20px;\n  }\n"]))),Oi=Xe.d.div(ci||(ci=p()(["\n  flex: ","%;\n  max-width: ","%;\n  margin-right: ",";\n\n  &:last-of-type {\n    margin-right: 0;\n  }\n\n  @media (max-width: ",") {\n    max-width: 100%;\n    margin-right: 0;\n\n    &:not(:last-of-type) {\n      margin-bottom: 20px;\n    }\n  }\n"])),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.media.small})),Ri=Xe.d.div(hi||(hi=p()(["\n  display: flex;\n  margin: ","\n    "," 0\n    ",";\n  margin-bottom: ",";\n\n  @media (max-width: ",") {\n    flex-direction: column;\n  }\n"])),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.general.horizontalSeparation}),(function(e){return e.theme.general.horizontalSeparation}),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.media.small})),zi=Xe.d.div(pi||(pi=p()(["\n  padding: ",";\n  background: ",";\n  margin-bottom: ",";\n\n  ","\n\n  &:last-of-type {\n    margin-bottom: 0;\n  }\n"])),(function(e){return e.theme.card.padding}),(function(e){return e.theme.card.background}),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.simple&&"padding: 0;"})),Ni=(Xe.d.div(di||(di=p()(["\n  padding: calc("," / 2)\n    ",";\n  background: ",";\n  color: #fff;\n\n  i {\n    font-size: 1.25rem;\n    margin-right: 6px;\n    color: ",";\n  }\n\n  span {\n    vertical-align: top;\n    margin-top: 3px;\n    display: inline-block;\n  }\n"])),(function(e){return e.theme.general.padding}),(function(e){return e.theme.general.padding}),(function(e){return e.theme.colors.main}),(function(e){return e.theme.colors.secondary})),Xe.d.div(fi||(fi=p()(["\n  padding: "," ",";\n"])),(function(e){return e.theme.general.padding}),(function(e){return e.theme.general.padding}
77))),Bi=Xe.d.div(mi||(mi=p()(["\n  white-space: pre-line;\n"]))),Fi=Xe.d.h1(gi||(gi=p()(["\n  font-size: 2em;\n  font-weight: 900;\n  color: ",";\n  margin-bottom: 20px;\n"])),(function(e){return e.theme.colors.heading})),Vi=Object(Xe.d)(Fi)(yi||(yi=p()(["\n  font-size: 1.5em;\n  margin-bottom: 10px;\n"]))),ji=(Object(Xe.d)(Fi)(vi||(vi=p()(["\n  font-size: 3em;\n"]))),Xe.d.h1(_i||(_i=p()(["\n  font-size: 1.5em;\n  margin-bottom: 5px;\n"])))),Ui=Xe.d.h2(xi||(xi=p()(["\n  font-size: 1em;\n  margin-bottom: 5px;\n  color: ",";\n"])),(function(e){return e.theme.colors.fontSecondary})),Gi=Xe.d.div(bi||(bi=p()(["\n  display: inline-block;\n  overflow: hidden;\n  height: ","px;\n  width: ","px;\n  border-radius: 50%;\n  background: url(https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/missing.png) no-repeat;\n\n  ","\n\n  background-position: 50% 50%;\n  background-size: cover;\n\n  ","\n  ","\n\n  img {\n    max-width: 100%;\n  }\n"])),(function(e){return e.size}),(function(e){return e.size}),(function(e){return e.src&&"background: url(".concat(e.src,") no-repeat;")}),(function(e){return e.square&&"border-radius: 0;"}),(function(e){return e.border&&"border: 4px solid ".concat(e.theme.colors.main,";")})),qi=Xe.d.div(wi||(wi=p()(["\n  width: 90%;\n  border-bottom: 1px solid ",";\n  margin: 20px 0;\n  margin-left: 5%;\n"])),(function(e){return e.theme.colors.border})),Hi=Object(Xe.d)(Ii)(Si||(Si=p()(["\n  display: inline-block;\n  text-decoration: none;\n  color: ",";\n  ","\n"])),(function(e){return e.theme.colors.main}),(function(e){return e.small&&"font-size: small;"})),Wi=Xe.d.nav(ki||(ki=p()(["\n  display: flex;\n\n  ul:last-of-type:not(:first-child, .right) {\n    margin-right: auto;\n  }\n\n  ul.right {\n    margin-left: auto;\n  }\n\n  ul li {\n    display: inline-block;\n\n    &:not(:last-of-type) {\n      margin-right: 20px;\n    }\n  }\n"]))),Zi=Xe.d.li(Ti||(Ti=p()(["\n  color: ",";\n  cursor: pointer;\n  ","\n"])),(function(e){return e.theme.colors.main}),(function(e){return e.active&&"font-weight: 600;"})),Yi=Xe.d.div(Mi||(Mi=p()(["\n  width: 100%;\n  height: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"])),(function(e){return e.height})),Xi=Xe.d.div(Ei||(Ei=p()(["\n  background: #cacbcc;\n  text-align: center;\n  padding: 5px;\n  box-shadow: inset 0px 10px 22px -10px #333, inset 0px -5px 22px -10px #333;\n\n  ul {\n    display: flex;\n    justify-content: center;\n\n    li:not(:last-child) {\n      margin-right: 20px;\n    }\n  }\n\n  li {\n    position: relative;\n    width: 140px;\n    min-height: 50px;\n    max-height: 70px;\n\n    img {\n      max-width: 140px;\n      position: absolute;\n      bottom: 0;\n      left: 0;\n    }\n  }\n\n  @media (max-width: ",") {\n    ul.devices {\n      flex-direction: column;\n      align-items: center;\n    }\n\n    ul.devices li {\n      margin: 0;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),Ki=Xe.d.div(Ci||(Ci=p()(["\n  background: url(https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/footer.png) no-repeat\n    260px;\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-end;\n  padding: 20px 40px;\n\n  section > div {\n    margin-bottom: 10px;\n  }\n\n  section div:nth-child(1) {\n    div {\n      display: inline-block;\n    }\n\n    h1 {\n      font-size: 1.5em;\n      line-height: 22px;\n      margin: 0;\n      margin-left: 10px;\n    }\n\n    img {\n      width: 70px;\n    }\n  }\n\n  section div:nth-child(2) {\n    img {\n      width: 120px;\n    }\n\n    img:not(:last-child) {\n      margin-right: 10px;\n    }\n  }\n\n  ul {\n    display: flex;\n    margin-top: 10px;\n  }\n\n  li {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: ",";\n    font-size: 1.3em;\n    padding: 5px;\n    width: 25px;\n    height: 25px;\n    border-radius: 50%;\n\n    &:not(:last-child) {\n      margin-right: 10px;\n    }\n\n    a {\n      color: #fff;\n    }\n\n    i {\n      font-weight: 300;\n    }\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;
77\n    align-items: flex-start;\n    background-position: 185px 70px;\n  }\n"])),(function(e){return e.theme.colors.main}),(function(e){return e.theme.media.small}));var $i=function(e){var t=e.intl;return l.a.createElement("footer",null,l.a.createElement(Xi,{id:"supported-devices"},l.a.createElement(Ri,null,l.a.createElement(Oi,{width:100},l.a.createElement("span",null,t.formatMessage(Gr.compatibleWith)),l.a.createElement("ul",{className:"devices"},l.a.createElement("li",{style:{maxHeight:"140px",minHeight:"140px",minWidth:"140px"}},l.a.createElement("img",{alt:"Adidas Running app",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/adidas_running.svg"})),l.a.createElement("li",null,l.a.createElement("img",{alt:"Garmin",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/garmin.png"})),l.a.createElement("li",null,l.a.createElement("img",{alt:"Polar",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/polar.png"})),l.a.createElement("li",null,l.a.createElement("img",{alt:"Strava",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/strava.png"})),l.a.createElement("li",null,l.a.createElement("img",{alt:"Suunto",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/suunto.svg"})))))),l.a.createElement(Ki,null,l.a.createElement("section",null,l.a.createElement("div",null,l.a.createElement("div",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda.svg",alt:"SUDA"})),l.a.createElement("div",null,l.a.createElement(Fi,null,t.formatMessage(Gr.download)),l.a.createElement(Fi,null,t.formatMessage(Gr.suda)))),l.a.createElement("div",null,l.a.createElement("a",{href:"https://m.suda.io/download-ios",target:"_blank",rel:"noopener noreferrer"},l.a.createElement("img",{alt:"Download",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/stores/appstore.svg"})),l.a.createElement("a",{href:"https://m.suda.io/download-android",target:"_blank",rel:"noopener noreferrer"},l.a.createElement("img",{alt:"Download",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/stores/googleplay.svg"}))),l.a.createElement("div",null,function(){var e=function(e,t){return l.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:e},t)},t=_r(),n="es"===t?{terms:"https://sudaoutdoors.com/policies/terms/",privacy:"https://sudaoutdoors.com/policies/privacy/"}:{terms:"https://sudaoutdoors-com.translate.goog/policies/terms/?_x_tr_sl=es&_x_tr_tl=en&_x_tr_hl=es&_x_tr_pto=wapp",privacy:"https://sudaoutdoors-com.translate.goog/policies/privacy/?_x_tr_sl=es&_x_tr_tl=en&_x_tr_hl=es&_x_tr_pto=wapp"},r="es"===t?["Ver","Términos","y","Política de Privacidad"]:["See","Terms","and","Privacy Policy"];return l.a.createElement("span",null,r[0]," ",e(n.terms,r[1])," ",r[2]," ",e(n.privacy,r[3]),".")}())),l.a.createElement("section",null,l.a.createElement("span",null,t.formatMessage(Gr.followUsOnSocialMedia)),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.instagram.com/sudaoutdoors",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Qr,{type:"instagram",isBrand:!0}))),l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.facebook.com/sudaoutdoors",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Qr,{type:"facebook",isBrand:!0}))),l.a.createElement("li",null,l.a.createElement("a",{href:"https://twitter.com/sudaoutdoors",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Qr,{type:"twitter",isBrand:!0}))),l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.youtube.com/c/sudaoutdoors",target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Qr,{type:"youtube",isBrand:!0})))))))};$i.propTypes={intl:gn.isRequired};var Ji,Qi,eo,to,no=Dn($i),ro=Xe.d.div(Ji||(Ji=p()(["\n  h1 {\n    margin: 10px 0;\n    color: ",";\n  }\n\n  p {\n    margin-bottom: ",";\n  }\n\n  img.phones {\n    max-width: 100%;\n  }\n\n  .aboutus-text {\n    display: flex;\n\n    div:first-child {\n      display: flex;\n      flex-direction: column;\n      justify-content: flex-end;\n\n      img {\n        width: 80px;\n        margin-bottom: 20px;\n        margin-right: 5px;\n      }\n    }\n  }\n"])),(function(e){return e.theme.colors.main}),"20px"),io=Xe.d.nav(Qi||(Qi=p()(["\n  display: flex;\n  justify-content: center;\n  width: 100%;\n  height: ",";\n  font-size: 1.2em;\n\n  ul {\n    display: flex;\n    flex-grow: 1;\n    flex-basis: 200px;
77\n    align-items: flex-end;\n    height: ",";\n    padding-bottom: 40px;\n    box-sizing: border-box;\n\n    li {\n      display: flex;\n      align-items: center;\n      height: 25px;\n      white-space: nowrap;\n\n      a {\n        color: ",";\n        text-decoration: none;\n      }\n\n      &:not(:last-child) {\n        margin-right: ",";\n\n        &::after {\n          content: '';\n          border-right: 1px solid ",";\n          margin-left: ",";\n          height: 25px;\n        }\n      }\n    }\n\n    &:first-child {\n      justify-content: flex-end;\n      margin-right: ",";\n    }\n\n    &:last-child {\n      margin-left: ",";\n    }\n  }\n\n  & > div img {\n    margin-top: 20px;\n    width: 150px;\n    filter: invert(11%) sepia(7%) saturate(6066%) hue-rotate(175deg) brightness(25%) contrast(104%);\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;\n    margin-bottom: 100px;\n\n    & > div {\n      order: 1;\n      text-align: center;\n      margin-top: 80px;\n    }\n\n    & > ul.nav-links {\n      order: 2;\n      justify-content: center;\n      padding: 0;\n      margin: 0;\n\n      &:first-child {\n        margin-top: 30px;\n        margin-bottom: 30px;\n      }\n    }\n  }\n"])),"150px","150px","#404040","20px","#404040","20px","20px","20px",(function(e){return e.theme.media.small})),oo=Xe.d.ul(eo||(eo=p()(["\n  display: flex;\n  justify-content: center;\n\n  li:not(:last-child) {\n    margin-right: ",";\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;\n    align-items: center;\n  }\n"])),"20px",(function(e){return e.theme.media.small})),ao=Xe.d.div(to||(to=p()(["\n  display: flex;\n  justify-content: center;\n  margin-top: 40px;\n\n  a {\n    text-decoration: none;\n    background: #bd0600;\n    color: #fff;\n    padding: 10px;\n    font-size: 1.2em;\n  }\n"])));function so(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var lo=function(e){return function(t){function n(){return tt()(this,n),so(this,n,arguments)}return ut()(n,t),rt()(n,[{key:"render",value:function(){var t=this.props;return l.a.createElement(e,t)}}])}(l.a.PureComponent)},uo=function(e){var t=e.intl;return l.a.createElement(ro,null,l.a.createElement(Xr,{title:t.formatMessage(Gr.aboutUs)}),l.a.createElement(io,null,l.a.createElement("ul",{className:"nav-links"},l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.aboutUs},t.formatMessage(Gr.aboutUs))),l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.map},t.formatMessage(Gr.routes)))),l.a.createElement("div",null,l.a.createElement(Hi,{to:Xp.root},l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_white.svg",alt:"SUDA"}))),l.a.createElement("ul",{className:"nav-links"},l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.challenge.index},t.formatMessage(Gr.challenges))),l.a.createElement("li",null,l.a.createElement("a",{href:Xp.blog,target:"_blank",rel:"noopener noreferrer"},t.formatMessage(Gr.blog))))),l.a.createElement(Ri,null,l.a.createElement(Oi,{width:10}),l.a.createElement(Oi,{width:80},l.a.createElement(Fi,null,t.formatMessage(Gr.whatIsSuda)),l.a.createElement("p",null,t.formatMessage(Gr.whatIsSudaDesc)),l.a.createElement("p",null,t.formatMessage(Gr.whatIsSudaMission)),l.a.createElement(Fi,null,t.formatMessage(Gr.howDoesItWork))),l.a.createElement(Oi,{width:10})),l.a.createElement(Ri,null,l.a.createElement(Oi,{width:10}),l.a.createElement(Oi,{width:40},l.a.createElement("img",{className:"phones",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/aboutus-phones-new.png",alt:""})),l.a.createElement(Oi,{width:40},l.a.createElement("div",{className:"aboutus-text"},l.a.createElement("div",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/icons/route.svg",alt:""})),l.a.createElement("div",null,l.a.createElement(Fi,null,t.formatMessage(Gr.aboutUsRoutes)),l.a.createElement("p",null,t.formatMessage(Gr.aboutUsRoutesDesc)))),l.a.createElement("div",{className:"aboutus-text"},l.a.createElement("div",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/icons/search.svg",alt:""})),l.a.createElement("div",null,l.a.createElement(Fi,null,t.formatMessage(Gr.aboutUsCommunity)),l.a.createElement("p",null,t.formatMessage(Gr.aboutUsCommunityDesc)))),l.a.createElement("div",{className:"aboutus-text"},l.a.createElement("div",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/icons/trophy.svg",alt:""})),l.a.createElement("div",null,l.a.createElement(Fi,null,t.formatMessage(Gr.aboutUsChallenges)),l.a.createElement("p",null,t.formatMessage(Gr.aboutUsChallengesDesc)))),l.a.createElement(ao,null,l.a.createElement("a",{href:"https://m.suda.io/download-now",target:"_blank",rel:"noopener noreferrer"},t.formatMessage(Gr.getItNow)))),l.a.createElement(Oi,{width:10})),l.a.createElement(Ri,null,l.a.createElement(Oi,{width:10}),l.a.createElement(Oi,{width:80},l.a.createElement(Fi,null,t.formatMessage(Gr.partners)),l.a.createElement(oo,null,l.a.createElement("li",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/patagonia.png",alt:"Patagonia"})),l.a.createElement("li",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/subaru.png",alt:"Subaru"})),l.a.createElement("li",null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/brands/gatorade.png",alt:"Gatorade"})))),l.a.createElement(Oi,{width:10})),l.a.createElement(no,null))};uo.propTypes={intl:gn.isRequired};var co=Dn(lo(uo)),ho={},po=0,fo=function(e){var t=e,n=ho[t]||(ho[t]={});if(n[e])return n[e];var r=Ve.a.compile(e);return po<1e4&&(n[e]=r,po++),r},mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("/"===e)return e;var n=fo(e);return n(t,{pretty:!0})},go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function yo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vo(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var _o=function(e){function t(){return yo(this,t),vo(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){k()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=be(e.to),n=be(this.props.to);we(t,n)?Ie()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?mo(n,t.params):go({},n,{pathname:mo(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(l.a.Component);_o.propTypes={computedMatch:m.a.object,push:m.a.bool,from:m.a.string,to:m.a.oneOfType([m.a.string,m.a.object]).isRequired},_o.defaultProps={push:!1},_o.contextTypes={router:m.a.shape({history:m.a.shape({push:m.a.func.isRequired,replace:m.a.func.isRequired}).isRequired,staticContext:m.a.object}).isRequired};var xo=_o;function bo(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var wo=function(e){function t(e){var n;return tt()(this,t),n=bo(this,t,[e]),Qe()(n,"state",{didRequest:!1,redirect:{toChallengeObjectId:"",referrerCode:""}}),n.requester=new mr("challengeTaskReferrer"),n.fetchReferrerData=n.fetchReferrerData.bind(n),n}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:(r=i()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchReferrerData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"fetchReferrerData",value:(n=i()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.location.pathname.split("/").slice(-1),e.next=3,this.requester.challengeReferrerData(t);case 3:if(n=e.sent){e.next=6;break}return e.abrupt("return");case 6:if(n.challengeTaskReferrer){e.next=8;break}return e.abrupt("return");case 8:r={didRequest:!0,redirect:{toChallengeObjectId:n.challengeTaskReferrer.challengeObjectId,referrerCode:t}},this.setState(r);case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){if(!this.state.didRequest)return"Redirecting...";var e=this.state.redirect.toChallengeObjectId,t=e?pr(Xp.challenge.show,{id:e}):Xp.challenge.index,n=e?"?referrerCode=".concat(this.state.redirect.referrerCode):"";return l.a.createElement(xo,{to:{pathname:t,search:n}})}}]);var n,r}(l.a.Component);Qe()(wo,"propTypes",{analytics:At.isRequired});var So,ko=Pt(wo),To=n(254),Mo=n.n(To),Eo=m.a.shape({comment:m.a.string,author:m.a.shape({avatar:m.a.shape({url:m.a.string}),name:m.a.string,timeSincePublished:m.a.string})}),Co=m.a.shape({id:m.a.string,name:m.a.string,difficulty:m.a.number,isPublic:m.a.bool,sportKey:m.a.string,updatedAt:m.a.string,createdAt:m.a.string,detail:m.a.string,startAltitude:m.a.numbre,startLocation:m.a.shape({latitude:m.a.number,longitude:m.a.number}),totalDuration:m.a.number,totalDistance:m.a.number,movingDistance:m.a.number,movingDuration:m.a.number,deviceTotalDistance:m.a.number,deviceTotalDuration:m.a.number,mainPictureURL:m.a.string,routeFile:m.a.string,totalLikes:m.a.number,isFeatured:m.a.bool,timelineScore:m.a.number,score:m.a.number,countryCode:m.a.string,regionArea1:m.a.string,regionArea2:m.a.string,regionArea3:m.a.string,author:m.a.shape({id:m.a.string,name:m.a.string,avatar:m.a.string,isAmbassador:m.a.bool,createdActivitiesCount:m.a.number,totalDistance:m.a.number,followerCount:m.a.number,followingCount:m.a.number}),images:m.a.arrayOf(m.a.shape({wayPointType:m.a.number,wayPointTypeStatus:m.a.string,thumbnail:m.a.string,picture:m.a.string,location:m.a.shape({latitude:m.a.number,longitude:m.a.number})})),comments:m.a.arrayOf(Eo)}),Io=.01745329251,Ao=n(31),Po=Xe.d.div(So||(So=p()(["\n  display: flex;\n  justify-content: center;\n  margin-top: ",";\n  text-align: center;\n\n  i {\n    font-size: 2rem;\n    margin-bottom: 20px;\n  }\n"])),(function(e){return e.theme.general.sectionSeparation}));function Do(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Lo=function(e){function t(){return tt()(this,t),Do(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){return l.a.createElement(Po,null,l.a.createElement(zi,null,l.a.createElement(Qr,{spin:!0,type:"spinner"}),l.a.createElement("h2",null,this.props.intl.formatMessage(Gr.loading))))}}])}(l.a.PureComponent);Qe()(Lo,"propTypes",{intl:gn.isRequired});var Oo,Ro,zo,No,Bo=Dn(Lo),Fo=n(27),Vo=n.n(Fo),jo=Xe.d.div(Oo||(Oo=p()(["\n  border-radius: 4px;\n  overflow: hidden;\n  background: #fff;\n  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);\n"]))),Uo=Xe.d.button(Ro||(Ro=p()(["\n  :focus {\n    outline: none;\n  }\n  ::-moz-focus-inner {\n    border: 0;\n  }\n  display: inline-block;\n  height: 30px;\n  border: 0;\n  padding: 8px;\n  outline: none;\n  box-sizing: border-box;\n  cursor: pointer;\n  background-color: transparent;\n  ","\n"])),(function(e){return e.active&&Object(Xe.c)(zo||(zo=p()(["\n      background-color: #ddd;\n    "])))}));function Go(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var qo=function(e){function t(e){var n;return tt()(this,t),n=Go(this,t,[e]),Qe()(n,"state",{active:""}),n.state.active=n.props.initialStyle,n}return ut()(t,e),rt()(t,[{key:"onAdd",value:function(e){return this._map=e,this._container=document.createElement("div"),this._container.className="mapboxgl-ctrl",c.a.render(l.a.createElement(t,this.props),this._container),this._container}}
77,{key:"onRemove",value:function(){this._container.parentNode.removeChild(this._container),this._map=void 0}},{key:"onButtonClickedFactory",value:function(e){var t=this;return function(){t.state.active!==e&&(t.setState({active:e}),t.props.onStyleChanged(e),window.localStorage.setItem("default-map-style",e))}}},{key:"renderButtons",value:function(){var e=this;return t.SUPPORTED_STYLES.map((function(t){return l.a.createElement(Uo,{key:t.id,type:"button",onClick:e.onButtonClickedFactory(t.id),active:e.state.active===t.id},t.label)}))}},{key:"render",value:function(){return l.a.createElement(jo,null,this.renderButtons())}}],[{key:"getDefaultStyle",value:function(){var e=window.localStorage.getItem("default-map-style");return e&&this.SUPPORTED_STYLES.some((function(t){return t.id===e}))?e:"suda-vector"}},{key:"getMapStyle",value:function(e){if("suda-vector"===e)return"https://tiles.geo.suda.io/styles/suda-dark-v3/style.json";if("satellite"===e)return"mapbox://styles/mapbox/satellite-streets-v9?optimize=true";if("suda-raster"===e)return{version:8,glyphs:"https://tiles.geo.suda.io/fonts/{fontstack}/{range}.pbf",sources:{"raster-tiles":{type:"raster",tiles:["https://tiles-geo.sudacdn.net/styles/suda-dark-v2/{z}/{x}/{y}.jpg"],tileSize:256,attribution:'<a href="https://suda.io" target="_blank">© SUDA Outdoors</a> | <a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap contributors</a>'}},layers:[{id:"raster-tiles",type:"raster",source:"raster-tiles",minzoom:0,maxzoom:17}]};throw new Error("Unsupported style: ".concat(e))}}])}(l.a.Component);No=qo,Qe()(qo,"SUPPORTED_STYLES",[{id:"suda-vector",label:"Terreno"},{id:"satellite",label:"Satélite"}]),Qe()(qo,"propTypes",{initialStyle:m.a.string,onStyleChanged:m.a.func.isRequired}),Qe()(qo,"defaultProps",{initialStyle:No.getDefaultStyle()});var Ho,Wo,Zo=qo,Yo=n(81),Xo=Xe.d.div(Ho||(Ho=p()(["\n  margin-bottom: 1em;\n"]))),Ko=Xe.d.button(Wo||(Wo=p()(["\n  float: right;\n  font-size: 21px;\n  font-weight: 700;\n  line-height: 1;\n  color: #000;\n  text-shadow: 0 1px 0 #fff;\n  filter: alpha(opacity=20);\n  opacity: .2;\n\n  -webkit-appearance: none;\n  padding: 0;\n  cursor: pointer;\n  background: 0 0;\n  border: 0;\n\n  margin-top: -10px;\n  margin-bottom: 5px;\n\n  &:focus, &:hover {\n    text-decoration: none;\n    cursor: pointer;\n    filter: alpha(opacity=50);\n    opacity: .5;\n  }\n"])));function $o(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}Yo.defaultStyles.content=Object.assign({},Yo.defaultStyles.content,{maxWidth:"550px",left:"auto",right:"auto",top:"auto",bottom:"auto",textAlign:"center",zIndex:100}),Yo.defaultStyles.overlay=Object.assign({},Yo.defaultStyles.overlay,{backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:99});var Jo=function(e){function t(){return tt()(this,t),$o(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){var e=this.props;return l.a.createElement(Yo,e,l.a.createElement(Ko,{onClick:e.onRequestClose},"×"),e.header&&l.a.createElement(Xo,null,e.header),e.children)}}])}(l.a.Component);Qe()(Jo,"propTypes",{header:m.a.node,ariaHideApp:m.a.bool}),Qe()(Jo,"defaultProps",{header:null,ariaHideApp:!1});var Qo,ea,ta=Jo,na="https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/markers",ra=Xe.d.div(Qo||(Qo=p()(["\n  height: ","px;\n  position: relative;\n  overflow: hidden;\n\n  & > div {\n    height: ","px;\n  }\n\n  * {\n    outline: none;\n  }\n\n  .start-marker {\n    position: absolute;\n    top: -25px;\n    left: 3px;\n    ","\n    width: 50px;\n    height: 60px;\n    z-index: 1;\n    background-size: contain;\n  }\n\n  .start-marker.walking {\n    width: 52px;\n    height: 64px;\n  }\n\n  ","\n"])),(function(e){return e.height}),(function(e){return e.height}),(function(e){return e.startIcon&&"background: url(".concat(na,"/").concat(e.startIcon,") no-repeat;")}),(function(e){return e.images&&e.images.map((function(e,t){return"\n    .
77image-marker-".concat(t," {\n      position: absolute;\n      width: 48px;\n      height: 48px;\n      border: solid 2px white;\n      border-radius: 50%;\n      background-color: gray;\n      background: url(").concat(e.thumbnail,");\n      background-size: cover;\n      cursor: pointer;\n    }\n\n    .image-marker-").concat(t,"-waypoint-type-").concat(e.wayPointType,"-").concat(e.wayPointTypeStatus," {\n      position: absolute;\n      width: 40px;\n      height: 53px;\n      background-color: gray;\n      background: url(").concat(na,"/waypoints/waypoint-type-marker-").concat(e.wayPointType,"-").concat(e.wayPointTypeStatus,".png);\n      background-size: cover;\n      cursor: pointer;\n      left: -20px;\n      top: -24px;\n    }\n  ")})).join("")})),ia=Xe.d.img(ea||(ea=p()(["\n  max-height: 85vh;\n  max-width: 100%;\n"])));function oa(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}Vo.a.accessToken=window.SERVER_DATA.mapboxToken;var aa=function(e){function t(e){var n;return tt()(this,t),n=oa(this,t,[e]),Qe()(n,"state",{isModalOpen:!1,image:null}),n.onModalClose=n.onModalClose.bind(n),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this,t=[this.props.longitude,this.props.latitude];this.map=new Vo.a.Map({container:this.container,style:Zo.getMapStyle(Zo.getDefaultStyle()),center:t,zoom:10,attributionControl:!1}),this.map.addControl(new Zo({onStyleChanged:function(t){e.map._loaded=!1,e.map.once("load",(function(){e.paintRouteInMap(e.coordinates)})),e.map.setStyle(Zo.getMapStyle(t))}}),"top-right"),this.map.addControl(new Vo.a.NavigationControl),this.map.addControl(new Vo.a.FullscreenControl),this.map.addControl(new Vo.a.AttributionControl({compact:!0}),"bottom-left"),this.startLocationMarker=this.addMarker([this.props.longitude,this.props.latitude],"start-marker ".concat(this.props.sportKey?this.props.sportKey.toLowerCase():"")),this.paintImageMarkers(this.props.images)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props;if(n.images!==e.images&&this.paintImageMarkers(n.images),n.latitude===e.latitude&&n.longitude===e.longitude||this.startLocationMarker.setLngLat([n.longitude,n.latitude]),n.gpx!==e.gpx)if(n.gpx){var r=function(){t.coordinates=t.getCoordinatesArrayFromGPX(n.gpx.gpx),t.cleanRouteFromMap(),t.paintRouteInMap(t.coordinates),t.centerMapToRoute(t.coordinates)};this.map.loaded()?r():this.map.once("load",(function(){r()}))}else this.cleanRouteFromMap()}},{key:"componentWillUnmount",value:function(){this.map.remove(),clearInterval(this.lineAnimation)}},{key:"onModalClose",value:function(){this.setState({isModalOpen:!1,image:null})}},{key:"getGeoJSONForCoordinates",value:function(e){return{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:e[0].length>1?"LineString":"Point",coordinates:e}}]}}},{key:"getCoordinatesArrayFromGPX",value:function(e){return e?Array.isArray(e.trk.trkseg)?e.trk.trkseg.map((function(e){return Array.isArray(e.trkpt)?e.trkpt.map((function(e){return[e.attributes.lon,e.attributes.lat]})):[[e.trkpt.attributes.lon,e.trkpt.attributes.lat]]})).reduce((function(e,t){return e.concat(t)})):e.trk.trkseg.trkpt.map((function(e){return[e.attributes.lon,e.attributes.lat]})):[]}},{key:"updateElevationMarker",value:function(e){if(this.coordinates&&e.dataIndex){var t=this.coordinates[e.dataIndex];this.elevationMarker?this.elevationMarker.setLngLat(t):this.elevationMarker=this.addMarker(t)}else this.elevationMarker&&!e.dataIndex&&(this.elevationMarker.remove(),this.elevationMarker=null)}},{key:"addMarker",value:function(e,t,n){var r;t&&((r=document.createElement("span")).className=t,n&&r.addEventListener("click",n));var i=new Vo.a.Marker(r).setLngLat(e);return i.addTo(this.map),i}},{key:"addLineLayer",value:function(e,t,n){null==this.map.getLayer(e)&&this.map.addLayer({id:e,type:"line",source:t,layout:{"line-cap":"round","line-join":"round"},paint:n})}},{key:"centerMapToRoute",value:function(e){var t=e.reduce((function(e,t){return e.extend(t)}),new Vo.a.LngLatBounds(e[0],e[0]));this.map.fitBounds(t,{padding:80})}},{key:"animateLine",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,r=[[0,4,3],[1,4,2],[2,4,1],[3,4,0],[0,1,3,3],[0,2,3,2],[0,3,3,1]],i=0;this.lineAnimation=setInterval((function(){i=(i+1)%r.length,t.map.setPaintProperty(e,"line-dasharray",r[i])}),n)}},{key:"paintRouteInMap",value:function(e){var t=this.props,n=this.getGeoJSONForCoordinates(e),r="activity-geojson";this.map.addSource(r,{type:"geojson",data:n}),this.addLineLayer("activity-route-border",r,{"line-color":t.theme.colors.main,"line-width":7,"line-opacity":.8}),this.addLineLayer("activity-route",r,{"line-color":t.theme.map.routeC
77olor,"line-width":5,"line-opacity":1}),this.addLineLayer("activity-route-direction",r,{"line-color":t.theme.map.routeColor,"line-width":5,"line-dasharray":[0,4,3]})}},{key:"cleanRouteFromMap",value:function(){var e=this;["activity-route-border","activity-route","activity-route-direction"].forEach((function(t){null!=e.map.getLayer(t)&&e.map.removeLayer(t)}));null!=this.map.getSource("activity-geojson")&&this.map.removeSource("activity-geojson")}},{key:"paintImageMarkers",value:function(e){var t=this;this.cleanImageMarkers(),e&&(this.imageMarkers=[],e.forEach((function(e,n){if(e.location){var r=t.addMarker([e.location.longitude,e.location.latitude],"image-marker-".concat(n),(function(){return t.setState({isModalOpen:!0,image:e})}));if(t.imageMarkers.push(r),1!==e.wayPointType){var i=t.addMarker([e.location.longitude,e.location.latitude],"image-marker-".concat(n,"-waypoint-type-").concat(e.wayPointType,"-").concat(e.wayPointTypeStatus),(function(){return t.setState({isModalOpen:!0,image:e})}));t.imageMarkers.push(i)}}})))}},{key:"cleanImageMarkers",value:function(){this.imageMarkers&&(this.imageMarkers.forEach((function(e){return e.remove()})),this.imageMarkers=null)}},{key:"render",value:function(){var e=this,t={isOpen:this.state.isModalOpen,onRequestClose:this.onModalClose};return l.a.createElement(ra,{height:this.props.height,startIcon:this.props.icon,images:this.props.images},l.a.createElement("div",{ref:function(t){e.container=t}}),l.a.createElement(ta,t,this.state.image&&l.a.createElement(ia,{src:this.state.image.picture})))}}])}(l.a.Component);Qe()(aa,"propTypes",{latitude:m.a.number.isRequired,longitude:m.a.number.isRequired,icon:m.a.string,
77sportKey:m.a.string,images:m.a.arrayOf(m.a.shape({wayPointType:m.a.number,wayPointTypeStatus:m.a.string,thumbnail:m.a.string,picture:m.a.string,location:m.a.shape({latitude:m.a.number,longitude:m.a.number})}))}),Qe()(aa,"defaultProps",{sportKey:null,icon:null,images:null});var sa,la=Object(Xe.e)(aa),ua=function(e){return"0".concat(e).slice(-2)},ca=function(e){var t=Number(e)%60,n=Math.floor(Number(e)/60),r=Math.floor(n/60),i=Math.floor(r/24),o="".concat(ua(r%24),":").concat(ua(n%60),":").concat(ua(t));return i?"".concat(i,"d ").concat(o):o},ha=function(e,t){var n=Number(e)%60,r=Math.floor(Number(e)/60),i=Math.floor(r/60),o=Math.floor(i/24);return o?o>1?"".concat(o," ").concat(t[0][0]):"".concat(o," ").concat(t[0][1]):i?i>1?"".concat(i," ").concat(t[1][0]):"".concat(i," ").concat(t[1][1]):r?r>1?"".concat(r," ").concat(t[2][0]):"".concat(r," ").concat(t[2][1]):n>1?"".concat(n," ").concat(t[3][0]):"".concat(n," ").concat(t[3][1])},pa=Xe.d.div(sa||(sa=p()(["\n  li {\n    display: inline-block;\n    width: 20%;\n    height: 72px;\n    padding: ",";\n    box-sizing: border-box;\n\n    i {\n      width: 25px;\n      text-align: center;\n      font-size: 1.5rem;\n      margin-right: 5px;\n      color: ",";\n      font-size: 2em;\n    }\n\n    div {\n      display: inline-block;\n\n      span {\n        display: block;\n\n        &:first-of-type {\n          font-weight: 600;\n          font-size: 1.1em;\n        }\n\n        &:last-of-type {\n          color: ",";\n        }\n      }\n    }\n  }\n\n  @media (max-width: ",") {\n    li {\n      width: 50%;\n    }\n  }\n\n  @media (max-width: ",") {\n    li {\n      width: 100%;\n    }\n  }\n"])),(function(e){return e.theme.general.padding}),(function(e){return e.theme.colors.main}),(function(e){return e.theme.colors.fontSecondary}),(function(e){return e.theme.media.medium}),(function(e){return e.theme.media.small}));function da(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var fa=function(e){function t(){return tt()(this,t),da(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getActivityInformation",value:function(){var e=this.props;return activityInformation.map((function(t){return e.activity[t.key]?l.a.createElement("li",{key:t.key},l.a.createElement(Qr,{type:t.icon}),l.a.createElement("div",null,l.a.createElement("span",null,e.activity[t.key]),l.a.createElement("span",null,e.intl.formatMessage(Gr[t.key])))):null}))}},{key:"renderSpotStatistics",value:function(){var e,t,n=this.props,r=n.activity,i=n.intl;return r.startLocation&&!Number.isNaN(r.startLocation.latitude)&&(e=r.startLocation.latitude.toFixed(6),t=r.startLocation.longitude.toFixed(6)),l.a.createElement(l.a.Fragment,null,e&&t&&l.a.createElement("li",null,l.a.createElement(Qr,{type:"map-marker"}),l.a.createElement("div",null,l.a.createElement("span",null,"".concat(e,", ").concat(t)),l.a.createElement("span",null,i.formatMessage(Gr.startLocation)))))}},{key:"renderTrackStatistics",value:function(){var e=this.props,t=e.activity,n=e.intl;return l.a.createElement(l.a.Fragment,null,t.movingDuration&&!Number.isNaN(t.movingDuration)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"time"}),l.a.createElement("div",null,l.a.createElement("span",null,ca(t.movingDuration)),l.a.createElement("span",null,n.formatMessage(Gr.movingDuration)))),t.totalDuration&&!Number.isNaN(t.totalDuration)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"time"}),l.a.createElement("div",null,l.a.createElement("span",null,ca(t.totalDuration)),l.a.createElement("span",null,n.formatMessage(Gr.totalDuration)))),t.movingDistance&&!Number.isNaN(t.movingDistance)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"distance"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.movingDistanceValue,{distance:parseFloat(t.movingDistance).toFixed(2)})),l.a.createElement("span",null,n.formatMessage(Gr.movingDistance)))),t.pausedDistance&&!Number.isNaN(t.pausedDistance)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"distance"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.pausedDistanceValue,{distance:parseFloat(t.pausedDistance).toFixed(2)})),l.a.createElement("span",null,n.formatMessage(Gr.pausedDistance)))),t.statistics.avgSpeed&&!Number.isNaN(t.statistics.avgSpeed)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"speed"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.avgSpeedValue,{speed:parseFloat(t.statistics.avgSpeed).toFixed(1)})),l.a.createElement("span",null,n.formatMessage(Gr.avgSpeed)))),t.statistics.maxSpeed&&!Number.isNaN(t.statistics.maxSpeed)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"speed"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.maxSpeedValue,{speed:parseFloat(t.statistics.maxSpeed).toFixed(1)})),l.a.createElement("span",null,n.formatMessage(Gr.maxSpeed)))),t.statistics.elevationGain&&!Number.isNaN(t.statistics.elevationGain)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"total-elevation"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.elevationGainValue,{elevation:parseFloat(t.statistics.elevationGain).toFixed(1)})),l.a.createElement("span",null,n.formatMessage(Gr.elevationGain)))),t.statistics.maxElevation&&!Number.isNaN(t.statistics.maxElevation)&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"maximum-elevation"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr.maxElevationValue,{elevation:parseFloat(t.statistics.maxElevation).toFixed(1)})),l.a.createElement("span",null,n.formatMessage(Gr.maxElevation)))))}},{key:"render",value:function(){var e=this.props,t=e.activity,n=e.intl,r=t.sportKeyActivityType;return l.a.createElement(pa,null,l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"difficulty"}),l.a.createElement("div",null,l.a.createElement("span",null,n.formatMessage(Gr["difficulty_".concat(Ao.difficulties[t.difficulty])])),l.a.createElement("span",null,n.formatMessage(Gr.difficulty)))),"track"===r?this.renderTrackStatistics():this.renderSpotStatistics()))}}])}(l.a.PureComponent);
77Qe()(fa,"propTypes",{activity:Co.isRequired,intl:gn.isRequired});var ma,ga=Dn(fa),ya=Xe.d.div(ma||(ma=p()(["\n  overflow: hidden;\n  position: relative;\n  width: 100%;\n\n  ul {\n    display: flex;\n    flex-wrap: nowrap;\n    overflow-x: auto;\n    overflow-y: hidden;\n  }\n\n  li{\n    flex: 0 0 auto;\n    \n    &:not(:last-of-type) {\n      margin-right: 5px;\n    }\n  }\n\n  & > * {\n    display: inline-block;\n  }\n"])));function va(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var _a,xa,ba=function(e){function t(){return tt()(this,t),va(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getChildren",value:function(){return this.props.children.map((function(e,t){return l.a.createElement("li",{key:t}," ",e)}))}},{key:"render",value:function(){return l.a.createElement(ya,null,l.a.createElement("ul",null,this.getChildren()))}}])}(l.a.Component),wa=Xe.d.span(_a||(_a=p()(["\n  cursor: pointer;\n  display: inline-block;\n  background: url(",") no-repeat 50% 50%;\n  background-size: cover;\n  height: 256px;\n  width: 256px;\n"])),(function(e){return e.src})),Sa=Xe.d.img(xa||(xa=p()(["\n  max-height: 85vh;\n  max-width: 100%;\n"])));function ka(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Ta=function(e){function t(e){var n;return tt()(this,t),n=ka(this,t,[e]),Qe()(n,"state",{isModalOpen:!1,image:null}),n.onModalClose=n.onModalClose.bind(n),n}return ut()(t,e),rt()(t,[{key:"onImageClickedFactory",value:function(e){var t=this;return function(){t.setState({isModalOpen:!0,image:e})}}},{key:"onModalClose",value:function(){this.setState({isModalOpen:!1,image:null})}},{key:"render",value:function(){var e=this,t=this.props.images.map((function(t,n){return l.a.createElement(wa,{src:t.thumbnail,onClick:e.onImageClickedFactory(t),key:n})})),n={isOpen:this.state.isModalOpen,onRequestClose:this.onModalClose};return l.a.createElement(l.a.Fragment,null,l.a.createElement(ba,null,t),l.a.createElement(ta,n,this.state.image&&l.a.createElement(Sa,{src:this.state.image.picture})))}}])}(l.a.PureComponent);Qe()(Ta,"propTypes",{images:m.a.arrayOf(m.a.object)}),Qe()(Ta,"defaultProps",{images:[]});var Ma,Ea,Ca,Ia=Ta,Aa=Xe.d.ul(Ma||(Ma=p()(["\n  display: flex;\n  align-items: center;\n  height: 32px;\n\n  button   {\n    cursor: pointer;\n  }\n\n  li:not(:last-child) {\n    margin-right: 10px;\n\n    &::after {\n      content: '';\n      display: inline-block;\n      border-right: 1px solid ",";\n      height: 10px;\n      padding-left: 10px;\n    }\n  }\n"])),(function(e){return e.theme.colors.heading})),Pa=Xe.d.li(Ea||(Ea=p()(["\n  display: flex;\n  align-items: center;\n\n  i {\n    color: #f1483e;\n    margin-right: 5px;\n  }\n"]))),Da=Xe.d.li(Ca||(Ca=p()(["\n  i {\n    margin-right: 10px;\n  }\n\n  button {\n    background: #3b5998;\n    border-radius: 3px;\n    font-weight: 600;\n    padding: 5px 8px;\n    color: #fff;\n    border: none;\n  }\n\n  button:hover {\n    background: #213a6f;\n  }\n"])));function La(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Oa=function(e){function t(){var e;return tt()(this,t),(e=La(this,t)).onLikeClicked=e.onLikeClicked.bind(e),e.onShareClicked=e.onShareClicked.bind(e),e}return ut()(t,e),rt()(t,[{key:"onLikeClicked",value:function(){this.props.onLikeClicked()}},{key:"onShareClicked",value:function(e){var t="http://www.facebook.com/sharer.php?u=".concat(encodeURI(window.location));window.open(t,document.title,"width=600, height=400"),e.preventDefault()}},{key:"render",value:function(){var e=this.props;return l.a.createElement(Aa,null,l.a.createElement(Pa,null,l.a.createElement(Pi,{onClick:this.onLikeClicked},l.a.createElement(Qr,{suda:!0,type:e.liked?"heart-filled":"heart"})),l.a.createElement("span",null,e.intl.formatMessage(Gr.likes,{likes:e.totalLikes}))),l.a.createElement(Da,null,l.a.createElement("button",{type:"button",onClick:this.onShareClicked},l.a.createElement(Qr,{isBrand:!0,type:"facebook-f"}),e.intl.formatMessage(Gr.socialShareFacebook))))}}])}(l.a.PureComponent);
77Qe()(Oa,"propTypes",{onLikeClicked:m.a.func.isRequired,liked:m.a.bool,totalLikes:m.a.number,intl:gn.isRequired}),Qe()(Oa,"defaultProps",{liked:!1,totalLikes:0});var Ra,za,Na,Ba,Fa,Va,ja=Dn(Oa),Ua=Xe.d.div(Ra||(Ra=p()(["\n  position: relative;\n\n  & > h1:first-of-type {\n    margin-bottom: 15px;\n  }\n"]))),Ga=Xe.d.div(za||(za=p()(["\n  & > div {\n    display: inline-block;\n  }\n\n  & > div:first-of-type {\n    position: absolute;\n    left: 0;\n  }\n\n  &:not(:last-of-type) {\n    margin-bottom: 20px;\n  }\n"]))),qa=Xe.d.div(Na||(Na=p()(["\n  font-weight: 600;\n"]))),Ha=Xe.d.div(Ba||(Ba=p()(["\n  vertical-align: top;\n  padding-left: 65px;\n"]))),Wa=Object(Xe.d)(Ui)(Fa||(Fa=p()(["\n  margin-bottom: 8px;\n"]))),Za=Xe.d.div(Va||(Va=p()(["\n  text-align: center;\n"])));function Ya(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Xa=function(e){function t(){return tt()(this,t),Ya(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"renderComments",value:function(){var e=this.props,t=e.comments;return 0===e.comments.length?l.a.createElement(Ui,null,e.intl.formatMessage(Gr.noComments)):(t=t.map((function(t){var n=t.author,r=pr(Xp.profile.show,{id:n.id}),i=l.a.createElement(Gi,{size:50,border:!0});return n.avatar&&(i=l.a.createElement(Gi,{size:50,src:n.avatar.url,border:!0})),l.a.createElement(Ga,{key:t.id},l.a.createElement("div",null,l.a.createElement(Hi,{to:r},i)),l.a.createElement(Ha,null,l.a.createElement(Hi,{to:r},l.a.createElement(qa,null,n.name)),l.a.createElement(Wa,null,e.intl.formatRelative(t.createdAt)),l.a.createElement("p",null,t.comment)))})),l.a.createElement(l.a.Fragment,null,t,l.a.createElement(Za,null,l.a.createElement(Ui,null,e.intl.formatMessage(Gr.createNewComment)))))}},{key:"render",value:function(){var e=this.props;return l.a.createElement(Ua,null,l.a.createElement(ji,null,e.intl.formatMessage(Gr.comments,{number:e.comments.length})),this.renderComments())}}])}(l.a.PureComponent);Qe()(Xa,"propTypes",{comments:m.a.arrayOf(Eo).isRequired,intl:gn.isRequired});var Ka,$a=Dn(Xa),Ja=Xe.d.ul(Ka||(Ka=p()(["\n  li {\n    display: flex;\n\n    &:not(:last-child) {\n      border-bottom: 1px solid ",";\n      margin-bottom: 5px;\n      padding-bottom: 5px;\n    }\n\n    span + span {\n      vertical-align: super;\n    }\n\n    span:last-child {\n      margin-left: auto;\n    }\n\n    i {\n      margin-right: 5px;\n      width: 15px;\n      font-size: 1.7em;\n    }\n  }\n"])),(function(e){return e.theme.colors.heading}));function Qa(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var es=function(e){function t(e){var n;return tt()(this,t),(n=Qa(this,t)).state={},n.request=new mr("weather",e.store.user),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n={url:dr.weather.today.url,body:{latitude:t.latitude,longitude:t.longitude,units:"metric"},method:"GET"};this.request.send(n).then((function(t){e.setState({weather:t})}))}},{key:"renderLoading",value:function(){return l.a.createElement(Ui,null,this.props.intl.formatMessage(Gr.loadingWeather))}},{key:"renderWeatherInformation",value:function(){var e=this.props,t=this.state.weather;return l.a.createElement(Ja,null,l.a.createElement("li",null,l.a.createElement("span",null,l.a.createElement(Qr,{suda:!0,type:"temperature"}),l.a.createElement("span",null,e.intl.formatMessage(Gr.temperature))),l.a.createElement("span",null,e.intl.formatMessage(Gr.temperatureValue,{temperature:t.temp}))),l.a.createElement("li",null,l.a.createElement("span",null,l.a.createElement(Qr,{suda:!0,type:"pressure"}),l.a.createElement("span",null,e.intl.formatMessage(Gr.pressure))),l.a.createElement("span",null,e.intl.formatMessage(Gr.pressureValue,{pressure:t.pressure}))),l.a.createElement("li",null,l.a.createElement("span",null,l.a.createElement(Qr,{suda:!0,type:"humidity"}),l.a.createElement("span",null,e.intl.formatMessage(Gr.humidity))),l.a.createElement("span",null,e.intl.formatMessage(Gr.humidityValue,{humidity:t.humidity}))),l.a.createElement("li",null,l.a.createElement("span",null,l.a.createElement(Qr,{suda:!0,type:"wind"}),l.a.createElement("span",null,e.intl.formatMessage(Gr.windSpeed))),l.a.createElement("span",null,e.intl.formatMessage(Gr.windSpeedValue,{speed:t.wind.speed}))))}},{key:"render",value:function(){var e=this.state;return l.a.createElement(zi,null,e.weather?this.renderWeatherInformation():this.renderLoading())}}])}(l.a.PureComponent);Qe()(es,"propTypes",{intl:gn.isRequired});var ts,ns=Dn(le(St.weather)(es)),rs=n(155),is=n.n(rs),os=Xe.d.div(ts||(ts=p()(["\n  & > div {\n    width: 100%;\n    height: 250px;\n\n    max-width: 500px;\n    height: 150px;\n\n    @media (max-width: ",") {\n      display: none;\n    }\n  }\n"])),(function(e){return e.theme.media.small}));function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ls=function(e){function t(){var e;return tt()(this,t),(e=ss(this,t)).onElevationChanged=e.onElevationChanged.bind(e),e}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=this.canvas,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.prepareData());Math.max(document.documentElement.clientWidth,window.innerWidth||0)>e.theme.media.small.slice(0,-2)&&(this.chart=is.a.init(t),this.chartData=n,this.chart.setOption(this.chartData))}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props;if(this.chart&&t.elevation.length){var n=this.calculateElevationBounds(t.elevation);this.chartData.series[0].data=t.elevation,this.chartData.xAxis.data=t.xAxis.map((function(e){return e.toFixed(1)})),this.chartData.yAxis.min=n.min,this.chartData.yAxis.max=n.max,this.chart.setOption(this.chartData),this.chart.on("globalout",(function(){e.props.onSelectedElevationChanged({value:void 0,dataIndex:void 0})}))}}},{key:"onElevationChanged",value:function(e){var t=this.props,n=e[0],r=n.value,i=n.dataIndex;return this.props.onSelectedElevationChanged({dataIndex:i,value:r}),"".concat(t.intl.formatMessage(Gr.elevation),"<br />").concat(r," mts")}},{key:"calculateElevationBounds",value:function(e){return{min:Math.min.apply(Math,Ot()(e)),max:Math.max.apply(Math,Ot()(e))}}},{key:"prepareData",value:function(){var e=this.props;return{title:{padding:0},legend:{show:!1},grid:{bottom:20,top:5,left:60,right:10},tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]},formatter:this.onElevationChanged},xAxis:{data:[],axisLine:{lineStyle:{color:"#fff"}}},yAxis:{axisLine:{lineStyle:{color:"#fff"}}},series:[{type:"line",smooth:!0,itemStyle:{color:e.theme.colors.secondary},areaStyle:{color:new is.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:e.theme.colors.secondary},{offset:1,color:e.theme.colors.main}])},data:[e.bounds.max]}]}}},{key:"render",value:function(){var e=this;return l.a.createElement(os,null,l.a.createElement("div",{ref:function(t){e.canvas=t}}))}}])}(l.a.PureComponent);Qe()(ls,"propTypes",{elevation:m.a.arrayOf(m.a.number),xAxis:m.a.arrayOf(m.a.number),bounds:m.a.shape({min:m.a.number,max:m.a.number}).isRequired,onSelectedElevationChanged:m.a.func.isRequired,intl:gn.isRequired}),Qe()(ls,"defaultProps",{elevation:[],xAxis:[]});var us=Dn(Object(Xe.e)(ls));function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var hs=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({colors:{main:"#146784",mainShadow:"#125870",secondary:"#53c2d8",tertiary:"#f1c40f",font:"#404040",fontSecondary:"#777",border:"#d8d8d8",borderDark:"#b7b7b7",error:"#a94442",errorBackground:"#f2dede",errorBorder:"#ebccd1",button:{disabled:{background:"#eee",color:"#666",borderColor:"#bbb"}},heading:"#404040"}},{general:{verticalSeparation:"10px",horizontalSeparation:"40px",padding:"20px",sectionSeparation:"20px"},body:{background:"#f6f6f6"},header:{background:"#fff",borderColor:"#d8d8d8"},card:{background:"#fff",padding:"20px"},avatar:{size:"40px"},modal:{size:{small:"300px",auto:"auto"}},media:{small:"768px",medium:"1024px"},map:{routeColor:"#f1c40f",routeDirectionColor:"yellow"},challenges:{carouselHeight:"200px"},search:{result:{background:"#fff",size:"80"}}});function ps(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ds=function(e){function t(e){var n;return tt()(this,t),(n=ps(this,t,[e])).state={hasError:!1},n}
77return ut()(t,e),rt()(t,[{key:"componentDidCatch",value:function(e,t){console.error("Error caught in ErrorBoundary:",e,t)}},{key:"render",value:function(){return this.state.hasError?l.a.createElement("div",null):l.a.createElement("div",null,this.props.children)}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}])}(s.Component);function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ys,vs,_s=function(e){function t(e){var n;return tt()(this,t),(n=gs(this,t,[e])).adRef=l.a.createRef(),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this,t=document.createElement("script");t.async=!0,t.crossOrigin="anonymous",t.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4747166220096565",t.onload=function(){if(window.adsbygoogle&&e.adRef.current)try{window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({})}catch(e){console.error("Error loading AdSense:",e)}},document.body.appendChild(t)}},{key:"render",value:function(){var e=this.props,t=e.client,n=e.slot,r=e.format,i=void 0===r?"auto":r,o=e.responsive,a=void 0===o?"true":o,s=e.adStyle,u=void 0===s?{}:s;return l.a.createElement("ins",{className:"adsbygoogle",style:ms({display:"block"},u),"data-ad-client":t,"data-ad-slot":n,"data-ad-format":i,"data-full-width-responsive":a,ref:this.adRef})}}])}(s.Component),xs=function(e){return l.a.createElement(ds,null,l.a.createElement(_s,e))},bs=Xe.d.div(ys||(ys=p()(["\n  img {\n    max-width: 115px;\n  }\n\n  img:first-child:not(:last-of-type) {\n    max-width: 30px;\n    margin-bottom: 4px;\n  }\n\n  @media screen and (max-width: ",") {\n    & {\n      text-align: center;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),ws=Xe.d.div(vs||(vs=p()(["\n  display: flex;\n  justify-content: center;\n\n  img {\n    filter: invert(11%) sepia(7%) saturate(6066%) hue-rotate(175deg) brightness(25%) contrast(104%);\n  }\n"])));function Ss(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ks=function(e){function t(){return tt()(this,t),Ss(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getLogo",value:function(){return this.props.complete?l.a.createElement(ws,null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_white.svg",alt:"SUDA"})):l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_text.svg",alt:"SUDA"})}},{key:"render",value:function(){var e=this.props,t=this.getLogo();return l.a.createElement(bs,null,e.static?t:l.a.createElement(Hi,{to:Xp.root},t))}}])}(l.a.PureComponent);Qe()(ks,"propTypes",{static:m.a.bool,complete:m.a.bool}),Qe()(ks,"defaultProps",{static:!1,complete:!1});var Ts=ks,Ms=n(97),Es=n.n(Ms);var Cs,Is,As,Ps,Ds,Ls,Os,Rs,zs=function(e,t,n){var r;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=this,l=function(){r=null,n||e.apply(s,o)},u=n&&!r;clearTimeout(r),r=setTimeout(l,t),u&&e.apply(s,o)}},Ns=Xe.d.div(Cs||(Cs=p()(["\n  display: flex;\n  background: ",";\n  height: ","px;\n\n  ","\n\n  a {\n    width: 100%;\n    display: flex;\n  }\n"])),(function(e){return e.theme.search.result.background}),(function(e){return e.theme.search.result.size}),(function(e){return e.small&&Object(Xe.c)(Is||(Is=p()(["\n      height: ","px;\n    "])),e.theme.search.result.size/2)})),Bs=Xe.d.div(As||(As=p()(["\n  width: 100%;\n  overflow: hidden;\n  white-space: nowrap;\n  padding-top: 10px;\n\n  ","\n\n  a, p {\n    text-overflow: ellipsis;\n    overflow: hidden;\n  }\n\n  p {\n    min-height: 18px;\n  }\n\n  span {\n    font-weight: 600;\n  }\n\n  div > span:not(:last-child) {\n    margin-right: 5px;\n  }\n"])),(function(e){return e.small&&Object(Xe.c)(Ps||(Ps=p()(["\n      padding: 0;\n    "])))})),Fs=Xe.d.div(Ds||(Ds=p()(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: ","px;\n  width: ","px;\n  margin-right: 10px;\n\n  img {\n    width: ","px;\n    height: ","px;\n  }\n\n  ","\n"])),(function(e){return e.theme.search.result.size}),(function(e){return e.theme.search.result.size}),(function(e){return e.theme.search.result.size}),(function(e){return e.theme.search.result.size}),(function(e){return e.small&&Object(Xe.c)(Ls||(Ls=p()(["\n      width: ","px;\n      height: ","px;\n\n      img {\n        width: ","px;\n        height: ","px;\n      }\n    "])),e.theme.search.result.size/2,e.theme.search.result.size/2,e.theme.search.result.size/2,e.theme.search.result.size/2)})),Vs=Xe.d.div(Os||(Os=p()(["\n  height: ","px;\n  width: ","px;\n  box-sizing: border-box;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: #aaaeb7;\n  border-radius: 50%;\n  font-size: 2.4em;\n  color: #636f7d;\n  border: 8px solid #fff;\n  margin-right: 10px;\n\n  ","\n"])),(function(e){return e.theme.search.result.size}),(function(e){return e.theme.search.result.size}
77),(function(e){return e.small&&Object(Xe.c)(Rs||(Rs=p()(["\n      width: ","px;\n      height: ","px;\n      font-size: 1.4em;\n      border: none;\n    "])),e.theme.search.result.size/2,e.theme.search.result.size/2)}));function js(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Us="Activity",Gs="Person",qs="ContentView",Hs=function(e){function t(){return tt()(this,t),js(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"renderActivity",value:function(e){var t=this.props,n=e.sportKey.toLowerCase(),r=pr(window.SERVER_DATA.url.activityTile,{userId:t.store.user.id?t.store.user.id:"guest",width:200,height:200,id:e.id});return e.mainPictureThumb256URL&&(r=e.mainPictureThumb256URL),l.a.createElement(Ns,{small:t.small,key:e.id},l.a.createElement(Hi,{to:pr(Xp.activity.show,{id:e.id})},l.a.createElement(Fs,{small:t.small},l.a.createElement("img",{alt:e.name,src:r})),l.a.createElement(Bs,{small:t.small},l.a.createElement("span",null,e.name),l.a.createElement(Ui,null,t.intl.formatMessage(Gr[n])),l.a.createElement("p",null,e.detail))))}},{key:"renderPerson",value:function(e){var t=this.props;return l.a.createElement(Ns,{small:t.small,key:e.id},l.a.createElement(Hi,{to:pr(Xp.profile.show,{id:e.id})},l.a.createElement("div",null,l.a.createElement(Fs,{small:t.small},l.a.createElement(Gi,{size:t.small?28:55,border:!0,src:e.avatar}))),l.a.createElement(Bs,{small:t.small},l.a.createElement("span",null,e.name),l.a.createElement("div",null,l.a.createElement("span",null,t.intl.formatMessage(Gr.followersCount,{followers:e.followersCount})),l.a.createElement("span",null,t.intl.formatMessage(Gr.followingsCount,{followings:e.followingCount}))))))}},{key:"renderContentView",value:function(e){var t=this.props;return l.a.createElement(Ns,{small:t.small,key:e.id},l.a.createElement(Hi,{to:pr(Xp.mapQuery,{lng:e.regionCenterLongitude,lat:e.regionCenterLatitude,z:12})},l.a.createElement("div",null,l.a.createElement(Vs,{small:t.small},l.a.createElement(Qr,{type:"map-marker"}))),l.a.createElement(Bs,{small:t.small},l.a.createElement("span",null,e.name),l.a.createElement(Ui,null,e.contextName))))}},{key:"render",value:function(){switch(this.props.type){case Us:return this.renderActivity(this.props.content);case Gs:return this.renderPerson(this.props.content);case qs:return this.renderContentView(this.props.content);default:return null}}}])}(l.a.Component);Qe()(Hs,"propTypes",{type:m.a.string.isRequired,small:m.a.bool,intl:gn.isRequired}),Qe()(Hs,"defaultProps",{small:!1});var Ws,Zs,Ys=Dn(le(St.search)(Hs)),Xs=Xe.d.div(Ws||(Ws=p()(["\n  position: relative;\n  max-width: 60%;\n\n  input {\n    -webkit-appearance: none;\n    width: 100%;\n    height: 100%;\n    font-size: 1em;\n    padding: 6px;\n    border-radius: 4px;\n    border: 1px solid ",";\n\n    &::-webkit-search-cancel-button {\n      -webkit-appearance: none;\n    }\n\n    &.with-results {\n      border-radius: 4px 4px 0 0;\n      border-bottom: 0;\n    }\n  }\n\n  button.search {\n    position: absolute;\n    top: 6px;\n    right: 10px;\n    font-size: 1.1rem;\n    color: ","\n\n    &:hover {\n      color: ","\n    }\n  }\n\n  @media (max-width: ",") {\n    max-width: 100%;\n\n    input {\n      margin-bottom: ",";\n    }\n\n    button.search {\n      right: 6px;\n    }\n  }\n"])),(function(e){return e.theme.colors.border}),(function(e){return e.theme.colors.border}),(function(e){return e.theme.colors.borderDark}),(function(e){return e.theme.media.small}),(function(e){return e.theme.general.verticalSeparation})),Ks=Xe.d.div(Zs||(Zs=p()(["\n  position: absolute;\n  background: #fff;\n  width: 100%;\n  border: 1px solid ",";\n  border-top: 0;\n  border-radius: 0 0 4px 4px;\n  padding: 6px;\n  box-sizing: border-box;\n\n  ul li:not(:last-child) {\n    margin-bottom: 5px;\n  }\n\n  .all-results {\n    display: flex;\n    justify-content: center;\n  }\n"])),(function(e){return e.theme.colors.border}));function $s(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Js=function(e){function t(e){var n;return tt()(this,t),n=$s(this,t,[e]),Qe()(n,"state",{value:Es.a.parse(n.props.location.search).q||"",results:[],displayResults:!1}),n.request=new mr("search",e.store.user),n.onKeyPressed=n.onKeyPressed.bind(n),n.onSearchButtonClicked=n.onSearchButtonClicked.bind(n),n.searchRoute=n.searchRoute.bind(n),n.shouldDisplayResults=n.shouldDisplayResults.bind(n),n.performSearch=zs(n.performSearch,250),n}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.shouldDisplayResults)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.shouldDisplayResults)}},{key:"onKeyPressed",value:function(e){var t=this,n=this.search.value;this.setState({value:n}),"Enter"===e.key&&n?(this.search.blur(),this.setState({displayResults:!1,results:[]},(function(){t.searchRoute(n)}))):this.props.suggestions&&this.performSearch()}},{key:"onSearchButtonClicked",value:function(){var e=this.search.value;e&&this.props.history.push({pathname:Xp.search,search:"?q=".concat(e)})}},{key:"searchRoute",value:function(){var e=this.state.value;this.props.history.push({pathname:Xp.search,search:"?q=".concat(e)})}},{key:"performSearch",value:function(){var e=this,t=this.state.value;/map/.test(this.props.match.url)?this.request.autocompleteLocations(t).then((function(t){e.setState({results:t})})):this.request.autocomplete(t).then((function(t){e.setState({results:t})}))}},{key:"shouldDisplayResults",value:function(){var e=document.activeElement;this.search===e?this.setState({displayResults:!0}):this.setState({displayResults:!1,results:[]})}},{key:"renderSearchResults",value:function(){var e=this.props,t=this.state;if(t.displayResults){var n=t.results.filter((function(e){return e.content})).map((function(e){var t=e.type,n=e.content;return l.a.createElement("li",{key:n.id},l.a.createElement(Ys,{small:!0,type:t,content:n}))}));return n.length?l.a.createElement(Ks,null,l.a.createElement("ul",null,n,l.a.createElement("li",{className:"all-results"},l.a.createElement(Ai,{onClick:this.searchRoute},e.intl.formatMessage(Gr.seeAllResults))))):null}return null}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,r={type:"search",placeholder:t.intl.formatMessage(Gr.search),onChange:this.onKeyPressed,onKeyPress:this.onKeyPressed,ref:function(t){e.search=t},value:n.value},i=this.renderSearchResults();return/map/.test(t.match.url)&&(r.placeholder=t.intl.formatMessage(Gr.searchLocation)),l.a.createElement(Xs,{ref:function(t){e.searchBar=t}},l.a.createElement("input",$e()({className:i?"with-results":""},r)),l.a.createElement(Pi,{className:"search",onClick:this.onSearchButtonClicked},l.a.createElement(Qr,{type:"search"})),i)}}])}(l.a.PureComponent);Qe()(Js,"propTypes",{intl:gn.isRequired,suggestions:m.a.bool}),Qe()(Js,"defaultProps",{suggestions:!0});var Qs,el=Dn(_t(le(St.search)(Js))),tl=Xe.d.div(Qs||(Qs=p()(["\n  display: inline-block;\n\n  & > span:not(:last-of-type) {\n    margin-right: 5px;\n  }\n"])));function nl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var rl=function(e){function t(){var e;return tt()(this,t),(e=nl(this,t)).onLogOutClicked=e.onLogOutClicked.bind(e),e}return ut()(t,e),rt()(t,[{key:"onLogOutClicked",value:function(){this.props.dispatch({type:gr.USER_LOGOUT})}},{key:"render",value:function(){var e=this.props,t=pr(Xp.profile.show,{id:e.user.id});return l.a.createElement(tl,null,l.a.createElement("span",null,l.a.createElement(Hi,{to:t},e.user.name)),l.a.createElement("span",null,"(",l.a.createElement(Di,{onClick:this.onLogOutClicked},e.intl.formatMessage(Gr.logOut)),")"))}}])}(l.a.Component);Qe()(rl,"propTypes",{intl:gn.isRequired});var il,ol=Dn(le(St.userSettings)(rl)),al=n(255),sl=n.n(al),ll=Xe.d.div(il||(il=p()(["\n  .kep-login-facebook.medium {\n    border-radius: 2px;\n    font-family: Roboto, sans-serif;\n    font-size: 14px;\n    font-weight: normal;\n    padding-left: 11px;\n    text-align: left;\n    text-transform: initial;\n    white-space: nowrap;\n\n    i.fa-facebook {\n      margin-right: 20px;\n      font-size: 18px;\n    }\n  }\n"])));function ul(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var cl=function(e){function t(e){var n;return tt()(this,t),(n=ul(this,t,[e])).request=new mr("user",e.store.user),n.onClick=n.onClick.bind(n),n.onF
77acebookResponse=n.onFacebookResponse.bind(n),n}return ut()(t,e),rt()(t,[{key:"onClick",value:function(){this.props.analytics.track(this.props.analytics.events.WELCOME_MENU_FACEBOOK_BUTTON_TAPPED,{is_quick_auth:this.props.isOutsideModal})}},{key:"onFacebookResponse",value:function(e){var t=this;if(e.id&&e.accessToken){var n={authProvider:"facebook",authData:e};this.request.socialLogin(n).then((function(e){e.id?(t.props.dispatch({type:gr.USER_LOGIN,payload:e}),t.props.dispatch({type:gr.CLOSE_MODAL})):202===e.code||203===e.code?t.props.onError(t.props.intl.formatMessage(Gr.accountAlreadyExistsForThisUsername)):t.props.onError(t.props.intl.formatMessage(Gr.somethingWentWrong))}))}}},{key:"render",value:function(){return l.a.createElement(ll,null,l.a.createElement(sl.a,{appId:window.SERVER_DATA.facebookAppId,fields:"name,email,picture",scope:"public_profile,email,user_friends",size:"medium",icon:l.a.createElement(Jr,{type:"facebook",isBrand:!0}),textButton:this.props.intl.formatMessage(Gr.continueWithFacebook),onClick:this.onClick,callback:this.onFacebookResponse,version:"6.0"}))}}])}(l.a.Component);Qe()(cl,"propTypes",{intl:gn.isRequired,analytics:At.isRequired,onError:m.a.func.isRequired,isOutsideModal:m.a.bool}),Qe()(cl,"defaultProps",{isOutsideModal:!1});var hl,pl=Pt(Dn(le(St.userLogin)(cl))),dl=n(256),fl=n.n(dl),ml=Xe.d.div(hl||(hl=p()(["\n\n"])));function gl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var yl=function(e){function t(e){var n;return tt()(this,t),(n=gl(this,t,[e])).request=new mr("user",e.store.user),n.onClick=n.onClick.bind(n),n.onGoogleResponse=n.onGoogleResponse.bind(n),n}return ut()(t,e),rt()(t,[{key:"onClick",value:function(){this.props.analytics.track(this.props.analytics.events.WELCOME_MENU_GOOGLE_BUTTON_TAPPED,{is_quick_auth:this.props.isOutsideModal})}},{key:"onGoogleResponse",value:function(e){var t=this;if(e.googleId&&e.tokenId&&e.tokenObj){var n={authProvider:"google",authData:{id:e.googleId,id_token:e.tokenId,expires_at:e.tokenObj.expires_at,profile:e.profileObj}};this.request.socialLogin(n).then((function(e){e.id?(t.props.dispatch({type:gr.USER_LOGIN,payload:e}),t.props.dispatch({type:gr.CLOSE_MODAL})):202===e.code||203===e.code?t.props.onError(t.props.intl.formatMessage(Gr.accountAlreadyExistsForThisUsername)):t.props.onError(t.props.intl.formatMessage(Gr.somethingWentWrong))}))}}},{key:"render",value:function(){return l.a.createElement(ml,null,l.a.createElement(fl.a,{clientId:window.SERVER_DATA.googleClientId,buttonText:this.props.intl.formatMessage(Gr.continueWithGoogle),onSuccess:this.onGoogleResponse,onFailure:this.onGoogleResponse,onRequest:this.onClick}))}}])}(l.a.Component);Qe()(yl,"propTypes",{intl:gn.isRequired,analytics:At.isRequired,onError:m.a.func.isRequired,isOutsideModal:m.a.bool}),Qe()(yl,"defaultProps",{isOutsideModal:!1});var vl,_l=Pt(Dn(le(St.userLogin)(yl))),xl=Xe.d.div(vl||(vl=p()(["\n  box-sizing: border-box;\n  padding: 10px;\n  width: 100%;\n  text-align: center;\n  background: ",";\n  color: ",";\n  border: 1px solid ",";\n  border-radius: 4px;\n"])),(function(e){return e.theme.colors.errorBackground}),(function(e){return e.theme.colors.error}),(function(e){return e.theme.colors.errorBorder}));function bl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var wl=function(e){function t(){return tt()(this,t),bl(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){var e=this.props;return l.a.createElement(xl,null,e.message)}}])}(l.a.PureComponent);Qe()(wl,"propTypes",{message:m.a.string.isRequired});var Sl,kl=wl,Tl=Xe.d.span(Sl||(Sl=p()(["\n  position: relative;\n  display: block;\n\n  input {\n    padding: 10px 5px;\n    background: transparent;\n    border: 1px solid ",";\n    z-index: 6;\n    border-radius: 4px;\n    outline: none;\n    font-size: 1em;\n  }\n\n  label {\n    position: absolute;\n    top: 10px;\n    left: 6px;\n    z-index: 5;\n    color: ",";\n    user-select: none;\n    cursor: text;\n    transition: all 200ms;\n  }\n\n  &.has-value {\n    input {\n      padding: 16px 5px 4px 5px;\n    }\n\n    label {\n      font-size: 0.85em;\n      top: 0px;\n    }\n  }\n"])),(function(e){return e.theme.colors.fontSecondary}),(function(e){return e.theme.colors.fontSecondary}));function Ml(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var El=function(e){function t(){var e;return tt()(this,t),e=Ml(this,t),Qe()(e,"state",{value:""}),e.value="",e.setInputActive=e.setInputActive.bind(e),e.updateValue=e.updateValue.bind(e),e}return ut()(t,e),rt()(t,[{key:"setInputActive",value:function(){this.input.focus()}}
77,{key:"updateValue",value:function(e){this.setState({value:e.target.value}),this.value=e.target.value}},{key:"render",value:function(){var e=this,t=this.props,n=this.state,r={onClick:this.setInputActive,ref:function(t){e.label=t}},i={name:t.name,type:t.type,label:t.label,ref:function(t){e.input=t},onChange:this.updateValue,value:n.value},o=n.value.length?"has-value":null;return l.a.createElement(Tl,{className:o},l.a.createElement("label",$e()({htmlFor:"suda-input-".concat(t.name)},r),t.label),l.a.createElement("input",$e()({id:"suda-input-".concat(t.name)},i)))}}])}(l.a.PureComponent);Qe()(El,"propTypes",{name:m.a.string.isRequired,type:m.a.string,label:m.a.string}),Qe()(El,"defaultProps",{type:"text",label:""});var Cl,Il=El,Al=Xe.d.div(Cl||(Cl=p()(["\n  width: ",";\n\n  input,\n  button {\n    display: block;\n    width: 100%;\n    box-sizing: border-box;\n  }\n\n  input {\n    margin-bottom: 10px;\n  }\n\n  button {\n    padding: 10px;\n  }\n\n  & > div {\n    margin-bottom: 10px;\n  }\n\n  & > .login-container {\n    display: flex;\n    flex-wrap: wrap;\n\n    & > .login-container-col {\n      flex-grow: 1;\n      flex-basis: 49%;\n    }\n\n    & > .login-container-social {\n      color: #2d455b;\n\n      .login-heading {\n        font-weight: bold;\n        margin-bottom: 2em;\n      }\n\n      button:not(:last-child) {\n        margin-bottom: 10px;\n      }\n    }\n\n    & > .login-container-separator {\n      flex-basis: 2%;\n    }\n\n    & > .login-container-email {\n      .login-heading {\n        color: #333;\n        font-weight: bold;\n        margin-bottom: 1em;\n        margin-top: 1em;\n        white-space: nowrap;\n      }\n    }\n  }\n"])),(function(e){return e.width}));function Pl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}Al.displayName="Wrapper";var Dl=101,Ll=200,Ol=201,Rl=function(e){function t(e){var n;return tt()(this,t),n=Pl(this,t,[e]),Qe()(n,"state",{hasError:!1,error:""}),n.request=new mr("user",e.store.user),n.onSubmit=n.onSubmit.bind(n),n.onLoginClicked=n.onLoginClicked.bind(n),n.setError=n.setError.bind(n),n}return ut()(t,e),rt()(t,[{key:"onSubmit",value:function(e){e.preventDefault()}},{key:"onLoginClicked",value:function(){var e=this,t=this.email.value,n=this.password.value;this.props.analytics.track(this.props.analytics.events.LOG_IN_DONE_BUTTON_TAPPED),this.request.login({username:t,password:n}).then((function(t){if(t.id)e.props.dispatch({type:gr.USER_LOGIN,payload:t}),e.props.dispatch({type:gr.CLOSE_MODAL,payload:{id:"login"}});else switch(t.code){case Dl:e.setError(e.props.intl.formatMessage(Gr.invalidUsernameAndPassword));break;case Ll:e.setError(e.props.intl.formatMessage(Gr.missingEmail));break;case Ol:e.setError(e.props.intl.formatMessage(Gr.missingPassword));break;default:e.setError(e.props.intl.formatMessage(Gr.somethingWentWrong))}}))}},{key:"setError",value:function(e){this.setState({hasError:!0,error:e})}},{key:"renderError",value:function(){var e=this.state;return e.hasError?l.a.createElement(kl,{message:e.error}):null}},{key:"render",value:function(){var e=this,t=this.props,n=this.renderError(),r={
77name:"login-email",label:t.intl.formatMessage(Gr.labelEmail),type:"email",ref:function(t){e.email=t}},i={name:"login-password",label:t.intl.formatMessage(Gr.labelPassword),type:"password",ref:function(t){e.password=t}},o={type:"submit",onClick:this.onLoginClicked},a={onError:this.setError},s={onError:this.setError};return l.a.createElement(Al,{width:t.width},n,l.a.createElement("div",{className:"login-container"},l.a.createElement("div",{className:"login-container-col login-container-social"},l.a.createElement(Ts,{static:!0,complete:!0}),l.a.createElement("div",{className:"login-heading"},t.intl.formatMessage(Gr.loginSocial)),l.a.createElement(pl,a),l.a.createElement(_l,s)),l.a.createElement("div",{className:"login-container-separator"}),l.a.createElement("div",{className:"login-container-col login-container-email"},l.a.createElement("div",{className:"login-heading"},t.intl.formatMessage(Gr.loginEmail)),l.a.createElement("form",{onSubmit:this.onSubmit},l.a.createElement(Il,r),l.a.createElement(Il,i),l.a.createElement(Ai,$e()({primary:!0},o),t.intl.formatMessage(Gr.loginButton))))))}}])}(l.a.PureComponent);Qe()(Rl,"propTypes",{width:m.a.string,intl:gn.isRequired,analytics:At.isRequired}),Qe()(Rl,"defaultProps",{width:"auto"});var zl,Nl,Bl=Pt(Dn(le(St.userLogin)(Rl))),Fl=Xe.d.div(zl||(zl=p()(["\n  width: ",";\n\n  input,\n  button {\n    display: block;\n    width: 100%;\n    box-sizing: border-box;\n  }\n\n  input,\n  button:not(:last-child) {\n    margin-bottom: 10px;\n  }\n\n  button {\n    padding: 10px;\n  }\n\n  & > div:not(:last-child) {\n    margin-bottom: 10px;\n  }\n\n  & > .signup-container {\n    display: flex;\n    flex-wrap: wrap;\n\n    & > .signup-container-col {\n      flex-grow: 1;\n      flex-basis: 49%;\n    }\n\n    & > .signup-container-social {\n      color: #2d455b;\n\n      .signup-heading {\n        font-weight: bold;\n        margin-bottom: 1em;\n        margin-top: 1em;\n      }\n    }\n\n    & > .login-container-separator {\n      flex-basis: 2%;\n    }\n\n    & > .signup-container-email {\n      .signup-heading {\n        color: #333;\n        font-weight: bold;\n        margin-bottom: 1em;\n        margin-top: 1em;\n        white-space: nowrap;\n      }\n    }\n  }\n"])),(function(e){return e.width})),Vl=Xe.d.div(Nl||(Nl=p()(["\n  margin-top: 15px;\n"])));function jl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Ul=-1,Gl=125,ql=202,Hl=function(e){function t(e){var n;return tt()(this,t),n=jl(this,t,[e]),Qe()(n,"state",{hasError:!1,error:""}),n.request=new mr("user",e.store.user),n.onSubmit=n.onSubmit.bind(n),n.onSignupClicked=n.onSignupClicked.bind(n),n.onLoginClicked=n.onLoginClicked.bind(n),n.setError=n.setError.bind(n),n}return ut()(t,e),rt()(t,[{key:"onSubmit",value:function(e){e.preventDefault()}},{key:"onSignupClicked",value:function(){var e=this,t=this.name.value,n=this.email.value,r=this.password.value,i=this.repeatedPassword.value;t?r&&i&&r===i?(this.props.analytics.track(this.props.analytics.events.CREATE_ACCOUNT_DONE_BUTTON_TAPPED),this.request.register({username:t,email:n,password:r}).then((function(t){if(t.id)e.props.dispatch({type:gr.USER_LOGIN,payload:t}),e.props.dispatch({type:gr.CLOSE_MODAL});else switch(t.code){case Ul:e.setError(e.props.intl.formatMessage(Gr.missingEmail));break;case Gl:e.setError(e.props.intl.formatMessage(Gr.invalidEmail));break;case ql:e.setError(e.props.intl.formatMessage(Gr.registeredEmail));break;default:e.setError(e.props.intl.formatMessage(Gr.somethingWentWrong))}}))):this.setError(this.props.intl.formatMessage(Gr.passwordsDoNotMatch)):this.setError(this.props.intl.formatMessage(Gr.missingName))}},{key:"onLoginClicked",value:function(){this.props.analytics.track(this.props.analytics.events.WELCOME_MENU_LOG_IN_BUTTON_TAPPED),this.props.dispatch({type:gr.CLOSE_MODAL}),this.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"login"}})}},{key:"setError",value:function(e){this.setState({hasError:!0,error:e})}},{key:"renderError",value:function(){var e=this.state;return e.hasError?l.a.createElement(kl,{message:e.error}):null}},{key:"render",value:function(){var e=this,t=this.props,n={name:"signup-name",label:t.intl.formatMessage(Gr.labelName),type:"text",ref:function(t){e.name=t}},r={name:"signup-email",label:t.intl.formatMessage(Gr.labelEmail),type:"email",ref:function(t){e.email=t}},i={name:"signup-password",label:t.intl.formatMessage(Gr.labelPassword),type:"password",ref:function(t){e.password=t}},o={name:"signup-repeat-password",label:t.intl.formatMessage(Gr.labelRepeatPassword),type:"password",ref:function(t){e.repeatedPassword=t}},a={type:"submit",onClick:this.onSignupClicked},s={onClick:this.onLoginClicked},u={onError:this.setError,isOutsideModal:t.isOutsideModal},c={onError:this.setError,isOutsideModal:t.isOutsideModal},h=this.renderError();return l.a.createElement(Fl,{width:t.width},h,l.a.createElement("div",{className:"signup-container"},l.a.createElement("div",{className:"signup-container-col signup-container-social"}
77,!t.hideLogo&&l.a.createElement(Ts,{static:!0,complete:!0}),l.a.createElement("div",{className:"signup-heading"},t.intl.formatMessage(Gr.signupSocial)),l.a.createElement(pl,u),l.a.createElement(_l,c)),l.a.createElement("div",{className:"login-container-separator"}),l.a.createElement("div",{className:"signup-container-col signup-container-email"},l.a.createElement("div",{className:"signup-heading"},t.intl.formatMessage(Gr.signupEmail)),l.a.createElement("form",{onSubmit:this.onSubmit},l.a.createElement(Il,n),l.a.createElement(Il,r),l.a.createElement(Il,i),l.a.createElement(Il,o),l.a.createElement(Ai,$e()({primary:!0},a),t.intl.formatMessage(Gr.signupButton))),l.a.createElement(Ui,null,t.intl.formatHTMLMessage(Gr.termsAndConditionsAgreement),l.a.createElement("a",{href:"https://suda.io/html/terms_es.html"},t.intl.formatMessage(Gr.termsAndConditionsLink)),"."))),l.a.createElement(Vl,null,l.a.createElement(Di,s,t.intl.formatMessage(Gr.alreadyHaveAnAccountButton))))}}])}(l.a.PureComponent);Qe()(Hl,"propTypes",{width:m.a.string,intl:gn.isRequired,analytics:At.isRequired,hideLogo:m.a.bool,isOutsideModal:m.a.bool}),Qe()(Hl,"defaultProps",{width:"auto",hideLogo:!1,isOutsideModal:!1});var Wl,Zl,Yl=Pt(Dn(le(St.userSignup)(Hl))),Xl=Xe.d.div(Wl||(Wl=p()(["\n  width: ",";\n\n  input,\n  button {\n    display: block;\n    width: 100%;\n    box-sizing: border-box;\n  }\n\n  input {\n    margin-bottom: 10px;\n  }\n\n  button {\n    padding: 10px;\n  }\n\n  & > div {\n    margin-bottom: 10px;\n  }\n"])),(function(e){return e.width}));Xl.displayName="Wrapper";var Kl=Xe.d.img(Zl||(Zl=p()(["\n  width: 100%;\n  max-height: calc(100vh - 100px);\n  cursor: pointer;\n"])));function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jl(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Ql=function(e){function t(e){var n;return tt()(this,t),n=Jl(this,t,[e]),Qe()(n,"state",{isOpen:!1}),n.onModalClose=n.onModalClose.bind(n),n.onCallToActionClicked=n.onCallToActionClicked.bind(n),n.request=new mr("user",e.store.user),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchInAppData().then((function(t){t&&(e.props.analytics.track(e.props.analytics.events.INAPP_DID_LOAD,{inapp_id:t.id}),e.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isOpen:!0},t)))}))}},{key:"onCallToActionClicked",value:function(){if(this.props.analytics.track(this.props.analytics.events.INAPP_BUTTON_TAPPED,{inapp_id:this.state.id}),this.state.targetURL){var e="".concat(window.location.protocol,"//").concat(window.location.host);this.state.targetURL===window.location.toString()?this.setState({isOpen:!1}):this.state.targetURL.startsWith(e)?this.props.history.push({pathname:this.state.targetURL.slice(e.length)}):window.location=this.state.targetURL}else this.setState({isOpen:!1})}},{key:"onModalClose",value:function(){this.setState({isOpen:!1})}},{key:"fetchInAppData",value:function(){var e=this.props.store.user;return this.request.inApp(e.id||"guest").then((function(e){if(!e)return null;if(e.id&&e.pictureURL&&e.callToActionType&&Gr[e.callToActionType]){var t=window.localStorage.getItem("suda-inapp-seen-id");if(t!==e.id)return window.localStorage.setItem("suda-inapp-seen-id",e.id),e;console.log("Skipped shown in-app",t)}else console.error("Invalid in-app data format",e);return null}))}},{key:"renderModal",value:function(){var e=this.props,t=this.state,n={isOpen:t.isOpen,onRequestClose:this.onModalClose},r={onClick:this.onCallToActionClicked};return l.a.createElement(ta,n,l.a.createElement(Xl,{width:e.width},l.a.createElement(Kl,{alt:"In-app banner image",src:t.pictureURL,onClick:this.onCallToActionClicked}),l.a.createElement(Ai,$e()({},r,{primary:!0}),e.intl.formatMessage(Gr[t.callToActionType]))))}},{key:"render",value:function(){return this.state.isOpen?this.renderModal():null}}])}(l.a.PureComponent);Qe()(Ql,"propTypes",{width:m.a.string,intl:gn.isRequired,analytics:At.isRequired}),Qe()(Ql,"defaultProps",{width:"auto"});var eu,tu,nu,ru,iu,ou=Pt(Dn(_t(le(St.inAppModal)(Ql)))),au=Xe.d.section(eu||(eu=p()(["\n  position: relative;\n  z-index: 3;\n\n  flex: 0 1 auto;\n"]))),su=Xe.d.header(tu||(tu=p()(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: ","\n    ",";\n  background: ",";\n  border-bottom: 1px solid ",";\n  min-height: 36px;\n  z-index: 10;\n\n  & >
77 div:nth-child(2) {\n    flex: 1;\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;\n    justify-content: center;\n\n    & > div {\n      flex: 1;\n      margin-right: 0;\n    }\n  }\n"])),(function(e){return e.theme.general.verticalSeparation}),(function(e){return e.theme.general.horizontalSeparation}),(function(e){return e.theme.header.background}),(function(e){return e.theme.colors.border}),(function(e){return e.theme.media.small})),lu=Object(Xe.d)(Wi)(nu||(nu=p()(["\n  background: ",";\n  border-bottom: 1px solid ",";\n  padding: ","\n    ",";\n\n  a.link {\n    display: inline-block;\n    text-decoration: none;\n    color: ",";\n\n    ","\n  }\n"])),(function(e){return e.theme.header.background}),(function(e){return e.theme.colors.border}),(function(e){return e.theme.general.verticalSeparation}),(function(e){return e.theme.general.horizontalSeparation}),(function(e){return e.theme.colors.main}),(function(e){return e.small&&"font-size: small;"})),uu=Xe.d.div(ru||(ru=p()(["\n  display: flex;\n  justify-content: space-between;\n\n  & > div:last-of-type {\n    margin-left: auto;\n  }\n\n  & > div:not(:last-of-type) {\n    margin-right: 2rem;\n  }\n\n  @media (max-width: ",") {\n    margin-top: 12px;\n  }\n"])),(function(e){return e.theme.media.small})),cu=Xe.d.div(iu||(iu=p()(["\n  margin-top: -2px;\n\n  button:not(:last-of-type) {\n    margin-right: 10px;\n  }\n\n  @media (max-width: ",") {\n    display: flex;\n\n    button {\n      flex-grow: 1;\n    }\n  }\n"])),(function(e){return e.theme.media.small}));function hu(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var pu=function(e){function t(){var e;return tt()(this,t),e=hu(this,t),Qe()(e,"onLogInClicked",(function(){e.props.analytics.track(e.props.analytics.events.WELCOME_MENU_LOG_IN_BUTTON_TAPPED),e.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"login"}})})),Qe()(e,"onSignUpClicked",(function(){e.props.analytics.track(e.props.analytics.events.WELCOME_MENU_SIGN_UP_BUTTON_TAPPED),e.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"signup"}})})),e.onModalClose=e.onModalClose.bind(e),e}return ut()(t,e),rt()(t,[{key:"onModalClose",value:function(){this.props.dispatch({type:gr.CLOSE_MODAL})}},{key:"renderUserControls",value:function(){var e=this.props,t={onClick:this.onLogInClicked},n={onClick:this.onSignUpClicked};return e.store.user.id?l.a.createElement(uu,null,l.a.createElement(ol,{user:e.store.user})):l.a.createElement(cu,null,l.a.createElement(Ai,$e()({},t,{primary:!0}),e.intl.formatMessage(Gr.logIn)),l.a.createElement(Ai,n,e.intl.formatMessage(Gr.signUp)))}},{key:"renderModals",value:function(){var e=this.props,t={isOpen:e.store.modals.login,onRequestClose:this.onModalClose},n={isOpen:e.store.modals.signup,onRequestClose:this.onModalClose};return l.a.createElement(l.a.Fragment,null,l.a.createElement(ta,t,l.a.createElement(Bl,{width:e.theme.modal.size.auto})),l.a.createElement(ta,n,l.a.createElement(Yl,{width:e.theme.modal.size.auto})),l.a.createElement(ou,{width:e.theme.modal.size.auto}))}},{key:"render",value:function(){var e=this.props,t=this.renderModals();return l.a.createElement(au,null,l.a.createElement(su,null,l.a.createElement(Ts,null),l.a.createElement(el,null),this.renderUserControls()),l.a.createElement(lu,null,l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.root,small:"true"},"〈 ",e.intl.formatMessage(Gr.backToHome))),l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.challenge.index},e.intl.formatMessage(Gr.challenges))),l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.map},e.intl.formatMessage(Gr.map)))),l.a.createElement("ul",{className:"right"},l.a.createElement("li",null,l.a.createElement("a",{href:Xp.support,target:"_blank",rel:"noopener noreferrer",className:"link"},e.intl.formatMessage(Gr.support))))),t)}}])}(l.a.Component);Qe()(pu,"propTypes",{intl:gn.isRequired,analytics:At.isRequired});var du,fu=Pt(Dn(Object(Xe.e)(le(St.header)(pu)))),mu=Xe.d.div(du||(du=p()(["\n  display: flex;\n  font-weight: 600;\n\n  ul {\n    display: flex;\n\n    li:not(:last-child) {\n      margin-right: ",";\n    }\n  }\n\n  span {\n    margin-left: auto;\n  }\n\n  a {\n    text-decoration: none;\n    color: ",";\n  }\n\n  @media screen and (max-width: ",") {\n    flex-direction: column;
77\n    align-items: center;\n\n    span {\n      margin: 0;\n      margin-top: ",";\n    }\n  }\n"])),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.colors.main}),(function(e){return e.theme.media.small}),(function(e){return e.theme.general.sectionSeparation}));function gu(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var yu=function(e){function t(){return tt()(this,t),gu(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){var e=this.props.intl.formatMessage;return l.a.createElement(Ri,null,l.a.createElement(Oi,{width:100},l.a.createElement(mu,null,l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.aboutUs},e(Gr.aboutUs))),l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.challenge.index},e(Gr.challenges))),l.a.createElement("li",null,l.a.createElement("a",{href:Xp.blog,target:"_blank",rel:"noopener noreferrer"},e(Gr.blog))),l.a.createElement("li",null,l.a.createElement("a",{href:Xp.support,target:"_blank",rel:"noopener noreferrer"},e(Gr.support)))),l.a.createElement("span",null,l.a.createElement(Ui,null,"© ",(new Date).getFullYear()," ",e(Gr.suda))))))}}])}(l.a.PureComponent);Qe()(yu,"propTypes",{intl:gn.isRequired});var vu=Dn(yu);function _u(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var xu,bu,wu,Su,ku,Tu,Mu,Eu,Cu,Iu,Au=function(e){return function(t){function n(){return tt()(this,n),_u(this,n,arguments)}return ut()(n,t),rt()(n,[{key:"render",value:function(){var t=this.props;return l.a.createElement(l.a.Fragment,null,l.a.createElement(fu,null),l.a.createElement(e,t),l.a.createElement(vu,null))}}])}(l.a.PureComponent)},Pu=Xe.d.div(xu||(xu=p()(["\n  overflow: hidden;\n  text-overflow: ellipsis;\n\n  div {\n    display: inline-block;\n  }\n\n  div:first-of-type {\n    margin-right: 10px;\n  }\n\n  div:nth-child(2) {\n    vertical-align: super;\n  }\n\n  @media (max-width: ",") {\n    div:nth-child(2) {\n      white-space: nowrap;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),Du=Xe.d.div(bu||(bu=p()(["\n  display: flex;\n  justify-content: space-between;\n\n  @media (max-width: ",") {\n    flex-direction: column;\n  }\n\n  #activity-header {\n    display: flex;\n    flex-direction: column;\n    row-gap: 0.3em;\n  }\n"])),(function(e){return e.theme.media.small})),Lu=Xe.d.div(wu||(wu=p()(["\n  position: relative;\n"]))),Ou=Xe.d.div(Su||(Su=p()(["\n  background: rgba(0, 0, 0, 0.5);\n  position: absolute;\n  bottom: 0;\n  right: 0;\n  width: 500px;\n  padding: 10px 5px 5px 0;\n"]))),Ru=(Xe.d.div(ku||(ku=p()(["\n  margin-bottom: ",";\n"])),(function(e){return e.theme.general.sectionSeparation})),Xe.d.div(Tu||(Tu=p()(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n\n  img {\n    max-width: 65%;\n  }\n\n  h1 {\n    font-weight: 600;\n    margin-bottom: ",";\n  }\n\n  p {\n    max-height: 80px;\n    overflow: hidden;\n    margin-bottom: ",";\n  }\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n"])),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.general.sectionSeparation}),(function(e){return e.theme.general.sectionSeparation}))),zu=Xe.d.div(Mu||(Mu=p()(["\n  background: url(",") no-repeat 50% 50%;\n  width: 256px;\n  height: 256px;\n  transform: scale(0.6);\n"])),(function(e){return e.src})),Nu=Xe.d.div(Eu||(Eu=p()(["\n  margin-bottom: 20px;\n\n  img {\n    width: 100%;\n  }\n"]))),Bu=Xe.d.div(Cu||(Cu=p()(["\n  font-size: 90%;\n"]))),Fu=Xe.d.div(Iu||(Iu=p()(["\n  display: flex;\n  flex-direction: row;\n  text-align: center;\n\n  #activity-sponsor-tag {\n    background: #5bc0d0;\n    color: white;\n    padding-inline-start: 0.5em;\n    padding-inline-end: 0.7em;\n    padding-top: 0.1em;\n    padding-bottom: 0.2em;\n    font-weight: 600;\n    font-style: italic;\n    font-family: 'Source Sans Pro';\n    font-size: 10pt;\n    margin-inline-end: 0.5em;\n    white-space: nowrap;\n  }\n\n  #activity-sponsor-name {\n    font-weight: 700;\n    font-family: 'Source Sans Pro';\n    font-size: 13pt;\n    text-decoration: unset;\n    color: #1a6782;\n  }\n"])));function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ju(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Uu=function(e){function t(e){var n;return tt()(this,t),n=ju(this,t,[e]),Qe()(n,"state",{downloaded:!1,products:[],banners:[]}),n.request=new mr("activity",e.store.user),n.onLikeClicked=n.onLikeClicked.bind(n),n.onSelectedElevationChanged=n.onSelectedElevationChanged.bind(n),n.downloadActivity=n.downloadActivity.bind(n),n}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){this.loadActivity()}},{key:"componentDidUpdate",value:function(){var e=this.props;e.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user,this.fetchActivity()),this.activityId!==this.props.match.params.id&&this.loadActivity()}},{key:"onSelectedElevationChanged",value:function(e){this.worldMap&&this.worldMap.updateElevationMarker(e)}},{key:"onLikeClicked",value:function(){var e=this,t=this.props.match.params.id;this.props.store.user.id?this.props.store.activity.isLikedByCurrentUser?this.request.unlike(t,this.props.store.user.id).then((function(n){e.props.dispatch({type:gr.UPDATE_ROUTE,payload:{activity:{id:t,totalLikes:n.totalLikes,isLikedByCurrentUser:!1}}})})):this.request.like(t).then((function(n){e.props.dispatch({type:gr.UPDATE_ROUTE,payload:{activity:{id:t,totalLikes:n.totalLikes,isLikedByCurrentUser:!0}}})})):this.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"login"}})}},{key:"onBannerClicked",value:function(e,t){var n=this;return function(){var r=n.props.match.params.id,i=Mo.a.parse(e.destinationURL);return n.props.analytics.track(n.props.analytics.events.BANNERS_ACTIVITY_BANNER_TAPPED,{external_url:e.destinationURL,external_hostname:i.hostname,activity_object_id:r,activity_sidebar_banner_index:t}),!0}.bind(this)}},{key:"onProductViewMoreClicked",value:function(e,t,n){var r=this;return function(){var i=r.props.match.params.id;return r.props.analytics.track(r.props.analytics.events.PRODUCTS_ACTIVITY_PRODUCT_URL_TAPPED,{product_object_id:e.id,product_name:e.name,product_brandperson_object_id:e.brandPersonObjectId,product_brandperson_name:e.brandPersonName,triggered_event_element:n,activity_object_id:i,activity_suggestions_product_index:t}),!0}.bind(this)}},{key:"getElevationAxes",value:function(e){var t={x:[],y:[]};if(!e)return t;var n=0,r=null,i=function(e){if(r){var i={latitude:r.attributes.lat,longitude:r.attributes.lon,elevation:r.ele},o={latitude:e.attributes.lat,longitude:e.attributes.lon,elevation:e.ele};n+=function(e,t){var n=Math.cos(Io*e.latitude)*Math.cos(Io*t.latitude)*Math.cos(-1*Io*t.longitude- -1*Io*e.longitude)+Math.sin(Io*e.latitude)*Math.sin(Io*t.latitude),r=0;n<1&&n>-1&&(r=6371e3*Math.acos(n));var i=0;if(e.elevation&&t.elevation){var o=Math.abs(e.elevation-t.elevation),a=1-r/2e4;a>0&&(i=a*o*o)}return r=Math.sqrt(r*r+i),Math.abs(r)}(i,o)/1e3}t.x.push(n),t.y.push(e.ele),r=e},o=function(e){Array.isArray(e.trkpt)?e.trkpt.forEach((function(e){i(e)})):i(e.trkpt)};return Array.isArray(e.gpx.trk.trkseg)?e.gpx.trk.trkseg.forEach((function(e){o(e)})):o(e.gpx.trk.trkseg),t}},{key:"loadActivity",value:function(){var e=this,t=this.props;this.activityId=this.props.match.params.id,this.props.analytics.track(this.props.analytics.events.ACTIVITY_VIEW_DID_LOAD,{activity_object_id:this.activityId}),this.fetchActivity().then((function(n){if("track"===n.sportKeyActivityType){var r=dr.activity.route.url.replace(":id",n.id);e.request.send({url:r,method:"GET"}).then((function(e){t.dispatch({type:gr.ADD_ACTIVITY_ROUTE,payload:{activity:{id:n.id},parsedGPX:e}})}))}}))}},{key:"fetchActivity",value:function(){var e=this,t=this.props,n=this.props.match.params.id;return new Promise((function(r){e.request.find(n).then((function(r){return e.props.analytics.track(e.props.analytics.events.ACTIVITY_META_DATA_DID_LOAD,{activity_author_name:r.author.name,activity_author_object_id:r.author.id,activity_difficulty:r.difficulty,activity_is_public:r.isPublic,activity_name:r.name,activity_object_id:n,activity_sportkey:r.sportKey}),t.dispatch({type:gr.ADD_ACTIVITY,payload:{activity:r}}),r})).then((function(t){if(t.author.isBrand)e.setState({products:[],banners:[]},(function(){r(t)}));else{var i=e.request.products(n),o=e.request.banners(n);Promise.all([i,o]).then((function(n){var i=lr()(n,2),o=i[0],a=i[1],s=[];a.forEach((function(e,t){s.push(Object.assign(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(n),!0).forEach((function(t){Qe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEac
77h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:"banner_".concat(t)},e)))})),e.setState({products:o,banners:s},(function(){r(t)}))}))}}))}))}},{key:"downloadActivity",value:function(){var e=this,t=this.props.match.params.id;this.props.store.user.id?this.request.download(t).then((function(){e.setState({downloaded:!0})})):this.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"login"}})}},{key:"renderBanners",value:function(){var e=this;return this.state.banners.map((function(t,n){return l.a.createElement(Nu,{key:t.id},l.a.createElement("a",{href:t.destinationURL,target:"_blank",rel:"noopener noreferrer",onClick:e.onBannerClicked(t,n)},l.a.createElement("img",{src:t.pictureURL,alt:""})))}))}},{key:"renderProducts",value:function(){var e=this;return this.state.products.map((function(t,n){return l.a.createElement(Ru,{key:t.id},l.a.createElement("a",{href:t.externalDetailURL,onClick:e.onProductViewMoreClicked(t,n,"image"),target:"_blank",rel:"noopener noreferrer"},l.a.createElement(zu,{src:t.pictureThumbnail256URL})),l.a.createElement("h1",null,t.name),l.a.createElement("p",null,t.detail),l.a.createElement("a",{href:t.externalDetailURL,onClick:e.onProductViewMoreClicked(t,n,"button"),target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Ai,{primary:!0},e.props.intl.formatMessage(Gr.learnMore))))}))}},{key:"renderLoading",value:function(){return l.a.createElement(Bo,null)}},{key:"renderActivity",value:function(){var e=this,t=this.props,n=t.store.activity,r=n.startLocation,i=r.latitude,o=r.longitude,a=this.getElevationAxes(n.parsedGPX),s={min:Math.floor(n.statistics.minElevation),max:Math.ceil(n.statistics.maxElevation)},u={elevation:a.y,xAxis:a.x,bounds:s,onSelectedElevationChanged:this.onSelectedElevationChanged},c=Ao.sports[n.sportKey],h=function(e){return JSON.parse(JSON.stringify(e))}(hs);h.map.routeColor=Ao.colors[c.sportType];var p={height:500,gpx:n.parsedGPX,latitude:i,longitude:o,sportKey:n.sportKey,icon:c.markerIcon,images:n.images,theme:h},d=pr(Xp.profile.show,{id:n.author.id}),f=l.a.createElement(l.a.Fragment,null,l.a.createElement(la,$e()({},p,{ref:function(t){e.worldMap=t}})),"track"===n.sportKeyActivityType&&l.a.createElement(Ou,null,l.a.createElement(us,u))),m=this.renderProducts(),g=t.intl.formatMessage(Gr.downloadActivity);this.state.downloaded&&(g=t.intl.formatMessage(Gr.downloadedActivity));var y=this.renderBanners(),v=function(e,t){var n=e.countryCode,r=e.regionArea1,i=e.regionArea2,o=e.regionArea3||i||r||"";if(n){var a=t.formatMessage({id:"country_".concat(n),defaultMessage:"Country information not available"});o?o+=", ".concat(a):o=a}return o}(n,t.intl);return l.a.createElement(l.a.Fragment,null,l.a.createElement(Xr,{title:"".concat(n.name," | ").concat(n.sportKey)}),l.a.createElement(Ri,{id:"activity-header"},l.a.createElement(Oi,{width:100},l.a.createElement(zi,null,l.a.createElement(Pu,null,l.a.createElement(Hi,{to:d},l.a.createElement(Gi,{size:50,src:n.author.avatar,border:!0})),l.a.createElement("div",null,l.a.createElement(Hi,{to:d},l.a.createElement(ji,null,n.author.name)),l.a.createElement(Ui,null,t.intl.formatMessage(Gr.distanceCovered,{distance:parseFloat(n.author.totalDistance).toFixed(2)}))))))),l.a.createElement(Lu,{id:"map-wrapper"},f),l.a.createElement(Ri,{id:"activity-data"},l.a.createElement(Oi,{width:70},l.a.createElement(zi,{id:"activity-statistics",simple:!0},l.a.createElement(ga,{activity:n})),l.a.createElement(zi,{id:"activity-content"},l.a.createElement(Li,null,l.a.createElement(Du,null,l.a.createElement("div",{id:"activity-header"},l.a.createElement(ji,{id:"activity-name"},n.name),n.sponsor&&l.a.createElement(Fu,{id:"activity-sponsor"},l.a.createElement("div",null,l.a.createElement("span",{id:"activity-sponsor-tag"},t.intl.formatMessage(Gr.sponsoredBy))),l.a.createElement("div",null,l.a.createElement("a",{id:"activity-sponsor-name",href:"/person/".concat(n.sponsor.id)},n.sponsor.name))),v&&l.a.createElement(Hi,{to:pr(Xp.mapQuery,{lng:o,lat:i,z:12})},l.a.createElement(Bu,null,v)),l.a.createElement(Ui,null,t.intl.formatRelative(n.createdAt))),l.a.createElement(ja,{liked:n.isLikedByCurrentUser,onLikeClicked:this.onLikeClicked,totalLikes:n.totalLikes}))),l.a.createElement(Li,null,l.a.createElement(Ia,{images:n.images}
77)),l.a.createElement(Li,null,l.a.createElement(Bi,null,n.detail)),l.a.createElement(qi,null),l.a.createElement(Li,null,l.a.createElement($a,{comments:n.comments})))),l.a.createElement(Oi,{width:30},l.a.createElement(zi,null,l.a.createElement(Ai,{primary:!0,fullWidth:!0,onClick:this.downloadActivity,disabled:this.state.downloaded},g)),l.a.createElement(Vi,null,t.intl.formatMessage(Gr.weather)),l.a.createElement(ns,{latitude:i,longitude:o}),y,l.a.createElement(xs,{client:"ca-pub-4747166220096565",slot:"4022682744",format:"auto"}),m.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement(Vi,null,t.intl.formatMessage(Gr.recommendedProducts)),l.a.createElement(zi,null,m)))))}},{key:"render",value:function(){return this.props.store.activity?this.renderActivity():this.renderLoading()}}])}(l.a.Component);Qe()(Uu,"propTypes",{store:m.a.shape({activity:Co}).isRequired,intl:gn.isRequired,analytics:At.isRequired});var Gu=Au(Pt(Dn(le(St.activity)(Uu))));function qu(){return(qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Hu,Wu,Zu,Yu=["cdnSuffix","cdnUrl","countryCode","style","svg"],Xu=function(e){var t=e.cdnSuffix,n=void 0===t?"svg":t,r=e.cdnUrl,i=void 0===r?"https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/":r,o=e.countryCode,a=e.style,l=e.svg,u=void 0!==l&&l,c=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Yu);if("string"!=typeof o)return null;if(u){var h=""+i+o.toLowerCase()+"."+n;return Object(s.createElement)("img",Object.assign({},c,{src:h,style:qu({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},a)}))}var p=o.toUpperCase().replace(/./g,(function(e){return String.fromCodePoint(e.charCodeAt(0)+127397)}));return Object(s.createElement)("span",Object.assign({role:"img"},c,{style:qu({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},a)}),p)},Ku=Xe.d.li(Hu||(Hu=p()(["\n  display: flex;\n  padding: 5px 10px;\n\n  .place {\n    display: inline-block;\n    font-weight: 600;\n    width: 25px;\n    color: ",";\n  }\n\n  .name-container {\n    display: flex;\n    flex-direction: row;\n    overflow: hidden;\n  }\n\n  .name a {\n    color: ",";\n  }\n\n  .score {\n    margin-left: auto;\n    color: ",";\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;\n    align-items: left;\n    margin-bottom: 5px;\n    border-bottom: 1px solid #ddd;\n\n    .score {\n      margin-left: inherit;\n    }\n  }\n"])),(function(e){return e.theme.colors.main}),(function(e){return e.theme.colors.font}),(function(e){return e.theme.colors.fontSecondary}),(function(e){return e.theme.media.medium})),$u=Xe.d.li(Wu||(Wu=p()(["\n  display: flex;\n  padding: 5px 10px;\n\n  &.winners {\n    background-color: rgb(241, 137, 15);\n  }\n\n  &.finishers {\n    background-color: #11243a;\n  }\n\n  > div {\n    width: 100%;\n    color: white;\n    text-align: center;\n    font-weight: bold;\n    font-size: 15px;\n  }\n"]))),Ju=Xe.d.div(Zu||(Zu=p()(["\n  margin-top: ",";\n  text-align: center;\n"])),(function(e){return e.theme.general.sectionSeparation}));function Qu(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ec=3,tc=4,nc=5,rc=4,ic=5,oc=6,ac=7,sc=6,lc=7,uc=function(e){function t(){return tt()(this,t),Qu(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getPersonScore",value:function(e){var t=this.props;return t.type===ec?ca(e.bestTimeInSeconds):e.completedAt?t.intl.formatMessage(Gr.completedOn,{date:t.intl.formatDate(e.completedAt)}):t.type===tc||t.type===rc?t.intl.formatMessage(Gr.accumulatedDistance,{distance:e.accumulatedQuantity.toFixed(2),routes:e.accumulatedActivitiesCount}):t.type===nc||t.type===ic?t.intl.formatMessage(Gr.accumulatedElevationGain,{distance:(1e3*e.accumulatedQuantity).toFixed(2),routes:e.accumulatedActivitiesCount}):t.type===sc||t.type===oc?t.intl.formatMessage(Gr.accumulatedRouteCount,{routes:e.accumulatedActivitiesCount}):t.type===lc||t.type===ac?t.intl.formatMessage(Gr.accumulatedMovingTime,{hours:ca(e.accumulatedQuantity)}):t.intl.formatMessage(Gr.leaderboardFinisher)}}
77,{key:"getFinishersHeaderText",value:function(){var e=this.props;switch(e.type){case tc:case rc:return e.intl.formatMessage(Gr.finishersListForDistance);case nc:case ic:return e.intl.formatMessage(Gr.finishersListForElevationGain);case sc:case oc:return e.intl.formatMessage(Gr.finishersListForRouteCount);case lc:case ac:return e.intl.formatMessage(Gr.finishersListForMovingTime);default:return e.intl.formatMessage(Gr.finishersList)}}},{key:"renderRows",value:function(e,t,n){var r=this,i=this.props,o=[],a=function(t,n){if(o.includes(t.id))return null;var i=e[t.id]||null;return o.push(t.id),l.a.createElement(Ku,{key:t.id},l.a.createElement("div",{className:"name-container"},l.a.createElement("span",{className:"country-flag"},i?l.a.createElement(l.a.Fragment,null,l.a.createElement(Xu,{countryCode:i.countryCode,svg:!0,cdnUrl:"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.3/flags/1x1/",cdnSuffix:"svg",title:i.countryCode,style:{width:"14px",height:"14px"}})," "):""),l.a.createElement("span",{className:"name"},l.a.createElement(Hi,{to:pr(Xp.profile.show,{id:t.id})},t.name))),l.a.createElement("span",{className:"score"},n?t.winnerPrize:r.getPersonScore(t)))},s=[];return t.length&&(s.push(l.a.createElement($u,{key:"winners",className:"winners"},l.a.createElement("div",null,i.intl.formatMessage(Gr.winnersList)))),t.forEach((function(e){s.push(a(e,!0))}))),n.length&&(s.push(l.a.createElement($u,{key:"finishers",className:"finishers"},l.a.createElement("div",null,this.getFinishersHeaderText()))),n.forEach((function(e){s.push(a(e,!1))}))),s.filter((function(e){return!!e}))}},{key:"renderLoadMore",value:function(){var e=this.props;return e.hasPendingResults?l.a.createElement(Ju,null,l.a.createElement(Ai,{primary:!0,onClick:e.loadMore},e.intl.formatMessage(Gr.loadMore))):l.a.createElement(Yi,{height:"40px"},l.a.createElement(Ui,null,e.intl.formatMessage(Gr.noMoreResults)))}},{key:"render",value:function(){var e=this.props,t=this.renderRows(e.personCountryCodes,e.winners,e.finishers),n=this.renderLoadMore();return t.length?l.a.createElement("div",null,l.a.createElement("ul",null,t),n):e.intl.formatMessage(Gr.emptyLeaderboard)}}])}(l.a.Component);Qe()(uc,"propTypes",{personCountryCodes:m.a.object.isRequired,type:m.a.number.isRequired,finishers:m.a.array.isRequired,winners:m.a.array.isRequired,hasPendingResults:m.a.bool.isRequired,intl:gn.isRequired});var cc=Dn(uc);function hc(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var pc=function(e){function t(){return tt()(this,t),hc(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getTimeArray",value:function(){return[[this.props.intl.formatMessage(Gr.days),this.props.intl.formatMessage(Gr.day)],[this.props.intl.formatMessage(Gr.hours),this.props.intl.formatMessage(Gr.hour)],[this.props.intl.formatMessage(Gr.minutes),this.props.intl.formatMessage(Gr.minute)],[this.props.intl.formatMessage(Gr.seconds),this.props.intl.formatMessage(Gr.second)]]}},{key:"calculateTimeLeft",value:function(e){var t=Date.now(),n=new Date(e).getTime(),r=Math.round((n-t)/1e3),i=ha(r,this.getTimeArray());return r<0?"":this.props.intl.formatMessage(Gr.timeLeft,{time:i})}},{key:"render",value:function(){return l.a.createElement("span",null,this.calculateTimeLeft(this.props.endsAt))}}])}(l.a.PureComponent);Qe()(pc,"propTypes",{endsAt:m.a.string.isRequired,intl:gn.isRequired});var dc,fc,mc,gc,yc,vc,_c=Dn(pc),xc=Xe.d.div(dc||(dc=p()(["\n  float: right;\n  font-weight: 600;\n"]))),bc=Xe.d.ul(fc||(fc=p()(["\n  position: relative;\n\n  i {\n    font-size: 1.15rem;\n    margin-top: 5px;\n    color: ",";\n  }\n\n  li:not(:last-of-type) {\n    margin-bottom: 20px;\n  }\n\n  li > span {\n    position: absolute;\n    left: 0;\n  }\n\n  li > div {\n    margin-left: 24px;\n  }\n"])),(function(e){return e.theme.colors.main})),wc=Xe.d.div(mc||(mc=p()(["\n  background: url(",");\n  background-size: cover;\n  background-position: center;\n  height: 300px;\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n"])),(function(e){return e.url})),Sc=Xe.d.div(gc||(gc=p()(["\n  overflow: hidden;\n  text-overflow: ellipsis;\n\n  div {\n    display: inline-block;\n  }\n\n  div:first-of-type {\n    margin-right: 10px;\n  }\n\n  div:nth-child(2) {\n    vertical-align: super;\n  }\n\n  @media (max-width: ",") {\n    div:nth-child(2) {\n      white-space: nowrap;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),kc=Xe.d.div(yc||(yc=p()(["\n  margin-bottom: 5px;\n\n  h1 {\n    font-size: 1.25rem;\n    font-weight: 600;\n  }\n"]))),Tc=Xe.d.div(vc||(vc=p()(["\n  margin-top: ",";\n"])),(function(e){return e.theme.general.sectionSeparation}));function Mc(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Ec=function(e){function t(e){var n;return tt()(this,t),n=Mc(this,t,[e]),Qe()(n,"state",{leaderboardLists:{personCountryCodes:{},finishers:[],winners:[]}
77,leaderboardHasPendingResults:!1,leaderboardIsFetched:!1}),n.request=new mr("challenge",e.store.user),n.onJoinChallengeClicked=n.onJoinChallengeClicked.bind(n),n.fetchLeaderboard=n.fetchLeaderboard.bind(n),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){this.fetchChallenge()}},{key:"componentDidUpdate",value:function(e){this.props.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user,this.fetchChallenge())}},{key:"onJoinChallengeClicked",value:function(){var e=this,t=this.props,n=t.store.challenge;this.props.analytics.track(this.props.analytics.events.CHALLENGE_JOIN_BUTTON_TAPPED,{challenge_object_id:n.id,challenge_name:n.name,challenge_author_object_id:n.authorPersonObjectId,challenge_author_name:n.authorPersonName,platform:"web"});var r=function(e){var t,n={},r=cr(e.replace("?","").split("&"));try{for(r.s();!(t=r.n()).done;){var i=t.value.split("="),o=lr()(i,2),a=o[0],s=o[1];n[a]=s}}catch(e){r.e(e)}finally{r.f()}return n}(window.location.search).referrerCode;console.log("Sending join ServerRequest.join",JSON.stringify({challengeId:n.id,referrerCode:r})),n.isAvailableInYourCountry&&(t.store.user.id?this.request.join(n.id,r).then((function(){e.fetchChallenge()})):this.props.dispatch({type:gr.OPEN_MODAL,payload:{id:"signup"}}))}},{key:"fetchChallenge",value:function(){var e=this,t=this.props.match.params.id;this.fetchLeaderboard().then((function(){return e.request.find(t)})).then((function(n){e.props.analytics.track(e.props.analytics.events.CHALLENGE_VIEW_DID_LOAD,{challenge_object_id:t,challenge_name:n.name,challenge_author_object_id:n.authorPersonObjectId,challenge_author_name:n.authorPersonName}),e.props.dispatch({type:gr.ADD_CHALLENGE,payload:{challenge:n}})}))}},{key:"fetchLeaderboard",value:function(){var e=this;return new Promise((function(t){var n=e.props.match.params.id,r=e.state.leaderboardLists,i=r.personCountryCodes,o=r.finishers,a=r.winners;e.request.leaderboard({id:n,offset:e.state.leaderboardLists.finishers.length||0}).then((function(n){var r={};Array.from(Object.entries(i)).concat(Array.from(Object.entries(n.personCountryCodes))).forEach((function(e){var t=lr()(e,2),n=t[0],i=t[1];r[n]=i})),e.setState({leaderboardLists:{personCountryCodes:r,finishers:o.concat(n.finishers),winners:a.concat(n.winners)},leaderboardIsFetched:!0,leaderboardHasPendingResults:n.finishers.length>0},t)}))}))}},{key:"renderLeaderboard",value:function(){var e=this.state,t=e.leaderboardLists,n=e.leaderboardIsFetched,r=e.leaderboardHasPendingResults;return n?l.a.createElement(cc,{type:this.props.store.challenge.leaderboardType,personCountryCodes:t.personCountryCodes,finishers:t.finishers,winners:t.winners,hasPendingResults:r,loadMore:this.fetchLeaderboard}):this.props.intl.formatMessage(Gr.loadingLeaderboard)}},{key:"renderObjectives",value:function(e){var t=this.props,n=t.intl.formatMessage(Gr.notAccomplished);return e.map((function(e){var r=e.completedPersonsCount,i=t.intl.formatMessage(Gr.objectiveAccomplishedBy,{people:r}),o=r>0?i:n,a=e.id||e.taskObjectId;return l.a.createElement("li",{key:a},l.a.createElement(Qr,{type:"check"}),l.a.createElement("div",null,l.a.createElement("span",null,e.name),l.a.createElement("span",null,l.a.createElement(Ui,null,o))))}))}},{key:"renderLoading",value:function(){return l.a.createElement(Bo,null)}},{key:"renderChallengeJoin",value:function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,e.intl.formatMessage(Gr.joinChallenge)),l.a.createElement(Tc,null,l.a.createElement(Ai,{primary:!0,fullWidth:!0,onClick:function(){}},e.intl.formatMessage(Gr.joinChallengeButton))))}},{key:"renderChallengeCanNotJoin",value:function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("p",null,e.intl.formatMessage(Gr.joinChallenge)),l.a.createElement(Tc,null,l.a.createElement(Ai,{primary:!0,fullWidth:!0,onClick:function(){},disabled:!0},e.intl.formatMessage(Gr.joinChallengeOnlyApp))))}},{key:"renderChallenge",value:function(){var e=this.props,t=e.store.challenge,n=this.renderLeaderboard(),r=this.renderObjectives(t.tasks),i=t.rewardText,o=pr(Xp.profile.show,{id:t.authorPersonObjectId}),a=t.isAvailableInYourCountry&&!t.joinAuthConfig&&!t.belongsToCommunity;return l.a.createElement(Ri,null,l.a.createElement(Xr,{title:"".concat(t.name," | ").concat(t.authorPersonName)}),l.a.createElement(Oi,{width:37.5},l.a.createElement(zi,{simple:!0},l.a.createElement(wc,{url:t.backgroundPictureURLString}),l.a.createElement(Ni,null,l.a.createElement(xc,null,l.a.createElement(_c,{endsAt:t.endsAt})),l.a.createElement(kc,null,l.a.createElement(ji,null,t.name),l.a.createElement(Ui,null,t.subHeader)),l.a.createElement(qi,null),l.a.createElement(Bi,null,t.detailText)))),l.a.createElement(Oi,{width:37.5},l.a.createElement(zi,null,t.subscribedAt&&l.a.createElement(l.a.Fragment,null,t.completedAt&&l.a.createElement("p",null,e.intl.formatMessage(Gr.challengeCompleted)),!t.completedAt&&l.a.createElement("p",null,e.intl.formatMessage(Gr.challengeAlreadyJoined,{completedTasks:t.tasks.filter((function(e){return e.completedAt})).length,totalTasks:t.tasks.length}))),!t.subscribedAt&&l.a.createElement(l.a.Fragment,null,!t.isAvailableInYourCountry&&l.a.createElement("p",null,e.intl.formatMessage(Gr.challengeIsNotAvailableInYourCountry)),a?this.renderChallengeJoin(e):this.renderChallengeCanNotJoin(e))),l.a.createElement(Vi,null,e.intl.formatMessage(Gr.aboutTheAuthor)),l.a.createElement(zi,null,l.a.createElement(Sc,null,l.a.createElement(Hi,{to:o},l.a.createElement(Gi,{size:50,src:t.authorPersonPictureURLString})),l.a.createElement("div",null,l.a.createElement(ji,null,t.authorPersonName),l.a.createElement(Ui,null,e.intl.formatMessage(Gr.followersCount,{followers:t.authorPerson
77FollowersCount||0}))))),i&&l.a.createElement(l.a.Fragment,null,l.a.createElement(Vi,null,e.intl.formatMessage(Gr.prizes)),l.a.createElement(zi,null,l.a.createElement(Bi,null,i))),l.a.createElement(Vi,null,e.intl.formatMessage(Gr.objectives)),l.a.createElement(zi,null,l.a.createElement(bc,null,r))),l.a.createElement(Oi,{width:25},l.a.createElement(Vi,null,e.intl.formatMessage(Gr.leaderboard)),l.a.createElement(zi,null,n)))}},{key:"render",value:function(){return this.props.store.challenge?this.renderChallenge():this.renderLoading()}}])}(l.a.Component);Qe()(Ec,"propTypes",{intl:gn.isRequired,analytics:At.isRequired});var Cc,Ic,Ac,Pc,Dc,Lc=Au(Pt(Dn(le(St.challenge)(Ec)))),Oc=Xe.d.div(Cc||(Cc=p()(["\n  display: flex;\n  background: url(",");\n  background-size: cover;\n  display: block;\n  height: 225px;\n  width: 300px;\n"])),(function(e){return e.background})),Rc=Xe.d.div(Ic||(Ic=p()(["\n  top: 5px;\n  left: -5px;\n  z-index: 2;\n  background: ",";\n  font-weight: 700;\n  text-transform: uppercase;\n  font-style: italic;\n  padding: 5px 15px;\n  border-radius: unset;\n  color: #fff;\n  box-shadow: 5px 5px 0px ",";\n  position: relative;\n  height: min-content;\n  width: min-content;\n"])),(function(e){return e.theme.colors.main}),(function(e){return e.theme.colors.mainShadow})),zc=Xe.d.div(Ac||(Ac=p()(["\n  height: 100px;\n  width: 300px;\n  padding: 10px;\n  box-sizing: border-box;\n\n  p {\n    word-break: break-all;\n    color: ",";\n    height: 60px;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    margin-bottom: 10px;\n  }\n"])),(function(e){return e.theme.colors.font})),Nc=Xe.d.div(Pc||(Pc=p()(["\n  display: flex;\n  justify-content: space-between;\n  width: 100%;\n  color: ",";\n\n  .subscribers {\n    font-weight: 600;\n    color: ",";\n  }\n"])),(function(e){return e.theme.colors.font}),(function(e){return e.theme.colors.main})),Bc=Xe.d.div(Dc||(Dc=p()(["\n  box-sizing: border-box;\n  width: 100%;\n  text-align: center;\n  font-size: 1.25rem;\n  margin-bottom: 10px;\n  font-weight: 600;\n"])));function Fc(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Vc=function(e){function t(){return tt()(this,t),Fc(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getTimeArray",value:function(){return[[this.props.intl.formatMessage(Gr.days),this.props.intl.formatMessage(Gr.day)],[this.props.intl.formatMessage(Gr.hours),this.props.intl.formatMessage(Gr.hour)],[this.props.intl.formatMessage(Gr.minutes),this.props.intl.formatMessage(Gr.minute)],[this.props.intl.formatMessage(Gr.seconds),this.props.intl.formatMessage(Gr.second)]]}},{key:"calculateTimeLeft",value:function(e){var t=Date.now(),n=new Date(e).getTime(),r=Math.round((n-t)/1e3),i=ha(r,this.getTimeArray());return r<0?"":this.props.intl.formatMessage(Gr.timeLeft,{time:i})}},{key:"render",value:function(){var e=this.props,t=e.challenge;return l.a.createElement(Hi,{to:e.url},l.a.createElement(Oc,{key:t.id,background:t.backgroundPictureURLString},!!t.tileTag&&l.a.createElement(Rc,null,t.tileTag)),l.a.createElement(zc,null,l.a.createElement(Bc,null,t.name),l.a.createElement("p",null,t.detailText),l.a.createElement(Nc,null,l.a.createElement(_c,{endsAt:t.endsAt}),l.a.createElement("span",{className:"subscribers"},e.intl.formatMessage(Gr.peopleJoined,{subscribers:t.subscriberCount})))))}}])}(l.a.PureComponent);Qe()(Vc,"propTypes",{url:m.a.string.isRequired,challenge:m.a.shape({id:m.a.string,name:m.a.string,backgroundPictureURLString:m.a.string,subscriberCount:m.a.number,authorPersonPictureURLString:m.a.string,tagTile:m.a.string}).isRequired,intl:gn.isRequired});var jc,Uc,Gc=Dn(Vc),qc=Xe.d.div(jc||(jc=p()(["\n  display: flex;\n  flex-wrap: wrap;\n\n  a {\n    margin-right: 10px;\n  }\n"]))),Hc=Xe.d.div(Uc||(Uc=p()(["\n  margin-bottom: 20px;\n\n  img {\n    width: 100%;\n  }\n"])));function Wc(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Zc=function(e){function t(e){var n;return tt()(this,t),n=Wc(this,t,[e]),Qe()(n,"state",{isLoaded:!1}),n.request=new mr("challenge",e.store.user),n.renderChallengeTile=n.renderChallengeTile.bind(n),n}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){this.fetchChallenges()}},{key:"componentDidUpdate",value:function(){var e=this.props;e.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user,this.fetchChallenges())}},{key:"fetchChallenges",value:function(){var e=this;this.request.all().then((function(t){e.state.isLoaded||e.setState({isLoaded:!0}),e.props.dispatch({type:gr.ADD_CHALLENGES,payload:{challenges:t}})}))}},{key:"filterChallenges",value:function(e){var t=this;return e.map((function(e){return t.props.store.challenges[e]}))}},{key:"renderLoading",value:function(){return l.a.createElement(Bo,null)}},{key:"renderChallengeTile",value:function(e,t){var n=pr(Xp.challenge.show,{id:e.id});return t&&(e.tileTag=this.props.intl.formatMessage(Gr.completedTag)),l.a.createElement(Gc,{key:e.id,challenge:e,url:n})}},{key:"renderCarousel",value:function(e,t){return e.length?l.a.createElement(ba,null,e):l.a.createElement(Yi,{height:this.props.theme.challenges.carouselHeight},l.a.createElement(Ui,null,t))}},{key:"renderChallenges",value:function(){var e=this,t=this.props,n=t.store.challenges.grouped,r=n.active,i=n.finished,o=!(!this.request.currentUser||!this.request.currentUser.id),a="US"===t.store.localization.country?"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/2021_06_07_Web_Suda_Desafios_ENG.jpg":"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/2021_06_07_Web_Suda_Desafios_ESP.jpg",s=t.intl.formatMessage(Gr.noCurrentChallenges),u=t.intl.formatMessage(o?Gr.noPastChallenges:Gr.anonymousPastChallenges),c=this.filterChallenges(r&&r.uncompleted||[]).map((function(t){return e.renderChallengeTile(t,!1)})),h=this.filterChallenges(r&&r.completed||[]).map((function(t){return e.renderChallengeTile(t,!0)})),p=this.filterChallenges(i&&i.uncompleted||[]).map((function(t){return e.renderChallengeTile(t,!1)})),d=this.filterChallenges(i&&i.completed||[]).map((function(t){return e.renderChallengeTile(t,!0)})),f=this.renderCarousel(c.concat(h),s),m=this.renderCarousel(p.concat(d),u);return l.a.createElement(Ri,null,l.a.createElement(Xr,{title:t.intl.formatMessage(Gr.challenges)}),l.a.createElement(Oi,{width:100},l.a.createElement(Hc,null,l.a.createElement("img",{src:a,alt:t.intl.formatMessage(Gr.challengesHeading)})),l.a.createElement(Vi,null,t.intl.formatMessage(Gr.currentChallenges)),l.a.createElement(zi,null,l.a.createElement(qc,null,f)),l.a.createElement(Vi,null,t.intl.formatMessage(Gr.pastChallenges)),l.a.createElement(zi,null,l.a.createElement(qc,null,m))))}},{key:"render",value:function(){return this.state.isLoaded?this.renderChallenges():this.renderLoading()}}])}(l.a.Component);Qe()(Zc,"propTypes",{intl:gn.isRequired});var Yc,Xc,Kc,$c,Jc=Au(Object(Xe.e)(Dn(le(St.challenges)(Zc)))),Qc=Xe.d.div(Yc||(Yc=p()(["\n  background: #fff;\n  position: relative;\n  box-sizing: border-box;\n  color: #494949;\n  height: 320px;\n  vertical-align: top;\n  overflow: hidden;\n\n  & > a {\n    width: 100%;\n  }\n"]))),eh=Xe.d.div(Xc||(Xc=p()(["\n  background: url(",") no-repeat;\n  background-position: 50% 50%;\n  background-size: cover;\n  height: 200px;\n"])),(function(e){return e.picture})),th=Xe.d.div(Kc||(Kc=p()(["\n  padding: 0 10px;\n\n  h1 {\n    margin-bottom: 5px;\n    color: #494949;\n  }\n\n  h2 {\n    font-weight: 600;\n    text-transform: uppercase;\n    margin-bottom: 2px;\n    font-size: 0.85em;\n\n    ","\n  }\n"])),(function(e){return e.color&&"\n      color: ".concat(e.color,";\n    ")})),nh=Xe.d.div($c||($c=p()(["\n  display: flex;\n  position: relative;\n  margin-left: 5px;\n  margin-bottom: -25px;\n\n  div {\n    border-color: #fff;\n    margin-right: 5px;\n  }\n\n  a:nth-child(2) {\n    vertical-align: top;\n    margin-top: 15px;\n    color: #494949;\n\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  }\n\n  a span {\n    font-weight: 600;\n  }\n"])));function rh(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var ih=function(e){function t(){return tt()(this,t),rh(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"getMainPictureURL",value:function(){var e=this.props,t=e.activity;return t.mainPictureURL?t.mainPictureURL:pr(window.SERVER_DATA.url.activityTile,{userId:e.userId?"guest":e.userId,width:600,height:500,id:t.id})}},{key:"getSportColor",value:function(e){var t=Ao.sports[e].sportType;return Ao.colors[t]}},{key:"render",value:function(){var e=this.props,t={to:pr(Xp.activity.show,{id:e.activity.id})},n=this.getMainPictureURL(),r=e.activity.sportKey.toLowerCase(),i=this.getSportColor(e.activity.sportKey);return l.a.createElement(Qc,{key:e.activity.id},e.activity.author.name&&l.a.createElement(nh,null,l.a.createElement(Hi,{to:pr(Xp.profile.show,{id:e.activity.author.id})},l.a.createElement(Gi,{border:!0,size:55,src:e.activity.author.avatar})),l.a.createElement(Hi,{to:pr(Xp.profile.show,{id:e.activity.author.id})},l.a.createElement("span",null,e.activity.author.name))),l.a.createElement(Hi,t,l.a.createElement(eh,{picture:n})),l.a.createElement(th,{color:i},l.a.createElement("h2",null,e.intl.formatMessage(Gr[r])),l.a.createElement(Hi,t,l.a.createElement("h1",null,e.activity.name))))}}])}(l.a.PureComponent);Qe()(ih,"propTypes",{activity:m.a.object.isRequired,userId:m.a.string,intl:gn.isRequired}),Qe()(ih,"defaultProps",{userId:"guest"});var oh,ah,sh,lh,uh,ch,hh,ph,dh,fh=Dn(ih),mh=["https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_01.jpg","https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_02.jpg","https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_03.jpg","https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_04.jpg","https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_05.jpg","https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_06.jpg"][Math.floor(5*Math.random())],gh=Xe.d.div(oh||(oh=p()(["\n  min-height: 500px;\n  width: 100%;\n  background: #07405d url(",") no-repeat 50% 50%;\n  background-position: bottom;\n  background-size: cover;\n  color: ",";\n  padding-top: 40px 20px 0 20px;\n  margin-bottom: 40px;\n\n  a {\n    text-decoration: none;\n  }\n"])),mh,"#fff"),yh=(Xe.d.div(ah||(ah=p()(["\n  z-index: 3;\n  position: absolute;\n  padding: 10px;\n  right: 1em;\n  font-size: large;\n\n  a {\n    color: inherit;\n  }\n\n  a:visited {\n    color: inherit;\n  }\n"]))),Xe.d.nav(sh||(sh=p()(["\n  display: flex;\n  justify-content: center;\n  width: 100%;\n  height: ",";\n  font-size: 1.2em;\n\n  ul {\n    display: flex;\n    flex-grow: 1;\n    flex-basis: 200px;
77\n    align-items: flex-end;\n    height: ",";\n    padding-bottom: 40px;\n    box-sizing: border-box;\n\n    li {\n      display: flex;\n      align-items: center;\n      height: 25px;\n      white-space: nowrap;\n\n      a {\n        color: ",";\n      }\n\n      &:not(:last-child) {\n        margin-right: ",";\n\n        &::after {\n          content: '';\n          border-right: 1px solid ",";\n          margin-left: ",";\n          height: 25px;\n        }\n      }\n    }\n\n    &:first-child {\n      justify-content: flex-end;\n      margin-right: ",";\n    }\n\n    &:last-child {\n      margin-left: ",";\n    }\n  }\n\n  & > div img {\n    width: 200px;\n  }\n\n  @media (max-width: ",") {\n    flex-direction: column;\n\n    & > div {\n      order: 2;\n      text-align: center;\n      margin-top: 80px;\n    }\n\n    & > ul.nav-links {\n      order: 1;\n      justify-content: center;\n      padding: 0;\n      margin: 0;\n\n      &:first-child {\n        margin-top: 30px;\n        margin-bottom: 15px;\n      }\n\n      &:last-child {\n        margin-bottom: 30px;\n      }\n\n      li {\n        &::after {\n          border: none;\n        }\n      }\n    }\n  }\n"])),"150px","150px","#fff","20px","#fff","20px","20px","20px",(function(e){return e.theme.media.small}))),vh=Xe.d.div(lh||(lh=p()(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  margin-top: 100px;\n  text-align: center;\n\n  h1 {\n    font-size: 3em;\n    font-weight: 900;\n    color: #fff;\n  }\n\n  h2 {\n    font-size: 1.2em;\n    font-weight: 300;\n  }\n\n  & > div {\n    & > div {\n      margin-top: 40px;\n      max-width: 100%;\n\n      input {\n        font-size: 1.8em;\n        border-radius: 12px;\n      }\n\n      input::placeholder {\n        font-weight: 300;\n      }\n\n      button.search {\n        top: 6px;\n        font-size: 2em;\n        right: 0.5em;\n      }\n\n      &.options {\n        margin: 1em 0.5em;\n        min-height: 3em;\n      }\n\n      span {\n        &.left {\n          float: left;\n        }\n\n        &.right {\n          float: right;\n        }\n\n        a {\n          color: white;\n        }\n      }\n    }\n  }\n\n  @media (max-width: ",") {\n    h1 {\n      line-height: 45px;\n    }\n\n    & > div {\n      & > div {\n        padding: 0 20px;\n        margin-top: 30px;\n\n        button.search {\n          right: 1em;\n        }\n      }\n    }\n  }\n"])),(function(e){return e.theme.media.small})),_h=Xe.d.span(uh||(uh=p()(["\n  img {\n    margin: -94px 0 0 -45px;\n    max-width: 325px;\n  }\n\n  @media (max-width: ",") {\n    img {\n      max-width: 240px;\n      margin: -28px 0 0 -135px;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),xh=Xe.d.div(ch||(ch=p()(["\n  display: flex;\n  position: absolute;\n\n  & > div {\n    margin-top: 110px;\n    margin-left: -20px;\n\n    img.suda-logo {\n      width: 60px;\n      float: left;\n      margin-right: 5px;\n    }\n\n    h4 {\n      color: ",";\n      font-size: 2em;\n      line-height: 30px;\n\n      &.routes {\n        font-weight: 900;\n        font-size: 2.65em;\n        color: ",";\n      }\n\n      &.explore {\n        font-weight: 900;\n        font-size: 3em;\n        color: ",";\n        margin-bottom: 10px;\n      }\n    }\n  }\n\n  @media (max-width: ",") {\n    position: relative;\n\n    & > div {\n      margin-top: 0;\n      margin-left: -25px;\n    }\n  }\n"])),(function(e){return e.theme.colors.font}),(function(e){return e.theme.colors.main}),(function(e){return e.theme.colors.secondary}),(function(e){return e.theme.media.small})),bh=Xe.d.div(hh||(hh=p()(["\n  img {\n    width: 120px;\n  }\n"]))),wh=Xe.d.section(ph||(ph=p()(["\n  margin-bottom: 20px;\n\n  h1 {\n    display: block;\n  }\n\n  li {\n    width: 300px;\n  }\n\n  a {\n    text-decoration: none;\n  }\n\n  &.blog-posts {\n    height: 380px;\n    padding-left: 520px;\n    min-height: 380px;\n  }\n\n  @media (max-width: ",") {\n    &.blog-posts {\n      padding-left: 0;\n    }\n  }\n"])),(function(e){return e.theme.media.small})),Sh=Xe.d.div(dh||(dh=p()(["\n  height: 300px;\n  display: flex;\n  align-items: flex-end;\n  color: #fff;\n  padding: 20px;\n  font-size: 2em;\n  font-weight: 600;\n  line-height: 28px;\n  background: url(",") no-repeat 50% 50%;\n  background-size: cover;\n  box-shadow: inset 0 -100px 80px -45px #000;\n  text-shadow: 0px 0px 10px black;\n"])),(function(e){return e.background}));
77function kh(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Th=function(e){function t(e){var n;return tt()(this,t),(n=kh(this,t,[e])).state={featuredActivities:[],blogPosts:[]},n.blogRequest=new mr("blog",e.store.user,e.store.localization.lang,e.store.localization.country),n.request=new mr("activity",e.store.user),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this,t=dr.activity,n=dr.blog,r=t.featured;this.request.send({url:r.url,method:r.method}).then((function(t){e.setState({featuredActivities:t})})),this.blogRequest.requestCountry=this.props.store.localization.country,this.blogRequest.requestLang=this.props.store.localization.lang,this.blogRequest.send({url:n.all.url,method:n.all.method}).then((function(t){e.setState({blogPosts:t})}))}},{key:"renderBlogPosts",value:function(){return Array.isArray(this.state.blogPosts)?this.state.blogPosts.map((function(e){return l.a.createElement("a",{key:e.id,href:e.url,target:"_blank",rel:"noopener noreferrer"},l.a.createElement(Sh,{background:e.feature_image},e.title))})):null}},{key:"renderFeaturedActivities",value:function(){return Array.isArray(this.state.featuredActivities)?this.state.featuredActivities.map((function(e){return l.a.createElement(fh,{key:e.id,activity:e})})):null}},{key:"render",value:function(){var e=this.props.intl,t=this.renderBlogPosts(),n=this.renderFeaturedActivities();return l.a.createElement(l.a.Fragment,null,l.a.createElement(Xr,{title:"SUDA | ".concat(e.formatMessage(Gr.headline)),noSuffix:!0}),l.a.createElement(ou,null),l.a.createElement(gh,null,l.a.createElement(yh,null,l.a.createElement("ul",{className:"nav-links"},l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.aboutUs},e.formatMessage(Gr.aboutUs))),l.a.createElement("li",null,l.a.createElement(Hi,{to:Xp.challenge.index},e.formatMessage(Gr.challenges)))),l.a.createElement("div",null,l.a.createElement(Hi,{to:Xp.root},l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_white.svg",alt:"SUDA"}))),l.a.createElement("ul",{className:"nav-links"},l.a.createElement("li",null,l.a.createElement("a",{href:Xp.blog,target:"_blank",rel:"noopener noreferrer"},e.formatMessage(Gr.blog))),l.a.createElement("li",null,l.a.createElement("a",{href:Xp.support,target:"_blank",rel:"noopener noreferrer"},e.formatMessage(Gr.support))))),l.a.createElement(vh,null,l.a.createElement("div",null,l.a.createElement(Fi,null,e.formatMessage(Gr.headline)),l.a.createElement("h2",null,e.formatMessage(Gr.headlineSubtitle)),l.a.createElement(el,{suggestions:!1}),l.a.createElement("div",{className:"options"},l.a.createElement("span",{className:"center"},l.a.createElement(Hi,{to:Xp.map},e.formatMessage(Gr.searchOnMap))))))),l.a.createElement(Ri,null,l.a.createElement(Oi,{width:100},l.a.createElement(xh,null,l.a.createElement(_h,null,l.a.createElement("img",{src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home_iphone_x.png",alt:""})),l.a.createElement("div",null,l.a.createElement("img",{className:"suda-logo",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda.svg",alt:"SUDA"}),l.a.createElement("h4",null,e.formatMessage(Gr.moreThan)),l.a.createElement("h4",{className:"routes"},e.formatMessage(Gr.numberOfRoutes,{routes:5e5})),l.a.createElement("h4",null,e.formatMessage(Gr.routesTo)),l.a.createElement("h4",{className:"explore"},e.formatMessage(Gr.explore)),l.a.createElement(bh,null,l.a.createElement("a",{href:"https://m.suda.io/download-ios",target:"_blank",rel:"noopener noreferrer"},l.a.createElement("img",{alt:"Download",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/stores/appstore.svg"})),l.a.createElement("a",{href:"https://m.suda.io/download-android",target:"_blank",rel:"noopener noreferrer"},l.a.createElement("img",{alt:"Download",src:"https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/stores/googleplay.svg"})),l.a.createElement(Ui,null,e.formatMessage(Gr.availableFor))))),l.a.createElement(wh,{className:"blog-posts"},l.a.createElement(Fi,null,e.formatMessage(Gr.cannotMiss)),t&&l.a.createElement(ba,null,t)))),l.a.createElement(Ri,null,l.a.createElement(Oi,{width:100},l.a.createElement(wh,null,l.a.createElement(Fi,null,e.formatMessage(Gr.featured)),n&&l.a.createElement(ba,null,
77n)))),l.a.createElement(no,null))}}])}(l.a.Component);Qe()(Th,"propTypes",{intl:gn.isRequired});var Mh,Eh,Ch=Dn(le(St.home)(Th)),Ih=Xe.d.div(Mh||(Mh=p()(["\n  @media (min-width: 800px) {\n    background: url('https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_white.svg')\n      center center / cover no-repeat;\n    height: 150px;\n    width: 200px;\n  }\n\n  @media (min-width: 100px) {\n    background: url('https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/suda_white.svg')\n      center center / cover no-repeat;\n    min-height: 25vw;\n    min-width: 50vw;\n  }\n"]))),Ah=Xe.d.div(Eh||(Eh=p()(["\n  display: flex;\n  min-height: 50vh;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  max-height: 100vh;\n  font-size: x-large;\n  text-align: center;\n  line-height: normal;\n  margin: 5vw;\n  word-wrap: anywhere;\n  color: white;\n\n  h1 {\n    display: flex;\n    align-items: center;\n    min-height: 15vh;\n  }\n\n  h2 {\n    font-size: smaller;\n  }\n\n  a {\n    color: white;\n  }\n"])));function Ph(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Dh=function(e){function t(){var e;tt()(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=Ph(this,t,[].concat(r)),Qe()(e,"state",{destinationLink:""}),e}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:(n=i()(a.a.mark((function e(){var t,n,r,i,o,s=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=document.querySelector("#app"))&&(t.style.background='rgb(7, 64, 93) url("https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/home-backgrounds/bg_05.jpg") center bottom / cover no-repeat'),n=window.location.pathname.replace("link","").replace(/\//g,""),(r=new Headers).append("X-Parse-Application-Id",void 0),r.append("Content-Type","application/json"),i=JSON.stringify({objectId:n,slug:n}),o={method:"POST",headers:r,body:i},e.next=12,fetch("".concat(void 0,"/functions/getLink"),o).then((function(e){return e.text()})).then((function(e){var t=JSON.parse(e).result.link.destination;s.setState({destinationLink:t})})).catch((function(e){console.log("error",e),s.setState({destinationLink:window.location.origin})}));case 12:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:function(){var e=this.state.destinationLink;e&&setTimeout((function(){window.location.replace(e)}),3e3)}},{key:"renderSuccess",value:function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("h1",null,"Serás redireccionado a"),l.a.createElement("h2",null,l.a.createElement("a",{href:e},e)))}},{key:"renderDefault",value:function(){return l.a.createElement("h1",null,"Validando enlace, por favor espera.")}},{key:"renderLayout",value:function(e){return l.a.createElement(Ah,null,l.a.createElement(Ih,null),e)}},{key:"render",value:function(){console.log(void 0);var e,t=this.state.destinationLink;return e=t?this.renderSuccess(t):this.renderDefault(),this.renderLayout(e)}}]);var n}(l.a.Component);Qe()(Dh,"propTypes",{intl:gn.isRequired,analytics:At.isRequired});var Lh=Pt(Dn(le(St.link)(Dh)));function Oh(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Rh=function(e){function t(){return tt()(this,t),Oh(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){return l.a.createElement("h1",null,"404 - not found")}}])}(l.a.PureComponent);function zh(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Nh=function(e){function t(){return tt()(this,t),zh(this,t,arguments)}return ut()(t,e),rt()(t,[{key:"render",value:function(){var e=this.props.person;return l.a.createElement(Hi,{key:e.id,to:pr(Xp.profile.show,{id:e.id})},l.a.createElement(Gi,{border:!0,size:60,src:this.props.person.avatar}))}}])}(l.a.PureComponent);Qe()(Nh,"propTypes",{person:m.a.object.isRequired});var Bh=Nh;function Fh(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Vh=0,jh=1,Uh=2,Gh=function(e){function t(e){var n;return tt()(this,t),n=Fh(this,t,[e]),Qe()(n,"state",{hover:!1}),n.request=new mr("profile",e.store.user),n.onFollowButtonClicked=n.onFollowButtonClicked.bind(n),n.onFollowButtonHovered=n.onFollowButtonHovered.bind(n),n}
77return ut()(t,e),rt()(t,[{key:"componentDidUpdate",value:function(e){e.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user)}},{key:"onFollowButtonClicked",value:function(){var e=this,t=this.props;t.store.user.id?null!==t.followStatus?this.request.unfollow(t.personId).then((function(){e.reloadProfile(t.personId)})):this.request.follow(t.personId).then((function(){e.reloadProfile(t.personId)})):t.dispatch({type:gr.OPEN_MODAL,payload:{id:"login"}})}},{key:"onFollowButtonHovered",value:function(){this.setState((function(e){return{hover:!e.hover}}))}},{key:"getButtonText",value:function(){var e=this.props;if(this.state.hover){if(e.followStatus===Vh||e.followStatus===Uh)return e.intl.formatMessage(Gr.cancelRequestButton);if(e.followStatus===jh)return e.intl.formatMessage(Gr.unfollowButton)}switch(e.followStatus){case Vh:case Uh:return e.intl.formatMessage(Gr.pendingButton);case jh:return e.intl.formatMessage(Gr.followingButton);default:return e.intl.formatMessage(Gr.followButton)}}},{key:"reloadProfile",value:function(e){var t=this;this.request.find(e).then((function(e){t.props.dispatch({type:gr.ADD_PROFILE,payload:{profile:e}})}))}},{key:"render",value:function(){var e=this.getButtonText(),t={onClick:this.onFollowButtonClicked,onMouseEnter:this.onFollowButtonHovered,onMouseLeave:this.onFollowButtonHovered};return l.a.createElement(Ai,$e()({primary:!0,fullWidth:!0},t),e)}}])}(l.a.Component);Qe()(Gh,"propTypes",{personId:m.a.string.isRequired,intl:gn.isRequired});var qh,Hh,Wh,Zh,Yh,Xh=Dn(le(St.follow)(Gh)),Kh=Xe.d.div(qh||(qh=p()(["\n  padding: ",";\n  padding-top: 0;\n  position: relative;\n  padding-left: 140px;\n  min-height: 85px;\n\n  & > div:first-of-type {\n    position: absolute;\n    left: ",";\n  }\n"])),(function(e){return e.theme.general.padding}),(function(e){return e.theme.general.padding})),$h=Xe.d.ul(Hh||(Hh=p()(["\n  li:not(:last-child) {\n    margin-bottom: 2px;\n  }\n\n  li:first-child {\n    margin-bottom: 10px;\n    font-weight: 600;\n\n    span:not(:last-child) {\n      margin-right: 5px;\n    }\n  }\n\n  i {\n    width: 15px;\n    margin-right: 5px;\n    color: ",";\n  }\n"])),(function(e){return e.theme.colors.main})),Jh=Xe.d.div(Wh||(Wh=p()(["\n  margin: -5px;\n\n  & > div {\n    display: inline-block;\n    box-sizing: border-box;\n    width: 33.3%;\n    padding: 5px;\n  }\n\n  @media (max-width: 1226px) {\n    & > a {\n      width 50%;\n    }\n  }\n\n  @media (max-width: ",") {\n    & > div {\n      width: 100%;\n    }\n\n    & > a {\n      width 100%;\n      margin: 0;\n\n      &:not(:last-of-type) {\n        margin-bottom: 10px;\n      }\n    }\n  }\n"])),(function(e){return e.theme.media.small})),Qh=Xe.d.div(Zh||(Zh=p()(["\n  margin: -5px;\n\n  & > a {\n    margin: 5px;\n  }\n"]))),ep=Xe.d.div(Yh||(Yh=p()(["\n  margin-top: ",";\n  text-align: center;\n"])),(function(e){return e.theme.general.sectionSeparation})),tp=n(55),np=n.n(tp),rp=function(e){var t=e.condition,n=e.wrapper,r=e.children;return t?n(r):r};function ip(){return(ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function op(e,t){return(op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ap,sp="top",lp="bottom";!function(e){e.STRICT="strict",e.LAX="lax",e.NONE="none"}(ap||(ap={}));var up="hidden",cp="byCookieValue",hp=["children"],pp={disableStyles:!1,hideOnAccept:!0,hideOnDecline:!0,location:lp,visible:cp,onAccept:function(e){},onDecline:function(){},cookieName:"CookieConsent",cookieValue:"true",declineCookieValue:"false",setDeclineCookie:!0,buttonText:"I understand",declineButtonText:"I decline",debug:!1,expires:365,containerClasses:"CookieConsent",contentClasses:"",buttonClasses:"",buttonWrapperClasses:"",declineButtonClasses:"",buttonId:"rcc-confirm-button",declineButtonId:"rcc-decline-button",extraCookieOptions:{},disableButtonStyles:!1,enableDeclineButton:!1,flipButtons:!1,sameSite:ap.LAX,ButtonComponent:function(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,hp);return l.a.createElement("button",Object.assign({},n),t)}
77,overlay:!1,overlayClasses:"",onOverlayClick:function(){},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{},customDeclineButtonProps:{},customButtonWrapperAttributes:{},style:{},buttonStyle:{},declineButtonStyle:{},contentStyle:{},overlayStyle:{}},dp={visible:!1,style:{alignItems:"baseline",background:"#353535",color:"white",display:"flex",flexWrap:"wrap",justifyContent:"space-between",left:"0",position:"fixed",width:"100%",zIndex:"999"},buttonStyle:{background:"#ffd42d",border:"0",borderRadius:"0px",boxShadow:"none",color:"black",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},declineButtonStyle:{background:"#c12a2a",border:"0",borderRadius:"0px",boxShadow:"none",color:"#e5e5e5",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},contentStyle:{flex:"1 0 300px",margin:"15px"},overlayStyle:{position:"fixed",left:0,top:0,width:"100%",height:"100%",zIndex:"999",backgroundColor:"rgba(0,0,0,0.3)"}},fp=function(e){return e+"-legacy"},mp=function(e){var t,n;function r(){var t;return(t=e.apply(this,arguments)||this).state=dp,t.handleScroll=function(){var e=ip({},pp,t.props).acceptOnScrollPercentage,n=document.documentElement,r=document.body;(n.scrollTop||r.scrollTop)/((n.scrollHeight||r.scrollHeight)-n.clientHeight)*100>e&&t.accept(!0)},t.removeScrollListener=function(){t.props.acceptOnScroll&&window.removeEventListener("scroll",t.handleScroll)},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,op(t,n);var i=r.prototype;return i.componentDidMount=function(){var e=this.props.debug;(void 0===this.getCookieValue()||e)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&window.addEventListener("scroll",this.handleScroll,{passive:!0}))},i.componentWillUnmount=function(){this.removeScrollListener()},i.accept=function(e){var t;void 0===e&&(e=!1);var n=ip({},pp,this.props),r=n.cookieName,i=n.cookieValue,o=n.hideOnAccept,a=n.onAccept;this.setCookie(r,i),a(null!=(t=e)&&t),o&&(this.setState({visible:!1}),this.removeScrollListener())},i.overlayClick=function(){var e=ip({},pp,this.props),t=e.acceptOnOverlayClick,n=e.onOverlayClick;t&&this.accept(),n()},i.decline=function(){var e=ip({},pp,this.props),t=e.cookieName,n=e.declineCookieValue,r=e.hideOnDecline,i=e.onDecline;e.setDeclineCookie&&this.setCookie(t,n),i(),r&&this.setState({visible:!1})},i.setCookie=function(e,t){var n=this.props,r=n.extraCookieOptions,i=n.expires,o=n.sameSite,a=this.props.cookieSecurity;void 0===a&&(a=!window.location||"https:"===window.location.protocol);var s=ip({expires:i},r,{sameSite:o,secure:a});o===ap.NONE&&np.a.set(fp(e),t,s),np.a.set(e,t,s)},i.getCookieValue=function(){return function(e){void 0===e&&(e="CookieConsent");var t=np.a.get(e);return void 0===t?np.a.get(fp(e)):t}(this.props.cookieName)},i.render=function(){var e=this;switch(this.props.visible){case up:return null;case cp:if(!this.state.visible)return null}var t=this.props,n=t.location,r=t.style,i=t.buttonStyle,o=t.declineButtonStyle,a=t.contentStyle,s=t.disableStyles,u=t.buttonText,c=t.declineButtonText,h=t.containerClasses,p=t.contentClasses,d=t.buttonClasses,f=t.buttonWrapperClasses,m=t.declineButtonClasses,g=t.buttonId,y=t.declineButtonId,v=t.disableButtonStyles,_=t.enableDeclineButton,x=t.flipButtons,b=t.ButtonComponent,w=t.overlay,S=t.overlayClasses,k=t.overlayStyle,T=t.ariaAcceptLabel,M=t.ariaDeclineLabel,E=t.customContainerAttributes,C=t.customContentAttributes,I=t.customButtonProps,A=t.customDeclineButtonProps,P=t.customButtonWrapperAttributes,D={},L={},O={},R={},z={};switch(s?(D=Object.assign({},r),L=Object.assign({},i),O=Object.assign({},o),R=Object.assign({},a),z=Object.assign({},k)):(D=Object.assign({},ip({},this.state.style,r)),R=Object.assign({},ip({},this.state.contentStyle,a)),z=Object.assign({},ip({},this.state.overlayStyle,k)),v?(L=Object.assign({},i),O=Object.assign({},o)):(L=Object.assign({},ip({},this.state.buttonStyle,i)),O=Object.assign({},ip({},this.state.declineButtonStyle,o)))),n){case sp:D.top="0";break;case lp:D.bottom="0"}var N=[];return _&&N.push(l.a.createElement(b,Object.assign({key:"declineButton",style:O,className:m,id:y,"aria-label":M,onClick:function(){e.decline()}},A),c)),N.push(l.a.createElement(b,Object.assign({key:"acceptButton",style:L,className:d,id:g,"aria-label":T,onClick:function(){e.accept()}},I),u)),x&&N.reverse(),l.a.createElement(rp,{condition:w,wrapper:function(t){return l.a.createElement("div",{style:z,className:S,onClick:function(){e.overlayClick()}},t)}},l.a.createElement("div",Object.assign({className:""+h,style:D},E),l.a.createElement("div",Object.assign({style:R,className:p},C),this.props.children),l.a.createElement("div",Object.assign({className:""+f},P),N.map((function(e){return e})))))},r}(s.Component);mp.defaultProps=pp;var gp=mp;
77function yp(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var vp=0,_p=1,xp=2,bp=3,wp=function(e){function t(e){var n;return tt()(this,t),(n=yp(this,t,[e])).state={activeTab:vp},n.request=new mr("profile",e.store.user),n.setActiveTab=n.setActiveTab.bind(n),n.loadActivities=n.loadActivities.bind(n),n.loadFavorites=n.loadFavorites.bind(n),n.loadFollowers=n.loadFollowers.bind(n),n.loadFollowing=n.loadFollowing.bind(n),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this.props.match.params.id;this.props.analytics.track(this.props.analytics.events.PROFILE_VIEW_DID_LOAD,{visited_user_object_id:e}),this.fetchProfile(this.props.match.params.id)}},{key:"componentDidUpdate",value:function(e){var t=this.props.match.params.id;e.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user),this.props.store.profile&&this.props.store.profile.id===t||this.reloadProfile()}},{key:"setActiveTabFactory",value:function(e){var t=this;return function(){t.setActiveTab(e)}}},{key:"setActiveTab",value:function(e){var t=this.props.store.profile,n=t.activities,r=t.favorites,i=t.followers,o=t.following;switch(e){case vp:n.length||this.loadProfileEntities("activities");break;case _p:r.length||this.loadProfileEntities("favorites");break;case xp:i.length||this.loadProfileEntities("followers");break;case bp:o.length||this.loadProfileEntities("following")}this.setState({activeTab:e})}},{key:"reloadProfile",value:function(){var e=this.props,t=this.state,n=e.match.params.id;t.activeTab!==vp&&this.setState({activeTab:vp}),this.fetchProfile(n)}},{key:"fetchProfile",value:function(e){var t=this;this.request.find(e).then((function(e){t.props.dispatch({type:gr.ADD_PROFILE,payload:{profile:e}}),t.setActiveTab(vp)}))}},{key:"loadProfileEntities",value:function(e){var t=this,n=this.props.store.profile[e];return this.request[e]({id:this.props.store.profile.id,offset:n.length}).then((function(r){var i=n.concat(r);return t.props.dispatch({type:gr.UPDATE_PROFILE,payload:{profile:Qe()({id:t.props.store.profile.id},e,i)}}),i}))}},{key:"loadActivities",value:function(){var e=this,t=this.props.store.profile.activities;this.loadProfileEntities("activities").then((function(n){t.length===n.length&&e.setState({disableLoadMoreActivities:!0})}))}},{key:"loadFavorites",value:function(){var e=this,t=this.props.store.profile.favorites;this.loadProfileEntities("favorites").then((function(n){t.length===n.length&&e.setState({disableLoadMoreFavorites:!0})}))}},{key:"loadFollowers",value:function(){var e=this,t=this.props.store.profile.followers;this.loadProfileEntities("followers").then((function(n){t.length===n.length&&e.setState({disableLoadMoreFollowers:!0})}))}},{key:"loadFollowing",value:function(){var e=this,t=this.props.store.profile.following;this.loadProfileEntities("following").then((function(n){t.length===n.length&&e.setState({disableLoadMoreFollowings:!0})}))}},{key:"renderActivities",value:function(e){var t=this.props,n=e.map((function(e){return l.a.createElement(fh,{key:e.id,activity:e,userId:t.store.user.id})}));return n.length?l.a.createElement(Jh,null,n):l.a.createElement(Yi,{height:"150px"},l.a.createElement(Ui,null,this.props.intl.formatMessage(Gr.noActivities)))}},{key:"renderPeople",value:function(e){var t=e.map((function(e){return l.a.createElement(Bh,{key:e.id,person:e})}));return t.length?l.a.createElement(Qh,null,t):l.a.createElement(Yi,{height:"150px"},l.a.createElement(Ui,null,this.props.intl.formatMessage(Gr.noPeople)))}},{key:"renderLoadMore",value:function(e,t){return t?l.a.createElement(Yi,{height:"80px"},l.a.createElement(Ui,null,this.props.intl.formatMessage(Gr.noMoreResults))):l.a.createElement(ep,null,l.a.createElement(Ai,{primary:!0,onClick:e},this.props.intl.formatMessage(Gr.loadMore)))}},{key:"renderActivitiesTab",value:function(){var e=this.props,t=this.state,n=this.renderActivities(e.store.profile.activities),r=this.renderLoadMore(this.loadActivities,t.disableLoadMoreActivities);return l.a.createElement(l.a.Fragment,null,n,r)}},{key:"renderFavoritesTab",value:function(){var e=this.props,t=this.state,n=this.renderActivities(e.store.profile.favorites),r=this.renderLoadMore(this.loadFavorites,t.disableLoadMoreFavorites);return l.a.createElement(l.a.Fragment,null,n,r)}},{key:"renderFollowersTab",value:function(){var e=this.props,t=this.state,n=this.renderPeople(e.store.profile.followers),r=this.renderLoadMore(this.loadFollowers,t.disableLoadMoreFollowers);return l.a.createElement(l.a.Fragment,null,n,r)}},{key:"renderFollowingTab",value:function(){var e=this.props,t=this.state,n=this.renderPeople(e.store.profile.following),r=this.renderLoadMore(this.loadFollowing,t.disableLoadMoreFollowings);return l.a.createElement(l.a.Fragment,null,n,r)}},{key:"renderLoading",value:function(){return l.a.createElement(Bo,null)}},{key:"renderProfile",value:function(){var e=this.props,t=this.state,n=e.store.profile,r={active:t.activeTab===vp,onClick:this.setActiveTabFactory(vp)},i={active:t.activeTab===_p,onClick:this.setActiveTabFactory(_p)},o={active:t.activeTab===xp,onClick:this.setActiveTabFactory(xp)},a={active:t.activeTab===bp,onClick:this.setActiveTabFactory(bp)};return l.a.createElement(Ri,null,l.a.createElement(gp,{onAccept:function(){localStorage.setItem("consentGranted","true"),function(){dataLayer.push(arguments)}("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})},style:{backgroundColor:"rgb(17,36,58)",color:"white",font:'18px "Source Sans Pro"'},buttonStyle:{background:"#59d5e5",color:"rgb(17,36,58)",font:'18px "Source Sans Pro"'},buttonText:e.intl.formatMessage(Gr.cookiesConsentAccept)},e.intl.formatMessage(Gr.cookiesConsentMessage)),l.a.createElement(Xr,{title:n.name}),l.a.createElement(Oi,{width:30,style:{display:"flex",flexDirection:"column",rowGap:"1em"}},l.a.createElement(Kh,null,l.a.createElement(Gi,{size:100,src:n.avatar,border:!0}),l.a.createElement(ji,null,n.name),l.a.createElement(Ui,null,e.intl.formatMessage(Gr.distanceCovered,{distance:parseFloat(n.totalDistance).toFixed(2)})),n.id!==e.store.user.id&&l.a.createElement(Xh,{followStatus:n.followStatus,personId:n.id})),l.a.createElement(zi,null,l.a.createElement("p",null,n.bio),l.a.createElement(qi,null),l.a.createElement($h,null,l.a.createElement("li",null,l.a.createElement("span",null,e.intl.formatMessage(Gr.followersCount,{followers:n.followersCount||0})),l.a.createElement("span",null,e.intl.formatMessage(Gr.followingsCount,{followings:n.followingCount||0}))),l.a.createElement("li",null,l.a.createElement(Qr,{type:"heart"}),e.intl.formatMessage(Gr.favoritesCount,{favorites:n.favoriteActivitiesCount||0})),l.a.createElement("li",null,l.a.createElement(Qr,{type:"map"}),e.intl.formatMessage(Gr.activitiesCount,{activities:n.createdActivitiesCount||0})))),l.a.createElement(xs,{client:"ca-pub-4747166220096565",slot:"3969570213",format:"auto"})),l.a.createElement(Oi,{width:70},l.a.createElement(zi,null,l.a.createElement(Wi,null,l.a.createElement("ul",null,l.a.createElement(Zi,r,e.intl.formatMessage(Gr.routes)),l.a.createElement(Zi,i,e.intl.formatMessage(Gr.favorites)),l.a.createElement(Zi,o,e.intl.formatMessage(Gr.followers)),l.a.createElement(Zi,a,e.intl.formatMessage(Gr.following))))),l.a.createElement(zi,null,t.activeTab===vp&&this.renderActivitiesTab(),t.activeTab===_p&&this.renderFavoritesTab(),t.activeTab===xp&&this.renderFollowersTab(),t.activeTab===bp&&this.renderFollowingTab())))}},{key:"render",value:function(){return this.props.store.profile?this.renderProfile():this.renderLoading()}}])}(l.a.Component);Qe()(wp,"propTypes",{intl:gn.isRequired,analytics:At.isRequired});var Sp,kp=Au(Pt(Dn(le(St.profile)(wp)))),Tp=Xe.d.div(Sp||(Sp=p()(["\n  & > :not(:last-child) {\n    margin-bottom: 5px;\n  }\n"])));function Mp(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Ep="top",Cp=function(e){function t(e){var n;return tt()(this,t),(n=Mp(this,t,[e])).state={results:[],showLoading:!0},n.request=new mr("search",e.store.user),n.handleOnScroll=n.handleOnScroll.bind(n),n.onSearchResultClicked=n.onSearchResultClicked.bind(n),n}
77return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this;this.search(this.props.location.search),this.unlisten=this.props.history.listen((function(t){e.setState({results:[],showLoading:!0},(function(){e.search(t.search)}))})),window.addEventListener("scroll",this.handleOnScroll)}},{key:"componentDidUpdate",value:function(e){var t=this;e.store.user.id!==this.request.currentUser.id&&(this.request.currentUser=e.store.user,this.setState({results:[],showLoading:!0},(function(){t.search(e.location.search)})))}},{key:"componentWillUnmount",value:function(){this.unlisten(),window.removeEventListener("scroll",this.handleOnScroll)}},{key:"onSearchResultClicked",value:function(e,t){var n=Es.a.parse(this.props.location.search).q,r=this.state.results.findIndex((function(e){return e.content.id===t}));this.props.analytics.track(this.props.analytics.events.SEARCHER_SEARCH_RESULT_TAPPED,{search_string:n,search_results_list:Ep,search_result_list_index:r,search_result_type:this.props.analytics.searchResultTypes[e]})}},{key:"handleOnScroll",value:function(){var e=document,t=e.documentElement,n=e.body,r=t&&t.scrollTop||n.scrollTop;0===(t&&t.scrollHeight||n.scrollHeight)-(Math.max(t.clientHeight,window.innerHeight||0)+r)&&this.search(this.props.location.search)}},{key:"search",value:function(e){var t=this,n=Es.a.parse(e).q,r=this.state.results.length;this.request.search(n,r).then((function(e){0===r&&t.props.analytics.track(t.props.analytics.events.SEARCHER_SEARCH_RESULTS_SHOWN,{search_string:n,search_results_list:Ep}),t.setState((function(t){return{results:t.results.concat(e),showLoading:!1}}))}))}},{key:"filterResults",value:function(){var e=this.props,t=this.state.results.filter((function(e){return e.content}));return t.length?t.map((function(e){var t=e.type,n=e.content;return l.a.createElement(Ys,{key:n.id,type:t,content:n})})):l.a.createElement(zi,null,l.a.createElement(Yi,{height:e.theme.search.result.size},l.a.createElement(Ui,null,e.intl.formatMessage(Gr.noResults))))}},{key:"renderSearchResults",value:function(){var e=this.props,t=this.filterResults();return l.a.createElement(Ri,null,l.a.createElement(Xr,{title:e.intl.formatMessage(Gr.search)}),l.a.createElement(Oi,{width:25},l.a.createElement(zi,null,l.a.createElement(ji,null,e.intl.formatMessage(Gr.filterResults)))),l.a.createElement(Oi,{width:75},l.a.createElement(Tp,null,t)))}},{key:"renderLoading",value:function(){return l.a.createElement(Bo,null)}},{key:"render",value:function(){return this.state.showLoading?this.renderLoading():this.renderSearchResults()}}])}(l.a.Component);Qe()(Cp,"propTypes",{intl:gn.isRequired,analytics:At.isRequired});var Ip=le(St.search)(Cp),Ap=Au(Pt(Dn(Object(Xe.e)(_t(Ip))))),Pp=n(156),Dp=n.n(Pp);
77function Lp(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}var Op,Rp,zp,Np,Bp,Fp=function(e){return function(t){function n(){return tt()(this,n),Lp(this,n,arguments)}return ut()(n,t),rt()(n,[{key:"render",value:function(){var t=this.props;return l.a.createElement(l.a.Fragment,null,l.a.createElement(fu,null),l.a.createElement(e,t))}}])}(l.a.PureComponent)},Vp=Xe.d.div(Op||(Op=p()(["\n  width: 100vw;\n  flex: 1 1 auto;\n"]))),jp=Xe.d.span(Rp||(Rp=p()(["\n  position: absolute;\n  top: -31px;\n  left: -11px;\n  ","\n  background-size: cover;\n  width: 25px;\n  height: 30px;\n"])),(function(e){return e.icon?"background: url(https://s3.amazonaws.com/suda-web-static-files.sudacdn.net/markers/".concat(e.icon,") no-repeat;"):""})),Up=Xe.d.div(zp||(zp=p()(["\n  display: flex;\n  margin: -10px;\n  margin-bottom: -15px;\n\n  a {\n    cursor: pointer;\n    text-decoration: none;\n\n    & > div {\n      display: flex;\n    }\n  }\n\n  img {\n    display: block;\n    max-width: 128px;\n    max-height: 128px;\n  }\n"]))),Gp=Xe.d.div(Np||(Np=p()(["\n  display: flex;\n  justify-content: space-between;\n  flex-direction: column;\n  padding: 5px 10px;\n  width: 256px;\n  max-height: 128px;\n  box-sizing: border-box;\n\n  h4 {\n    line-height: 12px;\n    color: #494949;\n    font-weight: 600;\n  }\n\n  h5 {\n    font-weight: 600;\n    text-transform: uppercase;\n    font-size: 0.85em;\n    ","\n  }\n"])),(function(e){return e.color&&"color: ".concat(e.color,";")})),qp=Xe.d.div(Bp||(Bp=p()(["\n  color: #777;\n\n  ul {\n    display: flex;\n  }\n\n  li {\n    display: flex;\n    align-items: center;\n\n    i {\n      font-size: 1.4em;\n      display: block;\n    }\n  }\n\n  li:not(:last-child) {\n    margin-right: 5px;\n  }\n"])));function Hp(e,t,n){return t=st()(t),ot()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],st()(e).constructor):t.apply(e,n))}Vo.a.accessToken=window.SERVER_DATA.mapboxToken;var Wp=function(e){function t(e){var n;return tt()(this,t),n=Hp(this,t,[e]),Qe()(n,"state",{data:{},mapMoving:!1,currentRequestId:null,selectedActivity:null}),n.request=new mr("map",e.store.user),n.markers=new Set,n.onMapMoveStart=n.onMapMoveStart.bind(n),n.onMapMoveEnd=n.onMapMoveEnd.bind(n),n.renderActivityPopup=n.renderActivityPopup.bind(n),n.requestActivities=n.requestActivities.bind(n),n}return ut()(t,e),rt()(t,[{key:"componentDidMount",value:function(){var e=this;this.getUserLocation().then((function(t){var n=t.userPosition,r=t.zoom;e.map=new Vo.a.Map({container:e.container,style:Zo.getMapStyle(Zo.getDefaultStyle()),center:n,zoom:r,attributionControl:!1}),e.map.addControl(new Zo({onStyleChanged:function(t){e.map._loaded=!1,e.map.once("load",(function(){e.state.data&&e.state.data.hotSpots&&e.renderHotSpots(e.state.data.hotSpots),e.state.data&&e.state.data.activities&&e.state.data.activities.forEach((function(t){return e.drawPolyline(t,!1)}))})),e.map.setStyle(Zo.getMapStyle(t))}}),"top-right"),e.map.addControl(new Vo.a.NavigationControl,"top-right"),e.map.addControl(new Vo.a.GeolocateControl({fitBoundsOptions:{maxZoom:13}}),"top-right"),e.map.addControl(new Vo.a.AttributionControl({compact:!0}),"bottom-left"),e.map.on("movestart",e.onMapMoveStart),e.map.on("moveend",e.onMapMoveEnd),e.map.on("load",e.requestActivities)}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.state.mapMoving){var n=1e6,r=this.getParams(e),i=this.getParams(this.props),o=!i.lat||!i.lng||!i.z,a=Math.round(r.lat*n)/n!=Math.round(i.lat*n)/n||Math.round(r.lng*n)/n!=Math.round(i.lng*n)/n;o?this.getUserLocation().then((function(e){var n=e.userPosition,r=e.zoom;t.map.flyTo({center:n,zoom:r})})):a&&r.lat&&this.map.flyTo({center:[i.lng,i.lat],zoom:i.z})}}},{key:"componentWillUnmount",value:function(){this.map.off("movestart",this.onMapMoveStart),this.map.off("moveend",this.onMapMoveEnd),this.map.off("load",this.requestActivities)}},{key:"onMapMoveStart",value:function(){this.setState({mapMoving:!0})}},{key:"onMapMoveEnd",value:function(){var e=this,t=this.map.getCenter(),n=[t.lng,t.lat];this.updateQueryParams(n,this.map.getZoom()),this.setState({mapMoving:!1},(function(){return e.requestActivities()}))}},{key:"onMarkerClick",value:function(e){var t=this;return function(){t.state.selectedActivity&&t.drawPolyline(t.state.selectedActivity,!1),t.drawPolyline(t.state.selectedActivity=e,!0)}.bind(this)}},{key:"getSportColor",value:function(e){var t=Ao.sports[e].sportType;return Ao.colors[t]}},{key:"getUserLocation",value:function(){var e=this;return new Promise((function(t){var n=[-119.58729137357659,37.730456949226706],r=e.getParams(e.props);r.lat&&r.lng&&r.z?t({userPosition:[r.lng,r.lat],zoom:r.z}):navigator.geolocation?navigator.geolocation.getCurrentPosition((function(e){t({userPosition:[e.coords.longitude,e.coords.latitude],zoom:12})}),(function(){t({userPosition:n,zoom:12})})):t({userPosition:n,zoom:12})}))}},{key:"getParams",value:function(e){return e.location.search.length?e.location.search.substr(1).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];return Object.assign({},e,Qe()({},r,i))}),{}):{}}},{key:"updateQueryParams",value:function(e,t){this.props.history.push({pathname:Xp.map,search:"?lat=".concat(e[1],"&lng=").concat(e[0],"&z=").concat(t)})}},{key:"requestActivities",value:function(){var e=this,t="request-".concat(Date.now());this.setState({currentRequestId:t},(function(){var n=e.map.getCenter(),r=e.map.getBounds(),i=r._ne.lat-n.lat,o=r._ne.lng-n.lng;e.request.all({includePolylines:!0,regionSpanLongitudeDelta:o,regionCenterLongitude:n.lng,hideActivityClusters:!0,regionSpanLatitudeDelta:i,regionCenterLatitude:n.lat,sportsKeys:[],includeHotSpots:!0}
77).then((function(n){e.state.mapMoving||e.state.currentRequestId!==t||e.setState({data:n},(function(){e.renderHotSpots(e.state.data.hotSpots),e.renderActivities(e.state.data.activities)}))}))}))}},{key:"fitMapToBounds",value:function(e){var t=this;return function(){if(e&&0!==e.length){var n=new Vo.a.LngLatBounds;e.forEach((function(e){n.extend(e)})),t.map.fitBounds(n,{padding:{top:150,bottom:80,left:100,right:100}})}}.bind(this)}},{key:"drawPolyline",value:function(e,t){var n="".concat(e.id,"-polyline"),r=this.getSportColor(e.sportKey),i=t?5:1.5,o=t?1:.7;if(this.map.getLayer(n))return this.map.setPaintProperty(n,"line-width",i),void this.map.setPaintProperty(n,"line-opacity",o);var a=this.state.data.polylines[e.id];if(a){var s=Dp.a.decode(a).map((function(e){return[e[1],e[0]]}));this.map.addLayer({id:n,type:"line",source:{type:"geojson",data:{type:"Feature",geometry:{type:"LineString",coordinates:s},properties:{activityObjectId:e.id,category:Ao.sports[e.sportKey].sportType}}},layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":r,"line-width":i,"line-opacity":o}})}}},{key:"renderActivityPopup",value:function(e){var t=this.props,n=e.sportKey.toLowerCase(),r=this.getSportColor(e.sportKey),i=Ao.difficulties[e.difficulty],o=pr(Xp.activity.show,{id:e.id});return l.a.createElement(Up,null,l.a.createElement("a",{href:o},l.a.createElement("div",null,l.a.createElement("img",{src:e.mainPictureThumb256URL,alt:""}),l.a.createElement(Gp,{color:r},l.a.createElement("div",null,l.a.createElement("h4",null,e.name),l.a.createElement("h5",null,t.intl.formatMessage(Gr[n]))),l.a.createElement(qp,null,l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"difficulty"}),l.a.createElement("div",null,l.a.createElement("span",null,t.intl.formatMessage(Gr["difficulty_".concat(i)])))),"track"===e.sportKeyActivityType&&e.totalDuration&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"time"}),l.a.createElement("div",null,l.a.createElement("span",null,ca(e.totalDuration)))),"track"===e.sportKeyActivityType&&e.movingDistance&&l.a.createElement("li",null,l.a.createElement(Qr,{suda:!0,type:"distance"}),l.a.createElement("div",null,l.a.createElement("span",null,t.intl.formatMessage(Gr.movingDistanceValue,{distance:parseFloat(e.movingDistance).toFixed(2)}))))))))))}},{key:"renderHotSpots",value:function(e){var t=this;e&&0!==e.length&&e.filter((function(e){return"string"==typeof e.polygonVertexes&&e.polygonVertexes.length>0})).forEach((function(e){var n="".concat(e.hotSpotObjectId,"-polygon");if(!t.map.getLayer(n)){var r=Dp.a.decode(e.polygonVertexes).map((function(e){return[e[1],e[0]]})),i="".concat(e.hotSpotObjectId,"-source");t.map.addSource(i,{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Polygon",coordinates:[r]}},{type:"Feature",geometry:{type:"Point",coordinates:[e.regionCentroidLongitude,e.regionCentroidLatitude]},properties:{content:"title",title:e.name}}]}}),t.map.addLayer({id:n,type:"fill",source:i,layout:{},paint:{"fill-color":"#e84c3d","fill-opacity":.4},filter:["==","$type","Polygon"]}),t.map.on("mouseenter",n,(function(){t.map.getCanvas().style.cursor="pointer"})),t.map.on("mouseleave",n,(function(){t.map.getCanvas().style.cursor=""}));var o="".concat(e.hotSpotObjectId,"-centroid");t.map.addLayer({id:o,type:"symbol",source:i,layout:{"text-field":"●\n{title}","text-font":["Open Sans Bold"],"text-anchor":"top"},paint:{"text-color":"#e84c3d","text-halo-color":"rgba(64, 21, 17, 0.7)","text-halo-width":1},filter:["==","$type","Point"]}),t.map.on("click",o,t.fitMapToBounds(r)),t.map.on("mouseenter",o,(function(){t.map.getCanvas().style.cursor="pointer"})),t.map.on("mouseleave",o,(function(){t.map.getCanvas().style.cursor=""}))}}))}},{key:"renderActivities",value:function(e){var t=this;if(e&&0!==e.length){var n=new Set(e.map((function(e){return e.id}))),r=new Set,i=new Set;this.markers.forEach((function(e){var o=e.activity;n.has(o.id)?(r.add(o.id),i.add(e)):(e.marker.remove(),t.map.getLayer("".concat(o.id,"-polyline"))&&(t.map.removeLayer("".concat(o.id,"-polyline")),t.map.removeSource("".concat(o.id,"-polyline"))))})),e.forEach((function(e){if(!r.has(e.id)){var n=Ao.sports[e.sportKey].markerIcon,o=[e.startLocation.longitude,e.startLocation.latitude],a=document.createElement("span"),s=document.createElement("div");c.a.render(t.renderActivityPopup(e),s),c.a.render(l.a.createElement(jp,{icon:n}),a),a.addEventListener("click",t.onMarkerClick(e));var u=new Vo.a.Popup({offset:35,maxWidth:"none"}).setDOMContent(s),h=new Vo.a.Marker(a);h.setLngLat(o),h.setPopup(u),i.add({lat:e.startLocation.latitude,lng:e.startLocation.longitude,marker:h,activity:e}),h.addTo(t.map),t.drawPolyline(e,!1)}})),this.markers=i}}},{key:"render",value:function(){var e=this;return l.a.createElement(l.a.Fragment,null,l.a.createElement(Xr,{title:this.props.intl.formatMessage(Gr.map)}),l.a.createElement(Vp,{ref:function(t){e.container=t}}))}}])}(l.a.Component);
77Qe()(Wp,"propTypes",{intl:gn.isRequired});var Zp,Yp=Fp(Dn(Object(Xe.e)(le(St.map)(Wp)))),Xp={activity:{show:"/activity/:id"},challenge:{index:"/challenges",show:"/challenge/:id",achieveChallengeTask:"/achieveChallengeTask"},profile:{show:"/person/:id"},link:{index:"/link"},map:"/map",mapQuery:"/map?lng=:lng&lat=:lat&z=:z",search:"/search",root:"/",aboutUs:"/about-us",blog:window.SERVER_DATA.ghost.url,support:window.SERVER_DATA.support.url},Kp=[{name:"index",path:Xp.root,exact:!0,component:Ch},{name:"about-us",path:Xp.aboutUs,component:co},{name:"activity#show",path:Xp.activity.show,component:Gu},{name:"achieve-challenge-task",path:Xp.challenge.achieveChallengeTask,component:ko},{name:"challenge#index",path:Xp.challenge.index,component:Jc},{name:"challenge#show",path:Xp.challenge.show,component:Lc},{name:"profile#show",path:Xp.profile.show,component:kp},{name:"link",path:Xp.link.index,component:Lh},{name:"map",path:Xp.map,component:Yp},{name:"search",path:Xp.search,component:Ap},{name:"not-found",path:"/*",component:Rh}].map((function(e){return l.a.createElement(Ur,{key:e.name,path:e.path,exact:e.exact,component:e.component})})),$p=Object(Xe.b)(Zp||(Zp=p()(["\n  body {\n    background: ",";\n    font-family: 'Source Sans Pro', sans-serif;\n    font-size: 14px;\n    line-height: 20px;\n  }\n\n  * {\n    font-size: 1em;\n  }\n\n  /** Flex layout for <section> and content */\n  #app {\n    display: flex;\n    flex-flow: column;\n    min-height: 100vh;\n  }\n"])),(function(e){return e.theme.body.background})),Jp=function(){return l.a.createElement(v,{store:jr},l.a.createElement(Xe.a,{theme:hs},l.a.createElement(l.a.Fragment,null,l.a.createElement($p,null),l.a.createElement(Tr,null,l.a.createElement(Be,null,l.a.createElement(Dt,null,l.a.createElement(l.a.StrictMode,null,l.a.createElement(Ye,null,Kp))))))))};i()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new fr("geolocation")).requestLang=_r(),e.prev=2,e.next=5,t.geolocation();case 5:n=e.sent,r=n.lang,i=n.country,document.getElementsByTagName("html")[0].lang=r,document.getElementsByTagName("meta")["geo.region"].content=i,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),console.error("On client index.js",e.t0);case 15:c.a.render(l.a.createElement(Jp,null),document.querySelector("#app"));case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))();t.default=Jp}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.